public static class IOrderServiceV3_1.Default extends Object implements IOrderServiceV3_1
IOrderServiceV3_1.Default, IOrderServiceV3_1.Stub
Constructor and Description |
---|
Default() |
Modifier and Type | Method and Description |
---|---|
OrderFdParcelable |
addBatchLineItemDiscounts(String orderId,
List<String> lineItemIds,
DiscountListFdParcelable discounts,
ResultStatus status) |
OrderFdParcelable |
addBatchLineItemModifications(String orderId,
List<String> lineItemIds,
ModifierFdParcelable fdModifier,
int quantity,
ResultStatus status) |
LineItemFdParcelable |
addCustomLineItem(String orderId,
LineItemFdParcelable fdLineItem,
boolean isTaxable,
ResultStatus status)
Add a custom line item to an order.
|
OrderFdParcelable |
addDiscount(String orderId,
DiscountFdParcelable fdDiscount,
ResultStatus status) |
DiscountFdParcelable |
addDiscount2(String orderId,
DiscountFdParcelable fdDiscount,
ResultStatus status)
Just like
addDiscount(java.lang.String, com.clover.sdk.v3.order.DiscountFdParcelable, com.clover.sdk.v1.ResultStatus) but returns a Discount instead of an Order . |
LineItemFdParcelable |
addFixedPriceLineItem(String orderId,
String itemId,
String binName,
String userData,
ResultStatus status)
Add a fixed-price line item to an order.
|
LineItemListFdParcelable |
addFixedPriceLineItems(String orderId,
String itemId,
String binName,
String userData,
int numItems,
ResultStatus status)
Add 1 or more fixed-price line item to an order.
|
OrderFdParcelable |
addLineItemDiscount(String orderId,
String lineItemId,
DiscountFdParcelable fdDiscount,
ResultStatus status) |
DiscountFdParcelable |
addLineItemDiscount2(String orderId,
String lineItemId,
DiscountFdParcelable fdDiscount,
ResultStatus status)
Just like
addLineItemDiscount(java.lang.String, java.lang.String, com.clover.sdk.v3.order.DiscountFdParcelable, com.clover.sdk.v1.ResultStatus) but returns a Discount instead of an Order . |
OrderFdParcelable |
addLineItemModification(String orderId,
String lineItemId,
ModifierFdParcelable fdModifier,
ResultStatus status) |
void |
addOnOrderUpdatedListener(IOnOrderUpdateListener listener) |
void |
addOnOrderUpdatedListener2(IOnOrderUpdateListener2 listener) |
LineItemFdParcelable |
addPerUnitLineItem(String orderId,
String itemId,
int unitQuantity,
String binName,
String userData,
ResultStatus status)
Add a per-unit line item to an order.
|
LineItemListFdParcelable |
addPerUnitLineItems(String orderId,
String itemId,
int unitQuantity,
String binName,
String userData,
int numItems,
ResultStatus status)
Add 1 or more per-unit line item to an order.
|
OrderFdParcelable |
addPrintGroup(String orderId,
PrintGroupFdParcelable fdPrintGroup,
ResultStatus status)
Add new
PrintGroup on order object. |
OrderFdParcelable |
addServiceCharge(String orderId,
String serviceChargeId,
ResultStatus status)
Add a
ServiceCharge to an order. |
OrderFdParcelable |
addServiceCharge2(String orderId,
String serviceChargeId,
boolean isAutoApplied,
ResultStatus status)
Add a
ServiceCharge to an order with a flag if it was added automatically or not. |
LineItemFdParcelable |
addVariablePriceLineItem(String orderId,
String itemId,
long price,
String binName,
String userData,
ResultStatus status)
Add a variably-priced line item to the order.
|
LineItemListFdParcelable |
addVariablePriceLineItems(String orderId,
String itemId,
long price,
String binName,
String userData,
int numItems,
ResultStatus status)
Add 1 or more variably-priced line item to the order.
|
IBinder |
asBinder() |
LineItemListFdParcelable |
copyLineItems(String sourceOrderId,
String destinationOrderId,
List<String> lineItemIds,
ResultStatus status) |
LineItemMapFdParcelable |
createLineItemsFrom(String sourceOrderId,
String destinationOrderId,
List<String> lineItemIds,
ResultStatus status) |
LineItemMapFdParcelable |
createLineItemsFrom2(String sourceOrderId,
String destinationOrderId,
List<String> lineItemIds,
boolean copyPrinted,
boolean broadcastLineItems,
ResultStatus status)
Just like
createLineItemsFrom(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). |
OrderFdParcelable |
createOrder(OrderFdParcelable fdOrder,
ResultStatus status)
Create a new
Order . |
OrderFdParcelable |
deleteDiscounts(String orderId,
List<String> discountIds,
ResultStatus status) |
OrderFdParcelable |
deleteLineItemDiscounts(String orderId,
String lineItemId,
List<String> discountIds,
ResultStatus status) |
OrderFdParcelable |
deleteLineItemModifications(String orderId,
String lineItemId,
List<String> modificationIds,
ResultStatus status) |
OrderFdParcelable |
deleteLineItems(String orderId,
List<String> lineItemIds,
ResultStatus status)
|
OrderFdParcelable |
deleteLineItems2(String orderId,
List<String> lineItemIds,
ClientEventType clientEventType,
String approvedByEmployeeId,
ResultStatus status)
|
OrderFdParcelable |
deleteLineItemsWithReason(String orderId,
List<String> lineItemIds,
String reason,
ClientEventType clientEventType,
ResultStatus status)
|
OrderFdParcelable |
deleteLineItemsWithReason2(String orderId,
List<String> lineItemIds,
String reason,
ClientEventType clientEventType,
String approvedByEmployeeId,
ResultStatus status)
|
boolean |
deleteOrder(String orderId,
ResultStatus status)
Delete an
Order . |
boolean |
deleteOrder2(String orderId,
boolean allowDeleteIfLineItemPrinted,
ResultStatus status)
Just like
deleteOrder(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 |
deleteOrderOnline(String orderId,
ResultStatus status)
Delete an
Order synchronously on the server. |
OrderFdParcelable |
deleteServiceCharge(String orderId,
String serviceChargeId,
ResultStatus status)
Add a
ServiceCharge to an order. |
LineItemFdParcelable |
exchangeItem(String orderId,
String oldLineItemId,
String itemId,
String binName,
String userData,
ResultStatus status) |
boolean |
fire(String sourceOrderId,
ResultStatus status)
Print line items to the kitchen or order printer quickly.
|
boolean |
fire2(String sourceOrderid,
boolean requireAllItems,
ResultStatus status)
Just like
fire(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. |
boolean |
firePrintGroups(String orderId,
List<String> printGroupsIds,
boolean requireAllItems,
ResultStatus status)
Send all line items in the given print groups to the kitchen or order printer.
|
List<String> |
getLineItemsToFire(String orderId,
ResultStatus status)
Get list of lineitem ids for the order that has printtag to print.
|
OrderFdParcelable |
getOrder(String orderId,
ResultStatus status)
Get the
Order for the given ID. |
OrderListFdParcelable |
getOrders(List<String> orderIds,
ResultStatus status)
Get the
Order s for the given IDs. |
PaymentListFdParcelable |
getPendingPayments(ResultStatus status)
This pulls pending payments from the local device db
|
boolean |
refire(String orderId,
ResultStatus status)
Reprint all lineitems that has a printtag even if they are printed.
|
void |
removeOnOrderUpdatedListener(IOnOrderUpdateListener listener) |
void |
removeOnOrderUpdatedListener2(IOnOrderUpdateListener2 listener) |
OrderFdParcelable |
setLineItemNote(String orderId,
String lineItemId,
String note,
ResultStatus status) |
LineItemListFdParcelable |
splitLineItems(String orderId,
List<String> lineItemIds,
List<String> binNames,
ResultStatus resultStatus)
Splits line items without taking a payment.
|
LineItemListFdParcelable |
updateLineItems(String orderId,
LineItemListFdParcelable fdLineItems,
ResultStatus status)
|
void |
updateOnlineOrderState(String orderId,
OrderState orderState,
Reason reason,
ResultStatus resultStatus)
Update the online order state.
|
OrderFdParcelable |
updateOrder(OrderFdParcelable fdOrder,
ResultStatus status)
Update an
Order . |
OrderFdParcelable |
updatePrintGroup(String orderId,
PrintGroupFdParcelable fdPrintGroupToUpdate,
ResultStatus status)
Update
PrintGroup on order object. |
public void addOnOrderUpdatedListener(IOnOrderUpdateListener listener) throws RemoteException
addOnOrderUpdatedListener
in interface IOrderServiceV3_1
RemoteException
public void removeOnOrderUpdatedListener(IOnOrderUpdateListener listener) throws RemoteException
removeOnOrderUpdatedListener
in interface IOrderServiceV3_1
RemoteException
public OrderFdParcelable getOrder(String orderId, ResultStatus status) throws RemoteException
Order
for the given ID. If the order is not synchronized on this device, the order is fetched
from the server.getOrder
in interface IOrderServiceV3_1
orderId
- The ID of the Order
to retrieve.Order
s corresponding to the provided ID, or 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.RemoteException
public OrderListFdParcelable getOrders(List<String> orderIds, ResultStatus status) throws RemoteException
Order
s for the given IDs. If the orders are not synchronized on this device, they are fetched
from the server.getOrders
in interface IOrderServiceV3_1
orderIds
- The list of orders to retrieveOrder
s corresponding to the provided IDsRemoteException
public OrderFdParcelable createOrder(OrderFdParcelable fdOrder, ResultStatus status) throws RemoteException
Order
. Only the following fields are allowed during creation:
The following fields are set automatically by this call:
Any other fields included in this call will result in failure to create the order. Adding line items and making other changes should be done after order creation using other methods in this class.
createOrder
in interface IOrderServiceV3_1
order
- The order to create.RemoteException
public OrderFdParcelable updateOrder(OrderFdParcelable fdOrder, ResultStatus status) throws RemoteException
Order
. The following fields may be updated,
updateOrder
in interface IOrderServiceV3_1
order
- The Order
to updated.RemoteException
public boolean deleteOrder(String orderId, ResultStatus status) throws RemoteException
Order
.deleteOrder
in interface IOrderServiceV3_1
orderId
- The ID of the Order
to be deleted.Order
was deleted successfully, otherwise false.RemoteException
deleteOrderOnline(java.lang.String, com.clover.sdk.v1.ResultStatus)
public OrderFdParcelable addServiceCharge(String orderId, String serviceChargeId, ResultStatus status) throws RemoteException
ServiceCharge
to an order.addServiceCharge
in interface IOrderServiceV3_1
orderId
- The order ID on which to add the service charge.serviceChargeId
- The ID of the service charge to be added to the order.RemoteException
public OrderFdParcelable deleteServiceCharge(String orderId, String serviceChargeId, ResultStatus status) throws RemoteException
ServiceCharge
to an order.deleteServiceCharge
in interface IOrderServiceV3_1
orderId
- The order ID on which to add the service charge.serviceChargeId
- The ID of the service charge to be added to the order.RemoteException
public LineItemFdParcelable addFixedPriceLineItem(String orderId, String itemId, String binName, String userData, ResultStatus status) throws RemoteException
LineItem
s are linked to Item
s with an item ID. Think of the
Item
as a template for creating a LineItem
, and a
LineItem
as the order's copy of an Item
.addFixedPriceLineItem
in interface IOrderServiceV3_1
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 null
.userData
- Meta-data to attach to the line item. May be null
.LineItem
.RemoteException
public LineItemFdParcelable addPerUnitLineItem(String orderId, String itemId, int unitQuantity, String binName, String userData, ResultStatus status) throws RemoteException
LineItem
s are linked to Item
s with an item ID. Think of the
Item
as a template for creating a LineItem
, and a
LineItem
as the order's copy of an Item
.addPerUnitLineItem
in interface IOrderServiceV3_1
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 null
.userData
- Meta-data to attach to the line item. May be null
.LineItem
.RemoteException
public LineItemFdParcelable addVariablePriceLineItem(String orderId, String itemId, long price, String binName, String userData, ResultStatus status) throws RemoteException
LineItem
. All other
methods return the complete, updated Order
.addVariablePriceLineItem
in interface IOrderServiceV3_1
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 null
.userData
- Meta-data to attach to the line item. May be null
.RemoteException
public LineItemFdParcelable addCustomLineItem(String orderId, LineItemFdParcelable fdLineItem, boolean isTaxable, ResultStatus status) throws RemoteException
LineItem
. All other
methods return the complete, updated Order
.addCustomLineItem
in interface IOrderServiceV3_1
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.RemoteException
public LineItemListFdParcelable updateLineItems(String orderId, LineItemListFdParcelable fdLineItems, ResultStatus status) throws RemoteException
LineItem
s on an Order
. Only the following fields may be updated,
updateLineItems
in interface IOrderServiceV3_1
orderId
- The ID of the order on which to update the line items.lineItemIds
- The LineItem
s to update on the order.LineItem
s.RemoteException
public OrderFdParcelable deleteLineItems(String orderId, List<String> lineItemIds, ResultStatus status) throws RemoteException
deleteLineItems
in interface IOrderServiceV3_1
orderId
- The ID of the Order
from which to delete the line items.lineItemIds
- The LineItem
IDs to delete.Order
.RemoteException
public LineItemListFdParcelable copyLineItems(String sourceOrderId, String destinationOrderId, List<String> lineItemIds, ResultStatus status) throws RemoteException
copyLineItems
in interface IOrderServiceV3_1
RemoteException
public OrderFdParcelable setLineItemNote(String orderId, String lineItemId, String note, ResultStatus status) throws RemoteException
setLineItemNote
in interface IOrderServiceV3_1
RemoteException
public OrderFdParcelable addLineItemModification(String orderId, String lineItemId, ModifierFdParcelable fdModifier, ResultStatus status) throws RemoteException
addLineItemModification
in interface IOrderServiceV3_1
RemoteException
public OrderFdParcelable deleteLineItemModifications(String orderId, String lineItemId, List<String> modificationIds, ResultStatus status) throws RemoteException
deleteLineItemModifications
in interface IOrderServiceV3_1
RemoteException
public LineItemFdParcelable exchangeItem(String orderId, String oldLineItemId, String itemId, String binName, String userData, ResultStatus status) throws RemoteException
exchangeItem
in interface IOrderServiceV3_1
RemoteException
public OrderFdParcelable addDiscount(String orderId, DiscountFdParcelable fdDiscount, ResultStatus status) throws RemoteException
addDiscount
in interface IOrderServiceV3_1
RemoteException
public OrderFdParcelable deleteDiscounts(String orderId, List<String> discountIds, ResultStatus status) throws RemoteException
deleteDiscounts
in interface IOrderServiceV3_1
RemoteException
public OrderFdParcelable addLineItemDiscount(String orderId, String lineItemId, DiscountFdParcelable fdDiscount, ResultStatus status) throws RemoteException
addLineItemDiscount
in interface IOrderServiceV3_1
RemoteException
public OrderFdParcelable deleteLineItemDiscounts(String orderId, String lineItemId, List<String> discountIds, ResultStatus status) throws RemoteException
deleteLineItemDiscounts
in interface IOrderServiceV3_1
RemoteException
public boolean deleteOrderOnline(String orderId, ResultStatus status) throws RemoteException
Order
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.deleteOrderOnline
in interface IOrderServiceV3_1
orderId
- The ID of the order to be deleted.RemoteException
deleteOrder(java.lang.String, com.clover.sdk.v1.ResultStatus)
public OrderFdParcelable addBatchLineItemModifications(String orderId, List<String> lineItemIds, ModifierFdParcelable fdModifier, int quantity, ResultStatus status) throws RemoteException
addBatchLineItemModifications
in interface IOrderServiceV3_1
RemoteException
public OrderFdParcelable addBatchLineItemDiscounts(String orderId, List<String> lineItemIds, DiscountListFdParcelable discounts, ResultStatus status) throws RemoteException
addBatchLineItemDiscounts
in interface IOrderServiceV3_1
RemoteException
public LineItemMapFdParcelable createLineItemsFrom(String sourceOrderId, String destinationOrderId, List<String> lineItemIds, ResultStatus status) throws RemoteException
createLineItemsFrom
in interface IOrderServiceV3_1
RemoteException
public boolean fire(String sourceOrderId, ResultStatus status) throws RemoteException
fire
in interface IOrderServiceV3_1
RemoteException
com.clover.sdk.v3.inventory.IInventoryService.assignTagsToItem
public void addOnOrderUpdatedListener2(IOnOrderUpdateListener2 listener) throws RemoteException
addOnOrderUpdatedListener2
in interface IOrderServiceV3_1
RemoteException
public void removeOnOrderUpdatedListener2(IOnOrderUpdateListener2 listener) throws RemoteException
removeOnOrderUpdatedListener2
in interface IOrderServiceV3_1
RemoteException
public DiscountFdParcelable addDiscount2(String orderId, DiscountFdParcelable fdDiscount, ResultStatus status) throws RemoteException
addDiscount(java.lang.String, com.clover.sdk.v3.order.DiscountFdParcelable, com.clover.sdk.v1.ResultStatus)
but returns a Discount
instead of an Order
.addDiscount2
in interface IOrderServiceV3_1
RemoteException
public DiscountFdParcelable addLineItemDiscount2(String orderId, String lineItemId, DiscountFdParcelable fdDiscount, ResultStatus status) throws RemoteException
addLineItemDiscount(java.lang.String, java.lang.String, com.clover.sdk.v3.order.DiscountFdParcelable, com.clover.sdk.v1.ResultStatus)
but returns a Discount
instead of an Order
.addLineItemDiscount2
in interface IOrderServiceV3_1
RemoteException
public boolean fire2(String sourceOrderid, boolean requireAllItems, ResultStatus status) throws RemoteException
fire(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.fire2
in interface IOrderServiceV3_1
fire(java.lang.String, com.clover.sdk.v1.ResultStatus)
, but additionally returns false if there are unprinted items
without a printer associated.RemoteException
public LineItemMapFdParcelable createLineItemsFrom2(String sourceOrderId, String destinationOrderId, List<String> lineItemIds, boolean copyPrinted, boolean broadcastLineItems, ResultStatus status) throws RemoteException
createLineItemsFrom(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).createLineItemsFrom2
in interface IOrderServiceV3_1
RemoteException
public boolean deleteOrder2(String orderId, boolean allowDeleteIfLineItemPrinted, ResultStatus status) throws RemoteException
deleteOrder(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).deleteOrder2
in interface IOrderServiceV3_1
RemoteException
public PaymentListFdParcelable getPendingPayments(ResultStatus status) throws RemoteException
getPendingPayments
in interface IOrderServiceV3_1
RemoteException
public OrderFdParcelable deleteLineItemsWithReason(String orderId, List<String> lineItemIds, String reason, ClientEventType clientEventType, ResultStatus status) throws RemoteException
deleteLineItemsWithReason
in interface IOrderServiceV3_1
orderId
- The ID of the Order
from which to delete the line items.lineItemIds
- The LineItem
IDs to delete.reason
- optional. Why was the line item removed?clientEventType
- optional. What app did the delete come from?Order
.RemoteException
public List<String> getLineItemsToFire(String orderId, ResultStatus status) throws RemoteException
getLineItemsToFire
in interface IOrderServiceV3_1
orderId
- The ID of the Order
from which to delete the line items.RemoteException
public boolean refire(String orderId, ResultStatus status) throws RemoteException
refire
in interface IOrderServiceV3_1
orderId
- The ID of the Order
from which to delete the line items.RemoteException
public LineItemListFdParcelable addFixedPriceLineItems(String orderId, String itemId, String binName, String userData, int numItems, ResultStatus status) throws RemoteException
LineItem
s are linked to Item
s with an item ID. Think of the
Item
as a template for creating a LineItem
, and a
LineItem
as the order's copy of an Item
.addFixedPriceLineItems
in interface IOrderServiceV3_1
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 null
.userData
- Meta-data to attach to the line item. May be null
.numItems
- number of LineItem
s to createLineItem
.RemoteException
public LineItemListFdParcelable addPerUnitLineItems(String orderId, String itemId, int unitQuantity, String binName, String userData, int numItems, ResultStatus status) throws RemoteException
LineItem
s are linked to Item
s with an item ID. Think of the
Item
as a template for creating a LineItem
, and a
LineItem
as the order's copy of an Item
.addPerUnitLineItems
in interface IOrderServiceV3_1
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 null
.userData
- Meta-data to attach to the line item. May be null
.numItems
- number of LineItem
s to createLineItem
.RemoteException
public LineItemListFdParcelable addVariablePriceLineItems(String orderId, String itemId, long price, String binName, String userData, int numItems, ResultStatus status) throws RemoteException
LineItem
. All other
methods return the complete, updated Order
.addVariablePriceLineItems
in interface IOrderServiceV3_1
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 null
.userData
- Meta-data to attach to the line item. May be null
.numItems
- number of LineItem
s to createLineItem
.RemoteException
public LineItemListFdParcelable splitLineItems(String orderId, List<String> lineItemIds, List<String> binNames, ResultStatus resultStatus) throws RemoteException
LineItem
in lineItemIds
is
equally split across all bins in binNames
.
For example, given a single line item ID and bin names "a" and "b", then two new line items are
created. One for bin "a" and another for bin "b". The original line item is then deleted. Each
new line item represents an equal fraction of the original by using a fraction of the
original's unit quantity.
Using this method allows for items to be shared without locking the order.
Restrictions A line item may not be split more than once. If a line item cannot be split, it is skipped.
splitLineItems
in interface IOrderServiceV3_1
orderId
- the ID of the order to modify.lineItemIds
- the line items to split.binNames
- the bin names to split lineItemIds
across.LineItem
s.RemoteException
public void updateOnlineOrderState(String orderId, OrderState orderState, Reason reason, ResultStatus resultStatus) throws RemoteException
updateOnlineOrderState
in interface IOrderServiceV3_1
RemoteException
public OrderFdParcelable addPrintGroup(String orderId, PrintGroupFdParcelable fdPrintGroup, ResultStatus status) throws RemoteException
PrintGroup
on order object.addPrintGroup
in interface IOrderServiceV3_1
orderId
- The ID of the order to be updatedfdPrintGroup
- PrintGroup to be added to an OrderRemoteException
public OrderFdParcelable deleteLineItems2(String orderId, List<String> lineItemIds, ClientEventType clientEventType, String approvedByEmployeeId, ResultStatus status) throws RemoteException
deleteLineItems2
in interface IOrderServiceV3_1
orderId
- The ID of the Order
from which to delete the line items.lineItemIds
- The LineItem
IDs to delete.clientEventType
- What app did the delete come from? If null, no clientEventType will be added.approvedByEmployeeId
- Approval id of the employee who approved the deletion of the line item, if null no approver is added.Order
.RemoteException
public boolean firePrintGroups(String orderId, List<String> printGroupsIds, boolean requireAllItems, ResultStatus status) throws RemoteException
firePrintGroups
in interface IOrderServiceV3_1
orderId
- the ID of the order to fire.printGroupIds
- fire items from all given PrintGroups. If null, fire all PrintGroups.requireAllItems
- when true, it will not print and return false if some items in the
PrintGroups haven't been printed and will not be printed because they are not associated
with an order printer.fire(String, ResultStatus)
when requireAllItems
is false.
When requireAllItems
is true, returns false if there are unprinted items
without a printer associated.RemoteException
com.clover.sdk.v3.inventory.IInventoryService.assignTagsToItem
,
com.clover.sdk.v3.order.IOrderServiceV3_1.addPrintGroup
public OrderFdParcelable addServiceCharge2(String orderId, String serviceChargeId, boolean isAutoApplied, ResultStatus status) throws RemoteException
ServiceCharge
to an order with a flag if it was added automatically or not.addServiceCharge2
in interface IOrderServiceV3_1
orderId
- The order ID on which to add the service charge.serviceChargeId
- The ID of the service charge to be added to the order.isAutoApplied
- The flag indicating if service charge is applied automatically or not.RemoteException
public OrderFdParcelable deleteLineItemsWithReason2(String orderId, List<String> lineItemIds, String reason, ClientEventType clientEventType, String approvedByEmployeeId, ResultStatus status) throws RemoteException
deleteLineItemsWithReason2
in interface IOrderServiceV3_1
orderId
- The ID of the Order
from which to delete the line items.lineItemIds
- The LineItem
IDs to delete.reason.
- Why was the line item removed?clientEventType
- optional. What app did the delete come from?approvedByEmployeeId.
- Who approved the delete request?Order
.RemoteException
public OrderFdParcelable updatePrintGroup(String orderId, PrintGroupFdParcelable fdPrintGroupToUpdate, ResultStatus status) throws RemoteException
PrintGroup
on order object.updatePrintGroup
in interface IOrderServiceV3_1
orderId
- The ID of the order to be updatedfdPrintGroupToUpdate
- PrintGroup to be updatedRemoteException
public IBinder asBinder()
asBinder
in interface IInterface