maas-schemas

request Schema

http://maasglobal.com/maas-backend/booking-option-create/request.json

Request schema for booking-option-create

Abstract Extensible Status Identifiable Custom Properties Additional Properties Defined In
Can be instantiated Yes Develop No Forbidden Forbidden maas-backend/booking-option-create/request.json

Schema Hierarchy

request Definitions

Property Type Group
agencyOptions agencyOptions http://maasglobal.com/maas-backend/booking-option-create/request.json#/definitions/option
autoPurchaseId uuid http://maasglobal.com/maas-backend/booking-option-create/request.json#/definitions/option
customerSelection customerSelection http://maasglobal.com/maas-backend/booking-option-create/request.json#/definitions/option
paymentSourceId paymentSourceId http://maasglobal.com/maas-backend/booking-option-create/request.json#/definitions/option
productId id http://maasglobal.com/maas-backend/booking-option-create/request.json#/definitions/option
rollbackOnFailure boolean http://maasglobal.com/maas-backend/booking-option-create/request.json#/definitions/option

agencyOptions

agencyOptions

agencyOptions Type

autoPurchaseId

autoPurchaseId

autoPurchaseId Type

customerSelection

customerSelection

customerSelection Type

paymentSourceId

paymentSourceId

paymentSourceId Type

productId

productId

productId Type

rollbackOnFailure

If one of these is true, then all bookings will be cancelled

rollbackOnFailure

rollbackOnFailure Type

boolean

request Properties

Property Type Required Nullable Defined by
headers object Required No request (this schema)
identityId complex Required No request (this schema)
payload option Required No request (this schema)

headers

headers

headers Type

object with following properties:

Property Type Required
Accept   Optional
X-Whim-User-Agent   Optional

Accept

Accept

Accept Type

X-Whim-User-Agent

X-Whim-User-Agent

X-Whim-User-Agent Type

identityId

identityId

identityId Type

Any following options needs to be fulfilled.

Option 1

string

All instances must conform to this regular expression

^[aepus]{2}-[\w]{4}-\d:[a-f\d]{8}(-[a-f\d]{4}){3}-[a-f\d]{12}$

Option 2

string

All instances must conform to this regular expression

^[A-Fa-f0-9]{8}(-[A-Fa-f0-9]{4}){3}-[A-Fa-f0-9]{12}$

identityId Examples

"eu-west-1:4828507e-683f-41bf-9d87-689808fbf958"
"4828507e-683f-41bf-9d87-689808fbf958"

payload

payload

payload Type

Array type: option

All items must be of the type: