From 4133235a497358f550ac32221836db2c3691b3b2 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 14 Jan 2022 08:37:14 +0100 Subject: [PATCH] Update generated SDKs (#124) Co-authored-by: Auto Mation --- .../Carts/ByProjectKeyCartsTest.cs | 10 ---------- .../ByProjectKeyInStoreKeyByStoreKeyCartsTest.cs | 11 ----------- .../RequestBuilders/Carts/ByProjectKeyCartsGet.cs | 10 ---------- .../ByProjectKeyInStoreKeyByStoreKeyCartsGet.cs | 15 ++------------- .../JsonConverters/MessageDeliveryConverter.cs | 2 +- 5 files changed, 3 insertions(+), 45 deletions(-) diff --git a/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/Carts/ByProjectKeyCartsTest.cs b/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/Carts/ByProjectKeyCartsTest.cs index bd55db37bb0..1629d558ce9 100644 --- a/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/Carts/ByProjectKeyCartsTest.cs +++ b/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/Carts/ByProjectKeyCartsTest.cs @@ -18,16 +18,6 @@ public void WithMethods(HttpRequestMessage request, string httpMethod, string ur public static IEnumerable GetData() { return new List { - new Object[] { - ApiRoot - .WithProjectKey("test_projectKey") - .Carts() - .Get() - .WithCustomerId("customerId") - .Build(), - "Get", - "/test_projectKey/carts?customerId=customerId", - }, new Object[] { ApiRoot .WithProjectKey("test_projectKey") diff --git a/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyCartsTest.cs b/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyCartsTest.cs index 57b5d609e02..86f5b86f57e 100644 --- a/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyCartsTest.cs +++ b/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyCartsTest.cs @@ -18,17 +18,6 @@ public void WithMethods(HttpRequestMessage request, string httpMethod, string ur public static IEnumerable GetData() { return new List { - new Object[] { - ApiRoot - .WithProjectKey("test_projectKey") - .InStoreKeyWithStoreKeyValue("test_storeKey") - .Carts() - .Get() - .WithCustomerId("customerId") - .Build(), - "Get", - "/test_projectKey/in-store/key=test_storeKey/carts?customerId=customerId", - }, new Object[] { ApiRoot .WithProjectKey("test_projectKey") diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Carts/ByProjectKeyCartsGet.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Carts/ByProjectKeyCartsGet.cs index 584180c72a5..b968412309c 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Carts/ByProjectKeyCartsGet.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Carts/ByProjectKeyCartsGet.cs @@ -24,11 +24,6 @@ public ByProjectKeyCartsGet(IClient apiHttpClient, string projectKey) this.RequestUrl = $"/{ProjectKey}/carts"; } - public List GetCustomerId() - { - return this.GetQueryParam("customerId"); - } - public List GetExpand() { return this.GetQueryParam("expand"); @@ -59,11 +54,6 @@ public List GetWhere() return this.GetQueryParam("where"); } - public ByProjectKeyCartsGet WithCustomerId(string customerId) - { - return this.AddQueryParam("customerId", customerId); - } - public ByProjectKeyCartsGet WithExpand(string expand) { return this.AddQueryParam("expand", expand); diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyCartsGet.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyCartsGet.cs index b7dc8d4aecc..79966594b3e 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyCartsGet.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/InStore/ByProjectKeyInStoreKeyByStoreKeyCartsGet.cs @@ -1,4 +1,3 @@ -using System; using System.Collections.Generic; using System.Net.Http; using System.Threading.Tasks; @@ -28,11 +27,6 @@ public ByProjectKeyInStoreKeyByStoreKeyCartsGet(IClient apiHttpClient, string pr this.RequestUrl = $"/{ProjectKey}/in-store/key={StoreKey}/carts"; } - public List GetCustomerId() - { - return this.GetQueryParam("customerId"); - } - public List GetExpand() { return this.GetQueryParam("expand"); @@ -63,11 +57,6 @@ public List GetWhere() return this.GetQueryParam("where"); } - public ByProjectKeyInStoreKeyByStoreKeyCartsGet WithCustomerId(string customerId) - { - return this.AddQueryParam("customerId", customerId); - } - public ByProjectKeyInStoreKeyByStoreKeyCartsGet WithExpand(string expand) { return this.AddQueryParam("expand", expand); @@ -103,10 +92,10 @@ public ByProjectKeyInStoreKeyByStoreKeyCartsGet WithPredicateVar(string varName, return this.AddQueryParam($"var.{varName}", predicateVar); } - public async Task ExecuteAsync() + public async Task ExecuteAsync() { var requestMessage = Build(); - return await ApiHttpClient.ExecuteAsync(requestMessage); + return await ApiHttpClient.ExecuteAsync(requestMessage); } } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Serialization/JsonConverters/MessageDeliveryConverter.cs b/commercetools.Sdk/commercetools.Sdk.Api/Serialization/JsonConverters/MessageDeliveryConverter.cs index c5f0d2da056..6568afa3d96 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Serialization/JsonConverters/MessageDeliveryConverter.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Serialization/JsonConverters/MessageDeliveryConverter.cs @@ -8,7 +8,7 @@ namespace commercetools.Sdk.Api.Serialization.JsonConverters { - public class MessageDeliveryConverter: JsonConverter + public class MessageDeliveryConverter : JsonConverter { private readonly ISerializerService _serializerService;