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 @@ -18,7 +18,7 @@
import jakarta.validation.constraints.NotNull;

/**
* <p>Can be used if the Cart has the <code>ExternalAmount</code> TaxMode. This update action adds the <code>taxedPrice</code> field to the Cart and must be used after any price-affecting change occurs within the Cart.</p>
* <p>Can be used if the Cart has the <code>ExternalAmount</code> TaxMode. This update action adds the <code>taxedPrice</code> field to the Cart. It sets the <code>totalGross</code> amount, and Composable Commerce calculates the <code>totalNet</code> and <code>totalTax</code> values based on the provided <code>externalTotalGross</code>. You must use this update action after any price-affecting change occurs within the Cart.</p>
*
* <hr>
* Example to create an instance using the builder pattern
Expand All @@ -40,7 +40,7 @@ public interface CartSetCartTotalTaxAction extends CartUpdateAction {
String SET_CART_TOTAL_TAX = "setCartTotalTax";

/**
* <p>The Cart's total gross price becoming the <code>totalGross</code> field (<code>totalNet</code> + taxes) on the Cart's <code>taxedPrice</code>.</p>
* <p>The total gross amount of the Cart, including tax. This value is used to calculate the <code>totalNet</code> and <code>totalTax</code> fields of the Cart's <code>taxedPrice</code>.</p>
* @return externalTotalGross
*/
@NotNull
Expand All @@ -57,7 +57,7 @@ public interface CartSetCartTotalTaxAction extends CartUpdateAction {
public List<TaxPortionDraft> getExternalTaxPortions();

/**
* <p>The Cart's total gross price becoming the <code>totalGross</code> field (<code>totalNet</code> + taxes) on the Cart's <code>taxedPrice</code>.</p>
* <p>The total gross amount of the Cart, including tax. This value is used to calculate the <code>totalNet</code> and <code>totalTax</code> fields of the Cart's <code>taxedPrice</code>.</p>
* @param externalTotalGross value to be set
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public class CartSetCartTotalTaxActionBuilder implements Builder<CartSetCartTota
private java.util.List<com.commercetools.api.models.cart.TaxPortionDraft> externalTaxPortions;

/**
* <p>The Cart's total gross price becoming the <code>totalGross</code> field (<code>totalNet</code> + taxes) on the Cart's <code>taxedPrice</code>.</p>
* <p>The total gross amount of the Cart, including tax. This value is used to calculate the <code>totalNet</code> and <code>totalTax</code> fields of the Cart's <code>taxedPrice</code>.</p>
* @param builder function to build the externalTotalGross value
* @return Builder
*/
Expand All @@ -42,7 +42,7 @@ public CartSetCartTotalTaxActionBuilder externalTotalGross(
}

/**
* <p>The Cart's total gross price becoming the <code>totalGross</code> field (<code>totalNet</code> + taxes) on the Cart's <code>taxedPrice</code>.</p>
* <p>The total gross amount of the Cart, including tax. This value is used to calculate the <code>totalNet</code> and <code>totalTax</code> fields of the Cart's <code>taxedPrice</code>.</p>
* @param builder function to build the externalTotalGross value
* @return Builder
*/
Expand All @@ -54,7 +54,7 @@ public CartSetCartTotalTaxActionBuilder withExternalTotalGross(
}

/**
* <p>The Cart's total gross price becoming the <code>totalGross</code> field (<code>totalNet</code> + taxes) on the Cart's <code>taxedPrice</code>.</p>
* <p>The total gross amount of the Cart, including tax. This value is used to calculate the <code>totalNet</code> and <code>totalTax</code> fields of the Cart's <code>taxedPrice</code>.</p>
* @param externalTotalGross value to be set
* @return Builder
*/
Expand Down Expand Up @@ -157,7 +157,7 @@ public CartSetCartTotalTaxActionBuilder setExternalTaxPortions(
}

/**
* <p>The Cart's total gross price becoming the <code>totalGross</code> field (<code>totalNet</code> + taxes) on the Cart's <code>taxedPrice</code>.</p>
* <p>The total gross amount of the Cart, including tax. This value is used to calculate the <code>totalNet</code> and <code>totalTax</code> fields of the Cart's <code>taxedPrice</code>.</p>
* @return externalTotalGross
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import org.apache.commons.lang3.builder.ToStringStyle;

/**
* <p>Can be used if the Cart has the <code>ExternalAmount</code> TaxMode. This update action adds the <code>taxedPrice</code> field to the Cart and must be used after any price-affecting change occurs within the Cart.</p>
* <p>Can be used if the Cart has the <code>ExternalAmount</code> TaxMode. This update action adds the <code>taxedPrice</code> field to the Cart. It sets the <code>totalGross</code> amount, and Composable Commerce calculates the <code>totalNet</code> and <code>totalTax</code> values based on the provided <code>externalTotalGross</code>. You must use this update action after any price-affecting change occurs within the Cart.</p>
*/
@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
public class CartSetCartTotalTaxActionImpl implements CartSetCartTotalTaxAction, ModelBase {
Expand Down Expand Up @@ -56,7 +56,7 @@ public String getAction() {
}

/**
* <p>The Cart's total gross price becoming the <code>totalGross</code> field (<code>totalNet</code> + taxes) on the Cart's <code>taxedPrice</code>.</p>
* <p>The total gross amount of the Cart, including tax. This value is used to calculate the <code>totalNet</code> and <code>totalTax</code> fields of the Cart's <code>taxedPrice</code>.</p>
*/

public com.commercetools.api.models.common.Money getExternalTotalGross() {
Expand Down
1 change: 1 addition & 0 deletions reference.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
7f0d2875a128b469438a41219fb0b5e9555bc632
1 change: 1 addition & 0 deletions references.txt
Original file line number Diff line number Diff line change
Expand Up @@ -375,3 +375,4 @@ cf0f702598daf6d644ae327099b96b83f5539dfb
277b3734e873c9dd4cf455c0591fb5d41b478647
75612a593ac1a7d1fa516c2b196d10690fbb9e66
0db86e55e10010d0994faa7cffb5b1301dbac71f
4c16ce73d5391802f2cf109581ac962749c027a5