Mews · Schema

Resource access token

HospitalityHotelsPMSProperty Management

Properties

Name Type Description
Id string Unique identifier of the resource access token.
EnterpriseId string Unique identifier of the `Enterprise`.
ServiceOrderId string Unique identifier of `Reservation`.
CompanionshipId string Unique identifier of `Companionship`.
ResourceId string Unique identifier of `Resource`.
Type object
Value string Value of the resource access token.
SerialNumber string Serial number of the resource access token.
ValidityStartUtc string Marks the start of interval in which the resource access token can be used.
ValidityEndUtc string Marks the end of interval in which the resource access token can be used.
Permissions object Permissions of the resource access token.
CreatedUtc string Creation date and time of the resource access token in UTC timezone in ISO 8601 format.
UpdatedUtc string Last update date and time of the resource access token in UTC timezone in ISO 8601 format.
IsActive boolean Whether the resource access token is still active.
View JSON Schema on GitHub

JSON Schema

mews-resourceaccesstoken-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/ResourceAccessToken",
  "title": "Resource access token",
  "required": [
    "CreatedUtc",
    "EnterpriseId",
    "Id",
    "IsActive",
    "Permissions",
    "ServiceOrderId",
    "Type",
    "UpdatedUtc",
    "ValidityEndUtc",
    "ValidityStartUtc",
    "Value"
  ],
  "type": "object",
  "properties": {
    "Id": {
      "type": "string",
      "description": "Unique identifier of the resource access token.",
      "format": "uuid"
    },
    "EnterpriseId": {
      "type": "string",
      "description": "Unique identifier of the `Enterprise`.",
      "format": "uuid"
    },
    "ServiceOrderId": {
      "type": "string",
      "description": "Unique identifier of `Reservation`.",
      "format": "uuid"
    },
    "CompanionshipId": {
      "type": "string",
      "description": "Unique identifier of `Companionship`.",
      "format": "uuid",
      "nullable": true
    },
    "ResourceId": {
      "type": "string",
      "description": "Unique identifier of `Resource`.",
      "format": "uuid",
      "nullable": true
    },
    "Type": {
      "$ref": "#/components/schemas/ResourceAccessTokenType"
    },
    "Value": {
      "minLength": 1,
      "type": "string",
      "description": "Value of the resource access token."
    },
    "SerialNumber": {
      "type": "string",
      "description": "Serial number of the resource access token.",
      "nullable": true
    },
    "ValidityStartUtc": {
      "minLength": 1,
      "type": "string",
      "description": "Marks the start of interval in which the resource access token can be used.",
      "format": "date-time"
    },
    "ValidityEndUtc": {
      "minLength": 1,
      "type": "string",
      "description": "Marks the end of interval in which the resource access token can be used.",
      "format": "date-time"
    },
    "Permissions": {
      "title": "Resource access token permissions",
      "allOf": [
        {
          "$ref": "#/components/schemas/ResourceAccessTokenPermissions"
        }
      ],
      "description": "Permissions of the resource access token."
    },
    "CreatedUtc": {
      "minLength": 1,
      "type": "string",
      "description": "Creation date and time of the resource access token in UTC timezone in ISO 8601 format.",
      "format": "date-time"
    },
    "UpdatedUtc": {
      "minLength": 1,
      "type": "string",
      "description": "Last update date and time of the resource access token in UTC timezone in ISO 8601 format.",
      "format": "date-time"
    },
    "IsActive": {
      "type": "boolean",
      "description": "Whether the resource access token is still active."
    }
  },
  "additionalProperties": false,
  "x-schema-id": "ResourceAccessToken"
}