updateCustomer method

Future<WooCustomer> updateCustomer({
  1. required int id,
  2. Map? data,
})

Implementation

Future<WooCustomer> updateCustomer({required int id, Map? data}) async {
  _printToLog('Updating customer With customerId : ' + id.toString());
  _setApiResourceUrl(
    path: 'customers/' + id.toString(),
  );
  final response = await put(queryUri.toString(), data);
  return WooCustomer.fromJson(response);
}