http://maasglobal.com/tsp/webhooks-bookings-update/remote-request.json
Remote request schema, e.g. how TSP should call MaaS-backend
| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Defined In |
|---|---|---|---|---|---|---|
| Can be instantiated | No | Develop | No | Forbidden | Forbidden | tsp/webhooks-bookings-update/remote-request.json |
http://maasglobal.com/tsp/webhooks-bookings-update/remote-request.json
http://maasglobal.com/core/booking.jsonhttp://maasglobal.com/core/booking-option.jsonhttp://maasglobal.com/core/booking-meta.jsonhttp://maasglobal.com/core/components/errors.json| Property | Type | Required | Nullable | Defined by |
|---|---|---|---|---|
| cost | cost | Optional | No | remote-request (this schema) |
| leg | object |
Optional | No | remote-request (this schema) |
| meta | booking-meta | Optional | No | remote-request (this schema) |
| reason | object |
Optional | No | remote-request (this schema) |
| state | enum |
Required | No | remote-request (this schema) |
| terms | terms | Optional | No | remote-request (this schema) |
| token | object |
Optional | No | remote-request (this schema) |
| tspId | string |
Required | No | remote-request (this schema) |
cost
http://maasglobal.com/core/components/cost.jsonA leg delta, containing any subset of the valid properties
leg
objectobject with following properties:
| Property | Type | Required |
|---|---|---|
departureDelay |
Optional | |
endTime |
Optional | |
from |
Optional | |
mode |
Optional | |
startTime |
Optional | |
to |
Optional |
departureDelay
http://maasglobal.com/core/components/units.json#/definitions/durationendTime
http://maasglobal.com/core/components/units.json#/definitions/timefrom
http://maasglobal.com/core/components/place.jsonmode
http://maasglobal.com/core/components/travel-mode.jsonstartTime
http://maasglobal.com/core/components/units.json#/definitions/timeto
http://maasglobal.com/core/components/place.jsonmeta
http://maasglobal.com/core/booking-meta.jsonA data structure to convey information about issues, rejections or service denial to the clients
reason
objectobject with following properties:
| Property | Type | Required |
|---|---|---|
errorCode |
string | Optional |
text |
string | Optional |
errorCode
stringstring
text
stringstring
state
enumThe value of this property must be equal to one of the known values below.
| Value | Description |
|---|---|
RESERVED |
|
CONFIRMED |
|
ACTIVATED |
|
EXPIRED |
|
CANCELLED |
|
REJECTED |
terms
http://maasglobal.com/core/components/terms.jsonThe validity token (such as booking ID, travel ticket etc.) that MaaS clients will display to validate the trip when starting the leg.
token
objectobject with following properties:
| Property | Type | Required |
|---|---|---|
data |
object | Optional |
meta |
object | Optional |
validityDuration |
object | Optional |
Arbitrary ticket data for the client
data
objectobject with following properties:
| Property | Type | Required | | ——– | —- | ——– |
Arbitrary metadata the TSP may pass along the ticket to the client (e.g. a booking code, base64 encoded binary)
meta
objectobject with following properties:
| Property | Type | Required | | ——– | —- | ——– |
The rules that MaaS will interpret to schedule, re-validate or cancel the booking.
validityDuration
objectobject with following properties:
| Property | Type | Required |
|---|---|---|
endTime |
Optional | |
startTime |
Optional |
The finishing time the ticket is valid for
endTime
http://maasglobal.com/core/components/units.json#/definitions/timeThe starting time from which the ticket is valid
startTime
http://maasglobal.com/core/components/units.json#/definitions/timetspId
stringstring