Package-level declarations

Types

Link copied to clipboard

Processes transactions into enriched entitlements.

Link copied to clipboard

Interface that defines the transaction properties needed for entitlement processing. This abstraction allows for different transaction sources (Google Play, mock data, etc.) to be processed uniformly by the EntitlementProcessor.

Link copied to clipboard

Represents the type of a product for entitlement processing.

Link copied to clipboard
data class InAppPurchase(var productIdentifier: String, var fullIdentifier: String)
Link copied to clipboard
@Serializable
enum LatestPeriodType : Enum<LatestPeriodType>
Link copied to clipboard
Link copied to clipboard

Default implementation using Google Play Billing. Kept for its public signature; it converts each Play purchase to the neutral form and runs the SDK's own status logic.

Link copied to clipboard

Adapts a Google Play Purchase to EntitlementTransaction. Kept for its public signature; it converts the purchase to the neutral form and reads it through StorePurchaseTransaction.

Link copied to clipboard

Builds the device's purchases, entitlements and customer info from the Store's receipts. It reads only neutral store types; the SDK builds it with its own store.

Link copied to clipboard
@Serializable
data class StoredEntitlementTransaction(val productId: String, val transactionId: String, val purchaseDate: Date, val originalPurchaseDate: Date, val expirationDate: Date?, val isRevoked: Boolean, val productType: EntitlementTransactionType, val willRenew: Boolean, val renewedAt: Date?, val isInGracePeriod: Boolean, val isInBillingRetryPeriod: Boolean, val isActive: Boolean, val isPending: Boolean = false) : EntitlementTransaction

A serializable representation of an EntitlementTransaction that can be persisted to storage. This allows us to maintain transaction history even after purchases expire or are no longer returned by Google Play.

Link copied to clipboard

Provides subscription status information from the billing service.

Link copied to clipboard
data class TransactionReceipt(val originalTransactionId: String, val purchaseToken: String)
Link copied to clipboard
@Serializable
data class UserTransactionHistory(val transactions: Map<String, StoredEntitlementTransaction> = emptyMap())

Container for storing transaction history. Maps transaction ID to the stored transaction for efficient lookup and deduplication.