CurrencyValue Class

A currency value element.

New in version 2023-07-31: The code property.

Inheritance
builtins.object
CurrencyValue

Constructor

CurrencyValue(**kwargs: Any)

Methods

from_dict

Converts a dict in the shape of a CurrencyValue to the model itself.

to_dict

Returns a dict representation of CurrencyValue.

from_dict

Converts a dict in the shape of a CurrencyValue to the model itself.

from_dict(data: Dict) -> CurrencyValue

Parameters

Name Description
data
Required

A dictionary in the shape of CurrencyValue.

Returns

Type Description

CurrencyValue

to_dict

Returns a dict representation of CurrencyValue.

to_dict() -> Dict

Returns

Type Description

dict

Attributes

amount

The currency amount.

amount: float

code

Resolved currency code (ISO 4217), if any.

code: str | None

symbol

The currency symbol, if found.

symbol: str | None