Skip to content

Commit 8f0713d

Browse files
committed
build(codegen): updating SDK
1 parent 221e9e7 commit 8f0713d

43 files changed

Lines changed: 2002 additions & 35 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

changes.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,23 @@
99
- added query parameter `dataErasure` to method `delete /{projectKey}/in-store/key={storeKey}/business-units/{ID}`
1010
</details>
1111

12+
13+
<details>
14+
<summary>Added Property(s)</summary>
15+
16+
- added property `stores` to type `ShippingMethod`
17+
- added property `stores` to type `ShippingMethodDraft`
18+
</details>
19+
20+
21+
<details>
22+
<summary>Added Type(s)</summary>
23+
24+
- added type `ShippingMethodAddStoreAction`
25+
- added type `ShippingMethodRemoveStoreAction`
26+
- added type `ShippingMethodSetStoresAction`
27+
</details>
28+
1229
**Checkout changes**
1330

1431
<details>

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartsPost.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,13 @@
2121

2222
/**
2323
* <p>Creates a Cart in the Project.</p>
24-
* <p>If the referenced <a href="https://docs.commercetools.com/apis/ctp:api:type:ShippingMethod" rel="nofollow">ShippingMethod</a> in the <a href="https://docs.commercetools.com/apis/ctp:api:type:CartDraft" rel="nofollow">CartDraft</a> has a predicate that does not match, or if the Shipping Method is not active, an <a href="https://docs.commercetools.com/apis/ctp:api:type:InvalidOperationError" rel="nofollow">InvalidOperation</a> error is returned.</p>
24+
* <p>An <a href="https://docs.commercetools.com/apis/ctp:api:type:InvalidOperationError" rel="nofollow">InvalidOperation</a> error is returned in one of the following cases:</p>
25+
* <ol>
26+
* <li>If the referenced Shipping Method has a predicate that does not match the Cart.</li>
27+
* <li>If the referenced Shipping Method is not active.</li>
28+
* <li>If the referenced Shipping Method is associated with a Store that is different from the Cart's Store.</li>
29+
* <li>If the referenced Shipping Method is associated with a Store and the Cart is not associated with any Store.</li>
30+
* </ol>
2531
* <p>When using <a href="https://docs.commercetools.com/apis/ctp:api:type:InventoryMode" rel="nofollow">InventoryMode</a> <code>ReserveOnCart</code>:</p>
2632
* <ul>
2733
* <li>If only some Line Items can be reserved, the Cart creation succeeds, however, the items that could not be reserved are removed and reservation warnings are returned in the response.</li>

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartsPostString.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,13 @@
2222

2323
/**
2424
* <p>Creates a Cart in the Project.</p>
25-
* <p>If the referenced <a href="https://docs.commercetools.com/apis/ctp:api:type:ShippingMethod" rel="nofollow">ShippingMethod</a> in the <a href="https://docs.commercetools.com/apis/ctp:api:type:CartDraft" rel="nofollow">CartDraft</a> has a predicate that does not match, or if the Shipping Method is not active, an <a href="https://docs.commercetools.com/apis/ctp:api:type:InvalidOperationError" rel="nofollow">InvalidOperation</a> error is returned.</p>
25+
* <p>An <a href="https://docs.commercetools.com/apis/ctp:api:type:InvalidOperationError" rel="nofollow">InvalidOperation</a> error is returned in one of the following cases:</p>
26+
* <ol>
27+
* <li>If the referenced Shipping Method has a predicate that does not match the Cart.</li>
28+
* <li>If the referenced Shipping Method is not active.</li>
29+
* <li>If the referenced Shipping Method is associated with a Store that is different from the Cart's Store.</li>
30+
* <li>If the referenced Shipping Method is associated with a Store and the Cart is not associated with any Store.</li>
31+
* </ol>
2632
* <p>When using <a href="https://docs.commercetools.com/apis/ctp:api:type:InventoryMode" rel="nofollow">InventoryMode</a> <code>ReserveOnCart</code>:</p>
2733
* <ul>
2834
* <li>If only some Line Items can be reserved, the Cart creation succeeds, however, the items that could not be reserved are removed and reservation warnings are returned in the response.</li>

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartsPost.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,12 @@
2121

2222
/**
2323
* <p>Creates a Cart in a <a href="https://docs.commercetools.com/apis/ctp:api:type:Store" rel="nofollow">Store</a>.</p>
24-
* <p>If the referenced <a href="https://docs.commercetools.com/apis/ctp:api:type:ShippingMethod" rel="nofollow">ShippingMethod</a> in the <a href="https://docs.commercetools.com/apis/ctp:api:type:CartDraft" rel="nofollow">CartDraft</a> has a predicate that does not match, or if the Shipping Method is not active, an <a href="https://docs.commercetools.com/apis/ctp:api:type:InvalidOperationError" rel="nofollow">InvalidOperation</a> error is returned.</p>
24+
* <p>An <a href="https://docs.commercetools.com/apis/ctp:api:type:InvalidOperationError" rel="nofollow">InvalidOperation</a> error is returned in one of the following cases:</p>
25+
* <ol>
26+
* <li>If the referenced Shipping Method has a predicate that does not match the Cart.</li>
27+
* <li>If the referenced Shipping Method is not active.</li>
28+
* <li>If the referenced Shipping Method is associated with a Store that is different from the Cart's Store.</li>
29+
* </ol>
2530
* <p>Specific Error Codes:</p>
2631
* <ul>
2732
* <li><a href="https://docs.commercetools.com/apis/ctp:api:type:DiscountCodeNonApplicableError" rel="nofollow">DiscountCodeNonApplicable</a></li>

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartsPostString.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,12 @@
2222

2323
/**
2424
* <p>Creates a Cart in a <a href="https://docs.commercetools.com/apis/ctp:api:type:Store" rel="nofollow">Store</a>.</p>
25-
* <p>If the referenced <a href="https://docs.commercetools.com/apis/ctp:api:type:ShippingMethod" rel="nofollow">ShippingMethod</a> in the <a href="https://docs.commercetools.com/apis/ctp:api:type:CartDraft" rel="nofollow">CartDraft</a> has a predicate that does not match, or if the Shipping Method is not active, an <a href="https://docs.commercetools.com/apis/ctp:api:type:InvalidOperationError" rel="nofollow">InvalidOperation</a> error is returned.</p>
25+
* <p>An <a href="https://docs.commercetools.com/apis/ctp:api:type:InvalidOperationError" rel="nofollow">InvalidOperation</a> error is returned in one of the following cases:</p>
26+
* <ol>
27+
* <li>If the referenced Shipping Method has a predicate that does not match the Cart.</li>
28+
* <li>If the referenced Shipping Method is not active.</li>
29+
* <li>If the referenced Shipping Method is associated with a Store that is different from the Cart's Store.</li>
30+
* </ol>
2631
* <p>Specific Error Codes:</p>
2732
* <ul>
2833
* <li><a href="https://docs.commercetools.com/apis/ctp:api:type:DiscountCodeNonApplicableError" rel="nofollow">DiscountCodeNonApplicable</a></li>

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

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,13 @@ public interface CartAddShippingMethodAction extends CartUpdateAction {
5454
public String getShippingKey();
5555

5656
/**
57-
* <p>ResourceIdentifier to a <a href="https://docs.commercetools.com/apis/ctp:api:type:ShippingMethod" rel="nofollow">ShippingMethod</a> to add to the Cart with <code>Multiple</code> <a href="https://docs.commercetools.com/apis/ctp:api:type:ShippingMode" rel="nofollow">ShippingMode</a>. If the referenced Shipping Method has a predicate that does not match the Cart, an <a href="https://docs.commercetools.com/apis/ctp:api:type:InvalidOperationError" rel="nofollow">InvalidOperation</a> error is returned.</p>
57+
* <p>ResourceIdentifier to a <a href="https://docs.commercetools.com/apis/ctp:api:type:ShippingMethod" rel="nofollow">ShippingMethod</a> to add to the Cart with <code>Multiple</code> <a href="https://docs.commercetools.com/apis/ctp:api:type:ShippingMode" rel="nofollow">ShippingMode</a>. <a href="https://docs.commercetools.com/apis/ctp:api:type:InvalidOperationError" rel="nofollow">InvalidOperation</a> error is returned in one of the following cases:</p>
58+
* <ol>
59+
* <li>If the referenced Shipping Method has a predicate that does not match the Cart.</li>
60+
* <li>If the referenced Shipping Method is not active.</li>
61+
* <li>If the referenced Shipping Method is associated with a Store that is different from the Cart's Store.</li>
62+
* <li>If the referenced Shipping Method is associated with a Store and the Cart is not associated with any Store.</li>
63+
* </ol>
5864
* @return shippingMethod
5965
*/
6066
@NotNull
@@ -116,7 +122,13 @@ public interface CartAddShippingMethodAction extends CartUpdateAction {
116122
public void setShippingKey(final String shippingKey);
117123

118124
/**
119-
* <p>ResourceIdentifier to a <a href="https://docs.commercetools.com/apis/ctp:api:type:ShippingMethod" rel="nofollow">ShippingMethod</a> to add to the Cart with <code>Multiple</code> <a href="https://docs.commercetools.com/apis/ctp:api:type:ShippingMode" rel="nofollow">ShippingMode</a>. If the referenced Shipping Method has a predicate that does not match the Cart, an <a href="https://docs.commercetools.com/apis/ctp:api:type:InvalidOperationError" rel="nofollow">InvalidOperation</a> error is returned.</p>
125+
* <p>ResourceIdentifier to a <a href="https://docs.commercetools.com/apis/ctp:api:type:ShippingMethod" rel="nofollow">ShippingMethod</a> to add to the Cart with <code>Multiple</code> <a href="https://docs.commercetools.com/apis/ctp:api:type:ShippingMode" rel="nofollow">ShippingMode</a>. <a href="https://docs.commercetools.com/apis/ctp:api:type:InvalidOperationError" rel="nofollow">InvalidOperation</a> error is returned in one of the following cases:</p>
126+
* <ol>
127+
* <li>If the referenced Shipping Method has a predicate that does not match the Cart.</li>
128+
* <li>If the referenced Shipping Method is not active.</li>
129+
* <li>If the referenced Shipping Method is associated with a Store that is different from the Cart's Store.</li>
130+
* <li>If the referenced Shipping Method is associated with a Store and the Cart is not associated with any Store.</li>
131+
* </ol>
120132
* @param shippingMethod value to be set
121133
*/
122134

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

Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,13 @@ public CartAddShippingMethodActionBuilder shippingKey(final String shippingKey)
5656
}
5757

