oldUpdateCustomer method
Updates an existing Customer and returns the WooCustomer object.
Related endpoint: https://woocommerce.github.io/woocommerce-rest-api-docs/#customer-properties.
Implementation
Future<WooCustomer> oldUpdateCustomer(
{required WooCustomer wooCustomer}) async {
_printToLog(
'Updating customer With customerId : ' + wooCustomer.id.toString());
_setApiResourceUrl(
path: 'customers/' + wooCustomer.id.toString(),
);
final response = await put(queryUri.toString(), wooCustomer.toJson());
return WooCustomer.fromJson(response);
}