public abstract class CloverDevice
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.util.List<CloverDeviceObserver> |
deviceObservers |
protected java.lang.String |
packageName |
Constructor and Description |
---|
CloverDevice(java.lang.String packageName,
ICloverTransport transport,
java.lang.String applicationId,
java.lang.String remoteSourceSDK) |
Modifier and Type | Method and Description |
---|---|
void |
dispose() |
abstract void |
doAcceptPayment(com.clover.sdk.v3.payments.Payment payment) |
abstract void |
doCaptureAuth(java.lang.String paymentID,
long amount,
long tipAmount) |
abstract void |
doCheckBalance(int cardEntryMethods) |
abstract void |
doCloseout(boolean allowOpenTabs,
java.lang.String batchId) |
abstract void |
doCollectSignature(java.lang.String acknowledgementMessage) |
abstract void |
doDiscoveryRequest() |
abstract void |
doIncrementAuth(java.lang.String paymentID,
long amount) |
abstract void |
doKeyPress(com.clover.remote.KeyPress keyPress) |
abstract void |
doOpenCashDrawer(java.lang.String reason,
java.lang.String deviceId) |
abstract void |
doOrderUpdate(com.clover.remote.order.DisplayOrder order,
java.lang.Object orderOperation) |
abstract void |
doPaymentRefund(java.lang.String orderId,
java.lang.String paymentId,
long amount,
boolean fullRefund,
boolean disablePrinting,
boolean disableReceiptSelection,
java.util.Map<java.lang.String,java.lang.String> extras) |
abstract void |
doPrint(java.util.List<android.graphics.Bitmap> img,
java.util.List<java.lang.String> urls,
java.util.List<java.lang.String> text,
java.lang.String printRequestId,
java.lang.String deviceId) |
abstract void |
doPrintImage(android.graphics.Bitmap bitmap,
java.lang.String printRequestId,
java.lang.String printDeviceId) |
abstract void |
doPrintImage(java.lang.String url,
java.lang.String printRequestId,
java.lang.String printDeviceId) |
abstract void |
doPrintText(java.util.List<java.lang.String> textLines,
java.lang.String printRequestId,
java.lang.String printDeviceId) |
abstract void |
doReadCardData(com.clover.common2.payments.PayIntent payment) |
abstract void |
doRegisterForCustomerProvidedData(java.util.ArrayList<com.clover.sdk.v3.loyalty.LoyaltyDataConfig> configurations) |
abstract void |
doRejectPayment(com.clover.sdk.v3.payments.Payment payment,
com.clover.remote.Challenge challenge) |
abstract void |
doRequestTip(java.lang.Long tippableAmount,
com.clover.sdk.v3.merchant.TipSuggestion[] suggestions) |
abstract void |
doResetDevice() |
abstract void |
doRetrieveDeviceStatus(boolean sendLastResponse) |
abstract void |
doRetrievePayment(java.lang.String externalPaymentId) |
abstract void |
doRetrievePendingPayments() |
abstract void |
doRetrievePrinters(com.clover.sdk.v3.printer.PrintCategory category) |
abstract void |
doRetrievePrintJobStatus(java.lang.String requestId) |
abstract void |
doSendDebugLog(java.lang.String message) |
abstract void |
doSendMessageToActivity(java.lang.String actionId,
java.lang.String payload) |
abstract void |
doSetCustomerInfo(com.clover.sdk.v3.customers.CustomerInfo customerInfo) |
abstract void |
doShowPaymentReceiptScreen(java.lang.String orderId,
java.lang.String paymentId,
boolean disablePrinting) |
abstract void |
doShowReceiptScreen(java.lang.String orderId,
java.lang.String paymentId,
java.lang.String refundId,
java.lang.String creditId,
boolean disablePrinting) |
abstract void |
doShowThankYouScreen() |
abstract void |
doShowWelcomeScreen() |
abstract void |
doSignatureVerified(com.clover.sdk.v3.payments.Payment payment,
boolean verified) |
abstract void |
doStartActivity(java.lang.String action,
java.lang.String payload,
boolean nonBlocking) |
abstract void |
doTerminalMessage(java.lang.String text) |
abstract void |
doTipAdjustAuth(java.lang.String orderId,
java.lang.String paymentId,
long amount) |
abstract void |
doTxStart(com.clover.common2.payments.PayIntent payIntent,
com.clover.sdk.v3.order.Order order,
java.lang.String messageInfo) |
abstract void |
doVaultCard(int cardEntryMethods) |
abstract void |
doVoidPayment(com.clover.sdk.v3.payments.Payment payment,
com.clover.sdk.v3.order.VoidReason reason,
boolean disablePrinting,
boolean disableReceiptSelection,
java.util.Map<java.lang.String,java.lang.String> extras) |
abstract void |
doVoidPaymentRefund(java.lang.String orderId,
java.lang.String refundId,
boolean disablePrinting,
boolean disableReceiptSelection,
java.util.Map<java.lang.String,java.lang.String> extas) |
java.lang.String |
getApplicationId() |
java.lang.String |
getRemoteSourceSDK() |
void |
initializeConnection() |
protected void |
sendRemoteMessage(java.lang.String message) |
void |
setSupportsAcks(boolean supportsAcks) |
void |
setSupportsVoidPaymentResponse(boolean supportsVoidPaymentResponse) |
void |
subscribe(CloverDeviceObserver observer) |
protected boolean |
supportsAcks() |
protected boolean |
supportsVoidPaymentResponse() |
void |
unsubscribe(CloverDeviceObserver observer) |
protected final java.util.List<CloverDeviceObserver> deviceObservers
protected final java.lang.String packageName
public CloverDevice(java.lang.String packageName, ICloverTransport transport, java.lang.String applicationId, java.lang.String remoteSourceSDK)
public void subscribe(CloverDeviceObserver observer)
public void unsubscribe(CloverDeviceObserver observer)
public java.lang.String getApplicationId()
public java.lang.String getRemoteSourceSDK()
public void setSupportsAcks(boolean supportsAcks)
protected boolean supportsAcks()
public void setSupportsVoidPaymentResponse(boolean supportsVoidPaymentResponse)
protected boolean supportsVoidPaymentResponse()
public void initializeConnection()
public void dispose()
protected void sendRemoteMessage(java.lang.String message)
public abstract void doDiscoveryRequest()
public abstract void doTxStart(com.clover.common2.payments.PayIntent payIntent, com.clover.sdk.v3.order.Order order, java.lang.String messageInfo)
public abstract void doKeyPress(com.clover.remote.KeyPress keyPress)
public abstract void doVoidPayment(com.clover.sdk.v3.payments.Payment payment, com.clover.sdk.v3.order.VoidReason reason, boolean disablePrinting, boolean disableReceiptSelection, java.util.Map<java.lang.String,java.lang.String> extras)
public abstract void doVoidPaymentRefund(java.lang.String orderId, java.lang.String refundId, boolean disablePrinting, boolean disableReceiptSelection, java.util.Map<java.lang.String,java.lang.String> extas)
public abstract void doCaptureAuth(java.lang.String paymentID, long amount, long tipAmount)
public abstract void doIncrementAuth(java.lang.String paymentID, long amount)
public abstract void doOrderUpdate(com.clover.remote.order.DisplayOrder order, java.lang.Object orderOperation)
public abstract void doSignatureVerified(com.clover.sdk.v3.payments.Payment payment, boolean verified)
public abstract void doTerminalMessage(java.lang.String text)
public abstract void doSendDebugLog(java.lang.String message)
public abstract void doPaymentRefund(java.lang.String orderId, java.lang.String paymentId, long amount, boolean fullRefund, boolean disablePrinting, boolean disableReceiptSelection, java.util.Map<java.lang.String,java.lang.String> extras)
public abstract void doTipAdjustAuth(java.lang.String orderId, java.lang.String paymentId, long amount)
public abstract void doPrintText(java.util.List<java.lang.String> textLines, java.lang.String printRequestId, java.lang.String printDeviceId)
public abstract void doShowWelcomeScreen()
public abstract void doShowPaymentReceiptScreen(java.lang.String orderId, java.lang.String paymentId, boolean disablePrinting)
public abstract void doShowReceiptScreen(java.lang.String orderId, java.lang.String paymentId, java.lang.String refundId, java.lang.String creditId, boolean disablePrinting)
public abstract void doShowThankYouScreen()
public abstract void doOpenCashDrawer(java.lang.String reason, java.lang.String deviceId)
public abstract void doPrintImage(android.graphics.Bitmap bitmap, java.lang.String printRequestId, java.lang.String printDeviceId)
public abstract void doPrintImage(java.lang.String url, java.lang.String printRequestId, java.lang.String printDeviceId)
public abstract void doPrint(java.util.List<android.graphics.Bitmap> img, java.util.List<java.lang.String> urls, java.util.List<java.lang.String> text, java.lang.String printRequestId, java.lang.String deviceId)
public abstract void doRetrievePrinters(com.clover.sdk.v3.printer.PrintCategory category)
public abstract void doRetrievePrintJobStatus(java.lang.String requestId)
public abstract void doCloseout(boolean allowOpenTabs, java.lang.String batchId)
public abstract void doVaultCard(int cardEntryMethods)
public abstract void doResetDevice()
public abstract void doAcceptPayment(com.clover.sdk.v3.payments.Payment payment)
public abstract void doRejectPayment(com.clover.sdk.v3.payments.Payment payment, com.clover.remote.Challenge challenge)
public abstract void doRetrievePendingPayments()
public abstract void doReadCardData(com.clover.common2.payments.PayIntent payment)
public abstract void doSendMessageToActivity(java.lang.String actionId, java.lang.String payload)
public abstract void doStartActivity(java.lang.String action, java.lang.String payload, boolean nonBlocking)
public abstract void doRetrieveDeviceStatus(boolean sendLastResponse)
public abstract void doRetrievePayment(java.lang.String externalPaymentId)
public abstract void doRegisterForCustomerProvidedData(java.util.ArrayList<com.clover.sdk.v3.loyalty.LoyaltyDataConfig> configurations)
public abstract void doSetCustomerInfo(com.clover.sdk.v3.customers.CustomerInfo customerInfo)
public abstract void doCheckBalance(int cardEntryMethods)
public abstract void doCollectSignature(java.lang.String acknowledgementMessage)
public abstract void doRequestTip(java.lang.Long tippableAmount, com.clover.sdk.v3.merchant.TipSuggestion[] suggestions)