Customer Center Purchase
data class CustomerCenterPurchase(val productId: String?, val store: Store, val entitlements: Set<Entitlement>, val subscription: SubscriptionTransaction? = null, val nonSubscription: NonSubscriptionTransaction? = null)(source)
The purchase a Customer Center action applies to.
Constructors
Link copied to clipboard
constructor(productId: String?, store: Store, entitlements: Set<Entitlement>, subscription: SubscriptionTransaction? = null, nonSubscription: NonSubscriptionTransaction? = null)
Properties
Link copied to clipboard
The entitlements the purchase unlocks, including any it no longer grants: for a purchase with a transaction behind it these are every entitlement the product has ever unlocked, so check Entitlement.isActive before treating one as current.
Link copied to clipboard
The one-time purchase, when the purchase is one.
Link copied to clipboard
The subscription, when the purchase is one.