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 |
| 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 |
Set of choices for one customization
choices
Array type: choice
All items must be of the type:
#/definitions/choicecost
http://maasglobal.com/core/components/cost.jsondefault
booleanboolean
description
stringstring
fares
Array type: fare
All items must be of the type:
http://maasglobal.com/core/components/fare.jsonid
stringstring
input
stringstring
meta
objectobject with following properties:
| Property | Type | Required | | ——– | —- | ——– |
name
stringstring
terms
http://maasglobal.com/core/components/terms.jsontype
enumThe value of this property must be equal to one of the known values below.
| Value | Description |
|---|---|
text |
| 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) |
Going as a pair with open return, providing options for clients to choose return journey for it’s open return tickets
freeReturn
objectobject with following properties:
| Property | Type | Required |
|---|---|---|
choices |
array | Required |
description |
string | Optional |
name |
string | Required |
type |
Required |
Set of choices for one customization
choices
Array type: choice
All items must be of the type:
#/definitions/choicedescription
stringstring
name
stringstring
Describe the possible combination of choices user can make
type
enumThe value of this property must be equal to one of the known values below.
| Value | Description |
|---|---|
oneOf |
|
someOf |
|
allOf |
|
oneOrNoneOf |
|
someOrNoneOf |
Single ticket for return journey, go as a pair with outboundSingle
inboundSingle
objectobject with following properties:
| Property | Type | Required |
|---|---|---|
choices |
array | Required |
description |
string | Optional |
name |
string | Required |
type |
Required |
Set of choices for one customization
choices
Array type: choice
All items must be of the type:
#/definitions/choicedescription
stringstring
name
stringstring
Describe the possible combination of choices user can make
type
enumThe value of this property must be equal to one of the known values below.
| Value | Description |
|---|---|
oneOf |
|
someOf |
|
allOf |
|
oneOrNoneOf |
|
someOrNoneOf |
Open return ticket can be used for both outward and return journeys
openReturn
objectobject with following properties:
| Property | Type | Required |
|---|---|---|
choices |
array | Required |
description |
string | Optional |
name |
string | Required |
type |
Required |
Set of choices for one customization
choices
Array type: choice
All items must be of the type:
#/definitions/choicedescription
stringstring
name
stringstring
Describe the possible combination of choices user can make
type
enumThe value of this property must be equal to one of the known values below.
| Value | Description |
|---|---|
oneOf |
|
someOf |
|
allOf |
|
oneOrNoneOf |
|
someOrNoneOf |
Single ticket for outwardJourney
outboundSingle
objectobject with following properties:
| Property | Type | Required |
|---|---|---|
choices |
array | Required |
description |
string | Optional |
name |
string | Required |
type |
Required |
Set of choices for one customization
choices
Array type: choice
All items must be of the type:
#/definitions/choicedescription
stringstring
name
stringstring
Describe the possible combination of choices user can make
type
enumThe value of this property must be equal to one of the known values below.
| Value | Description |
|---|---|
oneOf |
|
someOf |
|
allOf |
|
oneOrNoneOf |
|
someOrNoneOf |
A customization to the booking option
seatDirection
objectobject with following properties:
| Property | Type | Required |
|---|---|---|
choices |
array | Required |
description |
string | Optional |
name |
string | Required |
type |
Required |
Set of choices for one customization
choices
Array type: choice
All items must be of the type:
#/definitions/choicedescription
stringstring
name
stringstring
Describe the possible combination of choices user can make
type
enumThe value of this property must be equal to one of the known values below.
| Value | Description |
|---|---|
oneOf |
|
someOf |
|
allOf |
|
oneOrNoneOf |
|
someOrNoneOf |
A customization to the booking option
seatFeatures
objectobject with following properties:
| Property | Type | Required |
|---|---|---|
choices |
array | Required |
description |
string | Optional |
name |
string | Required |
type |
Required |
Set of choices for one customization
choices
Array type: choice
All items must be of the type:
#/definitions/choicedescription
stringstring
name
stringstring
Describe the possible combination of choices user can make
type
enumThe value of this property must be equal to one of the known values below.
| Value | Description |
|---|---|
oneOf |
|
someOf |
|
allOf |
|
oneOrNoneOf |
|
someOrNoneOf |
A customization to the booking option
seatPosition
objectobject with following properties:
| Property | Type | Required |
|---|---|---|
choices |
array | Required |
description |
string | Optional |
name |
string | Required |
type |
Required |
Set of choices for one customization
choices
Array type: choice
All items must be of the type:
#/definitions/choicedescription
stringstring
name
stringstring
Describe the possible combination of choices user can make
type
enumThe value of this property must be equal to one of the known values below.
| Value | Description |
|---|---|
oneOf |
|
someOf |
|
allOf |
|
oneOrNoneOf |
|
someOrNoneOf |
A customization to the booking option
seatType
objectobject with following properties:
| Property | Type | Required |
|---|---|---|
choices |
array | Required |
description |
string | Optional |
name |
string | Required |
type |
Required |
Set of choices for one customization
choices
Array type: choice
All items must be of the type:
#/definitions/choicedescription
stringstring
name
stringstring
Describe the possible combination of choices user can make
type
enumThe value of this property must be equal to one of the known values below.
| Value | Description |
|---|---|
oneOf |
|
someOf |
|
allOf |
|
oneOrNoneOf |
|
someOrNoneOf |
Generic text field to pass information from user
ticketCollectionPoint
objectobject with following properties:
| Property | Type | Required |
|---|---|---|
description |
string | Optional |
input |
string | Optional |
name |
string | Required |
type |
Required |
description
stringstring
input
stringstring
name
stringstring
type
enumThe value of this property must be equal to one of the known values below.
| Value | Description |
|---|---|
text |