oldUpdateOrder method

Future<WooOrder> oldUpdateOrder(
  1. WooOrder order
)

Updates an existing order and returns the WooOrder object.

Related endpoint: https://woocommerce.github.io/woocommerce-rest-api-docs/#orders.

Implementation

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