http://maasglobal.com/tsp/booking-options-list/request.json
Request schema for getting options from a TSP adapter.
Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Defined In |
---|---|---|---|---|---|---|
Can be instantiated | No | Develop | No | Forbidden | Permitted | tsp/booking-options-list/request.json |
http://maasglobal.com/tsp/booking-options-list/request.json
http://maasglobal.com/core/components/travel-mode.json
http://maasglobal.com/core/components/units.json
http://maasglobal.com/core/components/units-geo.json
http://maasglobal.com/core/booking.json
http://maasglobal.com/core/components/common.json
Property | Type | Required | Nullable | Defined by |
---|---|---|---|---|
distance | number |
Optional | No | request (this schema) |
endTime | integer |
Optional | No | request (this schema) |
extraOptions | string |
Optional | No | request (this schema) |
from | string |
Required | No | request (this schema) |
fromAddress | complex | Optional | No | request (this schema) |
fromName | complex | Optional | No | request (this schema) |
fromRadius | number |
Optional | No | request (this schema) |
mode | travel-mode | Optional | No | request (this schema) |
purchasingAppInstanceId | string |
Optional | No | request (this schema) |
startTime | integer |
Required | No | request (this schema) |
to | complex | Optional | No | request (this schema) |
toAddress | complex | Optional | No | request (this schema) |
toName | complex | Optional | No | request (this schema) |
toRadius | number |
Optional | No | request (this schema) |
tspIdToExtend | string |
Optional | No | request (this schema) |
tspProductIds | string |
Optional | No | request (this schema) |
^(optionalParameters).+ |
multiple | Pattern | No | request (this schema) |
* |
any | Additional | Yes | this schema allows additional properties |
Distance in meters
distance
number
number
0
40075000
1
POSIX time in milliseconds, https://en.wikipedia.org/wiki/Unix_time
endTime
integer
integer
1451606400
9007199254740991
An arbitrary string passed on a per-TSP basis, e.g. user’s subscription period
extraOptions
string
string
Geographic latitude-longitude number-pair as a string in WGS-84 system, see https://en.wikipedia.org/wiki/World_Geodetic_System
from
string
string
^[+-]?\d{1,3}(\.\d+)?,[+-]?\d{1,3}(\.\d+)?$
fromAddress
Any following options needs to be fulfilled.
http://maasglobal.com/core/components/address.json#/definitions/componentAddress
string
fromName
Any following options needs to be fulfilled.
http://maasglobal.com/core/components/address.json#/definitions/placeName
string
‘from’ location radius in meters
fromRadius
number
number
0
40075000
1
mode
http://maasglobal.com/core/components/travel-mode.json
appInstanceId to use for options and purchase
purchasingAppInstanceId
string
string
POSIX time in milliseconds, https://en.wikipedia.org/wiki/Unix_time
startTime
integer
integer
1451606400
9007199254740991
to
Any following options needs to be fulfilled.
http://maasglobal.com/core/components/units-geo.json#/definitions/shortLocationString
string
toAddress
Any following options needs to be fulfilled.
http://maasglobal.com/core/components/address.json#/definitions/componentAddress
string
toName
Any following options needs to be fulfilled.
http://maasglobal.com/core/components/address.json#/definitions/placeName
string
‘to’ location radius in meters
toRadius
number
number
0
40075000
1
Request for possible booking extension options for tspId
tspIdToExtend
string
string
Comma-separated list of tspProductIds that the user has access to
tspProductIds
string
string
^(optionalParameters).+
Applies to all properties that match the regular expression ^(optionalParameters).+
^(optionalParameters).+
Unknown type string,number,boolean
.
{
"type": ["string", "number", "boolean"],
"simpletype": "multiple"
}