{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "#/components/schemas/RatePricing",
"title": "Rate pricing",
"required": [
"AgeCategoryAdjustments",
"BaseAmountPrices",
"BasePrices",
"CategoryAdjustments",
"CategoryPrices",
"Currency",
"TimeUnitStartsUtc"
],
"type": "object",
"properties": {
"Currency": {
"minLength": 1,
"type": "string",
"description": "ISO-4217 code of the [Currency](https://mews-systems.gitbook.io/connector-api/operations/currencies/#currency)."
},
"DatesUtc": {
"type": "array",
"items": {
"type": "string"
},
"nullable": true,
"deprecated": true,
"x-deprecatedMessage": "Use `TimeUnitStartsUtc` instead."
},
"TimeUnitStartsUtc": {
"type": "array",
"items": {
"type": "string"
},
"description": "Set of all time units covered by the time interval; expressed in UTC timezone ISO 8601 format."
},
"BasePrices": {
"type": "array",
"items": {
"type": "number",
"format": "double"
},
"deprecated": true,
"x-deprecatedMessage": "Use `BaseAmountPrices` instead."
},
"BaseAmountPrices": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Amount"
},
"description": "Base prices of the rates for each time unit covered by the time interval."
},
"CategoryPrices": {
"type": "array",
"items": {
"$ref": "#/components/schemas/CategoryPricing"
},
"description": "Resource category prices."
},
"CategoryAdjustments": {
"type": "array",
"items": {
"$ref": "#/components/schemas/CategoryAdjustment"
},
"description": "Resource category adjustments."
},
"AgeCategoryAdjustments": {
"type": "array",
"items": {
"$ref": "#/components/schemas/AgeCategoryAdjustment"
},
"description": "Assigns different pricing or occupancy based on the guest's age."
},
"RelativeAdjustment": {
"type": "number",
"description": "Specific amount which shows the difference between this rate and the base rate.",
"format": "double"
},
"AbsoluteAdjustment": {
"type": "number",
"description": "Relative amount which shows the difference between this rate and the base rate.",
"format": "double"
},
"EmptyUnitAdjustment": {
"type": "number",
"description": "Price adjustment for when the resource booked with this rate is not full to capacity.",
"format": "double"
},
"ExtraUnitAdjustment": {
"type": "number",
"description": "Price adjustment for when the resource booked with this rate exceeds capacity.",
"format": "double"
}
},
"additionalProperties": false,
"x-schema-id": "RatePricing"
}