maas-schemas

configurator Schema

http://maasglobal.com/core/components/configurator.json

Configurator schema to customize a booking option

Abstract Extensible Status Identifiable Custom Properties Additional Properties Defined In
Can be instantiated Yes Develop No Forbidden Forbidden core/components/configurator.json

configurator Definitions

Property Type Group
choices choice http://maasglobal.com/core/components/configurator.json#/definitions/config
cost cost http://maasglobal.com/core/components/configurator.json#/definitions/choice
default boolean http://maasglobal.com/core/components/configurator.json#/definitions/choice
description string http://maasglobal.com/core/components/configurator.json#/definitions/text
fares fare http://maasglobal.com/core/components/configurator.json#/definitions/choice
id string http://maasglobal.com/core/components/configurator.json#/definitions/choice
input string http://maasglobal.com/core/components/configurator.json#/definitions/text
meta object http://maasglobal.com/core/components/configurator.json#/definitions/choice
name string http://maasglobal.com/core/components/configurator.json#/definitions/text
terms terms http://maasglobal.com/core/components/configurator.json#/definitions/choice
type enum http://maasglobal.com/core/components/configurator.json#/definitions/text

choices

Set of choices for one customization

choices

choices Type

Array type: choice

All items must be of the type:

cost

cost

cost Type

default

default

default Type

boolean

description

description

description Type

string

fares

fares

fares Type

Array type: fare

All items must be of the type:

id

id

id Type

string

input

input

input Type

string

meta

meta

meta Type

object with following properties:

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

name

name

name Type

string

terms

terms

terms Type

type

type

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

type Known Values

Value Description
text  

configurator Properties

Property Type Required Nullable Defined by
freeReturn object Optional No configurator (this schema)
inboundSingle object Optional No configurator (this schema)
openReturn object Optional No configurator (this schema)
outboundSingle object Optional No configurator (this schema)
seatDirection object Optional No configurator (this schema)
seatFeatures object Optional No configurator (this schema)
seatPosition object Optional No configurator (this schema)
seatType object Optional No configurator (this schema)
ticketCollectionPoint object Optional No configurator (this schema)

freeReturn

Going as a pair with open return, providing options for clients to choose return journey for it’s open return tickets

freeReturn

freeReturn Type

object with following properties:

Property Type Required
choices array Required
description string Optional
name string Required
type   Required

choices

Set of choices for one customization

choices

choices Type

Array type: choice

All items must be of the type:

description

description

description Type

string

name

name

name Type

string

type

Describe the possible combination of choices user can make

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  

inboundSingle

Single ticket for return journey, go as a pair with outboundSingle

inboundSingle

inboundSingle Type

object with following properties:

Property Type Required
choices array Required
description string Optional
name string Required
type   Required

choices

Set of choices for one customization

choices

choices Type

Array type: choice

All items must be of the type:

description

description

description Type

string

name

name

name Type

string

type

Describe the possible combination of choices user can make

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  

openReturn

Open return ticket can be used for both outward and return journeys

openReturn

openReturn Type

object with following properties:

Property Type Required
choices array Required
description string Optional
name string Required
type   Required

choices

Set of choices for one customization

choices

choices Type

Array type: choice

All items must be of the type:

description

description

description Type

string

name

name

name Type

string

type

Describe the possible combination of choices user can make

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  

outboundSingle

Single ticket for outwardJourney

outboundSingle

outboundSingle Type

object with following properties:

Property Type Required
choices array Required
description string Optional
name string Required
type   Required

choices

Set of choices for one customization

choices

choices Type

Array type: choice

All items must be of the type:

description

description

description Type

string

name

name

name Type

string

type

Describe the possible combination of choices user can make

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  

seatDirection

A customization to the booking option

seatDirection

seatDirection Type

object with following properties:

Property Type Required
choices array Required
description string Optional
name string Required
type   Required

choices

Set of choices for one customization

choices

choices Type

Array type: choice

All items must be of the type:

description

description

description Type

string

name

name

name Type

string

type

Describe the possible combination of choices user can make

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  

seatFeatures

A customization to the booking option

seatFeatures

seatFeatures Type

object with following properties:

Property Type Required
choices array Required
description string Optional
name string Required
type   Required

choices

Set of choices for one customization

choices

choices Type

Array type: choice

All items must be of the type:

description

description

description Type

string

name

name

name Type

string

type

Describe the possible combination of choices user can make

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  

seatPosition

A customization to the booking option

seatPosition

seatPosition Type

object with following properties:

Property Type Required
choices array Required
description string Optional
name string Required
type   Required

choices

Set of choices for one customization

choices

choices Type

Array type: choice

All items must be of the type:

description

description

description Type

string

name

name

name Type

string

type

Describe the possible combination of choices user can make

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  

seatType

A customization to the booking option

seatType

seatType Type

object with following properties:

Property Type Required
choices array Required
description string Optional
name string Required
type   Required

choices

Set of choices for one customization

choices

choices Type

Array type: choice

All items must be of the type:

description

description

description Type

string

name

name

name Type

string

type

Describe the possible combination of choices user can make

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  

ticketCollectionPoint

Generic text field to pass information from user

ticketCollectionPoint

ticketCollectionPoint Type

object with following properties:

Property Type Required
description string Optional
input string Optional
name string Required
type   Required

description

description

description Type

string

input

input

input 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
text