PurchaseDetails

data class PurchaseDetails(orderId: String?, skus: List<String>, type: ProductType, purchaseTime: Long, purchaseToken: String, purchaseState: RevenueCatPurchaseState, isAutoRenewing: Boolean?, signature: String?, originalJson: JSONObject, presentedOfferingIdentifier: String?, storeUserID: String?, purchaseType: PurchaseType) : Parcelable

Represents an in-app billing purchase.

Constructors

PurchaseDetails
Link copied to clipboard
fun PurchaseDetails(orderId: String?, skus: List<String>, type: ProductType, purchaseTime: Long, purchaseToken: String, purchaseState: RevenueCatPurchaseState, isAutoRenewing: Boolean?, signature: String?, originalJson: JSONObject, presentedOfferingIdentifier: String?, storeUserID: String?, purchaseType: PurchaseType)

Functions

describeContents
Link copied to clipboard
abstract fun describeContents(): Int
writeToParcel
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)

Properties

isAutoRenewing
Link copied to clipboard
val isAutoRenewing: Boolean?
Whether the subscription renews automatically.
orderId
Link copied to clipboard
val orderId: String?
Unique Google order identifier for the purchased transaction.
originalJson
Link copied to clipboard
val originalJson: JSONObject
Returns a JSONObject format that contains details about the purchase.
presentedOfferingIdentifier
Link copied to clipboard
val presentedOfferingIdentifier: String?
Offering that was presented when making the purchase.
purchaseState
Link copied to clipboard
val purchaseState: RevenueCatPurchaseState
State of the purchase.
purchaseTime
Link copied to clipboard
val purchaseTime: Long
Time the product was purchased, in milliseconds since the epoch.
purchaseToken
Link copied to clipboard
val purchaseToken: String
Token that uniquely identifies a purchase.
purchaseType
Link copied to clipboard
val purchaseType: PurchaseType
One of PurchaseType indicating the type of purchase.
signature
Link copied to clipboard
val signature: String?
String containing the signature of the Google purchase data that was signed with the private key of the developer.
sku
Link copied to clipboard
val sku: String
Product Id.
skus
Link copied to clipboard
val skus: List<String>
Product Ids.
storeUserID
Link copied to clipboard
val storeUserID: String?
Null for Google
type
Link copied to clipboard
val type: ProductType
Type of the product associated with the purchase.