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
enum GoogleProrationMode : Enum<GoogleProrationMode>

Enum of possible proration modes to be passed to a Google Play purchase. Ignored for Amazon purchases.

Link copied to clipboard
sealed class GooglePurchasingData : PurchasingData
Link copied to clipboard
data class GoogleStoreProduct(    val productId: String,     val basePlanId: String?,     val type: ProductType,     val price: Price,     val title: String,     val description: String,     val period: Period?,     val subscriptionOptions: SubscriptionOptions?,     val defaultOption: SubscriptionOption?,     val productDetails: ProductDetails,     val presentedOfferingIdentifier: String? = null) : StoreProduct
Link copied to clipboard
data class GoogleSubscriptionOption(    val productId: String,     val basePlanId: String,     val offerId: String?,     val pricingPhases: List<PricingPhase>,     val tags: List<String>,     val productDetails: ProductDetails,     val offerToken: String,     val presentedOfferingIdentifier: String? = null) : SubscriptionOption

Defines an option for purchasing a Google subscription

Link copied to clipboard
enum OfferPaymentMode : Enum<OfferPaymentMode>

Payment mode for offer pricing phases

Link copied to clipboard
data class Period(    val value: Int,     val unit: Period.Unit,     val iso8601: String) : Parcelable

Represents subscription or PricingPhase billing period

Link copied to clipboard
data class Price(    val formatted: String,     val amountMicros: Long,     val currencyCode: String) : Parcelable
Link copied to clipboard
data class PricingPhase(    val billingPeriod: Period,     val recurrenceMode: RecurrenceMode,     val billingCycleCount: Int?,     val price: Price) : Parcelable

Encapsulates how a user pays for a subscription at a given point in time.

Link copied to clipboard
enum PurchaseState : Enum<PurchaseState>
Link copied to clipboard
enum PurchaseType : Enum<PurchaseType>
Link copied to clipboard
interface PurchasingData
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

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

A purchase-able entity for a subscription product.

Link copied to clipboard
class SubscriptionOptions(subscriptionOptions: List<SubscriptionOption>) : List<SubscriptionOption>
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?

StoreProduct object containing Google-specific fields: productIdbasePlanIdproductDetails