{
  "$schema": "https://json-structure.org/draft/v0/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/amadeus/refs/heads/main/json-structure/hotel-booking-v1-payment-structure.json",
  "title": "Payment",
  "description": "form of payment (mandatory in case of `acceptedPayments`/`methods`)",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer"
    },
    "method": {
      "type": "string",
      "description": "The Payment Methods:\n * creditCard (CC) - Payment Cards in `creditCards` are accepted           "
    },
    "card": {
      "type": "object",
      "description": "payment card details (mandatory in case of `method` creditCard)"
    }
  },
  "required": [
    "method"
  ]
}