StoreTransaction

data class StoreTransaction(val orderId: String?, val productIds: List<String>, val type: ProductType, val purchaseTime: Long, val purchaseToken: String, val purchaseState: PurchaseState, val isAutoRenewing: Boolean?, val signature: String?, val originalJson: JSONObject, val presentedOfferingContext: PresentedOfferingContext?, val storeUserID: String?, val purchaseType: PurchaseType, val marketplace: String?, val subscriptionOptionId: String?, val replacementMode: ReplacementMode?) : Parcelable

Represents an in-app billing purchase.

Constructors

Link copied to clipboard
constructor(orderId: String?, productIds: List<String>, type: ProductType, purchaseTime: Long, purchaseToken: String, purchaseState: PurchaseState, isAutoRenewing: Boolean?, signature: String?, originalJson: JSONObject, presentedOfferingContext: PresentedOfferingContext?, storeUserID: String?, purchaseType: PurchaseType, marketplace: String?, subscriptionOptionId: String?, replacementMode: ReplacementMode?)

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
open override fun hashCode(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)

Properties

Link copied to clipboard

Whether the subscription renews automatically.

Link copied to clipboard

Amazon's marketplace. Null for Google

Link copied to clipboard

Unique Google order identifier for the purchased transaction.

Link copied to clipboard

Returns a JSONObject format that contains details about the purchase.

Link copied to clipboard

Context of the offering that was presented when making the purchase.

Link copied to clipboard

Product IDs purchased.

Link copied to clipboard

State of the purchase.

Link copied to clipboard

Time the product was purchased, in milliseconds since the epoch.

Link copied to clipboard

Token that uniquely identifies a purchase.

Link copied to clipboard

One of PurchaseType indicating the type of purchase.

Link copied to clipboard

The replacementMode used to perform the upgrade/downgrade of this purchase. Null if it was not an upgrade/downgrade or if the purchase was restored. This is not available for Amazon purchases.

Link copied to clipboard

String containing the signature of the Google purchase data that was signed with the private key of the developer. Always null for Amazon.

Link copied to clipboard

Amazon's store user id. Null for Google

Link copied to clipboard

The id of the SubscriptionOption purchased. In Google, this will be calculated from the basePlanId and offerId Null for restored transactions and purchases initiated outside of the app.

Link copied to clipboard

Type of the product associated with the purchase.