CustomerEntitlement
data class CustomerEntitlement(val identifier: String, val displayName: String = identifier, val productIdentifier: String? = null, val environment: StoreEnvironment = StoreEnvironment.Unknown, val status: CustomerEntitlementStatus = CustomerEntitlementStatus.Active, val active: Boolean, val startsAt: Instant? = null, val expiresAt: Instant? = null, val revokedAt: Instant? = null, val lastVerifiedAt: Instant, val basePlanIdentifier: String? = null, val offerIdentifier: String? = null, val store: EntitlementStore = EntitlementStore.GooglePlay, val ownershipType: EntitlementOwnershipType = EntitlementOwnershipType.Purchased, val scopes: Set<EntitlementScope> = if (ownershipType == EntitlementOwnershipType.Granted)
setOf(EntitlementScope.Account) else setOf(EntitlementScope.Store))
An entitlement resolved from facts provided by the store.
Constructors
Link copied to clipboard
constructor(identifier: String, displayName: String = identifier, productIdentifier: String? = null, environment: StoreEnvironment = StoreEnvironment.Unknown, status: CustomerEntitlementStatus = CustomerEntitlementStatus.Active, active: Boolean, startsAt: Instant? = null, expiresAt: Instant? = null, revokedAt: Instant? = null, lastVerifiedAt: Instant, basePlanIdentifier: String? = null, offerIdentifier: String? = null, store: EntitlementStore = EntitlementStore.GooglePlay, ownershipType: EntitlementOwnershipType = EntitlementOwnershipType.Purchased, scopes: Set<EntitlementScope> = if (ownershipType == EntitlementOwnershipType.Granted)
setOf(EntitlementScope.Account) else setOf(EntitlementScope.Store))
Properties
Link copied to clipboard
The Google Play base plan identifier verified by the server. Always null when resolved on the device.
Link copied to clipboard
The entitlement display name.
Link copied to clipboard
The store environment verified by the server.
Link copied to clipboard
The entitlement identifier defined by the app.
Link copied to clipboard
The time when the entitlement was last verified.
Link copied to clipboard
The Google Play offer identifier verified by the server. null for a base plan without an offer or when resolved on the device.
Link copied to clipboard
Link copied to clipboard
The store product identifier that granted the entitlement.
Link copied to clipboard
Link copied to clipboard
The current entitlement status.
Link copied to clipboard