zut.convert.GoogleMoney
- class zut.convert.GoogleMoney(*args, **kwargs)
Bases:
Protocol
Represents an amount of money with its currency type, as defined by Google.
- __init__(*args, **kwargs)
Methods
__init__
(*args, **kwargs)Attributes
3-letter currency code defined in ISO 4217.
Number of units of the amount (should be integers but float are accepted).
Number of nano (10^-9) units of the amount.
- currency_code: str
3-letter currency code defined in ISO 4217.
- nanos: int
Number of nano (10^-9) units of the amount.
- units: int | float
Number of units of the amount (should be integers but float are accepted).