Skip to content

Commit bfe95be

Browse files
committed
build(codegen): updating SDK
1 parent 176d888 commit bfe95be

832 files changed

Lines changed: 33102 additions & 1744 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: 134 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,160 @@
11
**Api changes**
22

3+
<details>
4+
<summary>Added Enum(s)</summary>
5+
6+
- added enum `ReserveOnCart` to type `InventoryMode`
7+
- added enum `reservation` to type `ReferenceTypeId`
8+
- added enum `reservation` to type `ResourceTypeId`
9+
</details>
10+
11+
312
<details>
413
<summary>Added Type(s)</summary>
514

6-
- added type `ExactLockConflictError`
7-
- added type `ValidityLockConflictError`
8-
- added type `GraphQLExactLockConflictError`
9-
- added type `GraphQLValidityLockConflictError`
15+
- added type `ReservationReference`
16+
- added type `CartSetReservationExpirationInMinutesAction`
17+
- added type `NonStandardCurrency`
18+
- added type `CircularDependencyError`
19+
- added type `ExtensionChainTooDeepError`
20+
- added type `ExtensionChainTooWideError`
21+
- added type `ExtensionDependencyExistsError`
22+
- added type `LineItemQuantityAboveLimitError`
23+
- added type `LineItemQuantityBelowLimitError`
24+
- added type `MissingDependencyError`
25+
- added type `GraphQLCircularDependencyError`
26+
- added type `GraphQLExtensionChainTooDeepError`
27+
- added type `GraphQLExtensionChainTooWideError`
28+
- added type `GraphQLExtensionDependencyExistsError`
29+
- added type `GraphQLLineItemQuantityAboveLimitError`
30+
- added type `GraphQLLineItemQuantityBelowLimitError`
31+
- added type `GraphQLMissingDependencyError`
32+
- added type `ExtensionAdditionalContext`
33+
- added type `ExtensionAdditionalContextDraft`
34+
- added type `ExtensionReference`
35+
- added type `ExtensionResourceIdentifier`
36+
- added type `ExtensionSetAdditionalContextAction`
37+
- added type `ExtensionSetDependenciesAction`
38+
- added type `ExtensionSetExpansionPathsAction`
39+
- added type `InventoryEntryStockLevels`
40+
- added type `InventoryEntrySetReorderPointAction`
41+
- added type `InventoryEntrySetReservationExpirationInMinutesAction`
42+
- added type `InventoryEntrySetSafetyStockAction`
43+
- added type `InventoryEntryOutOfStockMessage`
44+
- added type `InventoryEntryReorderPointMessage`
45+
- added type `InventoryEntryReservationExpirationInMinutesSetMessage`
46+
- added type `InventoryEntrySafetyStockMessage`
47+
- added type `InventoryEntryOutOfStockMessagePayload`
48+
- added type `InventoryEntryReorderPointMessagePayload`
49+
- added type `InventoryEntryReservationExpirationInMinutesSetMessagePayload`
50+
- added type `InventoryEntrySafetyStockMessagePayload`
51+
- added type `InventoryConfiguration`
52+
- added type `ProjectSetReleaseExpiredReservationsAction`
53+
- added type `ProjectSetReservationExpirationInMinutesAction`
54+
- added type `Reservation`
55+
- added type `ReservationState`
56+
- added type `CannotChangeReservationExpiryWarning`
57+
- added type `CannotCreateReservationWarning`
58+
- added type `CannotUpdateReservationWarning`
59+
</details>
60+
61+
62+
<details>
63+
<summary>Added Property(s)</summary>
64+
65+
- added property `warnings` to type `Cart`
66+
- added property `reservation` to type `LineItem`
67+
- added property `dependencies` to type `Extension`
68+
- added property `expansionPaths` to type `Extension`
69+
- added property `additionalContext` to type `Extension`
70+
- added property `dependencies` to type `ExtensionDraft`
71+
- added property `expansionPaths` to type `ExtensionDraft`
72+
- added property `additionalContext` to type `ExtensionDraft`
73+
- added property `oldResource` to type `ExtensionInput`
74+
- added property `reservationExpirationInMinutes` to type `InventoryEntry`
75+
- added property `stockLevels` to type `InventoryEntry`
76+
- added property `reservationExpirationInMinutes` to type `InventoryEntryDraft`
77+
- added property `stockLevels` to type `InventoryEntryDraft`
78+
- added property `inventory` to type `Project`
1079
</details>
1180

1281
**Import changes**
1382

83+
<details>
84+
<summary>Added Resource(s)</summary>
85+
86+
- added resource `/{projectKey}/product-tailorings`
87+
- added resource `/{projectKey}/product-tailorings/import-containers`
88+
- added resource `/{projectKey}/product-tailorings/import-containers/{importContainerKey}`
89+
</details>
90+
91+
1492
<details>
1593
<summary>Added Enum(s)</summary>
1694

17-
- added enum `partiallyImported` to type `ProcessingState`
95+
- added enum `product-tailoring` to type `ImportResourceType`
96+
</details>
97+
98+
99+
<details>
100+
<summary>Added Type(s)</summary>
101+
102+
- added type `ProductTailoringImportRequest`
103+
- added type `ProductVariantTailoringImport`
104+
- added type `ProductTailoringImport`
105+
</details>
106+
107+
108+
<details>
109+
<summary>Added Method(s)</summary>
110+
111+
- added method `apiRoot.withProjectKeyValue().productTailorings().importContainers().withImportContainerKeyValue().post()`
18112
</details>
19113

20114

21115
<details>
22116
<summary>Added Property(s)</summary>
23117

24-
- added property `partiallyImported` to type `OperationStates`
118+
- added property `reservationExpirationInMinutes` to type `InventoryImport`
119+
- added property `active` to type `StandalonePriceImport`
120+
</details>
121+
122+
**History changes**
123+
124+
<details>
125+
<summary>Added Enum(s)</summary>
126+
127+
- added enum `setReservationExpirationInMinutes` to type `UpdateType`
25128
</details>
26129

27-
**Checkout changes**
28130

29131
<details>
30132
<summary>Added Type(s)</summary>
31133

32-
- added type `CountryCode`
33-
- added type `CurrencyCode`
34-
- added type `Locale`
134+
- added type `SetTransactionInterfaceIdChange`
135+
</details>
136+
137+
138+
<details>
139+
<summary>Added Property(s)</summary>
140+
141+
- added property `catalogData` to type `ChangeLocalizedNameChange`
142+
- added property `catalogData` to type `SetLocalizedDescriptionChange`
143+
</details>
144+
145+
**Checkout changes**
146+
147+
<details>
148+
<summary>Added Enum(s)</summary>
149+
150+
- added enum `eu-central-1.aws` to type `Region`
151+
- added enum `us-east-2.aws` to type `Region`
152+
</details>
153+
154+
155+
<details>
156+
<summary>Removed Type(s)</summary>
157+
158+
- :warning: removed type `SetConnectorDeploymentUpdateAction`
35159
</details>
36160

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

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

