http://maasglobal.com/tsp/booking-update/response.json
Response schema for updating state of a specific booking with a TSP ID from a TSP adapter
Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Defined In |
---|---|---|---|---|---|---|
Can be instantiated | No | Develop | No | Forbidden | Forbidden | tsp/booking-update/response.json |
http://maasglobal.com/tsp/booking-update/response.json
http://maasglobal.com/core/booking.json
http://maasglobal.com/core/components/state.json
http://maasglobal.com/core/booking-option.json
http://maasglobal.com/core/booking-meta.json
Property | Type | Required | Nullable | Defined by |
---|---|---|---|---|
cost | cost | Optional | No | response (this schema) |
leg | object |
Optional | No | response (this schema) |
meta | booking-meta | Optional | No | response (this schema) |
state | enum |
Required | No | response (this schema) |
terms | terms | Optional | No | response (this schema) |
token | object |
Optional | No | response (this schema) |
tspId | string |
Required | No | response (this schema) |
tspProduct | object |
Optional | No | response (this schema) |
cost
http://maasglobal.com/core/components/cost.json
A leg delta, containing any subset of the valid properties
leg
object
object
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/duration
endTime
http://maasglobal.com/core/components/units.json#/definitions/time
from
http://maasglobal.com/core/components/place.json
mode
http://maasglobal.com/core/components/travel-mode.json
startTime
http://maasglobal.com/core/components/units.json#/definitions/time
to
http://maasglobal.com/core/components/place.json
meta
http://maasglobal.com/core/booking-meta.json
The life-cycle state of a booking
state
enum
The value of this property must be equal to one of the known values below.
Value | Description |
---|---|
START |
|
PENDING |
|
PAID |
|
RESERVED |
|
CONFIRMED |
|
ARRIVED |
|
ACTIVATED |
|
ON_HOLD |
|
CANCELLED |
|
EXPIRED |
|
REJECTED |
|
FINISHED |
|
UNKNOWN |
terms
http://maasglobal.com/core/components/terms.json
The validity token (such as booking ID, travel ticket etc.) that MaaS clients will display to validate the trip when starting the leg.
token
object
object
with following properties:
Property | Type | Required |
---|---|---|
data |
object | Optional |
meta |
object | Optional |
validityDuration |
object | Optional |
Arbitrary ticket data for the client
data
object
object
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
object
object
with following properties:
| Property | Type | Required | | ——– | —- | ——– |
The rules that MaaS will interpret to schedule, re-validate or cancel the booking.
validityDuration
object
object
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/time
The starting time from which the ticket is valid
startTime
http://maasglobal.com/core/components/units.json#/definitions/time
tspId
string
string
Defines what kind of TSP product the booking option represents.
tspProduct
object
object
with following properties:
Property | Type | Required |
---|---|---|
id |
string | Required |
Unique identifier for the product
id
string
string