Typescript SDK Type Docs
    Preparing search index...

    Interface Money

    Draft object to store money in cent amounts for a specific currency.

    interface Money {
        centAmount: number;
        currencyCode: string;
    }
    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`).
    
    `centAmount` is represented as 64-bit integers. If this limit is exceeded, a [MoneyOverflow](/errors#moneyoverflow) error will be returned.
    
    currencyCode: string

    Currency code compliant to ISO 4217.