{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/amadeus-reservations/refs/heads/main/json-schema/flight-create-orders-discount-schema.json", "title": "Discount", "description": "traveler discount", "type": "object", "properties": { "subType": { "$ref": "#/definitions/DiscountType" }, "cityName": { "type": "string", "description": "city of residence", "example": "MADRID" }, "travelerType": { "$ref": "#/definitions/DiscountTravelerType" }, "cardNumber": { "type": "string", "description": "resident card number", "example": "12568215Z", "pattern": "[0-9A-Z][0-9]{0,12}[A-Z]" }, "certificateNumber": { "type": "string", "description": "resident certificate number", "example": "12568215Z", "pattern": "[0-9A-Z][0-9]{0,12}[A-Z]" } } }