{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/restaurant-brands/refs/heads/main/json-structure/channel-posorder-error-structure.json",
  "name": "POSOrderError",
  "description": "Generic error object for order processing",
  "type": "object",
  "properties": {
    "message": {
      "type": "string",
      "description": "Human readable error message",
      "example": "TERMINAL UPDATE IN PROGRESS"
    },
    "code": {
      "type": "string",
      "description": "Error code",
      "example": "STORE",
      "enum": [
        "MENU",
        "STORE",
        "TIMEOUT",
        "UNKNOWN"
      ]
    }
  },
  "required": [
    "message",
    "code"
  ]
}