Typescript SDK Type Docs
    Preparing search index...

    Interface ITypedMoney

    interface ITypedMoney {
        centAmount: number;
        currencyCode: string;
        fractionDigits?: number;
        type: MoneyType;
    }

    Hierarchy (View Summary)

    Index

    Properties

    centAmount: number

    Amount in the smallest indivisible unit of a currency, such as:

    * Cents for EUR and USD, pence for GBP, or centime for CHF (5 CHF is specified as `500`).
    * The value in the major unit for currencies without minor units, like JPY (5 JPY is specified as `5`).
    
    currencyCode: string

    The currency code compliant to ISO 4217.

    fractionDigits?: number

    The number of fraction digits of the money value. This is used to determine how many digits are after the decimal point. For example, for EUR and USD, this is 2, and for JPY, this is 0.

    type: MoneyType

    The type of money. The centPrecision type is used for currencies with minor units, such as EUR and USD. The highPrecision type is used for currencies without minor units, such as JPY.