CustomerInfo

data class CustomerInfo(val entitlements: EntitlementInfos, val allExpirationDatesByProduct: Map<String, Date?>, val allPurchaseDatesByProduct: Map<String, Date?>, val requestDate: Date, val schemaVersion: Int, val firstSeen: Date, val originalAppUserId: String, val managementURL: Uri?, val originalPurchaseDate: Date?, jsonObject: JSONObject) : Parcelable, RawDataContainer<JSONObject>

Class containing all information regarding the customer

Constructors

Link copied to clipboard
constructor(entitlements: EntitlementInfos, allExpirationDatesByProduct: Map<String, Date?>, allPurchaseDatesByProduct: Map<String, Date?>, requestDate: Date, schemaVersion: Int, firstSeen: Date, originalAppUserId: String, managementURL: Uri?, originalPurchaseDate: Date?, jsonObject: JSONObject)

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard

Get the expiration date for a given entitlement identifier.

Link copied to clipboard

Get the expiration date for a given productId

Link copied to clipboard

Get the latest purchase or renewal date for a given entitlement identifier.

Link copied to clipboard

Get the latest purchase or renewal date for given productId

Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)

Properties

Link copied to clipboard
Link copied to clipboard

Map of productIds to expiration dates For Google subscriptions, productIds are subscriptionId:basePlanId For Amazon subscriptions, productsIds are termSkus

Link copied to clipboard

Map of productIds to purchase dates For Google subscriptions, productIds are subscriptionId:basePlanId For Google and Amazon INAPPs, productsIds are simply productId. For Amazon subscriptions, productsIds are termSkus

Link copied to clipboard
Link copied to clipboard

Entitlements attached to this customer info

Link copied to clipboard

The date this user was first seen in RevenueCat.

Link copied to clipboard
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

Link copied to clipboard

The original App User Id recorded for this user.

Link copied to clipboard

the purchase date 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
open override val rawData: JSONObject

The underlying data.

Link copied to clipboard

Date when this info was requested

Link copied to clipboard