maas-schemas

provider Schema

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

Schema Hierarchy

provider Properties

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

agencyId

agencyId Type

string

branding

branding

branding Type

object with following properties:

Property Type Required
icon string Optional
logoFullColor string Optional
logoSolidColor string Optional
primaryColor string Optional
secondaryColor string Optional

icon

Icon shown in whim wheel, url to 240x240 png

icon

icon Type

string

All instances must conform to this regular expression (test examples here):

^(https?|ftp):\/\/[^\s/$.?#].[^\s]*$

logoFullColor

Icon that retains the providers brand identity, url to ???x105 png

logoFullColor

logoFullColor Type

string

All instances must conform to this regular expression (test examples here):

^(https?|ftp):\/\/[^\s/$.?#].[^\s]*$

logoSolidColor

Icon that can be shown against dark or light background, url to ???x105 png

logoSolidColor

logoSolidColor Type

string

All instances must conform to this regular expression (test examples here):

^(https?|ftp):\/\/[^\s/$.?#].[^\s]*$

primaryColor

Primary brand color, used in backgrounds etc.

primaryColor

primaryColor Type

string

All instances must conform to this regular expression (test examples here):

^#(?:[0-9A-Fa-f]{3}){1,2}$

secondaryColor

Secondary brand color, used in accent parts of the app.

secondaryColor

secondaryColor Type

string

All instances must conform to this regular expression (test examples here):

^#(?:[0-9A-Fa-f]{3}){1,2}$

disruption

Disruption detail in JSON. For usage such as off-season products

disruption

disruption Type

object with following properties:

| Property | Type | Required | | ——– | —- | ——– |

extra

extra

extra Type

object with following properties:

Property Type Required
prebooking object Optional
radius object Optional

prebooking

prebooking

prebooking Type

object with following properties:

Property Type Required
isSupported boolean Required
maxIntervalUntilBooking number Required
minIntervalUntilBooking number Required

isSupported

Is pre-booking supported

isSupported

isSupported Type

boolean

maxIntervalUntilBooking

Maximum amount of milliseconds before the taxi can be prebooked in the future

maxIntervalUntilBooking

maxIntervalUntilBooking Type

number

minIntervalUntilBooking

Minimum amount of milliseconds before the taxi can be prebooked in the future

minIntervalUntilBooking

minIntervalUntilBooking Type

number

radius

radius

radius Type

object with following properties:

Property Type Required
description string Optional
fixedFareAmount number Required
fixedFareCurrency   Required
maxRadiusMetres integer Required

description

User facing description of the radius rule

description

description Type

string

fixedFareAmount

The amount of the maximum fixed fare

fixedFareAmount

fixedFareAmount Type

number

fixedFareCurrency

fixedFareCurrency

fixedFareCurrency Type

One of the following conditions need to be fulfilled.

Condition 1

Condition 2

string

maxRadiusMetres

The maximum radius to which the maximum fixed fare applies, in metres

maxRadiusMetres

maxRadiusMetres Type

integer

features

Boolean properties indicating which features are supported by the provider

features

features Type

object with following properties:

Property Type Required
stationsList boolean Required
stationsRetrieve boolean Required
ticket boolean Required

stationsList

stationsList

stationsList Type

boolean

stationsRetrieve

stationsRetrieve

stationsRetrieve Type

boolean

ticket

ticket

ticket Type

boolean

groupId

groupId

groupId Type

string

hidden

hidden

hidden Type

boolean

name

name

name Type

string

optionalParameters

optionalParameters

optionalParameters Type

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

id

id Type

string

inputs

inputs

inputs Type

Array 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

default

default Type

Unknown type string,number,boolean.

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

id

id

id Type

string

name

name

name Type

string

type

type

The value of this property must be equal to one of the known values below.

type Known Values
Value Description
string  
number  
boolean  
station  

name

name

name Type

string

type

type

The value of this property must be equal to one of the known values below.

type Known Values
Value Description
oneOf  
someOf  
allOf  
oneOrNoneOf  
someOrNoneOf  

userSelectable

userSelectable

userSelectable Type

boolean

personalDataCreateAllow

personalDataCreateAllow

personalDataCreateAllow Type

Array type: personalDataAllowItem

All items must be of the type:

personalDataOptionsAllow

personalDataOptionsAllow

personalDataOptionsAllow Type

Array type: personalDataAllowItem

All items must be of the type:

requiredPersonalDocuments

requiredPersonalDocuments

requiredPersonalDocuments Type

Array type: personalDocumentRequiredItem

All items must be of the type: