ApiClient

open class ApiClient

The public interface to the service API. The activity that uses this class should call bind in onCreate and unbind in onDestroy.

Constructors

Link copied to clipboard
constructor(handler: ResponseHandler)
Instantiate an ApiClient with the given ResponseHandler.

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open fun authorizeTransaction(transaction: Transaction)
Authorize a transaction.
Link copied to clipboard
open fun bind(activity: Activity): Boolean
Bind the API server to the given Activity.
open fun bind(context: Context): Boolean
Bind the API server to the given Context.
Link copied to clipboard
Cancel last authorized transaction operation.
Link copied to clipboard
Checks if the current SDK version VERSION is compatible with the service API.
Link copied to clipboard
Complete a reserved transaction.
Link copied to clipboard
Start a configuration operation.
Link copied to clipboard
Start a final balance operation.
Link copied to clipboard
Start a generate pantoken operation.
Link copied to clipboard
Start a initialization operation.
Link copied to clipboard
Start a submission operation.
Link copied to clipboard
Start a transmission operation.
Link copied to clipboard
open fun getConfigData()
Start an operation to get the configuration data When the operation will be finished a executeGetConfigDataResponse method will be called.
Link copied to clipboard
Initiates an operation to retrieve the custom configuration for the specified application ID.
Link copied to clipboard
Start an operation to get the pinpadinformation When the operation will be finished a executeGetConfigInfoResponse method will be called.
Link copied to clipboard
open fun reprintReceipt()
Start an operation to get the last transaction base on type When the operation will be finished a executeReprintReceipt method will be called.
Link copied to clipboard
open fun unbind(activity: Activity)
Unbind the API server from the given Activity.
open fun unbind(context: Context)
Unbind the API server from the given Context.
Link copied to clipboard
open fun voidTransaction(transactionVoid: TransactionVoid)
Void a reserved transaction.