Skip to main content

Terminal methods overview

All terminal methods are in async-mode. Method-calls return immediately after the operation has started or throws a TimException otherwise. A listener-event-method will be called after operation is finished successfully. All listener-event-methods contain a TimEvent. In case of failure a ResultCode is included. User-implemented listener-handlers (that extend DefaultTerminalListener) can be added to the Terminal-instance with addListener.

Code example for adding a terminal listener:

    /** Asynchronous listener handling terminal events. */

/* Define your own TerminalListener by overwrite all required
* methods from the DefaultTerminalListener class
* which you want to use.
*/
class MyTerminalListener extends timapi.DefaultTerminalListener {

// Overwrite all wanted methods of the DefaultTerminalListener herein

}

/* Then create an instance of your "MyTerminalListener" and add it to
* your terminal instance.
*/
var myListener = new MyTerminalListener();

terminal.addListener(myListener);

Main / guide Retail terminal functions​

Sync method
Async method

Completed eventDescription
activate
activateAsync
activateCompletedOpen a user shift.
applicationInformation
applicationInformationAsync
applicationInformationCompleted Request the list of brands available on the terminal.
balance
balanceAsync
balanceCompletedForce the EFT Terminal to transmit all transactions to the
host system as well to do the daily closing.
cancelAborts an open asynchronous Financial Transaction or Non-Financial Transaction request, except for a commit or rollback request, which cannot be cancelled.
changeSettings
changeSettingsAsync
changeSettingsCompleted Change configuration parameters of the EFT Terminal.
commit
commitAsync
commitCompletedPerform Commit-operation after a successful Transaction call.
connect
connectAsync
connectCompletedInitiates a connection to the EFT Terminal.
counterRequest
counterRequestAsync
counterRequestCompleted Get counter informations from the EFT Terminal.
dccRates
dccRatesAsync
dccRatesCompletedRequest DCC rates from the EFT Terminal.
deactivate
deactivateAsync
deactivateCompletedClose a user shift.
disconnect
disconnectAsync
disconnectedInterrupts the connection to the EFT Terminal.
hardwareInformation
hardwareInformationAsync
hardwareInformationCompleted Get hardware information from the EFT Terminal.
login
loginAsync
loginCompletedActivate a communication session between the ECR and
the terminal.
logout
logoutAsync
logoutCompletedTerminate an active communication session between the ECR
and the terminal.
reboot
rebootAsync
rebootCompletedForce the EFT Terminal to reboot.
receiptRequest
receiptRequestAsync
receiptRequestCompleted Receive the latest receipt or a list of silent receipts.
reconciliation
reconciliationAsync
reconciliationCompleted Force the EFT Terminal to transmit all financial transactions
to the host system.
reconfig
reconfigAsync
reconfigCompletedForce the EFT Terminal to get the configuration from the service center.
rollback
rollbackAsync
rollbackCompletedPrevent a transaction from being committed to the transaction
log and generates a technical reversal of the authorization.
softwareUpdate
softwareUpdateAsync
softwareUpdateCompleted Force the EFT Terminal to start a Software Update.
systemInformation
systemInformationAsync
systemInformationCompleted Request system information from the EFT Terminal.
transaction
transactionAsync
transactionCompletedStarts an EFT Terminal Transaction.

Banking terminal functions​

Sync method
Async method

Completed eventDescription
balanceInquiry
balanceInquiryAsync
balanceInquiryCompletedPerform a balance check of a card/account on the terminal.

Additional terminal listener-events​

Listener-eventDescription
requestCompletedOperation started by an asynchronous function has finished.
Applications can use both operation specific completion callback
in combination with this generic completion callback.
terminalStatusChanged The terminal status has changed. The new status can be
retrieved from the TerminalStatus property.