CustomerInfo class

Class containing all information regarding the customer

Constructors

CustomerInfo.new(EntitlementInfos entitlements, Map<String, String?> allPurchaseDates, List<String> activeSubscriptions, List<String> allPurchasedProductIdentifiers, List<StoreTransaction> nonSubscriptionTransactions, String firstSeen, String originalAppUserId, Map<String, String?> allExpirationDates, String requestDate, {String? latestExpirationDate, String? originalPurchaseDate, String? originalApplicationVersion, String? managementURL})
const
CustomerInfo.fromJson(Map<String, dynamic> json)
factory

Properties

activeSubscriptions List<String>
Set of active subscription skus
final
allExpirationDates Map<String, String?>
Map of skus to expiration dates
final
allPurchaseDates Map<String, String?>
Map of skus to purchase dates
final
allPurchasedProductIdentifiers List<String>
Set of purchased skus, active and inactive
final
entitlements EntitlementInfos
Entitlements attached to this customer info
final
firstSeen String
The date this user was first seen in RevenueCat.
final
hashCode int
The hash code for this object.
no setterinherited
latestExpirationDate String?
The latest expiration date of all purchased skus
final
managementURL String?
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 device store.
final
nonSubscriptionTransactions List<StoreTransaction>
Returns all the non-subscription purchases a user has made. The purchases are ordered by purchase date in ascending order.
final
originalApplicationVersion String?
Returns the version number for the version of the application when the user bought the app. Use this for grandfathering users when migrating to subscriptions.
final
originalAppUserId String
The original App User Id recorded for this user.
final
originalPurchaseDate String?
Returns the purchase date for the version of the application when the user bought the app. Use this for grandfathering users when migrating to subscriptions.
final
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
requestDate String
Date when this info was requested
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited