# RetailerCommunicationInterface

interface RetailerCommunicationInterface : CommunicationInterface

## Functions

bypassRawMessage
Link copied to clipboard
open suspend fun bypassRawMessage(rawMessage: String)

Bypass limited functionality

sendAbortRequest
Link copied to clipboard
abstract suspend fun sendAbortRequest()

Aborts transaction before authorization request was sent to host. If authorization request was already sent, request will be ignored by Payment Application

sendAdminRequest
Link copied to clipboard
abstract suspend fun sendAdminRequest(arguments: RetailerMessageArguments.AdminRequestMessageArguments)

Message triggers specific actions in Payment application; Such as:

sendBalanceInquiryRequest
Link copied to clipboard
abstract suspend fun sendBalanceInquiryRequest(arguments: RetailerMessageArguments.BalanceInquiryRequestMessageArguments)

Balance inquiry request stands for check available funds on bank account

sendCardAcquisitionRequest
Link copied to clipboard
abstract suspend fun sendCardAcquisitionRequest(arguments: RetailerMessageArguments.CardAcquisitionMessageArguments)

Sends request to get card data

sendLoginRequest
Link copied to clipboard
abstract suspend fun sendLoginRequest(arguments: RetailerMessageArguments.LoginRequestMessageArguments = LoginRequestMessageArguments())

Send Login request

sendLogoutRequest
Link copied to clipboard
abstract suspend fun sendLogoutRequest()

Send Logout request

sendPaymentRequest
Link copied to clipboard
abstract suspend fun sendPaymentRequest(arguments: RetailerMessageArguments.PaymentRequestMessageArguments)

Send Payment request

sendReconciliationRequest
Link copied to clipboard
abstract suspend fun sendReconciliationRequest(arguments: RetailerMessageArguments.ReconciliationRequestMessageArguments)

Send Reconciliation request

sendReversalRequest
Link copied to clipboard
abstract suspend fun sendReversalRequest(arguments: RetailerMessageArguments.ReversalRequestMessageArguments)

Reversal request stands for transaction cancellation

sendTestConnectionRequest
Link copied to clipboard
abstract suspend fun sendTestConnectionRequest(diagnosisRequestArguments: RetailerMessageArguments.DiagnosisRequestMessageArguments)

Send test connection request

sendTransactionStatusRequest
Link copied to clipboard
abstract suspend fun sendTransactionStatusRequest(arguments: RetailerMessageArguments.StatusRequestMessageArguments)

Get last completed in Payment Application transaction status

switchMessageFormat
Link copied to clipboard
abstract fun switchMessageFormat(messageFormat: MessageFormat)

PayOnSite application shall support MessageFormat.JSON since BuildConfig.LIBRARY_VERSION "1.2.2"