diff --git a/changes.md b/changes.md index 642ba7cedaf..e3e831fc1f0 100644 --- a/changes.md +++ b/changes.md @@ -1,12 +1,8 @@ **Api changes**
-Required Property(s) +Added Property(s) -- changed property `priceMode` of type `CustomLineItemDraft` to be optional -- changed property `oldShipmentState` of type `OrderShipmentStateChangedMessage` to be optional -- changed property `oldOrderState` of type `OrderStateChangedMessage` to be optional -- changed property `oldShipmentState` of type `OrderShipmentStateChangedMessagePayload` to be optional -- changed property `oldOrderState` of type `OrderStateChangedMessagePayload` to be optional +- added property `totalTax` to type `TaxedPriceDraft`
diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Carts/ITaxedPriceDraft.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Carts/ITaxedPriceDraft.cs index 4028fdff7a7..966745dd1b2 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Carts/ITaxedPriceDraft.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Carts/ITaxedPriceDraft.cs @@ -17,5 +17,7 @@ public partial interface ITaxedPriceDraft IEnumerable TaxPortionsEnumerable { set => TaxPortions = value.ToList(); } + ITypedMoneyDraft TotalTax { get; set; } + } } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Carts/TaxedPriceDraft.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Carts/TaxedPriceDraft.cs index fc6694891ab..372a395c299 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Carts/TaxedPriceDraft.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Carts/TaxedPriceDraft.cs @@ -15,5 +15,7 @@ public partial class TaxedPriceDraft : ITaxedPriceDraft public IList TaxPortions { get; set; } public IEnumerable TaxPortionsEnumerable { set => TaxPortions = value.ToList(); } + + public ITypedMoneyDraft TotalTax { get; set; } } } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Carts/TaxedPriceDraftQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Carts/TaxedPriceDraftQueryBuilderDsl.cs index b5b061c830d..a113c75aba5 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Carts/TaxedPriceDraftQueryBuilderDsl.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Carts/TaxedPriceDraftQueryBuilderDsl.cs @@ -46,6 +46,15 @@ public ICollectionPredicateBuilder TaxPortions() return new CollectionPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("taxPortions")), p => new CombinationQueryPredicate(p, TaxedPriceDraftQueryBuilderDsl.Of)); } + public CombinationQueryPredicate TotalTax( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("totalTax")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Common.TypedMoneyDraftQueryBuilderDsl.Of())), + TaxedPriceDraftQueryBuilderDsl.Of); + } + } } diff --git a/reference.txt b/reference.txt new file mode 100644 index 00000000000..1ad47f11586 --- /dev/null +++ b/reference.txt @@ -0,0 +1 @@ +45d710745130242337bd593c44bcdcbedd249313 diff --git a/references.txt b/references.txt index f05627421a3..338183301b5 100644 --- a/references.txt +++ b/references.txt @@ -223,3 +223,4 @@ ffed231e91d01608e1bb08ecc1883cf00d9d9293 2645451ae6aef245e333b2f30cf5cb3627f71403 65619eef7e065950cbb92467d72eaacc68004a14 65619eef7e065950cbb92467d72eaacc68004a14 +48bbac8851ae864319c404607e9f10b874df0e3f