So we trying to update the order type of an order through the clover sdk.
We can do this through the Rest Api by using the following api call.
https://apisandbox.dev.clover.com/v3/merchants/mid/orders/oId?expand=orderType
{
"orderType":{
"id":"oTId"
}
}
But we want to do this using the order connector. We have tried doing something similar to this.
OrderConnector mOrderConnector = new OrderConnector(context, AccountData.sAccount, null); OrderType orderType = new OrderType(); orderType.setId(oTid); mOrders.get(i).setOrderType(orderType); mOrderConnector.updateOrder(mOrders.get(i));
mOrders being a a list of orders retrieved from the sdk.
We are not getting any error messages or exceptions being thrown. Can we actually do this via the order connector?