getCustomerWithHttpInfo method

Future<Response> getCustomerWithHttpInfo(
  1. int customerId, {
  2. Object? authorization,
})

Performs an HTTP 'GET /api/v1/Customers/{customerId}' operation and returns the Response. Parameters:

  • int customerId (required):

  • Object authorization:

Implementation

Future<Response> getCustomerWithHttpInfo(
  int customerId, {
  Object? authorization,
}) async {
  // ignore: prefer_const_declarations
  final path = r'/api/v1/Customers/{customerId}'
      .replaceAll('{customerId}', customerId.toString());

  // ignore: prefer_final_locals
  Object? postBody;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  if (authorization != null) {
    headerParams[r'authorization'] = parameterToString(authorization);
  }

  const authNames = <String>[];
  const contentTypes = <String>[];

  return apiClient.invokeAPI(
    path,
    'GET',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes[0],
    authNames,
  );
}