{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/anrok/main/json-schema/customer-certificate.json",
  "title": "CustomerCertificate",
  "type": "object",
  "properties": {
    "customerId": {
      "$ref": "#/components/schemas/CustomerId"
    },
    "customerName": {
      "$ref": "#/components/schemas/CustomerName"
    },
    "effectiveDateBegin": {
      "description": "Effective date of certificate",
      "type": "string",
      "format": "date",
      "examples": [
        "2022-01-01"
      ]
    },
    "exemptionNumber": {
      "description": "Certificate exemption number. This is used for display purposes only.",
      "type": "string",
      "examples": [
        "cert-105"
      ]
    },
    "notes": {
      "description": "Optional internal notes.",
      "type": "string",
      "examples": [
        "customer notes"
      ]
    },
    "certificateFile": {
      "$ref": "#/components/schemas/CustomerCertificateFile"
    },
    "jurises": {
      "description": "Jurisdictions for which certificate applies",
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/CustomerCertificateJuris"
      }
    }
  },
  "required": [
    "customerId",
    "effectiveDateBegin",
    "certificateFile",
    "jurises"
  ]
}