5858
/**
59-
* <p>ResourceIdentifier to a <a href="https://docs.commercetools.com/apis/ctp:api:type:ShippingMethod" rel="nofollow">ShippingMethod</a> to add to the Cart with <code>Multiple</code> <a href="https://docs.commercetools.com/apis/ctp:api:type:ShippingMode" rel="nofollow">ShippingMode</a>. If the referenced Shipping Method has a predicate that does not match the Cart, an <a href="https://docs.commercetools.com/apis/ctp:api:type:InvalidOperationError" rel="nofollow">InvalidOperation</a> error is returned.</p>
59+
* <p>ResourceIdentifier to a <a href="https://docs.commercetools.com/apis/ctp:api:type:ShippingMethod" rel="nofollow">ShippingMethod</a> to add to the Cart with <code>Multiple</code> <a href="https://docs.commercetools.com/apis/ctp:api:type:ShippingMode" rel="nofollow">ShippingMode</a>. <a href="https://docs.commercetools.com/apis/ctp:api:type:InvalidOperationError" rel="nofollow">InvalidOperation</a> error is returned in one of the following cases:</p>
60+
* <ol>
61+
* <li>If the referenced Shipping Method has a predicate that does not match the Cart.</li>
62+
* <li>If the referenced Shipping Method is not active.</li>
63+
* <li>If the referenced Shipping Method is associated with a Store that is different from the Cart's Store.</li>
64+
* <li>If the referenced Shipping Method is associated with a Store and the Cart is not associated with any Store.</li>
65+
* </ol>
6066
* @param builder function to build the shippingMethod value
6167
* @return Builder
6268
*/
@@ -70,7 +76,13 @@ public CartAddShippingMethodActionBuilder shippingMethod(
7076
}
7177

