Skip to content

Commit 13fd705

Browse files
Merge pull request #933 from commercetools/gen-sdk-updates
Update generated SDKs
2 parents 82b6227 + 08e66de commit 13fd705

32 files changed

+1327
-52
lines changed

changes.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,9 @@
217217
<details>
218218
<summary>Added Property(s)</summary>
219219

220+
- added property `retentionPolicy` to type `ImportContainer`
221+
- added property `expiresAt` to type `ImportContainer`
222+
- added property `retentionPolicy` to type `ImportContainerDraft`
220223
- added property `attributes` to type `ProductImport`
221224
- added property `attributes` to type `ProductDraftImport`
222225
- added property `level` to type `AttributeDefinition`
@@ -226,6 +229,10 @@
226229
<details>
227230
<summary>Added Type(s)</summary>
228231

232+
- added type `StrategyEnum`
233+
- added type `RetentionPolicy`
234+
- added type `TimeToLiveConfig`
235+
- added type `TimeToLiveRetentionPolicy`
229236
- added type `AttributeLevel`
230237
</details>
231238

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ public interface Cart extends BaseResource, CartMixin, com.commercetools.api.mod
180180
* <li>For a Cart with <code>Platform</code> TaxMode, it is automatically set when a shipping address is set. For Carts with <code>Multiple</code> ShippingMode, all Line Items and Custom Line Items must be fully distributed between the Shipping Methods (via <code>shippingDetails</code>), otherwise <code>taxedPrice</code> is not automatically set.</li>
181181
* <li>For a Cart with <code>External</code> TaxMode, it is automatically set when <code>shippingAddress</code> and external Tax Rates for all Line Items, Custom Line Items, and Shipping Methods in the Cart are set. For Carts with <code>Multiple</code> ShippingMode, all allocations must have their respective tax rates present in <code>perMethodTaxRate</code>, otherwise <code>taxedPrice</code> is not automatically set.</li>
182182
* </ul>
183-
* <p>If a discount applies on <code>totalPrice</code>, this field holds the discounted values.</p>
183+
* <p>If a discount applies on <code>totalPrice</code>, this field holds the proportionally discounted value.</p>
184184
* @return taxedPrice
185185
*/
186186
@Valid
@@ -189,6 +189,7 @@ public interface Cart extends BaseResource, CartMixin, com.commercetools.api.mod
189189

190190
/**
191191
* <p>Sum of the <code>taxedPrice</code> field of ShippingInfo across all Shipping Methods.</p>
192+
* <p>If a discount applies on <code>totalPrice</code>, this field holds the proportionally discounted value.</p>
192193
* @return taxedShippingPrice
193194
*/
194195
@Valid
@@ -559,14 +560,15 @@ public interface Cart extends BaseResource, CartMixin, com.commercetools.api.mod
559560
* <li>For a Cart with <code>Platform</code> TaxMode, it is automatically set when a shipping address is set. For Carts with <code>Multiple</code> ShippingMode, all Line Items and Custom Line Items must be fully distributed between the Shipping Methods (via <code>shippingDetails</code>), otherwise <code>taxedPrice</code> is not automatically set.</li>
560561
* <li>For a Cart with <code>External</code> TaxMode, it is automatically set when <code>shippingAddress</code> and external Tax Rates for all Line Items, Custom Line Items, and Shipping Methods in the Cart are set. For Carts with <code>Multiple</code> ShippingMode, all allocations must have their respective tax rates present in <code>perMethodTaxRate</code>, otherwise <code>taxedPrice</code> is not automatically set.</li>
561562
* </ul>
562-
* <p>If a discount applies on <code>totalPrice</code>, this field holds the discounted values.</p>
563+
* <p>If a discount applies on <code>totalPrice</code>, this field holds the proportionally discounted value.</p>
563564
* @param taxedPrice value to be set
564565
*/
565566

566567
public void setTaxedPrice(final TaxedPrice taxedPrice);
567568

