Package com.six.timapi
Interface TerminalListener
-
- All Known Implementing Classes:
DefaultTerminalListener
,SynchronousTerminalListener
public interface TerminalListener
Listener for asynchronous terminal events.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description void
activateCompleted(TimEvent event, ActivateResponse data)
Called if anTerminal.activateAsync()
started request finished.void
activateServiceMenuCompleted(TimEvent event)
Called if anTerminal.activateServiceMenuAsync()
started request finished.void
ageCheckCompleted(TimEvent event, TransactionInformation data)
Called if anTerminal#ageCheckAsync()
started request finished.void
applicationInformationCompleted(TimEvent event)
Called if anTerminal.applicationInformationAsync()
started request finished.void
balanceCompleted(TimEvent event, BalanceResponse data)
Called if anTerminal.balanceAsync()
started request finished.void
balanceInquiryCompleted(TimEvent event, BalanceInquiryResponse data)
Called if anTerminal.balanceInquiryAsync()
started request finished.void
changeSettingsCompleted(TimEvent event)
Called if anTerminal.changeSettingsAsync(java.util.Map)
started request finished.void
clientIdentificationCompleted(TimEvent event, ClientIdentificationResponse data)
Called if anTerminal.clientIdentification()
orTerminal.clientIdentificationAsync()
started request finished.void
closeDialogModeCompleted(TimEvent event)
Called if anTerminal.closeDialogModeAsync()
started request finished.void
closeMaintenanceWindowCompleted(TimEvent event)
Called if anTerminal.closeMaintenanceWindowAsync()
started request finished.void
closeReaderCompleted(TimEvent event)
Called if anTerminal.closeReaderAsync()
started request finished.void
commitCompleted(TimEvent event, PrintData data)
Called if anTerminal.commitAsync()
started request finished.void
connectCompleted(TimEvent event)
Called if anTerminal.connect()
started request finished.void
counterRequestCompleted(TimEvent event, Counters data)
Called if anTerminal.counterRequestAsync(com.six.timapi.constants.CounterType)
started request finished.void
dccRatesCompleted(TimEvent event, PrintData data)
Called if anTerminal.dccRatesAsync()
started request finished.void
deactivateCompleted(TimEvent event, DeactivateResponse data)
Called if anTerminal.deactivateAsync()
started request finished.void
deferredAuth(Terminal terminal, TransactionResponse response)
Called if a Deferred Authorization Notification has been received.void
deviceMaintenanceCompleted(TimEvent event)
Called if anTerminal#deviceMaintenanceAsync()
started request finished.void
disconnected(Terminal terminal, TimException exception)
Connection to terminal closed.void
ejectCardCompleted(TimEvent event)
Called if anTerminal.ejectCardAsync()
started request finished.void
errorNotification(Terminal terminal, TimException error)
Called if a terminal send an Error Notification.void
finishCheckoutCompleted(TimEvent event, VasCheckoutInformation data)
Called if anTerminal.finishCheckoutAsync()
started request finished.void
hardwareInformationCompleted(TimEvent event, HardwareInformationResponse data)
Called if anTerminal.hardwareInformationAsync()
started request finished.void
initTransactionCompleted(TimEvent event, CardData data)
Called if anTerminal.initTransactionAsync(boolean, Amount)
started request finished.void
initTransactionWithDialogCompleted(TimEvent event, InitTransactionResponse data)
Called if anTerminal#initTransactionWithDialogAsync(Amount, ShowDialogRequest)
started request finished.void
keyPressed(Terminal terminal, Reason reason)
Called if a Key Pressed Notification has been received.void
licenseChanged(Terminal terminal)
Deprecated.Functionality removedvoid
loginCompleted(TimEvent event)
Called if anTerminal.loginAsync()
started request finished.void
logoutCompleted(TimEvent event)
Called if anTerminal.logoutAsync()
started request finished.void
loyaltyDataCompleted(TimEvent event, CardData data)
Called if anTerminal#loyaltyDataAsync()
started request finished.void
mobileTopupCompleted(TimEvent event, MobileTopupData data)
Called if anTerminal#mobileTopupAsync()
started request finished.void
mobileTopupIssuerInfoCompleted(TimEvent event, List<MobileTopupValue> data)
Called if anTerminal.mobileTopupIssuerInfoAsync()
started request finished.void
openDialogModeCompleted(TimEvent event)
Called if anTerminal.openDialogModeAsync()
started request finished.void
openMaintenanceWindowCompleted(TimEvent event)
Called if anTerminal.openMaintenanceWindowAsync()
started request finished.void
openReaderCompleted(TimEvent event)
Called if anTerminal.openReaderAsync()
started request finished.void
printOnTerminal(TimEvent event)
Called if anTerminal#printOnTerminalAsync()
started request finished.void
provideLoyaltyBasketCompleted(TimEvent event, List<LoyaltyItem> data)
Called if anTerminal#provideLoyaltyBasketAsync()
started request finished.void
provideVasResultCompleted(TimEvent event, VasResult data)
Called if anTerminal#provideVasResultAsync()
started request finished.void
rebootCompleted(TimEvent event)
Called if anTerminal.rebootAsync()
started request finished.void
receiptRequestCompleted(TimEvent event, ReceiptRequestResponse data)
Called if anTerminal.receiptRequestAsync(com.six.timapi.constants.ReceiptRequestType)
started request finished.void
reconciliationCompleted(TimEvent event, ReconciliationResponse data)
Called if anTerminal.reconciliationAsync()
started request finished.void
reconfigCompleted(TimEvent event, PrintData data)
Called if anTerminal.reconfigAsync()
started request finished.void
requestAliasCompleted(TimEvent event, String data)
Called if anTerminal#requestAlias()
started request finished.void
rollbackCompleted(TimEvent event, PrintData data)
Called if anTerminal.rollbackAsync()
started request finished.void
screenshot(Terminal terminal, ScreenshotInformation info)
Called if a Screenshot Notification has been received.void
sendCardCommandCompleted(TimEvent event, List<CommandResponse> data)
Called if anTerminal.sendCardCommand(List)
started request finished.void
showDialogCompleted(TimEvent event, ShowDialogResponse data)
Called if anTerminal.showDialogAsync(ShowDialogRequest)
started request finished.void
showSignatureCaptureCompleted(TimEvent event, ShowSignatureCaptureResponse data)
Called if anTerminal.showSignatureCaptureAsync(ShowSignatureCaptureRequest)
started request finished.void
softwareUpdateCompleted(TimEvent event, UpdateStatus data)
Called if anTerminal.softwareUpdateAsync()
started request finished.void
startCheckoutCompleted(TimEvent event)
Called if anTerminal.startCheckoutAsync()
started request finished.void
systemInformationCompleted(TimEvent event, SystemInformationResponse data)
Called if anTerminal.systemInformationAsync()
started request finished.void
terminalStatusChanged(Terminal terminal)
Called if the state of the terminal changed.void
thirdPartyAppData(Terminal terminal, ThirdPartyAppPayload data)
Called if an ThirdPartyAppData notification has been received.void
transactionCompleted(TimEvent event, TransactionResponse data)
Called if anTerminal.transactionAsync(com.six.timapi.constants.TransactionType, Amount)
orTerminal.transactionAsync(com.six.timapi.constants.TransactionType, TransactionRequest)
started request finished.void
transactionInfoRequestCompleted(TimEvent event, TransactionInfoRequestResponse data)
Called if anTerminal.transactionInfoRequestAsync()
started request finished.void
vasInfo(Terminal terminal, VasCheckoutInformation vasInfo)
Called if an VAS Information Notification has been received.
-
-
-
Method Detail
-
connectCompleted
void connectCompleted(TimEvent event)
Called if anTerminal.connect()
started request finished.- Parameters:
event
- Contains the terminal sending the event and error information if the request failed.
-
activateCompleted
void activateCompleted(TimEvent event, ActivateResponse data)
Called if anTerminal.activateAsync()
started request finished.- Parameters:
event
- Contains the terminal sending the event and error information if the request failed.data
- Contains activation sequence counter and print information for the merchant.
-
applicationInformationCompleted
void applicationInformationCompleted(TimEvent event)
Called if anTerminal.applicationInformationAsync()
started request finished.- Parameters:
event
- Contains the terminal sending the event and error information if the request failed.
-
balanceCompleted
void balanceCompleted(TimEvent event, BalanceResponse data)
Called if anTerminal.balanceAsync()
started request finished.- Parameters:
event
- Contains the terminal sending the event and error information if the request failed.data
- Contains counters and print information for the merchant.
-
changeSettingsCompleted
void changeSettingsCompleted(TimEvent event)
Called if anTerminal.changeSettingsAsync(java.util.Map)
started request finished.- Parameters:
event
- Contains the terminal sending the event and error information if the request failed.
-
commitCompleted
void commitCompleted(TimEvent event, PrintData data)
Called if anTerminal.commitAsync()
started request finished.- Parameters:
event
- Contains the terminal sending the event and error information if the request failed.
-
counterRequestCompleted
void counterRequestCompleted(TimEvent event, Counters data)
Called if anTerminal.counterRequestAsync(com.six.timapi.constants.CounterType)
started request finished.- Parameters:
event
- Contains the terminal sending the event and error information if the request failed.data
- Contains counters.
-
deactivateCompleted
void deactivateCompleted(TimEvent event, DeactivateResponse data)
Called if anTerminal.deactivateAsync()
started request finished.- Parameters:
event
- Contains the terminal sending the event and error information if the request failed.data
- Contains counters and print information for the merchant.
-
dccRatesCompleted
void dccRatesCompleted(TimEvent event, PrintData data)
Called if anTerminal.dccRatesAsync()
started request finished.- Parameters:
event
- Contains the terminal sending the event and error information if the request failed.data
- Contains print information for merchant.
-
hardwareInformationCompleted
void hardwareInformationCompleted(TimEvent event, HardwareInformationResponse data)
Called if anTerminal.hardwareInformationAsync()
started request finished.- Parameters:
event
- Contains the terminal sending the event and error information if the request failed.data
- Contains information about EFT Terminal hardware and EMV kernels and configuration parameters supported by the EFT Terminal.
-
initTransactionCompleted
void initTransactionCompleted(TimEvent event, CardData data)
Called if anTerminal.initTransactionAsync(boolean, Amount)
started request finished.- Parameters:
event
- Contains the terminal sending the event and error information if the request failed.
-
initTransactionWithDialogCompleted
void initTransactionWithDialogCompleted(TimEvent event, InitTransactionResponse data)
Called if anTerminal#initTransactionWithDialogAsync(Amount, ShowDialogRequest)
started request finished.- Parameters:
event
- Contains the terminal sending the event and error information if the request failed.
-
loginCompleted
void loginCompleted(TimEvent event)
Called if anTerminal.loginAsync()
started request finished.- Parameters:
event
- Contains the terminal sending the event and error information if the request failed.
-
logoutCompleted
void logoutCompleted(TimEvent event)
Called if anTerminal.logoutAsync()
started request finished.- Parameters:
event
- Contains the terminal sending the event and error information if the request failed.
-
rebootCompleted
void rebootCompleted(TimEvent event)
Called if anTerminal.rebootAsync()
started request finished.- Parameters:
event
- Contains the terminal sending the event and error information if the request failed.
-
reconciliationCompleted
void reconciliationCompleted(TimEvent event, ReconciliationResponse data)
Called if anTerminal.reconciliationAsync()
started request finished.- Parameters:
event
- Contains the terminal sending the event and error information if the request failed.data
- Contains counters and print information for the merchant.
-
receiptRequestCompleted
void receiptRequestCompleted(TimEvent event, ReceiptRequestResponse data)
Called if anTerminal.receiptRequestAsync(com.six.timapi.constants.ReceiptRequestType)
started request finished.- Parameters:
event
- Contains the terminal sending the event and error information if the request failed.data
- Contains all requested receipts up to a maximum number of receipts the EFT Terminal can send. if HasMoreReceipts is True not all receipts could be send by the EFT Terminal. call ReceiptRequest again to obtain more receipts.
-
transactionInfoRequestCompleted
void transactionInfoRequestCompleted(TimEvent event, TransactionInfoRequestResponse data)
Called if anTerminal.transactionInfoRequestAsync()
started request finished.- Parameters:
event
- Contains the terminal sending the event and error information if the request failed.data
- Contains all requested receipts up to a maximum number of receipts the EFT Terminal can send. if HasMoreReceipts is True not all receipts could be send by the EFT Terminal. call ReceiptRequest again to obtain more receipts.
-
reconfigCompleted
void reconfigCompleted(TimEvent event, PrintData data)
Called if anTerminal.reconfigAsync()
started request finished.- Parameters:
event
- Contains the terminal sending the event and error information if the request failed.data
- Contains print information for the merchant.
-
rollbackCompleted
void rollbackCompleted(TimEvent event, PrintData data)
Called if anTerminal.rollbackAsync()
started request finished.- Parameters:
event
- Contains the terminal sending the event and error information if the request failed.data
- Contains print information for the merchant and cardholder.
-
softwareUpdateCompleted
void softwareUpdateCompleted(TimEvent event, UpdateStatus data)
Called if anTerminal.softwareUpdateAsync()
started request finished.- Parameters:
event
- Contains the terminal sending the event and error information if the request failed.data
- Contains update status.
-
systemInformationCompleted
void systemInformationCompleted(TimEvent event, SystemInformationResponse data)
Called if anTerminal.systemInformationAsync()
started request finished.- Parameters:
event
- Contains the terminal sending the event and error information if the request failed.data
- Contains configuration and network information of the terminal.
-
transactionCompleted
void transactionCompleted(TimEvent event, TransactionResponse data)
Called if anTerminal.transactionAsync(com.six.timapi.constants.TransactionType, Amount)
orTerminal.transactionAsync(com.six.timapi.constants.TransactionType, TransactionRequest)
started request finished.- Parameters:
event
- Contains the terminal sending the event and error information if the request failed.data
- Contains transaction result information and print information for the merchant and cardholder.
-
clientIdentificationCompleted
void clientIdentificationCompleted(TimEvent event, ClientIdentificationResponse data)
Called if anTerminal.clientIdentification()
orTerminal.clientIdentificationAsync()
started request finished.- Parameters:
event
- Contains the terminal sending the event and error information if the request failed.data
- Contains result information and print information for the merchant and cardholder.
-
terminalStatusChanged
void terminalStatusChanged(Terminal terminal)
Called if the state of the terminal changed. Retrieve the state using event.getTerminal().getTerminalState().- Parameters:
terminal
- Terminal sending the notification.
-
disconnected
void disconnected(Terminal terminal, TimException exception)
Connection to terminal closed. Called if user disconnected or connection has been lost.- Parameters:
terminal
- Terminal sending the notification.
-
closeReaderCompleted
void closeReaderCompleted(TimEvent event)
Called if anTerminal.closeReaderAsync()
started request finished. Supported only ifGuides.UNATTENDED
is enabled.- Parameters:
event
- Contains the terminal sending the event and error information if the request failed.
-
openReaderCompleted
void openReaderCompleted(TimEvent event)
Called if anTerminal.openReaderAsync()
started request finished. Supported only ifGuides.UNATTENDED
is enabled.- Parameters:
event
- Contains the terminal sending the event and error information if the request failed.
-
ejectCardCompleted
void ejectCardCompleted(TimEvent event)
Called if anTerminal.ejectCardAsync()
started request finished. Supported only ifGuides.UNATTENDED
is enabled.- Parameters:
event
- Contains the terminal sending the event and error information if the request failed.
-
openMaintenanceWindowCompleted
void openMaintenanceWindowCompleted(TimEvent event)
Called if anTerminal.openMaintenanceWindowAsync()
started request finished. Supported only ifGuides.UNATTENDED
is enabled.- Parameters:
event
- Contains the terminal sending the event and error information if the request failed.
-
closeMaintenanceWindowCompleted
void closeMaintenanceWindowCompleted(TimEvent event)
Called if anTerminal.closeMaintenanceWindowAsync()
started request finished. Supported only ifGuides.UNATTENDED
is enabled.- Parameters:
event
- Contains the terminal sending the event and error information if the request failed.
-
activateServiceMenuCompleted
void activateServiceMenuCompleted(TimEvent event)
Called if anTerminal.activateServiceMenuAsync()
started request finished. Supported only ifGuides.UNATTENDED
is enabled.- Parameters:
event
- Contains the terminal sending the event and error information if the request failed.
-
openDialogModeCompleted
void openDialogModeCompleted(TimEvent event)
Called if anTerminal.openDialogModeAsync()
started request finished. Supported only ifGuides.DIALOG
is enabled.- Parameters:
event
- Contains the terminal sending the event and error information if the request failed.
-
closeDialogModeCompleted
void closeDialogModeCompleted(TimEvent event)
Called if anTerminal.closeDialogModeAsync()
started request finished. Supported only ifGuides.DIALOG
is enabled.- Parameters:
event
- Contains the terminal sending the event and error information if the request failed.
-
showSignatureCaptureCompleted
void showSignatureCaptureCompleted(TimEvent event, ShowSignatureCaptureResponse data)
Called if anTerminal.showSignatureCaptureAsync(ShowSignatureCaptureRequest)
started request finished. Supported only ifGuides.DIALOG
is enabled.- Parameters:
event
- Contains the terminal sending the event and error information if the request failed.
-
showDialogCompleted
void showDialogCompleted(TimEvent event, ShowDialogResponse data)
Called if anTerminal.showDialogAsync(ShowDialogRequest)
started request finished. Supported only ifGuides.DIALOG
is enabled.- Parameters:
event
- Contains the terminal sending the event and error information if the request failed.
-
sendCardCommandCompleted
void sendCardCommandCompleted(TimEvent event, List<CommandResponse> data)
Called if anTerminal.sendCardCommand(List)
started request finished. Supported only ifGuides.DIALOG
is enabled.- Parameters:
event
- Contains the terminal sending the event and error information if the request failed.
-
printOnTerminal
void printOnTerminal(TimEvent event)
Called if anTerminal#printOnTerminalAsync()
started request finished. Supported only ifGuides.DIALOG
is enabled.- Parameters:
event
- Contains the terminal sending the event and error information if the request failed.
-
balanceInquiryCompleted
void balanceInquiryCompleted(TimEvent event, BalanceInquiryResponse data)
Called if anTerminal.balanceInquiryAsync()
started request finished. Supported only ifGuides.ADVANCED_RETAIL
is enabled.- Parameters:
event
- Contains the terminal sending the event and error information if the request failed.
-
deferredAuth
void deferredAuth(Terminal terminal, TransactionResponse response)
Called if a Deferred Authorization Notification has been received. Supported only ifGuides.UNATTENDED
is enabled.
-
keyPressed
void keyPressed(Terminal terminal, Reason reason)
Called if a Key Pressed Notification has been received. Supported only ifGuides.UNATTENDED
is enabled.
-
screenshot
void screenshot(Terminal terminal, ScreenshotInformation info)
Called if a Screenshot Notification has been received. Supported only ifGuides.REMOTE
is enabled.
-
errorNotification
void errorNotification(Terminal terminal, TimException error)
Called if a terminal send an Error Notification.
-
licenseChanged
void licenseChanged(Terminal terminal)
Deprecated.Functionality removedCalled if a terminal send a LicenseChanged notification. Get license withTerminal.getLicense()
.
-
vasInfo
void vasInfo(Terminal terminal, VasCheckoutInformation vasInfo)
Called if an VAS Information Notification has been received. Supported only ifGuides.VALUE_ADDED_SERVICES
is enabled.
-
loyaltyDataCompleted
void loyaltyDataCompleted(TimEvent event, CardData data)
Called if anTerminal#loyaltyDataAsync()
started request finished. Supported only ifGuides.VALUE_ADDED_SERVICES
is enabled.- Parameters:
event
- Contains the terminal sending the event and error information if the request failed.
-
startCheckoutCompleted
void startCheckoutCompleted(TimEvent event)
Called if anTerminal.startCheckoutAsync()
started request finished. Supported only ifGuides.VALUE_ADDED_SERVICES
is enabled.- Parameters:
event
- Contains the terminal sending the event and error information if the request failed.
-
finishCheckoutCompleted
void finishCheckoutCompleted(TimEvent event, VasCheckoutInformation data)
Called if anTerminal.finishCheckoutAsync()
started request finished. Supported only ifGuides.VALUE_ADDED_SERVICES
is enabled.- Parameters:
event
- Contains the terminal sending the event and error information if the request failed.
-
provideLoyaltyBasketCompleted
void provideLoyaltyBasketCompleted(TimEvent event, List<LoyaltyItem> data)
Called if anTerminal#provideLoyaltyBasketAsync()
started request finished. Supported only ifGuides.VALUE_ADDED_SERVICES
is enabled.- Parameters:
event
- Contains the terminal sending the event and error information if the request failed.
-
provideVasResultCompleted
void provideVasResultCompleted(TimEvent event, VasResult data)
Called if anTerminal#provideVasResultAsync()
started request finished. Supported only ifGuides.VALUE_ADDED_SERVICES
is enabled.- Parameters:
event
- Contains the terminal sending the event and error information if the request failed.
-
mobileTopupIssuerInfoCompleted
void mobileTopupIssuerInfoCompleted(TimEvent event, List<MobileTopupValue> data)
Called if anTerminal.mobileTopupIssuerInfoAsync()
started request finished. Supported only ifGuides.VALUE_ADDED_SERVICES
is enabled.- Parameters:
event
- Contains the terminal sending the event and error information if the request failed.
-
mobileTopupCompleted
void mobileTopupCompleted(TimEvent event, MobileTopupData data)
Called if anTerminal#mobileTopupAsync()
started request finished. Supported only ifGuides.VALUE_ADDED_SERVICES
is enabled.- Parameters:
event
- Contains the terminal sending the event and error information if the request failed.
-
thirdPartyAppData
void thirdPartyAppData(Terminal terminal, ThirdPartyAppPayload data)
Called if an ThirdPartyAppData notification has been received. Supported only ifGuides.VALUE_ADDED_SERVICES
is enabled.- Parameters:
terminal
- Terminal sending notification.data
- Received
-
requestAliasCompleted
void requestAliasCompleted(TimEvent event, String data)
Called if anTerminal#requestAlias()
started request finished.- Parameters:
event
- Contains the terminal sending the event and error information if the request failed.
-
deviceMaintenanceCompleted
void deviceMaintenanceCompleted(TimEvent event)
Called if anTerminal#deviceMaintenanceAsync()
started request finished. Supported only ifGuides.REMOTE
is enabled.- Parameters:
event
- Contains the terminal sending the event and error information if the request failed.
-
ageCheckCompleted
void ageCheckCompleted(TimEvent event, TransactionInformation data)
Called if anTerminal#ageCheckAsync()
started request finished.- Parameters:
event
- Contains the terminal sending the event and error information if the request failed.data
- Contains transaction result information and print information for the merchant and cardholder.
-
-