7278
/**
73-
* <p>ResourceIdentifier to a <a href="https://docs.commercetools.com/apis/ctp:api:type:ShippingMethod" rel="nofollow">ShippingMethod</a> to add to the Cart with <code>Multiple</code> <a href="https://docs.commercetools.com/apis/ctp:api:type:ShippingMode" rel="nofollow">ShippingMode</a>. If the referenced Shipping Method has a predicate that does not match the Cart, an <a href="https://docs.commercetools.com/apis/ctp:api:type:InvalidOperationError" rel="nofollow">InvalidOperation</a> error is returned.</p>
79+
* <p>ResourceIdentifier to a <a href="https://docs.commercetools.com/apis/ctp:api:type:ShippingMethod" rel="nofollow">ShippingMethod</a> to add to the Cart with <code>Multiple</code> <a href="https://docs.commercetools.com/apis/ctp:api:type:ShippingMode" rel="nofollow">ShippingMode</a>. <a href="https://docs.commercetools.com/apis/ctp:api:type:InvalidOperationError" rel="nofollow">InvalidOperation</a> error is returned in one of the following cases:</p>
80+
* <ol>
81+
* <li>If the referenced Shipping Method has a predicate that does not match the Cart.</li>
82+
* <li>If the referenced Shipping Method is not active.</li>
83+
* <li>If the referenced Shipping Method is associated with a Store that is different from the Cart's Store.</li>
84+
* <li>If the referenced Shipping Method is associated with a Store and the Cart is not associated with any Store.</li>
85+
* </ol>
7486
* @param builder function to build the shippingMethod value
7587
* @return Builder
7688
*/
@@ -83,7 +95,13 @@ public CartAddShippingMethodActionBuilder withShippingMethod(
8395
}
8496

