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".

Constructors

Price ( ptr )
Signature
com.meta.horizon.platform.ovr.models.Price.Price(final long ptr)
Parameters
ptr: final long

Methods

getAmountInHundredths ()
The price of the product in hundredths of currency units.
Signature
long com.meta.horizon.platform.ovr.models.Price.getAmountInHundredths()
Returns
long  long
getCurrency ()
The ISO 4217 currency code for the price of the product. For example, "USD", "GBP", "JPY".
Signature
String com.meta.horizon.platform.ovr.models.Price.getCurrency()
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().
Signature
String com.meta.horizon.platform.ovr.models.Price.getFormatted()
Returns
String  String