A JSON object containing dine-in voucher details.
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] |
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)