{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/amadeus/refs/heads/main/json-schema/hotel-search-hotel-product-deposit-policy-schema.json",
  "title": "HotelProduct_DepositPolicy",
  "description": "the deposit/prepay policy information applicable to the offer. It includes accepted payments, deadline and the amount due",
  "type": "object",
  "properties": {
    "amount": {
      "description": "Deposit-Prepay amount",
      "type": "string",
      "pattern": "^\\\\d+(\\\\.\\\\d+)?$",
      "example": "199.50"
    },
    "deadline": {
      "description": "The date and time of the deadline in ISO 8601[https://www.w3.org/TR/NOTE-datetime]. \n Example: 2010-08-14T13:00:00\n Please note that this value is expressed in the hotels local time zone",
      "type": "string",
      "format": "date-time",
      "example": "2026-08-15T10:30:00Z"
    },
    "description": {
      "title": "QualifiedFreeText",
      "description": "Specific type to convey a list of string for specific information type ( via qualifier) in specific character set, or language",
      "type": "object",
      "properties": {
        "text": {
          "description": "Free Text",
          "example": "A description",
          "type": "string"
        },
        "lang": {
          "description": "see RFC 5646",
          "example": "fr-FR",
          "type": "string"
        }
      }
    },
    "acceptedPayments": {
      "title": "HotelProduct_PaymentPolicy",
      "description": "Accepted Payment Methods and Card Types. Several Payment Methods and Card Types may be available.",
      "type": "object",
      "properties": {
        "creditCards": {
          "description": "Accepted Payment Card Types for the `method` CREDIT_CARD",
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 2,
            "maxLength": 2,
            "pattern": "^[A-Z]{2}$"
          },
          "minLength": 2,
          "maxLength": 2,
          "pattern": "^[A-Z]{2}$"
        },
        "methods": {
          "description": "Accepted Payment Methods",
          "type": "array",
          "items": {
            "$ref": "#/definitions/Method"
          }
        }
      }
    }
  }
}