CustomerInfo

class CustomerInfo(val activeSubscriptions: Set<String>, val allExpirationDateMillis: Map<String, Long?>, val allPurchaseDateMillis: Map<String, Long?>, val allPurchasedProductIdentifiers: Set<String>, val entitlements: EntitlementInfos, val firstSeenMillis: Long, val latestExpirationDateMillis: Long?, val managementUrlString: String?, val nonSubscriptionTransactions: List<Transaction>, val originalAppUserId: String, val originalApplicationVersion: String?, val originalPurchaseDateMillis: Long?, val requestDateMillis: Long)

Class containing all information regarding the customer.

Constructors

Link copied to clipboard
constructor(activeSubscriptions: Set<String>, allExpirationDateMillis: Map<String, Long?>, allPurchaseDateMillis: Map<String, Long?>, allPurchasedProductIdentifiers: Set<String>, entitlements: EntitlementInfos, firstSeenMillis: Long, latestExpirationDateMillis: Long?, managementUrlString: String?, nonSubscriptionTransactions: List<Transaction>, originalAppUserId: String, originalApplicationVersion: String?, originalPurchaseDateMillis: Long?, requestDateMillis: Long)

Properties

Link copied to clipboard

Set of active subscription productIds.

Link copied to clipboard

Map of productIds to expiration dates in milliseconds since the Unix epoch.

Link copied to clipboard

Map of productIds to purchase dates in milliseconds since the Unix epoch.

Link copied to clipboard

Set of purchased productIds, active and inactive.

Link copied to clipboard

Entitlements attached to this customer info.

Link copied to clipboard

The date this user was first seen in RevenueCat in milliseconds since the Unix epoch.

Link copied to clipboard

The latest expiration date of all purchased productIds in milliseconds since the Unix epoch.

Link copied to clipboard

URL to manage the active subscription of the user. If this user has an active iOS subscription, this will point to the App Store, if the user has an active Play Store subscription it will point there. If there are no active subscriptions it will be null. If there are multiple for different platforms, it will point to the Play Store on Android, and to the App Store on iOS.

Link copied to clipboard

List of all non subscription transactions. Use this to fetch the history of non-subscription purchases.

Link copied to clipboard

App Store only. The build number (in iOS) or the marketing version (in macOS) for the version of the application when the user bought the app. This corresponds to the value of CFBundleVersion (in iOS) or CFBundleShortVersionString (in macOS) in the Info.plist file when the purchase was originally made. Use this for grandfathering users when migrating to subscriptions.

Link copied to clipboard

The original app User Id recorded for this user.

Link copied to clipboard

The purchase date in milliseconds since the Unix epoch for the version of the application when the user bought the app. Use this for grandfathering users when migrating to subscriptions. This can be null, see Purchases.restorePurchases.

Link copied to clipboard

Date when this info was requested in milliseconds since the Unix epoch.