Mews · Schema

Length restriction

HospitalityHotelsPMSProperty Management

Properties

Name Type Description
Id string Unique identifier of the rate restriction.
RateId string Unique identifier of the rate.
IsInherited boolean Whether the rate restriction is inherited from the parent rate.
StartUtc string Start of the rate restriction in UTC timezone in ISO 8601 format.
EndUtc string End of the rate restriction in UTC timezone in ISO 8601 format.
Days array The restricted days of week.
ExternalIdentifier string Identifiers of from external systems.
MinLength string Minimal reservation length in ISO 8601 duration format.
MaxLength string Maximal reservation length in ISO 8601 duration format.
View JSON Schema on GitHub

JSON Schema

mews-lengthrestriction-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/LengthRestriction",
  "title": "Length restriction",
  "type": "object",
  "properties": {
    "Id": {
      "type": "string",
      "description": "Unique identifier of the rate restriction.",
      "format": "uuid"
    },
    "RateId": {
      "type": "string",
      "description": "Unique identifier of the rate.",
      "format": "uuid"
    },
    "IsInherited": {
      "type": "boolean",
      "description": "Whether the rate restriction is inherited from the parent rate."
    },
    "StartUtc": {
      "type": "string",
      "description": "Start of the rate restriction in UTC timezone in ISO 8601 format.",
      "nullable": true
    },
    "EndUtc": {
      "type": "string",
      "description": "End of the rate restriction in UTC timezone in ISO 8601 format.",
      "nullable": true
    },
    "Days": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The restricted days of week.",
      "nullable": true
    },
    "ExternalIdentifier": {
      "type": "string",
      "description": "Identifiers of from external systems.",
      "nullable": true
    },
    "MinLength": {
      "type": "string",
      "description": "Minimal reservation length in ISO 8601 duration format.",
      "nullable": true
    },
    "MaxLength": {
      "type": "string",
      "description": "Maximal reservation length in ISO 8601 duration format.",
      "nullable": true
    }
  },
  "additionalProperties": false,
  "x-schema-id": "LengthRestriction"
}