Mews · Schema

Resource occupancy state

The occupancy state of a `Resource`.

HospitalityHotelsPMSProperty Management

Properties

Name Type Description
ResourceId string Unique identifier of the resource.
ResourceState object Resource state of the resource. Dirty Clean Inspected OutOfService OutOfOrder
OccupancyState object State of the resource. Vacant ReservedLocked Reserved InternalUse OutOfOrder
View JSON Schema on GitHub

JSON Schema

mews-resourceoccupancystate-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/ResourceOccupancyState",
  "title": "Resource occupancy state",
  "required": [
    "OccupancyState",
    "ResourceId",
    "ResourceState"
  ],
  "type": "object",
  "properties": {
    "ResourceId": {
      "type": "string",
      "description": "Unique identifier of the resource.",
      "format": "uuid"
    },
    "ResourceState": {
      "title": "Resource state",
      "allOf": [
        {
          "$ref": "#/components/schemas/ResourceState"
        }
      ],
      "description": "Resource state of the resource.\n\nDirty\n\nClean\n\nInspected\n\nOutOfService\n\nOutOfOrder",
      "x-enumNames": [
        "Dirty",
        "Clean",
        "Inspected",
        "OutOfService",
        "OutOfOrder"
      ],
      "x-enumDescriptions": [
        "",
        "",
        "",
        "",
        ""
      ],
      "x-schema-id": "ResourceState"
    },
    "OccupancyState": {
      "title": "Occupancy state",
      "allOf": [
        {
          "$ref": "#/components/schemas/OccupancyStateEnum"
        }
      ],
      "description": "State of the resource.\n\nVacant\n\nReservedLocked\n\nReserved\n\nInternalUse\n\nOutOfOrder",
      "x-enumNames": [
        "Vacant",
        "ReservedLocked",
        "Reserved",
        "InternalUse",
        "OutOfOrder"
      ],
      "x-enumDescriptions": [
        "",
        "",
        "",
        "",
        ""
      ]
    }
  },
  "additionalProperties": false,
  "description": "The occupancy state of a `Resource`.",
  "x-schema-id": "ResourceOccupancyState"
}