API reference
API reference
Select your platform
No SDKs available
No versions available

Price Interface

The price of a Product. A price contains a currency code, an amount in hundredths, and its formatted string representation. For example, a price with a currency code of "USD" and an amount in hundredths of 99 has a formatted string of "$0.99".

Signature

interface Price

Properties

amountInHundredths : Long
[Get]
The price of the product in hundredths of currency units.
Signature
abstract val amountInHundredths: Long
currency : String
[Get]
The ISO 4217 currency code for the price of the product. For example, "USD", "GBP", "JPY".
Signature
abstract val currency: String
formatted : String
[Get]
The formatted string representation of the price, e.g., "$0.78". The value depends on the Price.currency and Price.amountInHundredths.
Signature
abstract val formatted: String
Did you find this page helpful?