Mews · Schema

Enterprise

HospitalityHotelsPMSProperty Management

Properties

Name Type Description
Id string Unique identifier of the enterprise.
ExternalIdentifier string Identifier of the enterprise from external system.
HoldingKey string Identifies an enterprise in the external system of a holding company. The holding company may administer multiple portfolios.
ChainId string Unique identifier of the chain to which the enterprise belongs.
ChainName string Name of the `Chain` to which the enterprise belongs.
CreatedUtc string Creation date and time of the enterprise in UTC timezone in ISO 8601 format.
UpdatedUtc string Last update date and time of the enterprise in UTC timezone in ISO 8601 format.
Name string Name of the enterprise.
ShortName string Short name of the enterprise used in Manager Report exports.
TimeZoneIdentifier string IANA timezone identifier of the enterprise.
LegalEnvironmentCode string Unique identifier of the legal environment where the enterprise resides.
AccommodationEnvironmentCode string Unique code of the accommodation environment where the enterprise resides.
AccountingEnvironmentCode string Unique code of the accounting environment where the enterprise resides.
TaxEnvironmentCode string Unique code of the tax environment where the enterprise resides.
DefaultLanguageCode string Language-culture codes of the enterprise default `Language`.
EditableHistoryInterval string
AccountingEditableHistoryInterval string Editable history interval for accounting data in ISO 8601 duration format.
OperationalEditableHistoryInterval string Editable history interval for operational data in ISO 8601 duration format.
BusinessDayClosingOffset string The offset value for the business day closing time, in ISO 8601 duration format.
WebsiteUrl string URL of the enterprise website.
Email string Email address of the enterprise.
Phone string Phone number of the enterprise.
LogoImageId string Unique identifier of the `Image` of the enterprise logo.
CoverImageId string Unique identifier of the `Image` of the enterprise cover.
Pricing object Pricing of the enterprise. Gross (The enterprise shows amount with gross prices.) Net (The enterprise shows amount with net prices.)
TaxPrecision integer Tax precision used for financial calculations in the enterprise. If `null`, `Currency` precision is used.
AddressId string Unique identifier of the `Address` of the enterprise.
Address object Address of the enterprise.
GroupNames array A list of the group names of the enterprise.
Subscription object Subscription information of the enterprise.
LinkedUtc string Date and time when enterprise was added to the portfolio in UTC timezone in ISO 8601 format.
View JSON Schema on GitHub

JSON Schema

