maas-schemas

request Schema

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

Schema Hierarchy

request Properties

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

Distance in meters

distance

distance Type

number

endTime

POSIX time in milliseconds, https://en.wikipedia.org/wiki/Unix_time

endTime

endTime Type

integer

extraOptions

An arbitrary string passed on a per-TSP basis, e.g. user’s subscription period

extraOptions

extraOptions Type

string

from

Geographic latitude-longitude number-pair as a string in WGS-84 system, see https://en.wikipedia.org/wiki/World_Geodetic_System

from

from Type

string

^[+-]?\d{1,3}(\.\d+)?,[+-]?\d{1,3}(\.\d+)?$

fromAddress

fromAddress

fromAddress Type

Any following options needs to be fulfilled.

Option 1

Option 2

string

fromName

fromName

fromName Type

Any following options needs to be fulfilled.

Option 1

Option 2

string

fromRadius

‘from’ location radius in meters

fromRadius

fromRadius Type

number

mode

mode

mode Type

purchasingAppInstanceId

appInstanceId to use for options and purchase

purchasingAppInstanceId

purchasingAppInstanceId Type

string

startTime

POSIX time in milliseconds, https://en.wikipedia.org/wiki/Unix_time

startTime

startTime Type

integer

to

to

to Type

Any following options needs to be fulfilled.

Option 1

Option 2

string

toAddress

toAddress

toAddress Type

Any following options needs to be fulfilled.

Option 1

Option 2

string

toName

toName

toName Type

Any following options needs to be fulfilled.

Option 1

Option 2

string

toRadius

‘to’ location radius in meters

toRadius

toRadius Type

number

tspIdToExtend

Request for possible booking extension options for tspId

tspIdToExtend

tspIdToExtend Type

string

tspProductIds

Comma-separated list of tspProductIds that the user has access to

tspProductIds

tspProductIds Type

string

Pattern: ^(optionalParameters).+

Applies to all properties that match the regular expression ^(optionalParameters).+

^(optionalParameters).+

Pattern ^(optionalParameters).+ Type

Unknown type string,number,boolean.

{
  "type": ["string", "number", "boolean"],
  "simpletype": "multiple"
}