{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/thomson-reuters/main/json-schema/thomson-reuters-ten99-control-schema.json",
  "title": "Ten99Control",
  "x-generated": "2026-10-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/thomson-reuters-onesource-trust-tax-administration-openapi.yml#/components/schemas/Ten99Control",
  "type": "object",
  "properties": {
    "pan": {
      "type": [
        "string",
        "null"
      ],
      "description": "PAN"
    },
    "year": {
      "type": "integer",
      "description": "Year",
      "format": "int32"
    },
    "paid_to_for": {
      "$ref": "#/$defs/PaidToFor"
    },
    "added_ini": {
      "type": [
        "string",
        "null"
      ],
      "description": "Initials of person added"
    },
    "added_date": {
      "type": [
        "string",
        "null"
      ],
      "description": "Date when it was added",
      "format": "date-time"
    },
    "change_ini": {
      "type": [
        "string",
        "null"
      ],
      "description": "Who last changed"
    },
    "changed_date": {
      "type": [
        "string",
        "null"
      ],
      "description": "Date of last change",
      "format": "date-time"
    },
    "change_type": {
      "$ref": "#/$defs/ChangeType"
    }
  },
  "additionalProperties": false,
  "$defs": {
    "ChangeType": {
      "enum": [
        "No_Change",
        "Add",
        "Change",
        "Delete"
      ],
      "type": "integer",
      "format": "int32"
    },
    "PaidToFor": {
      "enum": [
        "Paid_To",
        "Paid_For"
      ],
      "type": "integer",
      "format": "int32"
    }
  }
}