updateOrder method

Future<WooOrder> updateOrder({
  1. Map? orderMap,
  2. int? id,
})

Implementation

Future<WooOrder> updateOrder({Map? orderMap, int? id}) async {
  _printToLog('Updating Order With Payload : ' + orderMap.toString());
  _setApiResourceUrl(
    path: 'orders/' + id.toString(),
  );
  final response = await put(queryUri.toString(), orderMap);
  return WooOrder.fromJson(response);
}