{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/q2/json-schema/q2-customer-beneficiary-object200-response-schema.json",
  "title": "CustomerBeneficiaryObject200Response",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/q2-customer-beneficiary-api-openapi.yml#/components/schemas/CustomerBeneficiaryObject200Response",
  "allOf": [
    {
      "$ref": "#/$defs/0"
    },
    {
      "type": "object",
      "properties": {
        "data": {
          "type": "object",
          "properties": {
            "addressLine1": {
              "type": "string"
            },
            "addressLine2": {
              "type": "string"
            },
            "addressLine3": {
              "type": "string"
            },
            "addressLine4": {
              "type": "string"
            },
            "birthDate": {
              "$ref": "#/$defs/lastContactDate"
            },
            "city": {
              "type": "string"
            },
            "country": {
              "type": "string"
            },
            "customerBeneficiaryId": {
              "$ref": "#/$defs/HelixId"
            },
            "customerId": {
              "$ref": "#/$defs/HelixId"
            },
            "distributionDescription": {
              "type": "string"
            },
            "emailAddress": {
              "type": "string"
            },
            "firstName": {
              "type": "string"
            },
            "isActive": {
              "type": "boolean"
            },
            "lastModifiedDate": {
              "$ref": "#/$defs/lastContactDate"
            },
            "lastName": {
              "type": "string"
            },
            "legalName1": {
              "type": "string",
              "maxLength": 100
            },
            "legalName2": {
              "type": "string",
              "maxLength": 100
            },
            "middleName": {
              "type": "string"
            },
            "phoneNumber": {
              "type": "string"
            },
            "postalCode": {
              "type": "string"
            },
            "state": {
              "$ref": "#/$defs/FormationState"
            },
            "taxId": {
              "$ref": "#/$defs/TaxId"
            },
            "taxIdMasked": {
              "type": "string"
            },
            "beneficiaryType": {
              "$ref": "#/$defs/BeneficiaryType"
            },
            "taxIdType": {
              "$ref": "#/$defs/TaxIdType"
            }
          }
        }
      }
    }
  ],
  "$defs": {
    "BeneficiaryType": {
      "type": [
        "string",
        "null"
      ],
      "description": "The type of beneficiary. Accepted values: Individual, Trust, Estate, Charity, NonProfit, Other",
      "enum": [
        "Individual",
        "Trust",
        "Estate",
        "Charity",
        "NonProfit",
        "Other"
      ]
    },
    "FormationState": {
      "type": "string",
      "maxLength": 2
    },
    "HelixId": {
      "type": "integer",
      "format": "int32",
      "minimum": 1
    },
    "TaxId": {
      "type": "string",
      "maxLength": 30,
      "description": "No formatting (no dashes, spaces, etc)."
    },
    "TaxIdType": {
      "type": "string",
      "enum": [
        "SSN",
        "EIN",
        "ITIN"
      ]
    }
  }
}