http://maasglobal.com/core/components/terms.json
MaaS booking terms and condition for its business engine
| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Defined In |
|---|---|---|---|---|---|---|
| Can be instantiated | Yes | Develop | No | Forbidden | Permitted | core/components/terms.json |
| Property | Type | Group |
|---|---|---|
| amendable | boolean |
http://maasglobal.com/core/components/terms.json#/definitions/amendment |
| amount | number |
http://maasglobal.com/core/components/terms.json#/definitions/surcharge |
| cancellable | boolean |
http://maasglobal.com/core/components/terms.json#/definitions/cancellation |
| coach | multiple | http://maasglobal.com/core/components/terms.json#/definitions/seat |
| cost | cost | http://maasglobal.com/core/components/terms.json#/definitions/amendment |
| currency | currency | http://maasglobal.com/core/components/terms.json#/definitions/surcharge |
| fare | fare | http://maasglobal.com/core/components/terms.json#/definitions/amendment |
| isChargedUpfront | boolean |
http://maasglobal.com/core/components/terms.json#/definitions/surcharge |
| maxAmount | number |
http://maasglobal.com/core/components/terms.json#/definitions/surcharge |
| minAmount | number |
http://maasglobal.com/core/components/terms.json#/definitions/surcharge |
| number | multiple | http://maasglobal.com/core/components/terms.json#/definitions/seat |
| percentage | number |
http://maasglobal.com/core/components/terms.json#/definitions/surcharge |
| refunded | boolean |
http://maasglobal.com/core/components/terms.json#/definitions/cancellation |
| route | string |
http://maasglobal.com/core/components/terms.json#/definitions/seat |
A flag indicating whether this booking can be amended
amendable
booleanboolean
The amount in currency
amount
numbernumber
00.01A flag indicating whether this booking can be cancelled in ‘RESERVED’ state
cancellable
booleanboolean
coach
Either one of:
stringnumbercost
http://maasglobal.com/core/components/cost.jsoncurrency
http://maasglobal.com/core/components/units.json#/definitions/currencyfare
http://maasglobal.com/core/components/fare.jsonWhether this is charged upfront or during reconciliation phase
isChargedUpfront
booleanboolean
The maximum amount in currency
maxAmount
numbernumber
00.01The minimum amount in currency
minAmount
numbernumber
00.01number
Either one of:
stringnumberSurcharge percentage over the original fee
percentage
numbernumber
Whether this part of the booking has been refunded
refunded
booleanboolean
The leg’s route number that this seat info belongs
route
stringstring
| Property | Type | Required | Nullable | Defined by |
|---|---|---|---|---|
| amendment | object |
Optional | No | terms (this schema) |
| cancellation | object |
Optional | No | terms (this schema) |
| fareRates | object[] |
Optional | No | terms (this schema) |
| reconcilable | boolean |
Optional | No | terms (this schema) |
| restrictions | object |
Optional | No | terms (this schema) |
| reusable | boolean |
Optional | No | terms (this schema) |
| seatings | seat | Optional | No | terms (this schema) |
| surcharges | object |
Optional | No | terms (this schema) |
| type | string |
Optional | No | terms (this schema) |
| validity | object |
Optional | No | terms (this schema) |
* |
any | Additional | Yes | this schema allows additional properties |
amendment
objectobject with following properties:
| Property | Type | Required |
|---|---|---|
outward |
Optional | |
return |
Optional |
outward
#/definitions/amendmentreturn
#/definitions/amendmentcancellation
objectobject with following properties:
| Property | Type | Required |
|---|---|---|
cancellationFormActionUrl |
string | Optional |
outward |
Optional | |
return |
Optional |
User will fill in this form to cancel their ticket should programmed cancellation does not function. Edge case support
cancellationFormActionUrl
string
All instances must conform to this regular expression (test examples here):
^(https?|ftp):\/\/[^\s/$.?#].[^\s]*$
outward
#/definitions/cancellationreturn
#/definitions/cancellationfareRates
object[]Array type: object[]
All items must be of the type: object with following properties:
| Property | Type | Required |
|---|---|---|
amount |
number | Required |
currency |
Required | |
startAt |
number | Optional |
timeInterval |
number | Optional |
type |
Optional |
amount
numbernumber
00.01currency
http://maasglobal.com/core/components/units.json#/definitions/currencyAmount of seconds after this fare rate should be applied to
startAt
numbernumber
01Amount of seconds that fare rate is applied to
timeInterval
numbernumber
11type
enumThe value of this property must be equal to one of the known values below.
| Value | Description |
|---|---|
maxRate |
|
missedReturnPenalty |
|
extra |
Booking fare rate
A flag indicating whether this booking will be reconciled once the trip has finished
reconcilable
booleanboolean
Booking restrictions
restrictions
objectobject with following properties:
| Property | Type | Required |
|---|---|---|
freeTicket |
object | Optional |
singleDevice |
boolean | Optional |
skipRestrictionCheck |
boolean | Optional |
A JSON schema object which defines restriction rules for free ticket
freeTicket
objectobject with following properties:
| Property | Type | Required | | ——– | —- | ——– |
A flag indicating whether this booking can be viewed in multiple devices at the same time
singleDevice
booleanboolean
A flag indicating whether restriction check should be run
skipRestrictionCheck
booleanboolean
A flag indicating whether this booking can be reused for another trip within the validity period
reusable
booleanboolean
In 1 booking for a journey, it can be valid for many of the journey’s leg. Each item of seating is a seat on 1 specific route
seatings
Array type: seat
All items must be of the type:
#/definitions/seatSurcharges that have been added to the cost/fare of the booking under certain conditions
surcharges
objectobject with following properties:
| Property | Type | Required |
|---|---|---|
midnight |
Optional | |
pickup |
Optional |
Fee for booking during night time
midnight
#/definitions/surchargeFee for pickup, usually for TAXI bookings
pickup
#/definitions/surchargeA type of ticket/product that this booking is valid for - should be unique within a given region, e.g. ‘Single ticket / Lähiseutu 2’. When reusing the tickets in maas-backend, the ‘type’ field is checked for equality.
type
stringstring
Booking validity conditions
validity
objectobject with following properties:
| Property | Type | Required |
|---|---|---|
endTime |
integer | Required |
endTimeReturn |
integer | Optional |
startTime |
integer | Required |
startTimeReturn |
integer | Optional |
Epoch when the outbound ticket will be invalid
endTime
integer
14516064009007199254740991Epoch when the return ticket will be invalid
endTimeReturn
integer
14516064009007199254740991Epoch when the outbound ticket will be valid
startTime
integer
14516064009007199254740991Epoch when the return ticket will be valid
startTimeReturn
integer
14516064009007199254740991