Exemplo n.º 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(CheckoutCountFilter filter = null, CancellationToken cancellationToken = default)
 {
     return(await ExecuteGetAsync <int>("checkouts/count.json", "count", filter, cancellationToken));
 }
Exemplo n.º 2
0
 /// <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(CheckoutCountFilter filter = null)
 {
     return(await ExecuteGetAsync <int>("checkouts/count.json", "count", filter));
 }