getAccountDetails method

Future<AccountDetailsModel> getAccountDetails(
  1. int customerId, {
  2. required Object authorization,
})

Parameters:

  • int customerId (required):

  • Object authorization:

Implementation

Future<AccountDetailsModel> getAccountDetails(
  int customerId, {
  required Object authorization,
}) async {
  final response = await _getAccountDetailsWithHttpInfo(
    customerId,
    authorization: authorization,
  );
  if (response.statusCode >= HttpStatus.badRequest) {
    throw ApiException(response.statusCode, await _decodeBodyBytes(response));
  }

  return await apiClient.deserializeAsync(
    await _decodeBodyBytes(response),
    'AccountDetailsModel',
  ) as AccountDetailsModel;
}