EntitlementTransaction

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.

Inheritors

Properties

Link copied to clipboard
abstract val expirationDate: Date?

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

Link copied to clipboard
abstract val isActive: Boolean

Whether the transaction is currently active.

Link copied to clipboard

Whether the subscription is in a billing retry period.

Link copied to clipboard
abstract val isInGracePeriod: Boolean

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

Link copied to clipboard
abstract val isRevoked: Boolean

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

Link copied to clipboard

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

Link copied to clipboard
abstract val productId: String

The product identifier for this transaction.

Link copied to clipboard

The type of product this transaction represents.

Link copied to clipboard
abstract val purchaseDate: Date

The date when the purchase was made.

Link copied to clipboard
abstract val renewedAt: Date?

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

Link copied to clipboard
abstract val transactionId: String

The unique identifier for this transaction.

Link copied to clipboard
abstract val willRenew: Boolean

Whether the subscription will auto-renew.