API reference

Price Class

The price of a com.meta.horizon.platform.ovr.models.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".

Member Functions

Price
( final long ptr )
long getAmountInHundredths ( )
The price of the product in hundredths of currency units.
Returns
long
String getCurrency ( )
The ISO 4217 currency code for the price of the product. For example, "USD", "GBP", "JPY".
Returns
String
String getFormatted ( )
The formatted string representation of the price, e.g., "$0.78". The value depends on the com.meta.horizon.platform.ovr.models.Price#getCurrency() and com.meta.horizon.platform.ovr.models.Price#getAmountInHundredths().
Returns
String