getCustomerById method
Returns a WooCustomer, whoose id
is specified.
Implementation
Future<WooCustomer> getCustomerById({required int? id}) async {
WooCustomer customer;
_setApiResourceUrl(
path: 'customers/' + id.toString(),
);
final response = await get(queryUri.toString());
customer = WooCustomer.fromJson(response);
return customer;
}