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 @@ -54,15 +54,17 @@ public interface DiscountOnTotalPrice {
public List<DiscountedTotalPricePortion> getIncludedDiscounts();

/**
* <p>Money value of the discount on the total net price of the Cart or Order. Present only when <code>taxedPrice</code> of the Cart or Order exists.</p>
* <p>Money value of the discount on the total net price of the Cart or Order.</p>
* <p>The same percentage of discount applies as on the <code>discountedAmount</code>. Present only when <code>taxedPrice</code> of the Cart or Order exists.</p>
* @return discountedNetAmount
*/
@Valid
@JsonProperty("discountedNetAmount")
public TypedMoney getDiscountedNetAmount();

/**
* <p>Money value of the discount on the total gross price of the Cart or Order. Present only when <code>taxedPrice</code> of the Cart or Order exists.</p>
* <p>Money value of the discount on the total gross price of the Cart or Order.</p>
* <p>The same percentage of discount applies as on the <code>discountedAmount</code>. Present only when <code>taxedPrice</code> of the Cart or Order exists.</p>
* @return discountedGrossAmount
*/
@Valid
Expand Down Expand Up @@ -92,14 +94,16 @@ public interface DiscountOnTotalPrice {
public void setIncludedDiscounts(final List<DiscountedTotalPricePortion> includedDiscounts);

/**
* <p>Money value of the discount on the total net price of the Cart or Order. Present only when <code>taxedPrice</code> of the Cart or Order exists.</p>
* <p>Money value of the discount on the total net price of the Cart or Order.</p>
* <p>The same percentage of discount applies as on the <code>discountedAmount</code>. Present only when <code>taxedPrice</code> of the Cart or Order exists.</p>
* @param discountedNetAmount value to be set
*/

public void setDiscountedNetAmount(final TypedMoney discountedNetAmount);

/**
* <p>Money value of the discount on the total gross price of the Cart or Order. Present only when <code>taxedPrice</code> of the Cart or Order exists.</p>
* <p>Money value of the discount on the total gross price of the Cart or Order.</p>
* <p>The same percentage of discount applies as on the <code>discountedAmount</code>. Present only when <code>taxedPrice</code> of the Cart or Order exists.</p>
* @param discountedGrossAmount value to be set
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,8 @@ public DiscountOnTotalPriceBuilder setIncludedDiscounts(
}

/**
* <p>Money value of the discount on the total net price of the Cart or Order. Present only when <code>taxedPrice</code> of the Cart or Order exists.</p>
* <p>Money value of the discount on the total net price of the Cart or Order.</p>
* <p>The same percentage of discount applies as on the <code>discountedAmount</code>. Present only when <code>taxedPrice</code> of the Cart or Order exists.</p>
* @param discountedNetAmount value to be set
* @return Builder
*/
Expand All @@ -165,7 +166,8 @@ public DiscountOnTotalPriceBuilder discountedNetAmount(
}

/**
* <p>Money value of the discount on the total net price of the Cart or Order. Present only when <code>taxedPrice</code> of the Cart or Order exists.</p>
* <p>Money value of the discount on the total net price of the Cart or Order.</p>
* <p>The same percentage of discount applies as on the <code>discountedAmount</code>. Present only when <code>taxedPrice</code> of the Cart or Order exists.</p>
* @param builder function to build the discountedNetAmount value
* @return Builder
*/
Expand All @@ -177,7 +179,8 @@ public DiscountOnTotalPriceBuilder discountedNetAmount(
}

/**
* <p>Money value of the discount on the total gross price of the Cart or Order. Present only when <code>taxedPrice</code> of the Cart or Order exists.</p>
* <p>Money value of the discount on the total gross price of the Cart or Order.</p>
* <p>The same percentage of discount applies as on the <code>discountedAmount</code>. Present only when <code>taxedPrice</code> of the Cart or Order exists.</p>
* @param discountedGrossAmount value to be set
* @return Builder
*/
Expand All @@ -189,7 +192,8 @@ public DiscountOnTotalPriceBuilder discountedGrossAmount(
}

/**
* <p>Money value of the discount on the total gross price of the Cart or Order. Present only when <code>taxedPrice</code> of the Cart or Order exists.</p>
* <p>Money value of the discount on the total gross price of the Cart or Order.</p>
* <p>The same percentage of discount applies as on the <code>discountedAmount</code>. Present only when <code>taxedPrice</code> of the Cart or Order exists.</p>
* @param builder function to build the discountedGrossAmount value
* @return Builder
*/
Expand Down Expand Up @@ -219,7 +223,8 @@ public java.util.List<com.commercetools.api.models.cart.DiscountedTotalPricePort
}

/**
* <p>Money value of the discount on the total net price of the Cart or Order. Present only when <code>taxedPrice</code> of the Cart or Order exists.</p>
* <p>Money value of the discount on the total net price of the Cart or Order.</p>
* <p>The same percentage of discount applies as on the <code>discountedAmount</code>. Present only when <code>taxedPrice</code> of the Cart or Order exists.</p>
* @return discountedNetAmount
*/

Expand All @@ -229,7 +234,8 @@ public com.commercetools.api.models.common.TypedMoney getDiscountedNetAmount() {
}

/**
* <p>Money value of the discount on the total gross price of the Cart or Order. Present only when <code>taxedPrice</code> of the Cart or Order exists.</p>
* <p>Money value of the discount on the total gross price of the Cart or Order.</p>
* <p>The same percentage of discount applies as on the <code>discountedAmount</code>. Present only when <code>taxedPrice</code> of the Cart or Order exists.</p>
* @return discountedGrossAmount
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,17 @@ public java.util.List<com.commercetools.api.models.cart.DiscountedTotalPricePort
}

/**
* <p>Money value of the discount on the total net price of the Cart or Order. Present only when <code>taxedPrice</code> of the Cart or Order exists.</p>
* <p>Money value of the discount on the total net price of the Cart or Order.</p>
* <p>The same percentage of discount applies as on the <code>discountedAmount</code>. Present only when <code>taxedPrice</code> of the Cart or Order exists.</p>
*/

public com.commercetools.api.models.common.TypedMoney getDiscountedNetAmount() {
return this.discountedNetAmount;
}

/**
* <p>Money value of the discount on the total gross price of the Cart or Order. Present only when <code>taxedPrice</code> of the Cart or Order exists.</p>
* <p>Money value of the discount on the total gross price of the Cart or Order.</p>
* <p>The same percentage of discount applies as on the <code>discountedAmount</code>. Present only when <code>taxedPrice</code> of the Cart or Order exists.</p>
*/

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

/**
* <p>Discount is applied to the total price of the Cart.</p>
* <p>Discount is applied to the total price of the Cart. The same percentage of discount applies on the Cart or Order <code>taxedPrice</code>.</p>
*
* <hr>
* Example to create an instance using the builder pattern
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import org.apache.commons.lang3.builder.ToStringStyle;

/**
* <p>Discount is applied to the total price of the Cart.</p>
* <p>Discount is applied to the total price of the Cart. The same percentage of discount applies on the Cart or Order <code>taxedPrice</code>.</p>
*/
@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
public class CartDiscountTotalPriceTargetImpl implements CartDiscountTotalPriceTarget, ModelBase {
Expand Down
1 change: 1 addition & 0 deletions references.txt
Original file line number Diff line number Diff line change
Expand Up @@ -397,3 +397,4 @@ ab43d3845fcab04a4e74bada3ddedf2d8b28472f
275ce2cae5cbd358f01c3a2f4583b536b50cb1dd
b249fe4545f983d5dc7a0f5260d840a1344cbd77
f2c3348614fec5fe51dfb7adac8744e033626b8b
535ee58310a5fb706c9946aaac9cdc638af996db