Skip to content

Commit 543206e

Browse files
Merge pull request #701 from commercetools/gen-sdk-updates
Update generated SDKs
2 parents 5d5e5b0 + e21378f commit 543206e

File tree

121 files changed

+379
-2108
lines changed

Some content is hidden

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

121 files changed

+379
-2108
lines changed

changes.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,13 @@
7979
</details>
8080

8181

82+
<details>
83+
<summary>Removed Resource(s)</summary>
84+
85+
- :warning: removed resource `/{projectKey}/me/carts/key={key}`
86+
</details>
87+
88+
8289
<details>
8390
<summary>Removed QueryParameter(s)</summary>
8491

@@ -141,6 +148,18 @@
141148
</details>
142149

143150

151+
<details>
152+
<summary>Removed Method(s)</summary>
153+
154+
- :warning: removed method `apiRoot.withProjectKey().me().carts().withKey().get()`
155+
- :warning: removed method `apiRoot.withProjectKey().me().carts().withKey().head()`
156+
- :warning: removed method `apiRoot.withProjectKey().me().carts().withKey().post()`
157+
- :warning: removed method `apiRoot.withProjectKey().me().carts().withKey().delete()`
158+
- :warning: removed method `apiRoot.withProjectKey().me().quoteRequests().withId().delete()`
159+
- :warning: removed method `apiRoot.withProjectKey().me().quoteRequests().withKey().delete()`
160+
</details>
161+
162+
144163
<details>
145164
<summary>Added Enum(s)</summary>
146165

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import org.apache.commons.lang3.builder.HashCodeBuilder;
2121

2222
/**
23-
* <p>If the Cart exists in the Project but does not have the <code>store</code> field, or the <code>store</code> field references a different Store, this method returns a ResourceNotFound error.</p>
23+
* <p>If the Cart exists in the Project but does not have a <code>store</code> specified, or the <code>store</code> field references a different Store, this method returns a ResourceNotFound error.</p>
2424
*
2525
* <hr>
2626
* <div class=code-example>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import org.apache.commons.lang3.builder.HashCodeBuilder;
2121

2222
/**
23-
* <p>If the Cart exists in the Project but does not have the <code>store</code> field, or the <code>store</code> field references a different Store, this method returns a ResourceNotFound error.</p>
23+
* <p>If the Cart exists in the Project but does not have a <code>store</code> specified, or the <code>store</code> field references a different Store, this method returns a ResourceNotFound error.</p>
2424
* <p>To ensure the Cart is up-to-date with current values (such as Prices and Discounts), use the Recalculate update action.</p>
2525
*
2626
* <hr>

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartsByIDHead.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.HashCodeBuilder;
1717

1818
/**
19-
* <p>Checks if a Cart exists for a given <code>id</code>. Returns a <code>200 OK</code> status if the Cart exists or a <code>404 Not Found</code> otherwise.</p>
19+
* <p>Checks if a Cart exists for a given <code>id</code>. Returns a <code>200 OK</code> status if the Cart exists or a ResourceNotFound error otherwise.</p>
2020
*
2121
* <hr>
2222
* <div class=code-example>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import org.apache.commons.lang3.builder.HashCodeBuilder;
2121

2222
/**
23-
* <p>Updates a Cart in the Store specified by <code>storeKey</code>. If the Cart exists in the Project but does not have the <code>store</code> field, or the <code>store</code> field references a different Store, this method returns a ResourceNotFound error.</p>
23+
* <p>Updates a Cart in the Store specified by <code>storeKey</code>. If the Cart exists in the Project but does not have a <code>store</code> specified, or the <code>store</code> field references a different Store, this method returns a ResourceNotFound error.</p>
2424
*
2525
* <hr>
2626
* <div class=code-example>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
import org.apache.commons.lang3.builder.HashCodeBuilder;
2222

2323
/**
24-
* <p>Updates a Cart in the Store specified by <code>storeKey</code>. If the Cart exists in the Project but does not have the <code>store</code> field, or the <code>store</code> field references a different Store, this method returns a ResourceNotFound error.</p>
24+
* <p>Updates a Cart in the Store specified by <code>storeKey</code>. If the Cart exists in the Project but does not have a <code>store</code> specified, or the <code>store</code> field references a different Store, this method returns a ResourceNotFound error.</p>
2525
*
2626
* <hr>
2727
* <div class=code-example>

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

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

2222
/**
2323
* <p>Retrieves the most recently modified active Cart of a Customer with CartOrigin <code>Customer</code>. If no active Cart exists, this method returns a ResourceNotFound error.</p>
24-
* <p>If the Cart exists in the Project but does not have the <code>store</code> field, or the <code>store</code> field references a different Store, this method returns a ResourceNotFound error.</p>
24+
* <p>If the Cart exists in the Project but does not have a <code>store</code> specified, or the <code>store</code> field references a different Store, this method returns a ResourceNotFound error.</p>
2525
* <p>To ensure the Cart is up-to-date with current values (such as Prices and Discounts), use the Recalculate update action.</p>
2626
*
2727
* <hr>

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartsCustomerIdByCustomerIdHead.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.HashCodeBuilder;
1717

1818
/**
19-
* <p>Checks if a Cart of a Customer exists. Returns a <code>200 OK</code> status if the Cart exists or a <code>404 Not Found</code> otherwise.</p>
19+
* <p>Checks if a Cart of a Customer exists. Returns a <code>200 OK</code> status if the Cart exists or a ResourceNotFound error otherwise.</p>
2020
*
2121
* <hr>
2222
* <div class=code-example>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import org.apache.commons.lang3.builder.HashCodeBuilder;
2121

2222
/**
23-
* <p>Checks if a Cart exists for a given Query Predicate. Returns a <code>200 OK</code> status if any Carts match the Query Predicate or a <code>404 Not Found</code> otherwise.</p>
23+
* <p>Checks if a Cart exists for a given Query Predicate. Returns a <code>200 OK</code> status if any Carts match the Query Predicate or a ResourceNotFound error otherwise.</p>
2424
*
2525
* <hr>
2626
* <div class=code-example>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import org.apache.commons.lang3.builder.HashCodeBuilder;
2121

2222
/**
23-
* <p>If the Cart exists in the Project but does not have the <code>store</code> field, or the <code>store</code> field references a different Store, this method returns a ResourceNotFound error.</p>
23+
* <p>If the Cart exists in the Project but does not have a <code>store</code> specified, or the <code>store</code> field references a different Store, this method returns a ResourceNotFound error.</p>
2424
*
2525
* <hr>
2626
* <div class=code-example>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import org.apache.commons.lang3.builder.HashCodeBuilder;
2121

2222
/**
23-
* <p>If the Cart exists in the Project but does not have the <code>store</code> field, or the <code>store</code> field references a different Store, this method returns a ResourceNotFound error.</p>
23+
* <p>If the Cart exists in the Project but does not have a <code>store</code> specified, or the <code>store</code> field references a different Store, this method returns a ResourceNotFound error.</p>
2424
* <p>To ensure the Cart is up-to-date with current values (such as Prices and Discounts), use the Recalculate update action.</p>
2525
*
2626
* <hr>

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartsKeyByKeyHead.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.HashCodeBuilder;
1717

1818
/**
19-
* <p>Checks if a Cart exists for a given <code>key</code>. Returns a <code>200 OK</code> status if the Cart exists or a <code>404 Not Found</code> otherwise.</p>
19+
* <p>Checks if a Cart exists for a given <code>key</code>. Returns a <code>200 OK</code> status if the Cart exists or a ResourceNotFound error otherwise.</p>
2020
*
2121
* <hr>
2222
* <div class=code-example>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import org.apache.commons.lang3.builder.HashCodeBuilder;
2121

2222
/**
23-
* <p>If the Cart exists in the Project but does not have the <code>store</code> field, or the <code>store</code> field references a different Store, this method returns a ResourceNotFound error.</p>
23+
* <p>If the Cart exists in the Project but does not have a <code>store</code> specified, or the <code>store</code> field references a different Store, this method returns a ResourceNotFound error.</p>
2424
*
2525
* <hr>
2626
* <div class=code-example>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
import org.apache.commons.lang3.builder.HashCodeBuilder;
2222

2323
/**
24-
* <p>If the Cart exists in the Project but does not have the <code>store</code> field, or the <code>store</code> field references a different Store, this method returns a ResourceNotFound error.</p>
24+
* <p>If the Cart exists in the Project but does not have a <code>store</code> specified, or the <code>store</code> field references a different Store, this method returns a ResourceNotFound error.</p>
2525
*
2626
* <hr>
2727
* <div class=code-example>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import org.apache.commons.lang3.builder.HashCodeBuilder;
2121

2222
/**
23-
* <p>Checks if a Customer exists for a given Query Predicate. Returns a <code>200 OK</code> status if any Customers match the Query Predicate or a <code>404 Not Found</code> otherwise.</p>
23+
* <p>Checks if a Customer exists for a given Query Predicate. Returns a <code>200 OK</code> status if any Customers match the Query Predicate or a ResourceNotFound error otherwise.</p>
2424
*
2525
* <hr>
2626
* <div class=code-example>

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,14 @@
2020
import org.apache.commons.lang3.builder.HashCodeBuilder;
2121

2222
/**
23-
* <p>Retrieves the Customer's most recently modified active Cart in the Store specified by the <code>storeKey</code> path parameter.</p>
23+
* <p>Retrieves the Customer's most recently modified active Cart in a Store. Returns a <code>200 OK</code> status if successful.</p>
2424
* <p>Carts with <code>Merchant</code> or <code>Quote</code> CartOrigin are ignored.</p>
25-
* <p>If no active Cart exists, this method returns a ResourceNotFound error.</p>
25+
* <p>A ResourceNotFound error is returned in the following scenarios:</p>
26+
* <ul>
27+
* <li>If no active Cart exists.</li>
28+
* <li>If an active Cart exists but does not have a <code>store</code> specified, or the <code>store</code> field references a different Store.</li>
29+
* <li>If an active Cart exists but does not have a <code>customerId</code> that matches the customer:{id} scope, or <code>anonymousId</code> that matches the anonymous_id:{id} scope.</li>
30+
* </ul>
2631
*
2732
* <hr>
2833
* <div class=code-example>

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

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

1818
/**
19-
* <p>Checks if an active Cart exists. Returns a <code>200 OK</code> status if an active Cart exists or a <code>404 Not Found</code> otherwise.</p>
19+
* <p>Checks if an active Cart exists in a Store. Returns <code>200 OK</code> status if successful.</p>
20+
* <p>A ResourceNotFound error is returned in the following scenarios:</p>
21+
* <ul>
22+
* <li>If no active Cart exists in a Store.</li>
23+
* <li>If an active Cart exists but does not have a <code>store</code> specified, or the <code>store</code> field references a different Store.</li>
24+
* <li>If an active Cart exists but does not contain a <code>customerId</code> that matches the customer:{id} scope, or <code>anonymousId</code> that matches the anonymous_id:{id} scope.</li>
25+
* </ul>
2026
*
2127
* <hr>
2228
* <div class=code-example>

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

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,13 @@
2020
import org.apache.commons.lang3.builder.HashCodeBuilder;
2121

2222
/**
23-
* <p>Deletes the Cart for a given <code>id</code> in a Store. Returns a <code>200 OK</code> status if the Cart exists, or a ResourceNotFound error otherwise.</p>
24-
* <p>If the Cart exists in the Project but does not belong to a Store, or the Cart's <code>store</code> field references a different Store, this method returns a ResourceNotFound error.</p>
25-
* <p>If the Cart exists in the Project but does not have a matching <code>customerId</code> or <code>anonymousId</code>, this method returns a ResourceNotFound error.</p>
23+
* <p>Deletes the Cart for a given <code>id</code> in a Store. Returns a <code>200 OK</code> status if successful.</p>
24+
* <p>A ResourceNotFound error is returned in the following scenarios:</p>
25+
* <ul>
26+
* <li>If no Cart exists in the Store for the given <code>id</code>.</li>
27+
* <li>If the Cart exists in the Project but does not belong to a Store, or the Cart's <code>store</code> field references a different Store.</li>
28+
* <li>If the Cart exists in the Project but does not have either a <code>customerId</code> that matches the customer:{id} scope, or an <code>anonymousId</code> that matches the anonymous_id:{id} scope.</li>
29+
* </ul>
2630
*
2731
* <hr>
2832
* <div class=code-example>

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

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,13 @@
2020
import org.apache.commons.lang3.builder.HashCodeBuilder;
2121

2222
/**
23-
* <p>Returns a Cart for a given <code>id</code> in a Store. Returns a <code>200 OK</code> status if the Cart exists, or a ResourceNotFound error otherwise.</p>
24-
* <p>If the Cart exists in the Project but does not belong to a Store, or the Cart's <code>store</code> field references a different Store, this method returns a ResourceNotFound error.</p>
25-
* <p>If the Cart exists in the Project but does not have a matching <code>customerId</code> or <code>anonymousId</code>, this method returns a ResourceNotFound error.</p>
23+
* <p>Returns a Cart for a given <code>id</code> in a Store. Returns a <code>200 OK</code> status if the Cart exists.</p>
24+
* <p>A ResourceNotFound error is returned in the following scenarios:</p>
25+
* <ul>
26+
* <li>If no Cart exists in the Store for the given <code>id</code>.</li>
27+
* <li>If the Cart exists but does not belong to a Store, or the Cart's <code>store</code> field references a different Store.</li>
28+
* <li>If the Cart exists but does not have either a <code>customerId</code> that matches the customer:{id} scope, or an <code>anonymousId</code> that matches the anonymous_id:{id} scope.</li>
29+
* </ul>
2630
*
2731
* <hr>
2832
* <div class=code-example>

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

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,13 @@
2020
import org.apache.commons.lang3.builder.HashCodeBuilder;
2121

2222
/**
23-
* <p>Updates the Cart for a given <code>id</code> in a Store. Returns a <code>200 OK</code> status if the Cart exists, or a ResourceNotFound error otherwise.</p>
24-
* <p>If the Cart exists in the Project but does not belong to a Store, or the Cart's <code>store</code> field references a different Store, this method returns a ResourceNotFound error.</p>
25-
* <p>If the Cart exists in the Project but does not have a matching <code>customerId</code> or <code>anonymousId</code>, this method returns a ResourceNotFound error.</p>
23+
* <p>Updates the Cart for a given <code>id</code> in a Store. Returns a <code>200 OK</code> status if successful.</p>
24+
* <p>A ResourceNotFound error is returned in the following scenarios:</p>
25+
* <ul>
26+
* <li>If no Cart exists in the Store for the given <code>id</code>.</li>
27+
* <li>If the Cart exists but does not belong to a Store, or the Cart's <code>store</code> field references a different Store.</li>
28+
* <li>If the Cart exists but does not have either a <code>customerId</code> that matches the customer:{id} scope, or an <code>anonymousId</code> that matches the anonymous_id:{id} scope.</li>
29+
* </ul>
2630
*
2731
* <hr>
2832
* <div class=code-example>

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

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,13 @@
2121
import org.apache.commons.lang3.builder.HashCodeBuilder;
2222

2323
/**
24-
* <p>Updates the Cart for a given <code>id</code> in a Store. Returns a <code>200 OK</code> status if the Cart exists, or a ResourceNotFound error otherwise.</p>
25-
* <p>If the Cart exists in the Project but does not belong to a Store, or the Cart's <code>store</code> field references a different Store, this method returns a ResourceNotFound error.</p>
26-
* <p>If the Cart exists in the Project but does not have a matching <code>customerId</code> or <code>anonymousId</code>, this method returns a ResourceNotFound error.</p>
24+
* <p>Updates the Cart for a given <code>id</code> in a Store. Returns a <code>200 OK</code> status if successful.</p>
25+
* <p>A ResourceNotFound error is returned in the following scenarios:</p>
26+
* <ul>
27+
* <li>If no Cart exists in the Store for the given <code>id</code>.</li>
28+
* <li>If the Cart exists but does not belong to a Store, or the Cart's <code>store</code> field references a different Store.</li>
29+
* <li>If the Cart exists but does not have either a <code>customerId</code> that matches the customer:{id} scope, or an <code>anonymousId</code> that matches the anonymous_id:{id} scope.</li>
30+
* </ul>
2731
*
2832
* <hr>
2933
* <div class=code-example>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import org.apache.commons.lang3.builder.HashCodeBuilder;
2121

2222
/**
23-
* <p>Checks if a Cart exists for a Store that matches the given Query Predicate, and contains a matching <code>customerId</code> or <code>anonymousId</code>. Returns a <code>200 OK</code> status if any Carts match these conditions, or a <code>404 Not Found</code> otherwise.</p>
23+
* <p>Checks if a Cart exists for a Store that matches the given Query Predicate, and contains a matching <code>customerId</code> or <code>anonymousId</code>. Returns a <code>200 OK</code> status if any Carts match these conditions, or a ResourceNotFound error otherwise.</p>
2424
*
2525
* <hr>
2626
* <div class=code-example>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import org.apache.commons.lang3.builder.HashCodeBuilder;
2121

2222
/**
23-
* <p>Creates a Cart in the specified Store for a given <code>customerId</code> or <code>anonymousId</code>.</p>
23+
* <p>Creates a Cart in a Store for the Customer or anonymous user. The <code>customerId</code> or <code>anonymousId</code> field on the Cart is automatically set based on the customer:{id} or anonymous_id:{id} scope.</p>
2424
* <p>The <code>store</code> field in the created Cart is set to the Store specified by the <code>storeKey</code> path parameter.</p>
2525
* <p>Specific Error Codes:</p>
2626
* <ul>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
import org.apache.commons.lang3.builder.HashCodeBuilder;
2222

2323
/**
24-
* <p>Creates a Cart in the specified Store for a given <code>customerId</code> or <code>anonymousId</code>.</p>
24+
* <p>Creates a Cart in a Store for the Customer or anonymous user. The <code>customerId</code> or <code>anonymousId</code> field on the Cart is automatically set based on the customer:{id} or anonymous_id:{id} scope.</p>
2525
* <p>The <code>store</code> field in the created Cart is set to the Store specified by the <code>storeKey</code> path parameter.</p>
2626
* <p>Specific Error Codes:</p>
2727
* <ul>

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,13 @@
2020
import org.apache.commons.lang3.builder.HashCodeBuilder;
2121

2222
/**
23-
* <p>If the Order exists in the Project but does not have the <code>store</code> field, or the <code>store</code> field references a different Store, this method returns a ResourceNotFound error.</p>
23+
* <p>Returns an Order for a given <code>id</code> in a Store. Returns a <code>200 OK</code> status if successful.</p>
24+
* <p>A ResourceNotFound error is returned in the following scenarios:</p>
25+
* <ul>
26+
* <li>If no Order exists in the Store for the given <code>id</code>.</li>
27+
* <li>If the Order exists but does not have a <code>store</code> specified, or the <code>store</code> field references a different Store.</li>
28+
* <li>If the Order exists but does not have a <code>customerId</code> that matches the customer:{id} scope, or <code>anonymousId</code> that matches the anonymous_id:{id} scope.</li>
29+
* </ul>
2430
*
2531
* <hr>
2632
* <div class=code-example>

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

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

1818
/**
19-
* <p>Checks if an Order exists for a given <code>id</code>. Returns a <code>200 OK</code> status if the My Order exists or a <code>404 Not Found</code> otherwise.</p>
19+
* <p>Checks if an Order exists for a given <code>id</code> in a Store. Returns a <code>200 OK</code> status if successful.</p>
20+
* <p>A ResourceNotFound error is returned in the following scenarios:</p>
21+
* <ul>
22+
* <li>If no Order exists in the Store for the given <code>id</code>.</li>
23+
* <li>If the Order exists but does not have a <code>store</code> specified, or the <code>store</code> field references a different Store.</li>
24+
* <li>If the Order exists but does not have a <code>customerId</code> that matches the customer:{id} scope, or <code>anonymousId</code> that matches the anonymous_id:{id} scope.</li>
25+
* </ul>
2026
*
2127
* <hr>
2228
* <div class=code-example>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import org.apache.commons.lang3.builder.HashCodeBuilder;
2121

2222
/**
23-
*
23+
* <p>Returns all Orders in a Store that match a given Query Predicate and contain either a <code>customerId</code> that matches the customer_id:{id} scope, or an <code>anonymousId</code> that matches the anonymous_id:{id} scope.</p>
2424
*
2525
* <hr>
2626
* <div class=code-example>

0 commit comments

Comments
 (0)