CustomerInfo class
Class containing all information regarding the customer
- Annotations
-
- @freezed
Constructors
-
CustomerInfo(@JsonKey(name: 'entitlements') EntitlementInfos entitlements, @JsonKey(name: 'allPurchaseDates') Map<
String, String> allPurchaseDates, @JsonKey(name: 'activeSubscriptions') List<String> activeSubscriptions, @JsonKey(name: 'allPurchasedProductIdentifiers') List<String> allPurchasedProductIdentifiers, @JsonKey(name: 'nonSubscriptionTransactions') List<StoreTransaction> nonSubscriptionTransactions, @JsonKey(name: 'firstSeen') String firstSeen, @JsonKey(name: 'originalAppUserId') String originalAppUserId, @JsonKey(name: 'allExpirationDates') Map<String, String?> allExpirationDates, @JsonKey(name: 'requestDate') String requestDate, {@JsonKey(name: 'latestExpirationDate') String? latestExpirationDate, @JsonKey(name: 'originalPurchaseDate') String? originalPurchaseDate, @JsonKey(name: 'originalApplicationVersion') String? originalApplicationVersion, @JsonKey(name: 'managementURL') String? managementURL}) -
constfactory
-
CustomerInfo.fromJson(Map<
String, dynamic> json) -
factory
Properties
-
activeSubscriptions
→ List<
String> -
Set of active subscription skus
no setterinherited
-
allExpirationDates
→ Map<
String, String?> -
Map of skus to expiration dates
no setterinherited
-
allPurchaseDates
→ Map<
String, String> -
Map of skus to purchase dates
no setterinherited
-
allPurchasedProductIdentifiers
→ List<
String> -
Set of purchased skus, active and inactive
no setterinherited
-
copyWith
→ $CustomerInfoCopyWith<
CustomerInfo> -
no setterinherited
- entitlements → EntitlementInfos
-
Entitlements attached to this customer info
no setterinherited
- firstSeen → String
-
The date this user was first seen in RevenueCat.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- latestExpirationDate → String?
-
The latest expiration date of all purchased skus
no setterinherited
- 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.
no setterinherited
-
nonSubscriptionTransactions
→ List<
StoreTransaction> -
Returns all the non-subscription purchases a user has made.
The purchases are ordered by purchase date in ascending order.
no setterinherited
- 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.
no setterinherited
- originalAppUserId → String
-
The original App User Id recorded for this user.
no setterinherited
- 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.
no setterinherited
- requestDate → String
-
Date when this info was requested
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited