rawListInvoicesByHcpartySendingModeStatusDateWithHttpInfo method

Future<Response> rawListInvoicesByHcpartySendingModeStatusDateWithHttpInfo(
  1. String hcPartyId, {
  2. String? sendingMode,
  3. String? status,
  4. int? from,
  5. int? to,
})

Get all invoices by author, by sending mode, by status and by date

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> rawListInvoicesByHcpartySendingModeStatusDateWithHttpInfo(String hcPartyId, { String? sendingMode, String? status, int? from, int? to, }) async {
  // ignore: prefer_const_declarations
  final path = r'/rest/v1/invoice/byHcpartySendingModeStatusDate/{hcPartyId}'
      .replaceAll('{hcPartyId}', hcPartyId);

  // ignore: prefer_final_locals
  Object? postBody;

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

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

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


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