public / com.revenuecat.purchases / PurchaserInfo

PurchaserInfo

data class PurchaserInfo : Parcelable

Class containing all information regarding the purchaser

Constructors

<init>

Class containing all information regarding the purchaser

PurchaserInfo(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?)

Properties

activeSubscriptions

val activeSubscriptions: Set<String>

allExpirationDatesByProduct

Map of skus to expiration dates

val allExpirationDatesByProduct: Map<String, Date?>

allPurchaseDatesByProduct

Map of skus to purchase dates

val allPurchaseDatesByProduct: Map<String, Date?>

allPurchasedSkus

val allPurchasedSkus: Set<String>

entitlements

Entitlements attached to this purchaser info

val entitlements: EntitlementInfos

firstSeen

The date this user was first seen in RevenueCat.

val firstSeen: Date

jsonObject

val jsonObject: JSONObject

latestExpirationDate

val latestExpirationDate: Date?

managementURL

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

val managementURL: Uri?

nonSubscriptionTransactions

val nonSubscriptionTransactions: List<Transaction>

originalAppUserId

The original App User Id recorded for this user.

val originalAppUserId: String

originalPurchaseDate

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

val originalPurchaseDate: Date?

purchasedNonSubscriptionSkus

Set of non-subscription, non-consumed skus

val purchasedNonSubscriptionSkus: Set<String>

requestDate

Date when this info was requested

val requestDate: Date

schemaVersion

val schemaVersion: Int

Functions

equals

fun equals(other: Any?): Boolean

getExpirationDateForEntitlement

Get the expiration date for a given entitlement identifier.

fun getExpirationDateForEntitlement(entitlement: String): Date?

getExpirationDateForSku

Get the expiration date for a given sku

fun getExpirationDateForSku(sku: String): Date?

getPurchaseDateForEntitlement

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

fun getPurchaseDateForEntitlement(entitlement: String): Date?

getPurchaseDateForSku

Get the latest purchase or renewal date for given sku

fun getPurchaseDateForSku(sku: String): Date?

hashCode

fun hashCode(): Int

toString

fun toString(): String