CustomerEntitlement

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))