All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.com.revenuecat.purchases.kmp.models.Price.kt Maven / Gradle / Ivy

There is a newer version: 1.3.7+13.15.0
Show newest version
package com.revenuecat.purchases.kmp.models

/**
 * Represents a monetary price.
 * @property formatted Formatted price of the item, including its currency sign. For example $3.00.
 * @property amountMicros Price in micro-units, where 1,000,000 micro-units equal one unit of the currency.
 * For example, if price is "€7.99", price_amount_micros is 7,990,000. This value represents
 * the localized, rounded price for a particular currency.
 * @property currencyCode Returns ISO 4217 currency code for price and original price.
 * For example, if price is specified in British pounds sterling, price_currency_code is "GBP".
 * If currency code cannot be determined, currency symbol is returned.
 */
public class Price(
    public val formatted: String,
    public val amountMicros: Long,
    public val currencyCode: String,
)




© 2015 - 2025 Weber Informatics LLC | Privacy Policy