SDKPaymentOperation

data class SDKPaymentOperation(val invoice: String, val kind: PaymentOperationKind, val amount: Long, val status: PaymentOperationStatus, val timestamp: Long, val paymentOperationType: PaymentOperationType, val customMetaData: Map<String, String>?)

A single payment operation within a SDKPurchase — the original sale or a later refund/cancellation.

Constructors

Link copied to clipboard
constructor(invoice: String, kind: PaymentOperationKind, amount: Long, status: PaymentOperationStatus, timestamp: Long, paymentOperationType: PaymentOperationType, customMetaData: Map<String, String>?)

Properties

Link copied to clipboard
val amount: Long

operation amount in minor units.

Link copied to clipboard
val customMetaData: Map<String, String>?

merchant key-value metadata passed when the purchase was made; null when the operation has no metadata.

Link copied to clipboard
val invoice: String

operation identifier (check number).

Link copied to clipboard

operation kind: sale, refund or cancellation (see PaymentOperationKind).

Link copied to clipboard

payment technology of the operation (see PaymentOperationType).

Link copied to clipboard

detailed lifecycle status of the operation (see PaymentOperationStatus).

Link copied to clipboard
val timestamp: Long

operation time, epoch seconds (UTC).