Skip to content

Commit 8904ae3

Browse files
committed
build(codegen): updating SDK
1 parent 71c4956 commit 8904ae3

90 files changed

Lines changed: 469 additions & 174 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: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,38 @@
11
**Api changes**
22

3+
<details>
4+
<summary>Added Property(s)</summary>
5+
6+
- added property `stores` to type `DiscountCode`
7+
- added property `warnings` to type `Variant`
8+
- added property `categories` to type `VariantProjection`
9+
- added property `categoryOrderHints` to type `VariantProjection`
10+
</details>
11+
12+
13+
<details>
14+
<summary>Added Enum(s)</summary>
15+
16+
- added enum `variant` to type `AttributeReferenceTypeId`
17+
- added enum `variant` to type `CustomFieldReferenceValue`
18+
</details>
19+
20+
21+
<details>
22+
<summary>Added Resource(s)</summary>
23+
24+
- added resource `/{projectKey}/mcp-servers`
25+
- added resource `/{projectKey}/variants/{ID}/images`
26+
- added resource `/{projectKey}/in-store/key={storeKey}/discount-codes`
27+
- added resource `/{projectKey}/in-store/key={storeKey}/discount-codes/key={key}`
28+
- added resource `/{projectKey}/in-store/key={storeKey}/discount-codes/{ID}`
29+
- added resource `/{projectKey}/mcp-servers/types`
30+
- added resource `/{projectKey}/mcp-servers/key={key}`
31+
- added resource `/{projectKey}/mcp-servers/{ID}`
32+
- added resource `/{projectKey}/mcp-servers/types/{mcpServerType}`
33+
</details>
34+
35+
336
<details>
437
<summary>Added Method(s)</summary>
538

@@ -23,16 +56,6 @@
2356
</details>
2457

2558

26-
<details>
27-
<summary>Added Property(s)</summary>
28-
29-
- added property `stores` to type `DiscountCode`
30-
- added property `warnings` to type `Variant`
31-
- added property `categories` to type `VariantProjection`
32-
- added property `categoryOrderHints` to type `VariantProjection`
33-
</details>
34-
35-
3659
<details>
3760
<summary>Added Type(s)</summary>
3861

@@ -77,43 +100,20 @@
77100
- added type `VariantSetImageLabelAction`
78101
</details>
79102

103+
**History changes**
80104

81105
<details>
82-
<summary>Added Enum(s)</summary>
83-
84-
- added enum `variant` to type `AttributeReferenceTypeId`
85-
- added enum `variant` to type `CustomFieldReferenceValue`
86-
</details>
87-
88-
89-
<details>
90-
<summary>Added Resource(s)</summary>
106+
<summary>Added QueryParameter(s)</summary>
91107

92-
- added resource `/{projectKey}/mcp-servers`
93-
- added resource `/{projectKey}/variants/{ID}/images`
94-
- added resource `/{projectKey}/in-store/key={storeKey}/discount-codes`
95-
- added resource `/{projectKey}/in-store/key={storeKey}/discount-codes/key={key}`
96-
- added resource `/{projectKey}/in-store/key={storeKey}/discount-codes/{ID}`
97-
- added resource `/{projectKey}/mcp-servers/types`
98-
- added resource `/{projectKey}/mcp-servers/key={key}`
99-
- added resource `/{projectKey}/mcp-servers/{ID}`
100-
- added resource `/{projectKey}/mcp-servers/types/{mcpServerType}`
108+
- added query parameter `withTotal` to method `get /{projectKey}`
109+
- added query parameter `withTotal` to method `get /{projectKey}/{resourceType}`
110+
- added query parameter `withTotal` to method `get /{projectKey}/{resourceType}/{ID}`
101111
</details>
102112

103-
**History changes**
104113

105114
<details>
106115
<summary>Required Property(s)</summary>
107116

108117
- changed property `total` of type `RecordPagedQueryResponse` to be optional
109118
</details>
110119

111-
112-
<details>
113-
<summary>Added QueryParameter(s)</summary>
114-
115-
- added query parameter `withTotal` to method `get /{projectKey}`
116-
- added query parameter `withTotal` to method `get /{projectKey}/{resourceType}`
117-
- added query parameter `withTotal` to method `get /{projectKey}/{resourceType}/{ID}`
118-
</details>
119-

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import tools.jackson.core.type.TypeReference;
2121

