rawListInvoicesByHcPartySentMediumTypeInvoiceTypeSentDateWithHttpInfo method

Future<Response> rawListInvoicesByHcPartySentMediumTypeInvoiceTypeSentDateWithHttpInfo(
  1. String hcPartyId,
  2. String sentMediumType,
  3. String invoiceType,
  4. bool sent, {
  5. int? from,
  6. int? to,
})

List invoices by type, sent or unsent

Keys have to delimited by coma

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> rawListInvoicesByHcPartySentMediumTypeInvoiceTypeSentDateWithHttpInfo(String hcPartyId, String sentMediumType, String invoiceType, bool sent, { int? from, int? to, }) async {
  // ignore: prefer_const_declarations
  final path = r'/rest/v1/invoice/byHcParty/{hcPartyId}/mediumType/{sentMediumType}/invoiceType/{invoiceType}/sent/{sent}'
      .replaceAll('{hcPartyId}', hcPartyId)
      .replaceAll('{sentMediumType}', sentMediumType)
      .replaceAll('{invoiceType}', invoiceType)
      .replaceAll('{sent}', sent.toString());

  // ignore: prefer_final_locals
  Object? postBody;

  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>[];


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