Skip to content

Commit 3754a18

Browse files
Merge pull request #834 from commercetools/gen-sdk-updates
Update generated SDKs
2 parents c5ef6ce + adb0da2 commit 3754a18

File tree

5 files changed

+11
-9
lines changed

5 files changed

+11
-9
lines changed

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartSetCartTotalTaxAction.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import jakarta.validation.constraints.NotNull;
1919

2020
/**
21-
* <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>
21+
* <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>
2222
*
2323
* <hr>
2424
* Example to create an instance using the builder pattern
@@ -40,7 +40,7 @@ public interface CartSetCartTotalTaxAction extends CartUpdateAction {
4040
String SET_CART_TOTAL_TAX = "setCartTotalTax";
4141

4242
/**
43-
* <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>
43+
* <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>
4444
* @return externalTotalGross
4545
*/
4646
@NotNull
@@ -57,7 +57,7 @@ public interface CartSetCartTotalTaxAction extends CartUpdateAction {
5757
public List<TaxPortionDraft> getExternalTaxPortions();
5858

5959
/**
60-
* <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>
60+
* <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>
6161
* @param externalTotalGross value to be set
6262
*/
6363

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartSetCartTotalTaxActionBuilder.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public class CartSetCartTotalTaxActionBuilder implements Builder<CartSetCartTota
3030
private java.util.List<com.commercetools.api.models.cart.TaxPortionDraft> externalTaxPortions;
3131

3232
/**
33-
* <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>
33+
* <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>
3434
* @param builder function to build the externalTotalGross value
3535
* @return Builder
3636
*/
@@ -42,7 +42,7 @@ public CartSetCartTotalTaxActionBuilder externalTotalGross(
4242
}
4343

4444
/**
45-
* <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>
45+
* <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>
4646
* @param builder function to build the externalTotalGross value
4747
* @return Builder
4848
*/
@@ -54,7 +54,7 @@ public CartSetCartTotalTaxActionBuilder withExternalTotalGross(
5454
}
5555

5656
/**
57-
* <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>
57+
* <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>
5858
* @param externalTotalGross value to be set
5959
* @return Builder
6060
*/
@@ -157,7 +157,7 @@ public CartSetCartTotalTaxActionBuilder setExternalTaxPortions(
157157
}
158158

159159
/**
160-
* <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>
160+
* <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>
161161
* @return externalTotalGross
162162
*/
163163

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartSetCartTotalTaxActionImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import org.apache.commons.lang3.builder.ToStringStyle;
1818

1919
/**
20-
* <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>
20+
* <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>
2121
*/
2222
@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
2323
public class CartSetCartTotalTaxActionImpl implements CartSetCartTotalTaxAction, ModelBase {
@@ -56,7 +56,7 @@ public String getAction() {
5656
}
5757

5858
/**
59-
* <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>
59+
* <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>
6060
*/
6161

6262
public com.commercetools.api.models.common.Money getExternalTotalGross() {

reference.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
7f0d2875a128b469438a41219fb0b5e9555bc632

references.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,3 +375,4 @@ cf0f702598daf6d644ae327099b96b83f5539dfb
375375
277b3734e873c9dd4cf455c0591fb5d41b478647
376376
75612a593ac1a7d1fa516c2b196d10690fbb9e66
377377
0db86e55e10010d0994faa7cffb5b1301dbac71f
378+
4c16ce73d5391802f2cf109581ac962749c027a5

0 commit comments

Comments
 (0)