{
  "openapi": "3.0.1",
  "info": {
    "title": "OpenAPI definition",
    "version": "v0"
  },
  "servers": [
    {
      "url": "https://api-qa.gauvendi.com",
      "description": "Generated server url"
    }
  ],
  "security": [
    {
      "gvd-key-id": [],
      "gvd-key-secret": []
    }
  ],
  "paths": {
    "/reservation/v0/{reservationId}/cancel": {
      "put": {
        "tags": ["Reservation"],
        "summary": "Cancel a reservation.",
        "description": "Cancel a specific reservation which is in status 'Confirmed' and where the arrival time is in the future.\n\nThis changes the status to 'CANCELLED'.\n\nYou must have this scope: 'booking.reservation'.\n",
        "operationId": "cancelBooking",
        "parameters": [
          {
            "name": "reservationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Cancel reservation successfully."
          },
          "400": {
            "description": "Bad Request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "example": "You don't have permission to perform this operation!"
              }
            }
          },
          "404": {
            "description": "Not Found"
          },
          "422": {
            "description": "Validation errors in the request body or query params."
          },
          "429": {
            "description": "Too Many Requests",
            "headers": {
              "X-Retry-After": {
                "description": "Too many requests for current api key!",
                "content": {
                  "Retry after seconds": {
                    "example": 60
                  }
                }
              }
            }
          },
          "500": {
            "description": "An unexpected error occurred."
          },
          "503": {
            "description": "The server is currently unavailable. Please try later."
          }
        }
      }
    },
    "/booking/v0/bookings": {
      "get": {
        "tags": ["Booking"],
        "operationId": "getBookingList",
        "parameters": [
          {
            "name": "propertyId",
            "in": "query",
            "description": "The id of a property in your organization",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "description": "Total items return for each request",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 10
            }
          },
          {
            "name": "pageIndex",
            "in": "query",
            "description": "The index of current page",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 0
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Return a list of booking",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Booking"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "example": "You don't have permission to perform this operation!"
              }
            }
          },
          "404": {
            "description": "Not Found"
          },
          "422": {
            "description": "Validation errors in the request body or query params."
          },
          "429": {
            "description": "Too Many Requests",
            "headers": {
              "X-Retry-After": {
                "description": "Too many requests for current api key!",
                "content": {
                  "Retry after seconds": {
                    "example": 60
                  }
                }
              }
            }
          },
          "500": {
            "description": "An unexpected error occurred."
          },
          "503": {
            "description": "The server is currently unavailable. Please try later."
          }
        }
      },
      "post": {
        "tags": ["Booking"],
        "summary": "Creates a booking with one or more reservations",
        "description": "Creates a booking with booking info and list of reservations as input. You must have scope: 'booking.booking' to access this api.\n",
        "operationId": "createBooking",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateBookingInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Create booking successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateBookingResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "example": "You don't have permission to perform this operation!"
              }
            }
          },
          "404": {
            "description": "Not Found"
          },
          "422": {
            "description": "Validation errors in the request body or query params."
          },
          "429": {
            "description": "Too Many Requests",
            "headers": {
              "X-Retry-After": {
                "description": "Too many requests for current api key!",
                "content": {
                  "Retry after seconds": {
                    "example": 60
                  }
                }
              }
            }
          },
          "500": {
            "description": "An unexpected error occurred."
          },
          "503": {
            "description": "The server is currently unavailable. Please try later."
          }
        }
      }
    },
    "/api/v0/api-keys": {
      "post": {
        "tags": ["api-key-controller"],
        "operationId": "createKey",
        "parameters": [
          {
            "name": "organization-id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ApiKeyPair"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "example": "You don't have permission to perform this operation!"
              }
            }
          },
          "404": {
            "description": "Not Found"
          },
          "422": {
            "description": "Validation errors in the request body or query params."
          },
          "429": {
            "description": "Too Many Requests",
            "headers": {
              "X-Retry-After": {
                "description": "Too many requests for current api key!",
                "content": {
                  "Retry after seconds": {
                    "example": 60
                  }
                }
              }
            }
          },
          "500": {
            "description": "An unexpected error occurred."
          },
          "503": {
            "description": "The server is currently unavailable. Please try later."
          }
        }
      }
    },
    "/setting/v0/age-categories": {
      "get": {
        "tags": ["Age Category"],
        "summary": "Get an age category list",
        "description": "Get an age category list. You must have scope: 'rate-plan.service' to access this api.\n",
        "operationId": "getAgeCategoryList",
        "parameters": [
          {
            "name": "property_id",
            "in": "query",
            "description": "The id of property",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page_size",
            "in": "query",
            "description": "Total items return for each request",
            "required": false,
            "schema": {
              "maximum": 50,
              "type": "integer",
              "format": "int32",
              "default": 10
            }
          },
          {
            "name": "page_index",
            "in": "query",
            "description": "The index of current page",
            "required": false,
            "schema": {
              "minimum": 0,
              "type": "integer",
              "format": "int32",
              "default": 0
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Return list of all age category in property.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/HotelAmenity"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "example": "You don't have permission to perform this operation!"
              }
            }
          },
          "404": {
            "description": "Not Found"
          },
          "422": {
            "description": "Validation errors in the request body or query params."
          },
          "429": {
            "description": "Too Many Requests",
            "headers": {
              "X-Retry-After": {
                "description": "Too many requests for current api key!",
                "content": {
                  "Retry after seconds": {
                    "example": 60
                  }
                }
              }
            }
          },
          "500": {
            "description": "An unexpected error occurred."
          },
          "503": {
            "description": "The server is currently unavailable. Please try later."
          }
        }
      }
    },
    "/setting/v0/age-categories/{id}": {
      "get": {
        "tags": ["Age Category"],
        "summary": "Get an age category",
        "description": "Get an age category. You must have scope: 'rate-plan.service' to access this api.\n",
        "operationId": "getAgeCategoryDetail",
        "parameters": [
          {
            "name": "property_id",
            "in": "query",
            "description": "The id of property which holds age category",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "description": "The id of service",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Return all of the data of age category.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HotelAmenity"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "example": "You don't have permission to perform this operation!"
              }
            }
          },
          "404": {
            "description": "Not Found"
          },
          "422": {
            "description": "Validation errors in the request body or query params."
          },
          "429": {
            "description": "Too Many Requests",
            "headers": {
              "X-Retry-After": {
                "description": "Too many requests for current api key!",
                "content": {
                  "Retry after seconds": {
                    "example": 60
                  }
                }
              }
            }
          },
          "500": {
            "description": "An unexpected error occurred."
          },
          "503": {
            "description": "The server is currently unavailable. Please try later."
          }
        }
      }
    },
    "/sales-plan/v0/services": {
      "get": {
        "tags": ["Service"],
        "summary": "Get a sales plan list",
        "description": "Get a sales plan list. You must have scope: 'rate-plan.service' to access this api.\n",
        "operationId": "getProductAvailabilityList",
        "parameters": [
          {
            "name": "property_id",
            "in": "query",
            "description": "The id of property",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page_size",
            "in": "query",
            "description": "Total items return for each request",
            "required": false,
            "schema": {
              "maximum": 50,
              "type": "integer",
              "format": "int32",
              "default": 10
            }
          },
          {
            "name": "page_index",
            "in": "query",
            "description": "The index of current page",
            "required": false,
            "schema": {
              "minimum": 0,
              "type": "integer",
              "format": "int32",
              "default": 0
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Return list of all service in property.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/HotelAmenity"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "example": "You don't have permission to perform this operation!"
              }
            }
          },
          "404": {
            "description": "Not Found"
          },
          "422": {
            "description": "Validation errors in the request body or query params."
          },
          "429": {
            "description": "Too Many Requests",
            "headers": {
              "X-Retry-After": {
                "description": "Too many requests for current api key!",
                "content": {
                  "Retry after seconds": {
                    "example": 60
                  }
                }
              }
            }
          },
          "500": {
            "description": "An unexpected error occurred."
          },
          "503": {
            "description": "The server is currently unavailable. Please try later."
          }
        }
      }
    },
    "/sales-plan/v0/services/{id}": {
      "get": {
        "tags": ["Service"],
        "summary": "Get an extra service",
        "description": "Get an extra service. You must have scope: 'rate-plan.service' to access this api.\n",
        "operationId": "getProductAvailabilityDetail",
        "parameters": [
          {
            "name": "property_id",
            "in": "query",
            "description": "The id of property which holds services",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "description": "The id of service",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Return all of the data of service.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HotelAmenity"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "example": "You don't have permission to perform this operation!"
              }
            }
          },
          "404": {
            "description": "Not Found"
          },
          "422": {
            "description": "Validation errors in the request body or query params."
          },
          "429": {
            "description": "Too Many Requests",
            "headers": {
              "X-Retry-After": {
                "description": "Too many requests for current api key!",
                "content": {
                  "Retry after seconds": {
                    "example": 60
                  }
                }
              }
            }
          },
          "500": {
            "description": "An unexpected error occurred."
          },
          "503": {
            "description": "The server is currently unavailable. Please try later."
          }
        }
      }
    },
    "/sales-plan/v0/sales-plans": {
      "get": {
        "tags": ["Sales Plan"],
        "summary": "Get sales plan list",
        "description": "Get sales plan list. You must have scope: 'rate-plan.rate-plan' to access this api.\n",
        "operationId": "getSalesPlanList",
        "parameters": [
          {
            "name": "property_id",
            "in": "query",
            "description": "The id of property",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page_size",
            "in": "query",
            "description": "Total items return for each request",
            "required": false,
            "schema": {
              "maximum": 50,
              "type": "integer",
              "format": "int32",
              "default": 10
            }
          },
          {
            "name": "page_index",
            "in": "query",
            "description": "The index of current page",
            "required": false,
            "schema": {
              "minimum": 0,
              "type": "integer",
              "format": "int32",
              "default": 0
            }
          },
          {
            "name": "promo_code_list",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "channels",
            "in": "query",
            "description": "Distribution channel list, seperated by , comma.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "promo_code",
            "in": "query",
            "description": "String promo code seperated by , for multiples code. If not specify this field only sales plan public will be exposed"
          }
        ],
        "responses": {
          "200": {
            "description": "Return list of available sales plan in property.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/RatePlan"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "example": "You don't have permission to perform this operation!"
              }
            }
          },
          "404": {
            "description": "Not Found"
          },
          "422": {
            "description": "Validation errors in the request body or query params."
          },
          "429": {
            "description": "Too Many Requests",
            "headers": {
              "X-Retry-After": {
                "description": "Too many requests for current api key!",
                "content": {
                  "Retry after seconds": {
                    "example": 60
                  }
                }
              }
            }
          },
          "500": {
            "description": "An unexpected error occurred."
          },
          "503": {
            "description": "The server is currently unavailable. Please try later."
          }
        }
      }
    },
    "/sales-plan/v0/sales-plans/{id}": {
      "get": {
        "tags": ["Sales Plan"],
        "summary": "Get a sales plan",
        "description": "Get a sales plan. You must have scope: 'rate-plan.rate-plan' to access this api.\n",
        "operationId": "getSalesPlanDetail",
        "parameters": [
          {
            "name": "property_id",
            "in": "query",
            "description": "The id of property which holds available product",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "description": "The id of available product",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Return the id-matched sales plan in property.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/RatePlan"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "example": "You don't have permission to perform this operation!"
              }
            }
          },
          "404": {
            "description": "Not Found"
          },
          "422": {
            "description": "Validation errors in the request body or query params."
          },
          "429": {
            "description": "Too Many Requests",
            "headers": {
              "X-Retry-After": {
                "description": "Too many requests for current api key!",
                "content": {
                  "Retry after seconds": {
                    "example": 60
                  }
                }
              }
            }
          },
          "500": {
            "description": "An unexpected error occurred."
          },
          "503": {
            "description": "The server is currently unavailable. Please try later."
          }
        }
      }
    },
    "/sales-plan/v0/rates": {
      "get": {
        "tags": ["Rate"],
        "summary": "Get a sale plan rates list by product or/and sales plan",
        "description": "Get a sale plan rates list by product or/and sales plan. You must have scope: 'rate-plan.rate' to access this api.\n",
        "operationId": "getSalePlanRateList",
        "parameters": [
          {
            "name": "property_id",
            "in": "query",
            "description": "The id of property",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "product_id",
            "in": "query",
            "description": "Id product list, seperated by ',' comma. i.e",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sales_plan_id",
            "in": "query",
            "description": "Id sales plan list, seperated by ',' comma. i.e",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "number_adults",
            "in": "query",
            "description": "Number of adults",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "fromDate",
            "in": "query",
            "description": "Start time for filter, formatted in: yyyy-MM-dd",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "toDate",
            "in": "query",
            "description": "End time for filter, formatted in: yyyy-MM-dd",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "promo_code_list",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "include_city_tax",
            "in": "query",
            "description": "Included city tax or not",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false
            },
            "example": false
          },
          {
            "name": "include_tax",
            "in": "query",
            "description": "Include tax or not",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false
            },
            "example": false
          },
          {
            "name": "include_extra_tax",
            "in": "query",
            "description": "Include extra tax or not",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false
            },
            "example": false
          },
          {
            "name": "rounding",
            "in": "query",
            "description": "Rounding or not",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false
            },
            "example": false
          }
        ],
        "responses": {
          "200": {
            "description": "Return rate list of sales plans or/and products",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Rate"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "example": "You don't have permission to perform this operation!"
              }
            }
          },
          "404": {
            "description": "Not Found"
          },
          "422": {
            "description": "Validation errors in the request body or query params."
          },
          "429": {
            "description": "Too Many Requests",
            "headers": {
              "X-Retry-After": {
                "description": "Too many requests for current api key!",
                "content": {
                  "Retry after seconds": {
                    "example": 60
                  }
                }
              }
            }
          },
          "500": {
            "description": "An unexpected error occurred."
          },
          "503": {
            "description": "The server is currently unavailable. Please try later."
          }
        }
      }
    },
    "/restriction/v0/restrictions": {
      "get": {
        "tags": ["Restriction"],
        "summary": "Get a restriction list",
        "description": "Get a restriction list. You must have scope: 'restriction' to access this api.\n",
        "operationId": "getRestrictionList",
        "parameters": [
          {
            "name": "property_id",
            "in": "query",
            "description": "The id of property",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sales_plan_id",
            "in": "query",
            "description": "The id of sales plan seperated by , for multiple ids. If not defined sales plan only restriction for public sales plan return",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "product_id",
            "in": "query",
            "description": "The id of product seperated by , for multiple ids",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "fromDate",
            "in": "query",
            "description": "Start time for filter, formatted in: yyyy-MM-dd",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "toDate",
            "in": "query",
            "description": "End time for filter, formatted in: yyyy-MM-dd",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Return list of all restriction in property.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Restriction"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "example": "You don't have permission to perform this operation!"
              }
            }
          },
          "404": {
            "description": "Not Found"
          },
          "422": {
            "description": "Validation errors in the request body or query params."
          },
          "429": {
            "description": "Too Many Requests",
            "headers": {
              "X-Retry-After": {
                "description": "Too many requests for current api key!",
                "content": {
                  "Retry after seconds": {
                    "example": 60
                  }
                }
              }
            }
          },
          "500": {
            "description": "An unexpected error occurred."
          },
          "503": {
            "description": "The server is currently unavailable. Please try later."
          }
        }
      }
    },
    "/reservation/v0/reservations": {
      "get": {
        "tags": ["Reservation"],
        "operationId": "getReservationList",
        "parameters": [
          {
            "name": "propertyId",
            "in": "query",
            "description": "The id of a property in your organization",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bookingIdList",
            "in": "query",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              }
            }
          },
          {
            "name": "bookingNumberList",
            "in": "query",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "statusList",
            "in": "query",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "CANCELLED",
                  "CHECKED_IN",
                  "CHECKED_OUT",
                  "COMPLETED",
                  "CONFIRMED",
                  "RESERVED",
                  "PROPOSED",
                  "RELEASED"
                ]
              }
            }
          },
          {
            "name": "dateFilter",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "ARRIVAL",
                "DEPARTURE",
                "CREATION",
                "MODIFICATION",
                "STAYING"
              ]
            }
          },
          {
            "name": "fromDate",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "toDate",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 10
            },
            "example": 10
          },
          {
            "name": "pageIndex",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 0
            },
            "example": 0
          }
        ],
        "responses": {
          "200": {
            "description": "Return a list of reservation",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Reservation"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "example": "You don't have permission to perform this operation!"
              }
            }
          },
          "404": {
            "description": "Not Found"
          },
          "422": {
            "description": "Validation errors in the request body or query params."
          },
          "429": {
            "description": "Too Many Requests",
            "headers": {
              "X-Retry-After": {
                "description": "Too many requests for current api key!",
                "content": {
                  "Retry after seconds": {
                    "example": 60
                  }
                }
              }
            }
          },
          "500": {
            "description": "An unexpected error occurred."
          },
          "503": {
            "description": "The server is currently unavailable. Please try later."
          }
        }
      }
    },
    "/reservation/v0/reservation/{id}": {
      "get": {
        "tags": ["Reservation"],
        "operationId": "getReservationDetail",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "propertyId",
            "in": "query",
            "description": "The id of a property in your organization",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bookingIdList",
            "in": "query",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              }
            }
          },
          {
            "name": "bookingNumberList",
            "in": "query",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "dateFilter",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "ARRIVAL",
                "DEPARTURE",
                "CREATION",
                "MODIFICATION",
                "STAYING"
              ]
            }
          },
          {
            "name": "statusList",
            "in": "query",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "CANCELLED",
                  "CHECKED_IN",
                  "CHECKED_OUT",
                  "COMPLETED",
                  "CONFIRMED",
                  "RESERVED",
                  "PROPOSED",
                  "RELEASED"
                ]
              }
            }
          },
          {
            "name": "fromDate",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "toDate",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Return a list of reservation",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Reservation"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "example": "You don't have permission to perform this operation!"
              }
            }
          },
          "404": {
            "description": "Not Found"
          },
          "422": {
            "description": "Validation errors in the request body or query params."
          },
          "429": {
            "description": "Too Many Requests",
            "headers": {
              "X-Retry-After": {
                "description": "Too many requests for current api key!",
                "content": {
                  "Retry after seconds": {
                    "example": 60
                  }
                }
              }
            }
          },
          "500": {
            "description": "An unexpected error occurred."
          },
          "503": {
            "description": "The server is currently unavailable. Please try later."
          }
        }
      }
    },
    "/organization/v0/properties": {
      "get": {
        "tags": ["Property"],
        "summary": "Get a property list",
        "description": "Get property list in specific organization. You must have scope: 'organization.property' to access this api.\n",
        "operationId": "getPropertyListById",
        "parameters": [
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "maximum": 50,
              "type": "integer",
              "format": "int32",
              "default": 10
            }
          },
          {
            "name": "page_index",
            "in": "query",
            "required": false,
            "schema": {
              "minimum": 0,
              "type": "integer",
              "format": "int32",
              "default": 0
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Return list of all property in organization.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Property"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "example": "You don't have permission to perform this operation!"
              }
            }
          },
          "404": {
            "description": "Not Found"
          },
          "422": {
            "description": "Validation errors in the request body or query params."
          },
          "429": {
            "description": "Too Many Requests",
            "headers": {
              "X-Retry-After": {
                "description": "Too many requests for current api key!",
                "content": {
                  "Retry after seconds": {
                    "example": 60
                  }
                }
              }
            }
          },
          "500": {
            "description": "An unexpected error occurred."
          },
          "503": {
            "description": "The server is currently unavailable. Please try later."
          }
        }
      }
    },
    "/organization/v0/properties/{propertyId}": {
      "get": {
        "tags": ["Property"],
        "summary": "Get a property",
        "description": "Get property detail information by id. You must have scope: 'organization.property' to access this api.\n",
        "operationId": "getPropertyDetailById",
        "parameters": [
          {
            "name": "propertyId",
            "in": "path",
            "description": "The property id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Return all the property data.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Property"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "example": "You don't have permission to perform this operation!"
              }
            }
          },
          "404": {
            "description": "Not Found"
          },
          "422": {
            "description": "Validation errors in the request body or query params."
          },
          "429": {
            "description": "Too Many Requests",
            "headers": {
              "X-Retry-After": {
                "description": "Too many requests for current api key!",
                "content": {
                  "Retry after seconds": {
                    "example": 60
                  }
                }
              }
            }
          },
          "500": {
            "description": "An unexpected error occurred."
          },
          "503": {
            "description": "The server is currently unavailable. Please try later."
          }
        }
      }
    },
    "/inventory/v0/units": {
      "get": {
        "tags": ["Unit"],
        "summary": "Get an unit list, filtered by the specified parameters.",
        "description": "Get unit list in specific property. You must have scope: 'inventory.unit' to access this api.\n",
        "operationId": "getUnitList",
        "parameters": [
          {
            "name": "property_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page_size",
            "in": "query",
            "description": "Total items return for each request",
            "required": false,
            "schema": {
              "maximum": 50,
              "type": "integer",
              "format": "int32",
              "default": 10
            }
          },
          {
            "name": "page_index",
            "in": "query",
            "description": "The index of current page",
            "required": false,
            "schema": {
              "minimum": 0,
              "type": "integer",
              "format": "int32",
              "default": 0
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Return list of all unit in property.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Room"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "example": "You don't have permission to perform this operation!"
              }
            }
          },
          "404": {
            "description": "Not Found"
          },
          "422": {
            "description": "Validation errors in the request body or query params."
          },
          "429": {
            "description": "Too Many Requests",
            "headers": {
              "X-Retry-After": {
                "description": "Too many requests for current api key!",
                "content": {
                  "Retry after seconds": {
                    "example": 60
                  }
                }
              }
            }
          },
          "500": {
            "description": "An unexpected error occurred."
          },
          "503": {
            "description": "The server is currently unavailable. Please try later."
          }
        }
      }
    },
    "/inventory/v0/units/{id}": {
      "get": {
        "tags": ["Unit"],
        "summary": "Get an unit",
        "description": "Get unit detail information. You must have scope: 'inventory.unit' to access this api.\n",
        "operationId": "getUnit",
        "parameters": [
          {
            "name": "property_id",
            "in": "query",
            "description": "The id of property in organization",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "description": "The id of unit in property",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Return all of the data of unit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Room"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "example": "You don't have permission to perform this operation!"
              }
            }
          },
          "404": {
            "description": "Not Found"
          },
          "422": {
            "description": "Validation errors in the request body or query params."
          },
          "429": {
            "description": "Too Many Requests",
            "headers": {
              "X-Retry-After": {
                "description": "Too many requests for current api key!",
                "content": {
                  "Retry after seconds": {
                    "example": 60
                  }
                }
              }
            }
          },
          "500": {
            "description": "An unexpected error occurred."
          },
          "503": {
            "description": "The server is currently unavailable. Please try later."
          }
        }
      }
    },
    "/inventory/v0/products": {
      "get": {
        "tags": ["Product"],
        "summary": "Get a product list, filtered by the specified parameters. (MRPC, RPC,…)",
        "description": "Get product list in specific property. You must have scope: 'inventory.product' to access this api.\n",
        "operationId": "getProductList",
        "parameters": [
          {
            "name": "property_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "capacity",
            "in": "query",
            "description": "Get all products which maximum capacity equals or is larger than the input value",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "capacity_includes_extra_bed",
            "in": "query",
            "description": "Maximum capacity of products is calculated by both default capacity and extra beds",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": true
            }
          },
          {
            "name": "page_size",
            "in": "query",
            "description": "Total items return for each request",
            "required": false,
            "schema": {
              "maximum": 50,
              "type": "integer",
              "format": "int32",
              "default": 10
            }
          },
          {
            "name": "page_index",
            "in": "query",
            "description": "The index of current page",
            "required": false,
            "schema": {
              "minimum": 0,
              "type": "integer",
              "format": "int32",
              "default": 0
            }
          },
          {
            "name": "filter",
            "in": "query",
            "description": "Filter string with type and status it must be seperated with ; comma to specific each type of filter and for each value \nit will be formatted as \"key:value\". With value in the mentioned above it will be formatted with 2 types:\n\n    1. Single\n    2. Multiple: for this type you must form it in string and seperated with , comma.\n\nAllowed values are:\n\n    1. type: RFC, ERFC, MRFC\n    2. status: ACTIVE, INACTIVE, DRAFT\n",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "type:RFC,ERFC,MRFC;status:ACTIVE"
          }
        ],
        "responses": {
          "200": {
            "description": "Return list of all product in property.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Product"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "example": "You don't have permission to perform this operation!"
              }
            }
          },
          "404": {
            "description": "Not Found"
          },
          "422": {
            "description": "Validation errors in the request body or query params."
          },
          "429": {
            "description": "Too Many Requests",
            "headers": {
              "X-Retry-After": {
                "description": "Too many requests for current api key!",
                "content": {
                  "Retry after seconds": {
                    "example": 60
                  }
                }
              }
            }
          },
          "500": {
            "description": "An unexpected error occurred."
          },
          "503": {
            "description": "The server is currently unavailable. Please try later."
          }
        }
      }
    },
    "/inventory/v0/products/{id}": {
      "get": {
        "tags": ["Product"],
        "summary": "Get a product",
        "description": "Get product detail information. You must have scope: 'inventory.product' to access this api.\n",
        "operationId": "getProductDetail",
        "parameters": [
          {
            "name": "property_id",
            "in": "query",
            "description": "The id of property in organization",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "description": "The id of product in property",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Return all of the data of product.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Product"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "example": "You don't have permission to perform this operation!"
              }
            }
          },
          "404": {
            "description": "Not Found"
          },
          "422": {
            "description": "Validation errors in the request body or query params."
          },
          "429": {
            "description": "Too Many Requests",
            "headers": {
              "X-Retry-After": {
                "description": "Too many requests for current api key!",
                "content": {
                  "Retry after seconds": {
                    "example": 60
                  }
                }
              }
            }
          },
          "500": {
            "description": "An unexpected error occurred."
          },
          "503": {
            "description": "The server is currently unavailable. Please try later."
          }
        }
      }
    },
    "/feature/v0/features": {
      "get": {
        "tags": ["Feature"],
        "summary": "Get a list feature of an category",
        "description": "Get feature detail information. You must have scope: 'inventory.feature' to access this api.\n",
        "operationId": "getFeatureListByCategory",
        "parameters": [
          {
            "name": "property_id",
            "in": "query",
            "description": "The id of property in organization",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "category_id",
            "in": "query",
            "description": "The id of category",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "type",
            "in": "query",
            "description": "Type of feature",
            "required": false,
            "schema": {
              "type": "string",
              "default": "RETAIL"
            },
            "example": "RETAIL"
          }
        ],
        "responses": {
          "200": {
            "description": "Return all of the data of product.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Feature"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "example": "You don't have permission to perform this operation!"
              }
            }
          },
          "404": {
            "description": "Not Found"
          },
          "422": {
            "description": "Validation errors in the request body or query params."
          },
          "429": {
            "description": "Too Many Requests",
            "headers": {
              "X-Retry-After": {
                "description": "Too many requests for current api key!",
                "content": {
                  "Retry after seconds": {
                    "example": 60
                  }
                }
              }
            }
          },
          "500": {
            "description": "An unexpected error occurred."
          },
          "503": {
            "description": "The server is currently unavailable. Please try later."
          }
        }
      }
    },
    "/feature/v0/features/{id}": {
      "get": {
        "tags": ["Feature"],
        "summary": "Get a feature",
        "description": "Get feature detail information. You must have scope: 'inventory.feature' to access this api.\n",
        "operationId": "getFeatureDetail",
        "parameters": [
          {
            "name": "property_id",
            "in": "query",
            "description": "The id of property in organization",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "description": "The id of feature in property",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "type",
            "in": "query",
            "description": "Type of feature",
            "required": false,
            "schema": {
              "type": "string",
              "default": "RETAIL"
            },
            "example": "RETAIL, STANDARD"
          }
        ],
        "responses": {
          "200": {
            "description": "Return all of the data of feature.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Feature"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "example": "You don't have permission to perform this operation!"
              }
            }
          },
          "404": {
            "description": "Not Found"
          },
          "422": {
            "description": "Validation errors in the request body or query params."
          },
          "429": {
            "description": "Too Many Requests",
            "headers": {
              "X-Retry-After": {
                "description": "Too many requests for current api key!",
                "content": {
                  "Retry after seconds": {
                    "example": 60
                  }
                }
              }
            }
          },
          "500": {
            "description": "An unexpected error occurred."
          },
          "503": {
            "description": "The server is currently unavailable. Please try later."
          }
        }
      }
    },
    "/feature/v0/categories": {
      "get": {
        "tags": ["Feature"],
        "summary": "Get a list of feature category",
        "description": "Get a list of feature category. You must have scope: 'inventory.feature' to access this api.\n",
        "operationId": "getFeatureCategoryList",
        "parameters": [
          {
            "name": "property_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page_size",
            "in": "query",
            "description": "Total items return for each request",
            "required": false,
            "schema": {
              "maximum": 50,
              "type": "integer",
              "format": "int32",
              "default": 10
            }
          },
          {
            "name": "page_index",
            "in": "query",
            "description": "The index of current page",
            "required": false,
            "schema": {
              "minimum": 0,
              "type": "integer",
              "format": "int32",
              "default": 0
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Return list of all product in property.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/FeatureCategory"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "example": "You don't have permission to perform this operation!"
              }
            }
          },
          "404": {
            "description": "Not Found"
          },
          "422": {
            "description": "Validation errors in the request body or query params."
          },
          "429": {
            "description": "Too Many Requests",
            "headers": {
              "X-Retry-After": {
                "description": "Too many requests for current api key!",
                "content": {
                  "Retry after seconds": {
                    "example": 60
                  }
                }
              }
            }
          },
          "500": {
            "description": "An unexpected error occurred."
          },
          "503": {
            "description": "The server is currently unavailable. Please try later."
          }
        }
      }
    },
    "/booking/v0/bookings/{id}": {
      "get": {
        "tags": ["Booking"],
        "operationId": "getBooking",
        "parameters": [
          {
            "name": "propertyId",
            "in": "query",
            "description": "The id of a property in your organization",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Return a list of booking",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Booking"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "example": "You don't have permission to perform this operation!"
              }
            }
          },
          "404": {
            "description": "Not Found"
          },
          "422": {
            "description": "Validation errors in the request body or query params."
          },
          "429": {
            "description": "Too Many Requests",
            "headers": {
              "X-Retry-After": {
                "description": "Too many requests for current api key!",
                "content": {
                  "Retry after seconds": {
                    "example": 60
                  }
                }
              }
            }
          },
          "500": {
            "description": "An unexpected error occurred."
          },
          "503": {
            "description": "The server is currently unavailable. Please try later."
          }
        }
      }
    },
    "/availability/v0/products": {
      "get": {
        "tags": ["Availability"],
        "summary": "Get a list of all available so sell products in a property",
        "description": "Get a list of all available so sell products in a property. You must have scope: 'availability.product' to access this api.\n",
        "operationId": "getProductAvailabilityList_1",
        "parameters": [
          {
            "name": "property_id",
            "in": "query",
            "description": "The id of property",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "product_id",
            "in": "query",
            "description": "The id of product seperated by , for multiple ids",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "fromDate",
            "in": "query",
            "description": "Start time for filter, formatted in: yyyy-MM-dd",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "toDate",
            "in": "query",
            "description": "End time for filter, formatted in: yyyy-MM-dd",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Return list of all available product in property.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ProductAvailability"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "example": "You don't have permission to perform this operation!"
              }
            }
          },
          "404": {
            "description": "Not Found"
          },
          "422": {
            "description": "Validation errors in the request body or query params."
          },
          "429": {
            "description": "Too Many Requests",
            "headers": {
              "X-Retry-After": {
                "description": "Too many requests for current api key!",
                "content": {
                  "Retry after seconds": {
                    "example": 60
                  }
                }
              }
            }
          },
          "500": {
            "description": "An unexpected error occurred."
          },
          "503": {
            "description": "The server is currently unavailable. Please try later."
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "CreateBookingInput": {
        "required": [
          "adults",
          "arrival",
          "booker",
          "departure",
          "propertyId",
          "reservations"
        ],
        "type": "object",
        "properties": {
          "propertyId": {
            "type": "string",
            "description": "The id of a property"
          },
          "arrival": {
            "type": "string",
            "description": "Date time of arrival in UTC or with UTC offset as defined in ISO8601:2004",
            "format": "date-time"
          },
          "departure": {
            "type": "string",
            "description": "Date time of departure in UTC or with UTC offset as defined in ISO8601:2004",
            "format": "date-time"
          },
          "reservations": {
            "type": "array",
            "description": "List of reservations to create",
            "items": {
              "$ref": "#/components/schemas/CreateReservationInput"
            }
          },
          "specialRequest": {
            "type": "string",
            "description": "Booker / Guest note"
          },
          "booker": {
            "$ref": "#/components/schemas/GuestInput"
          },
          "source": {
            "type": "string",
            "description": "Source of the booking"
          },
          "bookingLanguage": {
            "type": "string",
            "description": "Preferred contact two-letter language code (ISO Alpha-2)"
          },
          "adults": {
            "type": "integer",
            "description": "Number of adults",
            "format": "int32"
          },
          "childAgeList": {
            "type": "array",
            "description": "Ages of the children",
            "items": {
              "type": "integer",
              "description": "Ages of the children",
              "format": "int32"
            }
          }
        }
      },
      "CreateReservationInput": {
        "type": "object",
        "properties": {
          "productCode": {
            "type": "string",
            "description": "Code of product"
          },
          "salesPlanCode": {
            "type": "string",
            "description": "Code of sales plan"
          },
          "primaryGuest": {
            "$ref": "#/components/schemas/GuestInput"
          },
          "additionalGuests": {
            "type": "array",
            "description": "Additional guests of reservation",
            "items": {
              "$ref": "#/components/schemas/GuestInput"
            }
          },
          "adult": {
            "type": "integer",
            "description": "Number of adults",
            "format": "int32"
          },
          "childrenAgeList": {
            "type": "array",
            "description": "Ages of children",
            "items": {
              "type": "integer",
              "description": "Ages of children",
              "format": "int32"
            }
          },
          "services": {
            "type": "array",
            "description": "Additional services (extras, add-ons) that should be added to the reservation",
            "items": {
              "$ref": "#/components/schemas/ServiceInput"
            }
          },
          "isLocked": {
            "type": "boolean",
            "description": "List of reservations to create"
          }
        },
        "description": "List of reservations to create"
      },
      "GuestInput": {
        "required": ["emailAddress", "firstName", "lastName"],
        "type": "object",
        "properties": {
          "firstName": {
            "type": "string",
            "description": "First name of the guest"
          },
          "lastName": {
            "type": "string",
            "description": "Last name of the guest"
          },
          "emailAddress": {
            "type": "string",
            "description": "Email of the guest"
          },
          "address": {
            "type": "string",
            "description": "Address of the guest"
          },
          "postalCode": {
            "type": "string"
          },
          "countryCode": {
            "maxLength": 2,
            "minLength": 0,
            "type": "string",
            "description": "Two-letter code of country"
          },
          "city": {
            "type": "string"
          },
          "phoneInfo": {
            "$ref": "#/components/schemas/Phone"
          }
        },
        "description": "Information of booker"
      },
      "Phone": {
        "type": "object",
        "properties": {
          "phoneCode": {
            "type": "string"
          },
          "phoneNumber": {
            "type": "string"
          }
        },
        "description": "Phone info of guest"
      },
      "ServiceInput": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "Code of service"
          },
          "count": {
            "type": "integer",
            "description": "Quantity of service",
            "format": "int32"
          }
        },
        "description": "Additional services (extras, add-ons) that should be added to the reservation"
      },
      "CreateBookingResponse": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Id of created booking"
          },
          "bookingNumber": {
            "type": "string",
            "description": "Internal number of created booking"
          },
          "reservations": {
            "type": "array",
            "description": "Created reservations",
            "items": {
              "$ref": "#/components/schemas/CreateReservationResponse"
            }
          },
          "status": {
            "type": "string",
            "description": "Status of booking",
            "enum": ["RESERVED", "CONFIRMED", "CANCELLED"]
          },
          "grossAmount": {
            "type": "string",
            "description": "Total gross amount of booking"
          },
          "netAmount": {
            "type": "string",
            "description": "Total net amount of booking"
          },
          "taxAmount": {
            "type": "string",
            "description": "Total tax amount of booking"
          }
        }
      },
      "CreateReservationResponse": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Id of created reservation"
          },
          "reservationNumber": {
            "type": "string",
            "description": "Internal number of created reservation"
          },
          "grossAmount": {
            "type": "string",
            "description": "Total gross amount of reservation"
          },
          "netAmount": {
            "type": "string",
            "description": "Total net amount of reservation"
          },
          "taxAmount": {
            "type": "string",
            "description": "Total tax amount of reservation"
          }
        },
        "description": "Created reservations"
      },
      "ApiKeyPair": {
        "type": "object",
        "properties": {
          "api_key": {
            "type": "string"
          },
          "secret": {
            "type": "string"
          }
        }
      },
      "AgeCategory": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "fromAge": {
            "type": "integer",
            "format": "int32"
          },
          "toAge": {
            "type": "integer",
            "format": "int32"
          },
          "hotelId": {
            "type": "string",
            "format": "uuid",
            "writeOnly": true
          },
          "propertyId": {
            "type": "string",
            "format": "uuid"
          }
        }
      },
      "HotelAmenity": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "amenityType": {
            "type": "string",
            "enum": ["MEAL_PLAN", "AMENITY", "SERVICE", "EXTRA_BED"]
          },
          "pricingUnit": {
            "type": "string",
            "enum": ["NIGHT", "PERSON", "ROOM", "ITEM", "PER_PERSON_PER_ROOM"]
          },
          "iconImageUrl": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": ["ACTIVE", "INACTIVE", "DRAFT"]
          },
          "translationList": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RatePlanTranslation"
            }
          },
          "distributionChannelList": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": ["GV_SALES_ENGINE", "GV_VOICE"]
            }
          },
          "hotelAmenityPriceList": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/HotelAmenityPrice"
            }
          },
          "sellingType": {
            "type": "string",
            "enum": ["COMBO", "SINGLE"]
          },
          "linkedAmenityCode": {
            "type": "string"
          }
        }
      },
      "HotelAmenityPrice": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "hotelAmenityId": {
            "type": "string",
            "format": "uuid"
          },
          "hotelAgeCategoryId": {
            "type": "string",
            "format": "uuid"
          },
          "hotelAgeCategory": {
            "$ref": "#/components/schemas/AgeCategory"
          },
          "price": {
            "type": "number"
          }
        }
      },
      "RatePlanTranslation": {
        "type": "object",
        "properties": {
          "languageCode": {
            "type": "string",
            "enum": ["DE", "FR", "ES", "IT"]
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          }
        }
      },
      "PaymentTerm": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "hotelId": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "payAtHotel": {
            "type": "number",
            "format": "double"
          },
          "payOnConfirmation": {
            "type": "number",
            "format": "double"
          }
        }
      },
      "RatePlan": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "hotelId": {
            "type": "string",
            "format": "uuid"
          },
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "cancellationFeeUnit": {
            "type": "string",
            "enum": ["PERCENTAGE", "FIX_AMOUNT", "NIGHT"]
          },
          "cancellationFeeValue": {
            "type": "number",
            "format": "double"
          },
          "payAtHotel": {
            "type": "number",
            "format": "double"
          },
          "payOnConfirmation": {
            "type": "number",
            "format": "double"
          },
          "hourPrior": {
            "type": "integer",
            "format": "int32"
          },
          "paymentTerm": {
            "$ref": "#/components/schemas/PaymentTerm"
          },
          "description": {
            "type": "string"
          },
          "displayUnit": {
            "type": "string"
          },
          "hotelCxlPolicyCode": {
            "type": "string"
          },
          "paymentCode": {
            "type": "string"
          },
          "paymentTermCode": {
            "type": "string"
          },
          "mappingRatePlanCode": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": ["PUBLIC", "PROMOTION", "CORPORATE", "GROUP"]
          },
          "status": {
            "type": "string",
            "enum": ["ACTIVE", "ARCHIVE"]
          },
          "roundingMode": {
            "type": "string",
            "enum": ["DOWN", "HALF_ROUND_UP", "NO_ROUNDING", "UP"]
          },
          "isPrimary": {
            "type": "boolean"
          },
          "mrfcPositioningMode": {
            "type": "boolean"
          },
          "rfcAttributeMode": {
            "type": "boolean"
          },
          "pricingMethodology": {
            "type": "string",
            "enum": ["FEATURE_BASED_PRICING", "DERIVED_PRICING"]
          },
          "sellingStrategyType": {
            "type": "string",
            "enum": ["DEFAULT", "LONG_STAY"]
          },
          "translationList": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RatePlanTranslation"
            }
          },
          "distributionChannelList": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": ["GV_SALES_ENGINE", "GV_VOICE"]
            }
          },
          "promoCodeList": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "hotelExtrasCodeList": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "includedHotelExtrasList": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/HotelAmenity"
            }
          },
          "dailySalesPlanAdjustmentList": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RatePlanAdjustment"
            }
          }
        }
      },
      "RatePlanAdjustment": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "hotelId": {
            "type": "string",
            "format": "uuid"
          },
          "ratePlanId": {
            "type": "string",
            "format": "uuid"
          },
          "unit": {
            "type": "string",
            "enum": ["FIXED", "PERCENTAGE"]
          },
          "value": {
            "type": "number"
          },
          "date": {
            "type": "string",
            "format": "date"
          }
        }
      },
      "Rate": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "rfcId": {
            "type": "string",
            "format": "uuid"
          },
          "ratePlanId": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "totalBaseRate": {
            "type": "number"
          },
          "ratePlan": {
            "$ref": "#/components/schemas/RatePlan"
          },
          "dailySellingRateList": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SalesRate"
            }
          }
        }
      },
      "SalesRate": {
        "type": "object",
        "properties": {
          "rfcRatePlanId": {
            "type": "string",
            "format": "uuid"
          },
          "date": {
            "type": "string",
            "format": "date"
          },
          "cityTaxAmount": {
            "type": "number"
          },
          "sellingRate": {
            "type": "number"
          },
          "originalTotalSellingRate": {
            "type": "number"
          },
          "includedExtraServicesRate": {
            "type": "number"
          },
          "roomOnlySellingPrice": {
            "type": "number"
          },
          "taxAmount": {
            "type": "number"
          }
        }
      },
      "DailyRestriction": {
        "type": "object",
        "properties": {
          "date": {
            "type": "string",
            "format": "date"
          },
          "restrictionCode": {
            "type": "string",
            "enum": [
              "RSTR_AVAILABLE_PERIOD",
              "RSTR_CLOSE_TO_ARRIVAL",
              "RSTR_CLOSE_TO_DEPARTURE",
              "RSTR_CLOSE_TO_STAY_SELLABILITY",
              "RSTR_CLOSE_TO_STAY",
              "RSTR_LOS_MAX",
              "RSTR_LOS_MIN",
              "RSTR_MAX_ADVANCE_BOOKING",
              "RSTR_MIN_ADVANCE_BOOKING",
              "RSTR_MIN_LOS_THROUGH",
              "RSTR_STAY_THROUGH_DAY",
              "RSTR_DAY_OF_WEEK_CLOSEOUT"
            ]
          },
          "restrictionValue": {
            "type": "string"
          }
        }
      },
      "Restriction": {
        "type": "object",
        "properties": {
          "propertyId": {
            "type": "string",
            "format": "uuid"
          },
          "salesPlanId": {
            "type": "string",
            "format": "uuid"
          },
          "roomProductId": {
            "type": "string",
            "format": "uuid"
          },
          "dailyRestrictionList": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DailyRestriction"
            }
          }
        }
      },
      "Guest": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "countryId": {
            "type": "string",
            "format": "uuid"
          },
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "emailAddress": {
            "type": "string"
          },
          "address": {
            "type": "string"
          },
          "city": {
            "type": "string"
          },
          "postalCode": {
            "type": "string"
          },
          "phoneNumber": {
            "type": "string"
          },
          "countryNumber": {
            "type": "string"
          },
          "isAdult": {
            "type": "boolean"
          },
          "age": {
            "type": "integer",
            "format": "int32"
          },
          "gender": {
            "type": "string"
          }
        },
        "description": "List of additional guests"
      },
      "HotelRetailCategory": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "iconImageUrl": {
            "type": "string"
          },
          "displaySequence": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "HotelRetailFeature": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "quantity": {
            "type": "integer",
            "format": "int32"
          },
          "baseRate": {
            "type": "number"
          },
          "baseWeight": {
            "type": "integer",
            "format": "int32"
          },
          "hotelRetailCategory": {
            "$ref": "#/components/schemas/HotelRetailCategory"
          },
          "displaySequence": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "HotelStandardFeature": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "iconImageUrl": {
            "type": "string"
          }
        }
      },
      "Product": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": ["RFC", "ERFC", "MRFC", "UNKNOWN"]
          },
          "status": {
            "type": "string",
            "enum": ["DRAFT", "ACTIVE", "INACTIVE", "UNKNOWN"]
          },
          "rfcAllocationSetting": {
            "type": "string",
            "enum": ["DEDUCT", "ALL"]
          },
          "capacityDefault": {
            "type": "integer",
            "format": "int32"
          },
          "maximumAdult": {
            "type": "integer",
            "format": "int32"
          },
          "maximumKid": {
            "type": "integer",
            "format": "int32"
          },
          "capacityExtra": {
            "type": "integer",
            "format": "int32"
          },
          "extraBedAdult": {
            "type": "integer",
            "format": "int32"
          },
          "extraBedKid": {
            "type": "integer",
            "format": "int32"
          },
          "numberOfBedrooms": {
            "type": "integer",
            "format": "int32"
          },
          "space": {
            "type": "integer",
            "format": "int32"
          },
          "distributionChannelList": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": ["GV_SALES_ENGINE", "GV_VOICE"]
            }
          },
          "rfcImageList": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RfcImage"
            }
          },
          "retailFeatureList": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/HotelRetailFeature"
            }
          },
          "standardFeatureList": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/HotelStandardFeature"
            }
          },
          "roomList": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Room"
            }
          },
          "translationList": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RfcTranslation"
            }
          }
        }
      },
      "Reservation": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Reservation id",
            "format": "uuid"
          },
          "reservationNumber": {
            "type": "string",
            "description": "Reservation number"
          },
          "bookingId": {
            "type": "string",
            "description": "Booking id"
          },
          "status": {
            "type": "string",
            "description": "Status",
            "enum": [
              "CANCELLED",
              "CHECKED_IN",
              "CHECKED_OUT",
              "COMPLETED",
              "CONFIRMED",
              "RESERVED",
              "PROPOSED",
              "RELEASED"
            ]
          },
          "checkInUtc": {
            "type": "string",
            "description": "Check-in date & time (UTC)",
            "format": "date-time"
          },
          "checkOutUtc": {
            "type": "string",
            "description": "Check-out date & time (UTC)",
            "format": "date-time"
          },
          "createdUtc": {
            "type": "string",
            "description": "Date & time when reservation was created (UTC)",
            "format": "date-time"
          },
          "updatedUtc": {
            "type": "string",
            "description": "Date & time when reservation was updated (UTC)",
            "format": "date-time"
          },
          "releasedUtc": {
            "type": "string",
            "description": "Date & time when proposal reservation is released (UTC)",
            "format": "date-time"
          },
          "totalBaseAmount": {
            "type": "number",
            "description": "Total amount before tax"
          },
          "taxAmount": {
            "type": "number",
            "description": "Tax amount"
          },
          "cityTaxAmount": {
            "type": "number",
            "description": "City tax amount"
          },
          "totalGrossAmount": {
            "type": "number",
            "description": "Total amount after tax"
          },
          "balance": {
            "type": "number",
            "description": "The amount which booker / guest has not paid yet"
          },
          "primaryGuest": {
            "$ref": "#/components/schemas/Guest"
          },
          "additionalGuest": {
            "type": "array",
            "description": "List of additional guests",
            "items": {
              "$ref": "#/components/schemas/Guest"
            }
          },
          "product": {
            "$ref": "#/components/schemas/Product"
          },
          "reservationAmenityList": {
            "type": "array",
            "description": "reservationAmenityList",
            "items": {
              "$ref": "#/components/schemas/ReservationAmenity"
            }
          },
          "reservationTimeSliceList": {
            "type": "array",
            "description": "reservationTimeSliceList",
            "items": {
              "$ref": "#/components/schemas/ReservationTimeSlice"
            }
          },
          "reservationRoomList": {
            "type": "array",
            "description": "reservationRoomList",
            "items": {
              "$ref": "#/components/schemas/ReservationRoom"
            }
          }
        },
        "description": "Reservation"
      },
      "ReservationAmenity": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "reservationId": {
            "type": "string",
            "format": "uuid"
          },
          "hotelAmenityId": {
            "type": "string",
            "format": "uuid"
          },
          "masterHotelAmenityId": {
            "type": "string",
            "format": "uuid"
          },
          "mappingAmenityCode": {
            "type": "string"
          },
          "reservationAmenityDateList": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ReservationAmenityDate"
            }
          },
          "totalBaseAmount": {
            "type": "number"
          },
          "serviceChargeAmount": {
            "type": "number"
          },
          "taxAmount": {
            "type": "number"
          },
          "totalGrossAmount": {
            "type": "number"
          },
          "ageCategoryCode": {
            "type": "string"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          }
        },
        "description": "ReservationAmenity model"
      },
      "ReservationAmenityDate": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "reservationAmenityId": {
            "type": "string",
            "format": "uuid"
          },
          "date": {
            "type": "string",
            "format": "date"
          },
          "count": {
            "type": "integer",
            "format": "int32"
          },
          "totalBaseAmount": {
            "type": "number"
          },
          "serviceChargeAmount": {
            "type": "number"
          },
          "taxAmount": {
            "type": "number"
          },
          "totalGrossAmount": {
            "type": "number"
          }
        },
        "description": "ReservationAmenityDate model"
      },
      "ReservationRoom": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "reservationId": {
            "type": "string",
            "format": "uuid"
          },
          "roomId": {
            "type": "string",
            "format": "uuid"
          }
        },
        "description": "ReservationRoom model"
      },
      "ReservationTimeSlice": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "reservationId": {
            "type": "string",
            "format": "uuid"
          },
          "fromTime": {
            "type": "string",
            "format": "date-time"
          },
          "toTime": {
            "type": "string",
            "format": "date-time"
          },
          "totalBaseAmount": {
            "type": "number"
          },
          "serviceChargeAmount": {
            "type": "number"
          },
          "taxAmount": {
            "type": "number"
          },
          "totalGrossAmount": {
            "type": "number"
          }
        },
        "description": "ReservationTimeSlice model"
      },
      "RfcImage": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "imageUrl": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "displaySequence": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "RfcTranslation": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "hotelId": {
            "type": "string",
            "format": "uuid"
          },
          "rfcId": {
            "type": "string",
            "format": "uuid"
          },
          "languageCode": {
            "type": "string",
            "enum": ["DE", "FR", "ES", "IT"]
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          }
        }
      },
      "Room": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "roomNumber": {
            "type": "string"
          },
          "capacityDefault": {
            "type": "integer",
            "format": "int32"
          },
          "maximumAdult": {
            "type": "integer",
            "format": "int32"
          },
          "maximumKid": {
            "type": "integer",
            "format": "int32"
          },
          "capacityExtra": {
            "type": "integer",
            "format": "int32"
          },
          "extraBedAdult": {
            "type": "integer",
            "format": "int32"
          },
          "extraBedKid": {
            "type": "integer",
            "format": "int32"
          },
          "roomFloor": {
            "type": "string"
          },
          "numberOfBedrooms": {
            "type": "integer",
            "format": "int32"
          },
          "space": {
            "type": "integer",
            "format": "int32"
          },
          "status": {
            "type": "string",
            "enum": ["CLEAN", "DIRTY", "INSPECTED", "OUT_OF_SERVICE"]
          },
          "type": {
            "type": "string",
            "enum": ["Bedroom"]
          },
          "mappingRoomCode": {
            "type": "string"
          }
        }
      },
      "Country": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "phoneCode": {
            "type": "string"
          }
        }
      },
      "Currency": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        }
      },
      "HotelCityTax": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": ["ACTIVE", "INACTIVE"]
          },
          "chargeMethod": {
            "type": "string",
            "enum": ["PAY_ON_CONFIRMATION", "PAY_AT_HOTEL"]
          },
          "unit": {
            "type": "string",
            "enum": [
              "FIXED_ON_GROSS_AMOUNT_ROOM",
              "PERCENTAGE_ON_GROSS_AMOUNT_ROOM",
              "PERCENTAGE_ON_NET_AMOUNT_ROOM",
              "PER_PERSON_PER_NIGHT",
              "PER_PERSON_PER_STAY_FIXED",
              "PER_PERSON_PER_STAY_PERCENTAGE"
            ]
          },
          "value": {
            "type": "number",
            "format": "double"
          },
          "validFrom": {
            "type": "string",
            "format": "date"
          },
          "validTo": {
            "type": "string",
            "format": "date"
          }
        }
      },
      "HotelPayment": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "code": {
            "type": "string",
            "enum": [
              "GUABTC",
              "GUAINV",
              "GUAWCC",
              "GUAWDE",
              "GUAWEP",
              "NOGUAR",
              "SPM"
            ]
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          }
        }
      },
      "Property": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": ["DRAFT", "ACTIVE", "INACTIVE"]
          },
          "emailAddressList": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "timeZone": {
            "type": "string"
          },
          "baseCurrency": {
            "$ref": "#/components/schemas/Currency"
          },
          "iconImageUrl": {
            "type": "string"
          },
          "senderName": {
            "type": "string"
          },
          "senderEmail": {
            "type": "string"
          },
          "isCityTaxIncludedSellingPrice": {
            "type": "boolean"
          },
          "hotelCityTaxList": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/HotelCityTax"
            }
          },
          "hotelPaymentModeList": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/HotelPayment"
            }
          },
          "country": {
            "$ref": "#/components/schemas/Country"
          },
          "preferredLanguageCode": {
            "type": "string",
            "enum": ["DE", "FR", "ES", "IT"]
          },
          "initialSetup": {
            "type": "boolean"
          },
          "phoneCode": {
            "type": "string"
          },
          "phoneNumber": {
            "type": "string"
          },
          "city": {
            "type": "string"
          },
          "state": {
            "type": "string"
          },
          "postalCode": {
            "type": "string"
          },
          "address": {
            "type": "string"
          },
          "latitude": {
            "type": "string"
          },
          "longitude": {
            "type": "string"
          },
          "measureMetric": {
            "type": "string",
            "enum": ["sqm", "sqft"]
          }
        }
      },
      "CategoryTranslation": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "hotelRetailCategoryId": {
            "type": "string",
            "format": "uuid"
          },
          "languageCode": {
            "type": "string",
            "enum": ["DE", "FR", "ES", "IT"]
          },
          "name": {
            "type": "string"
          }
        }
      },
      "Feature": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "displayName": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "isVisible": {
            "type": "boolean"
          },
          "popularity": {
            "type": "integer",
            "format": "int32"
          },
          "price": {
            "type": "number"
          },
          "displaySequence": {
            "type": "integer",
            "format": "int32"
          },
          "category": {
            "$ref": "#/components/schemas/FeatureCategory"
          },
          "assignedRoomProductIdList": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            }
          },
          "assignedRoomIdList": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            }
          },
          "translationList": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Translation"
            }
          }
        }
      },
      "FeatureCategory": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "categoryType": {
            "type": "string"
          },
          "iconImageUrl": {
            "type": "string"
          },
          "displaySequence": {
            "type": "integer",
            "format": "int32"
          },
          "translationList": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CategoryTranslation"
            }
          }
        }
      },
      "Translation": {
        "type": "object",
        "properties": {
          "lang": {
            "type": "string",
            "enum": ["DE", "FR", "ES", "IT"]
          },
          "displayName": {
            "type": "string"
          },
          "description": {
            "type": "string"
          }
        }
      },
      "Booking": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Booking id",
            "format": "uuid"
          },
          "bookingNumber": {
            "type": "string",
            "description": "Booking number"
          },
          "channel": {
            "type": "string",
            "description": "The channel which booking was created"
          },
          "source": {
            "type": "string",
            "description": "The source of booking"
          },
          "currency": {
            "type": "string",
            "description": "The displayed currency of booking"
          },
          "guaranteedOption": {
            "type": "string",
            "description": "The guaranteed option which booker / guest chose when booking"
          },
          "specialRequest": {
            "type": "string",
            "description": "Booker / Guest note"
          },
          "checkInUtc": {
            "type": "string",
            "description": "Check-in date & time (UTC)",
            "format": "date-time"
          },
          "checkOutUtc": {
            "type": "string",
            "description": "Check-out date & time (UTC)",
            "format": "date-time"
          },
          "createdUtc": {
            "type": "string",
            "description": "Date & time when booking was created (UTC)",
            "format": "date-time"
          },
          "updatedUtc": {
            "type": "string",
            "description": "Date & time when booking was updated (UTC)",
            "format": "date-time"
          },
          "preferredLanguage": {
            "type": "string",
            "description": "Preferred language of the booker / guest"
          },
          "reservationIds": {
            "uniqueItems": true,
            "type": "array",
            "description": "List id of reservations which are assigned to the booking",
            "items": {
              "type": "string",
              "description": "List id of reservations which are assigned to the booking"
            }
          }
        },
        "description": "Booking is a group of reservations booked by a booker / guest"
      },
      "DailyAvailability": {
        "type": "object",
        "properties": {
          "date": {
            "type": "string",
            "format": "date"
          },
          "availableToSell": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "ProductAvailability": {
        "type": "object",
        "properties": {
          "isAvailable": {
            "type": "boolean"
          },
          "rfc": {
            "$ref": "#/components/schemas/Product"
          },
          "dailyAvailabilityList": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DailyAvailability"
            }
          }
        }
      }
    },
    "securitySchemes": {
      "gvd-key-id": {
        "type": "apiKey",
        "name": "gvd-key-id",
        "in": "header",
        "scheme": "basic"
      },
      "gvd-key-secret": {
        "type": "apiKey",
        "name": "gvd-key-secret",
        "in": "header",
        "scheme": "basic"
      }
    }
  }
}
