{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/adyen/refs/heads/main/json-schema/terminal-loyalty-transaction-schema.json", "title": "LoyaltyTransaction", "description": "LoyaltyTransaction schema from Adyen API", "type": "object", "properties": { "LoyaltyTransactionType": { "$ref": "#/components/schemas/LoyaltyTransactionType" }, "Currency": { "type": "string", "pattern": "^[A-Z]{3,3}$" }, "TotalAmount": { "type": "number", "maximum": 99999999.999999, "minimum": 0 }, "OriginalPOITransaction": { "$ref": "#/components/schemas/OriginalPOITransaction" }, "TransactionConditions": { "$ref": "#/components/schemas/TransactionConditions" }, "SaleItem": { "type": "array", "items": { "$ref": "#/components/schemas/SaleItem" } } }, "required": [ "LoyaltyTransactionType" ] }