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

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 )
The price of the product in hundredths of currency units.
Returns
long
The ISO 4217 currency code for the price of the product. For example, "USD", "GBP", "JPY".
Returns
String
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
Did you find this page helpful?
Thumbs up icon
Thumbs down icon