CustomerInfo

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

Class containing all information regarding the purchaser

Constructors

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

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
fun getExpirationDateForEntitlement(entitlement: String): Date?

Get the expiration date for a given entitlement identifier.

Link copied to clipboard
fun getExpirationDateForSku(sku: String): Date?

Get the expiration date for a given sku

Link copied to clipboard
fun getPurchaseDateForEntitlement(entitlement: String): Date?

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

Link copied to clipboard
fun getPurchaseDateForSku(sku: String): Date?

Get the latest purchase or renewal date for given sku

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
val activeSubscriptions: Set<String>
Link copied to clipboard
val allExpirationDatesByProduct: Map<String, Date?>

Map of skus to expiration dates

Link copied to clipboard
val allPurchaseDatesByProduct: Map<String, Date?>

Map of skus to purchase dates

Link copied to clipboard
val allPurchasedSkus: Set<String>
Link copied to clipboard
val entitlements: EntitlementInfos

Entitlements attached to this purchaser info

Link copied to clipboard
val firstSeen: Date

The date this user was first seen in RevenueCat.

Link copied to clipboard
val latestExpirationDate: Date?
Link copied to clipboard
val managementURL: Uri?

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
val nonSubscriptionTransactions: List<Transaction>
Link copied to clipboard
val originalAppUserId: String

The original App User Id recorded for this user.

Link copied to clipboard
val originalPurchaseDate: Date?

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
val requestDate: Date

Date when this info was requested

Link copied to clipboard
val schemaVersion: Int

Sources

Link copied to clipboard