From 3dbff32d546d08740e85bcabc7d6325013a8d66d Mon Sep 17 00:00:00 2001 From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com> Date: Fri, 2 Aug 2024 09:30:07 +0000 Subject: [PATCH] build(codegen): updating SDK --- changes.md | 19 +++ .../Me/ByProjectKeyMeCartsKeyByKeyTest.cs | 117 ------------------ .../Me/ByProjectKeyMeQuoteRequestsByIDTest.cs | 35 ------ ...ByProjectKeyMeQuoteRequestsKeyByKeyTest.cs | 35 ------ .../Me/ByProjectKeyMeCartsKeyByKeyDelete.cs | 84 ------------- .../Me/ByProjectKeyMeCartsKeyByKeyGet.cs | 73 ----------- .../Me/ByProjectKeyMeCartsKeyByKeyHead.cs | 62 ---------- .../Me/ByProjectKeyMeCartsKeyByKeyPost.cs | 93 -------------- ...ProjectKeyMeCartsKeyByKeyRequestBuilder.cs | 48 ------- .../Me/ByProjectKeyMeCartsRequestBuilder.cs | 5 - .../ByProjectKeyMeQuoteRequestsByIDDelete.cs | 84 ------------- ...ectKeyMeQuoteRequestsByIDRequestBuilder.cs | 5 - ...ProjectKeyMeQuoteRequestsKeyByKeyDelete.cs | 84 ------------- ...eyMeQuoteRequestsKeyByKeyRequestBuilder.cs | 5 - references.txt | 1 + 15 files changed, 20 insertions(+), 730 deletions(-) delete mode 100644 commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/Me/ByProjectKeyMeCartsKeyByKeyTest.cs delete mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Me/ByProjectKeyMeCartsKeyByKeyDelete.cs delete mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Me/ByProjectKeyMeCartsKeyByKeyGet.cs delete mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Me/ByProjectKeyMeCartsKeyByKeyHead.cs delete mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Me/ByProjectKeyMeCartsKeyByKeyPost.cs delete mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Me/ByProjectKeyMeCartsKeyByKeyRequestBuilder.cs delete mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Me/ByProjectKeyMeQuoteRequestsByIDDelete.cs delete mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Me/ByProjectKeyMeQuoteRequestsKeyByKeyDelete.cs diff --git a/changes.md b/changes.md index 9133283ee6a..b56e87d6883 100644 --- a/changes.md +++ b/changes.md @@ -1,5 +1,12 @@ **Api changes** +
+Removed Resource(s) + +- :warning: removed resource `/{projectKey}/me/carts/key={key}` +
+ +
Added Enum(s) @@ -8,6 +15,18 @@ - added enum `customer-group` to type `CustomFieldReferenceValue`
+ +
+Removed Method(s) + +- :warning: removed method `apiRoot.withProjectKey().me().carts().withKey().get()` +- :warning: removed method `apiRoot.withProjectKey().me().carts().withKey().head()` +- :warning: removed method `apiRoot.withProjectKey().me().carts().withKey().post()` +- :warning: removed method `apiRoot.withProjectKey().me().carts().withKey().delete()` +- :warning: removed method `apiRoot.withProjectKey().me().quoteRequests().withId().delete()` +- :warning: removed method `apiRoot.withProjectKey().me().quoteRequests().withKey().delete()` +
+ **Import changes**
diff --git a/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/Me/ByProjectKeyMeCartsKeyByKeyTest.cs b/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/Me/ByProjectKeyMeCartsKeyByKeyTest.cs deleted file mode 100644 index fd2d9c8bdd4..00000000000 --- a/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/Me/ByProjectKeyMeCartsKeyByKeyTest.cs +++ /dev/null @@ -1,117 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Net.Http; -using Xunit; - -// ReSharper disable CheckNamespace -namespace commercetools.Sdk.Api.Tests.Client.RequestBuilders.Me -{ - public class ByProjectKeyMeCartsKeyByKeyTest : RequestBuilderParentTests - { - [Theory] - [MemberData(nameof(GetData))] - public void WithMethods(HttpRequestMessage request, string httpMethod, string uri) - { - Assert.Equal(httpMethod.ToLower(), request.Method.Method.ToLower()); - Assert.Equal(uri.ToLower(), request.RequestUri.ToString().ToLower()); - } - - public static IEnumerable GetData() - { - return new List { - new Object[] { - ApiRoot - .WithProjectKey("test_projectKey") - .Me() - .Carts() - .WithKey("test_key") - .Get() - .WithExpand("expand") - .Build(), - "Get", - "/test_projectKey/me/carts/key=test_key?expand=expand", - }, - new Object[] { - ApiRoot - .WithProjectKey("test_projectKey") - .Me() - .Carts() - .WithKey("test_key") - .Get() - .Build(), - "Get", - "/test_projectKey/me/carts/key=test_key", - }, - new Object[] { - ApiRoot - .WithProjectKey("test_projectKey") - .Me() - .Carts() - .WithKey("test_key") - .Head() - .Build(), - "Head", - "/test_projectKey/me/carts/key=test_key", - }, - new Object[] { - ApiRoot - .WithProjectKey("test_projectKey") - .Me() - .Carts() - .WithKey("test_key") - .Post(null) - .WithExpand("expand") - .Build(), - "Post", - "/test_projectKey/me/carts/key=test_key?expand=expand", - }, - new Object[] { - ApiRoot - .WithProjectKey("test_projectKey") - .Me() - .Carts() - .WithKey("test_key") - .Post(null) - .Build(), - "Post", - "/test_projectKey/me/carts/key=test_key", - }, - new Object[] { - ApiRoot - .WithProjectKey("test_projectKey") - .Me() - .Carts() - .WithKey("test_key") - .Delete() - .WithVersion(2) - .Build(), - "Delete", - "/test_projectKey/me/carts/key=test_key?version=2", - }, - new Object[] { - ApiRoot - .WithProjectKey("test_projectKey") - .Me() - .Carts() - .WithKey("test_key") - .Delete() - .WithExpand("expand") - .Build(), - "Delete", - "/test_projectKey/me/carts/key=test_key?expand=expand", - }, - new Object[] { - ApiRoot - .WithProjectKey("test_projectKey") - .Me() - .Carts() - .WithKey("test_key") - .Delete() - .Build(), - "Delete", - "/test_projectKey/me/carts/key=test_key", - } - }; - } - } -} diff --git a/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/Me/ByProjectKeyMeQuoteRequestsByIDTest.cs b/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/Me/ByProjectKeyMeQuoteRequestsByIDTest.cs index 0a6f48a6eed..78adc2bf6e6 100644 --- a/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/Me/ByProjectKeyMeQuoteRequestsByIDTest.cs +++ b/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/Me/ByProjectKeyMeQuoteRequestsByIDTest.cs @@ -75,41 +75,6 @@ public static IEnumerable GetData() .Build(), "Post", "/test_projectKey/me/quote-requests/test_ID", - }, - new Object[] { - ApiRoot - .WithProjectKey("test_projectKey") - .Me() - .QuoteRequests() - .WithId("test_ID") - .Delete() - .WithVersion(2) - .Build(), - "Delete", - "/test_projectKey/me/quote-requests/test_ID?version=2", - }, - new Object[] { - ApiRoot - .WithProjectKey("test_projectKey") - .Me() - .QuoteRequests() - .WithId("test_ID") - .Delete() - .WithExpand("expand") - .Build(), - "Delete", - "/test_projectKey/me/quote-requests/test_ID?expand=expand", - }, - new Object[] { - ApiRoot - .WithProjectKey("test_projectKey") - .Me() - .QuoteRequests() - .WithId("test_ID") - .Delete() - .Build(), - "Delete", - "/test_projectKey/me/quote-requests/test_ID", } }; } diff --git a/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/Me/ByProjectKeyMeQuoteRequestsKeyByKeyTest.cs b/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/Me/ByProjectKeyMeQuoteRequestsKeyByKeyTest.cs index 52c0b147762..46964b41bec 100644 --- a/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/Me/ByProjectKeyMeQuoteRequestsKeyByKeyTest.cs +++ b/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/Me/ByProjectKeyMeQuoteRequestsKeyByKeyTest.cs @@ -75,41 +75,6 @@ public static IEnumerable GetData() .Build(), "Post", "/test_projectKey/me/quote-requests/key=test_key", - }, - new Object[] { - ApiRoot - .WithProjectKey("test_projectKey") - .Me() - .QuoteRequests() - .WithKey("test_key") - .Delete() - .WithVersion(2) - .Build(), - "Delete", - "/test_projectKey/me/quote-requests/key=test_key?version=2", - }, - new Object[] { - ApiRoot - .WithProjectKey("test_projectKey") - .Me() - .QuoteRequests() - .WithKey("test_key") - .Delete() - .WithExpand("expand") - .Build(), - "Delete", - "/test_projectKey/me/quote-requests/key=test_key?expand=expand", - }, - new Object[] { - ApiRoot - .WithProjectKey("test_projectKey") - .Me() - .QuoteRequests() - .WithKey("test_key") - .Delete() - .Build(), - "Delete", - "/test_projectKey/me/quote-requests/key=test_key", } }; } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Me/ByProjectKeyMeCartsKeyByKeyDelete.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Me/ByProjectKeyMeCartsKeyByKeyDelete.cs deleted file mode 100644 index 671405e1497..00000000000 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Me/ByProjectKeyMeCartsKeyByKeyDelete.cs +++ /dev/null @@ -1,84 +0,0 @@ -using System.Globalization; -using System.Collections.Generic; -using System.Net.Http; -using System.Threading.Tasks; -using System.Threading; -using commercetools.Base.Client; - - -// ReSharper disable CheckNamespace -namespace commercetools.Sdk.Api.Client.RequestBuilders.Me -{ - - public partial class ByProjectKeyMeCartsKeyByKeyDelete : ApiMethod, IApiMethod, commercetools.Sdk.Api.Client.IVersionedTrait, commercetools.Sdk.Api.Client.IConflictingTrait, commercetools.Sdk.Api.Client.IExpandableTrait, commercetools.Sdk.Api.Client.IErrorableTrait, commercetools.Sdk.Api.Client.IDeprecatable200Trait - { - - - private IClient ApiHttpClient { get; } - - public override HttpMethod Method => HttpMethod.Delete; - - private string ProjectKey { get; } - - private string Key { get; } - - - public ByProjectKeyMeCartsKeyByKeyDelete(IClient apiHttpClient, string projectKey, string key) - { - this.ApiHttpClient = apiHttpClient; - this.ProjectKey = projectKey; - this.Key = key; - this.RequestUrl = $"/{ProjectKey}/me/carts/key={Key}"; - } - - public List GetVersion() - { - return this.GetQueryParam("version"); - } - - public List GetExpand() - { - return this.GetQueryParam("expand"); - } - - public ByProjectKeyMeCartsKeyByKeyDelete WithVersion(long version) - { - return this.AddQueryParam("version", version.ToString(CultureInfo.InvariantCulture)); - } - - public ByProjectKeyMeCartsKeyByKeyDelete WithExpand(string expand) - { - return this.AddQueryParam("expand", expand); - } - - - public async Task ExecuteAsync(CancellationToken cancellationToken = default) - { - - var requestMessage = Build(); - return await ApiHttpClient.ExecuteAsync(requestMessage, cancellationToken); - - } - - public async Task ExecuteAsJsonAsync(CancellationToken cancellationToken = default) - { - var requestMessage = Build(); - return await ApiHttpClient.ExecuteAsJsonAsync(requestMessage, cancellationToken); - } - - public async Task> SendAsync(CancellationToken cancellationToken = default) - { - - var requestMessage = Build(); - return await ApiHttpClient.SendAsync(requestMessage, cancellationToken); - - } - - public async Task> SendAsJsonAsync(CancellationToken cancellationToken = default) - { - var requestMessage = Build(); - return await ApiHttpClient.SendAsJsonAsync(requestMessage, cancellationToken); - } - - } -} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Me/ByProjectKeyMeCartsKeyByKeyGet.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Me/ByProjectKeyMeCartsKeyByKeyGet.cs deleted file mode 100644 index e14d691c8f7..00000000000 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Me/ByProjectKeyMeCartsKeyByKeyGet.cs +++ /dev/null @@ -1,73 +0,0 @@ -using System.Collections.Generic; -using System.Net.Http; -using System.Threading.Tasks; -using System.Threading; -using commercetools.Base.Client; - - -// ReSharper disable CheckNamespace -namespace commercetools.Sdk.Api.Client.RequestBuilders.Me -{ - - public partial class ByProjectKeyMeCartsKeyByKeyGet : ApiMethod, IApiMethod, commercetools.Sdk.Api.Client.IExpandableTrait, commercetools.Sdk.Api.Client.IErrorableTrait, commercetools.Sdk.Api.Client.IDeprecatable200Trait - { - - - private IClient ApiHttpClient { get; } - - public override HttpMethod Method => HttpMethod.Get; - - private string ProjectKey { get; } - - private string Key { get; } - - - public ByProjectKeyMeCartsKeyByKeyGet(IClient apiHttpClient, string projectKey, string key) - { - this.ApiHttpClient = apiHttpClient; - this.ProjectKey = projectKey; - this.Key = key; - this.RequestUrl = $"/{ProjectKey}/me/carts/key={Key}"; - } - - public List GetExpand() - { - return this.GetQueryParam("expand"); - } - - public ByProjectKeyMeCartsKeyByKeyGet WithExpand(string expand) - { - return this.AddQueryParam("expand", expand); - } - - - public async Task ExecuteAsync(CancellationToken cancellationToken = default) - { - - var requestMessage = Build(); - return await ApiHttpClient.ExecuteAsync(requestMessage, cancellationToken); - - } - - public async Task ExecuteAsJsonAsync(CancellationToken cancellationToken = default) - { - var requestMessage = Build(); - return await ApiHttpClient.ExecuteAsJsonAsync(requestMessage, cancellationToken); - } - - public async Task> SendAsync(CancellationToken cancellationToken = default) - { - - var requestMessage = Build(); - return await ApiHttpClient.SendAsync(requestMessage, cancellationToken); - - } - - public async Task> SendAsJsonAsync(CancellationToken cancellationToken = default) - { - var requestMessage = Build(); - return await ApiHttpClient.SendAsJsonAsync(requestMessage, cancellationToken); - } - - } -} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Me/ByProjectKeyMeCartsKeyByKeyHead.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Me/ByProjectKeyMeCartsKeyByKeyHead.cs deleted file mode 100644 index 71af28afb69..00000000000 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Me/ByProjectKeyMeCartsKeyByKeyHead.cs +++ /dev/null @@ -1,62 +0,0 @@ -using System.Net.Http; -using System.Threading.Tasks; -using System.Threading; -using commercetools.Base.Client; - - -// ReSharper disable CheckNamespace -namespace commercetools.Sdk.Api.Client.RequestBuilders.Me -{ - - public partial class ByProjectKeyMeCartsKeyByKeyHead : ApiMethod, IApiMethod, commercetools.Sdk.Api.Client.IErrorableTrait, commercetools.Sdk.Api.Client.IDeprecatable200Trait - { - - - private IClient ApiHttpClient { get; } - - public override HttpMethod Method => HttpMethod.Head; - - private string ProjectKey { get; } - - private string Key { get; } - - - public ByProjectKeyMeCartsKeyByKeyHead(IClient apiHttpClient, string projectKey, string key) - { - this.ApiHttpClient = apiHttpClient; - this.ProjectKey = projectKey; - this.Key = key; - this.RequestUrl = $"/{ProjectKey}/me/carts/key={Key}"; - } - - - - - public async Task ExecuteAsync(CancellationToken cancellationToken = default) - { - - return await ExecuteAsJsonAsync(cancellationToken); - - } - - public async Task ExecuteAsJsonAsync(CancellationToken cancellationToken = default) - { - var requestMessage = Build(); - return await ApiHttpClient.ExecuteAsJsonAsync(requestMessage, cancellationToken); - } - - public async Task> SendAsync(CancellationToken cancellationToken = default) - { - - return await SendAsJsonAsync(cancellationToken); - - } - - public async Task> SendAsJsonAsync(CancellationToken cancellationToken = default) - { - var requestMessage = Build(); - return await ApiHttpClient.SendAsJsonAsync(requestMessage, cancellationToken); - } - - } -} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Me/ByProjectKeyMeCartsKeyByKeyPost.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Me/ByProjectKeyMeCartsKeyByKeyPost.cs deleted file mode 100644 index aab1ce95fec..00000000000 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Me/ByProjectKeyMeCartsKeyByKeyPost.cs +++ /dev/null @@ -1,93 +0,0 @@ -using System.Collections.Generic; -using System.Net.Http; -using System.Text; -using System.Threading.Tasks; -using System.Threading; -using commercetools.Base.Client; -using commercetools.Base.Serialization; - - -// ReSharper disable CheckNamespace -namespace commercetools.Sdk.Api.Client.RequestBuilders.Me -{ - - public partial class ByProjectKeyMeCartsKeyByKeyPost : ApiMethod, IApiMethod, commercetools.Sdk.Api.Client.IConflictingTrait, commercetools.Sdk.Api.Client.IExpandableTrait, commercetools.Sdk.Api.Client.IDeprecatable200Trait, commercetools.Sdk.Api.Client.IErrorableTrait - { - - - private ISerializerService SerializerService { get; } - - private IClient ApiHttpClient { get; } - - public override HttpMethod Method => HttpMethod.Post; - - private string ProjectKey { get; } - - private string Key { get; } - - private commercetools.Sdk.Api.Models.Me.IMyCartUpdate MyCartUpdate; - - public ByProjectKeyMeCartsKeyByKeyPost(IClient apiHttpClient, ISerializerService serializerService, string projectKey, string key, commercetools.Sdk.Api.Models.Me.IMyCartUpdate myCartUpdate) - { - this.ApiHttpClient = apiHttpClient; - this.SerializerService = serializerService; - this.ProjectKey = projectKey; - this.Key = key; - this.MyCartUpdate = myCartUpdate; - this.RequestUrl = $"/{ProjectKey}/me/carts/key={Key}"; - } - - public List GetExpand() - { - return this.GetQueryParam("expand"); - } - - public ByProjectKeyMeCartsKeyByKeyPost WithExpand(string expand) - { - return this.AddQueryParam("expand", expand); - } - - - public async Task ExecuteAsync(CancellationToken cancellationToken = default) - { - - var requestMessage = Build(); - return await ApiHttpClient.ExecuteAsync(requestMessage, cancellationToken); - - } - - public async Task ExecuteAsJsonAsync(CancellationToken cancellationToken = default) - { - var requestMessage = Build(); - return await ApiHttpClient.ExecuteAsJsonAsync(requestMessage, cancellationToken); - } - - public async Task> SendAsync(CancellationToken cancellationToken = default) - { - - var requestMessage = Build(); - return await ApiHttpClient.SendAsync(requestMessage, cancellationToken); - - } - - public async Task> SendAsJsonAsync(CancellationToken cancellationToken = default) - { - var requestMessage = Build(); - return await ApiHttpClient.SendAsJsonAsync(requestMessage, cancellationToken); - } - public override HttpRequestMessage Build() - { - var request = base.Build(); - if (SerializerService != null) - { - var body = this.SerializerService.Serialize(MyCartUpdate); - if (!string.IsNullOrEmpty(body)) - { - request.Content = new StringContent(body, Encoding.UTF8, "application/json"); - } - } - return request; - } - - } -} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Me/ByProjectKeyMeCartsKeyByKeyRequestBuilder.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Me/ByProjectKeyMeCartsKeyByKeyRequestBuilder.cs deleted file mode 100644 index 40489f08d75..00000000000 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Me/ByProjectKeyMeCartsKeyByKeyRequestBuilder.cs +++ /dev/null @@ -1,48 +0,0 @@ -using commercetools.Base.Client; -using commercetools.Base.Serialization; - -// ReSharper disable CheckNamespace -namespace commercetools.Sdk.Api.Client.RequestBuilders.Me -{ - - public partial class ByProjectKeyMeCartsKeyByKeyRequestBuilder - { - - private IClient ApiHttpClient { get; } - - private ISerializerService SerializerService { get; } - - private string ProjectKey { get; } - - private string Key { get; } - - public ByProjectKeyMeCartsKeyByKeyRequestBuilder(IClient apiHttpClient, ISerializerService serializerService, string projectKey, string key) - { - this.ApiHttpClient = apiHttpClient; - this.SerializerService = serializerService; - this.ProjectKey = projectKey; - this.Key = key; - } - - public ByProjectKeyMeCartsKeyByKeyGet Get() - { - return new ByProjectKeyMeCartsKeyByKeyGet(ApiHttpClient, ProjectKey, Key); - } - - public ByProjectKeyMeCartsKeyByKeyHead Head() - { - return new ByProjectKeyMeCartsKeyByKeyHead(ApiHttpClient, ProjectKey, Key); - } - - public ByProjectKeyMeCartsKeyByKeyPost Post(commercetools.Sdk.Api.Models.Me.IMyCartUpdate myCartUpdate) - { - return new ByProjectKeyMeCartsKeyByKeyPost(ApiHttpClient, SerializerService, ProjectKey, Key, myCartUpdate); - } - - public ByProjectKeyMeCartsKeyByKeyDelete Delete() - { - return new ByProjectKeyMeCartsKeyByKeyDelete(ApiHttpClient, ProjectKey, Key); - } - - } -} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Me/ByProjectKeyMeCartsRequestBuilder.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Me/ByProjectKeyMeCartsRequestBuilder.cs index ebc89c8ed1e..80247c8fa4a 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Me/ByProjectKeyMeCartsRequestBuilder.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Me/ByProjectKeyMeCartsRequestBuilder.cs @@ -37,11 +37,6 @@ public ByProjectKeyMeCartsPost Post(commercetools.Sdk.Api.Models.Me.IMyCartDraft } - public ByProjectKeyMeCartsKeyByKeyRequestBuilder WithKey(string key) - { - return new ByProjectKeyMeCartsKeyByKeyRequestBuilder(ApiHttpClient, SerializerService, ProjectKey, key); - } - public ByProjectKeyMeCartsByIDRequestBuilder WithId(string ID) { return new ByProjectKeyMeCartsByIDRequestBuilder(ApiHttpClient, SerializerService, ProjectKey, ID); diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Me/ByProjectKeyMeQuoteRequestsByIDDelete.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Me/ByProjectKeyMeQuoteRequestsByIDDelete.cs deleted file mode 100644 index 3a1e76ab58d..00000000000 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Me/ByProjectKeyMeQuoteRequestsByIDDelete.cs +++ /dev/null @@ -1,84 +0,0 @@ -using System.Globalization; -using System.Collections.Generic; -using System.Net.Http; -using System.Threading.Tasks; -using System.Threading; -using commercetools.Base.Client; - - -// ReSharper disable CheckNamespace -namespace commercetools.Sdk.Api.Client.RequestBuilders.Me -{ - - public partial class ByProjectKeyMeQuoteRequestsByIDDelete : ApiMethod, IApiMethod, commercetools.Sdk.Api.Client.IVersionedTrait, commercetools.Sdk.Api.Client.IConflictingTrait, commercetools.Sdk.Api.Client.IExpandableTrait, commercetools.Sdk.Api.Client.IErrorableTrait, commercetools.Sdk.Api.Client.IDeprecatable200Trait - { - - - private IClient ApiHttpClient { get; } - - public override HttpMethod Method => HttpMethod.Delete; - - private string ProjectKey { get; } - - private string ID { get; } - - - public ByProjectKeyMeQuoteRequestsByIDDelete(IClient apiHttpClient, string projectKey, string id) - { - this.ApiHttpClient = apiHttpClient; - this.ProjectKey = projectKey; - this.ID = id; - this.RequestUrl = $"/{ProjectKey}/me/quote-requests/{ID}"; - } - - public List GetVersion() - { - return this.GetQueryParam("version"); - } - - public List GetExpand() - { - return this.GetQueryParam("expand"); - } - - public ByProjectKeyMeQuoteRequestsByIDDelete WithVersion(long version) - { - return this.AddQueryParam("version", version.ToString(CultureInfo.InvariantCulture)); - } - - public ByProjectKeyMeQuoteRequestsByIDDelete WithExpand(string expand) - { - return this.AddQueryParam("expand", expand); - } - - - public async Task ExecuteAsync(CancellationToken cancellationToken = default) - { - - var requestMessage = Build(); - return await ApiHttpClient.ExecuteAsync(requestMessage, cancellationToken); - - } - - public async Task ExecuteAsJsonAsync(CancellationToken cancellationToken = default) - { - var requestMessage = Build(); - return await ApiHttpClient.ExecuteAsJsonAsync(requestMessage, cancellationToken); - } - - public async Task> SendAsync(CancellationToken cancellationToken = default) - { - - var requestMessage = Build(); - return await ApiHttpClient.SendAsync(requestMessage, cancellationToken); - - } - - public async Task> SendAsJsonAsync(CancellationToken cancellationToken = default) - { - var requestMessage = Build(); - return await ApiHttpClient.SendAsJsonAsync(requestMessage, cancellationToken); - } - - } -} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Me/ByProjectKeyMeQuoteRequestsByIDRequestBuilder.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Me/ByProjectKeyMeQuoteRequestsByIDRequestBuilder.cs index 6e0b8b5d3ca..f823ee5ade6 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Me/ByProjectKeyMeQuoteRequestsByIDRequestBuilder.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Me/ByProjectKeyMeQuoteRequestsByIDRequestBuilder.cs @@ -39,10 +39,5 @@ public ByProjectKeyMeQuoteRequestsByIDPost Post(commercetools.Sdk.Api.Models.Me. return new ByProjectKeyMeQuoteRequestsByIDPost(ApiHttpClient, SerializerService, ProjectKey, ID, myQuoteRequestUpdate); } - public ByProjectKeyMeQuoteRequestsByIDDelete Delete() - { - return new ByProjectKeyMeQuoteRequestsByIDDelete(ApiHttpClient, ProjectKey, ID); - } - } } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Me/ByProjectKeyMeQuoteRequestsKeyByKeyDelete.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Me/ByProjectKeyMeQuoteRequestsKeyByKeyDelete.cs deleted file mode 100644 index 94ff33a639e..00000000000 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Me/ByProjectKeyMeQuoteRequestsKeyByKeyDelete.cs +++ /dev/null @@ -1,84 +0,0 @@ -using System.Globalization; -using System.Collections.Generic; -using System.Net.Http; -using System.Threading.Tasks; -using System.Threading; -using commercetools.Base.Client; - - -// ReSharper disable CheckNamespace -namespace commercetools.Sdk.Api.Client.RequestBuilders.Me -{ - - public partial class ByProjectKeyMeQuoteRequestsKeyByKeyDelete : ApiMethod, IApiMethod, commercetools.Sdk.Api.Client.IVersionedTrait, commercetools.Sdk.Api.Client.IConflictingTrait, commercetools.Sdk.Api.Client.IExpandableTrait, commercetools.Sdk.Api.Client.IErrorableTrait, commercetools.Sdk.Api.Client.IDeprecatable200Trait - { - - - private IClient ApiHttpClient { get; } - - public override HttpMethod Method => HttpMethod.Delete; - - private string ProjectKey { get; } - - private string Key { get; } - - - public ByProjectKeyMeQuoteRequestsKeyByKeyDelete(IClient apiHttpClient, string projectKey, string key) - { - this.ApiHttpClient = apiHttpClient; - this.ProjectKey = projectKey; - this.Key = key; - this.RequestUrl = $"/{ProjectKey}/me/quote-requests/key={Key}"; - } - - public List GetVersion() - { - return this.GetQueryParam("version"); - } - - public List GetExpand() - { - return this.GetQueryParam("expand"); - } - - public ByProjectKeyMeQuoteRequestsKeyByKeyDelete WithVersion(long version) - { - return this.AddQueryParam("version", version.ToString(CultureInfo.InvariantCulture)); - } - - public ByProjectKeyMeQuoteRequestsKeyByKeyDelete WithExpand(string expand) - { - return this.AddQueryParam("expand", expand); - } - - - public async Task ExecuteAsync(CancellationToken cancellationToken = default) - { - - var requestMessage = Build(); - return await ApiHttpClient.ExecuteAsync(requestMessage, cancellationToken); - - } - - public async Task ExecuteAsJsonAsync(CancellationToken cancellationToken = default) - { - var requestMessage = Build(); - return await ApiHttpClient.ExecuteAsJsonAsync(requestMessage, cancellationToken); - } - - public async Task> SendAsync(CancellationToken cancellationToken = default) - { - - var requestMessage = Build(); - return await ApiHttpClient.SendAsync(requestMessage, cancellationToken); - - } - - public async Task> SendAsJsonAsync(CancellationToken cancellationToken = default) - { - var requestMessage = Build(); - return await ApiHttpClient.SendAsJsonAsync(requestMessage, cancellationToken); - } - - } -} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Me/ByProjectKeyMeQuoteRequestsKeyByKeyRequestBuilder.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Me/ByProjectKeyMeQuoteRequestsKeyByKeyRequestBuilder.cs index ae8ea19899a..53c306d08b0 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Me/ByProjectKeyMeQuoteRequestsKeyByKeyRequestBuilder.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Me/ByProjectKeyMeQuoteRequestsKeyByKeyRequestBuilder.cs @@ -39,10 +39,5 @@ public ByProjectKeyMeQuoteRequestsKeyByKeyPost Post(commercetools.Sdk.Api.Models return new ByProjectKeyMeQuoteRequestsKeyByKeyPost(ApiHttpClient, SerializerService, ProjectKey, Key, myQuoteRequestUpdate); } - public ByProjectKeyMeQuoteRequestsKeyByKeyDelete Delete() - { - return new ByProjectKeyMeQuoteRequestsKeyByKeyDelete(ApiHttpClient, ProjectKey, Key); - } - } } diff --git a/references.txt b/references.txt index d12d2768803..703d6b8ecde 100644 --- a/references.txt +++ b/references.txt @@ -270,3 +270,4 @@ e07a21551ecb61f1f9d1578beb18de819f093feb 9542dc4271ffcefbac6972c63247f35a135f2e11 575e2e7e69d920c7975e85533620a634cc7ba2e2 260a278a102d37ab4e811be43e43d96a387ff119 +dd89a432525ef32aad4af069a2dea5d461a991d9