rawListAllHcpsByStatusWithHttpInfo method
Future<Response>
rawListAllHcpsByStatusWithHttpInfo(
- String status,
- ListOfIdsDto listOfIdsDto, {
- int? from,
- int? to,
Gets all invoices per status
Note: This method returns the HTTP Response
.
Parameters:
-
String status (required):
-
ListOfIdsDto listOfIdsDto (required):
-
int from:
-
int to:
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,
);
}