public abstract class DefaultCloverConnectorListener extends java.lang.Object implements ICloverConnectorListener
Modifier and Type | Field and Description |
---|---|
protected ICloverConnector |
cloverConnector |
protected MerchantInfo |
merchantInfo |
Constructor and Description |
---|
DefaultCloverConnectorListener(ICloverConnector cloverConnector) |
Modifier and Type | Method and Description |
---|---|
boolean |
isReady() |
void |
onAuthResponse(AuthResponse response)
Called in response to an auth request
|
void |
onCapturePreAuthResponse(CapturePreAuthResponse response)
Called in response to a capture of a pre auth payment
|
void |
onCheckBalanceResponse(CheckBalanceResponse response)
Called in response to a CheckBalanceRequest
|
void |
onCloseoutResponse(CloseoutResponse response)
Called in response to a closeout being processed
|
void |
onCustomActivityResponse(CustomActivityResponse response)
Called when a custom activity finishes
|
void |
onCustomerProvidedData(CustomerProvidedDataEvent event)
Called when customer information is provided from a loyalty service.
|
void |
onDeviceActivityEnd(CloverDeviceEvent deviceEvent)
Called when a Clover device activity ends.
|
void |
onDeviceActivityStart(CloverDeviceEvent deviceEvent)
Called when a Clover device activity starts.
|
void |
onDeviceConnected()
Called when the Clover device is connected, but not ready to communicate
|
void |
onDeviceDisconnected()
Called when the Clover device is disconnected
|
void |
onDeviceError(CloverDeviceErrorEvent deviceErrorEvent)
Called when a Clover device error event is encountered
|
void |
onDeviceReady(MerchantInfo merchantInfo)
Called when the Clover device is ready to communicate
|
void |
onDisplayReceiptOptionsResponse(DisplayReceiptOptionsResponse response)
Called in response to a DisplayReceiptOptionsRequest
|
void |
onIncrementPreAuthResponse(IncrementPreauthResponse response)
Called in response to an `incrementPreAuth()` call on the CloverConnector.
|
void |
onInvalidStateTransitionResponse(InvalidStateTransitionResponse response)
Called in response to a request that results in an invalid kiosk flow transition
|
void |
onManualRefundResponse(ManualRefundResponse response)
Called in response to a manual refund request
|
void |
onMessageFromActivity(MessageFromActivity message)
Called when a message is sent from a custom activity
|
void |
onPreAuthResponse(PreAuthResponse response)
Called in response to a pre auth request
|
void |
onPrintJobStatusResponse(PrintJobStatusResponse response)
Called to update the status of a print job
|
void |
onPrintManualRefundDeclineReceipt(PrintManualRefundDeclineReceiptMessage pcdrm)
Will only be called if disablePrinting = true on the Sale, Auth, PreAuth or ManualRefund Request
Called when a user requests to print a receipt for a declined ManualRefund
|
void |
onPrintManualRefundReceipt(PrintManualRefundReceiptMessage pcm)
Will only be called if disablePrinting = true on the Sale, Auth, PreAuth or ManualRefund Request
Called when a user requests to print a receipt for a ManualRefund
|
void |
onPrintPaymentDeclineReceipt(PrintPaymentDeclineReceiptMessage ppdrm)
Will only be called if disablePrinting = true on the Sale, Auth, PreAuth or ManualRefund Request
Called when a user requests to print a receipt for a declined payment
|
void |
onPrintPaymentMerchantCopyReceipt(PrintPaymentMerchantCopyReceiptMessage ppmcrm)
Will only be called if disablePrinting = true on the Sale, Auth, PreAuth or ManualRefund Request
Called when a user requests to print a merchant copy of a payment receipt
|
void |
onPrintPaymentReceipt(PrintPaymentReceiptMessage pprm)
Will only be called if disablePrinting = true on the Sale, Auth, PreAuth or ManualRefund Request
Called when a user requests to print a receipt for a payment
|
void |
onPrintRefundPaymentReceipt(PrintRefundPaymentReceiptMessage pprrm)
Will only be called if disablePrinting = true on the Sale, Auth, PreAuth or ManualRefund Request
Called when a user requests to print a receipt for a payment refund
|
void |
onReadCardDataResponse(ReadCardDataResponse response)
Called in response to a readCardData(...) request.
|
void |
onRefundPaymentResponse(RefundPaymentResponse response)
Called in response to a refund payment request
|
void |
onRequestSignatureResponse(SignatureResponse response)
Called in response to a RequestSignatureRequest
|
void |
onRequestTipResponse(TipResponse response)
Called in response to a TipRequest
|
void |
onResetDeviceResponse(ResetDeviceResponse response)
Called in response to a ResetDevice request
|
void |
onRetrieveDeviceStatusResponse(RetrieveDeviceStatusResponse response)
Called in response to a RetrieveDeviceState request
|
void |
onRetrievePaymentResponse(RetrievePaymentResponse response)
Called in response to a RetrievePaymentRequest
|
void |
onRetrievePendingPaymentsResponse(RetrievePendingPaymentsResponse retrievePendingPaymentResponse)
Called in response to a retrievePendingPayment(...) request.
|
void |
onRetrievePrintersResponse(RetrievePrintersResponse response)
Called in response to a retrievePrinters() request
|
void |
onSaleResponse(SaleResponse response)
Called in response to a sale request
|
void |
onTipAdded(com.clover.remote.message.TipAddedMessage message)
Called when a customer selects a tip amount on the Clover device screen
|
void |
onTipAdjustAuthResponse(TipAdjustAuthResponse response)
Called in response to a tip adjust of an auth payment
|
void |
onVaultCardResponse(VaultCardResponse response)
Called in response to a vault card request
|
void |
onVerifySignatureRequest(VerifySignatureRequest request)
Called when the Clover device requires a signature to be verified
|
void |
onVoidPaymentRefundResponse(VoidPaymentRefundResponse response)
Called in response to a void payment refund request
|
void |
onVoidPaymentResponse(VoidPaymentResponse response)
Called in response to a void payment request
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onConfirmPaymentRequest
protected MerchantInfo merchantInfo
protected ICloverConnector cloverConnector
public DefaultCloverConnectorListener(ICloverConnector cloverConnector)
public boolean isReady()
public void onDeviceDisconnected()
ICloverConnectorListener
onDeviceDisconnected
in interface ICloverConnectorListener
public void onDeviceConnected()
ICloverConnectorListener
onDeviceConnected
in interface ICloverConnectorListener
public void onDeviceReady(MerchantInfo merchantInfo)
ICloverConnectorListener
onDeviceReady
in interface ICloverConnectorListener
merchantInfo
- The merchant info for the devicepublic void onDeviceActivityStart(CloverDeviceEvent deviceEvent)
ICloverConnectorListener
onDeviceActivityStart
in interface ICloverConnectorListener
deviceEvent
- The device event.public void onDeviceActivityEnd(CloverDeviceEvent deviceEvent)
ICloverConnectorListener
onDeviceActivityEnd
in interface ICloverConnectorListener
deviceEvent
- The device event.public void onDeviceError(CloverDeviceErrorEvent deviceErrorEvent)
ICloverConnectorListener
onDeviceError
in interface ICloverConnectorListener
deviceErrorEvent
- The device error event.public void onAuthResponse(AuthResponse response)
ICloverConnectorListener
onAuthResponse
in interface ICloverConnectorListener
response
- The responsepublic void onTipAdjustAuthResponse(TipAdjustAuthResponse response)
ICloverConnectorListener
onTipAdjustAuthResponse
in interface ICloverConnectorListener
response
- The responsepublic void onCapturePreAuthResponse(CapturePreAuthResponse response)
ICloverConnectorListener
onCapturePreAuthResponse
in interface ICloverConnectorListener
response
- The responsepublic void onIncrementPreAuthResponse(IncrementPreauthResponse response)
ICloverConnectorListener
onIncrementPreAuthResponse
in interface ICloverConnectorListener
public void onVerifySignatureRequest(VerifySignatureRequest request)
ICloverConnectorListener
onVerifySignatureRequest
in interface ICloverConnectorListener
request
- The requestpublic void onCloseoutResponse(CloseoutResponse response)
ICloverConnectorListener
onCloseoutResponse
in interface ICloverConnectorListener
response
- The responsepublic void onSaleResponse(SaleResponse response)
ICloverConnectorListener
onSaleResponse
in interface ICloverConnectorListener
response
- The responsepublic void onPreAuthResponse(PreAuthResponse response)
ICloverConnectorListener
onPreAuthResponse
in interface ICloverConnectorListener
response
- The responsepublic void onManualRefundResponse(ManualRefundResponse response)
ICloverConnectorListener
onManualRefundResponse
in interface ICloverConnectorListener
response
- The responsepublic void onRefundPaymentResponse(RefundPaymentResponse response)
ICloverConnectorListener
onRefundPaymentResponse
in interface ICloverConnectorListener
response
- The responsepublic void onTipAdded(com.clover.remote.message.TipAddedMessage message)
ICloverConnectorListener
onTipAdded
in interface ICloverConnectorListener
message
- The messagepublic void onVoidPaymentResponse(VoidPaymentResponse response)
ICloverConnectorListener
onVoidPaymentResponse
in interface ICloverConnectorListener
response
- The responsepublic void onVoidPaymentRefundResponse(VoidPaymentRefundResponse response)
ICloverConnectorListener
onVoidPaymentRefundResponse
in interface ICloverConnectorListener
response
- The responsepublic void onVaultCardResponse(VaultCardResponse response)
ICloverConnectorListener
onVaultCardResponse
in interface ICloverConnectorListener
response
- The responsepublic void onPrintManualRefundReceipt(PrintManualRefundReceiptMessage pcm)
ICloverConnectorListener
onPrintManualRefundReceipt
in interface ICloverConnectorListener
pcm
- The messagepublic void onPrintManualRefundDeclineReceipt(PrintManualRefundDeclineReceiptMessage pcdrm)
ICloverConnectorListener
onPrintManualRefundDeclineReceipt
in interface ICloverConnectorListener
pcdrm
- The messagepublic void onPrintPaymentReceipt(PrintPaymentReceiptMessage pprm)
ICloverConnectorListener
onPrintPaymentReceipt
in interface ICloverConnectorListener
pprm
- The messagepublic void onPrintPaymentDeclineReceipt(PrintPaymentDeclineReceiptMessage ppdrm)
ICloverConnectorListener
onPrintPaymentDeclineReceipt
in interface ICloverConnectorListener
ppdrm
- The messagepublic void onPrintPaymentMerchantCopyReceipt(PrintPaymentMerchantCopyReceiptMessage ppmcrm)
ICloverConnectorListener
onPrintPaymentMerchantCopyReceipt
in interface ICloverConnectorListener
ppmcrm
- The messagepublic void onPrintRefundPaymentReceipt(PrintRefundPaymentReceiptMessage pprrm)
ICloverConnectorListener
onPrintRefundPaymentReceipt
in interface ICloverConnectorListener
pprrm
- The messagepublic void onRetrievePendingPaymentsResponse(RetrievePendingPaymentsResponse retrievePendingPaymentResponse)
ICloverConnectorListener
onRetrievePendingPaymentsResponse
in interface ICloverConnectorListener
retrievePendingPaymentResponse
- The responsepublic void onReadCardDataResponse(ReadCardDataResponse response)
ICloverConnectorListener
onReadCardDataResponse
in interface ICloverConnectorListener
response
- The responsepublic void onMessageFromActivity(MessageFromActivity message)
ICloverConnectorListener
onMessageFromActivity
in interface ICloverConnectorListener
message
- The messagepublic void onCustomActivityResponse(CustomActivityResponse response)
ICloverConnectorListener
onCustomActivityResponse
in interface ICloverConnectorListener
response
- The responsepublic void onRetrieveDeviceStatusResponse(RetrieveDeviceStatusResponse response)
ICloverConnectorListener
onRetrieveDeviceStatusResponse
in interface ICloverConnectorListener
response
- The responsepublic void onInvalidStateTransitionResponse(InvalidStateTransitionResponse response)
ICloverConnectorListener
onInvalidStateTransitionResponse
in interface ICloverConnectorListener
response
- The responsepublic void onResetDeviceResponse(ResetDeviceResponse response)
ICloverConnectorListener
onResetDeviceResponse
in interface ICloverConnectorListener
response
- The responsepublic void onRetrievePaymentResponse(RetrievePaymentResponse response)
ICloverConnectorListener
onRetrievePaymentResponse
in interface ICloverConnectorListener
response
- The responsepublic void onRetrievePrintersResponse(RetrievePrintersResponse response)
ICloverConnectorListener
onRetrievePrintersResponse
in interface ICloverConnectorListener
response
- Response object containing an array of the printers being passed backpublic void onPrintJobStatusResponse(PrintJobStatusResponse response)
ICloverConnectorListener
onPrintJobStatusResponse
in interface ICloverConnectorListener
response
- The response contains the print job identifier and that job's statuspublic void onCustomerProvidedData(CustomerProvidedDataEvent event)
ICloverConnectorListener
onCustomerProvidedData
in interface ICloverConnectorListener
event
- The eventpublic void onDisplayReceiptOptionsResponse(DisplayReceiptOptionsResponse response)
ICloverConnectorListener
onDisplayReceiptOptionsResponse
in interface ICloverConnectorListener
public void onCheckBalanceResponse(CheckBalanceResponse response)
ICloverConnectorListener
onCheckBalanceResponse
in interface ICloverConnectorListener
public void onRequestSignatureResponse(SignatureResponse response)
ICloverConnectorListener
onRequestSignatureResponse
in interface ICloverConnectorListener
public void onRequestTipResponse(TipResponse response)
ICloverConnectorListener
onRequestTipResponse
in interface ICloverConnectorListener