C# Class com.clover.remotepay.transport.DefaultCloverDevice

Inheritance: CloverDevice, CloverTransportObserver
Afficher le fichier Open project: clover/remote-pay-windows

Private Properties

Свойство Type Description
sendObjectMessage void

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
sendObjectMessage ( Message message ) : void

Method Details

DefaultCloverDevice() public méthode

public DefaultCloverDevice ( CloverDeviceConfiguration configuration ) : System
configuration CloverDeviceConfiguration
Résultat System

DefaultCloverDevice() public méthode

public DefaultCloverDevice ( String packageName, CloverTransport transport, String remoteApplicationID ) : System
packageName String
transport CloverTransport
remoteApplicationID String
Résultat System

doCapturePreAuth() public méthode

public doCapturePreAuth ( string paymentID, long amount, long tipAmount ) : void
paymentID string
amount long
tipAmount long
Résultat void

doCloseout() public méthode

public doCloseout ( bool allowOpenTabs, string batchId ) : void
allowOpenTabs bool
batchId string
Résultat void

doDiscoveryRequest() public méthode

public doDiscoveryRequest ( ) : void
Résultat void

doKeyPress() public méthode

public doKeyPress ( KeyPress keyPress ) : void
keyPress KeyPress
Résultat void

doLogMessages() public méthode

public doLogMessages ( LogLevelEnum logLevel, string>.Dictionary messages ) : void
logLevel LogLevelEnum
messages string>.Dictionary
Résultat void

doOpenCashDrawer() public méthode

public doOpenCashDrawer ( string reason ) : void
reason string
Résultat void

doOrderUpdate() public méthode

public doOrderUpdate ( DisplayOrder order, DisplayOperation operation ) : void
order DisplayOrder
operation DisplayOperation
Résultat void

doPrintImage() public méthode

public doPrintImage ( string base64String ) : void
base64String string
Résultat void

doPrintImageURL() public méthode

public doPrintImageURL ( string urlString ) : void
urlString string
Résultat void

doPrintText() public méthode

public doPrintText ( List textLines ) : void
textLines List
Résultat void

doRefundPayment() public méthode

public doRefundPayment ( string orderId, string paymentId, long amount, bool fullRefund ) : void
orderId string
paymentId string
amount long
fullRefund bool
Résultat void

doResetDevice() public méthode

public doResetDevice ( ) : void
Résultat void

doShowPaymentReceiptScreen() public méthode

public doShowPaymentReceiptScreen ( string orderId, string paymentId ) : void
orderId string
paymentId string
Résultat void

doShowThankYouScreen() public méthode

public doShowThankYouScreen ( ) : void
Résultat void

doShowWelcomeScreen() public méthode

public doShowWelcomeScreen ( ) : void
Résultat void

doTerminalMessage() public méthode

public doTerminalMessage ( string text ) : void
text string
Résultat void

doTipAdjustAuth() public méthode

public doTipAdjustAuth ( string orderId, string paymentId, long amount ) : void
orderId string
paymentId string
amount long
Résultat void

doTxStart() public méthode

public doTxStart ( PayIntent payIntent, Order order, bool suppressOnScreenTips ) : void
payIntent PayIntent
order com.clover.sdk.v3.order.Order
suppressOnScreenTips bool
Résultat void

doVaultCard() public méthode

public doVaultCard ( int CardEntryMethods ) : void
CardEntryMethods int
Résultat void

doVerifySignature() public méthode

public doVerifySignature ( Payment payment, bool verified ) : void
payment com.clover.sdk.v3.payments.Payment
verified bool
Résultat void

doVoidPayment() public méthode

public doVoidPayment ( Payment payment, VoidReason reason ) : void
payment com.clover.sdk.v3.payments.Payment
reason VoidReason
Résultat void

notifyObserversCapturePreAuthResponse() public méthode

public notifyObserversCapturePreAuthResponse ( CapturePreAuthResponseMessage carm ) : void
carm CapturePreAuthResponseMessage
Résultat void

notifyObserversCashbackSelected() public méthode

public notifyObserversCashbackSelected ( CashbackSelectedMessage cbSelected ) : void
cbSelected CashbackSelectedMessage
Résultat void

notifyObserversCloseoutResponse() public méthode

public notifyObserversCloseoutResponse ( CloseoutResponseMessage crm ) : void
crm CloseoutResponseMessage
Résultat void

notifyObserversDiscoveryResponse() public méthode

public notifyObserversDiscoveryResponse ( DiscoveryResponseMessage drMessage ) : void
drMessage DiscoveryResponseMessage
Résultat void

notifyObserversFinishCancel() public méthode

public notifyObserversFinishCancel ( ) : void
Résultat void

notifyObserversFinishOk() public méthode

public notifyObserversFinishOk ( FinishOkMessage msg ) : void
msg FinishOkMessage
Résultat void

notifyObserversKeyPressed() public méthode

public notifyObserversKeyPressed ( KeyPressMessage keyPress ) : void
keyPress KeyPressMessage
Résultat void

notifyObserversPartialAuth() public méthode

public notifyObserversPartialAuth ( PartialAuthMessage partialAuth ) : void
partialAuth PartialAuthMessage
Résultat void

notifyObserversPaymentVoided() public méthode

public notifyObserversPaymentVoided ( Payment payment, VoidReason reason ) : void
payment com.clover.sdk.v3.payments.Payment
reason VoidReason
Résultat void

notifyObserversRefundPaymentResponse() public méthode

public notifyObserversRefundPaymentResponse ( RefundResponseMessage rrm ) : void
rrm RefundResponseMessage
Résultat void

notifyObserversTipAdded() public méthode

public notifyObserversTipAdded ( TipAddedMessage tipAdded ) : void
tipAdded TipAddedMessage
Résultat void

notifyObserversTipAdjusted() public méthode

public notifyObserversTipAdjusted ( TipAdjustResponseMessage tarm ) : void
tarm TipAdjustResponseMessage
Résultat void

notifyObserversTxStartResponse() public méthode

public notifyObserversTxStartResponse ( TxStartResponseMessage txsrm ) : void
txsrm TxStartResponseMessage
Résultat void

notifyObserversTxState() public méthode

public notifyObserversTxState ( TxStateMessage txStateMsg ) : void
txStateMsg TxStateMessage
Résultat void

notifyObserversUiState() public méthode

public notifyObserversUiState ( UiStateMessage uiStateMsg ) : void
uiStateMsg UiStateMessage
Résultat void

notifyObserversVaultCardResponse() public méthode

public notifyObserversVaultCardResponse ( VaultCardResponseMessage vcrm ) : void
vcrm VaultCardResponseMessage
Résultat void

notifyObserversVerifySignature() public méthode

public notifyObserversVerifySignature ( VerifySignatureMessage verifySigMsg ) : void
verifySigMsg VerifySignatureMessage
Résultat void

onDeviceConnected() public méthode

public onDeviceConnected ( CloverTransport transport ) : void
transport CloverTransport
Résultat void

onDeviceDisconnected() public méthode

public onDeviceDisconnected ( CloverTransport transport ) : void
transport CloverTransport
Résultat void

onDeviceError() public méthode

public onDeviceError ( int code, string message ) : void
code int
message string
Résultat void

onDeviceReady() public méthode

public onDeviceReady ( CloverTransport device ) : void
device CloverTransport
Résultat void

onMessage() public méthode

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.
Résultat void