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/choice
cost
http://maasglobal.com/core/components/cost.json
default
boolean
boolean
description
string
string
fares
Array type: fare
All items must be of the type:
http://maasglobal.com/core/components/fare.json
id
string
string
input
string
string
meta
object
object
with following properties:
| Property | Type | Required | | ——– | —- | ——– |
name
string
string
terms
http://maasglobal.com/core/components/terms.json
type
enum
The 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
object
object
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/choice
description
string
string
name
string
string
Describe the possible combination of choices user can make
type
enum
The 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
object
object
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/choice
description
string
string
name
string
string
Describe the possible combination of choices user can make
type
enum
The 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
object
object
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/choice
description
string
string
name
string
string
Describe the possible combination of choices user can make
type
enum
The 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
object
object
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/choice
description
string
string
name
string
string
Describe the possible combination of choices user can make
type
enum
The 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
object
object
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/choice
description
string
string
name
string
string
Describe the possible combination of choices user can make
type
enum
The 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
object
object
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/choice
description
string
string
name
string
string
Describe the possible combination of choices user can make
type
enum
The 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
object
object
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/choice
description
string
string
name
string
string
Describe the possible combination of choices user can make
type
enum
The 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
object
object
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/choice
description
string
string
name
string
string
Describe the possible combination of choices user can make
type
enum
The 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
object
object
with following properties:
Property | Type | Required |
---|---|---|
description |
string | Optional |
input |
string | Optional |
name |
string | Required |
type |
Required |
description
string
string
input
string
string
name
string
string
type
enum
The value of this property must be equal to one of the known values below.
Value | Description |
---|---|
text |