The reduction due to discounts.
Name | Type | Description | Notes |
---|---|---|---|
amount | float | Amount of the currency | |
currency | str | Type of currency | |
currency_symbol | str | Symbol to be used for this currency |
from epiccore.models.discount import Discount
# TODO update the JSON string below
json = "{}"
# create an instance of Discount from a JSON string
discount_instance = Discount.from_json(json)
# print the JSON string representation of the object
print Discount.to_json()
# convert the object into a dict
discount_dict = discount_instance.to_dict()
# create an instance of Discount from a dict
discount_form_dict = discount.from_dict(discount_dict)