zut.convert.GoogleMoney

class zut.convert.GoogleMoney(*args, **kwargs)

Bases: Protocol

Represents an amount of money with its currency type, as defined by Google.

See https://developers.google.com/actions-center/verticals/things-to-do/reference/feed-spec/google-types?hl=fr#googletypemoney_definition

__init__(*args, **kwargs)

Methods

__init__(*args, **kwargs)

Attributes

currency_code

3-letter currency code defined in ISO 4217.

units

Number of units of the amount (should be integers but float are accepted).

nanos

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).