Package-level declarations

Types

Link copied to clipboard

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

Link copied to clipboard
data class GoogleInstallmentsInfo(val commitmentPaymentsCount: Int, val renewalCommitmentPaymentsCount: Int) : InstallmentsInfo

Type containing information of Google Play installment subscriptions

Link copied to clipboard
Link copied to clipboard

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

Link copied to clipboard
Link copied to clipboard
data class GoogleSubscriptionOption @JvmOverloads constructor(val productId: String, val basePlanId: String, val offerId: String?, val pricingPhases: List<PricingPhase>, val tags: List<String>, val productDetails: ProductDetails, val offerToken: String, val presentedOfferingContext: PresentedOfferingContext? = null, val installmentsInfo: GoogleInstallmentsInfo? = null) : SubscriptionOption

Defines an option for purchasing a Google subscription

Link copied to clipboard

Enum mapping in-app message types

Link copied to clipboard

Type containing information of installment subscriptions. Currently only supported in Google Play.

Link copied to clipboard

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
Link copied to clipboard
Link copied to clipboard
interface PurchasingData
Link copied to clipboard

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

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 presentedOfferingContext: PresentedOfferingContext?, val storeUserID: String?, val purchaseType: PurchaseType, val marketplace: String?, val subscriptionOptionId: String?, val replacementMode: ReplacementMode?) : Parcelable

Represents an in-app billing purchase.

Link copied to clipboard

A purchase-able entity for a subscription product.

Link copied to clipboard
Link copied to clipboard
data class TestStoreProduct(val id: String, val name: String, val title: String, val description: String, val price: Price, val period: Period?, freeTrialPeriod: Period? = null, introPrice: Price? = null) : StoreProduct

A test-only StoreProduct implementation. This can be used to create mock data for tests or Jetpack Compose previews.

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

Properties

Link copied to clipboard

StoreProduct object containing Google-specific fields: productId basePlanId productDetails