{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "Order record",
  "description": "One order line in the daily batch feed.",
  "type": "object",
  "required": ["orderId", "amount"],
  "properties": {
    "orderId": {
      "type": "string",
      "description": "Unique order identifier."
    },
    "amount": {
      "type": "number",
      "description": "Order total in minor units."
    },
    "currency": {
      "type": "string",
      "description": "ISO 4217 currency code."
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "description": "Order creation timestamp."
    }
  }
}
