rawFindContactsByOpeningDateWithHttpInfo method

Future<Response> rawFindContactsByOpeningDateWithHttpInfo(
  1. int startKey,
  2. int endKey,
  3. String hcpartyid, {
  4. String? startDocumentId,
  5. int? limit,
})

List contacts by opening date parties with(out) pagination

Returns a list of contacts.

Note: This method returns the HTTP Response.

Parameters:

  • int startKey (required): The contact openingDate

  • int endKey (required): The contact max openingDate

  • String hcpartyid (required): hcpartyid

  • String startDocumentId: A contact party document ID

  • int limit: Number of rows

Implementation

Future<Response> rawFindContactsByOpeningDateWithHttpInfo(int startKey, int endKey, String hcpartyid, { String? startDocumentId, int? limit, }) async {
  // ignore: prefer_const_declarations
  final path = r'/rest/v1/contact/byOpeningDate';

  // ignore: prefer_final_locals
  Object? postBody;

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

  queryParams.addAll(_queryParams('', 'startKey', startKey));
  queryParams.addAll(_queryParams('', 'endKey', endKey));
  queryParams.addAll(_queryParams('', 'hcpartyid', hcpartyid));
  if (startDocumentId != null) {
    queryParams.addAll(_queryParams('', 'startDocumentId', startDocumentId));
  }
  if (limit != null) {
    queryParams.addAll(_queryParams('', 'limit', limit));
  }

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


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