{ "$id": "RedeemPayCode", "$schema": "http://json-schema.org/draft-06/schema#", "title": "RedeemPayCode", "description": "See http://10.0.10.242/w/tricore_architecture/server_interface/payment_commands/redeempaycode/", "type": "object", "required": [ "DeviceToken", "SessionToken", "PayCode", "RequestAmount", "AccountID", "Latitude", "Longitude" ], "additionalProperties": false, "properties": { "DeviceToken": { "$ref": "defs/#/definitions/DeviceToken" }, "SessionToken": { "$ref": "defs/#/definitions/SessionToken" }, "PayCode": { "$ref": "defs/#/definitions/paycodeString" }, "MerchantInvoice": { "type": "array", "items": { "$ref": "defs/#/definitions/merchantInvoiceItem" }, "minItems": 1 }, "MerchantComment": { "allOf": [ { "minLength": 1, "maxLength": 300, "ensureTrim": true, "example": "You were served today by Stuey." }, { "$ref": "defs/#/definitions/generalTextSpace" } ] }, "RequestAmount": { "$ref": "defs/#/definitions/positivePayment" }, "RequestTip": { "description": "1 to request a tip from the customer. 0 or not present to not request a tip", "type": "integer", "enum": [0, 1] }, "AccountID": { "$ref": "defs/#/definitions/uuid" }, "Latitude": { "$ref": "defs/#/definitions/latitude" }, "Longitude": { "$ref": "defs/#/definitions/longitude" } } }