Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 1.09 KB

File metadata and controls

31 lines (22 loc) · 1.09 KB

MoneySchema

Money representation with amount in smallest currency unit and ISO 4217 currency code

Properties

Name Type Description Notes
amount str Amount in the smallest representable units of the currency (e.g., cents for USD). For example, USD $124.39 would be "12439".
currency_code str ISO 4217 currency code

Example

from cloudbeds_pms.models.money_schema import MoneySchema

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

# convert the object into a dict
money_schema_dict = money_schema_instance.to_dict()
# create an instance of MoneySchema from a dict
money_schema_from_dict = MoneySchema.from_dict(money_schema_dict)

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