{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sabre/json-schema/sabre-hotel-rates-response-schema.json",
  "title": "HotelRatesResponse",
  "x-generated": "2026-11-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sabre-hotel-search-api-openapi.yml#/components/schemas/HotelRatesResponse",
  "type": "object",
  "properties": {
    "HotelCode": {
      "type": "string"
    },
    "Name": {
      "type": "string"
    },
    "Rooms": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/RoomType"
      }
    }
  },
  "$defs": {
    "Rate": {
      "type": "object",
      "properties": {
        "Amount": {
          "type": "number",
          "format": "double"
        },
        "CurrencyCode": {
          "type": "string"
        }
      }
    },
    "RatePlan": {
      "type": "object",
      "properties": {
        "RatePlanCode": {
          "type": "string"
        },
        "RatePlanName": {
          "type": "string"
        },
        "DailyRate": {
          "$ref": "#/$defs/Rate"
        },
        "TotalRate": {
          "$ref": "#/$defs/Rate"
        },
        "Refundable": {
          "type": "boolean"
        },
        "CancellationPolicy": {
          "type": "string"
        },
        "MealsIncluded": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "RoomType": {
      "type": "object",
      "properties": {
        "RoomTypeCode": {
          "type": "string"
        },
        "Name": {
          "type": "string"
        },
        "Description": {
          "type": "string"
        },
        "MaxOccupancy": {
          "type": "integer"
        },
        "BedConfiguration": {
          "type": "string"
        },
        "Rates": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/RatePlan"
          }
        }
      }
    }
  }
}