8597
/**
86-
* <p>ResourceIdentifier to a <a href="https://docs.commercetools.com/apis/ctp:api:type:ShippingMethod" rel="nofollow">ShippingMethod</a> to add to the Cart with <code>Multiple</code> <a href="https://docs.commercetools.com/apis/ctp:api:type:ShippingMode" rel="nofollow">ShippingMode</a>. If the referenced Shipping Method has a predicate that does not match the Cart, an <a href="https://docs.commercetools.com/apis/ctp:api:type:InvalidOperationError" rel="nofollow">InvalidOperation</a> error is returned.</p>
98+
* <p>ResourceIdentifier to a <a href="https://docs.commercetools.com/apis/ctp:api:type:ShippingMethod" rel="nofollow">ShippingMethod</a> to add to the Cart with <code>Multiple</code> <a href="https://docs.commercetools.com/apis/ctp:api:type:ShippingMode" rel="nofollow">ShippingMode</a>. <a href="https://docs.commercetools.com/apis/ctp:api:type:InvalidOperationError" rel="nofollow">InvalidOperation</a> error is returned in one of the following cases:</p>
99+
* <ol>
100+
* <li>If the referenced Shipping Method has a predicate that does not match the Cart.</li>
101+
* <li>If the referenced Shipping Method is not active.</li>
102+
* <li>If the referenced Shipping Method is associated with a Store that is different from the Cart's Store.</li>
103+
* <li>If the referenced Shipping Method is associated with a Store and the Cart is not associated with any Store.</li>
104+
* </ol>
87105
* @param shippingMethod value to be set
88106
* @return Builder
89107
*/
@@ -337,7 +355,13 @@ public String getShippingKey() {
337355
}
338356

339357
/**
340-
* <p>ResourceIdentifier to a <a href="https://docs.commercetools.com/apis/ctp:api:type:ShippingMethod" rel="nofollow">ShippingMethod</a> to add to the Cart with <code>Multiple</code> <a href="https://docs.commercetools.com/apis/ctp:api:type:ShippingMode" rel="nofollow">ShippingMode</a>. If the referenced Shipping Method has a predicate that does not match the Cart, an <a href="https://docs.commercetools.com/apis/ctp:api:type:InvalidOperationError" rel="nofollow">InvalidOperation</a> error is returned.</p>
358+
* <p>ResourceIdentifier to a <a href="https://docs.commercetools.com/apis/ctp:api:type:ShippingMethod" rel="nofollow">ShippingMethod</a> to add to the Cart with <code>Multiple</code> <a href="https://docs.commercetools.com/apis/ctp:api:type:ShippingMode" rel="nofollow">ShippingMode</a>. <a href="https://docs.commercetools.com/apis/ctp:api:type:InvalidOperationError" rel="nofollow">InvalidOperation</a> error is returned in one of the following cases:</p>
359+
* <ol>
360+
* <li>If the referenced Shipping Method has a predicate that does not match the Cart.</li>
361+
* <li>If the referenced Shipping Method is not active.</li>
362+
* <li>If the referenced Shipping Method is associated with a Store that is different from the Cart's Store.</li>
363+
* <li>If the referenced Shipping Method is associated with a Store and the Cart is not associated with any Store.</li>
364+
* </ol>
341365
* @return shippingMethod
342366
*/
343367

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,13 @@ public String getShippingKey() {
8484
}
8585

