Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ public interface DiscountedLineItemPrice {

/**
* <p>Money value of the discounted Line Item or Custom Line Item.</p>
* <p>When multiple discounts from <code>includedDiscounts</code> apply, they are applied sequentially based on the <code>sortOrder</code> of their associated <a href="https://docs.commercetools.com/apis/ctp:api:type:CartDiscount" rel="nofollow">Cart Discounts</a> (discounts with higher <code>sortOrder</code> values are applied first). The Cart's <code>priceRoundingMode</code> field (<a href="https://docs.commercetools.com/apis/ctp:api:type:RoundingMode" rel="nofollow">RoundingMode</a>) is applied after each discount calculation, so rounding occurs after each discount step rather than only once on the final cumulative amount.</p>
* @return value
*/
@NotNull
Expand All @@ -55,6 +56,7 @@ public interface DiscountedLineItemPrice {

/**
* <p>Money value of the discounted Line Item or Custom Line Item.</p>
* <p>When multiple discounts from <code>includedDiscounts</code> apply, they are applied sequentially based on the <code>sortOrder</code> of their associated <a href="https://docs.commercetools.com/apis/ctp:api:type:CartDiscount" rel="nofollow">Cart Discounts</a> (discounts with higher <code>sortOrder</code> values are applied first). The Cart's <code>priceRoundingMode</code> field (<a href="https://docs.commercetools.com/apis/ctp:api:type:RoundingMode" rel="nofollow">RoundingMode</a>) is applied after each discount calculation, so rounding occurs after each discount step rather than only once on the final cumulative amount.</p>
* @param value value to be set
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ public class DiscountedLineItemPriceBuilder implements Builder<DiscountedLineIte

/**
* <p>Money value of the discounted Line Item or Custom Line Item.</p>
* <p>When multiple discounts from <code>includedDiscounts</code> apply, they are applied sequentially based on the <code>sortOrder</code> of their associated <a href="https://docs.commercetools.com/apis/ctp:api:type:CartDiscount" rel="nofollow">Cart Discounts</a> (discounts with higher <code>sortOrder</code> values are applied first). The Cart's <code>priceRoundingMode</code> field (<a href="https://docs.commercetools.com/apis/ctp:api:type:RoundingMode" rel="nofollow">RoundingMode</a>) is applied after each discount calculation, so rounding occurs after each discount step rather than only once on the final cumulative amount.</p>
* @param value value to be set
* @return Builder
*/
Expand All @@ -40,6 +41,7 @@ public DiscountedLineItemPriceBuilder value(final com.commercetools.api.models.c

/**
* <p>Money value of the discounted Line Item or Custom Line Item.</p>
* <p>When multiple discounts from <code>includedDiscounts</code> apply, they are applied sequentially based on the <code>sortOrder</code> of their associated <a href="https://docs.commercetools.com/apis/ctp:api:type:CartDiscount" rel="nofollow">Cart Discounts</a> (discounts with higher <code>sortOrder</code> values are applied first). The Cart's <code>priceRoundingMode</code> field (<a href="https://docs.commercetools.com/apis/ctp:api:type:RoundingMode" rel="nofollow">RoundingMode</a>) is applied after each discount calculation, so rounding occurs after each discount step rather than only once on the final cumulative amount.</p>
* @param builder function to build the value value
* @return Builder
*/
Expand Down Expand Up @@ -145,6 +147,7 @@ public DiscountedLineItemPriceBuilder setIncludedDiscounts(

/**
* <p>Money value of the discounted Line Item or Custom Line Item.</p>
* <p>When multiple discounts from <code>includedDiscounts</code> apply, they are applied sequentially based on the <code>sortOrder</code> of their associated <a href="https://docs.commercetools.com/apis/ctp:api:type:CartDiscount" rel="nofollow">Cart Discounts</a> (discounts with higher <code>sortOrder</code> values are applied first). The Cart's <code>priceRoundingMode</code> field (<a href="https://docs.commercetools.com/apis/ctp:api:type:RoundingMode" rel="nofollow">RoundingMode</a>) is applied after each discount calculation, so rounding occurs after each discount step rather than only once on the final cumulative amount.</p>
* @return value
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ public interface DiscountedLineItemPriceForQuantity {

/**
* <p>Discounted price of the Line Item or Custom Line Item.</p>
* <p>When multiple <a href="https://docs.commercetools.com/apis/ctp:api:type:CartDiscount" rel="nofollow">Cart Discounts</a> apply to the same Line Item, the discounts are applied sequentially in the order determined by their <code>sortOrder</code> values (higher values are applied first). The <a href="https://docs.commercetools.com/apis/ctp:api:type:RoundingMode" rel="nofollow">price rounding mode</a> specified by the Cart's <code>priceRoundingMode</code> 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.</p>
* @return discountedPrice
*/
@NotNull
Expand All @@ -59,6 +60,7 @@ public interface DiscountedLineItemPriceForQuantity {

/**
* <p>Discounted price of the Line Item or Custom Line Item.</p>
* <p>When multiple <a href="https://docs.commercetools.com/apis/ctp:api:type:CartDiscount" rel="nofollow">Cart Discounts</a> apply to the same Line Item, the discounts are applied sequentially in the order determined by their <code>sortOrder</code> values (higher values are applied first). The <a href="https://docs.commercetools.com/apis/ctp:api:type:RoundingMode" rel="nofollow">price rounding mode</a> specified by the Cart's <code>priceRoundingMode</code> 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.</p>
* @param discountedPrice value to be set
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public DiscountedLineItemPriceForQuantityBuilder quantity(final Long quantity) {

/**
* <p>Discounted price of the Line Item or Custom Line Item.</p>
* <p>When multiple <a href="https://docs.commercetools.com/apis/ctp:api:type:CartDiscount" rel="nofollow">Cart Discounts</a> apply to the same Line Item, the discounts are applied sequentially in the order determined by their <code>sortOrder</code> values (higher values are applied first). The <a href="https://docs.commercetools.com/apis/ctp:api:type:RoundingMode" rel="nofollow">price rounding mode</a> specified by the Cart's <code>priceRoundingMode</code> 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.</p>
* @param builder function to build the discountedPrice value
* @return Builder
*/
Expand All @@ -53,6 +54,7 @@ public DiscountedLineItemPriceForQuantityBuilder discountedPrice(

/**
* <p>Discounted price of the Line Item or Custom Line Item.</p>
* <p>When multiple <a href="https://docs.commercetools.com/apis/ctp:api:type:CartDiscount" rel="nofollow">Cart Discounts</a> apply to the same Line Item, the discounts are applied sequentially in the order determined by their <code>sortOrder</code> values (higher values are applied first). The <a href="https://docs.commercetools.com/apis/ctp:api:type:RoundingMode" rel="nofollow">price rounding mode</a> specified by the Cart's <code>priceRoundingMode</code> 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.</p>
* @param builder function to build the discountedPrice value
* @return Builder
*/
Expand All @@ -65,6 +67,7 @@ public DiscountedLineItemPriceForQuantityBuilder withDiscountedPrice(

/**
* <p>Discounted price of the Line Item or Custom Line Item.</p>
* <p>When multiple <a href="https://docs.commercetools.com/apis/ctp:api:type:CartDiscount" rel="nofollow">Cart Discounts</a> apply to the same Line Item, the discounts are applied sequentially in the order determined by their <code>sortOrder</code> values (higher values are applied first). The <a href="https://docs.commercetools.com/apis/ctp:api:type:RoundingMode" rel="nofollow">price rounding mode</a> specified by the Cart's <code>priceRoundingMode</code> 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.</p>
* @param discountedPrice value to be set
* @return Builder
*/
Expand All @@ -86,6 +89,7 @@ public Long getQuantity() {

/**
* <p>Discounted price of the Line Item or Custom Line Item.</p>
* <p>When multiple <a href="https://docs.commercetools.com/apis/ctp:api:type:CartDiscount" rel="nofollow">Cart Discounts</a> apply to the same Line Item, the discounts are applied sequentially in the order determined by their <code>sortOrder</code> values (higher values are applied first). The <a href="https://docs.commercetools.com/apis/ctp:api:type:RoundingMode" rel="nofollow">price rounding mode</a> specified by the Cart's <code>priceRoundingMode</code> 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.</p>
* @return discountedPrice
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ public Long getQuantity() {

/**
* <p>Discounted price of the Line Item or Custom Line Item.</p>
* <p>When multiple <a href="https://docs.commercetools.com/apis/ctp:api:type:CartDiscount" rel="nofollow">Cart Discounts</a> apply to the same Line Item, the discounts are applied sequentially in the order determined by their <code>sortOrder</code> values (higher values are applied first). The <a href="https://docs.commercetools.com/apis/ctp:api:type:RoundingMode" rel="nofollow">price rounding mode</a> specified by the Cart's <code>priceRoundingMode</code> 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.</p>
*/

public com.commercetools.api.models.cart.DiscountedLineItemPrice getDiscountedPrice() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ public DiscountedLineItemPriceImpl() {

/**
* <p>Money value of the discounted Line Item or Custom Line Item.</p>
* <p>When multiple discounts from <code>includedDiscounts</code> apply, they are applied sequentially based on the <code>sortOrder</code> of their associated <a href="https://docs.commercetools.com/apis/ctp:api:type:CartDiscount" rel="nofollow">Cart Discounts</a> (discounts with higher <code>sortOrder</code> values are applied first). The Cart's <code>priceRoundingMode</code> field (<a href="https://docs.commercetools.com/apis/ctp:api:type:RoundingMode" rel="nofollow">RoundingMode</a>) is applied after each discount calculation, so rounding occurs after each discount step rather than only once on the final cumulative amount.</p>
*/

public com.commercetools.api.models.common.TypedMoney getValue() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@
import io.vrap.rmf.base.client.utils.Generated;

/**
* <p>Defines how Product Discounts and Cart Discounts are combined for every Line Item in a Cart.</p>
* <p>Defines how Product Discounts and Cart Discounts are combined for Line Items in every Cart of the Project.</p>
*/
@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
public interface DiscountCombinationMode extends JsonEnum {

/**
<p>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.</p> */
<p>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.</p> */
DiscountCombinationMode BEST_DEAL = DiscountCombinationModeEnum.BEST_DEAL;
/**
<p>Product Discounts and Cart Discounts are both applied to the Line Item in a Cart, potentially increasing the total discount.</p> */
<p>Product Discounts and Cart Discounts are both applied to each Line Item in the Cart, potentially increasing the total discount.</p> */
DiscountCombinationMode STACKING = DiscountCombinationModeEnum.STACKING;

/**
Expand Down
2 changes: 2 additions & 0 deletions references.txt
Original file line number Diff line number Diff line change
Expand Up @@ -535,3 +535,5 @@ d90411c7dae76245a17c90707bfd18b735f04a9c
053ba06830d03bf8eb9963500e4498f14754b746
1119815b3a93e1f6fa3894492e10cbb57f93a3d7
a1e8798ca33fe3c7621ab83ff12ca20f269c406d
d3b8e01b6233c9a25fa53d3a8a50a8e1721e664c
d71139f421f6ec0343438bef335b6826feaa86e7