{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/verifone/refs/heads/main/json-schema/order-service-api-contactaddresstype.json",
  "title": "ContactAddressType",
  "description": "A Contact and their address details.",
  "type": "object",
  "properties": {
    "contact": {
      "$ref": "#/components/schemas/ContractContactType"
    },
    "addressDetails": {
      "$ref": "#/components/schemas/BaseAddress"
    },
    "dateOfBirth": {
      "type": "string",
      "description": "Date of Birth",
      "format": "date"
    },
    "placeOfBirth": {
      "type": "string",
      "description": "Place of Birth"
    },
    "isIDCheckRequired": {
      "type": "boolean",
      "description": "Is this contact's ID required to be checked",
      "default": false
    },
    "isContractSignatureRequired": {
      "type": "boolean",
      "description": "Is this contact's signature required",
      "default": false
    },
    "isLegalRepresentative": {
      "type": "boolean",
      "description": "Is this contact a legal representative",
      "default": false
    },
    "isAuthorizedRepresentative": {
      "type": "boolean",
      "description": "Is this contact an authorized representative",
      "default": false
    },
    "isBeneficiaryOwner": {
      "type": "boolean",
      "description": "Is a beneficiary owner",
      "default": false
    },
    "isPoliticallyExposed": {
      "type": "boolean",
      "description": "Is this contact a politically exposed person",
      "default": false
    },
    "representativeType": {
      "type": "string",
      "description": "Type of representative when this contact is legal or authorized rep",
      "enum": [
        "GENERAL_COMMERCIAL_POWER",
        "LIMITED_COMMERCIAL_POWER",
        "NOT_APPLICABLE"
      ]
    }
  },
  "required": [
    "contact",
    "addressDetails"
  ]
}