//Granify Android SDK/com.granifyinc.granifysdk.models/Price
Price
[androidJvm]
@Serializable(with = PriceSerializer::class)
open class Price
Represents a non-negative monetary price value.
This should match the currency used for prices in your analytics. Must be USD, unless another currency has been agreed on with Granify. All prices used in a single API call (i.e. Granify functions) must use a singular currency.
Constructors
Price | [androidJvm] @JvmOverloads constructor(amount: Double, currency: Currency = Currency.USD) |
Properties
Name | Summary |
---|---|
amount | [androidJvm] val amount: Double The magnitude of the price. |
currency | [androidJvm] val currency: Currency The currency associated with the amount. |
Functions
Name | Summary |
---|---|
toString | [androidJvm] open override fun toString(): String Returns a string representation of the price. |