{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/idenfy/main/json-schema/idenfy-gov-partner-ordered-document-schema.json",
  "title": "GovPartnerOrderedDocument",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/idenfy-gov-orders-api-openapi.yml#/components/schemas/GovPartnerOrderedDocument",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "readOnly": true
    },
    "title": {
      "type": [
        "string",
        "null"
      ]
    },
    "documentFormat": {
      "type": "string",
      "maxLength": 5
    },
    "productKey": {
      "type": "string"
    },
    "expectedDeliveryTime": {
      "type": "string",
      "format": "date-time"
    },
    "price": {
      "type": "number",
      "format": "double",
      "minimum": 0
    },
    "deliveredAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "status": {
      "$ref": "#/$defs/GovDocumentOrderStatusEnum"
    },
    "file": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri"
    }
  },
  "required": [
    "expectedDeliveryTime",
    "id",
    "price",
    "productKey"
  ],
  "$defs": {
    "GovDocumentOrderStatusEnum": {
      "enum": [
        "NOT_ORDERED",
        "IN_PROGRESS",
        "FINISHED",
        "FAILED",
        "TIMED_OUT"
      ],
      "type": "string"
    }
  }
}