rawFindMessagesByTransportGuidSentDateWithHttpInfo method

Future<Response> rawFindMessagesByTransportGuidSentDateWithHttpInfo({
  1. String? transportGuid,
  2. int? from,
  3. int? to,
  4. String? startKey,
  5. String? startDocumentId,
  6. int? limit,
  7. String? hcpId,
})

Get all messages starting by a prefix between two date

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> rawFindMessagesByTransportGuidSentDateWithHttpInfo({ String? transportGuid, int? from, int? to, String? startKey, String? startDocumentId, int? limit, String? hcpId, }) async {
  // ignore: prefer_const_declarations
  final path = r'/rest/v1/message/byTransportGuidSentDate';

  // ignore: prefer_final_locals
  Object? postBody;

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

  if (transportGuid != null) {
    queryParams.addAll(_queryParams('', 'transportGuid', transportGuid));
  }
  if (from != null) {
    queryParams.addAll(_queryParams('', 'from', from));
  }
  if (to != null) {
    queryParams.addAll(_queryParams('', 'to', to));
  }
  if (startKey != null) {
    queryParams.addAll(_queryParams('', 'startKey', startKey));
  }
  if (startDocumentId != null) {
    queryParams.addAll(_queryParams('', 'startDocumentId', startDocumentId));
  }
  if (limit != null) {
    queryParams.addAll(_queryParams('', 'limit', limit));
  }
  if (hcpId != null) {
    queryParams.addAll(_queryParams('', 'hcpId', hcpId));
  }

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


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