Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
data class SDKAddress(val addressLine1: String?, val addressLine2: String?, val city: String, val countryCode: String, val postalCode: String, val state: String)

Address where the transaction is taking place

Link copied to clipboard
data class SDKAuthenticationToken(val token: String)

Authentication token to use on transaction confirmation

Link copied to clipboard
data class SDKBin(val aBin: String)

Information about Bin

Link copied to clipboard
data class SDKCancelData(val authorizationCode: String)

SdKTransactionIntent Cancel successfull result

Link copied to clipboard
sealed class SDKConfirmation

Confirmation object needed to continue the transaction Online

Link copied to clipboard
data class SDKConfirmationJson(val json: String, val authToken: String)

Confirmation object needed to continue the transaction online

Link copied to clipboard
data class SDKCurrency(val numericCode: String, val alphabeticCode: String, val symbol: String, val exponent: SDKCurrency.SDKExponent = SDKExponent.TWO)

Information about currency

Link copied to clipboard
data class SDKDeviceInfo(val id: String?, val firmware: String, val serial: String, val serialFull: String, val hardwareVersion: String, val model: SDKDeviceModel, val batteryPercentage: Double? = null, val isCharging: Boolean? = null, val hasPrinter: Boolean)

A connected device information On some devices battery and charging information may not be available, so they are optional

Link copied to clipboard
Link copied to clipboard
data class SDKEstablishment(val address: SDKAddress?, val businessCategoryCode: String?, val docNumber: String?, val docType: String?, val email: String? = null, val legalName: String, val phoneNumber: String? = null, val tradeName: String?, val type: SDKEstablishment.Type, val intermediary: SDKEstablishment? = null)

Establishment where the transaction is taking place

Link copied to clipboard
data class SDKMerchant(val id: String, val name: String? = null, val fiid: String? = null, val logicalNetwork: String? = null)

Information about the Merchant doing the transaction

Link copied to clipboard
data class SDKMoney(val amount: BigDecimal, val currency: SDKCurrency)

Information about transaction amount

Link copied to clipboard
data class SDKPaymentData(val authorizationCode: String)

SdKTransactionIntent Sale successfull result

Link copied to clipboard
data class SDKRefundData(val authorizationCode: String)

SDKTransactionIntent Refund successfull result

Link copied to clipboard
data class SDKTax(val amount: SDKMoney, val label: String)
Link copied to clipboard
sealed class SDKTaxes
Link copied to clipboard

Data required to start a transaction

Link copied to clipboard
sealed class SDKTransactionError

Error in an SDKTransactionIntent Will be present in a Recoverable or NonRecoverable state **

Link copied to clipboard
sealed class SDKTransactionState

Represeantation of a single SDKTransactionState Methods in states can only be called ONCE. Calling a method more than once will result in an SDKFunctionWasConsumedException

Link copied to clipboard
class SDKTransactionTotals(val net: SDKMoney, val taxes: SDKTaxes, val tip: SDKMoney? = null)

Representation of the total amount of a transaction. This constructor allows the creation of a total amount transaction with taxes.

Link copied to clipboard

Transaction type, can be one of the following: