Price information for a product.

interface Price {
    amount: number;
    amountMicros: number;
    currency: string;
    formattedPrice: string;
}

Properties

amount: number

Price in cents of the currency.

amountMicros: number

Price in micro-units of the currency. For example, $9.99 is represented as 9990000.

currency: string

Returns ISO 4217 currency code for price. For example, if price is specified in British pounds sterling, currency is "GBP". If currency code cannot be determined, currency symbol is returned.

formattedPrice: string

Formatted price string including price and currency.