diff --git a/changes.md b/changes.md index 22274010250..0c264a0f705 100644 --- a/changes.md +++ b/changes.md @@ -48,6 +48,7 @@
Added Property(s) +- added property `taxPortions` to type `TaxedItemPrice` - added property `totalTax` to type `TaxedPriceDraft` - added property `id` to type `ProductVariantAvailability` - added property `version` to type `ProductVariantAvailability` diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Carts/ITaxedItemPrice.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Carts/ITaxedItemPrice.cs index db1154c73d8..0e5a2335909 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Carts/ITaxedItemPrice.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Carts/ITaxedItemPrice.cs @@ -1,4 +1,6 @@ using commercetools.Sdk.Api.Models.Common; +using System.Collections.Generic; +using System.Linq; using commercetools.Base.CustomAttributes; // ReSharper disable CheckNamespace @@ -11,6 +13,10 @@ public partial interface ITaxedItemPrice ICentPrecisionMoney TotalGross { get; set; } + IList TaxPortions { get; set; } + IEnumerable TaxPortionsEnumerable { set => TaxPortions = value.ToList(); } + + ICentPrecisionMoney TotalTax { get; set; } } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Carts/TaxedItemPrice.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Carts/TaxedItemPrice.cs index 89fabecdd78..9d8b9584340 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Carts/TaxedItemPrice.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Carts/TaxedItemPrice.cs @@ -1,4 +1,6 @@ using commercetools.Sdk.Api.Models.Common; +using System.Collections.Generic; +using System.Linq; namespace commercetools.Sdk.Api.Models.Carts @@ -10,6 +12,10 @@ public partial class TaxedItemPrice : ITaxedItemPrice public ICentPrecisionMoney TotalGross { get; set; } + public IList TaxPortions { get; set; } + public IEnumerable TaxPortionsEnumerable { set => TaxPortions = value.ToList(); } + + public ICentPrecisionMoney TotalTax { get; set; } } } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Carts/TaxedItemPriceQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Carts/TaxedItemPriceQueryBuilderDsl.cs index a4251638a32..7ac41c05813 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Carts/TaxedItemPriceQueryBuilderDsl.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Carts/TaxedItemPriceQueryBuilderDsl.cs @@ -33,6 +33,19 @@ public CombinationQueryPredicate TotalGross( TaxedItemPriceQueryBuilderDsl.Of); } + public CombinationQueryPredicate TaxPortions( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("taxPortions")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Carts.TaxPortionQueryBuilderDsl.Of())), + TaxedItemPriceQueryBuilderDsl.Of); + } + public ICollectionPredicateBuilder TaxPortions() + { + return new CollectionPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("taxPortions")), + p => new CombinationQueryPredicate(p, TaxedItemPriceQueryBuilderDsl.Of)); + } public CombinationQueryPredicate TotalTax( Func> fn) { diff --git a/commercetools.Sdk/commercetools.Sdk.GraphQL.Api/schema.graphqls b/commercetools.Sdk/commercetools.Sdk.GraphQL.Api/schema.graphqls index bc2f94c4d9c..77949e49531 100644 --- a/commercetools.Sdk/commercetools.Sdk.GraphQL.Api/schema.graphqls +++ b/commercetools.Sdk/commercetools.Sdk.GraphQL.Api/schema.graphqls @@ -6755,8 +6755,8 @@ type OrderLineItemDiscountSet implements MessagePayload & OrderMessagePayload { lineItemKey: String discountedPricePerQuantity: [DiscountedLineItemPriceForQuantity!]! totalPrice: Money! - taxedPrice: TaxedItemPrice taxedPricePortions: [MethodTaxedPrice!]! + taxedPrice: TaxedItemPrice type: String! } @@ -6775,9 +6775,9 @@ type OrderLineItemRemoved implements MessagePayload & OrderMessagePayload { newQuantity: Long! newState: Set! newTotalPrice: Money! - newTaxedPrice: TaxedItemPrice newPrice: ProductPrice newShippingDetails: ItemShippingDetails + newTaxedPrice: TaxedItemPrice type: String! } @@ -12604,12 +12604,12 @@ type ShippingInfo { taxRate: TaxRate deliveries: [Delivery!]! discountedPrice: DiscountedLineItemPrice - taxedPrice: TaxedItemPrice shippingMethodState: ShippingMethodState! shippingMethod: ShippingMethod shippingMethodRef: Reference taxCategory: TaxCategory taxCategoryRef: Reference + taxedPrice: TaxedItemPrice } input ShippingInfoImportDraft { @@ -13832,6 +13832,7 @@ input TaxRateInput { type TaxedItemPrice { totalNet: Money! totalGross: Money! + taxPortions: [TaxPortion!]! totalTax: Money } diff --git a/references.txt b/references.txt index d585de4bfdc..bcc1b5159ef 100644 --- a/references.txt +++ b/references.txt @@ -227,3 +227,4 @@ ffed231e91d01608e1bb08ecc1883cf00d9d9293 15f9e1d4f4595a72184d80cfb317402e5676eac9 9426f11f6f1755829c81c7db9fce597fdda6ade6 c11681240a69eb894764895d5dcfd21bf6812352 +cbff068f3b95e6021ff4d76bd7684ddd6dcfce6f