2222
/**
23-
* <p>Returns a <a href="https://docs.commercetools.com/apis/ctp:api:type:ReferenceExistsError" rel="nofollow">ReferenceExists</a> error if other resources reference the Channel to be deleted.</p>
23+
* <p>If the Channel is referenced by a resource, a <a href="https://docs.commercetools.com/apis/ctp:api:type:ReferenceExistsError" rel="nofollow">ReferenceExists</a> error is returned.</p>
2424
*
2525
* <hr>
2626
* <div class=code-example>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import tools.jackson.core.type.TypeReference;
2121

2222
/**
23-
* <p>Returns a <a href="https://docs.commercetools.com/apis/ctp:api:type:ReferenceExistsError" rel="nofollow">ReferenceExists</a> error if other resources reference the Channel to be deleted.</p>
23+
* <p>If the Channel is referenced by a resource, a <a href="https://docs.commercetools.com/apis/ctp:api:type:ReferenceExistsError" rel="nofollow">ReferenceExists</a> error is returned.</p>
2424
*
2525
* <hr>
2626
* <div class=code-example>

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
import tools.jackson.core.type.TypeReference;
2121

2222
/**
23-
*
23+
* <p>If the Store is referenced by a resource, a <a href="https://docs.commercetools.com/apis/ctp:api:type:ReferenceExistsError" rel="nofollow">ReferenceExists</a> error is returned.</p>
24+
* <p>To avoid dependency conflicts, first delete all active and anonymous Carts that reference the Store, then delete all Orders.</p>
2425
*
2526
* <hr>
2627
* <div class=code-example>

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
import tools.jackson.core.type.TypeReference;
2121

2222
/**
23-
*
23+
* <p>If the Store is referenced by a resource, a <a href="https://docs.commercetools.com/apis/ctp:api:type:ReferenceExistsError" rel="nofollow">ReferenceExists</a> error is returned.</p>
24+
* <p>To avoid dependency conflicts, first delete all active and anonymous Carts that reference the Store, then delete all Orders.</p>
2425
*
2526
* <hr>
2627
* <div class=code-example>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import tools.jackson.core.type.TypeReference;
2121

2222
/**
23-
*
23+
* <p>If the TaxCategory is referenced by a resource, a <a href="https://docs.commercetools.com/apis/ctp:api:type:ReferenceExistsError" rel="nofollow">ReferenceExists</a> error is returned.</p>
2424
*
2525
* <hr>
2626
* <div class=code-example>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import tools.jackson.core.type.TypeReference;
2121

2222
/**
23-
*
23+
* <p>If the TaxCategory is referenced by a resource, a <a href="https://docs.commercetools.com/apis/ctp:api:type:ReferenceExistsError" rel="nofollow">ReferenceExists</a> error is returned.</p>
2424
*
2525
* <hr>
2626
* <div class=code-example>

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/channel/ChannelAddRolesAction.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ public interface ChannelAddRolesAction extends ChannelUpdateAction {
3939

4040
/**
4141
* <p>Value to append to the array.</p>
42+
* <p>If the specified roles are already present, an <a href="https://docs.commercetools.com/apis/ctp:api:type:InvalidOperationError" rel="nofollow">InvalidOperation</a> error is returned.</p>
4243
* @return roles
4344
*/
4445
@NotNull
@@ -47,6 +48,7 @@ public interface ChannelAddRolesAction extends ChannelUpdateAction {
4748

4849
/**
4950
* <p>Value to append to the array.</p>
51+
* <p>If the specified roles are already present, an <a href="https://docs.commercetools.com/apis/ctp:api:type:InvalidOperationError" rel="nofollow">InvalidOperation</a> error is returned.</p>
5052
* @param roles values to be set
5153
*/
5254

@@ -55,6 +57,7 @@ public interface ChannelAddRolesAction extends ChannelUpdateAction {
5557

5658
/**
5759
* <p>Value to append to the array.</p>
60+
* <p>If the specified roles are already present, an <a href="https://docs.commercetools.com/apis/ctp:api:type:InvalidOperationError" rel="nofollow">InvalidOperation</a> error is returned.</p>
5861
* @param roles values to be set
5962
*/
6063

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/channel/ChannelAddRolesActionBuilder.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ public class ChannelAddRolesActionBuilder implements Builder<ChannelAddRolesActi
2525

2626
/**
2727
* <p>Value to append to the array.</p>
28+
* <p>If the specified roles are already present, an <a href="https://docs.commercetools.com/apis/ctp:api:type:InvalidOperationError" rel="nofollow">InvalidOperation</a> error is returned.</p>
2829
* @param roles value to be set
2930
* @return Builder
3031
*/
@@ -36,6 +37,7 @@ public ChannelAddRolesActionBuilder roles(final com.commercetools.api.models.cha
3637

3738
/**
3839
* <p>Value to append to the array.</p>
40+
* <p>If the specified roles are already present, an <a href="https://docs.commercetools.com/apis/ctp:api:type:InvalidOperationError" rel="nofollow">InvalidOperation</a> error is returned.</p>
3941
* @param roles value to be set
4042
* @return Builder
4143
*/
@@ -48,6 +50,7 @@ public ChannelAddRolesActionBuilder roles(
4850

4951
/**
5052
* <p>Value to append to the array.</p>
53+
* <p>If the specified roles are already present, an <a href="https://docs.commercetools.com/apis/ctp:api:type:InvalidOperationError" rel="nofollow">InvalidOperation</a> error is returned.</p>
5154
* @param roles value to be set
5255
* @return Builder
5356
*/
@@ -62,6 +65,7 @@ public ChannelAddRolesActionBuilder plusRoles(final com.commercetools.api.models
6265

6366
/**
6467
* <p>Value to append to the array.</p>
68+
* <p>If the specified roles are already present, an <a href="https://docs.commercetools.com/apis/ctp:api:type:InvalidOperationError" rel="nofollow">InvalidOperation</a> error is returned.</p>
6569
* @return roles
6670
*/
6771

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/channel/ChannelAddRolesActionImpl.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ public String getAction() {
5454

5555
/**
5656
* <p>Value to append to the array.</p>
57+
* <p>If the specified roles are already present, an <a href="https://docs.commercetools.com/apis/ctp:api:type:InvalidOperationError" rel="nofollow">InvalidOperation</a> error is returned.</p>
5758
*/
5859

5960
public java.util.List<com.commercetools.api.models.channel.ChannelRoleEnum> getRoles() {

0 commit comments

Comments
 (0)