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] 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