Package com.revenuecat.purchases.models

Types

Link copied to clipboard
enum BillingFeature : Enum<BillingFeature>

Enum mapping billing feature types Allows for a common interface when calling feature eligibility methods from hybrid SDKs

Link copied to clipboard
data class GoogleStoreProduct(    val productId: String,     val type: ProductType,     val oneTimeProductPrice: Price?,     val title: String,     val description: String,     val subscriptionPeriod: String?,     val subscriptionOptions: List<GoogleSubscriptionOption>,     val defaultOption: SubscriptionOption?,     val productDetails: ProductDetails) : StoreProduct, Parcelable
Link copied to clipboard
data class GoogleSubscriptionOption(    val id: String,     val pricingPhases: List<PricingPhase>,     val tags: List<String>,     val token: String) : SubscriptionOption, Parcelable

Defines an option for purchasing a Google subscription

Link copied to clipboard
data class Price(    val formattedPrice: String,     val priceAmountMicros: Long,     val currencyCode: String) : Parcelable
Link copied to clipboard
data class PricingPhase(    val billingPeriod: String,     val priceCurrencyCode: String,     val formattedPrice: String,     val priceAmountMicros: Long,     val recurrenceMode: RecurrenceMode,     val billingCycleCount: Int?) : Parcelable
Link copied to clipboard
enum PurchaseState : Enum<PurchaseState>
Link copied to clipboard
enum PurchaseType : Enum<PurchaseType>
Link copied to clipboard
interface RawDataContainer<DataType>

A type which exposes its underlying raw data, for debugging purposes or for getting access to future data while using an older version of the SDK.

Link copied to clipboard
enum RecurrenceMode : Enum<RecurrenceMode>

Recurrence mode for a pricing phase

Link copied to clipboard
interface StoreProduct : Parcelable

Represents an in-app product's or subscription's listing details.

Link copied to clipboard
data class StoreTransaction(    val orderId: String?,     val productIds: List<String>,     val type: ProductType,     val purchaseTime: Long,     val purchaseToken: String,     val purchaseState: PurchaseState,     val isAutoRenewing: Boolean?,     val signature: String?,     val originalJson: JSONObject,     val presentedOfferingIdentifier: String?,     val storeUserID: String?,     val purchaseType: PurchaseType,     val marketplace: String?,     val subscriptionOptionId: String?) : Parcelable

Represents an in-app billing purchase.

Link copied to clipboard
interface SubscriptionOption : Parcelable

A purchase-able entity for a subscription product.

Link copied to clipboard
data class Transaction(    val transactionIdentifier: String,     revenuecatId: String,     val productIdentifier: String,     productId: String,     val purchaseDate: Date) : Parcelable

Functions

Link copied to clipboard
fun Int?.toRecurrenceMode(): RecurrenceMode

Properties

Link copied to clipboard
val StoreProduct.googleProduct: GoogleStoreProduct?