{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "Receipt Event",
  "description": "Transaction event details as rendered on the receipt.",
  "type": "object",
  "properties": {
    "id": {
      "$ref": "#/components/schemas/EventID"
    },
    "transaction_id": {
      "$ref": "#/components/schemas/TransactionID"
    },
    "type": {
      "$ref": "#/components/schemas/EventType"
    },
    "status": {
      "$ref": "#/components/schemas/EventStatus"
    },
    "amount": {
      "description": "Amount of the event.",
      "type": "string",
      "format": "double"
    },
    "timestamp": {
      "description": "Date and time of the transaction event.",
      "type": "string",
      "format": "date-time"
    },
    "receipt_no": {
      "description": "Receipt number associated with the event.",
      "type": "string"
    }
  }
}