Entitlement
@Serializable
An entitlement that represents a subscription tier in your app.
Constructors
Link copied to clipboard
constructor(id: String, type: Entitlement.Type = Type.SERVICE_LEVEL, isActive: Boolean = false, productIds: Set<String> = emptySet(), latestProductId: String? = null, startsAt: Date? = null, renewedAt: Date? = null, expiresAt: Date? = null, isLifetime: Boolean? = null, willRenew: Boolean? = null, state: LatestSubscriptionState? = null, offerType: LatestPeriodType? = null, store: Store? = null)
Convenience constructor for creating an entitlement with just an ID.
Types
Properties
Link copied to clipboard
Indicates whether the last subscription transaction associated with this entitlement is in a billing grace period state.
Link copied to clipboard
Indicates whether the entitlement is active for a lifetime due to the purchase of a non-consumable.
Link copied to clipboard
The product identifier of the latest transaction to unlock this entitlement.
Link copied to clipboard
The type of offer that applies to the last subscription transaction that unlocks this entitlement.
Link copied to clipboard
All product identifiers that map to the entitlement.
Link copied to clipboard
The state of the last subscription transaction associated with the entitlement.
Link copied to clipboard
The type of entitlement.