TerminalListener

public protocol TerminalListener : AnyObject

Listener for asynchronous terminal events.

  • Called if a {@link Terminal#connect()} started request finished. @param event Contains the terminal sending the event and error information if the request failed.

    Declaration

    Swift

    func connectCompleted(event: TimEvent)
  • Called if a {@link Terminal#disconnect()} started request finished. @param event Contains the terminal sending the event and error information if the request failed.

    Declaration

    Swift

    func disconnectCompleted(event: TimEvent)
  • Called if an {@link Terminal#activateAsync} started request finished. @param event Contains the terminal sending the event and error information if the request failed. @param data Contains activation sequence counter and print information for the merchant.

    Declaration

    Swift

    func activateCompleted(event: TimEvent, data: ActivateResponse?)
  • Called if an {@link Terminal#applicationInformationAsync} started request finished. @param event Contains the terminal sending the event and error information if the request failed.

    Declaration

    Swift

    func applicationInformationCompleted(event: TimEvent)
  • Called if an {@link Terminal#balanceAsync} started request finished. @param event Contains the terminal sending the event and error information if the request failed. @param data Contains counters and print information for the merchant.

    Declaration

    Swift

    func balanceCompleted(event: TimEvent, data: BalanceResponse?)
  • Called if an {@link Terminal#changeSettingsAsync} started request finished. @param event Contains the terminal sending the event and error information if the request failed.

    Declaration

    Swift

    func changeSettingsCompleted(event: TimEvent)
  • Called if an {@link Terminal#commitAsync} started request finished. @param event Contains the terminal sending the event and error information if the request failed.

    Declaration

    Swift

    func commitCompleted(event: TimEvent, data: PrintData?)
  • Called if an {@link Terminal#counterRequestAsync} started request finished. @param event Contains the terminal sending the event and error information if the request failed. @param data Contains counters.

    Declaration

    Swift

    func counterRequestCompleted(event: TimEvent, data: Counters?)
  • Called if an {@link Terminal#deactivateAsync} started request finished. @param event Contains the terminal sending the event and error information if the request failed. @param data Contains counters and print information for the merchant.

    Declaration

    Swift

    func deactivateCompleted(event: TimEvent, data: DeactivateResponse?)
  • Called if an {@link Terminal#dccRatesAsync} started request finished. @param event Contains the terminal sending the event and error information if the request failed. @param data Contains print information for merchant.

    Declaration

    Swift

    func dccRatesCompleted(event: TimEvent, data: PrintData?)
  • Called if an {@link Terminal#hardwareInformationAsync} started request finished. @param event Contains the terminal sending the event and error information if the request failed. @param data Contains information about EFT Terminal hardware and EMV kernels and configuration parameters supported by the EFT Terminal.

    Declaration

    Swift

    func hardwareInformationCompleted(event: TimEvent, data: HardwareInformationResponse?)
  • Called if an {@link Terminal#initTransactionAsync} started request finished. @param event Contains the terminal sending the event and error information if the request failed.

    Declaration

    Swift

    func initTransactionCompleted(event: TimEvent, data: CardData?)
  • Called if an {@link Terminal#loginAsync} started request finished. @param event Contains the terminal sending the event and error information if the request failed.

    Declaration

    Swift

    func loginCompleted(event: TimEvent)
  • Called if an {@link Terminal#logoutAsync} started request finished. @param event Contains the terminal sending the event and error information if the request failed.

    Declaration

    Swift

    func logoutCompleted(event: TimEvent)
  • Called if an {@link Terminal#rebootAsync} started request finished. @param event Contains the terminal sending the event and error information if the request failed.

    Declaration

    Swift

    func rebootCompleted(event: TimEvent)
  • Called if an {@link Terminal#reconciliationAsync} started request finished. @param event Contains the terminal sending the event and error information if the request failed. @param data Contains counters and print information for the merchant.

    Declaration

    Swift

    func reconciliationCompleted(event: TimEvent, data: ReconciliationResponse?)
  • Called if an {@link Terminal#receiptRequestAsync} started request finished. @param event Contains the terminal sending the event and error information if the request failed. @param 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.

    Declaration

    Swift

    func receiptRequestCompleted(event: TimEvent, data: ReceiptRequestResponse?)
  • Called if an {@link Terminal#reconfigAsync} started request finished. @param event Contains the terminal sending the event and error information if the request failed. @param data Contains print information for the merchant.

    Declaration

    Swift

    func reconfigCompleted(event: TimEvent, data: PrintData?)
  • Called if an {@link Terminal#rollbackAsync} started request finished. @param event Contains the terminal sending the event and error information if the request failed. @param data Contains print information for the merchant and cardholder.

    Declaration

    Swift

    func rollbackCompleted(event: TimEvent, data: PrintData?)
  • Called if an {@link Terminal#softwareUpdateAsync} started request finished. @param event Contains the terminal sending the event and error information if the request failed. @param data Contains update status.

    Declaration

    Swift

    func softwareUpdateCompleted(event: TimEvent, data: CUpdateStatus?)
  • Called if an {@link Terminal#systemInformationAsync} started request finished. @param event Contains the terminal sending the event and error information if the request failed. @param data Contains configuration and network information of the terminal.

    Declaration

    Swift

    func systemInformationCompleted(event: TimEvent, data: SystemInformationResponse?)
  • Called if an {@link Terminal#transactionAsync} started request finished. @param event Contains the terminal sending the event and error information if the request failed. @param data Contains transaction result information and print information for the merchant and cardholder.

    Declaration

    Swift

    func transactionCompleted(event: TimEvent, data: TransactionResponse?)
  • Called if the state of the terminal changed. Retrieve the state using event.getTerminal().getTerminalState(). @param terminal Terminal sending the notification.

    Declaration

    Swift

    func terminalStatusChanged(terminal: Terminal)
  • Called if an {@link Terminal#closeReaderAsync} started request finished.

    Supported only if {@link com.six.timapi.constants.Guides#UNATTENDED} is enabled. @param event Contains the terminal sending the event and error information if the request failed.

    Declaration

    Swift

    func closeReaderCompleted(event: TimEvent)
  • Called if an {@link Terminal#openReaderAsync} started request finished.

    Supported only if {@link com.six.timapi.constants.Guides#UNATTENDED} is enabled. @param event Contains the terminal sending the event and error information if the request failed.

    Declaration

    Swift

    func openReaderCompleted(event: TimEvent)
  • Called if an {@link Terminal#ejectCardAsync} started request finished.

    Supported only if {@link com.six.timapi.constants.Guides#UNATTENDED} is enabled. @param event Contains the terminal sending the event and error information if the request failed.

    Declaration

    Swift

    func ejectCardCompleted(event: TimEvent)
  • Called if an {@link Terminal#openMaintenanceWindowAsync} started request finished.

    Supported only if {@link com.six.timapi.constants.Guides#UNATTENDED} is enabled. @param event Contains the terminal sending the event and error information if the request failed.

    Declaration

    Swift

    func openMaintenanceWindowCompleted(event: TimEvent)
  • Called if an {@link Terminal#closeMaintenanceWindowAsync} started request finished.

    Supported only if {@link com.six.timapi.constants.Guides#UNATTENDED} is enabled. @param event Contains the terminal sending the event and error information if the request failed.

    Declaration

    Swift

    func closeMaintenanceWindowCompleted(event: TimEvent)
  • Called if an {@link Terminal#activateServiceMenuAsync} started request finished.

    Supported only if {@link com.six.timapi.constants.Guides#UNATTENDED} is enabled. @param event Contains the terminal sending the event and error information if the request failed.

    Declaration

    Swift

    func activateServiceMenuCompleted(event: TimEvent)
  • Called if an {@link Terminal#openDialogModeAsync} started request finished.

    Supported only if {@link com.six.timapi.constants.Guides#DIALOG} is enabled. @param event Contains the terminal sending the event and error information if the request failed.

    Declaration

    Swift

    func openDialogModeCompleted(event: TimEvent)
  • Called if an {@link Terminal#closeDialogModeAsync} started request finished.

    Supported only if {@link com.six.timapi.constants.Guides#DIALOG} is enabled. @param event Contains the terminal sending the event and error information if the request failed.

    Declaration

    Swift

    func closeDialogModeCompleted(event: TimEvent)
  • Called if an {@link Terminal#showSignatureCaptureAsync} started request finished.

    Supported only if {@link com.six.timapi.constants.Guides#DIALOG} is enabled. @param event Contains the terminal sending the event and error information if the request failed.

    Declaration

    Swift

    func showSignatureCaptureCompleted(event: TimEvent, data: ShowSignatureCaptureResponse?)
  • Called if an {@link Terminal#showDialogAsync} started request finished.

    Supported only if {@link com.six.timapi.constants.Guides#DIALOG} is enabled. @param event Contains the terminal sending the event and error information if the request failed.

    Declaration

    Swift

    func showDialogCompleted(event: TimEvent, data: ShowDialogResponse?)
  • Called if an {@link Terminal#sendCardCommandAsync} started request finished.

    Supported only if {@link com.six.timapi.constants.Guides#DIALOG} is enabled. @param event Contains the terminal sending the event and error information if the request failed.

    Declaration

    Swift

    func sendCardCommandCompleted(event: TimEvent, data: [CommandResponse]?)
  • Called if an {@link Terminal#balanceInquiryAsync()} started request finished.

    Supported only if {@link com.six.timapi.constants.Guides#ADVANCED_RETAIL} is enabled. @param event Contains the terminal sending the event and error information if the request failed.

    Declaration

    Swift

    func balanceInquiryCompleted(event: TimEvent, data: BalanceInquiryResponse?)
  • Called if an {@link Terminal#requestAlias()} started request finished.

    @param event Contains the terminal sending the event and error information if the request failed.

    Declaration

    Swift

    func requestAliasCompleted(event: TimEvent, data: String?)