Package com.clover.sdk.v3.order
Class OrderV3Connector
- java.lang.Object
-
- com.clover.sdk.v1.ServiceConnector<IOrderService>
-
- com.clover.sdk.v3.order.OrderV3Connector
-
- All Implemented Interfaces:
ServiceConnection
@Deprecated public class OrderV3Connector extends ServiceConnector<IOrderService>
Deprecated.Please use theOrderConnector
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.Service connector forIOrderService
. Please see that class for documentation on the RPC methods.- See Also:
OrderConnector
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
OrderV3Connector.OnOrderUpdateListener
Deprecated.Interface used to allow application to be notified of order updates.static interface
OrderV3Connector.OnOrderUpdateListener2
Deprecated.-
Nested classes/interfaces inherited from class com.clover.sdk.v1.ServiceConnector
ServiceConnector.Callback<T>, ServiceConnector.OnServiceConnectedListener, ServiceConnector.ServiceCallable<S,T>, ServiceConnector.ServiceRunnable<S>
-
-
Field Summary
-
Fields inherited from class com.clover.sdk.v1.ServiceConnector
mAccount, mClient, mConnected, mContext, mHandler, mService
-
-
Constructor Summary
Constructors Constructor Description OrderV3Connector(Context context, Account account, ServiceConnector.OnServiceConnectedListener client)
Deprecated.Constructs a new OrderConnector object.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Order
addBatchLineItemDiscounts(String orderId, List<String> lineItemIds, List<Discount> discounts)
Deprecated.Order
addBatchLineItemModification(String orderId, List<String> lineItemIds, Modifier modifier, int quantity)
Deprecated.Credit
addCredit(String orderId, Credit credit)
Deprecated.Not available to non-Clover apps.CreditRefund
addCreditRefund(String orderId, CreditRefund creditRefund)
Deprecated.Not available to non-Clover apps.LineItem
addCustomLineItem(String orderId, LineItem lineItem, boolean isTaxable)
Deprecated.Order
addDiscount(String orderId, Discount discount)
Deprecated.Discount
addDiscount2(String orderId, Discount discount)
Deprecated.LineItem
addFixedPriceLineItem(String orderId, String itemId, String binName, String userData)
Deprecated.Order
addLineItemDiscount(String orderId, String lineItemId, Discount discount)
Deprecated.Discount
addLineItemDiscount2(String orderId, String lineItemId, Discount discount)
Deprecated.Order
addLineItemModification(String orderId, String lineItemId, Modifier modifier)
Deprecated.void
addOnOrderChangedListener(OrderV3Connector.OnOrderUpdateListener listener)
Deprecated.void
addOnOrderChangedListener(OrderV3Connector.OnOrderUpdateListener2 listener)
Deprecated.Order
addPayment(String orderId, Payment payment, List<LineItem> lineItems)
Deprecated.Not available to non-Clover apps.Order
addPayment2(String orderId, Payment payment, List<LineItem> lineItems)
Deprecated.Not available to non-Clover apps.LineItem
addPerUnitLineItem(String orderId, String itemId, int unitQuantity, String binName, String userData)
Deprecated.Refund
addRefund(String orderId, Refund refund)
Deprecated.Not available to non-Clover apps.Refund
addRefundOffline(String orderId, Refund refund)
Deprecated.Not available to non-Clover apps.Order
addServiceCharge(String orderId, String serviceChargeId)
Deprecated.Order
addTip(String orderId, String paymentId, long amount, boolean online)
Deprecated.Not available to non-Clover apps.LineItem
addVariablePriceLineItem(String orderId, String itemId, long price, String binName, String userData)
Deprecated.List<LineItem>
copyLineItems(String sourceOrderId, String destinationOrderId, List<String> srclineItemIds)
Deprecated.Map<String,List<LineItem>>
createLineItemsFrom(String sourceOrderId, String destinationOrderId, List<String> srclineItemIds)
Deprecated.Map<String,List<LineItem>>
createLineItemsFrom2(String sourceOrderId, String destinationOrderId, List<String> srclineItemIds, boolean copyPrinted, boolean broadcastLineItems)
Deprecated.Order
createOrder(Order order)
Deprecated.Order
deleteCredit(String orderId, String creditId)
Deprecated.Order
deleteCreditRefund(String orderId, String creditRefundId)
Deprecated.Order
deleteDiscounts(String orderId, List<String> discountIds)
Deprecated.Order
deleteLineItemDiscounts(String orderId, String lineItemId, List<String> discountIds)
Deprecated.Order
deleteLineItemModifications(String orderId, String lineItemId, List<String> modificationIds)
Deprecated.Order
deleteLineItems(String orderId, List<String> lineItemIds)
Deprecated.boolean
deleteOrder(String orderId)
Deprecated.boolean
deleteOrder2(String orderId, boolean allowDeleteIfLineItemPrinted)
Deprecated.boolean
deleteOrder3(String orderId, boolean deleteOnline, boolean allowDeleteIfLineItemPrinted, boolean allowDeleteIfNoEmployeePermission)
Deprecated.Not available to non-Clover apps.boolean
deleteOrderOnline(String orderId)
Deprecated.boolean
deleteOrderOnline2(String orderId, boolean usePermissionForOrderDeletions)
Deprecated.Order
deleteRefund(String orderId, String refundId)
Deprecated.Order
deleteServiceCharge(String orderId, String serviceChargeId)
Deprecated.void
disconnect()
Deprecated.LineItem
exchangeItem(String orderId, String oldLineItemId, String itemId, String binName, String userData)
Deprecated.boolean
fire(String orderId)
Deprecated.boolean
fire2(String orderId, boolean requireAllItems)
Deprecated.List<String>
getLineItemsToFire(String orderId)
Deprecated.Order
getOrder(String orderId)
Deprecated.List<Order>
getOrders(List<String> orderIds)
Deprecated.List<Payment>
getPendingPayments()
Deprecated.protected String
getServiceIntentAction()
Deprecated.protected String
getServiceIntentPackage()
Deprecated.The package which hosts the service to connect to.protected int
getServiceIntentVersion()
Deprecated.Connectors that are versioned include a version number in the action returned byServiceConnector.getServiceIntentAction()
instead of using this mechanism.protected IOrderService
getServiceInterface(IBinder iBinder)
Deprecated.protected void
notifyServiceConnected(ServiceConnector.OnServiceConnectedListener client)
Deprecated.Payment
pay(String orderId, PaymentRequest paymentRequest, boolean isAllowOffline, String note)
Deprecated.Not available to non-Clover apps.boolean
refire(String orderId)
Deprecated.Refund
refund(String orderId, Refund refund)
Deprecated.Not available to non-Clover apps.void
removeOnOrderChangedListener(OrderV3Connector.OnOrderUpdateListener listener)
Deprecated.void
removeOnOrderChangedListener(OrderV3Connector.OnOrderUpdateListener2 listener)
Deprecated.Order
removePayment(String orderId, String paymentId)
Deprecated.Not available to non-Clover apps.Order
setLineItemNote(String orderId, String lineItemId, String note)
Deprecated.List<LineItem>
updateLineItems(String orderId, List<LineItem> lineItems)
Deprecated.Order
updateOrder(Order order)
Deprecated.Payment
updatePayment(String orderId, Payment payment)
Deprecated.Not available to non-Clover apps.CreditRefund
vaultedCreditRefund(String orderId, String creditId)
Deprecated.Order
voidPayment(String orderId, String paymentId)
Order
voidPayment2(String orderId, String paymentId, String iccContainer, VoidReason reason, String source)
Deprecated.Not available to non-Clover apps.Order
voidPaymentCardPresent(String orderId, String paymentId, String iccContainer, PaymentRequestCardDetails card, TransactionInfo transactionInfo, VoidReason reason, String source)
Deprecated.Not available to non-Clover apps.Order
voidPaymentWithCard(String orderId, String paymentId, String iccContainer, PaymentRequestCardDetails card, VoidReason reason, String source)
Deprecated.Not available to non-Clover apps.-
Methods inherited from class com.clover.sdk.v1.ServiceConnector
connect, execute, execute, execute, execute, getService, getStartIntent, isConnected, isInstalled, notifyServiceDisconnected, onServiceConnected, onServiceDisconnected, postResults, throwOnFailure, waitForConnection
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface android.content.ServiceConnection
onBindingDied, onNullBinding
-
-
-
-
Constructor Detail
-
OrderV3Connector
public OrderV3Connector(Context context, Account account, ServiceConnector.OnServiceConnectedListener client)
Deprecated.Constructs a new OrderConnector object.- Parameters:
context
- the Context object, required for establishing a connection to the service.account
- the Account to use with the service.client
- an optional object implementing the OnServiceConnectedListener interface, for receiving connection notifications from the service.
-
-
Method Detail
-
getServiceIntentAction
protected String getServiceIntentAction()
Deprecated.- Specified by:
getServiceIntentAction
in classServiceConnector<IOrderService>
-
getServiceIntentPackage
protected String getServiceIntentPackage()
Deprecated.Description copied from class:ServiceConnector
The package which hosts the service to connect to. Returning null is OK for api target < 21. Once you try to build with 21 or higher returning null will cause an illegal argument exception- Overrides:
getServiceIntentPackage
in classServiceConnector<IOrderService>
-
getServiceIntentVersion
protected int getServiceIntentVersion()
Deprecated.Description copied from class:ServiceConnector
Connectors that are versioned include a version number in the action returned byServiceConnector.getServiceIntentAction()
instead of using this mechanism.- Overrides:
getServiceIntentVersion
in classServiceConnector<IOrderService>
-
getServiceInterface
protected IOrderService getServiceInterface(IBinder iBinder)
Deprecated.- Specified by:
getServiceInterface
in classServiceConnector<IOrderService>
-
notifyServiceConnected
protected void notifyServiceConnected(ServiceConnector.OnServiceConnectedListener client)
Deprecated.- Overrides:
notifyServiceConnected
in classServiceConnector<IOrderService>
-
disconnect
public void disconnect()
Deprecated.- Overrides:
disconnect
in classServiceConnector<IOrderService>
-
getOrder
public Order getOrder(String orderId) throws RemoteException, ClientException, ServiceException, BindingException
Deprecated.
-
getOrders
public List<Order> getOrders(List<String> orderIds) throws RemoteException, ClientException, ServiceException, BindingException
Deprecated.
-
getPendingPayments
public List<Payment> getPendingPayments() throws RemoteException, ClientException, ServiceException, BindingException
Deprecated.
-
createOrder
public Order createOrder(Order order) throws RemoteException, ClientException, ServiceException, BindingException
Deprecated.
-
updateOrder
public Order updateOrder(Order order) throws RemoteException, ClientException, ServiceException, BindingException
Deprecated.
-
deleteOrder
public boolean deleteOrder(String orderId) throws RemoteException, ClientException, ServiceException, BindingException
Deprecated.
-
deleteOrderOnline
public boolean deleteOrderOnline(String orderId) throws RemoteException, ClientException, ServiceException, BindingException
Deprecated.
-
addServiceCharge
public Order addServiceCharge(String orderId, String serviceChargeId) throws RemoteException, ClientException, ServiceException, BindingException
Deprecated.
-
deleteServiceCharge
public Order deleteServiceCharge(String orderId, String serviceChargeId) throws RemoteException, ClientException, ServiceException, BindingException
Deprecated.
-
addFixedPriceLineItem
public LineItem addFixedPriceLineItem(String orderId, String itemId, String binName, String userData) throws RemoteException, ClientException, ServiceException, BindingException
Deprecated.
-
addPerUnitLineItem
public LineItem addPerUnitLineItem(String orderId, String itemId, int unitQuantity, String binName, String userData) throws RemoteException, ClientException, ServiceException, BindingException
Deprecated.
-
addVariablePriceLineItem
public LineItem addVariablePriceLineItem(String orderId, String itemId, long price, String binName, String userData) throws RemoteException, ClientException, ServiceException, BindingException
Deprecated.
-
addCustomLineItem
public LineItem addCustomLineItem(String orderId, LineItem lineItem, boolean isTaxable) throws RemoteException, ClientException, ServiceException, BindingException
Deprecated.
-
updateLineItems
public List<LineItem> updateLineItems(String orderId, List<LineItem> lineItems) throws RemoteException, ClientException, ServiceException, BindingException
Deprecated.
-
deleteLineItems
public Order deleteLineItems(String orderId, List<String> lineItemIds) throws RemoteException, ClientException, ServiceException, BindingException
Deprecated.
-
copyLineItems
@Deprecated public List<LineItem> copyLineItems(String sourceOrderId, String destinationOrderId, List<String> srclineItemIds) throws RemoteException, ClientException, ServiceException, BindingException
Deprecated.
-
createLineItemsFrom
public Map<String,List<LineItem>> createLineItemsFrom(String sourceOrderId, String destinationOrderId, List<String> srclineItemIds) throws RemoteException, ClientException, ServiceException, BindingException
Deprecated.
-
setLineItemNote
public Order setLineItemNote(String orderId, String lineItemId, String note) throws RemoteException, ClientException, ServiceException, BindingException
Deprecated.
-
addLineItemModification
public Order addLineItemModification(String orderId, String lineItemId, Modifier modifier) throws RemoteException, ClientException, ServiceException, BindingException
Deprecated.
-
addBatchLineItemModification
public Order addBatchLineItemModification(String orderId, List<String> lineItemIds, Modifier modifier, int quantity) throws RemoteException, ClientException, ServiceException, BindingException
Deprecated.
-
deleteLineItemModifications
public Order deleteLineItemModifications(String orderId, String lineItemId, List<String> modificationIds) throws RemoteException, ClientException, ServiceException, BindingException
Deprecated.
-
exchangeItem
public LineItem exchangeItem(String orderId, String oldLineItemId, String itemId, String binName, String userData) throws RemoteException, ClientException, ServiceException, BindingException
Deprecated.
-
addDiscount
public Order addDiscount(String orderId, Discount discount) throws RemoteException, ClientException, ServiceException, BindingException
Deprecated.
-
addDiscount2
public Discount addDiscount2(String orderId, Discount discount) throws RemoteException, ClientException, ServiceException, BindingException
Deprecated.
-
deleteDiscounts
public Order deleteDiscounts(String orderId, List<String> discountIds) throws RemoteException, ClientException, ServiceException, BindingException
Deprecated.
-
addLineItemDiscount
public Order addLineItemDiscount(String orderId, String lineItemId, Discount discount) throws RemoteException, ClientException, ServiceException, BindingException
Deprecated.
-
addLineItemDiscount2
public Discount addLineItemDiscount2(String orderId, String lineItemId, Discount discount) throws RemoteException, ClientException, ServiceException, BindingException
Deprecated.
-
addBatchLineItemDiscounts
public Order addBatchLineItemDiscounts(String orderId, List<String> lineItemIds, List<Discount> discounts) throws RemoteException, ClientException, ServiceException, BindingException
Deprecated.
-
deleteLineItemDiscounts
public Order deleteLineItemDiscounts(String orderId, String lineItemId, List<String> discountIds) throws RemoteException, ClientException, ServiceException, BindingException
Deprecated.
-
addTip
public Order addTip(String orderId, String paymentId, long amount, boolean online) throws RemoteException, ClientException, ServiceException, BindingException
Deprecated.Not available to non-Clover apps.
-
pay
public Payment pay(String orderId, PaymentRequest paymentRequest, boolean isAllowOffline, String note) throws RemoteException, ClientException, ServiceException, BindingException
Deprecated.Not available to non-Clover apps.
-
addPayment
public Order addPayment(String orderId, Payment payment, List<LineItem> lineItems) throws RemoteException, ClientException, ServiceException, BindingException
Deprecated.Not available to non-Clover apps.
-
addPayment2
public Order addPayment2(String orderId, Payment payment, List<LineItem> lineItems) throws RemoteException, ClientException, ServiceException, BindingException
Deprecated.Not available to non-Clover apps.
-
removePayment
public Order removePayment(String orderId, String paymentId) throws RemoteException, ClientException, ServiceException, BindingException
Deprecated.Not available to non-Clover apps.
-
voidPayment
@Deprecated public Order voidPayment(String orderId, String paymentId) throws RemoteException, ClientException, ServiceException, BindingException
Deprecated.Not available to non-Clover apps.
-
voidPaymentWithCard
public Order voidPaymentWithCard(String orderId, String paymentId, String iccContainer, PaymentRequestCardDetails card, VoidReason reason, String source) throws RemoteException, ClientException, ServiceException, BindingException
Deprecated.Not available to non-Clover apps.
-
voidPaymentCardPresent
public Order voidPaymentCardPresent(String orderId, String paymentId, String iccContainer, PaymentRequestCardDetails card, TransactionInfo transactionInfo, VoidReason reason, String source) throws RemoteException, ClientException, ServiceException, BindingException
Deprecated.Not available to non-Clover apps.
-
voidPayment2
public Order voidPayment2(String orderId, String paymentId, String iccContainer, VoidReason reason, String source) throws RemoteException, ClientException, ServiceException, BindingException
Deprecated.Not available to non-Clover apps.
-
addCredit
public Credit addCredit(String orderId, Credit credit) throws RemoteException, ClientException, ServiceException, BindingException
Deprecated.Not available to non-Clover apps.
-
deleteCredit
public Order deleteCredit(String orderId, String creditId) throws RemoteException, ClientException, ServiceException, BindingException
Deprecated.
-
addRefund
public Refund addRefund(String orderId, Refund refund) throws RemoteException, ClientException, ServiceException, BindingException
Deprecated.Not available to non-Clover apps.
-
deleteRefund
public Order deleteRefund(String orderId, String refundId) throws RemoteException, ClientException, ServiceException, BindingException
Deprecated.
-
addCreditRefund
public CreditRefund addCreditRefund(String orderId, CreditRefund creditRefund) throws RemoteException, ClientException, ServiceException, BindingException
Deprecated.Not available to non-Clover apps.
-
deleteCreditRefund
public Order deleteCreditRefund(String orderId, String creditRefundId) throws RemoteException, ClientException, ServiceException, BindingException
Deprecated.
-
fire
public boolean fire(String orderId) throws RemoteException, ClientException, ServiceException, BindingException
Deprecated.
-
updatePayment
public Payment updatePayment(String orderId, Payment payment) throws RemoteException, ClientException, ServiceException, BindingException
Deprecated.Not available to non-Clover apps.
-
addOnOrderChangedListener
public void addOnOrderChangedListener(OrderV3Connector.OnOrderUpdateListener listener)
Deprecated.
-
removeOnOrderChangedListener
public void removeOnOrderChangedListener(OrderV3Connector.OnOrderUpdateListener listener)
Deprecated.
-
addRefundOffline
public Refund addRefundOffline(String orderId, Refund refund) throws RemoteException, ClientException, ServiceException, BindingException
Deprecated.Not available to non-Clover apps.
-
refund
public Refund refund(String orderId, Refund refund) throws RemoteException, ClientException, ServiceException, BindingException
Deprecated.Not available to non-Clover apps.
-
addOnOrderChangedListener
public void addOnOrderChangedListener(OrderV3Connector.OnOrderUpdateListener2 listener)
Deprecated.
-
removeOnOrderChangedListener
public void removeOnOrderChangedListener(OrderV3Connector.OnOrderUpdateListener2 listener)
Deprecated.
-
fire2
public boolean fire2(String orderId, boolean requireAllItems) throws RemoteException, ClientException, ServiceException, BindingException
Deprecated.
-
createLineItemsFrom2
public Map<String,List<LineItem>> createLineItemsFrom2(String sourceOrderId, String destinationOrderId, List<String> srclineItemIds, boolean copyPrinted, boolean broadcastLineItems) throws RemoteException, ClientException, ServiceException, BindingException
Deprecated.
-
deleteOrder2
public boolean deleteOrder2(String orderId, boolean allowDeleteIfLineItemPrinted) throws RemoteException, ClientException, ServiceException, BindingException
Deprecated.
-
getLineItemsToFire
public List<String> getLineItemsToFire(String orderId) throws RemoteException, ServiceException, BindingException, ClientException
Deprecated.
-
refire
public boolean refire(String orderId) throws RemoteException, ServiceException, BindingException, ClientException
Deprecated.
-
deleteOrderOnline2
@Deprecated public boolean deleteOrderOnline2(String orderId, boolean usePermissionForOrderDeletions) throws RemoteException, ClientException, ServiceException, BindingException
Deprecated.Not available to non-Clover apps.
-
deleteOrder3
public boolean deleteOrder3(String orderId, boolean deleteOnline, boolean allowDeleteIfLineItemPrinted, boolean allowDeleteIfNoEmployeePermission) throws RemoteException, ClientException, ServiceException, BindingException
Deprecated.Not available to non-Clover apps.
-
vaultedCreditRefund
public CreditRefund vaultedCreditRefund(String orderId, String creditId) throws RemoteException, ClientException, ServiceException, BindingException
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
ClientException
ServiceException
BindingException
-
-