PlayStorePurchaseAdapter

class PlayStorePurchaseAdapter(purchase: Purchase, product: StoreProduct?, val productId: String) : EntitlementTransaction(source)

Adapts a Google Play Purchase to the EntitlementTransaction interface.

Constructors

Link copied to clipboard
constructor(purchase: Purchase, product: StoreProduct?, productId: String)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val expirationDate: Date?

The expiration date of the subscription, or null if non-expiring.

Link copied to clipboard
open override val isActive: Boolean

Whether the transaction is currently active.

Link copied to clipboard
open override val isInBillingRetryPeriod: Boolean

Whether the subscription is in a billing retry period.

Link copied to clipboard
open override val isInGracePeriod: Boolean

Whether the subscription is in a grace period (payment failed but still active).

Link copied to clipboard
open override val isRevoked: Boolean

Whether this transaction has been revoked (e.g., refunded).

Link copied to clipboard
open override val originalPurchaseDate: Date

The original purchase date (for renewals, this is the first purchase).

Link copied to clipboard
open override val productId: String

The product identifier for this transaction.

Link copied to clipboard

The type of product this transaction represents.

Link copied to clipboard
open override val purchaseDate: Date

The date when the purchase was made.

Link copied to clipboard
open override val renewedAt: Date?

The date when the subscription was last renewed, or null if not renewed.

Link copied to clipboard
open override val transactionId: String

The unique identifier for this transaction.

Link copied to clipboard
open override val willRenew: Boolean

Whether the subscription will auto-renew.