{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "projectId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200,
      "description": "Identifier of the project returned by its create or list operation."
    },
    "watchId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200,
      "description": "Identifier of the watch returned by its create or list operation."
    },
    "revision": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991,
      "description": "Immutable set revision to read or compare."
    },
    "deal": {
      "type": "object",
      "properties": {
        "costMinor": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0,
              "maximum": 1000000000000
            },
            {
              "type": "null"
            }
          ]
        },
        "currency": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "USD",
                "EUR",
                "GBP",
                "JPY",
                "CAD",
                "AUD",
                "NZD",
                "CHF",
                "CNY",
                "HKD",
                "SGD",
                "INR",
                "KRW",
                "BRL",
                "MXN",
                "SEK",
                "NOK",
                "DKK",
                "PLN",
                "CZK",
                "HUF",
                "ZAR",
                "AED",
                "SAR",
                "ILS",
                "THB",
                "TRY",
                "IDR",
                "MYR",
                "PHP",
                "VND",
                "KWD",
                "BHD",
                "OMR"
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "acquiredOn": {
          "type": [
            "string",
            "null"
          ]
        },
        "expiresOn": {
          "type": [
            "string",
            "null"
          ]
        },
        "renewalWindowDays": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 1,
              "maximum": 365
            },
            {
              "type": "null"
            }
          ]
        },
        "contactRef": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,119}$"
            },
            {
              "type": "null"
            }
          ]
        },
        "contactLabel": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 120
            },
            {
              "type": "null"
            }
          ]
        },
        "dealNote": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 1000
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "additionalProperties": false,
      "description": "The deal value; allowed values and bounds are specified in this schema."
    }
  },
  "required": [
    "projectId",
    "watchId",
    "revision",
    "deal"
  ],
  "additionalProperties": false
}
