Skip to content

Files

Latest commit

cb63d9f · Feb 24, 2025

History

History
31 lines (22 loc) · 1.4 KB

RedeemResult.md

File metadata and controls

31 lines (22 loc) · 1.4 KB

RedeemResult

A JSON object containing dine-in voucher details.

Properties

Name Type Description Notes
success bool To indicate whether the dine-in voucher redemption succeeded. [optional]
code str 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]

Example

from grabfood.models.redeem_result import RedeemResult

# TODO update the JSON string below
json = "{}"
# create an instance of RedeemResult from a JSON string
redeem_result_instance = RedeemResult.from_json(json)
# print the JSON string representation of the object
print(RedeemResult.to_json())

# convert the object into a dict
redeem_result_dict = redeem_result_instance.to_dict()
# create an instance of RedeemResult from a dict
redeem_result_from_dict = RedeemResult.from_dict(redeem_result_dict)

[Back to Model list] [Back to API list] [Back to README]