Skip to content

CurrencyAmount

Source code in docs_src/capo_payments/types/currency_amount.py
class CurrencyAmount(TypedDict, closed=True):
    value: "capo_payments.types.decimal_string.DecimalString"
    """<p>The amount, as a decimal string, such as <code>10.99</code>. The number of decimal places can differ between amounts, for example <code>0.0</code> and <code>1000.24</code>.</p>"""
    currency: "capo_payments.types.currency_code.CurrencyCode"
    """<p>The ISO 4217 currency code for the amount (for example, <code>USD</code>).</p>"""

currency instance-attribute

currency: CurrencyCode

The ISO 4217 currency code for the amount (for example, USD).

value instance-attribute

The amount, as a decimal string, such as 10.99. The number of decimal places can differ between amounts, for example 0.0 and 1000.24.