/// <summary> /// Gets a count of all of the order's fulfillments. /// </summary> /// <param name="orderId">The order id to which the fulfillments belong.</param> /// <param name="filter">Options for filtering the count.</param> /// <param name="cancellationToken">Cancellation Token</param> /// <returns>The count of all fulfillments for the shop.</returns> public virtual async Task <int> CountAsync(long orderId, FulfillmentCountFilter filter = null, CancellationToken cancellationToken = default) { return(await ExecuteGetAsync <int>($"orders/{orderId}/fulfillments/count.json", "count", filter, cancellationToken)); }
/// <summary> /// Gets a count of all of the order's fulfillments. /// </summary> /// <param name="orderId">The order id to which the fulfillments belong.</param> /// <param name="filter">Options for filtering the count.</param> /// <returns>The count of all fulfillments for the shop.</returns> public virtual async Task <int> CountAsync(long orderId, FulfillmentCountFilter filter = null) { return(await ExecuteGetAsync <int>($"orders/{orderId}/fulfillments/count.json", "count", filter)); }