From be1b59dd8397ab7fb2288efc471164d01806cdfa Mon Sep 17 00:00:00 2001 From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com> Date: Fri, 15 Nov 2024 11:29:04 +0000 Subject: [PATCH] build(codegen): updating SDK --- changes.md | 8 ++++++++ .../ByProjectKeyProductSelectionsByIDProductsTest.cs | 12 ++++++++++++ ...rojectKeyProductSelectionsKeyByKeyProductsTest.cs | 12 ++++++++++++ .../ByProjectKeyProductSelectionsByIDProductsGet.cs | 10 ++++++++++ ...ProjectKeyProductSelectionsKeyByKeyProductsGet.cs | 10 ++++++++++ references.txt | 1 + 6 files changed, 53 insertions(+) diff --git a/changes.md b/changes.md index 208cb3f1ff7..7b038d2ae2d 100644 --- a/changes.md +++ b/changes.md @@ -7,3 +7,11 @@ - :warning: changed property `column` of type `GraphQLErrorLocation` from type `integer` to `number` + +
+Added QueryParameter(s) + +- added query parameter `where` to method `get /{projectKey}/product-selections/key={key}/products` +- added query parameter `where` to method `get /{projectKey}/product-selections/{ID}/products` +
+ diff --git a/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/ProductSelections/ByProjectKeyProductSelectionsByIDProductsTest.cs b/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/ProductSelections/ByProjectKeyProductSelectionsByIDProductsTest.cs index d53ca9ad23e..c942dbb9dcd 100644 --- a/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/ProductSelections/ByProjectKeyProductSelectionsByIDProductsTest.cs +++ b/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/ProductSelections/ByProjectKeyProductSelectionsByIDProductsTest.cs @@ -19,6 +19,18 @@ public void WithMethods(HttpRequestMessage request, string httpMethod, string ur public static IEnumerable GetData() { return new List { + new Object[] { + ApiRoot + .WithProjectKey("test_projectKey") + .ProductSelections() + .WithId("test_ID") + .Products() + .Get() + .WithWhere("where") + .Build(), + "Get", + "/test_projectKey/product-selections/test_ID/products?where=where", + }, new Object[] { ApiRoot .WithProjectKey("test_projectKey") diff --git a/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/ProductSelections/ByProjectKeyProductSelectionsKeyByKeyProductsTest.cs b/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/ProductSelections/ByProjectKeyProductSelectionsKeyByKeyProductsTest.cs index f971c80290c..4e7fea07230 100644 --- a/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/ProductSelections/ByProjectKeyProductSelectionsKeyByKeyProductsTest.cs +++ b/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/ProductSelections/ByProjectKeyProductSelectionsKeyByKeyProductsTest.cs @@ -19,6 +19,18 @@ public void WithMethods(HttpRequestMessage request, string httpMethod, string ur public static IEnumerable GetData() { return new List { + new Object[] { + ApiRoot + .WithProjectKey("test_projectKey") + .ProductSelections() + .WithKey("test_key") + .Products() + .Get() + .WithWhere("where") + .Build(), + "Get", + "/test_projectKey/product-selections/key=test_key/products?where=where", + }, new Object[] { ApiRoot .WithProjectKey("test_projectKey") diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/ProductSelections/ByProjectKeyProductSelectionsByIDProductsGet.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/ProductSelections/ByProjectKeyProductSelectionsByIDProductsGet.cs index 63703080270..398acf5ac9d 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/ProductSelections/ByProjectKeyProductSelectionsByIDProductsGet.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/ProductSelections/ByProjectKeyProductSelectionsByIDProductsGet.cs @@ -31,6 +31,11 @@ public ByProjectKeyProductSelectionsByIDProductsGet(IClient apiHttpClient, strin this.RequestUrl = $"/{ProjectKey}/product-selections/{ID}/products"; } + public List GetWhere() + { + return this.GetQueryParam("where"); + } + public List GetExpand() { return this.GetQueryParam("expand"); @@ -56,6 +61,11 @@ public List GetSort() return this.GetQueryParam("sort"); } + public ByProjectKeyProductSelectionsByIDProductsGet WithWhere(string where) + { + return this.AddQueryParam("where", where); + } + public ByProjectKeyProductSelectionsByIDProductsGet WithExpand(string expand) { return this.AddQueryParam("expand", expand); diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/ProductSelections/ByProjectKeyProductSelectionsKeyByKeyProductsGet.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/ProductSelections/ByProjectKeyProductSelectionsKeyByKeyProductsGet.cs index 68a49bea5df..bbd0cffe86d 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/ProductSelections/ByProjectKeyProductSelectionsKeyByKeyProductsGet.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/ProductSelections/ByProjectKeyProductSelectionsKeyByKeyProductsGet.cs @@ -31,6 +31,11 @@ public ByProjectKeyProductSelectionsKeyByKeyProductsGet(IClient apiHttpClient, s this.RequestUrl = $"/{ProjectKey}/product-selections/key={Key}/products"; } + public List GetWhere() + { + return this.GetQueryParam("where"); + } + public List GetExpand() { return this.GetQueryParam("expand"); @@ -56,6 +61,11 @@ public List GetSort() return this.GetQueryParam("sort"); } + public ByProjectKeyProductSelectionsKeyByKeyProductsGet WithWhere(string where) + { + return this.AddQueryParam("where", where); + } + public ByProjectKeyProductSelectionsKeyByKeyProductsGet WithExpand(string expand) { return this.AddQueryParam("expand", expand); diff --git a/references.txt b/references.txt index 24b0500273b..51589a5b58a 100644 --- a/references.txt +++ b/references.txt @@ -295,3 +295,4 @@ d410bad973f2fe90ea8239c4cb586fe0cfc13856 6bb8d35316a92441d0a59417b49ad3a8c7037e45 605a1ff5cf861ca0d8e2711ca79374804f180b50 f254d17f05343dcc4299fc53ff9b335b5ef63d69 +6892be230f1ad73f1150dd544c9fa7fee0e6b123