/// <summary>
        /// Asynchronously Retrieve Current Totals Report, with support for cancellation.
        /// </summary>
        /// <remarks>
        /// Retrieves a snapshot report for the current totals (shift and day) along with additional
        /// information provided for those who are currently on the clock.
        /// </remarks>
        /// <param name="filter">
        /// An instance of the <see cref="CurrentTotalsReportFilter"/> class, for narrowing down the results.
        /// </param>
        /// <param name="cancellationToken">
        /// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
        /// </param>
        /// <returns>
        /// An instance of the <see cref="CurrentTotalsReport"/> class, along with
        /// an output instance of the <see cref="ResultsMeta"/> class containing additional data.
        /// </returns>
        public async Task <(CurrentTotalsReport, ResultsMeta)> GetCurrentTotalsReportAsync(
            CurrentTotalsReportFilter filter,
            CancellationToken cancellationToken)
        {
            var context = new GetReportContext <CurrentTotalsReport>(EndpointName.CurrentTotalsReports, filter);

            await ExecuteOperationAsync(context, cancellationToken).ConfigureAwait(false);

            return(context.Results, context.ResultsMeta);
        }
 /// <summary>
 /// Retrieve Current Totals Report.
 /// </summary>
 /// <remarks>
 /// Retrieves a snapshot report for the current totals (shift and day) along with additional
 /// information provided for those who are currently on the clock.
 /// </remarks>
 /// <param name="filter">
 /// An instance of the <see cref="CurrentTotalsReportFilter"/> class, for narrowing down the results.
 /// </param>
 /// <returns>
 /// An instance of the <see cref="CurrentTotalsReport"/> class, along with
 /// an output instance of the <see cref="ResultsMeta"/> class containing additional data.
 /// </returns>
 public (CurrentTotalsReport, ResultsMeta) GetCurrentTotalsReport(CurrentTotalsReportFilter filter)
 {
     return(AsyncUtil.RunSync(() => GetCurrentTotalsReportAsync(filter)));
 }
 /// <summary>
 /// Asynchronously Retrieve Current Totals Report.
 /// </summary>
 /// <remarks>
 /// Retrieves a snapshot report for the current totals (shift and day) along with additional
 /// information provided for those who are currently on the clock.
 /// </remarks>
 /// <param name="filter">
 /// An instance of the <see cref="CurrentTotalsReportFilter"/> class, for narrowing down the results.
 /// </param>
 /// <returns>
 /// An instance of the <see cref="CurrentTotalsReport"/> class, along with
 /// an output instance of the <see cref="ResultsMeta"/> class containing additional data.
 /// </returns>
 public async Task <(CurrentTotalsReport, ResultsMeta)> GetCurrentTotalsReportAsync(
     CurrentTotalsReportFilter filter)
 {
     return(await GetCurrentTotalsReportAsync(filter, default).ConfigureAwait(false));
 }