C# Класс com.clover.remotepay.transport.DefaultCloverDevice

Наследование: CloverDevice, CloverTransportObserver
Показать файл Открыть проект

Private Properties

Свойство Тип Описание
sendObjectMessage void

Открытые методы

Метод Описание
DefaultCloverDevice ( CloverDeviceConfiguration configuration ) : System
DefaultCloverDevice ( String packageName, CloverTransport transport, String remoteApplicationID ) : System
doCapturePreAuth ( string paymentID, long amount, long tipAmount ) : void
doCloseout ( bool allowOpenTabs, string batchId ) : void
doDiscoveryRequest ( ) : void
doKeyPress ( KeyPress keyPress ) : void
doLogMessages ( LogLevelEnum logLevel, string>.Dictionary messages ) : void
doOpenCashDrawer ( string reason ) : void
doOrderUpdate ( DisplayOrder order, DisplayOperation operation ) : void
doPrintImage ( string base64String ) : void
doPrintImageURL ( string urlString ) : void
doPrintText ( List textLines ) : void
doRefundPayment ( string orderId, string paymentId, long amount, bool fullRefund ) : void
doResetDevice ( ) : void
doShowPaymentReceiptScreen ( string orderId, string paymentId ) : void
doShowThankYouScreen ( ) : void
doShowWelcomeScreen ( ) : void
doTerminalMessage ( string text ) : void
doTipAdjustAuth ( string orderId, string paymentId, long amount ) : void
doTxStart ( PayIntent payIntent, Order order, bool suppressOnScreenTips ) : void
doVaultCard ( int CardEntryMethods ) : void
doVerifySignature ( Payment payment, bool verified ) : void
doVoidPayment ( Payment payment, VoidReason reason ) : void
notifyObserversCapturePreAuthResponse ( CapturePreAuthResponseMessage carm ) : void
notifyObserversCashbackSelected ( CashbackSelectedMessage cbSelected ) : void
notifyObserversCloseoutResponse ( CloseoutResponseMessage crm ) : void
notifyObserversDiscoveryResponse ( DiscoveryResponseMessage drMessage ) : void
notifyObserversFinishCancel ( ) : void
notifyObserversFinishOk ( FinishOkMessage msg ) : void
notifyObserversKeyPressed ( KeyPressMessage keyPress ) : void
notifyObserversPartialAuth ( PartialAuthMessage partialAuth ) : void
notifyObserversPaymentVoided ( Payment payment, VoidReason reason ) : void
notifyObserversRefundPaymentResponse ( RefundResponseMessage rrm ) : void
notifyObserversTipAdded ( TipAddedMessage tipAdded ) : void
notifyObserversTipAdjusted ( TipAdjustResponseMessage tarm ) : void
notifyObserversTxStartResponse ( TxStartResponseMessage txsrm ) : void
notifyObserversTxState ( TxStateMessage txStateMsg ) : void
notifyObserversUiState ( UiStateMessage uiStateMsg ) : void
notifyObserversVaultCardResponse ( VaultCardResponseMessage vcrm ) : void
notifyObserversVerifySignature ( VerifySignatureMessage verifySigMsg ) : void
onDeviceConnected ( CloverTransport transport ) : void
onDeviceDisconnected ( CloverTransport transport ) : void
onDeviceError ( int code, string message ) : void
onDeviceReady ( CloverTransport device ) : void
onMessage ( string message ) : void

This handles parsing the generic message and figuring out which handler should be used for processing

Приватные методы

Метод Описание
sendObjectMessage ( Message message ) : void

Описание методов

DefaultCloverDevice() публичный Метод

public DefaultCloverDevice ( CloverDeviceConfiguration configuration ) : System
configuration CloverDeviceConfiguration
Результат System

DefaultCloverDevice() публичный Метод

public DefaultCloverDevice ( String packageName, CloverTransport transport, String remoteApplicationID ) : System
packageName String
transport CloverTransport
remoteApplicationID String
Результат System

doCapturePreAuth() публичный Метод

public doCapturePreAuth ( string paymentID, long amount, long tipAmount ) : void
paymentID string
amount long
tipAmount long
Результат void

doCloseout() публичный Метод

public doCloseout ( bool allowOpenTabs, string batchId ) : void
allowOpenTabs bool
batchId string
Результат void

doDiscoveryRequest() публичный Метод

public doDiscoveryRequest ( ) : void
Результат void

doKeyPress() публичный Метод

public doKeyPress ( KeyPress keyPress ) : void
keyPress KeyPress
Результат void

doLogMessages() публичный Метод

public doLogMessages ( LogLevelEnum logLevel, string>.Dictionary messages ) : void
logLevel LogLevelEnum
messages string>.Dictionary
Результат void

doOpenCashDrawer() публичный Метод

public doOpenCashDrawer ( string reason ) : void
reason string
Результат void

doOrderUpdate() публичный Метод

public doOrderUpdate ( DisplayOrder order, DisplayOperation operation ) : void
order DisplayOrder
operation DisplayOperation
Результат void

doPrintImage() публичный Метод

public doPrintImage ( string base64String ) : void
base64String string
Результат void

doPrintImageURL() публичный Метод

public doPrintImageURL ( string urlString ) : void
urlString string
Результат void

doPrintText() публичный Метод

public doPrintText ( List textLines ) : void
textLines List
Результат void

doRefundPayment() публичный Метод