mews-enterpriseportfolio-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/EnterprisePortfolio",
  "title": "Enterprise",
  "required": [
    "AccommodationEnvironmentCode",
    "AccountingEditableHistoryInterval",
    "AccountingEnvironmentCode",
    "Address",
    "AddressId",
    "ChainId",
    "ChainName",
    "CreatedUtc",
    "DefaultLanguageCode",
    "EditableHistoryInterval",
    "GroupNames",
    "Id",
    "LegalEnvironmentCode",
    "LinkedUtc",
    "Name",
    "OperationalEditableHistoryInterval",
    "Pricing",
    "Subscription",
    "TaxEnvironmentCode",
    "TimeZoneIdentifier",
    "UpdatedUtc"
  ],
  "type": "object",
  "properties": {
    "Id": {
      "type": "string",
      "description": "Unique identifier of the enterprise.",
      "format": "uuid"
    },
    "ExternalIdentifier": {
      "maxLength": 255,
      "type": "string",
      "description": "Identifier of the enterprise from external system.",
      "nullable": true
    },
    "HoldingKey": {
      "maxLength": 255,
      "type": "string",
      "description": "Identifies an enterprise in the external system of a holding company. The holding company may administer multiple portfolios.",
      "nullable": true
    },
    "ChainId": {
      "type": "string",
      "description": "Unique identifier of the chain to which the enterprise belongs.",
      "format": "uuid"
    },
    "ChainName": {
      "minLength": 1,
      "type": "string",
      "description": "Name of the `Chain` to which the enterprise belongs."
    },
    "CreatedUtc": {
      "minLength": 1,
      "type": "string",
      "description": "Creation date and time of the enterprise in UTC timezone in ISO 8601 format.",
      "format": "date-time"
    },
    "UpdatedUtc": {
      "minLength": 1,
      "type": "string",
      "description": "Last update date and time of the enterprise in UTC timezone in ISO 8601 format.",
      "format": "date-time"
    },
    "Name": {
      "minLength": 1,
      "type": "string",
      "description": "Name of the enterprise."
    },
    "ShortName": {
      "maxLength": 11,
      "type": "string",
      "description": "Short name of the enterprise used in Manager Report exports.",
      "nullable": true
    },
    "TimeZoneIdentifier": {
      "minLength": 1,
      "type": "string",
      "description": "IANA timezone identifier of the enterprise."
    },
    "LegalEnvironmentCode": {
      "minLength": 1,
      "type": "string",
      "description": "Unique identifier of the legal environment where the enterprise resides."
    },
    "AccommodationEnvironmentCode": {
      "minLength": 1,
      "type": "string",
      "description": "Unique code of the accommodation environment where the enterprise resides."
    },
    "AccountingEnvironmentCode": {
      "minLength": 1,
      "type": "string",
      "description": "Unique code of the accounting environment where the enterprise resides."
    },
    "TaxEnvironmentCode": {
      "minLength": 1,
      "type": "string",
      "description": "Unique code of the tax environment where the enterprise resides."
    },
    "DefaultLanguageCode": {
      "minLength": 1,
      "type": "string",
      "description": "Language-culture codes of the enterprise default `Language`."
    },
    "EditableHistoryInterval": {
      "minLength": 1,
      "type": "string",
      "deprecated": true,
      "x-deprecatedMessage": "Use `AccountingEditableHistoryInterval` and `OperationalEditableHistoryInterval` instead."
    },
    "AccountingEditableHistoryInterval": {
      "minLength": 1,
      "type": "string",
      "description": "Editable history interval for accounting data in ISO 8601 duration format."
    },
    "OperationalEditableHistoryInterval": {
      "minLength": 1,
      "type": "string",
      "description": "Editable history interval for operational data in ISO 8601 duration format."
    },
    "BusinessDayClosingOffset": {
      "type": "string",
      "description": "The offset value for the business day closing time, in ISO 8601 duration format.",
      "nullable": true
    },
    "WebsiteUrl": {
      "type": "string",
      "description": "URL of the enterprise website.",
      "format": "uri",
      "nullable": true
    },
    "Email": {
      "type": "string",
      "description": "Email address of the enterprise.",
      "format": "email",
      "nullable": true
    },
    "Phone": {
      "type": "string",
      "description": "Phone number of the enterprise.",
      "format": "tel",
      "nullable": true
    },
    "LogoImageId": {
      "type": "string",
      "description": "Unique identifier of the `Image` of the enterprise logo.",
      "format": "uuid",
      "nullable": true
    },
    "CoverImageId": {
      "type": "string",
      "description": "Unique identifier of the `Image` of the enterprise cover.",
      "format": "uuid",
      "nullable": true
    },
    "Pricing": {
      "title": "Pricing",
      "allOf": [
        {
          "$ref": "#/components/schemas/PricingModeEnum"
        }
      ],
      "description": "Pricing of the enterprise.\n\nGross (The enterprise shows amount with gross prices.)\n\nNet (The enterprise shows amount with net prices.)",
      "x-enumNames": [
        "Gross",
        "Net"
      ],
      "x-enumDescriptions": [
        "The enterprise shows amount with gross prices.",
        "The enterprise shows amount with net prices."
      ]
    },
    "TaxPrecision": {
      "type": "integer",
      "description": "Tax precision used for financial calculations in the enterprise. If `null`, `Currency` precision is used.",
      "format": "int32",
      "nullable": true
    },
    "AddressId": {
      "type": "string",
      "description": "Unique identifier of the `Address` of the enterprise.",
      "format": "uuid"
    },
    "Address": {
      "title": "Address",
      "allOf": [
        {
          "$ref": "#/components/schemas/OldAddress"
        }
      ],
      "description": "Address of the enterprise."
    },
    "GroupNames": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "A list of the group names of the enterprise."
    },
    "Subscription": {
      "title": "Enterprise subscription",
      "allOf": [
        {
          "$ref": "#/components/schemas/EnterpriseSubscription"
        }
      ],
      "description": "Subscription information of the enterprise."
    },
    "LinkedUtc": {
      "minLength": 1,
      "type": "string",
      "description": "Date and time when enterprise was added to the portfolio in UTC timezone in ISO 8601 format.",
      "format": "date-time"
    }
  },
  "additionalProperties": false,
  "description": "",
  "x-schema-id": "EnterprisePortfolio"
}