Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 1.25 KB

Currency.md

File metadata and controls

32 lines (23 loc) · 1.25 KB

Currency

A JSON object containing code, symbol, and exponent for a given currency. Refer to Country and Currency.

Properties

Name Type Description Notes
code str The three-letter ISO currency code. This is the currency that is associated with the payment amount.
symbol str The currency symbol.
exponent int The log base 10 of the number of times we have to multiply the major unit to get the minor unit. Should be 0 for VN and 2 for other countries (SG/MY/ID/TH/PH/KH).

Example

from grabfood.models.currency import Currency

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

# convert the object into a dict
currency_dict = currency_instance.to_dict()
# create an instance of Currency from a dict
currency_from_dict = Currency.from_dict(currency_dict)

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