diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/DiscountedLineItemPrice.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/DiscountedLineItemPrice.java index be8fc524db..35f789061a 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/DiscountedLineItemPrice.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/DiscountedLineItemPrice.java @@ -37,6 +37,7 @@ public interface DiscountedLineItemPrice { /** *

Money value of the discounted Line Item or Custom Line Item.

+ *

When multiple discounts from includedDiscounts apply, they are applied sequentially based on the sortOrder of their associated Cart Discounts (discounts with higher sortOrder values are applied first). The Cart's priceRoundingMode field (RoundingMode) is applied after each discount calculation, so rounding occurs after each discount step rather than only once on the final cumulative amount.

* @return value */ @NotNull @@ -55,6 +56,7 @@ public interface DiscountedLineItemPrice { /** *

Money value of the discounted Line Item or Custom Line Item.

+ *

When multiple discounts from includedDiscounts apply, they are applied sequentially based on the sortOrder of their associated Cart Discounts (discounts with higher sortOrder values are applied first). The Cart's priceRoundingMode field (RoundingMode) is applied after each discount calculation, so rounding occurs after each discount step rather than only once on the final cumulative amount.

* @param value value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/DiscountedLineItemPriceBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/DiscountedLineItemPriceBuilder.java index cfc6b84a8a..1bd9adf914 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/DiscountedLineItemPriceBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/DiscountedLineItemPriceBuilder.java @@ -29,6 +29,7 @@ public class DiscountedLineItemPriceBuilder implements BuilderMoney value of the discounted Line Item or Custom Line Item.

+ *

When multiple discounts from includedDiscounts apply, they are applied sequentially based on the sortOrder of their associated Cart Discounts (discounts with higher sortOrder values are applied first). The Cart's priceRoundingMode field (RoundingMode) is applied after each discount calculation, so rounding occurs after each discount step rather than only once on the final cumulative amount.

* @param value value to be set * @return Builder */ @@ -40,6 +41,7 @@ public DiscountedLineItemPriceBuilder value(final com.commercetools.api.models.c /** *

Money value of the discounted Line Item or Custom Line Item.

+ *

When multiple discounts from includedDiscounts apply, they are applied sequentially based on the sortOrder of their associated Cart Discounts (discounts with higher sortOrder values are applied first). The Cart's priceRoundingMode field (RoundingMode) is applied after each discount calculation, so rounding occurs after each discount step rather than only once on the final cumulative amount.

* @param builder function to build the value value * @return Builder */ @@ -145,6 +147,7 @@ public DiscountedLineItemPriceBuilder setIncludedDiscounts( /** *

Money value of the discounted Line Item or Custom Line Item.

+ *

When multiple discounts from includedDiscounts apply, they are applied sequentially based on the sortOrder of their associated Cart Discounts (discounts with higher sortOrder values are applied first). The Cart's priceRoundingMode field (RoundingMode) is applied after each discount calculation, so rounding occurs after each discount step rather than only once on the final cumulative amount.

* @return value */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/DiscountedLineItemPriceForQuantity.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/DiscountedLineItemPriceForQuantity.java index 1fecbc3a02..fc5a9793d7 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/DiscountedLineItemPriceForQuantity.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/DiscountedLineItemPriceForQuantity.java @@ -43,6 +43,7 @@ public interface DiscountedLineItemPriceForQuantity { /** *

Discounted price of the Line Item or Custom Line Item.

+ *

When multiple Cart Discounts apply to the same Line Item, the discounts are applied sequentially in the order determined by their sortOrder values (higher values are applied first). The price rounding mode specified by the Cart's priceRoundingMode field is applied after each individual discount is calculated, not after all discounts have been applied cumulatively. This means that rounding occurs at each step of the discount calculation process.

* @return discountedPrice */ @NotNull @@ -59,6 +60,7 @@ public interface DiscountedLineItemPriceForQuantity { /** *

Discounted price of the Line Item or Custom Line Item.

+ *

When multiple Cart Discounts apply to the same Line Item, the discounts are applied sequentially in the order determined by their sortOrder values (higher values are applied first). The price rounding mode specified by the Cart's priceRoundingMode field is applied after each individual discount is calculated, not after all discounts have been applied cumulatively. This means that rounding occurs at each step of the discount calculation process.

* @param discountedPrice value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/DiscountedLineItemPriceForQuantityBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/DiscountedLineItemPriceForQuantityBuilder.java index 4ff808b74c..7706ca0e87 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/DiscountedLineItemPriceForQuantityBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/DiscountedLineItemPriceForQuantityBuilder.java @@ -40,6 +40,7 @@ public DiscountedLineItemPriceForQuantityBuilder quantity(final Long quantity) { /** *

Discounted price of the Line Item or Custom Line Item.

+ *

When multiple Cart Discounts apply to the same Line Item, the discounts are applied sequentially in the order determined by their sortOrder values (higher values are applied first). The price rounding mode specified by the Cart's priceRoundingMode field is applied after each individual discount is calculated, not after all discounts have been applied cumulatively. This means that rounding occurs at each step of the discount calculation process.

* @param builder function to build the discountedPrice value * @return Builder */ @@ -53,6 +54,7 @@ public DiscountedLineItemPriceForQuantityBuilder discountedPrice( /** *

Discounted price of the Line Item or Custom Line Item.

+ *

When multiple Cart Discounts apply to the same Line Item, the discounts are applied sequentially in the order determined by their sortOrder values (higher values are applied first). The price rounding mode specified by the Cart's priceRoundingMode field is applied after each individual discount is calculated, not after all discounts have been applied cumulatively. This means that rounding occurs at each step of the discount calculation process.

* @param builder function to build the discountedPrice value * @return Builder */ @@ -65,6 +67,7 @@ public DiscountedLineItemPriceForQuantityBuilder withDiscountedPrice( /** *

Discounted price of the Line Item or Custom Line Item.

+ *

When multiple Cart Discounts apply to the same Line Item, the discounts are applied sequentially in the order determined by their sortOrder values (higher values are applied first). The price rounding mode specified by the Cart's priceRoundingMode field is applied after each individual discount is calculated, not after all discounts have been applied cumulatively. This means that rounding occurs at each step of the discount calculation process.

* @param discountedPrice value to be set * @return Builder */ @@ -86,6 +89,7 @@ public Long getQuantity() { /** *

Discounted price of the Line Item or Custom Line Item.

+ *

When multiple Cart Discounts apply to the same Line Item, the discounts are applied sequentially in the order determined by their sortOrder values (higher values are applied first). The price rounding mode specified by the Cart's priceRoundingMode field is applied after each individual discount is calculated, not after all discounts have been applied cumulatively. This means that rounding occurs at each step of the discount calculation process.

* @return discountedPrice */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/DiscountedLineItemPriceForQuantityImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/DiscountedLineItemPriceForQuantityImpl.java index a2788549c1..599a2c36cb 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/DiscountedLineItemPriceForQuantityImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/DiscountedLineItemPriceForQuantityImpl.java @@ -52,6 +52,7 @@ public Long getQuantity() { /** *

Discounted price of the Line Item or Custom Line Item.

+ *

When multiple Cart Discounts apply to the same Line Item, the discounts are applied sequentially in the order determined by their sortOrder values (higher values are applied first). The price rounding mode specified by the Cart's priceRoundingMode field is applied after each individual discount is calculated, not after all discounts have been applied cumulatively. This means that rounding occurs at each step of the discount calculation process.

*/ public com.commercetools.api.models.cart.DiscountedLineItemPrice getDiscountedPrice() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/DiscountedLineItemPriceImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/DiscountedLineItemPriceImpl.java index c199c4b320..afdcb6e235 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/DiscountedLineItemPriceImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/DiscountedLineItemPriceImpl.java @@ -44,6 +44,7 @@ public DiscountedLineItemPriceImpl() { /** *

Money value of the discounted Line Item or Custom Line Item.

+ *

When multiple discounts from includedDiscounts apply, they are applied sequentially based on the sortOrder of their associated Cart Discounts (discounts with higher sortOrder values are applied first). The Cart's priceRoundingMode field (RoundingMode) is applied after each discount calculation, so rounding occurs after each discount step rather than only once on the final cumulative amount.

*/ public com.commercetools.api.models.common.TypedMoney getValue() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/DiscountCombinationMode.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/DiscountCombinationMode.java index f9c30d9ad0..f47efb10fd 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/DiscountCombinationMode.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/DiscountCombinationMode.java @@ -11,16 +11,16 @@ import io.vrap.rmf.base.client.utils.Generated; /** - *

Defines how Product Discounts and Cart Discounts are combined for every Line Item in a Cart.

+ *

Defines how Product Discounts and Cart Discounts are combined for Line Items in every Cart of the Project.

*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public interface DiscountCombinationMode extends JsonEnum { /** -

Either Product Discounts or Cart Discounts are chosen based on best deal for the customer. Only one type applies per Line Item in a Cart.

*/ +

Either Product Discounts or Cart Discounts are chosen for each Line Item in the Cart based on the best deal for the Customer. Only one discount type applies per Line Item in the Cart.

*/ DiscountCombinationMode BEST_DEAL = DiscountCombinationModeEnum.BEST_DEAL; /** -

Product Discounts and Cart Discounts are both applied to the Line Item in a Cart, potentially increasing the total discount.

*/ +

Product Discounts and Cart Discounts are both applied to each Line Item in the Cart, potentially increasing the total discount.

*/ DiscountCombinationMode STACKING = DiscountCombinationModeEnum.STACKING; /** diff --git a/references.txt b/references.txt index 13e34b2f79..497498fa78 100644 --- a/references.txt +++ b/references.txt @@ -535,3 +535,5 @@ d90411c7dae76245a17c90707bfd18b735f04a9c 053ba06830d03bf8eb9963500e4498f14754b746 1119815b3a93e1f6fa3894492e10cbb57f93a3d7 a1e8798ca33fe3c7621ab83ff12ca20f269c406d +d3b8e01b6233c9a25fa53d3a8a50a8e1721e664c +d71139f421f6ec0343438bef335b6826feaa86e7