UserTransactionHistory

@Serializable
data class UserTransactionHistory(val transactions: Map<String, StoredEntitlementTransaction> = emptyMap())(source)

Container for storing transaction history. Maps transaction ID to the stored transaction for efficient lookup and deduplication.

Constructors

Link copied to clipboard
constructor(transactions: Map<String, StoredEntitlementTransaction> = emptyMap())

Properties

Link copied to clipboard
@SerialName(value = "transactions")
val transactions: Map<String, StoredEntitlementTransaction>

Functions

Link copied to clipboard

Returns only active transactions.

Link copied to clipboard

Returns all transactions as a list, sorted by purchase date (newest first).

Link copied to clipboard

Merges new transactions with existing history.