public doRefundPayment ( string orderId, string paymentId, long amount, bool fullRefund ) : void
orderId string
paymentId string
amount long
fullRefund bool
Результат void

doResetDevice() публичный Метод

public doResetDevice ( ) : void
Результат void

doShowPaymentReceiptScreen() публичный Метод

public doShowPaymentReceiptScreen ( string orderId, string paymentId ) : void
orderId string
paymentId string
Результат void

doShowThankYouScreen() публичный Метод

public doShowThankYouScreen ( ) : void
Результат void

doShowWelcomeScreen() публичный Метод

public doShowWelcomeScreen ( ) : void
Результат void

doTerminalMessage() публичный Метод

public doTerminalMessage ( string text ) : void
text string
Результат void

doTipAdjustAuth() публичный Метод

public doTipAdjustAuth ( string orderId, string paymentId, long amount ) : void
orderId string
paymentId string
amount long
Результат void

doTxStart() публичный Метод

public doTxStart ( PayIntent payIntent, Order order, bool suppressOnScreenTips ) : void
payIntent PayIntent
order com.clover.sdk.v3.order.Order
suppressOnScreenTips bool
Результат void

doVaultCard() публичный Метод

public doVaultCard ( int CardEntryMethods ) : void
CardEntryMethods int
Результат void

doVerifySignature() публичный Метод

public doVerifySignature ( Payment payment, bool verified ) : void
payment com.clover.sdk.v3.payments.Payment
verified bool
Результат void

doVoidPayment() публичный Метод

public doVoidPayment ( Payment payment, VoidReason reason ) : void
payment com.clover.sdk.v3.payments.Payment
reason VoidReason
Результат void

notifyObserversCapturePreAuthResponse() публичный Метод

public notifyObserversCapturePreAuthResponse ( CapturePreAuthResponseMessage carm ) : void
carm CapturePreAuthResponseMessage
Результат void

notifyObserversCashbackSelected() публичный Метод

public notifyObserversCashbackSelected ( CashbackSelectedMessage cbSelected ) : void
cbSelected CashbackSelectedMessage
Результат void

notifyObserversCloseoutResponse() публичный Метод

public notifyObserversCloseoutResponse ( CloseoutResponseMessage crm ) : void
crm CloseoutResponseMessage
Результат void

notifyObserversDiscoveryResponse() публичный Метод

public notifyObserversDiscoveryResponse ( DiscoveryResponseMessage drMessage ) : void
drMessage DiscoveryResponseMessage
Результат void

notifyObserversFinishCancel() публичный Метод

public notifyObserversFinishCancel ( ) : void
Результат void

notifyObserversFinishOk() публичный Метод

public notifyObserversFinishOk ( FinishOkMessage msg ) : void
msg FinishOkMessage
Результат void

notifyObserversKeyPressed() публичный Метод

public notifyObserversKeyPressed ( KeyPressMessage keyPress ) : void
keyPress KeyPressMessage
Результат void

notifyObserversPartialAuth() публичный Метод

public notifyObserversPartialAuth ( PartialAuthMessage partialAuth ) : void
partialAuth PartialAuthMessage
Результат void

notifyObserversPaymentVoided() публичный Метод

public notifyObserversPaymentVoided ( Payment payment, VoidReason reason ) : void
payment com.clover.sdk.v3.payments.Payment
reason VoidReason
Результат void

notifyObserversRefundPaymentResponse() публичный Метод

public notifyObserversRefundPaymentResponse ( RefundResponseMessage rrm ) : void
rrm RefundResponseMessage
Результат void

notifyObserversTipAdded() публичный Метод

public notifyObserversTipAdded ( TipAddedMessage tipAdded ) : void
tipAdded TipAddedMessage
Результат void

notifyObserversTipAdjusted() публичный Метод

public notifyObserversTipAdjusted ( TipAdjustResponseMessage tarm ) : void
tarm TipAdjustResponseMessage
Результат void

notifyObserversTxStartResponse() публичный Метод

public notifyObserversTxStartResponse ( TxStartResponseMessage txsrm ) : void
txsrm TxStartResponseMessage
Результат void

notifyObserversTxState() публичный Метод

public notifyObserversTxState ( TxStateMessage txStateMsg ) : void
txStateMsg TxStateMessage
Результат void

notifyObserversUiState() публичный Метод

public notifyObserversUiState ( UiStateMessage uiStateMsg ) : void
uiStateMsg UiStateMessage
Результат void

notifyObserversVaultCardResponse() публичный Метод

public notifyObserversVaultCardResponse ( VaultCardResponseMessage vcrm ) : void
vcrm VaultCardResponseMessage
Результат void

notifyObserversVerifySignature() публичный Метод

public notifyObserversVerifySignature ( VerifySignatureMessage verifySigMsg ) : void
verifySigMsg VerifySignatureMessage
Результат void

onDeviceConnected() публичный Метод

public onDeviceConnected ( CloverTransport transport ) : void
transport CloverTransport
Результат void

onDeviceDisconnected() публичный Метод

public onDeviceDisconnected ( CloverTransport transport ) : void
transport CloverTransport
Результат void

onDeviceError() публичный Метод

public onDeviceError ( int code, string message ) : void
code int
message string
Результат void

onDeviceReady() публичный Метод

public onDeviceReady ( CloverTransport device ) : void
device CloverTransport
Результат void

onMessage() публичный Метод

This handles parsing the generic message and figuring out which handler should be used for processing
public onMessage ( string message ) : void
message string The message.
Результат void