NonSubscriptionTransaction

@Serializable
data class NonSubscriptionTransaction(val transactionId: String, val productId: String, val purchaseDate: Date, val isConsumable: Boolean, val isRevoked: Boolean, val store: Store = Store.PLAY_STORE)(source)

Represents a non-subscription transaction (e.g., one-time purchases) in the customer's purchase history.

Constructors

Link copied to clipboard
constructor(transactionId: String, productId: String, purchaseDate: Date, isConsumable: Boolean, isRevoked: Boolean, store: Store = Store.PLAY_STORE)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
@SerialName(value = "isConsumable")
val isConsumable: Boolean

Indicates whether it's a consumable in-app purchase.

Link copied to clipboard
@SerialName(value = "isRevoked")
val isRevoked: Boolean

Indicates whether the transaction has been revoked.

Link copied to clipboard
@SerialName(value = "productId")
val productId: String

The product identifier of the in-app purchase.

Link copied to clipboard
@Serializable(with = DateSerializer::class)
@SerialName(value = "purchaseDate")
val purchaseDate: Date

The date that the App Store charged the user's account.

Link copied to clipboard
@SerialName(value = "store")
val store: Store

The store from which this transaction originated.

Link copied to clipboard
@SerialName(value = "transactionId")
val transactionId: String

The unique identifier for the transaction.