8686
/**
87-
* <p>ResourceIdentifier to a <a href="https://docs.commercetools.com/apis/ctp:api:type:ShippingMethod" rel="nofollow">ShippingMethod</a> to add to the Cart with <code>Multiple</code> <a href="https://docs.commercetools.com/apis/ctp:api:type:ShippingMode" rel="nofollow">ShippingMode</a>. If the referenced Shipping Method has a predicate that does not match the Cart, an <a href="https://docs.commercetools.com/apis/ctp:api:type:InvalidOperationError" rel="nofollow">InvalidOperation</a> error is returned.</p>
87+
* <p>ResourceIdentifier to a <a href="https://docs.commercetools.com/apis/ctp:api:type:ShippingMethod" rel="nofollow">ShippingMethod</a> to add to the Cart with <code>Multiple</code> <a href="https://docs.commercetools.com/apis/ctp:api:type:ShippingMode" rel="nofollow">ShippingMode</a>. <a href="https://docs.commercetools.com/apis/ctp:api:type:InvalidOperationError" rel="nofollow">InvalidOperation</a> error is returned in one of the following cases:</p>
88+
* <ol>
89+
* <li>If the referenced Shipping Method has a predicate that does not match the Cart.</li>
90+
* <li>If the referenced Shipping Method is not active.</li>
91+
* <li>If the referenced Shipping Method is associated with a Store that is different from the Cart's Store.</li>
92+
* <li>If the referenced Shipping Method is associated with a Store and the Cart is not associated with any Store.</li>
93+
* </ol>
8894
*/
8995

9096
public com.commercetools.api.models.shipping_method.ShippingMethodResourceIdentifier getShippingMethod() {

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

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,13 @@ public interface CartSetShippingMethodAction extends CartUpdateAction {
4040

4141
/**
4242
* <p>Value to set. If empty, any existing value is removed.</p>
43-
* <p>If the referenced Shipping Method is inactive, or has a predicate that does not match the Cart, an <a href="https://docs.commercetools.com/apis/ctp:api:type:InvalidOperationError" rel="nofollow">InvalidOperation</a> error is returned.</p>
43+
* <p><a href="https://docs.commercetools.com/apis/ctp:api:type:InvalidOperationError" rel="nofollow">InvalidOperation</a> error is returned in one of the following cases:</p>
44+
* <ol>
45+
* <li>If the referenced Shipping Method has a predicate that does not match the Cart.</li>
46+
* <li>If the referenced Shipping Method is not active.</li>
47+
* <li>If the referenced Shipping Method is associated with a Store that is different from the Cart's Store.</li>
48+
* <li>If the referenced Shipping Method is associated with a Store and the Cart is not associated with any Store.</li>
49+
* </ol>
4450
* @return shippingMethod
4551
*/
4652
@Valid
@@ -57,7 +63,13 @@ public interface CartSetShippingMethodAction extends CartUpdateAction {
5763

5864
/**
5965
* <p>Value to set. If empty, any existing value is removed.</p>
60-
* <p>If the referenced Shipping Method is inactive, or has a predicate that does not match the Cart, an <a href="https://docs.commercetools.com/apis/ctp:api:type:InvalidOperationError" rel="nofollow">InvalidOperation</a> error is returned.</p>
66+
* <p><a href="https://docs.commercetools.com/apis/ctp:api:type:InvalidOperationError" rel="nofollow">InvalidOperation</a> error is returned in one of the following cases:</p>
67+
* <ol>
68+
* <li>If the referenced Shipping Method has a predicate that does not match the Cart.</li>
69+
* <li>If the referenced Shipping Method is not active.</li>
70+
* <li>If the referenced Shipping Method is associated with a Store that is different from the Cart's Store.</li>
71+
* <li>If the referenced Shipping Method is associated with a Store and the Cart is not associated with any Store.</li>
72+
* </ol>
6173
* @param shippingMethod value to be set
6274
*/
6375

0 commit comments

Comments
 (0)