Transaction

data class Transaction(val id: String, val owner: String, val version: Int, val createdAt: Date, val updatedAt: Date, val transactedAt: Date, val settledAt: Date? = null, val cardId: String, val sequenceId: String, val type: TransactionType, val billedAmount: CurrencyAmount, val transactedAmount: CurrencyAmount, val description: String, val declineReason: DeclineReason? = null, val details: List<TransactionDetailCharge> = emptyList()) : Parcelable

Representation of a Virtual Card Transaction used in the Sudo Platform Virtual Cards SDK.

Constructors

Link copied to clipboard
constructor(id: String, owner: String, version: Int, createdAt: Date, updatedAt: Date, transactedAt: Date, settledAt: Date? = null, cardId: String, sequenceId: String, type: TransactionType, billedAmount: CurrencyAmount, transactedAmount: CurrencyAmount, description: String, declineReason: DeclineReason? = null, details: List<TransactionDetailCharge> = emptyList())

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)

Properties

Link copied to clipboard

CurrencyAmount The amount billed for the transaction in the currency of the virtual card.

Link copied to clipboard

String Unique identifier of the VirtualCard associated with the transaction.

Link copied to clipboard

Date Date when the transaction was created.

Link copied to clipboard

DeclineReason Reason that the transaction was declined, null if the transaction was not declined.

Link copied to clipboard

String The description of the transaction.

Link copied to clipboard

List The details of how the transaction was charged.

Link copied to clipboard
val id: String

String Identifier of the transaction.

Link copied to clipboard

String Identifier of the user that owns the transaction.

Link copied to clipboard

String Identifier of the sequence of related transaction.

Link copied to clipboard
val settledAt: Date? = null

Date Date when the transaction was completed.

Link copied to clipboard

CurrencyAmount The amount of the transaction as charged by the merchant.

Link copied to clipboard

Date Date when the transaction occurred at the merchant.

Link copied to clipboard

TransactionType The type of the transaction.

Link copied to clipboard

Date Date when the transaction was last updated.

Link copied to clipboard

Int Current version of the transaction.