http://maasglobal.com/tsp/booking-create/request.json
Request schema for creating a 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-create/request.json |
http://maasglobal.com/tsp/booking-create/request.json
http://maasglobal.com/core/booking-option.json
http://maasglobal.com/core/booking-meta.json
http://maasglobal.com/core/booking.json
http://maasglobal.com/core/customer.json
http://maasglobal.com/core/components/configurator.json
http://maasglobal.com/core/components/customerSelection.json
{
"leg": {
"to": {
"lat": 60.1769789,
"lon": 24.9504135,
"name": "Ida Aalbergin tie 3, Helsinki",
"address": "streetName:Ida%20Aalbergin%20tie|streetNumber:1|city:Helsinki|zipCode:00400|country:Suomi"
},
"from": {
"lat": 60.177252,
"lon": 24.950388,
"name": "Siltasaarenkatu 1, Helsinki",
"address": "streetName:Siltasaarenkatu|streetNumber:1|city:Helsinki|zipCode:00530|country:Suomi"
},
"mode": "TAXI",
"endTime": 1572441571838,
"agencyId": "Test1",
"startTime": 1572440451838
},
"customer": {
"email": "test@example.com",
"phone": "+358400001010",
"locale": "en",
"clientId": "whim",
"lastName": "Tester",
"opaqueId": "cafecaca",
"firstName": "Test",
"documents": []
},
"meta": {
"MODE_TAXI": {
"driver": {},
"taxiCenter": {
"name": "Taksi",
"phone": "+358100000011"
},
"vehicleType": "any"
}
},
"terms": {
"reusable": false,
"validity": {
"endTime": 1572355249017,
"startTime": 1572355193128
},
"reconcilable": false
},
"configurator": {},
"customerSelection": {},
"cost": null,
"tspId": null,
"tspProduct": {
"id": "testtaxi1-product1"
}
}
Property | Type | Required | Nullable | Defined by |
---|---|---|---|---|
configurator | configurator | Optional | No | request (this schema) |
customer | customer | Required | No | request (this schema) |
customerSelection | customerSelection | Optional | No | request (this schema) |
leg | object |
Required | No | request (this schema) |
meta | booking-meta | Required | No | request (this schema) |
terms | terms | Required | No | request (this schema) |
tspProduct | object |
Required | No | request (this schema) |
* |
any | Additional | Yes | this schema allows additional properties |
configurator
http://maasglobal.com/core/components/configurator.json
customer
http://maasglobal.com/core/customer.json
customerSelection
http://maasglobal.com/core/components/customerSelection.json
A subset of the standard leg (../core/leg.json)
leg
object
object
with following properties:
Property | Type | Required |
---|---|---|
agencyId |
Optional | |
departureDelay |
Optional | |
endTime |
Required | |
from |
Required | |
mode |
Required | |
startTime |
Required | |
to |
Required |
agencyId
http://maasglobal.com/core/components/common.json#/definitions/agencyId
departureDelay
http://maasglobal.com/core/components/units.json#/definitions/duration
endTime
http://maasglobal.com/core/components/units.json#/definitions/time
Starting location’s lat and lon pair of this request
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
terms
http://maasglobal.com/core/components/terms.json
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