getCustomer method

Future<Customer> getCustomer({
  1. required String customerId,
})

Implementation

Future<Customer> getCustomer({required String customerId}) async {
  try {
    return await AnsaFlutterSdkPlatform.instance.getCustomer(
      customerId: customerId,
    );
  } catch (e) {
    _logger.error('Failed to get customer', e);
    rethrow;
  }
}