{
    "type": "object",
    "properties": {
        "ContactID": {
            "type": "string"
        },
        "ContactStatus": {
            "type": "string"
        },
        "Name": {
            "type": "string"
        },
        "EmailAddress": {
            "type": "string"
        },
        "BankAccountDetails": {
            "type": "string"
        },
        "Addresses": {
            "type": "array",
            "items": {
                "type": "object",
                "properties": {
                    "AddressType": {
                        "type": "string"
                    },
                    "City": {
                        "type": "string"
                    },
                    "Region": {
                        "type": "string"
                    },
                    "PostalCode": {
                        "type": "string"
                    },
                    "Country": {
                        "type": "string"
                    }
                },
                "required": [
                    "AddressType"
                ]
            }
        },
        "Phones": {
            "type": "array",
            "items": {
                "type": "object",
                "properties": {
                    "PhoneType": {
                        "type": "string"
                    },
                    "PhoneNumber": {
                        "type": "string"
                    },
                    "PhoneAreaCode": {
                        "type": "string"
                    },
                    "PhoneCountryCode": {
                        "type": "string"
                    }
                },
                "required": [
                    "PhoneType"
                ]
            }
        },
        "UpdatedDateUTC": {
            "type": "string"
        },
        "IsSupplier": {
            "type": "boolean"
        },
        "IsCustomer": {
            "type": "boolean"
        },
        "HasValidationErrors": {
            "type": "boolean"
        }
    },
    "required": [
        "ContactID",
        "ContactStatus",
        "Name",
        "EmailAddress",
        "Addresses",
        "Phones",
        "UpdatedDateUTC",
        "ContactGroups",
        "IsSupplier",
        "IsCustomer",
        "SalesTrackingCategories",
        "PurchasesTrackingCategories",
        "ContactPersons",
        "HasValidationErrors"
    ],
    "version": 1
}
