Skip to content

Latest commit

 

History

History
29 lines (17 loc) · 1.13 KB

RedeemResult.md

File metadata and controls

29 lines (17 loc) · 1.13 KB

RedeemResult

A JSON object containing dine-in voucher details.

Properties

Name Type Description Notes
success Boolean To indicate whether the dine-in voucher redemption succeeded. [optional]
code CodeEnum The code for the reason of failed redemption. Empty if the `success` is true. * `VOUCHER_REDEEMED` - The voucher has already been redeemed. * `INVALID_STATE` - The current status of voucher is EXPIRED or REFUNDED. * `REDEEM_FAILED` - Internal service error. * `INVALID_MERCHANT` - Voucher not applicable for this merchant. * `INVALID_ID` - Invalid certificateID. [optional]

Enum: CodeEnum

Name Value
VOUCHER_REDEEMED "VOUCHER_REDEEMED"
INVALID_STATE "INVALID_STATE"
REDEEM_FAILED "REDEEM_FAILED"
INVALID_MERCHANT "INVALID_MERCHANT"
INVALID_ID "INVALID_ID"
EMPTY ""
UNKNOWN_DEFAULT_OPEN_API "unknown_default_open_api"