/// <summary> /// Returns a list of all <see cref="Customer"/> that are in the saved search. /// </summary> /// <param name="customerSavedSearchId">Id of the Customer Saved Search.</param> /// <param name="filter">Options for filtering the result.</param> /// <param name="cancellationToken">Cancellation Token</param> public virtual async Task <IEnumerable <Entities.Customer> > GetCustomersFromSavedSearchAsync(long customerSavedSearchId, CustomerSavedSearchFilter filter = null, CancellationToken cancellationToken = default) { return(await ExecuteGetAsync <List <Entities.Customer> >($"{RootResource}/{customerSavedSearchId}/customers.json", "customers", filter, cancellationToken)); }
/// <summary> /// Returns a list of all <see cref="Customer"/> that are in the saved search. /// </summary> /// <param name="customerSavedSearchId">Id of the Customer Saved Search.</param> /// <param name="filter">Options for filtering the result.</param> public virtual async Task <IEnumerable <Customer> > GetCustomersFromSavedSearchAsync(long customerSavedSearchId, CustomerSavedSearchFilter filter = null) { return(await ExecuteGetAsync <List <Customer> >($"{RootResource}/{customerSavedSearchId}/customers.json", "customers", filter)); }