SDKPurchase

data class SDKPurchase(val guid: String, val counter: Int, val initialSum: Long, val actualSum: Long, val status: PurchaseStatus, val timestamp: Long, val currency: Currency?)

A purchase recorded in the terminal history: one payment session that may include several operations (sale plus subsequent refunds or cancellations).

Constructors

Link copied to clipboard
constructor(guid: String, counter: Int, initialSum: Long, actualSum: Long, status: PurchaseStatus, timestamp: Long, currency: Currency?)

Properties

Link copied to clipboard
val actualSum: Long

current amount in minor units after refunds/cancellations.

Link copied to clipboard
val counter: Int

monotonically growing purchase number.

Link copied to clipboard

transaction currency resolved from the purchase operations; null when none of the operations carries a currency.

Link copied to clipboard
val guid: String

purchase identifier.

Link copied to clipboard
val initialSum: Long

original purchase amount in minor units.

Link copied to clipboard

aggregated purchase status (see PurchaseStatus).

Link copied to clipboard
val timestamp: Long

purchase creation time, epoch seconds (UTC).