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

Inheritance: CloverDevice, CloverTransportObserver
Mostra file Open project: clover/remote-pay-windows

Private Properties

Property Type Description
sendObjectMessage void

Public Methods

Method 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

Method Description
sendObjectMessage ( Message message ) : void

Method Details

DefaultCloverDevice() public method

public DefaultCloverDevice ( CloverDeviceConfiguration configuration ) : System
configuration CloverDeviceConfiguration
return System

DefaultCloverDevice() public method

public DefaultCloverDevice ( String packageName, CloverTransport transport, String remoteApplicationID ) : System
packageName String
transport CloverTransport
remoteApplicationID String
return System

doCapturePreAuth() public method

public doCapturePreAuth ( string paymentID, long amount, long tipAmount ) : void
paymentID string
amount long
tipAmount long
return void

doCloseout() public method

public doCloseout ( bool allowOpenTabs, string batchId ) : void
allowOpenTabs bool
batchId string
return void

doDiscoveryRequest() public method

public doDiscoveryRequest ( ) : void
return void

doKeyPress() public method

public doKeyPress ( KeyPress keyPress ) : void
keyPress KeyPress
return void

doLogMessages() public method

public doLogMessages ( LogLevelEnum logLevel, string>.Dictionary messages ) : void
logLevel LogLevelEnum
messages string>.Dictionary
return void

doOpenCashDrawer() public method

public doOpenCashDrawer ( string reason ) : void
reason string
return void

doOrderUpdate() public method

public doOrderUpdate ( DisplayOrder order, DisplayOperation operation ) : void
order DisplayOrder
operation DisplayOperation
return void

doPrintImage() public method

public doPrintImage ( string base64String ) : void
base64String string
return void

doPrintImageURL() public method

public doPrintImageURL ( string urlString ) : void
urlString string
return void

doPrintText() public method

public doPrintText ( List textLines ) : void
textLines List
return void

doRefundPayment() public method

public doRefundPayment ( string orderId, string paymentId, long amount, bool fullRefund ) : void
orderId string
paymentId string
amount long
fullRefund bool
return void

doResetDevice() public method

public doResetDevice ( ) : void
return void

doShowPaymentReceiptScreen() public method

public doShowPaymentReceiptScreen ( string orderId, string paymentId ) : void
orderId string
paymentId string
return void

doShowThankYouScreen() public method

public doShowThankYouScreen ( ) : void
return void

doShowWelcomeScreen() public method

public doShowWelcomeScreen ( ) : void
return void

doTerminalMessage() public method

public doTerminalMessage ( string text ) : void
text string
return void

doTipAdjustAuth() public method

public doTipAdjustAuth ( string orderId, string paymentId, long amount ) : void
orderId string
paymentId string
amount long
return void

doTxStart() public method

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

doVaultCard() public method

public doVaultCard ( int CardEntryMethods ) : void
CardEntryMethods int
return void

doVerifySignature() public method

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

doVoidPayment() public method

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

notifyObserversCapturePreAuthResponse() public method

public notifyObserversCapturePreAuthResponse ( CapturePreAuthResponseMessage carm ) : void
carm CapturePreAuthResponseMessage
return void

notifyObserversCashbackSelected() public method

public notifyObserversCashbackSelected ( CashbackSelectedMessage cbSelected ) : void
cbSelected CashbackSelectedMessage
return void

notifyObserversCloseoutResponse() public method

public notifyObserversCloseoutResponse ( CloseoutResponseMessage crm ) : void
crm CloseoutResponseMessage
return void

notifyObserversDiscoveryResponse() public method

public notifyObserversDiscoveryResponse ( DiscoveryResponseMessage drMessage ) : void
drMessage DiscoveryResponseMessage
return void

notifyObserversFinishCancel() public method

public notifyObserversFinishCancel ( ) : void
return void

notifyObserversFinishOk() public method

public notifyObserversFinishOk ( FinishOkMessage msg ) : void
msg FinishOkMessage
return void

notifyObserversKeyPressed() public method

public notifyObserversKeyPressed ( KeyPressMessage keyPress ) : void
keyPress KeyPressMessage
return void

notifyObserversPartialAuth() public method

public notifyObserversPartialAuth ( PartialAuthMessage partialAuth ) : void
partialAuth PartialAuthMessage
return void

notifyObserversPaymentVoided() public method

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

notifyObserversRefundPaymentResponse() public method

public notifyObserversRefundPaymentResponse ( RefundResponseMessage rrm ) : void
rrm RefundResponseMessage
return void

notifyObserversTipAdded() public method

public notifyObserversTipAdded ( TipAddedMessage tipAdded ) : void
tipAdded TipAddedMessage
return void

notifyObserversTipAdjusted() public method

public notifyObserversTipAdjusted ( TipAdjustResponseMessage tarm ) : void
tarm TipAdjustResponseMessage
return void

notifyObserversTxStartResponse() public method

public notifyObserversTxStartResponse ( TxStartResponseMessage txsrm ) : void
txsrm TxStartResponseMessage
return void

notifyObserversTxState() public method

public notifyObserversTxState ( TxStateMessage txStateMsg ) : void
txStateMsg TxStateMessage
return void

notifyObserversUiState() public method

public notifyObserversUiState ( UiStateMessage uiStateMsg ) : void
uiStateMsg UiStateMessage
return void

notifyObserversVaultCardResponse() public method

public notifyObserversVaultCardResponse ( VaultCardResponseMessage vcrm ) : void
vcrm VaultCardResponseMessage
return void

notifyObserversVerifySignature() public method

public notifyObserversVerifySignature ( VerifySignatureMessage verifySigMsg ) : void
verifySigMsg VerifySignatureMessage
return void

onDeviceConnected() public method

public onDeviceConnected ( CloverTransport transport ) : void
transport CloverTransport
return void

onDeviceDisconnected() public method

public onDeviceDisconnected ( CloverTransport transport ) : void
transport CloverTransport
return void

onDeviceError() public method

public onDeviceError ( int code, string message ) : void
code int
message string
return void

onDeviceReady() public method

public onDeviceReady ( CloverTransport device ) : void
device CloverTransport
return void

onMessage() public method

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.
return void