{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/insuremo-com/json-schema/insuremo-com-org-customer-schema.json",
  "title": "OrgCustomer",
  "description": "Organization Customer",
  "x-generated": "2026-12-02",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/insuremo-com-customer-openapi.yml#/components/schemas/OrgCustomer",
  "type": "object",
  "properties": {
    "@pk": {
      "type": "integer",
      "format": "int64"
    },
    "@type": {
      "type": "string"
    },
    "AccountInfoList": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AccountInfo"
      }
    },
    "BusinessObjectId": {
      "type": "integer",
      "format": "int64"
    },
    "ContactInfoList": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ContactInfo"
      }
    },
    "CustomerId": {
      "type": "integer",
      "format": "int64"
    },
    "CustomerNumber": {
      "type": "string"
    },
    "CustomerStatus": {
      "type": "string"
    },
    "CustomerType": {
      "type": "string"
    },
    "DateOfRegistration": {
      "type": "string",
      "format": "date-time"
    },
    "IdNumber": {
      "type": "string"
    },
    "IdType": {
      "type": "string"
    },
    "IndustryCategory": {
      "type": "string"
    },
    "LegalStatus": {
      "type": "string"
    },
    "OldPrimaryKey": {
      "type": "integer",
      "format": "int64"
    },
    "OrgType": {
      "type": "string"
    },
    "RegistrationName": {
      "type": "string"
    },
    "TempData": {
      "type": "object",
      "additionalProperties": {
        "type": "object"
      }
    }
  },
  "x-mo-dd-driven": {
    "modelName": "OrgCustomer",
    "module": "PTY",
    "objectCode": "OrgCustomer"
  },
  "$defs": {
    "AccountInfo": {
      "type": "object",
      "description": "Account Info",
      "properties": {
        "@pk": {
          "type": "integer",
          "format": "int64"
        },
        "@type": {
          "type": "string"
        },
        "AccountHolderIdNo": {
          "type": "string"
        },
        "AccountHolderIdType": {
          "type": "string"
        },
        "AccountHolderName": {
          "type": "string"
        },
        "AccountHolderType": {
          "type": "string"
        },
        "AccountId": {
          "type": "integer",
          "format": "int64"
        },
        "AccountNo": {
          "type": "string"
        },
        "AccountPurpose": {
          "type": "integer",
          "format": "int32"
        },
        "AccountStatus": {
          "type": "string"
        },
        "AccountType": {
          "type": "string"
        },
        "BankCode": {
          "type": "string"
        },
        "BusinessObjectId": {
          "type": "integer",
          "format": "int64"
        },
        "CustomerId": {
          "type": "integer",
          "format": "int64"
        },
        "IsPrimaryAccount": {
          "type": "string"
        },
        "OldPrimaryKey": {
          "type": "integer",
          "format": "int64"
        },
        "TempData": {
          "type": "object",
          "additionalProperties": {
            "type": "object"
          }
        }
      },
      "x-mo-dd-driven": {
        "modelName": "AccountInfo",
        "module": "PTY",
        "objectCode": "AccountInfo"
      }
    },
    "ContactInfo": {
      "type": "object",
      "description": "Contact Info",
      "properties": {
        "@pk": {
          "type": "integer",
          "format": "int64"
        },
        "@type": {
          "type": "string"
        },
        "AddressLine1": {
          "type": "string"
        },
        "AddressLine2": {
          "type": "string"
        },
        "AddressType": {
          "type": "string"
        },
        "BusinessObjectId": {
          "type": "integer",
          "format": "int64"
        },
        "City": {
          "type": "string"
        },
        "Comments": {
          "type": "string"
        },
        "ContactId": {
          "type": "integer",
          "format": "int64"
        },
        "Country": {
          "type": "string"
        },
        "CustomerId": {
          "type": "integer",
          "format": "int64"
        },
        "Default": {
          "type": "boolean"
        },
        "Email": {
          "type": "string"
        },
        "FirstName": {
          "type": "string"
        },
        "FullName": {
          "type": "string"
        },
        "LastName": {
          "type": "string"
        },
        "Mobile": {
          "type": "string"
        },
        "OldPrimaryKey": {
          "type": "integer",
          "format": "int64"
        },
        "PostalCode": {
          "type": "string"
        },
        "StateOrProvince": {
          "type": "string"
        },
        "Telephone": {
          "type": "string"
        },
        "TempData": {
          "type": "object",
          "additionalProperties": {
            "type": "object"
          }
        },
        "Title": {
          "type": "string"
        }
      },
      "x-mo-dd-driven": {
        "modelName": "ContactInfo",
        "module": "PTY",
        "objectCode": "ContactInfo"
      }
    }
  }
}