Skip to content

Latest commit

 

History

History
34 lines (25 loc) · 1.1 KB

File metadata and controls

34 lines (25 loc) · 1.1 KB

Voucher

Properties

Name Type Description Notes
code str Voucher code
id int Voucher ID
max_redemption_count int Max redemption count for a General Voucher [optional]
redemption_count int Current redemption count for a General Voucher [optional]
remaining_redemptions int Remaining redemptions [optional]
status str Voucher status

Example

from hyperstack.models.voucher import Voucher

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

# convert the object into a dict
voucher_dict = voucher_instance.to_dict()
# create an instance of Voucher from a dict
voucher_from_dict = Voucher.from_dict(voucher_dict)

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