purchases / com.revenuecat.purchases / PurchaserInfo

PurchaserInfo

class PurchaserInfo

Class containing all information regarding the purchaser

Properties

activeEntitlements

val activeEntitlements: Set<String>

The identifiers of all the active entitlements

activeSubscriptions

val activeSubscriptions: Set<String>

allExpirationDatesByEntitlement

val allExpirationDatesByEntitlement: Map<String, Date?>

Map of entitlement ids to expiration dates

allExpirationDatesByProduct

val allExpirationDatesByProduct: Map<String, Date?>

Map of skus to expiration dates

allPurchaseDatesByEntitlement

val allPurchaseDatesByEntitlement: Map<String, Date?>

Map of entitlement ids to purchase dates

allPurchaseDatesByProduct

val allPurchaseDatesByProduct: Map<String, Date?>

Map of skus to purchase dates

allPurchasedSkus

val allPurchasedSkus: Set<String>

latestExpirationDate

val latestExpirationDate: Date?

purchasedNonSubscriptionSkus

val purchasedNonSubscriptionSkus: Set<String>

Set of non-subscription, non-consumed skus

requestDate

val requestDate: Date?

Date when this info was requested

Functions

getExpirationDateForEntitlement

fun getExpirationDateForEntitlement(entitlement: String): Date?

Get the expiration date for a given entitlement

getExpirationDateForSku

fun getExpirationDateForSku(sku: String): Date?

Get the expiration date for a given sku

getPurchaseDateForEntitlement

fun getPurchaseDateForEntitlement(entitlement: String): Date?

Get the purchase date for a given entitlement

getPurchaseDateForSku

fun getPurchaseDateForSku(sku: String): Date?

Get the purchase date for given sku