Skip to content

Commit

Permalink
Add missing IFulfillmentService.CancelAsync
Browse files Browse the repository at this point in the history
  • Loading branch information
nozzlegear committed Jul 13, 2023
1 parent d93fd67 commit 02a16a2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
6 changes: 1 addition & 5 deletions ShopifySharp/Services/Fulfillment/FulfillmentService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,7 @@ public virtual async Task<Fulfillment> UpdateTrackingAsync(long fulfillmentId, F
return response.Result;
}

/// <summary>
/// Cancels a pending fulfillment with the given id.
/// </summary>
/// <param name="fulfillmentId">The fulfillment's id.</param>
/// <param name="cancellationToken">Cancellation Token</param>
/// <inheritdoc />
public virtual async Task<Fulfillment> CancelAsync(long fulfillmentId, CancellationToken cancellationToken = default)
{
var req = PrepareRequest($"fulfillments/{fulfillmentId}/cancel.json");
Expand Down
7 changes: 7 additions & 0 deletions ShopifySharp/Services/Fulfillment/IFulfillmentService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,12 @@ public interface IFulfillmentService : IShopifyService
/// <param name="cancellationToken">Cancellation Token</param>
/// <returns>The updated <see cref="Fulfillment"/>.</returns>
Task<Fulfillment> UpdateTrackingAsync(long fulfillmentId, FulfillmentShipping fulfillment, CancellationToken cancellationToken = default);

/// <summary>
/// Cancels a pending fulfillment with the given id.
/// </summary>
/// <param name="fulfillmentId">The fulfillment's id.</param>
/// <param name="cancellationToken">Cancellation Token</param>
Task<Fulfillment> CancelAsync(long fulfillmentId, CancellationToken cancellationToken = default);
}
}

0 comments on commit 02a16a2

Please sign in to comment.