2222
/**
2323
* <p>Creates an Order from a <a href="https://docs.commercetools.com/apis/ctp:api:type:Cart" rel="nofollow">Cart</a> in a <a href="https://docs.commercetools.com/apis/ctp:api:type:BusinessUnit" rel="nofollow">BusinessUnit</a>.</p>
24-
* <p>The Cart must have a shipping address and an active Shipping Method set.</p>
24+
* <p>The Cart must have a shipping address set.</p>
2525
* <p>If the Cart does not reference the same BusinessUnit as the <code>businessUnitKey</code> path parameter, an <a href="https://docs.commercetools.com/apis/ctp:api:type:InvalidOperationError" rel="nofollow">InvalidOperation</a> is returned.</p>
2626
* <p>Specific Error Codes:</p>
2727
* <ul>

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

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

2323
/**
2424
* <p>Creates an Order from a <a href="https://docs.commercetools.com/apis/ctp:api:type:Cart" rel="nofollow">Cart</a> in a <a href="https://docs.commercetools.com/apis/ctp:api:type:BusinessUnit" rel="nofollow">BusinessUnit</a>.</p>
25-
* <p>The Cart must have a shipping address and an active Shipping Method set.</p>
25+
* <p>The Cart must have a shipping address set.</p>
2626
* <p>If the Cart does not reference the same BusinessUnit as the <code>businessUnitKey</code> path parameter, an <a href="https://docs.commercetools.com/apis/ctp:api:type:InvalidOperationError" rel="nofollow">InvalidOperation</a> is returned.</p>
2727
* <p>Specific Error Codes:</p>
2828
* <ul>

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@
2222
/**
2323
* <p>Creates a Cart in the Project.</p>
2424
* <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>When using <a href="https://docs.commercetools.com/apis/ctp:api:type:InventoryMode" rel="nofollow">InventoryMode</a> <code>ReserveOnCart</code>:</p>
26+
* <ul>
27+
* <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>
28+
* <li>If none of the Line Items can be reserved, the Cart creation fails with an <a href="https://docs.commercetools.com/apis/ctp:api:type:InvalidOperationError" rel="nofollow">InvalidOperation</a> error.</li>
29+
* </ul>
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/ByProjectKeyCartsPostString.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@
2323
/**
2424
* <p>Creates a Cart in the Project.</p>
2525
* <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>
26+
* <p>When using <a href="https://docs.commercetools.com/apis/ctp:api:type:InventoryMode" rel="nofollow">InventoryMode</a> <code>ReserveOnCart</code>:</p>
27+
* <ul>
28+
* <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>
29+
* <li>If none of the Line Items can be reserved, the Cart creation fails with an <a href="https://docs.commercetools.com/apis/ctp:api:type:InvalidOperationError" rel="nofollow">InvalidOperation</a> error.</li>
30+
* </ul>
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/client/ByProjectKeyInStoreKeyByStoreKeyMeOrdersPost.java

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

2222
/**
2323
* <p>Creates an Order from a Cart in a <a href="https://docs.commercetools.com/apis/ctp:api:type:Store" rel="nofollow">Store</a> for the Customer or anonymous user. The <code>customerId</code> or <code>anonymousId</code> field on the Order is automatically set based on the <span>customer:{id}</span> or <span>anonymous_id:{id}</span> scope.</p>
24-
* <p>The Cart must have a shipping address and an active Shipping Method set.</p>
24+
* <p>The Cart must have a shipping address set.</p>
2525
* <p>When creating <span>B2B Orders</span>, the Customer must have the <code>CreateMyOrdersFromMyCarts</code> <a href="https://docs.commercetools.com/apis/ctp:api:type:Permission" rel="nofollow">Permission</a>.</p>
2626
* <p>If the Cart's <code>customerId</code> does not match the <span>customer:{id}</span> scope, or the <code>anonymousId</code> does not match the <span>anonymous_id:{id}</span> scope, a <a href="https://docs.commercetools.com/apis/ctp:api:type:ResourceNotFoundError" rel="nofollow">ResourceNotFound</a> error is returned.</p>
2727
* <p>Creating an Order produces the <a href="https://docs.commercetools.com/apis/ctp:api:type:OrderCreatedMessage" rel="nofollow">OrderCreated</a> Message.</p>

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

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

2323
/**
2424
* <p>Creates an Order from a Cart in a <a href="https://docs.commercetools.com/apis/ctp:api:type:Store" rel="nofollow">Store</a> for the Customer or anonymous user. The <code>customerId</code> or <code>anonymousId</code> field on the Order is automatically set based on the <span>customer:{id}</span> or <span>anonymous_id:{id}</span> scope.</p>
25-
* <p>The Cart must have a shipping address and an active Shipping Method set.</p>
25+
* <p>The Cart must have a shipping address set.</p>
2626
* <p>When creating <span>B2B Orders</span>, the Customer must have the <code>CreateMyOrdersFromMyCarts</code> <a href="https://docs.commercetools.com/apis/ctp:api:type:Permission" rel="nofollow">Permission</a>.</p>
2727
* <p>If the Cart's <code>customerId</code> does not match the <span>customer:{id}</span> scope, or the <code>anonymousId</code> does not match the <span>anonymous_id:{id}</span> scope, a <a href="https://docs.commercetools.com/apis/ctp:api:type:ResourceNotFoundError" rel="nofollow">ResourceNotFound</a> error is returned.</p>
2828
* <p>Creating an Order produces the <a href="https://docs.commercetools.com/apis/ctp:api:type:OrderCreatedMessage" rel="nofollow">OrderCreated</a> Message.</p>

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyOrdersPost.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 an Order from a Cart in a <a href="https://docs.commercetools.com/apis/ctp:api:type:Store" rel="nofollow">Store</a>. The Cart must have a shipping address and an active Shipping Method set.</p>
23+
* <p>Creates an Order from a Cart in a <a href="https://docs.commercetools.com/apis/ctp:api:type:Store" rel="nofollow">Store</a>. The Cart must have a shipping address set.</p>
2424
* <p>The shipping address is used for tax calculation for a Cart with <code>Platform</code> <a href="https://docs.commercetools.com/apis/ctp:api:type:TaxMode" rel="nofollow">TaxMode</a>.</p>
2525
* <p>Creating an Order produces the <a href="https://docs.commercetools.com/apis/ctp:api:type:OrderCreatedMessage" rel="nofollow">OrderCreated</a> Message.</p>
2626
* <p>If a server-side problem occurs, indicated by a 500 Internal Server Error HTTP response, the Order creation may still successfully complete after the error is returned. If you receive this error, you should verify the status of the Order by querying a unique identifier supplied during the creation request, such as the Order number.</p>

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyOrdersPostString.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 an Order from a Cart in a <a href="https://docs.commercetools.com/apis/ctp:api:type:Store" rel="nofollow">Store</a>. The Cart must have a shipping address and an active Shipping Method set.</p>
24+
* <p>Creates an Order from a Cart in a <a href="https://docs.commercetools.com/apis/ctp:api:type:Store" rel="nofollow">Store</a>. The Cart must have a shipping address set.</p>
2525
* <p>The shipping address is used for tax calculation for a Cart with <code>Platform</code> <a href="https://docs.commercetools.com/apis/ctp:api:type:TaxMode" rel="nofollow">TaxMode</a>.</p>
2626
* <p>Creating an Order produces the <a href="https://docs.commercetools.com/apis/ctp:api:type:OrderCreatedMessage" rel="nofollow">OrderCreated</a> Message.</p>
2727
* <p>If a server-side problem occurs, indicated by a 500 Internal Server Error HTTP response, the Order creation may still successfully complete after the error is returned. If you receive this error, you should verify the status of the Order by querying a unique identifier supplied during the creation request, such as the Order number.</p>

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInventoryPost.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 an InventoryEntry in the Project.</p>
23+
* <p>Creates an InventoryEntry in the Project. Only one InventoryEntry can be created for a combination of a SKU and a supply channel.</p>
2424
* <p>If quantity limits are provided, existing Line Items that reference a Product Variant with an SKU that matches the Inventory Entry can be affected. For more information, see <span>Quantity limits</span>.</p>
2525
* <p>Produces the <a href="https://docs.commercetools.com/apis/ctp:api:type:InventoryEntryCreatedMessage" rel="nofollow">InventoryEntryCreated</a> Message.</p>
2626
*

0 commit comments

Comments
 (0)