From 9beaea26b274091395d24691acafc3261f722992 Mon Sep 17 00:00:00 2001 From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com> Date: Tue, 8 Oct 2024 07:33:41 +0000 Subject: [PATCH 01/17] TASK: Updating version in README --- CHANGELOG.md | 68 +++++++++++++++++++++++++++++++++++++++++++++++++++ reference.txt | 1 - 2 files changed, 68 insertions(+), 1 deletion(-) delete mode 100644 reference.txt diff --git a/CHANGELOG.md b/CHANGELOG.md index 4041772bda5..3ec7804fa98 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,72 @@ +# 11.12.0 (2024-10-08) + +## What's Changed +* Update changelog by @ct-sdks in https://github.com/commercetools/commercetools-dotnet-core-sdk-v2/pull/352 +* Update generated SDKs by @ct-sdks in https://github.com/commercetools/commercetools-dotnet-core-sdk-v2/pull/353 +* Update generated SDKs by @ct-sdks in https://github.com/commercetools/commercetools-dotnet-core-sdk-v2/pull/354 +* Create config.yml by @jenschude in https://github.com/commercetools/commercetools-dotnet-core-sdk-v2/pull/355 +* Update generated SDKs by @ct-sdks in https://github.com/commercetools/commercetools-dotnet-core-sdk-v2/pull/356 +* Update generated SDKs by @ct-sdks in https://github.com/commercetools/commercetools-dotnet-core-sdk-v2/pull/357 +* Update generated SDKs by @ct-sdks in https://github.com/commercetools/commercetools-dotnet-core-sdk-v2/pull/358 +* Update generated SDKs by @ct-sdks in https://github.com/commercetools/commercetools-dotnet-core-sdk-v2/pull/362 +* Update ci.yml by @jenschude in https://github.com/commercetools/commercetools-dotnet-core-sdk-v2/pull/363 + +**Api changes** + +
+Added Property(s) + +- added property `staged` to type `ProductVariantDeletedMessage` +- added property `staged` to type `ProductVariantDeletedMessagePayload` +- added property `warnings` to type `ProductTailoring` +- added property `attributes` to type `ProductVariantTailoring` +- added property `attributes` to type `ProductVariantTailoringDraft` +- added property `attributes` to type `ProductTailoringAddVariantAction` +- added property `warnings` to type `Product` +- added property `customers` to type `SearchIndexingConfiguration` +
+ + +
+Added Type(s) + +- added type `SearchNotReadyError` +- added type `GraphQLSearchNotReadyError` +- added type `ProductTailoringAttribute` +- added type `ProductTailoringSetAttributeAction` +- added type `ProductTailoringSetAttributeInAllVariantsAction` +- added type `ImageProcessingOngoingWarning` +- added type `WarningObject` +
+ + +
+Removed Type(s) + +- :warning: removed type `ProductSearchStatus` +
+ + +
+Added Enum(s) + +- added enum `customer-group` to type `ExtensionResourceTypeId` +- added enum `product-tailoring` to type `MessageSubscriptionResourceTypeId` +- added enum `product-tailoring` to type `ResourceTypeId` +
+ +**Import changes** + +
+Added Type(s) + +- added type `InvalidFieldsUpdateError` +
+ + +**Full Changelog**: https://github.com/commercetools/commercetools-dotnet-core-sdk-v2/compare/11.11.0...11.12.0 + # 11.11.0 (2024-09-04) ## Important Information diff --git a/reference.txt b/reference.txt deleted file mode 100644 index ca5a81e779f..00000000000 --- a/reference.txt +++ /dev/null @@ -1 +0,0 @@ -fa091aad2bce74e0d07ee69a886f4cd9ae02e05d From 2ce025aa87add51925b06938083d231cfbd80fd8 Mon Sep 17 00:00:00 2001 From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com> Date: Tue, 8 Oct 2024 10:04:41 +0000 Subject: [PATCH 02/17] build(codegen): updating SDK --- reference.txt | 1 + references.txt | 1 + 2 files changed, 2 insertions(+) create mode 100644 reference.txt diff --git a/reference.txt b/reference.txt new file mode 100644 index 00000000000..262c0ca1d24 --- /dev/null +++ b/reference.txt @@ -0,0 +1 @@ +e985f4b7aa55610705ee49bd3eb645c2fd03eb6c diff --git a/references.txt b/references.txt index 68e5b1e05d8..fbef2ec760c 100644 --- a/references.txt +++ b/references.txt @@ -286,3 +286,4 @@ efc70952597a3160e6bb47891894b109bd82b7c3 c77ec902f368c2c31505fcb65a835ce148350077 903922e6a2dc0ff9283757645395f5119f61be0e e985f4b7aa55610705ee49bd3eb645c2fd03eb6c +7b61d389a7b8bd5dac2d780c6b6fbea0b881400c From 4d88addef71b431fa7e81062c37237e8f5b1dd12 Mon Sep 17 00:00:00 2001 From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com> Date: Fri, 18 Oct 2024 10:39:52 +0000 Subject: [PATCH 03/17] build(codegen): updating SDK --- changes.md | 48 +------------ .../ByProjectKeyProductTailoringTest.cs | 19 ++++++ .../ByProjectKeyProductTailoringHead.cs | 68 +++++++++++++++++++ ...rojectKeyProductTailoringRequestBuilder.cs | 5 ++ references.txt | 1 + 5 files changed, 95 insertions(+), 46 deletions(-) create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/ProductTailoring/ByProjectKeyProductTailoringHead.cs diff --git a/changes.md b/changes.md index 27e02166a9b..8f276bbb5d5 100644 --- a/changes.md +++ b/changes.md @@ -1,52 +1,8 @@ **Api changes**
-Added Property(s) +Added Method(s) -- added property `staged` to type `ProductVariantDeletedMessage` -- added property `staged` to type `ProductVariantDeletedMessagePayload` -- added property `warnings` to type `ProductTailoring` -- added property `attributes` to type `ProductVariantTailoring` -- added property `attributes` to type `ProductVariantTailoringDraft` -- added property `attributes` to type `ProductTailoringAddVariantAction` -- added property `warnings` to type `Product` -- added property `customers` to type `SearchIndexingConfiguration` -
- - -
-Added Type(s) - -- added type `SearchNotReadyError` -- added type `GraphQLSearchNotReadyError` -- added type `ProductTailoringAttribute` -- added type `ProductTailoringSetAttributeAction` -- added type `ProductTailoringSetAttributeInAllVariantsAction` -- added type `ImageProcessingOngoingWarning` -- added type `WarningObject` -
- - -
-Removed Type(s) - -- :warning: removed type `ProductSearchStatus` -
- - -
-Added Enum(s) - -- added enum `customer-group` to type `ExtensionResourceTypeId` -- added enum `product-tailoring` to type `MessageSubscriptionResourceTypeId` -- added enum `product-tailoring` to type `ResourceTypeId` -
- -**Import changes** - -
-Added Type(s) - -- added type `InvalidFieldsUpdateError` +- added method `apiRoot.withProjectKey().productTailoring().head()`
diff --git a/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/ProductTailoring/ByProjectKeyProductTailoringTest.cs b/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/ProductTailoring/ByProjectKeyProductTailoringTest.cs index 5ac577a4750..7b52bf16cee 100644 --- a/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/ProductTailoring/ByProjectKeyProductTailoringTest.cs +++ b/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/ProductTailoring/ByProjectKeyProductTailoringTest.cs @@ -98,6 +98,25 @@ public static IEnumerable GetData() "Get", "/test_projectKey/product-tailoring", }, + new Object[] { + ApiRoot + .WithProjectKey("test_projectKey") + .ProductTailoring() + .Head() + .WithWhere("where") + .Build(), + "Head", + "/test_projectKey/product-tailoring?where=where", + }, + new Object[] { + ApiRoot + .WithProjectKey("test_projectKey") + .ProductTailoring() + .Head() + .Build(), + "Head", + "/test_projectKey/product-tailoring", + }, new Object[] { ApiRoot .WithProjectKey("test_projectKey") diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/ProductTailoring/ByProjectKeyProductTailoringHead.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/ProductTailoring/ByProjectKeyProductTailoringHead.cs new file mode 100644 index 00000000000..70ce11d62e2 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/ProductTailoring/ByProjectKeyProductTailoringHead.cs @@ -0,0 +1,68 @@ +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.ProductTailoring +{ + + public partial class ByProjectKeyProductTailoringHead : 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; } + + + public ByProjectKeyProductTailoringHead(IClient apiHttpClient, string projectKey) + { + this.ApiHttpClient = apiHttpClient; + this.ProjectKey = projectKey; + this.RequestUrl = $"/{ProjectKey}/product-tailoring"; + } + + public List GetWhere() + { + return this.GetQueryParam("where"); + } + + public ByProjectKeyProductTailoringHead WithWhere(string where) + { + return this.AddQueryParam("where", where); + } + + + 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/ProductTailoring/ByProjectKeyProductTailoringRequestBuilder.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/ProductTailoring/ByProjectKeyProductTailoringRequestBuilder.cs index 38f25893891..5fc07346865 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/ProductTailoring/ByProjectKeyProductTailoringRequestBuilder.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/ProductTailoring/ByProjectKeyProductTailoringRequestBuilder.cs @@ -26,6 +26,11 @@ public ByProjectKeyProductTailoringGet Get() return new ByProjectKeyProductTailoringGet(ApiHttpClient, ProjectKey); } + public ByProjectKeyProductTailoringHead Head() + { + return new ByProjectKeyProductTailoringHead(ApiHttpClient, ProjectKey); + } + public ByProjectKeyProductTailoringPost Post(commercetools.Sdk.Api.Models.ProductTailorings.IProductTailoringDraft productTailoringDraft) { return new ByProjectKeyProductTailoringPost(ApiHttpClient, SerializerService, ProjectKey, productTailoringDraft); diff --git a/references.txt b/references.txt index fbef2ec760c..e4eeb529b7f 100644 --- a/references.txt +++ b/references.txt @@ -287,3 +287,4 @@ c77ec902f368c2c31505fcb65a835ce148350077 903922e6a2dc0ff9283757645395f5119f61be0e e985f4b7aa55610705ee49bd3eb645c2fd03eb6c 7b61d389a7b8bd5dac2d780c6b6fbea0b881400c +c27603f949e869148570ebb8bd3ec6db34a985b7 From 21ce4a160222166b96db9317d633247d50a4f9d9 Mon Sep 17 00:00:00 2001 From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com> Date: Tue, 22 Oct 2024 10:12:35 +0000 Subject: [PATCH 04/17] build(codegen): updating SDK --- changes.md | 8 ++++++++ .../Models/Errors/IErrorObject.cs | 7 +++++++ .../INewMasterVariantAdditionNotAllowedError.cs | 11 +++++++++++ .../NewMasterVariantAdditionNotAllowedError.cs | 16 ++++++++++++++++ references.txt | 1 + 5 files changed, 43 insertions(+) create mode 100644 commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/commercetoolsSdkImportApi/Models/Errors/INewMasterVariantAdditionNotAllowedError.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/commercetoolsSdkImportApi/Models/Errors/NewMasterVariantAdditionNotAllowedError.cs diff --git a/changes.md b/changes.md index 8f276bbb5d5..26a50541137 100644 --- a/changes.md +++ b/changes.md @@ -6,3 +6,11 @@ - added method `apiRoot.withProjectKey().productTailoring().head()` +**Import changes** + +
+Added Type(s) + +- added type `NewMasterVariantAdditionNotAllowedError` +
+ diff --git a/commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/commercetoolsSdkImportApi/Models/Errors/IErrorObject.cs b/commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/commercetoolsSdkImportApi/Models/Errors/IErrorObject.cs index 63b308b93fb..0333eea01d3 100644 --- a/commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/commercetoolsSdkImportApi/Models/Errors/IErrorObject.cs +++ b/commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/commercetoolsSdkImportApi/Models/Errors/IErrorObject.cs @@ -23,6 +23,7 @@ namespace commercetools.Sdk.ImportApi.Models.Errors [SubTypeDiscriminator("InvalidJsonInput", typeof(commercetools.Sdk.ImportApi.Models.Errors.InvalidJsonInput))] [SubTypeDiscriminator("InvalidOperation", typeof(commercetools.Sdk.ImportApi.Models.Errors.InvalidOperation))] [SubTypeDiscriminator("InvalidTransition", typeof(commercetools.Sdk.ImportApi.Models.Errors.InvalidStateTransitionError))] + [SubTypeDiscriminator("NewMasterVariantAdditionNotAllowed", typeof(commercetools.Sdk.ImportApi.Models.Errors.NewMasterVariantAdditionNotAllowedError))] [SubTypeDiscriminator("ReferencedResourceNotFound", typeof(commercetools.Sdk.ImportApi.Models.Errors.ReferencedResourceNotFound))] [SubTypeDiscriminator("RequiredField", typeof(commercetools.Sdk.ImportApi.Models.Errors.RequiredFieldError))] [SubTypeDiscriminator("ResourceCreation", typeof(commercetools.Sdk.ImportApi.Models.Errors.ResourceCreationError))] @@ -143,6 +144,12 @@ static commercetools.Sdk.ImportApi.Models.Errors.InvalidStateTransitionError Inv init?.Invoke(t); return t; } + static commercetools.Sdk.ImportApi.Models.Errors.NewMasterVariantAdditionNotAllowedError NewMasterVariantAdditionNotAllowed(Action init = null) + { + var t = new commercetools.Sdk.ImportApi.Models.Errors.NewMasterVariantAdditionNotAllowedError(); + init?.Invoke(t); + return t; + } static commercetools.Sdk.ImportApi.Models.Errors.ReferencedResourceNotFound ReferencedResourceNotFound(Action init = null) { var t = new commercetools.Sdk.ImportApi.Models.Errors.ReferencedResourceNotFound(); diff --git a/commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/commercetoolsSdkImportApi/Models/Errors/INewMasterVariantAdditionNotAllowedError.cs b/commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/commercetoolsSdkImportApi/Models/Errors/INewMasterVariantAdditionNotAllowedError.cs new file mode 100644 index 00000000000..fd19b99f241 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/commercetoolsSdkImportApi/Models/Errors/INewMasterVariantAdditionNotAllowedError.cs @@ -0,0 +1,11 @@ +using commercetools.Base.CustomAttributes; +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.ImportApi.Models.Errors +{ + [DeserializeAs(typeof(commercetools.Sdk.ImportApi.Models.Errors.NewMasterVariantAdditionNotAllowedError))] + public partial interface INewMasterVariantAdditionNotAllowedError : IErrorObject + { + new string Message { get; set; } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/commercetoolsSdkImportApi/Models/Errors/NewMasterVariantAdditionNotAllowedError.cs b/commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/commercetoolsSdkImportApi/Models/Errors/NewMasterVariantAdditionNotAllowedError.cs new file mode 100644 index 00000000000..0fc7c91d6c6 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/commercetoolsSdkImportApi/Models/Errors/NewMasterVariantAdditionNotAllowedError.cs @@ -0,0 +1,16 @@ + + +namespace commercetools.Sdk.ImportApi.Models.Errors +{ + + public partial class NewMasterVariantAdditionNotAllowedError : INewMasterVariantAdditionNotAllowedError + { + public string Code { get; set; } + + public string Message { get; set; } + public NewMasterVariantAdditionNotAllowedError() + { + this.Code = "NewMasterVariantAdditionNotAllowed"; + } + } +} diff --git a/references.txt b/references.txt index e4eeb529b7f..5845bb39dd7 100644 --- a/references.txt +++ b/references.txt @@ -288,3 +288,4 @@ c77ec902f368c2c31505fcb65a835ce148350077 e985f4b7aa55610705ee49bd3eb645c2fd03eb6c 7b61d389a7b8bd5dac2d780c6b6fbea0b881400c c27603f949e869148570ebb8bd3ec6db34a985b7 +82bca33a98d14907ea79e2cca281625dd82cdf0d From 0f4a5c8957b31bf614b11172df8bdc8612c546b0 Mon Sep 17 00:00:00 2001 From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com> Date: Tue, 22 Oct 2024 12:22:27 +0000 Subject: [PATCH 05/17] build(codegen): updating SDK --- changes.md | 7 +++++++ .../Models/Subscriptions/EventBridgeDestination.cs | 2 ++ .../Models/Subscriptions/IEventBridgeDestination.cs | 2 ++ .../Subscriptions/EventBridgeDestinationQueryBuilderDsl.cs | 6 ++++++ references.txt | 1 + 5 files changed, 18 insertions(+) diff --git a/changes.md b/changes.md index 26a50541137..684f096f918 100644 --- a/changes.md +++ b/changes.md @@ -1,5 +1,12 @@ **Api changes** +
+Added Property(s) + +- added property `source` to type `EventBridgeDestination` +
+ +
Added Method(s) diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Subscriptions/EventBridgeDestination.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Subscriptions/EventBridgeDestination.cs index 4f2edc2d576..999d1d58094 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Subscriptions/EventBridgeDestination.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Subscriptions/EventBridgeDestination.cs @@ -10,6 +10,8 @@ public partial class EventBridgeDestination : IEventBridgeDestination public string Region { get; set; } public string AccountId { get; set; } + + public string Source { get; set; } public EventBridgeDestination() { this.Type = "EventBridge"; diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Subscriptions/IEventBridgeDestination.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Subscriptions/IEventBridgeDestination.cs index 58dcfcb9d7e..29b38bd1c52 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Subscriptions/IEventBridgeDestination.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Subscriptions/IEventBridgeDestination.cs @@ -9,5 +9,7 @@ public partial interface IEventBridgeDestination : IDestination string AccountId { get; set; } + string Source { get; set; } + } } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Subscriptions/EventBridgeDestinationQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Subscriptions/EventBridgeDestinationQueryBuilderDsl.cs index 2b85c6aa17b..7e1c98b2a7d 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Subscriptions/EventBridgeDestinationQueryBuilderDsl.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Subscriptions/EventBridgeDestinationQueryBuilderDsl.cs @@ -31,6 +31,12 @@ public IComparisonPredicateBuilder new CombinationQueryPredicate(p, EventBridgeDestinationQueryBuilderDsl.Of), PredicateFormatter.Format); } + public IComparisonPredicateBuilder Source() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("source")), + p => new CombinationQueryPredicate(p, EventBridgeDestinationQueryBuilderDsl.Of), + PredicateFormatter.Format); + } } } diff --git a/references.txt b/references.txt index 5845bb39dd7..a4a77d3d09b 100644 --- a/references.txt +++ b/references.txt @@ -289,3 +289,4 @@ e985f4b7aa55610705ee49bd3eb645c2fd03eb6c 7b61d389a7b8bd5dac2d780c6b6fbea0b881400c c27603f949e869148570ebb8bd3ec6db34a985b7 82bca33a98d14907ea79e2cca281625dd82cdf0d +c8c2455221baca20421082b7715eaa0a712af7f1 From 60f22ea93fd1507fa897cfd94b6108bf85dfd3a5 Mon Sep 17 00:00:00 2001 From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com> Date: Tue, 29 Oct 2024 13:52:01 +0000 Subject: [PATCH 06/17] build(codegen): updating SDK --- changes.md | 17 +++++++ .../Models/ApprovalRules/ApprovalRule.cs | 3 ++ .../ApprovalRuleSetCustomFieldAction.cs | 18 ++++++++ .../ApprovalRuleSetCustomTypeAction.cs | 19 ++++++++ .../Models/ApprovalRules/IApprovalRule.cs | 3 ++ .../IApprovalRuleSetCustomFieldAction.cs | 14 ++++++ .../IApprovalRuleSetCustomTypeAction.cs | 14 ++++++ .../IApprovalRuleUpdateAction.cs | 14 ++++++ .../Models/Types/CustomFieldReferenceValue.cs | 7 +++ .../Models/Types/ResourceTypeId.cs | 7 +++ .../ApprovalRuleQueryBuilderDsl.cs | 9 ++++ ...RuleSetCustomFieldActionQueryBuilderDsl.cs | 36 +++++++++++++++ ...lRuleSetCustomTypeActionQueryBuilderDsl.cs | 44 +++++++++++++++++++ ...ApprovalRuleUpdateActionQueryBuilderDsl.cs | 12 +++++ .../schema.graphqls | 15 +++++++ references.txt | 1 + 16 files changed, 233 insertions(+) create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/ApprovalRules/ApprovalRuleSetCustomFieldAction.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/ApprovalRules/ApprovalRuleSetCustomTypeAction.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/ApprovalRules/IApprovalRuleSetCustomFieldAction.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/ApprovalRules/IApprovalRuleSetCustomTypeAction.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ApprovalRules/ApprovalRuleSetCustomFieldActionQueryBuilderDsl.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ApprovalRules/ApprovalRuleSetCustomTypeActionQueryBuilderDsl.cs diff --git a/changes.md b/changes.md index 684f096f918..19c55f3a6d0 100644 --- a/changes.md +++ b/changes.md @@ -1,12 +1,29 @@ **Api changes** +
+Added Type(s) + +- added type `ApprovalRuleSetCustomFieldAction` +- added type `ApprovalRuleSetCustomTypeAction` +
+ +
Added Property(s) +- added property `custom` to type `ApprovalRule` - added property `source` to type `EventBridgeDestination`
+
+Added Enum(s) + +- added enum `approval-rule` to type `CustomFieldReferenceValue` +- added enum `approval-rule` to type `ResourceTypeId` +
+ +
Added Method(s) diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/ApprovalRules/ApprovalRule.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/ApprovalRules/ApprovalRule.cs index 7794b99f6d0..284d24b107c 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/ApprovalRules/ApprovalRule.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/ApprovalRules/ApprovalRule.cs @@ -1,5 +1,6 @@ using commercetools.Sdk.Api.Models.BusinessUnits; using commercetools.Sdk.Api.Models.Common; +using commercetools.Sdk.Api.Models.Types; using System; using System.Collections.Generic; using System.Linq; @@ -38,5 +39,7 @@ public partial class ApprovalRule : IApprovalRule public IEnumerable RequestersEnumerable { set => Requesters = value.ToList(); } public IBusinessUnitKeyReference BusinessUnit { get; set; } + + public ICustomFields Custom { get; set; } } } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/ApprovalRules/ApprovalRuleSetCustomFieldAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/ApprovalRules/ApprovalRuleSetCustomFieldAction.cs new file mode 100644 index 00000000000..716355f8d20 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/ApprovalRules/ApprovalRuleSetCustomFieldAction.cs @@ -0,0 +1,18 @@ +using System; + +namespace commercetools.Sdk.Api.Models.ApprovalRules +{ + + public partial class ApprovalRuleSetCustomFieldAction : IApprovalRuleSetCustomFieldAction + { + public string Action { get; set; } + + public string Name { get; set; } + + public Object Value { get; set; } + public ApprovalRuleSetCustomFieldAction() + { + this.Action = "setCustomField"; + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/ApprovalRules/ApprovalRuleSetCustomTypeAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/ApprovalRules/ApprovalRuleSetCustomTypeAction.cs new file mode 100644 index 00000000000..13f296f6123 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/ApprovalRules/ApprovalRuleSetCustomTypeAction.cs @@ -0,0 +1,19 @@ +using commercetools.Sdk.Api.Models.Types; + + +namespace commercetools.Sdk.Api.Models.ApprovalRules +{ + + public partial class ApprovalRuleSetCustomTypeAction : IApprovalRuleSetCustomTypeAction + { + public string Action { get; set; } + + public ITypeResourceIdentifier Type { get; set; } + + public IFieldContainer Fields { get; set; } + public ApprovalRuleSetCustomTypeAction() + { + this.Action = "setCustomType"; + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/ApprovalRules/IApprovalRule.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/ApprovalRules/IApprovalRule.cs index c484d420762..1e3cce78f23 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/ApprovalRules/IApprovalRule.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/ApprovalRules/IApprovalRule.cs @@ -1,5 +1,6 @@ using commercetools.Sdk.Api.Models.BusinessUnits; using commercetools.Sdk.Api.Models.Common; +using commercetools.Sdk.Api.Models.Types; using System; using System.Collections.Generic; using System.Linq; @@ -40,5 +41,7 @@ public partial interface IApprovalRule : IBaseResource IBusinessUnitKeyReference BusinessUnit { get; set; } + ICustomFields Custom { get; set; } + } } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/ApprovalRules/IApprovalRuleSetCustomFieldAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/ApprovalRules/IApprovalRuleSetCustomFieldAction.cs new file mode 100644 index 00000000000..c4d1a6e11d5 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/ApprovalRules/IApprovalRuleSetCustomFieldAction.cs @@ -0,0 +1,14 @@ +using System; +using commercetools.Base.CustomAttributes; +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Models.ApprovalRules +{ + [DeserializeAs(typeof(commercetools.Sdk.Api.Models.ApprovalRules.ApprovalRuleSetCustomFieldAction))] + public partial interface IApprovalRuleSetCustomFieldAction : IApprovalRuleUpdateAction + { + string Name { get; set; } + + Object Value { get; set; } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/ApprovalRules/IApprovalRuleSetCustomTypeAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/ApprovalRules/IApprovalRuleSetCustomTypeAction.cs new file mode 100644 index 00000000000..9e64c255999 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/ApprovalRules/IApprovalRuleSetCustomTypeAction.cs @@ -0,0 +1,14 @@ +using commercetools.Sdk.Api.Models.Types; +using commercetools.Base.CustomAttributes; +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Models.ApprovalRules +{ + [DeserializeAs(typeof(commercetools.Sdk.Api.Models.ApprovalRules.ApprovalRuleSetCustomTypeAction))] + public partial interface IApprovalRuleSetCustomTypeAction : IApprovalRuleUpdateAction + { + ITypeResourceIdentifier Type { get; set; } + + IFieldContainer Fields { get; set; } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/ApprovalRules/IApprovalRuleUpdateAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/ApprovalRules/IApprovalRuleUpdateAction.cs index 7f5b90a1dba..4d30aaa485e 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/ApprovalRules/IApprovalRuleUpdateAction.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/ApprovalRules/IApprovalRuleUpdateAction.cs @@ -6,6 +6,8 @@ namespace commercetools.Sdk.Api.Models.ApprovalRules [TypeDiscriminator(nameof(Action))] [DefaultTypeDiscriminator(typeof(commercetools.Sdk.Api.Models.ApprovalRules.ApprovalRuleUpdateAction))] [SubTypeDiscriminator("setApprovers", typeof(commercetools.Sdk.Api.Models.ApprovalRules.ApprovalRuleSetApproversAction))] + [SubTypeDiscriminator("setCustomField", typeof(commercetools.Sdk.Api.Models.ApprovalRules.ApprovalRuleSetCustomFieldAction))] + [SubTypeDiscriminator("setCustomType", typeof(commercetools.Sdk.Api.Models.ApprovalRules.ApprovalRuleSetCustomTypeAction))] [SubTypeDiscriminator("setDescription", typeof(commercetools.Sdk.Api.Models.ApprovalRules.ApprovalRuleSetDescriptionAction))] [SubTypeDiscriminator("setKey", typeof(commercetools.Sdk.Api.Models.ApprovalRules.ApprovalRuleSetKeyAction))] [SubTypeDiscriminator("setName", typeof(commercetools.Sdk.Api.Models.ApprovalRules.ApprovalRuleSetNameAction))] @@ -22,6 +24,18 @@ static commercetools.Sdk.Api.Models.ApprovalRules.ApprovalRuleSetApproversAction init?.Invoke(t); return t; } + static commercetools.Sdk.Api.Models.ApprovalRules.ApprovalRuleSetCustomFieldAction SetCustomField(Action init = null) + { + var t = new commercetools.Sdk.Api.Models.ApprovalRules.ApprovalRuleSetCustomFieldAction(); + init?.Invoke(t); + return t; + } + static commercetools.Sdk.Api.Models.ApprovalRules.ApprovalRuleSetCustomTypeAction SetCustomType(Action init = null) + { + var t = new commercetools.Sdk.Api.Models.ApprovalRules.ApprovalRuleSetCustomTypeAction(); + init?.Invoke(t); + return t; + } static commercetools.Sdk.Api.Models.ApprovalRules.ApprovalRuleSetDescriptionAction SetDescription(Action init = null) { var t = new commercetools.Sdk.Api.Models.ApprovalRules.ApprovalRuleSetDescriptionAction(); diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Types/CustomFieldReferenceValue.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Types/CustomFieldReferenceValue.cs index 9ee404ea79a..5c050947f47 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Types/CustomFieldReferenceValue.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Types/CustomFieldReferenceValue.cs @@ -13,6 +13,9 @@ public enum CustomFieldReferenceValue [Description("approval-flow")] ApprovalFlow, + [Description("approval-rule")] + ApprovalRule, + [Description("associate-role")] AssociateRole, @@ -88,6 +91,9 @@ public interface ICustomFieldReferenceValue : IJsonName, IEnumerable public static ICustomFieldReferenceValue ApprovalFlow = new CustomFieldReferenceValueWrapper { Value = CustomFieldReferenceValue.ApprovalFlow, JsonName = "approval-flow" }; + public static ICustomFieldReferenceValue ApprovalRule = new CustomFieldReferenceValueWrapper + { Value = CustomFieldReferenceValue.ApprovalRule, JsonName = "approval-rule" }; + public static ICustomFieldReferenceValue AssociateRole = new CustomFieldReferenceValueWrapper { Value = CustomFieldReferenceValue.AssociateRole, JsonName = "associate-role" }; @@ -143,6 +149,7 @@ static ICustomFieldReferenceValue[] Values() return new[] { ApprovalFlow , + ApprovalRule , AssociateRole , BusinessUnit , Cart , diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Types/ResourceTypeId.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Types/ResourceTypeId.cs index e8158c3da1f..4c122ed1d20 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Types/ResourceTypeId.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Types/ResourceTypeId.cs @@ -19,6 +19,9 @@ public enum ResourceTypeId [Description("approval-flow")] ApprovalFlow, + [Description("approval-rule")] + ApprovalRule, + [Description("associate-role")] AssociateRole, @@ -142,6 +145,9 @@ public interface IResourceTypeId : IJsonName, IEnumerable public static IResourceTypeId ApprovalFlow = new ResourceTypeIdWrapper { Value = ResourceTypeId.ApprovalFlow, JsonName = "approval-flow" }; + public static IResourceTypeId ApprovalRule = new ResourceTypeIdWrapper + { Value = ResourceTypeId.ApprovalRule, JsonName = "approval-rule" }; + public static IResourceTypeId AssociateRole = new ResourceTypeIdWrapper { Value = ResourceTypeId.AssociateRole, JsonName = "associate-role" }; @@ -241,6 +247,7 @@ static IResourceTypeId[] Values() Address , Asset , ApprovalFlow , + ApprovalRule , AssociateRole , BusinessUnit , CartDiscount , diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ApprovalRules/ApprovalRuleQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ApprovalRules/ApprovalRuleQueryBuilderDsl.cs index e03d6af445e..720fe5b9240 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ApprovalRules/ApprovalRuleQueryBuilderDsl.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ApprovalRules/ApprovalRuleQueryBuilderDsl.cs @@ -118,6 +118,15 @@ public CombinationQueryPredicate BusinessUnit( ApprovalRuleQueryBuilderDsl.Of); } + public CombinationQueryPredicate Custom( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("custom")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Types.CustomFieldsQueryBuilderDsl.Of())), + ApprovalRuleQueryBuilderDsl.Of); + } + } } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ApprovalRules/ApprovalRuleSetCustomFieldActionQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ApprovalRules/ApprovalRuleSetCustomFieldActionQueryBuilderDsl.cs new file mode 100644 index 00000000000..0d21aeb16eb --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ApprovalRules/ApprovalRuleSetCustomFieldActionQueryBuilderDsl.cs @@ -0,0 +1,36 @@ +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Predicates.Query.ApprovalRules +{ + + public partial class ApprovalRuleSetCustomFieldActionQueryBuilderDsl + { + public ApprovalRuleSetCustomFieldActionQueryBuilderDsl() + { + } + + public static ApprovalRuleSetCustomFieldActionQueryBuilderDsl Of() + { + return new ApprovalRuleSetCustomFieldActionQueryBuilderDsl(); + } + + public IComparisonPredicateBuilder Action() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("action")), + p => new CombinationQueryPredicate(p, ApprovalRuleSetCustomFieldActionQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder Name() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("name")), + p => new CombinationQueryPredicate(p, ApprovalRuleSetCustomFieldActionQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder Value() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("value")), + p => new CombinationQueryPredicate(p, ApprovalRuleSetCustomFieldActionQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ApprovalRules/ApprovalRuleSetCustomTypeActionQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ApprovalRules/ApprovalRuleSetCustomTypeActionQueryBuilderDsl.cs new file mode 100644 index 00000000000..fcd87f15615 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ApprovalRules/ApprovalRuleSetCustomTypeActionQueryBuilderDsl.cs @@ -0,0 +1,44 @@ +using System; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Predicates.Query.ApprovalRules +{ + + public partial class ApprovalRuleSetCustomTypeActionQueryBuilderDsl + { + public ApprovalRuleSetCustomTypeActionQueryBuilderDsl() + { + } + + public static ApprovalRuleSetCustomTypeActionQueryBuilderDsl Of() + { + return new ApprovalRuleSetCustomTypeActionQueryBuilderDsl(); + } + + public IComparisonPredicateBuilder Action() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("action")), + p => new CombinationQueryPredicate(p, ApprovalRuleSetCustomTypeActionQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate Type( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("type")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Types.TypeResourceIdentifierQueryBuilderDsl.Of())), + ApprovalRuleSetCustomTypeActionQueryBuilderDsl.Of); + } + + public CombinationQueryPredicate Fields( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("fields")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Types.FieldContainerQueryBuilderDsl.Of())), + ApprovalRuleSetCustomTypeActionQueryBuilderDsl.Of); + } + + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ApprovalRules/ApprovalRuleUpdateActionQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ApprovalRules/ApprovalRuleUpdateActionQueryBuilderDsl.cs index 35c7da19a14..8cc518bcc21 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ApprovalRules/ApprovalRuleUpdateActionQueryBuilderDsl.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/ApprovalRules/ApprovalRuleUpdateActionQueryBuilderDsl.cs @@ -28,6 +28,18 @@ public CombinationQueryPredicate AsSetA return new CombinationQueryPredicate(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.ApprovalRules.ApprovalRuleSetApproversActionQueryBuilderDsl.Of()), ApprovalRuleUpdateActionQueryBuilderDsl.Of); } + public CombinationQueryPredicate AsSetCustomField( + Func> fn) + { + return new CombinationQueryPredicate(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.ApprovalRules.ApprovalRuleSetCustomFieldActionQueryBuilderDsl.Of()), + ApprovalRuleUpdateActionQueryBuilderDsl.Of); + } + public CombinationQueryPredicate AsSetCustomType( + Func> fn) + { + return new CombinationQueryPredicate(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.ApprovalRules.ApprovalRuleSetCustomTypeActionQueryBuilderDsl.Of()), + ApprovalRuleUpdateActionQueryBuilderDsl.Of); + } public CombinationQueryPredicate AsSetDescription( Func> fn) { diff --git a/commercetools.Sdk/commercetools.Sdk.GraphQL.Api/schema.graphqls b/commercetools.Sdk/commercetools.Sdk.GraphQL.Api/schema.graphqls index 7ecc938eacd..6aabc49e4aa 100644 --- a/commercetools.Sdk/commercetools.Sdk.GraphQL.Api/schema.graphqls +++ b/commercetools.Sdk/commercetools.Sdk.GraphQL.Api/schema.graphqls @@ -778,6 +778,7 @@ type ApprovalRule implements Versioned { requesters: [RuleRequester!]! businessUnitRef: KeyReference! businessUnit: BusinessUnit! + custom: CustomFieldsType id: String! version: Long! createdAt: DateTime! @@ -864,6 +865,8 @@ input ApprovalRuleUpdateAction { setRequesters: SetApprovalRuleRequesters setStatus: SetApprovalRuleStatus setApprovers: SetApprovalRuleApprovers + setCustomField: SetApprovalRuleCustomField + setCustomType: SetApprovalRuleCustomType } input ApproveApprovalFlow { @@ -10532,6 +10535,18 @@ input SetApprovalRuleStatus { status: ApprovalRuleStatus! } +input SetApprovalRuleCustomField { + name: String! + value: String +} + +input SetApprovalRuleCustomType { + fields: [CustomFieldInput!] + type: ResourceIdentifierInput + typeKey: String + typeId: String +} + input SetAssociateRoleCustomField { name: String! value: String diff --git a/references.txt b/references.txt index a4a77d3d09b..18d6c9d3793 100644 --- a/references.txt +++ b/references.txt @@ -290,3 +290,4 @@ e985f4b7aa55610705ee49bd3eb645c2fd03eb6c c27603f949e869148570ebb8bd3ec6db34a985b7 82bca33a98d14907ea79e2cca281625dd82cdf0d c8c2455221baca20421082b7715eaa0a712af7f1 +41774e015e4f946bd57f0e2dc76522ed757860c4 From a3a554ed60143bc41c3eae3242751f9ad17498a8 Mon Sep 17 00:00:00 2001 From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com> Date: Fri, 1 Nov 2024 13:17:38 +0000 Subject: [PATCH 07/17] build(codegen): updating SDK --- changes.md | 8 ++++++++ .../Models/ChangeHistories/IModifiedBy.cs | 4 ++-- .../Models/ChangeHistories/ModifiedBy.cs | 4 ++-- references.txt | 1 + 4 files changed, 13 insertions(+), 4 deletions(-) diff --git a/changes.md b/changes.md index 19c55f3a6d0..78a21e04821 100644 --- a/changes.md +++ b/changes.md @@ -38,3 +38,11 @@ - added type `NewMasterVariantAdditionNotAllowedError`
+**History changes** + +
+Required Property(s) + +- changed property `id` of type `ModifiedBy` to be optional +
+ diff --git a/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/commercetoolsSdkHistoryApi/Models/ChangeHistories/IModifiedBy.cs b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/commercetoolsSdkHistoryApi/Models/ChangeHistories/IModifiedBy.cs index 8f5e787a500..9ffeb442feb 100644 --- a/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/commercetoolsSdkHistoryApi/Models/ChangeHistories/IModifiedBy.cs +++ b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/commercetoolsSdkHistoryApi/Models/ChangeHistories/IModifiedBy.cs @@ -6,6 +6,8 @@ namespace commercetools.Sdk.HistoryApi.Models.ChangeHistories [DeserializeAs(typeof(commercetools.Sdk.HistoryApi.Models.ChangeHistories.ModifiedBy))] public partial interface IModifiedBy { + bool IsPlatformClient { get; set; } + string Id { get; set; } string Type { get; set; } @@ -18,7 +20,5 @@ public partial interface IModifiedBy IReference Associate { get; set; } - bool IsPlatformClient { get; set; } - } } diff --git a/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/commercetoolsSdkHistoryApi/Models/ChangeHistories/ModifiedBy.cs b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/commercetoolsSdkHistoryApi/Models/ChangeHistories/ModifiedBy.cs index f0ae06b88ef..66a100a4d72 100644 --- a/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/commercetoolsSdkHistoryApi/Models/ChangeHistories/ModifiedBy.cs +++ b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/commercetoolsSdkHistoryApi/Models/ChangeHistories/ModifiedBy.cs @@ -6,6 +6,8 @@ namespace commercetools.Sdk.HistoryApi.Models.ChangeHistories public partial class ModifiedBy : IModifiedBy { + public bool IsPlatformClient { get; set; } + public string Id { get; set; } public string Type { get; set; } @@ -17,7 +19,5 @@ public partial class ModifiedBy : IModifiedBy public IReference Customer { get; set; } public IReference Associate { get; set; } - - public bool IsPlatformClient { get; set; } } } diff --git a/references.txt b/references.txt index 18d6c9d3793..b423a398574 100644 --- a/references.txt +++ b/references.txt @@ -291,3 +291,4 @@ c27603f949e869148570ebb8bd3ec6db34a985b7 82bca33a98d14907ea79e2cca281625dd82cdf0d c8c2455221baca20421082b7715eaa0a712af7f1 41774e015e4f946bd57f0e2dc76522ed757860c4 +1406d1e9ac4945b1179cfce2a956a39f67b757a9 From 1b6176796bd7b59f40a47590b483ea9b2ee7392b Mon Sep 17 00:00:00 2001 From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com> Date: Fri, 1 Nov 2024 13:27:42 +0000 Subject: [PATCH 08/17] build(codegen): updating SDK --- changes.md | 8 ++++++++ .../Models/ChangeHistories/IModifiedBy.cs | 4 ++-- .../Models/ChangeHistories/ModifiedBy.cs | 4 ++-- references.txt | 1 + 4 files changed, 13 insertions(+), 4 deletions(-) diff --git a/changes.md b/changes.md index 19c55f3a6d0..78a21e04821 100644 --- a/changes.md +++ b/changes.md @@ -38,3 +38,11 @@ - added type `NewMasterVariantAdditionNotAllowedError`
+**History changes** + +
+Required Property(s) + +- changed property `id` of type `ModifiedBy` to be optional +
+ diff --git a/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/commercetoolsSdkHistoryApi/Models/ChangeHistories/IModifiedBy.cs b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/commercetoolsSdkHistoryApi/Models/ChangeHistories/IModifiedBy.cs index 8f5e787a500..9ffeb442feb 100644 --- a/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/commercetoolsSdkHistoryApi/Models/ChangeHistories/IModifiedBy.cs +++ b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/commercetoolsSdkHistoryApi/Models/ChangeHistories/IModifiedBy.cs @@ -6,6 +6,8 @@ namespace commercetools.Sdk.HistoryApi.Models.ChangeHistories [DeserializeAs(typeof(commercetools.Sdk.HistoryApi.Models.ChangeHistories.ModifiedBy))] public partial interface IModifiedBy { + bool IsPlatformClient { get; set; } + string Id { get; set; } string Type { get; set; } @@ -18,7 +20,5 @@ public partial interface IModifiedBy IReference Associate { get; set; } - bool IsPlatformClient { get; set; } - } } diff --git a/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/commercetoolsSdkHistoryApi/Models/ChangeHistories/ModifiedBy.cs b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/commercetoolsSdkHistoryApi/Models/ChangeHistories/ModifiedBy.cs index f0ae06b88ef..66a100a4d72 100644 --- a/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/commercetoolsSdkHistoryApi/Models/ChangeHistories/ModifiedBy.cs +++ b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/commercetoolsSdkHistoryApi/Models/ChangeHistories/ModifiedBy.cs @@ -6,6 +6,8 @@ namespace commercetools.Sdk.HistoryApi.Models.ChangeHistories public partial class ModifiedBy : IModifiedBy { + public bool IsPlatformClient { get; set; } + public string Id { get; set; } public string Type { get; set; } @@ -17,7 +19,5 @@ public partial class ModifiedBy : IModifiedBy public IReference Customer { get; set; } public IReference Associate { get; set; } - - public bool IsPlatformClient { get; set; } } } diff --git a/references.txt b/references.txt index 18d6c9d3793..e4757f222e8 100644 --- a/references.txt +++ b/references.txt @@ -291,3 +291,4 @@ c27603f949e869148570ebb8bd3ec6db34a985b7 82bca33a98d14907ea79e2cca281625dd82cdf0d c8c2455221baca20421082b7715eaa0a712af7f1 41774e015e4f946bd57f0e2dc76522ed757860c4 +d410bad973f2fe90ea8239c4cb586fe0cfc13856 From 807a24284c3421d2d1e00d06c10c14650f82dfe8 Mon Sep 17 00:00:00 2001 From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com> Date: Wed, 6 Nov 2024 16:01:08 +0000 Subject: [PATCH 09/17] TASK: Updating version in README --- CHANGELOG.md | 15 +++++++++++++++ reference.txt | 1 - 2 files changed, 15 insertions(+), 1 deletion(-) delete mode 100644 reference.txt diff --git a/CHANGELOG.md b/CHANGELOG.md index 3ec7804fa98..5683e571c50 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,19 @@ +# 11.13.0 (2024-11-06) + +## What's Changed +* Update changelog by @ct-sdks in https://github.com/commercetools/commercetools-dotnet-core-sdk-v2/pull/364 +* Update generated SDKs by @ct-sdks in https://github.com/commercetools/commercetools-dotnet-core-sdk-v2/pull/365 +* Update generated SDKs by @ct-sdks in https://github.com/commercetools/commercetools-dotnet-core-sdk-v2/pull/366 +* Update generated SDKs by @ct-sdks in https://github.com/commercetools/commercetools-dotnet-core-sdk-v2/pull/367 +* Update generated SDKs by @ct-sdks in https://github.com/commercetools/commercetools-dotnet-core-sdk-v2/pull/368 +* Update generated SDKs by @ct-sdks in https://github.com/commercetools/commercetools-dotnet-core-sdk-v2/pull/369 +* Update generated SDKs by @ct-sdks in https://github.com/commercetools/commercetools-dotnet-core-sdk-v2/pull/370 +* Update generated SDKs by @ct-sdks in https://github.com/commercetools/commercetools-dotnet-core-sdk-v2/pull/371 + + +**Full Changelog**: https://github.com/commercetools/commercetools-dotnet-core-sdk-v2/compare/11.12.0...11.13.0 + # 11.12.0 (2024-10-08) ## What's Changed diff --git a/reference.txt b/reference.txt deleted file mode 100644 index 262c0ca1d24..00000000000 --- a/reference.txt +++ /dev/null @@ -1 +0,0 @@ -e985f4b7aa55610705ee49bd3eb645c2fd03eb6c From cf9f2276720daf8c206831171a0cbe0af46e8424 Mon Sep 17 00:00:00 2001 From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com> Date: Thu, 7 Nov 2024 11:49:48 +0000 Subject: [PATCH 10/17] build(codegen): updating SDK --- reference.txt | 1 + references.txt | 1 + 2 files changed, 2 insertions(+) create mode 100644 reference.txt diff --git a/reference.txt b/reference.txt new file mode 100644 index 00000000000..47582d8155e --- /dev/null +++ b/reference.txt @@ -0,0 +1 @@ +ccf4522140c12b0093aefe0e2a27d62bcc4834a6 diff --git a/references.txt b/references.txt index e4757f222e8..d319b48db3b 100644 --- a/references.txt +++ b/references.txt @@ -292,3 +292,4 @@ c27603f949e869148570ebb8bd3ec6db34a985b7 c8c2455221baca20421082b7715eaa0a712af7f1 41774e015e4f946bd57f0e2dc76522ed757860c4 d410bad973f2fe90ea8239c4cb586fe0cfc13856 +6bb8d35316a92441d0a59417b49ad3a8c7037e45 From 7e317460711154ceab9464ee13f3349dd126eb5e Mon Sep 17 00:00:00 2001 From: Jens Schulze Date: Mon, 11 Nov 2024 14:16:02 +0100 Subject: [PATCH 11/17] add converter for product search facets (#375) --- .../ProductSearchDeserializationTest.cs | 38 +++++++++ .../Resources/ProductSearch/facets.json | 20 +++++ .../ProductSearchFacetConverter.cs | 80 +++++++++++++++++++ .../Serialization/SerializerService.cs | 1 + 4 files changed, 139 insertions(+) create mode 100644 commercetools.Sdk/Tests/commercetools.Api.Serialization.Tests/ProductSearchDeserializationTest.cs create mode 100644 commercetools.Sdk/Tests/commercetools.Api.Serialization.Tests/Resources/ProductSearch/facets.json create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Serialization/JsonConverters/ProductSearchFacetConverter.cs diff --git a/commercetools.Sdk/Tests/commercetools.Api.Serialization.Tests/ProductSearchDeserializationTest.cs b/commercetools.Sdk/Tests/commercetools.Api.Serialization.Tests/ProductSearchDeserializationTest.cs new file mode 100644 index 00000000000..622e295dc38 --- /dev/null +++ b/commercetools.Sdk/Tests/commercetools.Api.Serialization.Tests/ProductSearchDeserializationTest.cs @@ -0,0 +1,38 @@ +using System.IO; +using commercetools.Sdk.Api.Models.ProductSearches; +using FluentAssertions; +using Xunit; + +namespace commercetools.Api.Serialization.Tests +{ + public class ProductSearchDeserializationTest : IClassFixture + { + private readonly SerializationFixture _serializationFixture; + + public ProductSearchDeserializationTest(SerializationFixture serializationFixture) + { + this._serializationFixture = serializationFixture; + } + + [Fact] + public void FacetDeserialization() + { + var serializerService = this._serializationFixture.SerializerService; + var serialized = File.ReadAllText("Resources/ProductSearch/facets.json"); + var deserialized = serializerService.Deserialize(serialized); + Assert.NotNull(deserialized); + var facets = deserialized.Facets; + var bucket = Assert.IsAssignableFrom(facets[0]); + Assert.Equal("supplierName", bucket.Name); + Assert.Equal("Example Inc.", bucket.Buckets[0].Key); + Assert.Equal(77, bucket.Buckets[0].Count); + var count = Assert.IsAssignableFrom(facets[1]); + Assert.Equal("supplierCounts", count.Name); + Assert.Equal(10, count.Value); + + var serialize = serializerService.Serialize(deserialized); + + Assert.Equal("{\"total\":0,\"offset\":0,\"limit\":0,\"facets\":[{\"name\":\"supplierName\",\"buckets\":[{\"key\":\"Example Inc.\",\"count\":77}]},{\"name\":\"supplierCounts\",\"value\":10}]}", serialize); + } + } +} \ No newline at end of file diff --git a/commercetools.Sdk/Tests/commercetools.Api.Serialization.Tests/Resources/ProductSearch/facets.json b/commercetools.Sdk/Tests/commercetools.Api.Serialization.Tests/Resources/ProductSearch/facets.json new file mode 100644 index 00000000000..b7a50be62f0 --- /dev/null +++ b/commercetools.Sdk/Tests/commercetools.Api.Serialization.Tests/Resources/ProductSearch/facets.json @@ -0,0 +1,20 @@ +{ + "total":0, + "offset": 0, + "limit": 0, + "facets": [ + { + "name": "supplierName", + "buckets": [ + { + "key": "Example Inc.", + "count": 77 + } + ] + }, + { + "name": "supplierCounts", + "value": 10 + } + ] +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Serialization/JsonConverters/ProductSearchFacetConverter.cs b/commercetools.Sdk/commercetools.Sdk.Api/Serialization/JsonConverters/ProductSearchFacetConverter.cs new file mode 100644 index 00000000000..beb15f56f17 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Serialization/JsonConverters/ProductSearchFacetConverter.cs @@ -0,0 +1,80 @@ +using System.Collections.Generic; +using System.Text.Json; +using System.Text.Json.Serialization; +using commercetools.Sdk.Api.Models.Products; +using commercetools.Base.Serialization; +using commercetools.Base.Serialization.MapperTypeRetrievers; +using commercetools.Sdk.Api.Models.ProductSearches; +using commercetools.Sdk.Api.Serialization.MapperTypeRetrievers; +using Attribute = commercetools.Sdk.Api.Models.Products.Attribute; +using Type = System.Type; + +namespace commercetools.Sdk.Api.Serialization.JsonConverters +{ + public class ProductSearchFacetConverter : JsonConverter + { + private readonly ISerializerService _serializerService; + + public ProductSearchFacetConverter(ISerializerService serializerService) + { + this._serializerService = serializerService; + } + + public override bool CanConvert(Type typeToConvert) + { + return typeof(IProductSearchFacetResult).IsAssignableFrom(typeToConvert); + } + + public override IProductSearchFacetResult Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + var jsonDocument = JsonDocument.ParseValue(ref reader); + IAttribute attribute; + var rootElement = jsonDocument.RootElement; + if (rootElement.ValueKind == JsonValueKind.Object) + { + var nameProp = rootElement.GetProperty("name"); + if (rootElement.TryGetProperty("buckets", out var bucketsElement)) + { + return new ProductSearchFacetResultBucket + { + Name = nameProp.GetString(), + Buckets = bucketsElement.ToObject>(_serializerService) + }; + } + if (rootElement.TryGetProperty("value", out var valueElement)) + { + return new ProductSearchFacetResultCount + { + Name = nameProp.GetString(), + Value = valueElement.GetInt64() + }; + } + + return new ProductSearchFacetResult + { + Name = nameProp.GetString() + }; + } + + return null; + } + + public override void Write(Utf8JsonWriter writer, IProductSearchFacetResult value, + JsonSerializerOptions options) + { + writer.WriteStartObject(); + writer.WriteString("name", value.Name); + if (value is ProductSearchFacetResultBucket bucket) + { + writer.WritePropertyName("buckets"); + JsonSerializer.Serialize(writer, bucket.Buckets, options); + } + else if (value is ProductSearchFacetResultCount count) { + writer.WritePropertyName("value"); + JsonSerializer.Serialize(writer, count.Value, options); + } + + writer.WriteEndObject(); + } + } +} \ No newline at end of file diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Serialization/SerializerService.cs b/commercetools.Sdk/commercetools.Sdk.Api/Serialization/SerializerService.cs index 4ad42c530bf..2f8decb263f 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Serialization/SerializerService.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Serialization/SerializerService.cs @@ -49,6 +49,7 @@ public SerializerService( _serializerOptions.Converters.Add(new MessageDeliveryConverter(this)); _serializerOptions.Converters.Add(new CustomDateTimeConverter()); _serializerOptions.Converters.Add(new CustomDateConverter()); + _serializerOptions.Converters.Add(new ProductSearchFacetConverter(this)); _serializerOptions.Converters.Add(new FieldContainerConverter(customFieldsMapperTypeRetriever, this)); _serializerOptions.Converters.Add(new AttributeConverter(attributesMapperTypeRetriever, attributeTypeRetriever, this)); _serializerOptions.Converters.Add(new DeserializeAsConverterFactory( From 36d459c2481c91fda12f85830b88d8e665507ae6 Mon Sep 17 00:00:00 2001 From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com> Date: Mon, 11 Nov 2024 13:28:25 +0000 Subject: [PATCH 12/17] TASK: Updating version in README --- CHANGELOG.md | 8 ++++++++ reference.txt | 1 - 2 files changed, 8 insertions(+), 1 deletion(-) delete mode 100644 reference.txt diff --git a/CHANGELOG.md b/CHANGELOG.md index 5683e571c50..981bfe0edde 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,12 @@ +# 11.14.0 (2024-11-11) + +## What's Changed +* add converter for product search facets by @jenschude in https://github.com/commercetools/commercetools-dotnet-core-sdk-v2/pull/375 + + +**Full Changelog**: https://github.com/commercetools/commercetools-dotnet-core-sdk-v2/compare/11.13.0...11.14.0 + # 11.13.0 (2024-11-06) ## What's Changed diff --git a/reference.txt b/reference.txt deleted file mode 100644 index 47582d8155e..00000000000 --- a/reference.txt +++ /dev/null @@ -1 +0,0 @@ -ccf4522140c12b0093aefe0e2a27d62bcc4834a6 From 9323a4c60e815acfb769af4d3a7110037a50ccdf Mon Sep 17 00:00:00 2001 From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com> Date: Tue, 12 Nov 2024 16:20:21 +0000 Subject: [PATCH 13/17] build(codegen): updating SDK --- .../ProductSearchDeserializationTest.cs | 5 ++--- .../JsonConverters/ProductSearchFacetConverter.cs | 6 ++---- reference.txt | 1 + references.txt | 1 + 4 files changed, 6 insertions(+), 7 deletions(-) create mode 100644 reference.txt diff --git a/commercetools.Sdk/Tests/commercetools.Api.Serialization.Tests/ProductSearchDeserializationTest.cs b/commercetools.Sdk/Tests/commercetools.Api.Serialization.Tests/ProductSearchDeserializationTest.cs index 622e295dc38..ec5d9a547d5 100644 --- a/commercetools.Sdk/Tests/commercetools.Api.Serialization.Tests/ProductSearchDeserializationTest.cs +++ b/commercetools.Sdk/Tests/commercetools.Api.Serialization.Tests/ProductSearchDeserializationTest.cs @@ -1,6 +1,5 @@ using System.IO; using commercetools.Sdk.Api.Models.ProductSearches; -using FluentAssertions; using Xunit; namespace commercetools.Api.Serialization.Tests @@ -29,9 +28,9 @@ public void FacetDeserialization() var count = Assert.IsAssignableFrom(facets[1]); Assert.Equal("supplierCounts", count.Name); Assert.Equal(10, count.Value); - + var serialize = serializerService.Serialize(deserialized); - + Assert.Equal("{\"total\":0,\"offset\":0,\"limit\":0,\"facets\":[{\"name\":\"supplierName\",\"buckets\":[{\"key\":\"Example Inc.\",\"count\":77}]},{\"name\":\"supplierCounts\",\"value\":10}]}", serialize); } } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Serialization/JsonConverters/ProductSearchFacetConverter.cs b/commercetools.Sdk/commercetools.Sdk.Api/Serialization/JsonConverters/ProductSearchFacetConverter.cs index beb15f56f17..38a3cbe538f 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Serialization/JsonConverters/ProductSearchFacetConverter.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Serialization/JsonConverters/ProductSearchFacetConverter.cs @@ -3,10 +3,7 @@ using System.Text.Json.Serialization; using commercetools.Sdk.Api.Models.Products; using commercetools.Base.Serialization; -using commercetools.Base.Serialization.MapperTypeRetrievers; using commercetools.Sdk.Api.Models.ProductSearches; -using commercetools.Sdk.Api.Serialization.MapperTypeRetrievers; -using Attribute = commercetools.Sdk.Api.Models.Products.Attribute; using Type = System.Type; namespace commercetools.Sdk.Api.Serialization.JsonConverters @@ -69,7 +66,8 @@ public override void Write(Utf8JsonWriter writer, IProductSearchFacetResult valu writer.WritePropertyName("buckets"); JsonSerializer.Serialize(writer, bucket.Buckets, options); } - else if (value is ProductSearchFacetResultCount count) { + else if (value is ProductSearchFacetResultCount count) + { writer.WritePropertyName("value"); JsonSerializer.Serialize(writer, count.Value, options); } diff --git a/reference.txt b/reference.txt new file mode 100644 index 00000000000..d661f8563bb --- /dev/null +++ b/reference.txt @@ -0,0 +1 @@ +0be69283d6aba9d3a2f895140378673f2f80f7b0 diff --git a/references.txt b/references.txt index d319b48db3b..7fec4d05416 100644 --- a/references.txt +++ b/references.txt @@ -293,3 +293,4 @@ c8c2455221baca20421082b7715eaa0a712af7f1 41774e015e4f946bd57f0e2dc76522ed757860c4 d410bad973f2fe90ea8239c4cb586fe0cfc13856 6bb8d35316a92441d0a59417b49ad3a8c7037e45 +605a1ff5cf861ca0d8e2711ca79374804f180b50 From eb1e1a71d9bb597f9bd520665650aa3aba2a3b99 Mon Sep 17 00:00:00 2001 From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com> Date: Thu, 14 Nov 2024 15:26:31 +0000 Subject: [PATCH 14/17] build(codegen): updating SDK --- changes.md | 45 ++----------------- .../Models/GraphQl/GraphQLErrorLocation.cs | 4 +- .../Models/GraphQl/IGraphQLErrorLocation.cs | 4 +- references.txt | 1 + 4 files changed, 8 insertions(+), 46 deletions(-) diff --git a/changes.md b/changes.md index 78a21e04821..208cb3f1ff7 100644 --- a/changes.md +++ b/changes.md @@ -1,48 +1,9 @@ **Api changes**
-Added Type(s) +Changed Property(s) -- added type `ApprovalRuleSetCustomFieldAction` -- added type `ApprovalRuleSetCustomTypeAction` -
- - -
-Added Property(s) - -- added property `custom` to type `ApprovalRule` -- added property `source` to type `EventBridgeDestination` -
- - -
-Added Enum(s) - -- added enum `approval-rule` to type `CustomFieldReferenceValue` -- added enum `approval-rule` to type `ResourceTypeId` -
- - -
-Added Method(s) - -- added method `apiRoot.withProjectKey().productTailoring().head()` -
- -**Import changes** - -
-Added Type(s) - -- added type `NewMasterVariantAdditionNotAllowedError` -
- -**History changes** - -
-Required Property(s) - -- changed property `id` of type `ModifiedBy` to be optional +- :warning: changed property `line` of type `GraphQLErrorLocation` from type `integer` to `number` +- :warning: changed property `column` of type `GraphQLErrorLocation` from type `integer` to `number`
diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/GraphQl/GraphQLErrorLocation.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/GraphQl/GraphQLErrorLocation.cs index 72606beed56..bffdfa15ea6 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/GraphQl/GraphQLErrorLocation.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/GraphQl/GraphQLErrorLocation.cs @@ -5,8 +5,8 @@ namespace commercetools.Sdk.Api.Models.GraphQl public partial class GraphQLErrorLocation : IGraphQLErrorLocation { - public int Line { get; set; } + public long Line { get; set; } - public int Column { get; set; } + public long Column { get; set; } } } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/GraphQl/IGraphQLErrorLocation.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/GraphQl/IGraphQLErrorLocation.cs index c4a13fff203..af9164dfccc 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/GraphQl/IGraphQLErrorLocation.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/GraphQl/IGraphQLErrorLocation.cs @@ -5,9 +5,9 @@ namespace commercetools.Sdk.Api.Models.GraphQl [DeserializeAs(typeof(commercetools.Sdk.Api.Models.GraphQl.GraphQLErrorLocation))] public partial interface IGraphQLErrorLocation { - int Line { get; set; } + long Line { get; set; } - int Column { get; set; } + long Column { get; set; } } } diff --git a/references.txt b/references.txt index 7fec4d05416..24b0500273b 100644 --- a/references.txt +++ b/references.txt @@ -294,3 +294,4 @@ c8c2455221baca20421082b7715eaa0a712af7f1 d410bad973f2fe90ea8239c4cb586fe0cfc13856 6bb8d35316a92441d0a59417b49ad3a8c7037e45 605a1ff5cf861ca0d8e2711ca79374804f180b50 +f254d17f05343dcc4299fc53ff9b335b5ef63d69 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 15/17] 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 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 16/17] 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 From 8f9dc179efc1cd7b2466c8f32bb1c282ced4a348 Mon Sep 17 00:00:00 2001 From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com> Date: Wed, 20 Nov 2024 07:32:32 +0000 Subject: [PATCH 17/17] build(codegen): updating SDK --- changes.md | 2 ++ .../commercetoolsSdkApi/Models/OrderEdits/StagedOrder.cs | 2 +- .../Generated/commercetoolsSdkApi/Models/Orders/IOrder.cs | 2 +- .../Generated/commercetoolsSdkApi/Models/Orders/Order.cs | 2 +- .../Query/Generated/OrderEdits/StagedOrderQueryBuilderDsl.cs | 4 ++-- .../Predicates/Query/Generated/Orders/OrderQueryBuilderDsl.cs | 4 ++-- references.txt | 1 + 7 files changed, 10 insertions(+), 7 deletions(-) diff --git a/changes.md b/changes.md index 7b038d2ae2d..048f1ace496 100644 --- a/changes.md +++ b/changes.md @@ -5,6 +5,8 @@ - :warning: changed property `line` of type `GraphQLErrorLocation` from type `integer` to `number` - :warning: changed property `column` of type `GraphQLErrorLocation` from type `integer` to `number` +- :warning: changed property `totalPrice` of type `StagedOrder` from type `TypedMoney` to `CentPrecisionMoney` +- :warning: changed property `totalPrice` of type `Order` from type `TypedMoney` to `CentPrecisionMoney` diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/OrderEdits/StagedOrder.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/OrderEdits/StagedOrder.cs index a69b5e10065..3c99295664a 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/OrderEdits/StagedOrder.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/OrderEdits/StagedOrder.cs @@ -49,7 +49,7 @@ public partial class StagedOrder : IStagedOrder public IEnumerable CustomLineItemsEnumerable { set => CustomLineItems = value.ToList(); } - public ITypedMoney TotalPrice { get; set; } + public ICentPrecisionMoney TotalPrice { get; set; } public ITaxedPrice TaxedPrice { get; set; } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Orders/IOrder.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Orders/IOrder.cs index 75f635c6260..9cddfefce75 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Orders/IOrder.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Orders/IOrder.cs @@ -45,7 +45,7 @@ public partial interface IOrder : IBaseResource IEnumerable CustomLineItemsEnumerable { set => CustomLineItems = value.ToList(); } - ITypedMoney TotalPrice { get; set; } + ICentPrecisionMoney TotalPrice { get; set; } ITaxedPrice TaxedPrice { get; set; } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Orders/Order.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Orders/Order.cs index 5c01d0d0c48..743680ced27 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Orders/Order.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Orders/Order.cs @@ -48,7 +48,7 @@ public partial class Order : IOrder public IEnumerable CustomLineItemsEnumerable { set => CustomLineItems = value.ToList(); } - public ITypedMoney TotalPrice { get; set; } + public ICentPrecisionMoney TotalPrice { get; set; } public ITaxedPrice TaxedPrice { get; set; } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/OrderEdits/StagedOrderQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/OrderEdits/StagedOrderQueryBuilderDsl.cs index 969a3256a84..34f92c418ed 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/OrderEdits/StagedOrderQueryBuilderDsl.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/OrderEdits/StagedOrderQueryBuilderDsl.cs @@ -123,11 +123,11 @@ public ICollectionPredicateBuilder CustomLineItems() p => new CombinationQueryPredicate(p, StagedOrderQueryBuilderDsl.Of)); } public CombinationQueryPredicate TotalPrice( - Func> fn) + Func> fn) { return new CombinationQueryPredicate(ContainerQueryPredicate.Of() .Parent(ConstantQueryPredicate.Of().Constant("totalPrice")) - .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Common.TypedMoneyQueryBuilderDsl.Of())), + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Common.CentPrecisionMoneyQueryBuilderDsl.Of())), StagedOrderQueryBuilderDsl.Of); } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Orders/OrderQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Orders/OrderQueryBuilderDsl.cs index 90da925d99c..5bd2ce95e56 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Orders/OrderQueryBuilderDsl.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Orders/OrderQueryBuilderDsl.cs @@ -123,11 +123,11 @@ public ICollectionPredicateBuilder CustomLineItems() p => new CombinationQueryPredicate(p, OrderQueryBuilderDsl.Of)); } public CombinationQueryPredicate TotalPrice( - Func> fn) + Func> fn) { return new CombinationQueryPredicate(ContainerQueryPredicate.Of() .Parent(ConstantQueryPredicate.Of().Constant("totalPrice")) - .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Common.TypedMoneyQueryBuilderDsl.Of())), + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Common.CentPrecisionMoneyQueryBuilderDsl.Of())), OrderQueryBuilderDsl.Of); } diff --git a/references.txt b/references.txt index 50ec653aa33..d276643cb20 100644 --- a/references.txt +++ b/references.txt @@ -297,3 +297,4 @@ d410bad973f2fe90ea8239c4cb586fe0cfc13856 f254d17f05343dcc4299fc53ff9b335b5ef63d69 6892be230f1ad73f1150dd544c9fa7fee0e6b123 6a8624fb41168a6a78ac836b7208c2790a686608 +b747e1fa4f246b748a89bccbfd8a43f5b6f51175