From 4fa891564a98c5f992627af34b1760d32327934e Mon Sep 17 00:00:00 2001 From: Joshua Harms Date: Tue, 2 Jul 2024 01:29:01 -0500 Subject: [PATCH] Deprecate CountryService for 2024-07 --- ShopifySharp/Services/Country/CountryService.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ShopifySharp/Services/Country/CountryService.cs b/ShopifySharp/Services/Country/CountryService.cs index f10e2a754..9afee60ea 100644 --- a/ShopifySharp/Services/Country/CountryService.cs +++ b/ShopifySharp/Services/Country/CountryService.cs @@ -1,3 +1,4 @@ +using System; using ShopifySharp.Filters; using ShopifySharp.Infrastructure; using ShopifySharp.Lists; @@ -11,6 +12,7 @@ namespace ShopifySharp; /// /// A service for manipulating Shopify countries. /// +[Obsolete("The Country Service REST endpoint has been deprecated by Shopify and will be removed in a future version of ShopifySharp. Shopify recommends you use the GraphQL equivalent instead.")] public class CountryService : ShopifyService, ICountryService { /// @@ -70,4 +72,4 @@ public virtual async Task DeleteAsync(long countryId, CancellationToken cancella await ExecuteRequestAsync(req, HttpMethod.Delete, cancellationToken); } -} \ No newline at end of file +}