{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/upsellguru/json-schema/upsellguru-basic-room-type-schema.json",
  "title": "BasicRoomType",
  "x-generated": "2026-11-17",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/upsellguru-openapi.yml#/components/schemas/BasicRoomType",
  "type": "object",
  "properties": {
    "status": {
      "$ref": "#/$defs/RoomTypeStatus"
    },
    "code": {
      "type": "string"
    },
    "pmsTransactionCode": {
      "type": "string",
      "description": "Room Type code used to write back to the PMS"
    },
    "otherPmsCodes": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Other room type codes that can be used to identify this room type"
    },
    "names": {
      "$ref": "#/$defs/LocalizedStringsMap"
    },
    "descriptions": {
      "$ref": "#/$defs/LocalizedStringsMap"
    },
    "position": {
      "type": "integer"
    },
    "numberOfRooms": {
      "type": "integer",
      "description": "Number of physical room units belonging to this Room Type"
    },
    "categoryId": {
      "type": "integer",
      "description": "Room Type category id that the room type belongs to"
    }
  },
  "$defs": {
    "LocalizedStringsMap": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    },
    "RoomTypeStatus": {
      "type": "string",
      "description": "This enum describes all possible status a room type can be in UpsellGuru",
      "enum": [
        "ONLINE",
        "OFFLINE",
        "DELETED"
      ]
    }
  }
}