From 4fef0ef3f1a3d949fd0bf90fea13985527fe5320 Mon Sep 17 00:00:00 2001 From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com> Date: Mon, 18 Nov 2024 09:26:04 +0000 Subject: [PATCH] build(codegen): updating SDK --- .../Client/RequestBuilders/Projects/ByProjectKeyTest.cs | 2 +- .../ResourceType/ByProjectKeyByResourceTypeByIDTest.cs | 2 +- .../ResourceType/ByProjectKeyByResourceTypeTest.cs | 2 +- .../Client/RequestBuilders/Projects/ByProjectKeyGet.cs | 4 ++-- .../ResourceType/ByProjectKeyByResourceTypeByIDGet.cs | 4 ++-- .../ResourceType/ByProjectKeyByResourceTypeGet.cs | 4 ++-- references.txt | 1 + 7 files changed, 10 insertions(+), 9 deletions(-) diff --git a/commercetools.Sdk/Tests/commercetools.Sdk.HistoryApi.Tests/Generated/Client/RequestBuilders/Projects/ByProjectKeyTest.cs b/commercetools.Sdk/Tests/commercetools.Sdk.HistoryApi.Tests/Generated/Client/RequestBuilders/Projects/ByProjectKeyTest.cs index 560e168c3b6..6af40da7319 100644 --- a/commercetools.Sdk/Tests/commercetools.Sdk.HistoryApi.Tests/Generated/Client/RequestBuilders/Projects/ByProjectKeyTest.cs +++ b/commercetools.Sdk/Tests/commercetools.Sdk.HistoryApi.Tests/Generated/Client/RequestBuilders/Projects/ByProjectKeyTest.cs @@ -140,7 +140,7 @@ public static IEnumerable GetData() ApiRoot .WithProjectKeyValue("test_projectKey") .Get() - .WithSource("source") + .WithSource(commercetools.Sdk.HistoryApi.Models.ChangeHistories.ISource.FindEnum("source")) .Build(), "Get", "/test_projectKey?source=source", diff --git a/commercetools.Sdk/Tests/commercetools.Sdk.HistoryApi.Tests/Generated/Client/RequestBuilders/ResourceType/ByProjectKeyByResourceTypeByIDTest.cs b/commercetools.Sdk/Tests/commercetools.Sdk.HistoryApi.Tests/Generated/Client/RequestBuilders/ResourceType/ByProjectKeyByResourceTypeByIDTest.cs index 325b4f960a3..a85d85c422f 100644 --- a/commercetools.Sdk/Tests/commercetools.Sdk.HistoryApi.Tests/Generated/Client/RequestBuilders/ResourceType/ByProjectKeyByResourceTypeByIDTest.cs +++ b/commercetools.Sdk/Tests/commercetools.Sdk.HistoryApi.Tests/Generated/Client/RequestBuilders/ResourceType/ByProjectKeyByResourceTypeByIDTest.cs @@ -135,7 +135,7 @@ public static IEnumerable GetData() .WithResourceTypeValue("test_resourceType") .WithIDValue("test_ID") .Get() - .WithSource("source") + .WithSource(commercetools.Sdk.HistoryApi.Models.ChangeHistories.ISource.FindEnum("source")) .Build(), "Get", "/test_projectKey/test_resourceType/test_ID?source=source", diff --git a/commercetools.Sdk/Tests/commercetools.Sdk.HistoryApi.Tests/Generated/Client/RequestBuilders/ResourceType/ByProjectKeyByResourceTypeTest.cs b/commercetools.Sdk/Tests/commercetools.Sdk.HistoryApi.Tests/Generated/Client/RequestBuilders/ResourceType/ByProjectKeyByResourceTypeTest.cs index a6381d02068..d1a9d49b48b 100644 --- a/commercetools.Sdk/Tests/commercetools.Sdk.HistoryApi.Tests/Generated/Client/RequestBuilders/ResourceType/ByProjectKeyByResourceTypeTest.cs +++ b/commercetools.Sdk/Tests/commercetools.Sdk.HistoryApi.Tests/Generated/Client/RequestBuilders/ResourceType/ByProjectKeyByResourceTypeTest.cs @@ -134,7 +134,7 @@ public static IEnumerable GetData() .WithProjectKeyValue("test_projectKey") .WithResourceTypeValue("test_resourceType") .Get() - .WithSource("source") + .WithSource(commercetools.Sdk.HistoryApi.Models.ChangeHistories.ISource.FindEnum("source")) .Build(), "Get", "/test_projectKey/test_resourceType?source=source", diff --git a/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Client/RequestBuilders/Projects/ByProjectKeyGet.cs b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Client/RequestBuilders/Projects/ByProjectKeyGet.cs index 1a39e6d1a09..a74e137f391 100644 --- a/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Client/RequestBuilders/Projects/ByProjectKeyGet.cs +++ b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Client/RequestBuilders/Projects/ByProjectKeyGet.cs @@ -184,9 +184,9 @@ public ByProjectKeyGet WithResourceKey(string resourceKey) return this.AddQueryParam("resourceKey", resourceKey); } - public ByProjectKeyGet WithSource(string source) + public ByProjectKeyGet WithSource(ISource source) { - return this.AddQueryParam("source", source); + return this.AddQueryParam("source", source.JsonName); } public ByProjectKeyGet WithChanges(string changes) diff --git a/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Client/RequestBuilders/ResourceType/ByProjectKeyByResourceTypeByIDGet.cs b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Client/RequestBuilders/ResourceType/ByProjectKeyByResourceTypeByIDGet.cs index 8696c334543..82c8cd3f545 100644 --- a/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Client/RequestBuilders/ResourceType/ByProjectKeyByResourceTypeByIDGet.cs +++ b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Client/RequestBuilders/ResourceType/ByProjectKeyByResourceTypeByIDGet.cs @@ -160,9 +160,9 @@ public ByProjectKeyByResourceTypeByIDGet WithType(string type) return this.AddQueryParam("type", type); } - public ByProjectKeyByResourceTypeByIDGet WithSource(string source) + public ByProjectKeyByResourceTypeByIDGet WithSource(ISource source) { - return this.AddQueryParam("source", source); + return this.AddQueryParam("source", source.JsonName); } public ByProjectKeyByResourceTypeByIDGet WithChanges(string changes) diff --git a/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Client/RequestBuilders/ResourceType/ByProjectKeyByResourceTypeGet.cs b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Client/RequestBuilders/ResourceType/ByProjectKeyByResourceTypeGet.cs index d4915a38f02..114944033dc 100644 --- a/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Client/RequestBuilders/ResourceType/ByProjectKeyByResourceTypeGet.cs +++ b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Client/RequestBuilders/ResourceType/ByProjectKeyByResourceTypeGet.cs @@ -167,9 +167,9 @@ public ByProjectKeyByResourceTypeGet WithResourceKey(string resourceKey) return this.AddQueryParam("resourceKey", resourceKey); } - public ByProjectKeyByResourceTypeGet WithSource(string source) + public ByProjectKeyByResourceTypeGet WithSource(ISource source) { - return this.AddQueryParam("source", source); + return this.AddQueryParam("source", source.JsonName); } public ByProjectKeyByResourceTypeGet WithChanges(string changes) diff --git a/references.txt b/references.txt index 51589a5b58a..50ec653aa33 100644 --- a/references.txt +++ b/references.txt @@ -296,3 +296,4 @@ d410bad973f2fe90ea8239c4cb586fe0cfc13856 605a1ff5cf861ca0d8e2711ca79374804f180b50 f254d17f05343dcc4299fc53ff9b335b5ef63d69 6892be230f1ad73f1150dd544c9fa7fee0e6b123 +6a8624fb41168a6a78ac836b7208c2790a686608