Package com.clover.remote.client.device
Class CloverDevice
java.lang.Object
com.clover.remote.client.device.CloverDevice
- Direct Known Subclasses:
DefaultCloverDevice
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final List<CloverDeviceObserver>protected final String -
Constructor Summary
ConstructorsConstructorDescriptionCloverDevice(String packageName, ICloverTransport transport, String applicationId, String remoteSourceSDK) -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()abstract voiddoAcceptPayment(com.clover.sdk.v3.payments.Payment payment) abstract voiddoCaptureAuth(String paymentID, long amount, long tipAmount) abstract voiddoCheckBalance(int cardEntryMethods) abstract voiddoCloseout(boolean allowOpenTabs, String batchId) abstract voiddoCollectSignature(String acknowledgementMessage) abstract voidabstract voiddoIncrementAuth(String paymentID, long amount) abstract voiddoKeyPress(com.clover.remote.KeyPress keyPress) abstract voiddoOpenCashDrawer(String reason, String deviceId) abstract voiddoOrderUpdate(com.clover.remote.order.DisplayOrder order, Object orderOperation) abstract voiddoPaymentRefund(String orderId, String paymentId, long amount, boolean fullRefund, boolean disablePrinting, boolean disableReceiptSelection, Map<String, String> extras) abstract voiddoPrint(List<android.graphics.Bitmap> img, List<String> urls, List<String> text, String printRequestId, String deviceId) abstract voiddoPrintImage(android.graphics.Bitmap bitmap, String printRequestId, String printDeviceId) abstract voiddoPrintImage(String url, String printRequestId, String printDeviceId) abstract voiddoPrintText(List<String> textLines, String printRequestId, String printDeviceId) abstract voiddoReadCardData(com.clover.common2.payments.PayIntent payment) abstract voiddoRegisterForCustomerProvidedData(ArrayList<com.clover.sdk.v3.loyalty.LoyaltyDataConfig> configurations) abstract voiddoRejectPayment(com.clover.sdk.v3.payments.Payment payment, com.clover.remote.Challenge challenge) abstract voiddoRequestTip(Long tippableAmount, com.clover.sdk.v3.merchant.TipSuggestion[] suggestions) abstract voidabstract voiddoRetrieveDeviceStatus(boolean sendLastResponse) abstract voiddoRetrievePayment(String externalPaymentId) abstract voidabstract voiddoRetrievePrinters(com.clover.sdk.v3.printer.PrintCategory category) abstract voiddoRetrievePrintJobStatus(String requestId) abstract voiddoSendDebugLog(String message) abstract voiddoSendMessageToActivity(String actionId, String payload) abstract voiddoSetCustomerInfo(com.clover.sdk.v3.customers.CustomerInfo customerInfo) abstract voiddoShowPaymentReceiptScreen(String orderId, String paymentId, boolean disablePrinting) abstract voiddoShowReceiptScreen(String orderId, String paymentId, String refundId, String creditId, boolean disablePrinting) abstract voidabstract voidabstract voiddoSignatureVerified(com.clover.sdk.v3.payments.Payment payment, boolean verified) abstract voiddoStartActivity(String action, String payload, boolean nonBlocking) abstract voiddoTerminalMessage(String text) abstract voiddoTipAdjustAuth(String orderId, String paymentId, long amount) abstract voiddoTxStart(com.clover.common2.payments.PayIntent payIntent, com.clover.sdk.v3.order.Order order, String messageInfo) abstract voiddoVaultCard(int cardEntryMethods) abstract voiddoVoidPayment(com.clover.sdk.v3.payments.Payment payment, com.clover.sdk.v3.order.VoidReason reason, boolean disablePrinting, boolean disableReceiptSelection, Map<String, String> extras) abstract voiddoVoidPaymentRefund(String orderId, String refundId, boolean disablePrinting, boolean disableReceiptSelection, Map<String, String> extas) voidprotected voidsendRemoteMessage(String message) voidsetSupportsAcks(boolean supportsAcks) voidsetSupportsVoidPaymentResponse(boolean supportsVoidPaymentResponse) voidsubscribe(CloverDeviceObserver observer) protected booleanprotected booleanvoidunsubscribe(CloverDeviceObserver observer)
-
Field Details
-
deviceObservers
-
packageName
-
-
Constructor Details
-
CloverDevice
public CloverDevice(String packageName, ICloverTransport transport, String applicationId, String remoteSourceSDK)
-
-
Method Details
-
subscribe
-
unsubscribe
-
getApplicationId
-
getRemoteSourceSDK
-
setSupportsAcks
public void setSupportsAcks(boolean supportsAcks) -
supportsAcks
protected boolean supportsAcks() -
setSupportsVoidPaymentResponse
public void setSupportsVoidPaymentResponse(boolean supportsVoidPaymentResponse) -
supportsVoidPaymentResponse
protected boolean supportsVoidPaymentResponse() -
initializeConnection
public void initializeConnection() -
dispose
public void dispose() -
sendRemoteMessage
-
doDiscoveryRequest
public abstract void doDiscoveryRequest() -
doTxStart
public abstract void doTxStart(com.clover.common2.payments.PayIntent payIntent, com.clover.sdk.v3.order.Order order, String messageInfo) -
doKeyPress
public abstract void doKeyPress(com.clover.remote.KeyPress keyPress) -
doVoidPayment
-
doVoidPaymentRefund
-
doCaptureAuth
-
doIncrementAuth
-
doOrderUpdate
public abstract void doOrderUpdate(com.clover.remote.order.DisplayOrder order, Object orderOperation) -
doSignatureVerified
public abstract void doSignatureVerified(com.clover.sdk.v3.payments.Payment payment, boolean verified) -
doTerminalMessage
-
doSendDebugLog
-
doPaymentRefund
-
doTipAdjustAuth
-
doPrintText
-
doShowWelcomeScreen
public abstract void doShowWelcomeScreen() -
doShowPaymentReceiptScreen
-
doShowReceiptScreen
-
doShowThankYouScreen
public abstract void doShowThankYouScreen() -
doOpenCashDrawer
-
doPrintImage
-
doPrintImage
-
doPrint
-
doRetrievePrinters
public abstract void doRetrievePrinters(com.clover.sdk.v3.printer.PrintCategory category) -
doRetrievePrintJobStatus
-
doCloseout
-
doVaultCard
public abstract void doVaultCard(int cardEntryMethods) -
doResetDevice
public abstract void doResetDevice() -
doAcceptPayment
public abstract void doAcceptPayment(com.clover.sdk.v3.payments.Payment payment) -
doRejectPayment
public abstract void doRejectPayment(com.clover.sdk.v3.payments.Payment payment, com.clover.remote.Challenge challenge) -
doRetrievePendingPayments
public abstract void doRetrievePendingPayments() -
doReadCardData
public abstract void doReadCardData(com.clover.common2.payments.PayIntent payment) -
doSendMessageToActivity
-
doStartActivity
-
doRetrieveDeviceStatus
public abstract void doRetrieveDeviceStatus(boolean sendLastResponse) -
doRetrievePayment
-
doRegisterForCustomerProvidedData
public abstract void doRegisterForCustomerProvidedData(ArrayList<com.clover.sdk.v3.loyalty.LoyaltyDataConfig> configurations) -
doSetCustomerInfo
public abstract void doSetCustomerInfo(com.clover.sdk.v3.customers.CustomerInfo customerInfo) -
doCheckBalance
public abstract void doCheckBalance(int cardEntryMethods) -
doCollectSignature
-
doRequestTip
public abstract void doRequestTip(Long tippableAmount, com.clover.sdk.v3.merchant.TipSuggestion[] suggestions)
-