PurchaserInfo

data class 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?) : Parcelable

Class containing all information regarding the purchaser

Constructors

PurchaserInfo
Link copied to clipboard
fun 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?)

Functions

describeContents
Link copied to clipboard
abstract fun describeContents(): Int
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
getExpirationDateForEntitlement
Link copied to clipboard
fun getExpirationDateForEntitlement(entitlement: String): Date?
Get the expiration date for a given entitlement identifier.
getExpirationDateForSku
Link copied to clipboard
fun getExpirationDateForSku(sku: String): Date?
Get the expiration date for a given sku
getPurchaseDateForEntitlement
Link copied to clipboard
fun getPurchaseDateForEntitlement(entitlement: String): Date?
Get the latest purchase or renewal date for a given entitlement identifier.
getPurchaseDateForSku
Link copied to clipboard
fun getPurchaseDateForSku(sku: String): Date?
Get the latest purchase or renewal date for given sku
hashCode
Link copied to clipboard
open override fun hashCode(): Int
toString
Link copied to clipboard
open override fun toString(): String
writeToParcel
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)

Properties

activeSubscriptions
Link copied to clipboard
val activeSubscriptions: Set<String>
allExpirationDatesByProduct
Link copied to clipboard
val allExpirationDatesByProduct: Map<String, Date?>
Map of skus to expiration dates
allPurchaseDatesByProduct
Link copied to clipboard
val allPurchaseDatesByProduct: Map<String, Date?>
Map of skus to purchase dates
allPurchasedSkus
Link copied to clipboard
val allPurchasedSkus: Set<String>
entitlements
Link copied to clipboard
val entitlements: EntitlementInfos
Entitlements attached to this purchaser info
firstSeen
Link copied to clipboard
val firstSeen: Date
The date this user was first seen in RevenueCat.
jsonObject
Link copied to clipboard
val jsonObject: JSONObject
latestExpirationDate
Link copied to clipboard
val latestExpirationDate: Date?
managementURL
Link copied to clipboard
val managementURL: Uri?
URL to manage the active subscription of the user.
nonSubscriptionTransactions
Link copied to clipboard
val nonSubscriptionTransactions: List<Transaction>
originalAppUserId
Link copied to clipboard
val originalAppUserId: String
The original App User Id recorded for this user.
originalPurchaseDate
Link copied to clipboard
val originalPurchaseDate: Date?
the purchase date for the version of the application when the user bought the app.
purchasedNonSubscriptionSkus
Link copied to clipboard
val purchasedNonSubscriptionSkus: Set<String>
Set of non-subscription, non-consumed skus
requestDate
Link copied to clipboard
val requestDate: Date
Date when this info was requested
schemaVersion
Link copied to clipboard
val schemaVersion: Int