{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Discount",
"description": "A discount which ought to be applied to an order",
"$id": "https://raw.githubusercontent.com/api-evangelist/restaurant-brands/refs/heads/main/json-schema/channel-discount-schema.json",
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Type of discount.\n\n|Discount Type|Description |\n|--------|-----------------------------|\n|DISCOUNT | Generic type for any discount |\n",
"enum": [
"DISCOUNT"
],
"example": "DISCOUNT"
},
"total": {
"$ref": "#/components/schemas/Money",
"description": "Amount to be discounted"
}
}
}