568569
/**
569570
* <p>Sum of the <code>taxedPrice</code> field of ShippingInfo across all Shipping Methods.</p>
571+
* <p>If a discount applies on <code>totalPrice</code>, this field holds the proportionally discounted value.</p>
570572
* @param taxedShippingPrice value to be set
571573
*/
572574

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

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,7 @@ public CartBuilder totalPrice(final com.commercetools.api.models.common.CentPrec
586586
* <li>For a Cart with <code>Platform</code> TaxMode, it is automatically set when a shipping address is set. For Carts with <code>Multiple</code> ShippingMode, all Line Items and Custom Line Items must be fully distributed between the Shipping Methods (via <code>shippingDetails</code>), otherwise <code>taxedPrice</code> is not automatically set.</li>
587587
* <li>For a Cart with <code>External</code> TaxMode, it is automatically set when <code>shippingAddress</code> and external Tax Rates for all Line Items, Custom Line Items, and Shipping Methods in the Cart are set. For Carts with <code>Multiple</code> ShippingMode, all allocations must have their respective tax rates present in <code>perMethodTaxRate</code>, otherwise <code>taxedPrice</code> is not automatically set.</li>
588588
* </ul>
589-
* <p>If a discount applies on <code>totalPrice</code>, this field holds the discounted values.</p>
589+
* <p>If a discount applies on <code>totalPrice</code>, this field holds the proportionally discounted value.</p>
590590
* @param builder function to build the taxedPrice value
591591
* @return Builder
592592
*/
@@ -602,7 +602,7 @@ public CartBuilder taxedPrice(
602602
* <li>For a Cart with <code>Platform</code> TaxMode, it is automatically set when a shipping address is set. For Carts with <code>Multiple</code> ShippingMode, all Line Items and Custom Line Items must be fully distributed between the Shipping Methods (via <code>shippingDetails</code>), otherwise <code>taxedPrice</code> is not automatically set.</li>
603603
* <li>For a Cart with <code>External</code> TaxMode, it is automatically set when <code>shippingAddress</code> and external Tax Rates for all Line Items, Custom Line Items, and Shipping Methods in the Cart are set. For Carts with <code>Multiple</code> ShippingMode, all allocations must have their respective tax rates present in <code>perMethodTaxRate</code>, otherwise <code>taxedPrice</code> is not automatically set.</li>
604604
* </ul>
605-
* <p>If a discount applies on <code>totalPrice</code>, this field holds the discounted values.</p>
605+
* <p>If a discount applies on <code>totalPrice</code>, this field holds the proportionally discounted value.</p>
606606
* @param builder function to build the taxedPrice value
607607
* @return Builder
608608
*/
@@ -618,7 +618,7 @@ public CartBuilder withTaxedPrice(
618618
* <li>For a Cart with <code>Platform</code> TaxMode, it is automatically set when a shipping address is set. For Carts with <code>Multiple</code> ShippingMode, all Line Items and Custom Line Items must be fully distributed between the Shipping Methods (via <code>shippingDetails</code>), otherwise <code>taxedPrice</code> is not automatically set.</li>
619619
* <li>For a Cart with <code>External</code> TaxMode, it is automatically set when <code>shippingAddress</code> and external Tax Rates for all Line Items, Custom Line Items, and Shipping Methods in the Cart are set. For Carts with <code>Multiple</code> ShippingMode, all allocations must have their respective tax rates present in <code>perMethodTaxRate</code>, otherwise <code>taxedPrice</code> is not automatically set.</li>
620620
* </ul>
621-
* <p>If a discount applies on <code>totalPrice</code>, this field holds the discounted values.</p>
621+
* <p>If a discount applies on <code>totalPrice</code>, this field holds the proportionally discounted value.</p>
622622
* @param taxedPrice value to be set
623623
* @return Builder
624624
*/
@@ -630,6 +630,7 @@ public CartBuilder taxedPrice(@Nullable final com.commercetools.api.models.cart.
630630

631631
/**
632632
* <p>Sum of the <code>taxedPrice</code> field of ShippingInfo across all Shipping Methods.</p>
633+
* <p>If a discount applies on <code>totalPrice</code>, this field holds the proportionally discounted value.</p>
633634
* @param builder function to build the taxedShippingPrice value
634635
* @return Builder
635636
*/
@@ -642,6 +643,7 @@ public CartBuilder taxedShippingPrice(
642643

643644
/**
644645
* <p>Sum of the <code>taxedPrice</code> field of ShippingInfo across all Shipping Methods.</p>
646+
* <p>If a discount applies on <code>totalPrice</code>, this field holds the proportionally discounted value.</p>
645647
* @param builder function to build the taxedShippingPrice value
646648
* @return Builder
647649
*/
@@ -654,6 +656,7 @@ public CartBuilder withTaxedShippingPrice(
654656

655657
/**
656658
* <p>Sum of the <code>taxedPrice</code> field of ShippingInfo across all Shipping Methods.</p>
659+
* <p>If a discount applies on <code>totalPrice</code>, this field holds the proportionally discounted value.</p>
657660
* @param taxedShippingPrice value to be set
658661
* @return Builder
659662
*/
@@ -1774,7 +1777,7 @@ public com.commercetools.api.models.common.CentPrecisionMoney getTotalPrice() {
17741777
* <li>For a Cart with <code>Platform</code> TaxMode, it is automatically set when a shipping address is set. For Carts with <code>Multiple</code> ShippingMode, all Line Items and Custom Line Items must be fully distributed between the Shipping Methods (via <code>shippingDetails</code>), otherwise <code>taxedPrice</code> is not automatically set.</li>
17751778
* <li>For a Cart with <code>External</code> TaxMode, it is automatically set when <code>shippingAddress</code> and external Tax Rates for all Line Items, Custom Line Items, and Shipping Methods in the Cart are set. For Carts with <code>Multiple</code> ShippingMode, all allocations must have their respective tax rates present in <code>perMethodTaxRate</code>, otherwise <code>taxedPrice</code> is not automatically set.</li>
17761779
* </ul>
1777-
* <p>If a discount applies on <code>totalPrice</code>, this field holds the discounted values.</p>
1780+
* <p>If a discount applies on <code>totalPrice</code>, this field holds the proportionally discounted value.</p>
17781781
* @return taxedPrice
17791782
*/
17801783

@@ -1785,6 +1788,7 @@ public com.commercetools.api.models.cart.TaxedPrice getTaxedPrice() {
17851788

17861789
/**
17871790
* <p>Sum of the <code>taxedPrice</code> field of ShippingInfo across all Shipping Methods.</p>
1791+
* <p>If a discount applies on <code>totalPrice</code>, this field holds the proportionally discounted value.</p>
17881792
* @return taxedShippingPrice
17891793
*/
17901794

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ public com.commercetools.api.models.common.CentPrecisionMoney getTotalPrice() {
337337
* <li>For a Cart with <code>Platform</code> TaxMode, it is automatically set when a shipping address is set. For Carts with <code>Multiple</code> ShippingMode, all Line Items and Custom Line Items must be fully distributed between the Shipping Methods (via <code>shippingDetails</code>), otherwise <code>taxedPrice</code> is not automatically set.</li>
338338
* <li>For a Cart with <code>External</code> TaxMode, it is automatically set when <code>shippingAddress</code> and external Tax Rates for all Line Items, Custom Line Items, and Shipping Methods in the Cart are set. For Carts with <code>Multiple</code> ShippingMode, all allocations must have their respective tax rates present in <code>perMethodTaxRate</code>, otherwise <code>taxedPrice</code> is not automatically set.</li>
339339
* </ul>
340-
* <p>If a discount applies on <code>totalPrice</code>, this field holds the discounted values.</p>
340+
* <p>If a discount applies on <code>totalPrice</code>, this field holds the proportionally discounted value.</p>
341341
*/
342342

343343
public com.commercetools.api.models.cart.TaxedPrice getTaxedPrice() {
@@ -346,6 +346,7 @@ public com.commercetools.api.models.cart.TaxedPrice getTaxedPrice() {
346346

347347
/**
348348
* <p>Sum of the <code>taxedPrice</code> field of ShippingInfo across all Shipping Methods.</p>
349+
* <p>If a discount applies on <code>totalPrice</code>, this field holds the proportionally discounted value.</p>
349350
*/
350351

351352
public com.commercetools.api.models.cart.TaxedPrice getTaxedShippingPrice() {

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/CartDiscountTotalPriceTarget.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
import io.vrap.rmf.base.client.utils.Generated;
1414

1515
/**
16-
* <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>
16+
* <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> and <code>taxedShippingPrice</code>.</p>
1717
*
1818
* <hr>
1919
* Example to create an instance using the builder pattern

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/CartDiscountTotalPriceTargetImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
import org.apache.commons.lang3.builder.ToStringStyle;
1717

1818
/**
19-
* <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>
19+
* <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> and <code>taxedShippingPrice</code>.</p>
2020
*/
2121
@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
2222
public class CartDiscountTotalPriceTargetImpl implements CartDiscountTotalPriceTarget, ModelBase {

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/Order.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ public interface Order extends BaseResource, OrderMixin, com.commercetools.api.m
191191
* <li>For <code>Platform</code> TaxMode, it is automatically set when a shipping address is set.</li>
192192
* <li>For <code>External</code> TaxMode, it is automatically set when <code>shippingAddress</code> and external Tax Rates for all Line Items, Custom Line Items, and Shipping Methods in the Cart are set.</li>
193193
* </ul>
194-
* <p>If a discount applies on <code>totalPrice</code>, this field holds the discounted values.</p>
194+
* <p>If a discount applies on <code>totalPrice</code>, this field holds the proportionally discounted value.</p>
195195
* @return taxedPrice
196196
*/
197197
@Valid
@@ -200,6 +200,7 @@ public interface Order extends BaseResource, OrderMixin, com.commercetools.api.m
200200

201201
/**
202202
* <p>Sum of the <code>taxedPrice</code> field of ShippingInfo across all Shipping Methods.</p>
203+
* <p>If a discount applies on <code>totalPrice</code>, this field holds the proportionally discounted value.</p>
203204
* @return taxedShippingPrice
204205
*/
205206
@Valid
@@ -632,14 +633,15 @@ public interface Order extends BaseResource, OrderMixin, com.commercetools.api.m
632633
* <li>For <code>Platform</code> TaxMode, it is automatically set when a shipping address is set.</li>
633634
* <li>For <code>External</code> TaxMode, it is automatically set when <code>shippingAddress</code> and external Tax Rates for all Line Items, Custom Line Items, and Shipping Methods in the Cart are set.</li>
634635
* </ul>
635-
* <p>If a discount applies on <code>totalPrice</code>, this field holds the discounted values.</p>
636+
* <p>If a discount applies on <code>totalPrice</code>, this field holds the proportionally discounted value.</p>
636637
* @param taxedPrice value to be set
637638
*/
638639

639640
public void setTaxedPrice(final TaxedPrice taxedPrice);
640641

641642
/**
642643
* <p>Sum of the <code>taxedPrice</code> field of ShippingInfo across all Shipping Methods.</p>
644+
* <p>If a discount applies on <code>totalPrice</code>, this field holds the proportionally discounted value.</p>
643645
* @param taxedShippingPrice value to be set
644646
*/
645647

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderBuilder.java

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@ public OrderBuilder totalPrice(final com.commercetools.api.models.common.CentPre
612612
* <li>For <code>Platform</code> TaxMode, it is automatically set when a shipping address is set.</li>
613613
* <li>For <code>External</code> TaxMode, it is automatically set when <code>shippingAddress</code> and external Tax Rates for all Line Items, Custom Line Items, and Shipping Methods in the Cart are set.</li>
614614
* </ul>
615-
* <p>If a discount applies on <code>totalPrice</code>, this field holds the discounted values.</p>
615+
* <p>If a discount applies on <code>totalPrice</code>, this field holds the proportionally discounted value.</p>
616616
* @param builder function to build the taxedPrice value
617617
* @return Builder
618618
*/
@@ -628,7 +628,7 @@ public OrderBuilder taxedPrice(
628628
* <li>For <code>Platform</code> TaxMode, it is automatically set when a shipping address is set.</li>
629629
* <li>For <code>External</code> TaxMode, it is automatically set when <code>shippingAddress</code> and external Tax Rates for all Line Items, Custom Line Items, and Shipping Methods in the Cart are set.</li>
630630
* </ul>
631-
* <p>If a discount applies on <code>totalPrice</code>, this field holds the discounted values.</p>
631+
* <p>If a discount applies on <code>totalPrice</code>, this field holds the proportionally discounted value.</p>
632632
* @param builder function to build the taxedPrice value
633633
* @return Builder
634634
*/
@@ -644,7 +644,7 @@ public OrderBuilder withTaxedPrice(
644644
* <li>For <code>Platform</code> TaxMode, it is automatically set when a shipping address is set.</li>
645645
* <li>For <code>External</code> TaxMode, it is automatically set when <code>shippingAddress</code> and external Tax Rates for all Line Items, Custom Line Items, and Shipping Methods in the Cart are set.</li>
646646
* </ul>
647-
* <p>If a discount applies on <code>totalPrice</code>, this field holds the discounted values.</p>
647+
* <p>If a discount applies on <code>totalPrice</code>, this field holds the proportionally discounted value.</p>
648648
* @param taxedPrice value to be set
649649
* @return Builder
650650
*/
@@ -656,6 +656,7 @@ public OrderBuilder taxedPrice(@Nullable final com.commercetools.api.models.cart
656656

657657
/**
658658
* <p>Sum of the <code>taxedPrice</code> field of ShippingInfo across all Shipping Methods.</p>
659+
* <p>If a discount applies on <code>totalPrice</code>, this field holds the proportionally discounted value.</p>
659660
* @param builder function to build the taxedShippingPrice value
660661
* @return Builder
661662
*/
@@ -668,6 +669,7 @@ public OrderBuilder taxedShippingPrice(
668669

669670
/**
670671
* <p>Sum of the <code>taxedPrice</code> field of ShippingInfo across all Shipping Methods.</p>
672+
* <p>If a discount applies on <code>totalPrice</code>, this field holds the proportionally discounted value.</p>
671673
* @param builder function to build the taxedShippingPrice value
672674
* @return Builder
673675
*/
@@ -680,6 +682,7 @@ public OrderBuilder withTaxedShippingPrice(
680682

681683
/**
682684
* <p>Sum of the <code>taxedPrice</code> field of ShippingInfo across all Shipping Methods.</p>
685+
* <p>If a discount applies on <code>totalPrice</code>, this field holds the proportionally discounted value.</p>
683686
* @param taxedShippingPrice value to be set
684687
* @return Builder
685688
*/
@@ -2111,7 +2114,7 @@ public com.commercetools.api.models.common.CentPrecisionMoney getTotalPrice() {
21112114
* <li>For <code>Platform</code> TaxMode, it is automatically set when a shipping address is set.</li>
21122115
* <li>For <code>External</code> TaxMode, it is automatically set when <code>shippingAddress</code> and external Tax Rates for all Line Items, Custom Line Items, and Shipping Methods in the Cart are set.</li>
21132116
* </ul>
2114-
* <p>If a discount applies on <code>totalPrice</code>, this field holds the discounted values.</p>
2117+
* <p>If a discount applies on <code>totalPrice</code>, this field holds the proportionally discounted value.</p>
21152118
* @return taxedPrice
21162119
*/
21172120

@@ -2122,6 +2125,7 @@ public com.commercetools.api.models.cart.TaxedPrice getTaxedPrice() {
21222125

21232126
/**
21242127
* <p>Sum of the <code>taxedPrice</code> field of ShippingInfo across all Shipping Methods.</p>
2128+
* <p>If a discount applies on <code>totalPrice</code>, this field holds the proportionally discounted value.</p>
21252129
* @return taxedShippingPrice
21262130
*/
21272131

0 commit comments

Comments
 (0)