Exemple #1
0
 /// <summary>
 /// Gets a count of all of the shop's orders.
 /// </summary>
 /// <param name="filter">Options for filtering the count.</param>
 /// <param name="cancellationToken">Cancellation Token</param>
 /// <returns>The count of all orders for the shop.</returns>
 public virtual async Task <int> CountAsync(OrderCountFilter filter = null, CancellationToken cancellationToken = default)
 {
     return(await ExecuteGetAsync <int>("orders/count.json", "count", filter, cancellationToken));
 }
 /// <summary>
 /// Gets a count of all of the shop's orders.
 /// </summary>
 /// <param name="filter">Options for filtering the count.</param>
 /// <returns>The count of all orders for the shop.</returns>
 public virtual async Task <int> CountAsync(OrderCountFilter filter = null)
 {
     return(await ExecuteGetAsync <int>("orders/count.json", "count", filter));
 }