{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/elivaas/json-schema/elivaas-get-v1-rateplans-rateplanid-response-schema.json",
  "title": "GetV1RateplansRateplanidResponse",
  "x-generated": "2026-12-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/elivaas-openapi-generated.yml#/components/schemas/GetV1RateplansRateplanidResponse",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique identifier of the rate plan."
    },
    "propertyId": {
      "type": "string",
      "description": "Property this rate plan belongs to."
    },
    "name": {
      "type": "string",
      "description": "Display name."
    },
    "code": {
      "type": "string",
      "description": "Code identifier (e.g., european-plan )."
    },
    "description": {
      "type": "string",
      "description": "What the rate plan includes."
    },
    "rate": {
      "type": "integer",
      "description": "Base rate per night."
    },
    "minimumRate": {
      "type": "integer",
      "description": "Minimum rate (floor price)."
    },
    "extraAdultRate": {
      "type": "integer",
      "description": "Surcharge per extra adult per night."
    },
    "extraChildRate": {
      "type": "integer",
      "description": "Surcharge per extra child per night."
    },
    "applicableGuest": {
      "type": "integer",
      "description": "Total guests included in base rate."
    },
    "applicableAdult": {
      "type": "integer",
      "description": "Adults included in base rate."
    },
    "applicableChild": {
      "type": "integer",
      "description": "Children included in base rate."
    },
    "restrictions": {
      "type": "array",
      "description": "Date-specific rate overrides. Only populated when dates are provided."
    }
  }
}