CurrencyValue Class
A currency value element.
New in version 2023-07-31: The code property.
- Inheritance
-
builtins.objectCurrencyValue
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
Spolupracujte s námi na GitHubu
Zdroj tohoto obsahu najdete na GitHubu, kde můžete také vytvářet a kontrolovat problémy a žádosti o přijetí změn. Další informace najdete v našem průvodci pro přispěvatele.
Azure SDK for Python