TransactionResponse

data class TransactionResponse(amount: Long, code: Int, status: TransactionStatusEnum, statusDetail: String, transactionIdentifier: String, transactionType: TransactionTypeEnum, transactionCardLabel: String, transactionCardMaskedNumber: String, transactionCardScheme: String, transactionCurrency: TransactionCurrencyEnum, transactionReceipt: TransactionReceipt?, transactionAuthorizationCode: String, terminalSerialNumber: String, terminalId: String, orderReference: String)

Transaction response

Represents the response data of previous requested transaction

Constructors

Link copied to clipboard
fun TransactionResponse(amount: Long, code: Int, status: TransactionStatusEnum, statusDetail: String, transactionIdentifier: String = "", transactionType: TransactionTypeEnum = TransactionTypeEnum.CHARGE, transactionCardLabel: String = "", transactionCardMaskedNumber: String = "XXXXXXXXXXXXXXXXX", transactionCardScheme: String = "", transactionCurrency: TransactionCurrencyEnum = TransactionCurrencyEnum.EUR, transactionReceipt: TransactionReceipt? = null, transactionAuthorizationCode: String = "", terminalSerialNumber: String = "", terminalId: String = "", orderReference: String = "")

Properties

Link copied to clipboard
val amount: Long

The requested transaction amount

Link copied to clipboard
val code: Int

Represents the code indicates the if the operation is successful or failed

Link copied to clipboard
val orderReference: String

(Since 0.0.10) A custom order reference. max size 14 characters

Link copied to clipboard
val status: TransactionStatusEnum

Represents the status of the transaction

Link copied to clipboard
val statusDetail: String

Represents the detail of the transaction

Link copied to clipboard
val terminalId: String

(Since 0.0.8) Represents the terminal id (virtual number)

Link copied to clipboard
val terminalSerialNumber: String

(Since 0.0.8) Represents the terminal serial number (physical number)

Link copied to clipboard
val transactionAuthorizationCode: String

(Since 0.0.8) Represents the transaction authorization code for approved transactions

Link copied to clipboard
val transactionCardLabel: String

Represents the cardholder card information, eg. VISACREDIT

Link copied to clipboard
val transactionCardMaskedNumber: String

(Since 0.0.4) Represents the cardholder masked card number, eg. 123456*******890

Link copied to clipboard
val transactionCardScheme: String

(Since 0.0.4) Represents the cardholder scheme, eg. VISA

Link copied to clipboard
val transactionCurrency: TransactionCurrencyEnum

(Since 0.0.5) Represents the transaction currency, eg. EUR

Link copied to clipboard
val transactionIdentifier: String

Represents the identifier of the transaction (recommend to store it to be used to start refunds)

Link copied to clipboard
val transactionReceipt: TransactionReceipt? = null

(Since 0.0.7) Represents the transaction receipt data

Link copied to clipboard
val transactionType: TransactionTypeEnum

Represents the requested transaction type