http://maasglobal.com/tsp/booking-ticket/request.json
Request schema for retrieving a ticket from booking through a TSP adapter
| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Defined In |
|---|---|---|---|---|---|---|
| Can be instantiated | No | Develop | No | Forbidden | Permitted | tsp/booking-ticket/request.json |
http://maasglobal.com/tsp/booking-ticket/request.json
http://maasglobal.com/core/booking.json| Property | Type | Required | Nullable | Defined by |
|---|---|---|---|---|
| ticket | complex | Required | No | request (this schema) |
| token | object |
Required | No | request (this schema) |
| tspId | string |
Required | No | request (this schema) |
* |
any | Additional | Yes | this schema allows additional properties |
Ticket path.
ticket
Any following options needs to be fulfilled.
string
All instances must conform to this regular expression (test examples here):
[a-z]\.[svg|html|pdf]
Array type:
All items must be of the type: string
All instances must conform to this regular expression (test examples here):
[a-z]\.[svg|html|pdf]
The 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