{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/thomson-reuters/main/json-schema/thomson-reuters-company-office-schema.json",
  "title": "CompanyOffice",
  "x-generated": "2026-10-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/thomson-reuters-companies-api-openapi.yml#/components/schemas/CompanyOffice",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "format": "int32"
    },
    "name": {
      "type": [
        "string",
        "null"
      ]
    },
    "isActive": {
      "type": "boolean"
    },
    "address": {
      "$ref": "#/$defs/Address"
    },
    "mailingAddress": {
      "$ref": "#/$defs/Address"
    },
    "phone": {
      "type": [
        "string",
        "null"
      ]
    },
    "fax": {
      "type": [
        "string",
        "null"
      ]
    },
    "coordinator": {
      "$ref": "#/$defs/Contact"
    },
    "backupCoordinator": {
      "$ref": "#/$defs/Contact"
    },
    "defaultLocale": {
      "type": [
        "string",
        "null"
      ]
    },
    "auditInformation": {
      "$ref": "#/$defs/AuditInformation"
    }
  },
  "additionalProperties": false,
  "$defs": {
    "Address": {
      "type": "object",
      "properties": {
        "street1": {
          "type": [
            "string",
            "null"
          ]
        },
        "street2": {
          "type": [
            "string",
            "null"
          ]
        },
        "city": {
          "type": [
            "string",
            "null"
          ]
        },
        "state": {
          "$ref": "#/$defs/State"
        },
        "provinceRegion": {
          "type": [
            "string",
            "null"
          ]
        },
        "zip": {
          "type": [
            "string",
            "null"
          ]
        },
        "country": {
          "$ref": "#/$defs/Country"
        }
      },
      "additionalProperties": false
    },
    "AuditInformation": {
      "type": "object",
      "properties": {
        "createdDateTime": {
          "type": "string",
          "format": "date-time"
        },
        "createdBy": {
          "$ref": "#/$defs/Contact"
        },
        "changedDateTime": {
          "type": "string",
          "format": "date-time"
        },
        "changedBy": {
          "$ref": "#/$defs/Contact"
        }
      },
      "additionalProperties": false
    },
    "Contact": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "format": "int32"
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "email": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "additionalProperties": false
    },
    "Country": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "format": "int32"
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "isoCode": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "additionalProperties": false
    },
    "State": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "format": "int32"
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "abbreviation": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "additionalProperties": false
    }
  }
}