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 event | Description |
|---|---|
| activate | |
| activateAsync | |
| activateCompleted | Open a user shift. |
| applicationInformation | |
| applicationInformationAsync | |
| applicationInformationCompleted | Request the list of brands available on the terminal. |
| balance | |
| balanceAsync | |
| balanceCompleted | Force the EFT Terminal to transmit all transactions to the |
| host system as well to do the daily closing. | |
| cancel | Aborts 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 | |
| commitCompleted | Perform Commit-operation after a successful Transaction call. |
| connect | |
| connectAsync | |
| connectCompleted | Initiates a connection to the EFT Terminal. |
| counterRequest | |
| counterRequestAsync | |
| counterRequestCompleted | Get counter informations from the EFT Terminal. |
| dccRates | |
| dccRatesAsync | |
| dccRatesCompleted | Request DCC rates from the EFT Terminal. |
| deactivate | |
| deactivateAsync | |
| deactivateCompleted | Close a user shift. |
| disconnect | |
| disconnectAsync | |
| disconnected | Interrupts the connection to the EFT Terminal. |
| hardwareInformation | |
| hardwareInformationAsync | |
| hardwareInformationCompleted | Get hardware information from the EFT Terminal. |
| login | |
| loginAsync | |
| loginCompleted | Activate a communication session between the ECR and |
| the terminal. | |
| logout | |
| logoutAsync | |
| logoutCompleted | Terminate an active communication session between the ECR |
| and the terminal. | |
| reboot | |
| rebootAsync | |
| rebootCompleted | Force 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 | |
| reconfigCompleted | Force the EFT Terminal to get the configuration from the service center. |
| rollback | |
| rollbackAsync | |
| rollbackCompleted | Prevent 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 | |
| transactionCompleted | Starts an EFT Terminal Transaction. |
Banking terminal functions
Sync method
Async method
| Completed event | Description |
|---|---|
| balanceInquiry | |
| balanceInquiryAsync | |
| balanceInquiryCompleted | Perform a balance check of a card/account on the terminal. |
Additional terminal listener-events
| Listener-event | Description |
|---|---|
| requestCompleted | Operation 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. |