Package-level declarations

Types

Link copied to clipboard
@Serializable
data class Entitlement(val id: String, val type: Entitlement.Type = Type.SERVICE_LEVEL, val isActive: Boolean = false, val productIds: Set<String> = emptySet(), val latestProductId: String? = null, val startsAt: Date? = null, val renewedAt: Date? = null, val expiresAt: Date? = null, val isLifetime: Boolean? = null, val willRenew: Boolean? = null, val state: LatestSubscriptionState? = null, val offerType: LatestPeriodType? = null, val store: Store? = null)

An entitlement that represents a subscription tier in your app.

Link copied to clipboard
@Serializable
data class Redeemable(val code: String, val firstRedemption: Boolean? = false)
Link copied to clipboard
@Serializable
data class RedeemRequest(val deviceId: String, val userId: String?, val aliasId: String? = null, val codes: List<Redeemable>, val receipts: List<TransactionReceipt>, val externalAccountId: String, val metadata: Map<String, JsonElement>? = null)
Link copied to clipboard
@Serializable
sealed class SubscriptionStatus

Represents the status of user's subscriptions and entitlements.

Link copied to clipboard
@Serializable
data class TransactionReceipt(val purchaseToken: String, val orderId: String? = null, val productId: String, val productType: TransactionReceipt.ProductType)
Link copied to clipboard
@Serializable
data class WebEntitlements(val customerInfo: CustomerInfo? = null)