{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://www.computop-paygate.com/schemas/travelDetails.json",
"title": "Travel Details",
"description": "Travel Details Data",
"type": "object",
"properties": {
"insurance": {
"type": ["string", "null"],
"maxLength": 30
},
"travelType": {
"type": ["string", "null"],
"maxLength": 30
},
"departureDate": {
"type": ["string", "null"],
"minLength": 16,
"maxLength": 16
},
"returnDate": {
"type": ["string", "null"],
"minLength": 16,
"maxLength": 16
},
"destinationCountry": {
"type": ["string", "null"],
"minLength": 2,
"maxLength": 2
},
"ticketCount": {
"type": ["integer", "null"]
},
"travellerCount": {
"type": ["integer", "null"]
},
"travelClass": {
"type": ["string", "null"],
"enum": ["Unknown", "Economy", "PremiumEconomy", "Business", "First", "Others"],
"maxLength": 16
},
"ownTicket": {
"type": ["integer", "null"],
"enum": [1, 0]
},
"mainDepartureCompany": {
"type": ["string", "null"],
"maxLength": 3
},
"travellerPassportList": {
"type": "array",
"items": {
"type": ["object", "null"],
"properties": {
"expirationDate": {
"type": ["string", "null"],
"minLength": 10,
"maxLength": 10
},
"issuanceCountry": {
"type": ["string", "null"],
"minLength": 2,
"maxLength": 2
}
}
}
},
"departureAirport": {
"type": ["string", "null"],
"minLength": 3,
"maxLength": 3
},
"arrivalAirport": {
"type": ["string", "null"],
"minLength": 3,
"maxLength": 3
},
"discountCode": {
"type": ["string", "null"],
"maxLength": 30
},
"luggageSupplement": {
"type": ["string", "null"],
"maxLength": 30
},
"modificationCancellation": {
"type": ["integer", "null"],
"enum": [1, 0]
}
},
"additionalProperties": false
} |