diff --git a/ShopifySharp/Services/Fulfillment/FulfillmentService.cs b/ShopifySharp/Services/Fulfillment/FulfillmentService.cs index ef5a0fe0..7284faf9 100644 --- a/ShopifySharp/Services/Fulfillment/FulfillmentService.cs +++ b/ShopifySharp/Services/Fulfillment/FulfillmentService.cs @@ -68,11 +68,7 @@ public virtual async Task UpdateTrackingAsync(long fulfillmentId, F return response.Result; } - /// - /// Cancels a pending fulfillment with the given id. - /// - /// The fulfillment's id. - /// Cancellation Token + /// public virtual async Task CancelAsync(long fulfillmentId, CancellationToken cancellationToken = default) { var req = PrepareRequest($"fulfillments/{fulfillmentId}/cancel.json"); diff --git a/ShopifySharp/Services/Fulfillment/IFulfillmentService.cs b/ShopifySharp/Services/Fulfillment/IFulfillmentService.cs index e791ceca..bf12aee8 100644 --- a/ShopifySharp/Services/Fulfillment/IFulfillmentService.cs +++ b/ShopifySharp/Services/Fulfillment/IFulfillmentService.cs @@ -65,5 +65,12 @@ public interface IFulfillmentService : IShopifyService /// Cancellation Token /// The updated . Task UpdateTrackingAsync(long fulfillmentId, FulfillmentShipping fulfillment, CancellationToken cancellationToken = default); + + /// + /// Cancels a pending fulfillment with the given id. + /// + /// The fulfillment's id. + /// Cancellation Token + Task CancelAsync(long fulfillmentId, CancellationToken cancellationToken = default); } } \ No newline at end of file