CurrencyAmount

@Serializable
data class CurrencyAmount(val originalValue: Long, val originalUnit: CurrencyUnit, val preferredCurrencyUnit: CurrencyUnit, val preferredCurrencyValueRounded: Long, val preferredCurrencyValueApprox: Float)

Represents the value and unit for an amount of currency.

Parameters

originalValue

The original numeric value for this CurrencyAmount.

originalUnit

The original unit of currency for this CurrencyAmount.

preferredCurrencyUnit

The unit of user's preferred currency.

preferredCurrencyValueRounded

The rounded numeric value for this CurrencyAmount in the very base level of user's preferred currency. For example, for USD, the value will be in cents.

preferredCurrencyValueApprox

The approximate float value for this CurrencyAmount in the very base level of user's preferred currency. For example, for USD, the value will be in cents.

Constructors

Link copied to clipboard
constructor(originalValue: Long, originalUnit: CurrencyUnit, preferredCurrencyUnit: CurrencyUnit, preferredCurrencyValueRounded: Long, preferredCurrencyValueApprox: Float)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard