{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sabre/json-schema/sabre-hotel-reservation-request-schema.json",
  "title": "HotelReservationRequest",
  "x-generated": "2026-11-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sabre-hotel-booking-api-openapi.yml#/components/schemas/HotelReservationRequest",
  "type": "object",
  "required": [
    "HotelCode",
    "RoomTypeCode",
    "RatePlanCode",
    "CheckIn",
    "CheckOut",
    "GuestInfo"
  ],
  "properties": {
    "HotelCode": {
      "type": "string"
    },
    "RoomTypeCode": {
      "type": "string"
    },
    "RatePlanCode": {
      "type": "string"
    },
    "CheckIn": {
      "type": "string",
      "format": "date"
    },
    "CheckOut": {
      "type": "string",
      "format": "date"
    },
    "GuestInfo": {
      "$ref": "#/$defs/GuestInfo"
    },
    "PaymentInfo": {
      "$ref": "#/$defs/PaymentInfo"
    },
    "SpecialRequests": {
      "type": "string"
    }
  },
  "$defs": {
    "GuestInfo": {
      "type": "object",
      "required": [
        "FirstName",
        "LastName",
        "Email"
      ],
      "properties": {
        "Title": {
          "type": "string"
        },
        "FirstName": {
          "type": "string"
        },
        "LastName": {
          "type": "string"
        },
        "Email": {
          "type": "string",
          "format": "email"
        },
        "Phone": {
          "type": "string"
        },
        "LoyaltyProgramNumber": {
          "type": "string"
        }
      }
    },
    "PaymentInfo": {
      "type": "object",
      "properties": {
        "CardType": {
          "type": "string",
          "enum": [
            "VI",
            "MC",
            "AX",
            "DS"
          ]
        },
        "CardNumber": {
          "type": "string"
        },
        "ExpiryDate": {
          "type": "string"
        },
        "CardholderName": {
          "type": "string"
        }
      }
    }
  }
}