rawListAllHcpsByStatusWithHttpInfo method

Future<Response> rawListAllHcpsByStatusWithHttpInfo(
  1. String status,
  2. ListOfIdsDto listOfIdsDto, {
  3. int? from,
  4. int? to,
})

Gets all invoices per status

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> rawListAllHcpsByStatusWithHttpInfo(String status, ListOfIdsDto listOfIdsDto, { int? from, int? to, }) async {
  // ignore: prefer_const_declarations
  final path = r'/rest/v1/invoice/allHcpsByStatus/{status}'.replaceAll('{status}', status);

  // ignore: prefer_final_locals
  Object? postBody = listOfIdsDto;

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

  if (from != null) {
    queryParams.addAll(_queryParams('', 'from', from));
  }
  if (to != null) {
    queryParams.addAll(_queryParams('', 'to', to));
  }

  const authNames = <String>[r'basicSchema'];
  const contentTypes = <String>['application/json'];


  return apiClient.invokeAPI(
    path,
    'POST',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
    authNames,
  );
}