Package com.six.timapi
Class DefaultTerminalListener
- java.lang.Object
-
- com.six.timapi.DefaultTerminalListener
-
- All Implemented Interfaces:
TerminalListener
public class DefaultTerminalListener extends Object implements TerminalListener
Default implementation of listener for asynchronous terminal events. Implements methods to call
requestCompleted(com.six.timapi.TimEvent, java.lang.Object)
andprintReceipts(com.six.timapi.Terminal, com.six.timapi.PrintData)
as convenience call.Subclasses usually only overwrite
requestCompleted(com.six.timapi.TimEvent, java.lang.Object)
andprintReceipts(com.six.timapi.Terminal, com.six.timapi.PrintData)
. If you overwrite methods inherited fromTerminalListener
make sure to super call to still getrequestCompleted(com.six.timapi.TimEvent, java.lang.Object)
andprintReceipts(com.six.timapi.Terminal, com.six.timapi.PrintData)
called.
-
-
Constructor Summary
Constructors Constructor Description DefaultTerminalListener()
-
Method Summary
All Methods Instance Methods Concrete 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<com.six.timapi.constants.SettingType, java.lang.String>)
started request finished.void
clientIdentificationCompleted(TimEvent event, ClientIdentificationResponse data)
Called if anTerminal.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, com.six.timapi.Amount)
started request finished.void
initTransactionWithDialogCompleted(TimEvent event, InitTransactionResponse data)
Called if anTerminal.initTransactionWithDialogAsync(com.six.timapi.Amount, com.six.timapi.constants.FunctionHint, com.six.timapi.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 removed.void
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
printReceipts(Terminal terminal, PrintData printData)
Called by all request specific methods containing print data.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
requestCompleted(TimEvent event, Object data)
Called by all of the other request specific methods unless they are implemented differently.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(com.six.timapi.ShowDialogRequest)
started request finished.void
showSignatureCaptureCompleted(TimEvent event, ShowSignatureCaptureResponse data)
Called if anTerminal.showSignatureCaptureAsync(com.six.timapi.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.String
toString()
String representation for debugging purpose.void
transactionCompleted(TimEvent event, TransactionResponse data)
Called if anTerminal.transactionAsync(com.six.timapi.constants.TransactionType, com.six.timapi.Amount)
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
public void connectCompleted(TimEvent event)
Called if anTerminal.connect()
started request finished.- Specified by:
connectCompleted
in interfaceTerminalListener
- Parameters:
event
- Contains the terminal sending the event and error information if the request failed.
-
activateCompleted
public void activateCompleted(TimEvent event, ActivateResponse data)
Called if anTerminal.activateAsync()
started request finished. If not overwritten invokesrequestCompleted(com.six.timapi.TimEvent, java.lang.Object)
.- Specified by:
activateCompleted
in interfaceTerminalListener
- 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
public void applicationInformationCompleted(TimEvent event)
Called if anTerminal.applicationInformationAsync()
started request finished. If not overwritten invokesrequestCompleted(com.six.timapi.TimEvent, java.lang.Object)
.- Specified by:
applicationInformationCompleted
in interfaceTerminalListener
- Parameters:
event
- Contains the terminal sending the event and error information if the request failed.
-
balanceCompleted
public void balanceCompleted(TimEvent event, BalanceResponse data)
Called if anTerminal.balanceAsync()
started request finished. If not overwritten invokesrequestCompleted(com.six.timapi.TimEvent, java.lang.Object)
.- Specified by:
balanceCompleted
in interfaceTerminalListener
- 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
public void changeSettingsCompleted(TimEvent event)
Called if anTerminal.changeSettingsAsync(java.util.Map<com.six.timapi.constants.SettingType, java.lang.String>)
started request finished. If not overwritten invokesrequestCompleted(com.six.timapi.TimEvent, java.lang.Object)
.- Specified by:
changeSettingsCompleted
in interfaceTerminalListener
- Parameters:
event
- Contains the terminal sending the event and error information if the request failed.
-
commitCompleted
public void commitCompleted(TimEvent event, PrintData data)
Called if anTerminal.commitAsync()
started request finished. If not overwritten invokesrequestCompleted(com.six.timapi.TimEvent, java.lang.Object)
.- Specified by:
commitCompleted
in interfaceTerminalListener
- Parameters:
event
- Contains the terminal sending the event and error information if the request failed.
-
counterRequestCompleted
public void counterRequestCompleted(TimEvent event, Counters data)
Called if anTerminal.counterRequestAsync(com.six.timapi.constants.CounterType)
started request finished. If not overwritten invokesrequestCompleted(com.six.timapi.TimEvent, java.lang.Object)
.- Specified by:
counterRequestCompleted
in interfaceTerminalListener
- Parameters:
event
- Contains the terminal sending the event and error information if the request failed.data
- Contains counters.
-
deactivateCompleted
public void deactivateCompleted(TimEvent event, DeactivateResponse data)
Called if anTerminal.deactivateAsync()
started request finished. If not overwritten invokesrequestCompleted(com.six.timapi.TimEvent, java.lang.Object)
.- Specified by:
deactivateCompleted
in interfaceTerminalListener
- 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
public void dccRatesCompleted(TimEvent event, PrintData data)
Called if anTerminal.dccRatesAsync()
started request finished. If not implemented invokesrequestCompleted(com.six.timapi.TimEvent, java.lang.Object)
.- Specified by:
dccRatesCompleted
in interfaceTerminalListener
- Parameters:
event
- Contains the terminal sending the event and error information if the request failed.data
- Contains print information for merchant.
-
hardwareInformationCompleted
public void hardwareInformationCompleted(TimEvent event, HardwareInformationResponse data)
Called if anTerminal.hardwareInformationAsync()
started request finished. If not overwritten invokesrequestCompleted(com.six.timapi.TimEvent, java.lang.Object)
.- Specified by:
hardwareInformationCompleted
in interfaceTerminalListener
- 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
public void initTransactionCompleted(TimEvent event, CardData data)
Called if anTerminal.initTransactionAsync(boolean, com.six.timapi.Amount)
started request finished.- Specified by:
initTransactionCompleted
in interfaceTerminalListener
- Parameters:
event
- Contains the terminal sending the event and error information if the request failed.data
- Contains card data
-
initTransactionWithDialogCompleted
public void initTransactionWithDialogCompleted(TimEvent event, InitTransactionResponse data)
Called if anTerminal.initTransactionWithDialogAsync(com.six.timapi.Amount, com.six.timapi.constants.FunctionHint, com.six.timapi.ShowDialogRequest)
started request finished.- Specified by:
initTransactionWithDialogCompleted
in interfaceTerminalListener
- Parameters:
event
- Contains the terminal sending the event and error information if the request failed.data
- Contains card data
-
loginCompleted
public void loginCompleted(TimEvent event)
Called if anTerminal.loginAsync()
started request finished. If not overwritten invokesrequestCompleted(com.six.timapi.TimEvent, java.lang.Object)
.- Specified by:
loginCompleted
in interfaceTerminalListener
- Parameters:
event
- Contains the terminal sending the event and error information if the request failed.
-
logoutCompleted
public void logoutCompleted(TimEvent event)
Called if anTerminal.logoutAsync()
started request finished. If not overwritten invokesrequestCompleted(com.six.timapi.TimEvent, java.lang.Object)
.- Specified by:
logoutCompleted
in interfaceTerminalListener
- Parameters:
event
- Contains the terminal sending the event and error information if the request failed.
-
rebootCompleted
public void rebootCompleted(TimEvent event)
Called if anTerminal.rebootAsync()
started request finished. If not overwritten invokesrequestCompleted(com.six.timapi.TimEvent, java.lang.Object)
.- Specified by:
rebootCompleted
in interfaceTerminalListener
- Parameters:
event
- Contains the terminal sending the event and error information if the request failed.
-
reconciliationCompleted
public void reconciliationCompleted(TimEvent event, ReconciliationResponse data)
Called if anTerminal.reconciliationAsync()
started request finished. If not overwritten invokesrequestCompleted(com.six.timapi.TimEvent, java.lang.Object)
.- Specified by:
reconciliationCompleted
in interfaceTerminalListener
- 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
public void receiptRequestCompleted(TimEvent event, ReceiptRequestResponse data)
Called if anTerminal.receiptRequestAsync(com.six.timapi.constants.ReceiptRequestType)
started request finished. If not overwritten invokesrequestCompleted(com.six.timapi.TimEvent, java.lang.Object)
.- Specified by:
receiptRequestCompleted
in interfaceTerminalListener
- 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
public void transactionInfoRequestCompleted(TimEvent event, TransactionInfoRequestResponse data)
Called if anTerminal.transactionInfoRequestAsync()
started request finished. If not overwritten invokesrequestCompleted(com.six.timapi.TimEvent, java.lang.Object)
.- Specified by:
transactionInfoRequestCompleted
in interfaceTerminalListener
- 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
public void reconfigCompleted(TimEvent event, PrintData data)
Called if anTerminal.reconfigAsync()
started request finished. If not overwritten invokesrequestCompleted(com.six.timapi.TimEvent, java.lang.Object)
.- Specified by:
reconfigCompleted
in interfaceTerminalListener
- Parameters:
event
- Contains the terminal sending the event and error information if the request failed.data
- Contains print information for the merchant.
-
rollbackCompleted
public void rollbackCompleted(TimEvent event, PrintData data)
Called if anTerminal.rollbackAsync()
started request finished. If not overwritten invokesrequestCompleted(com.six.timapi.TimEvent, java.lang.Object)
.- Specified by:
rollbackCompleted
in interfaceTerminalListener
- 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
public void softwareUpdateCompleted(TimEvent event, UpdateStatus data)
Called if anTerminal.softwareUpdateAsync()
started request finished. If not overwritten invokesrequestCompleted(com.six.timapi.TimEvent, java.lang.Object)
.- Specified by:
softwareUpdateCompleted
in interfaceTerminalListener
- Parameters:
event
- Contains the terminal sending the event and error information if the request failed.data
- Contains update status.
-
systemInformationCompleted
public void systemInformationCompleted(TimEvent event, SystemInformationResponse data)
Called if anTerminal.systemInformationAsync()
started request finished. If not overwritten invokesrequestCompleted(com.six.timapi.TimEvent, java.lang.Object)
.- Specified by:
systemInformationCompleted
in interfaceTerminalListener
- 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
public void transactionCompleted(TimEvent event, TransactionResponse data)
Called if anTerminal.transactionAsync(com.six.timapi.constants.TransactionType, com.six.timapi.Amount)
started request finished. If not overwritten invokesrequestCompleted(com.six.timapi.TimEvent, java.lang.Object)
.- Specified by:
transactionCompleted
in interfaceTerminalListener
- 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
public void clientIdentificationCompleted(TimEvent event, ClientIdentificationResponse data)
Called if anTerminal.clientIdentificationAsync()
started request finished. If not overwritten invokesrequestCompleted(com.six.timapi.TimEvent, java.lang.Object)
.- Specified by:
clientIdentificationCompleted
in interfaceTerminalListener
- 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.
-
terminalStatusChanged
public void terminalStatusChanged(Terminal terminal)
Called if the state of the terminal changed. Retrieve the state using event.getTerminal().getTerminalState().- Specified by:
terminalStatusChanged
in interfaceTerminalListener
- Parameters:
terminal
- Terminal sending the notification.
-
disconnected
public void disconnected(Terminal terminal, TimException exception)
Connection to terminal closed. Called if user disconnected or connection has been lost.- Specified by:
disconnected
in interfaceTerminalListener
- Parameters:
terminal
- Terminal sending the notification.exception
- TimException
-
printReceipts
public void printReceipts(Terminal terminal, PrintData printData)
Called by all request specific methods containing print data. Convenience method to print all receipts send by the terminal. Contains final receipts to print. If the print data sent to the request completed methods contains fields onlyTerminal.getReceiptFormatter()
is used to create final receipts for printing. The following request completed methods contain receipts send to this method:activateCompleted(com.six.timapi.TimEvent, com.six.timapi.ActivateResponse)
balanceCompleted(com.six.timapi.TimEvent, com.six.timapi.BalanceResponse)
deactivateCompleted(com.six.timapi.TimEvent, com.six.timapi.DeactivateResponse)
dccRatesCompleted(com.six.timapi.TimEvent, com.six.timapi.PrintData)
receiptRequestCompleted(com.six.timapi.TimEvent, com.six.timapi.ReceiptRequestResponse)
reconciliationCompleted(com.six.timapi.TimEvent, com.six.timapi.ReconciliationResponse)
reconfigCompleted(com.six.timapi.TimEvent, com.six.timapi.PrintData)
rollbackCompleted(com.six.timapi.TimEvent, com.six.timapi.PrintData)
transactionCompleted(com.six.timapi.TimEvent, com.six.timapi.TransactionResponse)
printReceipts(com.six.timapi.Terminal, com.six.timapi.PrintData)
is called beforerequestCompleted(com.six.timapi.TimEvent, java.lang.Object)
.- Parameters:
terminal
- Terminal receiving the receipts.printData
- Print data containing receipts to print.
-
requestCompleted
public void requestCompleted(TimEvent event, Object data)
Called by all of the other request specific methods unless they are implemented differently.- Parameters:
event
- Contains the terminal sending the event and error information if the request failed.data
- Contains additional request specific data. Can be None-Value if the request in question does not support any additional data. Cast to the matching type to use. Use event.getRequestType() to determine the type of request.
-
toString
public String toString()
String representation for debugging purpose.
-
closeReaderCompleted
public void closeReaderCompleted(TimEvent event)
Called if anTerminal.closeReaderAsync()
started request finished. Supported only ifGuides.UNATTENDED
is enabled.- Specified by:
closeReaderCompleted
in interfaceTerminalListener
- Parameters:
event
- Contains the terminal sending the event and error information if the request failed.
-
openReaderCompleted
public void openReaderCompleted(TimEvent event)
Called if anTerminal.openReaderAsync()
started request finished. Supported only ifGuides.UNATTENDED
is enabled.- Specified by:
openReaderCompleted
in interfaceTerminalListener
- Parameters:
event
- Contains the terminal sending the event and error information if the request failed.
-
ejectCardCompleted
public void ejectCardCompleted(TimEvent event)
Called if anTerminal.ejectCardAsync()
started request finished. Supported only ifGuides.UNATTENDED
is enabled.- Specified by:
ejectCardCompleted
in interfaceTerminalListener
- Parameters:
event
- Contains the terminal sending the event and error information if the request failed.
-
openMaintenanceWindowCompleted
public void openMaintenanceWindowCompleted(TimEvent event)
Called if anTerminal.openMaintenanceWindowAsync()
started request finished. Supported only ifGuides.UNATTENDED
is enabled.- Specified by:
openMaintenanceWindowCompleted
in interfaceTerminalListener
- Parameters:
event
- Contains the terminal sending the event and error information if the request failed.
-
closeMaintenanceWindowCompleted
public void closeMaintenanceWindowCompleted(TimEvent event)
Called if anTerminal.closeMaintenanceWindowAsync()
started request finished. Supported only ifGuides.UNATTENDED
is enabled.- Specified by:
closeMaintenanceWindowCompleted
in interfaceTerminalListener
- Parameters:
event
- Contains the terminal sending the event and error information if the request failed.
-
activateServiceMenuCompleted
public void activateServiceMenuCompleted(TimEvent event)
Called if anTerminal.activateServiceMenuAsync()
started request finished. Supported only ifGuides.UNATTENDED
is enabled.- Specified by:
activateServiceMenuCompleted
in interfaceTerminalListener
- Parameters:
event
- Contains the terminal sending the event and error information if the request failed.
-
openDialogModeCompleted
public void openDialogModeCompleted(TimEvent event)
Called if anTerminal.openDialogModeAsync()
started request finished. Supported only ifGuides.DIALOG
is enabled.- Specified by:
openDialogModeCompleted
in interfaceTerminalListener
- Parameters:
event
- Contains the terminal sending the event and error information if the request failed.
-
closeDialogModeCompleted
public void closeDialogModeCompleted(TimEvent event)
Called if anTerminal.closeDialogModeAsync()
started request finished. Supported only ifGuides.DIALOG
is enabled.- Specified by:
closeDialogModeCompleted
in interfaceTerminalListener
- Parameters:
event
- Contains the terminal sending the event and error information if the request failed.
-
showSignatureCaptureCompleted
public void showSignatureCaptureCompleted(TimEvent event, ShowSignatureCaptureResponse data)
Called if anTerminal.showSignatureCaptureAsync(com.six.timapi.ShowSignatureCaptureRequest)
started request finished. Supported only ifGuides.DIALOG
is enabled.- Specified by:
showSignatureCaptureCompleted
in interfaceTerminalListener
- Parameters:
event
- Contains the terminal sending the event and error information if the request failed.data
- Contains reponse data of signature capture
-
showDialogCompleted
public void showDialogCompleted(TimEvent event, ShowDialogResponse data)
Called if anTerminal.showDialogAsync(com.six.timapi.ShowDialogRequest)
started request finished. Supported only ifGuides.DIALOG
is enabled.- Specified by:
showDialogCompleted
in interfaceTerminalListener
- Parameters:
event
- Contains the terminal sending the event and error information if the request failed.data
- Contains response of dialog
-
sendCardCommandCompleted
public void sendCardCommandCompleted(TimEvent event, List<CommandResponse> data)
Called if anTerminal.sendCardCommand(List)
started request finished. Supported only ifGuides.DIALOG
is enabled.- Specified by:
sendCardCommandCompleted
in interfaceTerminalListener
- Parameters:
event
- Contains the terminal sending the event and error information if the request failed.data
- List of command responses
-
printOnTerminal
public void printOnTerminal(TimEvent event)
Description copied from interface:TerminalListener
Called if anTerminal#printOnTerminalAsync()
started request finished. Supported only ifGuides.DIALOG
is enabled.- Specified by:
printOnTerminal
in interfaceTerminalListener
- Parameters:
event
- Contains the terminal sending the event and error information if the request failed.
-
balanceInquiryCompleted
public void balanceInquiryCompleted(TimEvent event, BalanceInquiryResponse data)
Called if anTerminal.balanceInquiryAsync()
started request finished. Supported only ifGuides.ADVANCED_RETAIL
is enabled.- Specified by:
balanceInquiryCompleted
in interfaceTerminalListener
- Parameters:
event
- Contains the terminal sending the event and error information if the request failed.data
- Contains balance inquiry response data
-
deferredAuth
public void deferredAuth(Terminal terminal, TransactionResponse response)
Called if a Deferred Authorization Notification has been received. Supported only ifGuides.UNATTENDED
is enabled.- Specified by:
deferredAuth
in interfaceTerminalListener
-
keyPressed
public void keyPressed(Terminal terminal, Reason reason)
Called if a Key Pressed Notification has been received. Supported only ifGuides.UNATTENDED
is enabled.- Specified by:
keyPressed
in interfaceTerminalListener
-
screenshot
public void screenshot(Terminal terminal, ScreenshotInformation info)
Called if a Screenshot Notification has been received. Supported only ifGuides.REMOTE
is enabled.- Specified by:
screenshot
in interfaceTerminalListener
-
errorNotification
public void errorNotification(Terminal terminal, TimException error)
Called if a terminal send an Error Notification.- Specified by:
errorNotification
in interfaceTerminalListener
-
licenseChanged
public void licenseChanged(Terminal terminal)
Deprecated.Functionality removed.Called if a terminal send a LicenseChanged notification. Get license withTerminal.getLicense()
.- Specified by:
licenseChanged
in interfaceTerminalListener
-
vasInfo
public void vasInfo(Terminal terminal, VasCheckoutInformation vasInfo)
Called if an VAS Information Notification has been received. Supported only ifGuides.VALUE_ADDED_SERVICES
is enabled.- Specified by:
vasInfo
in interfaceTerminalListener
-
loyaltyDataCompleted
public void loyaltyDataCompleted(TimEvent event, CardData data)
Called if anTerminal#loyaltyDataAsync()
started request finished. Supported only ifGuides.VALUE_ADDED_SERVICES
is enabled.- Specified by:
loyaltyDataCompleted
in interfaceTerminalListener
- Parameters:
event
- Contains the terminal sending the event and error information if the request failed.
-
startCheckoutCompleted
public void startCheckoutCompleted(TimEvent event)
Called if anTerminal.startCheckoutAsync()
started request finished. Supported only ifGuides.VALUE_ADDED_SERVICES
is enabled.- Specified by:
startCheckoutCompleted
in interfaceTerminalListener
- Parameters:
event
- Contains the terminal sending the event and error information if the request failed.
-
finishCheckoutCompleted
public void finishCheckoutCompleted(TimEvent event, VasCheckoutInformation data)
Called if anTerminal.finishCheckoutAsync()
started request finished. Supported only ifGuides.VALUE_ADDED_SERVICES
is enabled.- Specified by:
finishCheckoutCompleted
in interfaceTerminalListener
- Parameters:
event
- Contains the terminal sending the event and error information if the request failed.
-
provideLoyaltyBasketCompleted
public void provideLoyaltyBasketCompleted(TimEvent event, List<LoyaltyItem> data)
Called if anTerminal#provideLoyaltyBasketAsync()
started request finished. Supported only ifGuides.VALUE_ADDED_SERVICES
is enabled.- Specified by:
provideLoyaltyBasketCompleted
in interfaceTerminalListener
- Parameters:
event
- Contains the terminal sending the event and error information if the request failed.
-
provideVasResultCompleted
public void provideVasResultCompleted(TimEvent event, VasResult data)
Called if anTerminal#provideVasResultAsync()
started request finished. Supported only ifGuides.VALUE_ADDED_SERVICES
is enabled.- Specified by:
provideVasResultCompleted
in interfaceTerminalListener
- Parameters:
event
- Contains the terminal sending the event and error information if the request failed.
-
mobileTopupIssuerInfoCompleted
public void mobileTopupIssuerInfoCompleted(TimEvent event, List<MobileTopupValue> data)
Called if anTerminal.mobileTopupIssuerInfoAsync()
started request finished. Supported only ifGuides.VALUE_ADDED_SERVICES
is enabled.- Specified by:
mobileTopupIssuerInfoCompleted
in interfaceTerminalListener
- Parameters:
event
- Contains the terminal sending the event and error information if the request failed.
-
mobileTopupCompleted
public void mobileTopupCompleted(TimEvent event, MobileTopupData data)
Called if anTerminal#mobileTopupAsync()
started request finished. Supported only ifGuides.VALUE_ADDED_SERVICES
is enabled.- Specified by:
mobileTopupCompleted
in interfaceTerminalListener
- Parameters:
event
- Contains the terminal sending the event and error information if the request failed.
-
thirdPartyAppData
public void thirdPartyAppData(Terminal terminal, ThirdPartyAppPayload data)
Called if an ThirdPartyAppData notification has been received. Supported only ifGuides.VALUE_ADDED_SERVICES
is enabled.- Specified by:
thirdPartyAppData
in interfaceTerminalListener
- Parameters:
terminal
- Terminal sending notification.data
- Received
-
requestAliasCompleted
public void requestAliasCompleted(TimEvent event, String data)
Called if anTerminal#requestAlias()
started request finished.- Specified by:
requestAliasCompleted
in interfaceTerminalListener
- Parameters:
event
- Contains the terminal sending the event and error information if the request failed.
-
deviceMaintenanceCompleted
public void deviceMaintenanceCompleted(TimEvent event)
Called if anTerminal#deviceMaintenanceAsync()
started request finished. Supported only ifGuides.REMOTE
is enabled.- Specified by:
deviceMaintenanceCompleted
in interfaceTerminalListener
- Parameters:
event
- Contains the terminal sending the event and error information if the request failed.
-
ageCheckCompleted
public void ageCheckCompleted(TimEvent event, TransactionInformation data)
Called if anTerminal#ageCheckAsync()
started request finished.- Specified by:
ageCheckCompleted
in interfaceTerminalListener
- 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.
-
-