{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/casaintelligence-com-au/json-schema/casaintelligence-com-au-application-in-schema.json",
  "title": "ApplicationIn",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/casaintelligence-com-au-agency-api-openapi.yml#/components/schemas/ApplicationIn",
  "properties": {
    "trading_name": {
      "type": "string",
      "maxLength": 200,
      "minLength": 2,
      "title": "Trading Name"
    },
    "legal_name": {
      "type": "string",
      "maxLength": 200,
      "minLength": 2,
      "title": "Legal Name"
    },
    "abn": {
      "type": "string",
      "maxLength": 20,
      "minLength": 11,
      "title": "Abn"
    },
    "business_address": {
      "type": "string",
      "maxLength": 400,
      "minLength": 5,
      "title": "Business Address"
    },
    "contact_name": {
      "type": "string",
      "maxLength": 200,
      "minLength": 2,
      "title": "Contact Name"
    },
    "contact_email": {
      "type": "string",
      "maxLength": 320,
      "title": "Contact Email"
    },
    "contact_phone": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 60
        },
        {
          "type": "null"
        }
      ],
      "title": "Contact Phone"
    },
    "accounts_email": {
      "type": "string",
      "maxLength": 320,
      "title": "Accounts Email"
    },
    "po_required": {
      "type": "boolean",
      "title": "Po Required",
      "default": false
    },
    "po_reference": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 120
        },
        {
          "type": "null"
        }
      ],
      "title": "Po Reference"
    },
    "who_may_order": {
      "type": "string",
      "pattern": "^(any|listed)$",
      "title": "Who May Order",
      "default": "any"
    },
    "member_emails": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "maxItems": 60,
      "title": "Member Emails"
    },
    "terms_accepted": {
      "type": "boolean",
      "title": "Terms Accepted"
    },
    "terms_version": {
      "type": "string",
      "maxLength": 20,
      "title": "Terms Version",
      "default": "1.3"
    }
  },
  "type": "object",
  "required": [
    "trading_name",
    "legal_name",
    "abn",
    "business_address",
    "contact_name",
    "contact_email",
    "accounts_email",
    "terms_accepted"
  ]
}