http://maasglobal.com/maas-backend/products/provider.json
MaaS product provider schema
| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Defined In |
|---|---|---|---|---|---|---|
| Can be instantiated | No | Develop | No | Forbidden | Forbidden | maas-backend/products/provider.json |
http://maasglobal.com/maas-backend/products/provider.json
http://maasglobal.com/core/components/common.json| Property | Type | Required | Nullable | Defined by |
|---|---|---|---|---|
| agencyId | string |
Required | No | provider (this schema) |
| branding | object |
Required | No | provider (this schema) |
| disruption | object |
Optional | No | provider (this schema) |
| extra | object |
Optional | No | provider (this schema) |
| features | object |
Required | No | provider (this schema) |
| groupId | string |
Required | No | provider (this schema) |
| hidden | boolean |
Required | No | provider (this schema) |
| name | string |
Required | No | provider (this schema) |
| optionalParameters | object[] |
Required | No | provider (this schema) |
| personalDataCreateAllow | personalDataAllowItem | Required | No | provider (this schema) |
| personalDataOptionsAllow | personalDataAllowItem | Required | No | provider (this schema) |
| requiredPersonalDocuments | personalDocumentRequiredItem | Optional | No | provider (this schema) |
agencyId
stringstring
branding
objectobject with following properties:
| Property | Type | Required |
|---|---|---|
icon |
string | Optional |
logoFullColor |
string | Optional |
logoSolidColor |
string | Optional |
primaryColor |
string | Optional |
secondaryColor |
string | Optional |
Icon shown in whim wheel, url to 240x240 png
icon
string
All instances must conform to this regular expression (test examples here):
^(https?|ftp):\/\/[^\s/$.?#].[^\s]*$
Icon that retains the providers brand identity, url to ???x105 png
logoFullColor
string
All instances must conform to this regular expression (test examples here):
^(https?|ftp):\/\/[^\s/$.?#].[^\s]*$
Icon that can be shown against dark or light background, url to ???x105 png
logoSolidColor
string
All instances must conform to this regular expression (test examples here):
^(https?|ftp):\/\/[^\s/$.?#].[^\s]*$
Primary brand color, used in backgrounds etc.
primaryColor
stringstring
All instances must conform to this regular expression (test examples here):
^#(?:[0-9A-Fa-f]{3}){1,2}$
Secondary brand color, used in accent parts of the app.
secondaryColor
stringstring
All instances must conform to this regular expression (test examples here):
^#(?:[0-9A-Fa-f]{3}){1,2}$
Disruption detail in JSON. For usage such as off-season products
disruption
objectobject with following properties:
| Property | Type | Required | | ——– | —- | ——– |
extra
objectobject with following properties:
| Property | Type | Required |
|---|---|---|
prebooking |
object | Optional |
radius |
object | Optional |
prebooking
objectobject with following properties:
| Property | Type | Required |
|---|---|---|
isSupported |
boolean | Required |
maxIntervalUntilBooking |
number | Required |
minIntervalUntilBooking |
number | Required |
Is pre-booking supported
isSupported
booleanboolean
Maximum amount of milliseconds before the taxi can be prebooked in the future
maxIntervalUntilBooking
numbernumber
Minimum amount of milliseconds before the taxi can be prebooked in the future
minIntervalUntilBooking
numbernumber
radius
objectobject with following properties:
| Property | Type | Required |
|---|---|---|
description |
string | Optional |
fixedFareAmount |
number | Required |
fixedFareCurrency |
Required | |
maxRadiusMetres |
integer | Required |
User facing description of the radius rule
description
stringstring
The amount of the maximum fixed fare
fixedFareAmount
numbernumber
00.01fixedFareCurrency
One of the following conditions need to be fulfilled.
http://maasglobal.com/core/components/units.json#/definitions/currencystring
The maximum radius to which the maximum fixed fare applies, in metres
maxRadiusMetres
integerinteger
0Boolean properties indicating which features are supported by the provider
features
objectobject with following properties:
| Property | Type | Required |
|---|---|---|
stationsList |
boolean | Required |
stationsRetrieve |
boolean | Required |
ticket |
boolean | Required |
stationsList
booleanboolean
stationsRetrieve
booleanboolean
ticket
booleanboolean
groupId
stringstring
hidden
booleanboolean
name
stringstring
optionalParameters
object[]Array type: object[]
All items must be of the type: object with following properties:
| Property | Type | Required |
|---|---|---|
id |
string | Required |
inputs |
array | Required |
name |
string | Required |
type |
Optional | |
userSelectable |
boolean | Optional |
id
stringstring
inputs
object[]* at least 1 items in the arrayArray type: object[]
All items must be of the type: object with following properties:
| Property | Type | Required |
|---|---|---|
default |
string,number,boolean | Optional |
id |
string | Required |
name |
string | Required |
type |
Required |
default
Unknown type string,number,boolean.
{
"type": ["string", "number", "boolean"],
"simpletype": "multiple"
}
id
stringstring
name
stringstring
type
enumThe value of this property must be equal to one of the known values below.
| Value | Description |
|---|---|
string |
|
number |
|
boolean |
|
station |
name
stringstring
type
enumThe value of this property must be equal to one of the known values below.
| Value | Description |
|---|---|
oneOf |
|
someOf |
|
allOf |
|
oneOrNoneOf |
|
someOrNoneOf |
userSelectable
booleanboolean
personalDataCreateAllow
Array type: personalDataAllowItem
All items must be of the type:
http://maasglobal.com/core/components/personalDataAllowItem.jsonpersonalDataOptionsAllow
Array type: personalDataAllowItem
All items must be of the type:
http://maasglobal.com/core/components/personalDataAllowItem.jsonrequiredPersonalDocuments
Array type: personalDocumentRequiredItem
All items must be of the type:
http://maasglobal.com/core/components/personalDocumentRequiredItem.json