{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://nbrain-studio.github.io/schemas/eta-receipt.schema.json",
  "title": "NBrain Egypt ETA E-Receipt v1.2 Canonical Payload",
  "type": "object",
  "required": [
    "header",
    "documentType",
    "totalAmount"
  ],
  "properties": {
    "header": {
      "type": "object",
      "required": [
        "receiptNumber",
        "currency"
      ]
    },
    "documentType": {
      "type": "object",
      "required": [
        "receiptType",
        "typeVersion"
      ]
    },
    "totalAmount": {
      "type": "number",
      "minimum": 0
    }
  }
}
