Package com.clover.sdk.v3.order
Interface IOrderService
-
- All Superinterfaces:
IInterface
- All Known Implementing Classes:
IOrderService.Default
,IOrderService.Stub
public interface IOrderService extends IInterface
Deprecated.Please use theIOrderServiceV3_1
viaOrderConnector
instead, it offers all the same functionality but is designed to handle large orders (over 1MB) that cause this API to fail. New methods may not be added to this class going forward.An interface for interacting with the Clover order service. The order service is a bound AIDL service. Bind to this service as follows:Intent serviceIntent = new Intent(OrderIntent.ACTION_ORDER_SERVICE_V3); serviceIntent.putExtra(Intents.EXTRA_ACCOUNT, CloverAccount.getAccount(context)); serviceIntent.putExtra(Intents.EXTRA_VERSION, 3); context.bindService(serviceIntent);
You may also interact with this service through the
OrderConnector
class, which handles binding and asynchronous invocation of service methods.This service is backed by a local database which is synced to cloud. Thus changes made by calling methods here will be reflected on all of a merchant's devices and on the web.
Most methods require ORDERS_R and/or ORDERS_W permission.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
IOrderService.Default
Deprecated.Default implementation for IOrderService.static class
IOrderService.Stub
Deprecated.Local-side IPC implementation stub class.
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description Authorization
addAuthorization(String orderId, Authorization authorization, ResultStatus status)
Deprecated.Not available to non-Clover apps.Order
addBatchLineItemDiscounts(String orderId, List<String> lineItemIds, List<Discount> discounts, ResultStatus status)
Deprecated.Order
addBatchLineItemModifications(String orderId, List<String> lineItemIds, Modifier modifier, int quantity, ResultStatus status)
Deprecated.Credit
addCredit(String orderId, Credit payment, ResultStatus status)
Deprecated.Not available to non-Clover apps.CreditRefund
addCreditRefund(String orderId, CreditRefund creditRefund, ResultStatus status)
Deprecated.Not available to non-Clover apps.LineItem
addCustomLineItem(String orderId, LineItem lineItem, boolean isTaxable, ResultStatus status)
Deprecated.Add a custom line item to an order.Order
addDiscount(String orderId, Discount discount, ResultStatus status)
Deprecated.Discount
addDiscount2(String orderId, Discount discount, ResultStatus status)
Deprecated.Just likeaddDiscount(java.lang.String, com.clover.sdk.v3.order.Discount, com.clover.sdk.v1.ResultStatus)
but returns aDiscount
instead of anOrder
.LineItem
addFixedPriceLineItem(String orderId, String itemId, String binName, String userData, ResultStatus status)
Deprecated.Add a fixed-price line item to an order.Order
addLineItemDiscount(String orderId, String lineItemId, Discount discount, ResultStatus status)
Deprecated.Discount
addLineItemDiscount2(String orderId, String lineItemId, Discount discount, ResultStatus status)
Deprecated.Just likeaddLineItemDiscount(java.lang.String, java.lang.String, com.clover.sdk.v3.order.Discount, com.clover.sdk.v1.ResultStatus)
but returns aDiscount
instead of anOrder
.Order
addLineItemModification(String orderId, String lineItemId, Modifier modifier, ResultStatus status)
Deprecated.void
addOnOrderUpdatedListener(IOnOrderUpdateListener listener)
Deprecated.void
addOnOrderUpdatedListener2(IOnOrderUpdateListener2 listener)
Deprecated.Order
addPayment(String orderId, Payment payment, List<LineItem> lineItems, ResultStatus status)
Order
addPayment2(String orderId, Payment payment, List<LineItem> lineItems, ResultStatus status)
Deprecated.Not available to non-Clover apps.LineItem
addPerUnitLineItem(String orderId, String itemId, int unitQuantity, String binName, String userData, ResultStatus status)
Deprecated.Add a per-unit line item to an order.Refund
addRefund(String orderId, Refund payment, ResultStatus status)
Deprecated.Not available to non-Clover apps.Refund
addRefundOffline(String orderId, Refund payment, ResultStatus status)
Deprecated.Not available to non-Clover apps.Order
addServiceCharge(String orderId, String serviceChargeId, ResultStatus status)
Deprecated.Add aServiceCharge
to an order.Order
addTip(String orderId, String paymentId, long amount, boolean online, ResultStatus status)
Deprecated.Not available to non-Clover apps.LineItem
addVariablePriceLineItem(String orderId, String itemId, long price, String binName, String userData, ResultStatus status)
Deprecated.Add a variably-priced line item to the order.Order
captureAuthorization(String orderId, Authorization authorization, ResultStatus status)
Deprecated.Not available to non-Clover apps.List<LineItem>
copyLineItems(String sourceOrderId, String destinationOrderId, List<String> lineItemIds, ResultStatus status)
Deprecated.Map
createLineItemsFrom(String sourceOrderId, String destinationOrderId, List<String> lineItemIds, ResultStatus status)
Deprecated.Map
createLineItemsFrom2(String sourceOrderId, String destinationOrderId, List<String> lineItemIds, boolean copyPrinted, boolean broadcastLineItems, ResultStatus status)
Deprecated.Just likecreateLineItemsFrom(java.lang.String, java.lang.String, java.util.List<java.lang.String>, com.clover.sdk.v1.ResultStatus)
but additionally when copyPrinted is set to true it will copy print flags on line items (normally did not), and when broadcastLineItems is set to true it will broadcastLineItems (normally did).Order
createOrder(Order order, ResultStatus status)
Deprecated.Create a newOrder
.Order
deleteCredit(String orderId, String creditId, ResultStatus status)
Deprecated.Not implemented.Order
deleteCreditRefund(String orderId, String creditRefundId, ResultStatus status)
Deprecated.Not available to non-Clover apps.Order
deleteDiscounts(String orderId, List<String> discountIds, ResultStatus status)
Deprecated.Order
deleteLineItemDiscounts(String orderId, String lineItemId, List<String> discountIds, ResultStatus status)
Deprecated.Order
deleteLineItemModifications(String orderId, String lineItemId, List<String> modificationIds, ResultStatus status)
Deprecated.Order
deleteLineItems(String orderId, List<String> lineItemIds, ResultStatus status)
Deprecated.boolean
deleteOrder(String orderId, ResultStatus status)
Deprecated.Delete anOrder
.boolean
deleteOrder2(String orderId, boolean allowDeleteIfLineItemPrinted, ResultStatus status)
Deprecated.Just likedeleteOrder(java.lang.String, com.clover.sdk.v1.ResultStatus)
but additionally when allowDeleteIfLineItemPrinted is true it will delete the order when line items are printed (normally did not).boolean
deleteOrder3(String orderId, boolean deleteOnline, boolean allowDeleteIfLineItemPrinted, boolean allowDeleteIfNoEmployeePermission, ResultStatus status)
Deprecated.Delete anOrder
.boolean
deleteOrderOnline(String orderId, ResultStatus status)
Deprecated.Delete anOrder
synchronously on the server.boolean
deleteOrderOnline2(String orderId, boolean usePermissionForOrderDeletions, ResultStatus status)
Order
deleteRefund(String orderId, String refundId, ResultStatus status)
Deprecated.Not implemented.Order
deleteServiceCharge(String orderId, String serviceChargeId, ResultStatus status)
Deprecated.Add aServiceCharge
to an order.LineItem
exchangeItem(String orderId, String oldLineItemId, String itemId, String binName, String userData, ResultStatus status)
Deprecated.boolean
fire(String sourceOrderId, ResultStatus status)
Deprecated.Print line items to the kitchen or order printer quickly.boolean
fire2(String sourceOrderid, boolean requireAllItems, ResultStatus status)
Deprecated.Just likefire(java.lang.String, com.clover.sdk.v1.ResultStatus)
but additionally when requireAllItems is set to true it will not print and return false if some items on the order haven't been printed yet and would not be printed because they are not associated with an order printer.List<String>
getLineItemsToFire(String orderId, ResultStatus status)
Deprecated.Get list of lineitem ids for the order that has printtag to print.Order
getOrder(String orderId, ResultStatus status)
Deprecated.Get theOrder
for the given ID.List<Order>
getOrders(List<String> orderIds, ResultStatus status)
Deprecated.List<Payment>
getPendingPayments(ResultStatus status)
Deprecated.This pulls pending payments from the local device dbPayment
pay(String orderId, PaymentRequest paymentRequest, boolean isAllowOffline, String note, ResultStatus status)
Deprecated.Not available to non-Clover apps.boolean
refire(String orderId, ResultStatus status)
Deprecated.Reprint all lineitems that has a printtag even if they are printed.Refund
refund(String orderId, Refund payment, ResultStatus status)
Deprecated.Not available to non-Clover apps.void
removeOnOrderUpdatedListener(IOnOrderUpdateListener listener)
Deprecated.void
removeOnOrderUpdatedListener2(IOnOrderUpdateListener2 listener)
Deprecated.Order
removePayment(String orderId, String paymentId, ResultStatus status)
Deprecated.Not available to non-Clover apps.Order
setLineItemNote(String orderId, String lineItemId, String note, ResultStatus status)
Deprecated.List<LineItem>
updateLineItems(String orderId, List<LineItem> lineItemIds, ResultStatus status)
Deprecated.Order
updateOrder(Order order, ResultStatus status)
Deprecated.Update anOrder
.Payment
updatePayment(String orderId, Payment payment, ResultStatus status)
Deprecated.Not available to non-Clover apps.CreditRefund
vaultedCreditRefund(String orderId, String creditId, ResultStatus status)
Deprecated.Order
voidPayment(String orderId, String paymentId, ResultStatus status)
Order
voidPayment2(String orderId, String paymentId, String iccContainer, VoidReason reason, String source, ResultStatus status)
Deprecated.Not available to non-Clover apps.Order
voidPaymentCardPresent(String orderId, String paymentId, String iccContainer, PaymentRequestCardDetails card, TransactionInfo transactionInfo, VoidReason reason, String source, ResultStatus status)
Deprecated.Card present void Not available to non-Clover apps.Order
voidPaymentWithCard(String orderId, String paymentId, String iccContainer, PaymentRequestCardDetails card, VoidReason reason, String source, ResultStatus status)
Deprecated.Not available to non-Clover apps.-
Methods inherited from interface android.os.IInterface
asBinder
-
-
-
-
Method Detail
-
addOnOrderUpdatedListener
void addOnOrderUpdatedListener(IOnOrderUpdateListener listener) throws RemoteException
Deprecated.- Throws:
RemoteException
-
removeOnOrderUpdatedListener
void removeOnOrderUpdatedListener(IOnOrderUpdateListener listener) throws RemoteException
Deprecated.- Throws:
RemoteException
-
getOrder
Order getOrder(String orderId, ResultStatus status) throws RemoteException
Deprecated.Get theOrder
for the given ID. If the order is not synchronized on this device, the order is fetched from the server.- Parameters:
orderId
- The ID of theOrder
to retrieve.- Returns:
- The
Order
s corresponding to the provided ID, or {@link null} if the order does not exists locally and it cannot be fetched from the server. Note that this may be because the server is not reachable or because the order for the given ID does not exist. - Throws:
RemoteException
-
getOrders
List<Order> getOrders(List<String> orderIds, ResultStatus status) throws RemoteException
Deprecated.- Throws:
RemoteException
-
createOrder
Order createOrder(Order order, ResultStatus status) throws RemoteException
Deprecated.Create a newOrder
. Only the order title is used for creation; all other fields are ignored. The following fields are set automatically:- id
- device - set the this device.
- currency - set to the merchant's currency.
- vat - set according to the merchant's setting.
- groupLineItems - set according to the merchant's setting.
- testMode - set according to the merchant's setting.
- createdTime - set to this device's current time.
- taxRemoved - set to false.
- total - set to 0.
- employee - set to the current employee logged into this device.
- Parameters:
order
- The order to create.- Throws:
RemoteException
-
updateOrder
Order updateOrder(Order order, ResultStatus status) throws RemoteException
Deprecated.Update anOrder
. The following fields may be updated,- total
- title
- note
- state
- taxRemoved
- groupLineItems
- manualTransactions
- testMode
- orderType.id
- customerId
- payType
- createdTime
- employee.id
- Parameters:
order
- TheOrder
to updated.- Throws:
RemoteException
-
deleteOrder
boolean deleteOrder(String orderId, ResultStatus status) throws RemoteException
Deprecated.Delete anOrder
.- Parameters:
orderId
- The ID of theOrder
to be deleted.- Returns:
- true if the
Order
was deleted successfully, otherwise false. - Throws:
RemoteException
- See Also:
deleteOrderOnline(java.lang.String, com.clover.sdk.v1.ResultStatus)
-
addServiceCharge
Order addServiceCharge(String orderId, String serviceChargeId, ResultStatus status) throws RemoteException
Deprecated.Add aServiceCharge
to an order.- Parameters:
orderId
- The order ID on which to add the service charge.serviceChargeId
- The ID of the service charge to be added to the order.- Returns:
- The updated order with the service charge added.
- Throws:
RemoteException
-
deleteServiceCharge
Order deleteServiceCharge(String orderId, String serviceChargeId, ResultStatus status) throws RemoteException
Deprecated.Add aServiceCharge
to an order.- Parameters:
orderId
- The order ID on which to add the service charge.serviceChargeId
- The ID of the service charge to be added to the order.- Returns:
- The updated order with the service charge removed.
- Throws:
RemoteException
-
addFixedPriceLineItem
LineItem addFixedPriceLineItem(String orderId, String itemId, String binName, String userData, ResultStatus status) throws RemoteException
Deprecated.Add a fixed-price line item to an order. A fixed price line item is priced per item.LineItem
s are linked toItem
s with an item ID. Think of theItem
as a template for creating aLineItem
, and aLineItem
as the order's copy of anItem
.- Parameters:
orderId
- The ID of the order to which to add the line item.itemId
- The item ID from which to create the line item to be added to the order.binName
- The BIN name for the line item. May be {@link null}.userData
- Meta-data to attach to the line item. May be {@link null}.- Returns:
- The newly created
LineItem
. - Throws:
RemoteException
-
addPerUnitLineItem
LineItem addPerUnitLineItem(String orderId, String itemId, int unitQuantity, String binName, String userData, ResultStatus status) throws RemoteException
Deprecated.Add a per-unit line item to an order. A per unit line item is priced per unit, not per item. A good example is items that are sold by weight (e.g., per ounce).LineItem
s are linked toItem
s with an item ID. Think of theItem
as a template for creating aLineItem
, and aLineItem
as the order's copy of anItem
.- Parameters:
orderId
- The ID of the order to which to add the line item.itemId
- The item ID from which to create the line item to be added to the order.unitQuantity
- The unit quantity for the line item (e.g., "10 ounces").binName
- The BIN name for the line item. May be {@link null}.userData
- Meta-data to attach to the line item. May be {@link null}.- Returns:
- The newly created
LineItem
. - Throws:
RemoteException
-
addVariablePriceLineItem
LineItem addVariablePriceLineItem(String orderId, String itemId, long price, String binName, String userData, ResultStatus status) throws RemoteException
Deprecated.Add a variably-priced line item to the order. A variably priced line item's price is determined at the time of sale. Note that this method is not consistent with others in this interface as it returns aLineItem
. All other methods return the complete, updatedOrder
.- Parameters:
orderId
- The ID of the order to which to add the line item.itemId
- The item ID from which to create the line item to be added to the order.price
- The price of the line item.binName
- The BIN name for the line item. May be {@link null}.userData
- Meta-data to attach to the line item. May be {@link null}.- Throws:
RemoteException
-
addCustomLineItem
LineItem addCustomLineItem(String orderId, LineItem lineItem, boolean isTaxable, ResultStatus status) throws RemoteException
Deprecated.Add a custom line item to an order. Custom line items are not associated with an inventory item. Note that this method is not consistent with others in this interface as it returns aLineItem
. All other methods return the complete, updatedOrder
.- Parameters:
orderId
- The ID of the order to which to add the line item.lineItem
- The line item to add to the order.isTaxable
- true if this line item is taxable, otherwise false.- Throws:
RemoteException
-
updateLineItems
List<LineItem> updateLineItems(String orderId, List<LineItem> lineItemIds, ResultStatus status) throws RemoteException
Deprecated.UpdateLineItem
s on anOrder
. Only the following fields may be updated,- binName
- printed
- note
- userData
- Parameters:
orderId
- The ID of the order on which to update the line items.lineItemIds
- TheLineItem
s to update on the order.- Returns:
- The updated
LineItem
s. - Throws:
RemoteException
-
deleteLineItems
Order deleteLineItems(String orderId, List<String> lineItemIds, ResultStatus status) throws RemoteException
Deprecated.- Parameters:
orderId
- The ID of theOrder
from which to delete the line items.lineItemIds
- TheLineItem
IDs to delete.- Returns:
- The updated
Order
. - Throws:
RemoteException
-
copyLineItems
List<LineItem> copyLineItems(String sourceOrderId, String destinationOrderId, List<String> lineItemIds, ResultStatus status) throws RemoteException
Deprecated.- Throws:
RemoteException
-
setLineItemNote
Order setLineItemNote(String orderId, String lineItemId, String note, ResultStatus status) throws RemoteException
Deprecated.- Throws:
RemoteException
-
addLineItemModification
Order addLineItemModification(String orderId, String lineItemId, Modifier modifier, ResultStatus status) throws RemoteException
Deprecated.- Throws:
RemoteException
-
deleteLineItemModifications
Order deleteLineItemModifications(String orderId, String lineItemId, List<String> modificationIds, ResultStatus status) throws RemoteException
Deprecated.- Throws:
RemoteException
-
exchangeItem
LineItem exchangeItem(String orderId, String oldLineItemId, String itemId, String binName, String userData, ResultStatus status) throws RemoteException
Deprecated.- Throws:
RemoteException
-
addDiscount
Order addDiscount(String orderId, Discount discount, ResultStatus status) throws RemoteException
Deprecated.- Throws:
RemoteException
-
deleteDiscounts
Order deleteDiscounts(String orderId, List<String> discountIds, ResultStatus status) throws RemoteException
Deprecated.- Throws:
RemoteException
-
addLineItemDiscount
Order addLineItemDiscount(String orderId, String lineItemId, Discount discount, ResultStatus status) throws RemoteException
Deprecated.- Throws:
RemoteException
-
deleteLineItemDiscounts
Order deleteLineItemDiscounts(String orderId, String lineItemId, List<String> discountIds, ResultStatus status) throws RemoteException
Deprecated.- Throws:
RemoteException
-
addTip
Order addTip(String orderId, String paymentId, long amount, boolean online, ResultStatus status) throws RemoteException
Deprecated.Not available to non-Clover apps.- Throws:
RemoteException
-
pay
Payment pay(String orderId, PaymentRequest paymentRequest, boolean isAllowOffline, String note, ResultStatus status) throws RemoteException
Deprecated.Not available to non-Clover apps.- Throws:
RemoteException
-
addPayment
Order addPayment(String orderId, Payment payment, List<LineItem> lineItems, ResultStatus status) throws RemoteException
Deprecated.If necessary, use other methods to open the cash drawer and log cash events.- Throws:
RemoteException
-
voidPayment
Order voidPayment(String orderId, String paymentId, ResultStatus status) throws RemoteException
Deprecated.Not available to non-Clover apps.- Throws:
RemoteException
-
addCredit
Credit addCredit(String orderId, Credit payment, ResultStatus status) throws RemoteException
Deprecated.Not available to non-Clover apps.- Throws:
RemoteException
-
deleteCredit
Order deleteCredit(String orderId, String creditId, ResultStatus status) throws RemoteException
Deprecated.Not implemented.- Throws:
RemoteException
-
addRefund
Refund addRefund(String orderId, Refund payment, ResultStatus status) throws RemoteException
Deprecated.Not available to non-Clover apps.- Throws:
RemoteException
-
deleteRefund
Order deleteRefund(String orderId, String refundId, ResultStatus status) throws RemoteException
Deprecated.Not implemented.- Throws:
RemoteException
-
deleteOrderOnline
boolean deleteOrderOnline(String orderId, ResultStatus status) throws RemoteException
Deprecated.Delete anOrder
synchronously on the server. Differing from#deleteOrder(String)
, this method only completes successfully if this device can reach the server and retrieve confirmation that the order was deleted.- Parameters:
orderId
- The ID of the order to be deleted.- Returns:
- true if the order was deleted successfully, otherwise false.
- Throws:
RemoteException
- See Also:
deleteOrder(java.lang.String, com.clover.sdk.v1.ResultStatus)
-
addBatchLineItemModifications
Order addBatchLineItemModifications(String orderId, List<String> lineItemIds, Modifier modifier, int quantity, ResultStatus status) throws RemoteException
Deprecated.- Throws:
RemoteException
-
addBatchLineItemDiscounts
Order addBatchLineItemDiscounts(String orderId, List<String> lineItemIds, List<Discount> discounts, ResultStatus status) throws RemoteException
Deprecated.- Throws:
RemoteException
-
createLineItemsFrom
Map createLineItemsFrom(String sourceOrderId, String destinationOrderId, List<String> lineItemIds, ResultStatus status) throws RemoteException
Deprecated.- Throws:
RemoteException
-
fire
boolean fire(String sourceOrderId, ResultStatus status) throws RemoteException
Deprecated.Print line items to the kitchen or order printer quickly. Only prints inventory items that are associated with a printer. The association is done by linking an item and a printer with a tag. It will only print line items once, subsequent invocations will not cause additional prints, but the method will still return true.- Returns:
- true, unless the order has no line items in it that can be fired to a printer, will return true but not print anything if all items have been already printed
- Throws:
RemoteException
-
updatePayment
Payment updatePayment(String orderId, Payment payment, ResultStatus status) throws RemoteException
Deprecated.Not available to non-Clover apps.- Throws:
RemoteException
-
voidPayment2
Order voidPayment2(String orderId, String paymentId, String iccContainer, VoidReason reason, String source, ResultStatus status) throws RemoteException
Deprecated.Not available to non-Clover apps.- Throws:
RemoteException
-
removePayment
Order removePayment(String orderId, String paymentId, ResultStatus status) throws RemoteException
Deprecated.Not available to non-Clover apps.- Throws:
RemoteException
-
addRefundOffline
Refund addRefundOffline(String orderId, Refund payment, ResultStatus status) throws RemoteException
Deprecated.Not available to non-Clover apps.- Throws:
RemoteException
-
refund
Refund refund(String orderId, Refund payment, ResultStatus status) throws RemoteException
Deprecated.Not available to non-Clover apps.- Throws:
RemoteException
-
addOnOrderUpdatedListener2
void addOnOrderUpdatedListener2(IOnOrderUpdateListener2 listener) throws RemoteException
Deprecated.- Throws:
RemoteException
-
removeOnOrderUpdatedListener2
void removeOnOrderUpdatedListener2(IOnOrderUpdateListener2 listener) throws RemoteException
Deprecated.- Throws:
RemoteException
-
addDiscount2
Discount addDiscount2(String orderId, Discount discount, ResultStatus status) throws RemoteException
Deprecated.Just likeaddDiscount(java.lang.String, com.clover.sdk.v3.order.Discount, com.clover.sdk.v1.ResultStatus)
but returns aDiscount
instead of anOrder
.- Throws:
RemoteException
-
addLineItemDiscount2
Discount addLineItemDiscount2(String orderId, String lineItemId, Discount discount, ResultStatus status) throws RemoteException
Deprecated.Just likeaddLineItemDiscount(java.lang.String, java.lang.String, com.clover.sdk.v3.order.Discount, com.clover.sdk.v1.ResultStatus)
but returns aDiscount
instead of anOrder
.- Throws:
RemoteException
-
addPayment2
Order addPayment2(String orderId, Payment payment, List<LineItem> lineItems, ResultStatus status) throws RemoteException
Deprecated.Not available to non-Clover apps. Add a payment to an order. The payment is only added to the local DB: the change is not persisted on the server. This method differs fromaddPayment(java.lang.String, com.clover.sdk.v3.payments.Payment, java.util.List<com.clover.sdk.v3.order.LineItem>, com.clover.sdk.v1.ResultStatus)
in that it does not add cash events or open the cash drawer. Not available to non-Clover apps.- Parameters:
orderId
- , the order ID.payment
- , the payment.lineItems
- , the line items that were paid by this payment.- Returns:
- the updated order.
- Throws:
RemoteException
-
fire2
boolean fire2(String sourceOrderid, boolean requireAllItems, ResultStatus status) throws RemoteException
Deprecated.Just likefire(java.lang.String, com.clover.sdk.v1.ResultStatus)
but additionally when requireAllItems is set to true it will not print and return false if some items on the order haven't been printed yet and would not be printed because they are not associated with an order printer.- Returns:
- just like
fire(java.lang.String, com.clover.sdk.v1.ResultStatus)
, but additionally returns false if there are unprinted items without a printer associated. - Throws:
RemoteException
-
createLineItemsFrom2
Map createLineItemsFrom2(String sourceOrderId, String destinationOrderId, List<String> lineItemIds, boolean copyPrinted, boolean broadcastLineItems, ResultStatus status) throws RemoteException
Deprecated.Just likecreateLineItemsFrom(java.lang.String, java.lang.String, java.util.List<java.lang.String>, com.clover.sdk.v1.ResultStatus)
but additionally when copyPrinted is set to true it will copy print flags on line items (normally did not), and when broadcastLineItems is set to true it will broadcastLineItems (normally did).- Throws:
RemoteException
-
deleteOrder2
boolean deleteOrder2(String orderId, boolean allowDeleteIfLineItemPrinted, ResultStatus status) throws RemoteException
Deprecated.Just likedeleteOrder(java.lang.String, com.clover.sdk.v1.ResultStatus)
but additionally when allowDeleteIfLineItemPrinted is true it will delete the order when line items are printed (normally did not).- Throws:
RemoteException
-
getPendingPayments
List<Payment> getPendingPayments(ResultStatus status) throws RemoteException
Deprecated.This pulls pending payments from the local device db- Throws:
RemoteException
-
addCreditRefund
CreditRefund addCreditRefund(String orderId, CreditRefund creditRefund, ResultStatus status) throws RemoteException
Deprecated.Not available to non-Clover apps.- Throws:
RemoteException
-
deleteCreditRefund
Order deleteCreditRefund(String orderId, String creditRefundId, ResultStatus status) throws RemoteException
Deprecated.Not available to non-Clover apps.- Throws:
RemoteException
-
voidPaymentWithCard
Order voidPaymentWithCard(String orderId, String paymentId, String iccContainer, PaymentRequestCardDetails card, VoidReason reason, String source, ResultStatus status) throws RemoteException
Deprecated.Not available to non-Clover apps.- Throws:
RemoteException
-
getLineItemsToFire
List<String> getLineItemsToFire(String orderId, ResultStatus status) throws RemoteException
Deprecated.Get list of lineitem ids for the order that has printtag to print. The items that are already printed are not part of the list Not available to non-Clover apps.- Throws:
RemoteException
-
refire
boolean refire(String orderId, ResultStatus status) throws RemoteException
Deprecated.Reprint all lineitems that has a printtag even if they are printed. Not available to non-Clover apps.- Throws:
RemoteException
-
deleteOrderOnline2
boolean deleteOrderOnline2(String orderId, boolean usePermissionForOrderDeletions, ResultStatus status) throws RemoteException
Deprecated.Not available to non-Clover apps.- Throws:
RemoteException
-
deleteOrder3
boolean deleteOrder3(String orderId, boolean deleteOnline, boolean allowDeleteIfLineItemPrinted, boolean allowDeleteIfNoEmployeePermission, ResultStatus status) throws RemoteException
Deprecated.Delete anOrder
. This method allows switching between online deletion like#deleteOrderOnline(String)
and offline (deleting loaclly and adding message to server queue) like#deleteOrder(String)
This method allows an override toggle for the employee permissions and printed line items checks.- Parameters:
orderId
- The ID of the order to be deleted.deleteOnline
- true to delete an order synchronously on the server @see #deleteOrderOnlineallowDeleteIfLineItemPrinted
- true to allow deleting order if it has printed line itemsallowDeleteIfNoEmployeePermission
- true to allow deletion regardless of employee permission.- Returns:
- true if the order was deleted successfully, otherwise false. Not available to non-Clover apps.
- Throws:
RemoteException
-
voidPaymentCardPresent
Order voidPaymentCardPresent(String orderId, String paymentId, String iccContainer, PaymentRequestCardDetails card, TransactionInfo transactionInfo, VoidReason reason, String source, ResultStatus status) throws RemoteException
Deprecated.Card present void Not available to non-Clover apps.- Throws:
RemoteException
-
vaultedCreditRefund
CreditRefund vaultedCreditRefund(String orderId, String creditId, ResultStatus status) throws RemoteException
Deprecated.- Parameters:
orderId
- The ID of the order to be updated.creditId
- The ID of the credit to be refunded.- Returns:
- the CreditRefund object constructed using the RefundResponse the serverf returns Not available to non-Clover apps.
- Throws:
RemoteException
-
addAuthorization
Authorization addAuthorization(String orderId, Authorization authorization, ResultStatus status) throws RemoteException
Deprecated.Not available to non-Clover apps.- Throws:
RemoteException
-
captureAuthorization
Order captureAuthorization(String orderId, Authorization authorization, ResultStatus status) throws RemoteException
Deprecated.Not available to non-Clover apps.- Throws:
RemoteException
-
-