Skip to content

Commit fa7ebe0

Browse files
Merge pull request #756 from commercetools/gen-sdk-updates
Update generated SDKs
2 parents 2d66879 + cc9ba68 commit fa7ebe0

File tree

48 files changed

+429
-223
lines changed

Some content is hidden

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

48 files changed

+429
-223
lines changed

changes.md

+6-38
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,17 @@
11
**Api changes**
22

33
<details>
4-
<summary>Added Type(s)</summary>
4+
<summary>Changed Property(s)</summary>
55

6-
- added type `ApprovalRuleSetCustomFieldAction`
7-
- added type `ApprovalRuleSetCustomTypeAction`
6+
- :warning: changed property `line` of type `GraphQLErrorLocation` from type `integer` to `number`
7+
- :warning: changed property `column` of type `GraphQLErrorLocation` from type `integer` to `number`
88
</details>
99

1010

1111
<details>
12-
<summary>Added Property(s)</summary>
12+
<summary>Added QueryParameter(s)</summary>
1313

14-
- added property `custom` to type `ApprovalRule`
15-
- added property `source` to type `EventBridgeDestination`
16-
</details>
17-
18-
19-
<details>
20-
<summary>Added Enum(s)</summary>
21-
22-
- added enum `approval-rule` to type `CustomFieldReferenceValue`
23-
- added enum `approval-rule` to type `ResourceTypeId`
24-
</details>
25-
26-
27-
<details>
28-
<summary>Added Method(s)</summary>
29-
30-
- added method `apiRoot.withProjectKey().productTailoring().head()`
31-
</details>
32-
33-
**Import changes**
34-
35-
<details>
36-
<summary>Added Type(s)</summary>
37-
38-
- added type `InvalidFieldsUpdateError`
39-
- added type `NewMasterVariantAdditionNotAllowedError`
40-
</details>
41-
42-
**History changes**
43-
44-
<details>
45-
<summary>Required Property(s)</summary>
46-
47-
- changed property `id` of type `ModifiedBy` to be optional
14+
- added query parameter `where` to method `get /{projectKey}/product-selections/key={key}/products`
15+
- added query parameter `where` to method `get /{projectKey}/product-selections/{ID}/products`
4816
</details>
4917

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
import org.apache.commons.lang3.builder.HashCodeBuilder;
1717

1818
/**
19-
* <p>Execute a GraphQL query</p>
19+
* <p>Execute a GraphQL request.</p>
2020
*
2121
* <hr>
2222
* <div class=code-example>

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import org.apache.commons.lang3.builder.HashCodeBuilder;
1818

1919
/**
20-
* <p>Execute a GraphQL query</p>
20+
* <p>Execute a GraphQL request.</p>
2121
*
2222
* <hr>
2323
* <div class=code-example>

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

+83
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,10 @@ public String getID() {
9999
return this.ID;
100100
}
101101

102+
public List<String> getWhere() {
103+
return this.getQueryParam("where");
104+
}
105+
102106
public List<String> getExpand() {
103107
return this.getQueryParam("expand");
104108
}
@@ -127,6 +131,85 @@ public void setID(final String ID) {
127131
this.ID = ID;
128132
}
129133

134+
/**
135+
* set where with the specified value
136+
* @param where value to be set
137+
* @param <TValue> value type
138+
* @return ByProjectKeyProductSelectionsByIDProductsGet
139+
*/
140+
public <TValue> ByProjectKeyProductSelectionsByIDProductsGet withWhere(final TValue where) {
141+
return copy().withQueryParam("where", where);
142+
}
143+
144+
/**
145+
* add additional where query parameter
146+
* @param where value to be added
147+
* @param <TValue> value type
148+
* @return ByProjectKeyProductSelectionsByIDProductsGet
149+
*/
150+
public <TValue> ByProjectKeyProductSelectionsByIDProductsGet addWhere(final TValue where) {
151+
return copy().addQueryParam("where", where);
152+
}
153+
154+
/**
155+
* set where with the specified value
156+
* @param supplier supplier for the value to be set
157+
* @return ByProjectKeyProductSelectionsByIDProductsGet
158+
*/
159+
public ByProjectKeyProductSelectionsByIDProductsGet withWhere(final Supplier<String> supplier) {
160+
return copy().withQueryParam("where", supplier.get());
161+
}
162+
163+
/**
164+
* add additional where query parameter
165+
* @param supplier supplier for the value to be added
166+
* @return ByProjectKeyProductSelectionsByIDProductsGet
167+
*/
168+
public ByProjectKeyProductSelectionsByIDProductsGet addWhere(final Supplier<String> supplier) {
169+
return copy().addQueryParam("where", supplier.get());
170+
}
171+
172+
/**
173+
* set where with the specified value
174+
* @param op builder for the value to be set
175+
* @return ByProjectKeyProductSelectionsByIDProductsGet
176+
*/
177+
public ByProjectKeyProductSelectionsByIDProductsGet withWhere(final Function<StringBuilder, StringBuilder> op) {
178+
return copy().withQueryParam("where", op.apply(new StringBuilder()));
179+
}
180+
181+
/**
182+
* add additional where query parameter
183+
* @param op builder for the value to be added
184+
* @return ByProjectKeyProductSelectionsByIDProductsGet
185+
*/
186+
public ByProjectKeyProductSelectionsByIDProductsGet addWhere(final Function<StringBuilder, StringBuilder> op) {
187+
return copy().addQueryParam("where", op.apply(new StringBuilder()));
188+
}
189+
190+
/**
191+
* set where with the specified values
192+
* @param where values to be set
193+
* @param <TValue> value type
194+
* @return ByProjectKeyProductSelectionsByIDProductsGet
195+
*/
196+
public <TValue> ByProjectKeyProductSelectionsByIDProductsGet withWhere(final Collection<TValue> where) {
197+
return copy().withoutQueryParam("where")
198+
.addQueryParams(
199+
where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList()));
200+
}
201+
202+
/**
203+
* add additional where query parameters
204+
* @param where values to be added
205+
* @param <TValue> value type
206+
* @return ByProjectKeyProductSelectionsByIDProductsGet
207+
*/
208+
public <TValue> ByProjectKeyProductSelectionsByIDProductsGet addWhere(final Collection<TValue> where) {
209+
return copy().addQueryParams(
210+
where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList()));
211+
}
212+
130213
/**
131214
* set expand with the specified value
132215
* @param expand value to be set

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

+83
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,10 @@ public String getKey() {
9999
return this.key;
100100
}
101101

102+
public List<String> getWhere() {
103+
return this.getQueryParam("where");
104+
}
105+
102106
public List<String> getExpand() {
103107
return this.getQueryParam("expand");
104108
}
@@ -127,6 +131,85 @@ public void setKey(final String key) {
127131
this.key = key;
128132
}
129133

134+
/**
135+
* set where with the specified value
136+
* @param where value to be set
137+
* @param <TValue> value type
138+
* @return ByProjectKeyProductSelectionsKeyByKeyProductsGet
139+
*/
140+
public <TValue> ByProjectKeyProductSelectionsKeyByKeyProductsGet withWhere(final TValue where) {
141+
return copy().withQueryParam("where", where);
142+
}
143+
144+
/**
145+
* add additional where query parameter
146+
* @param where value to be added
147+
* @param <TValue> value type
148+
* @return ByProjectKeyProductSelectionsKeyByKeyProductsGet
149+
*/
150+
public <TValue> ByProjectKeyProductSelectionsKeyByKeyProductsGet addWhere(final TValue where) {
151+
return copy().addQueryParam("where", where);
152+
}
153+
154+
/**
155+
* set where with the specified value
156+
* @param supplier supplier for the value to be set
157+
* @return ByProjectKeyProductSelectionsKeyByKeyProductsGet
158+
*/
159+
public ByProjectKeyProductSelectionsKeyByKeyProductsGet withWhere(final Supplier<String> supplier) {
160+
return copy().withQueryParam("where", supplier.get());
161+
}
162+
163+
/**
164+
* add additional where query parameter
165+
* @param supplier supplier for the value to be added
166+
* @return ByProjectKeyProductSelectionsKeyByKeyProductsGet
167+
*/
168+
public ByProjectKeyProductSelectionsKeyByKeyProductsGet addWhere(final Supplier<String> supplier) {
169+
return copy().addQueryParam("where", supplier.get());
170+
}
171+
172+
/**
173+
* set where with the specified value
174+
* @param op builder for the value to be set
175+
* @return ByProjectKeyProductSelectionsKeyByKeyProductsGet
176+
*/
177+
public ByProjectKeyProductSelectionsKeyByKeyProductsGet withWhere(final Function<StringBuilder, StringBuilder> op) {
178+
return copy().withQueryParam("where", op.apply(new StringBuilder()));
179+
}
180+
181+
/**
182+
* add additional where query parameter
183+
* @param op builder for the value to be added
184+
* @return ByProjectKeyProductSelectionsKeyByKeyProductsGet
185+
*/
186+
public ByProjectKeyProductSelectionsKeyByKeyProductsGet addWhere(final Function<StringBuilder, StringBuilder> op) {
187+
return copy().addQueryParam("where", op.apply(new StringBuilder()));
188+
}
189+
190+
/**
191+
* set where with the specified values
192+
* @param where values to be set
193+
* @param <TValue> value type
194+
* @return ByProjectKeyProductSelectionsKeyByKeyProductsGet
195+
*/
196+
public <TValue> ByProjectKeyProductSelectionsKeyByKeyProductsGet withWhere(final Collection<TValue> where) {
197+
return copy().withoutQueryParam("where")
198+
.addQueryParams(
199+
where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList()));
200+
}
201+
202+
/**
203+
* add additional where query parameters
204+
* @param where values to be added
205+
* @param <TValue> value type
206+
* @return ByProjectKeyProductSelectionsKeyByKeyProductsGet
207+
*/
208+
public <TValue> ByProjectKeyProductSelectionsKeyByKeyProductsGet addWhere(final Collection<TValue> where) {
209+
return copy().addQueryParams(
210+
where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList()));
211+
}
212+
130213
/**
131214
* set expand with the specified value
132215
* @param expand value to be set

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLErrorObject.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@
110110
public interface GraphQLErrorObject {
111111

112112
/**
113-
* <p>Error identifier.</p>
113+
* <p>One of the error codes that is listed on the Errors page.</p>
114114
* @return code
115115
*/
116116
@NotNull

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLErrorObjectImpl.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public GraphQLErrorObjectImpl() {
4343
}
4444

4545
/**
46-
* <p>Error identifier.</p>
46+
* <p>One of the error codes that is listed on the Errors page.</p>
4747
*/
4848

4949
public String getCode() {

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLInsufficientScopeErrorImpl.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public GraphQLInsufficientScopeErrorImpl() {
4343
}
4444

4545
/**
46-
* <p>Error identifier.</p>
46+
* <p>One of the error codes that is listed on the Errors page.</p>
4747
*/
4848

4949
public String getCode() {

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLInvalidSubjectErrorImpl.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public GraphQLInvalidSubjectErrorImpl() {
4343
}
4444

4545
/**
46-
* <p>Error identifier.</p>
46+
* <p>One of the error codes that is listed on the Errors page.</p>
4747
*/
4848

4949
public String getCode() {

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLInvalidTokenErrorImpl.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public GraphQLInvalidTokenErrorImpl() {
4343
}
4444

4545
/**
46-
* <p>Error identifier.</p>
46+
* <p>One of the error codes that is listed on the Errors page.</p>
4747
*/
4848

4949
public String getCode() {

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/extension/Extension.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ public interface Extension extends BaseResource, com.commercetools.api.models.Do
118118
public List<ExtensionTrigger> getTriggers();
119119

120120
/**
121-
* <p>Maximum time (in milliseconds) that the Extension can respond within. If no timeout is provided, the default value is used for all types of Extensions. The maximum value is 10000 ms (10 seconds) for <code>payment</code> Extensions and 2000 ms (2 seconds) for all other Extensions.</p>
121+
* <p>Maximum time (in milliseconds) that the Extension can respond within. If no timeout is provided, the default value is used for all types of Extensions, including <code>payment</code> Extensions. The maximum value is 10000 ms (10 seconds) for <code>payment</code> Extensions and 2000 ms (2 seconds) for all other Extensions.</p>
122122
* @return timeoutInMs
123123
*/
124124

@@ -197,7 +197,7 @@ public interface Extension extends BaseResource, com.commercetools.api.models.Do
197197
public void setTriggers(final List<ExtensionTrigger> triggers);
198198

199199
/**
200-
* <p>Maximum time (in milliseconds) that the Extension can respond within. If no timeout is provided, the default value is used for all types of Extensions. The maximum value is 10000 ms (10 seconds) for <code>payment</code> Extensions and 2000 ms (2 seconds) for all other Extensions.</p>
200+
* <p>Maximum time (in milliseconds) that the Extension can respond within. If no timeout is provided, the default value is used for all types of Extensions, including <code>payment</code> Extensions. The maximum value is 10000 ms (10 seconds) for <code>payment</code> Extensions and 2000 ms (2 seconds) for all other Extensions.</p>
201201
* @param timeoutInMs value to be set
202202
*/
203203

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/extension/ExtensionBuilder.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ public ExtensionBuilder setTriggers(
291291
}
292292

293293
/**
294-
* <p>Maximum time (in milliseconds) that the Extension can respond within. If no timeout is provided, the default value is used for all types of Extensions. The maximum value is 10000 ms (10 seconds) for <code>payment</code> Extensions and 2000 ms (2 seconds) for all other Extensions.</p>
294+
* <p>Maximum time (in milliseconds) that the Extension can respond within. If no timeout is provided, the default value is used for all types of Extensions, including <code>payment</code> Extensions. The maximum value is 10000 ms (10 seconds) for <code>payment</code> Extensions and 2000 ms (2 seconds) for all other Extensions.</p>
295295
* @param timeoutInMs value to be set
296296
* @return Builder
297297
*/
@@ -386,7 +386,7 @@ public java.util.List<com.commercetools.api.models.extension.ExtensionTrigger> g
386386
}
387387

388388
/**
389-
* <p>Maximum time (in milliseconds) that the Extension can respond within. If no timeout is provided, the default value is used for all types of Extensions. The maximum value is 10000 ms (10 seconds) for <code>payment</code> Extensions and 2000 ms (2 seconds) for all other Extensions.</p>
389+
* <p>Maximum time (in milliseconds) that the Extension can respond within. If no timeout is provided, the default value is used for all types of Extensions, including <code>payment</code> Extensions. The maximum value is 10000 ms (10 seconds) for <code>payment</code> Extensions and 2000 ms (2 seconds) for all other Extensions.</p>
390390
* @return timeoutInMs
391391
*/
392392

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/extension/ExtensionDraft.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public interface ExtensionDraft
6262
public List<ExtensionTrigger> getTriggers();
6363

6464
/**
65-
* <p>Maximum time (in milliseconds) the Extension can respond within. If no timeout is provided, the default value is used for all types of Extensions. The maximum value is 10000 ms (10 seconds) for <code>payment</code> Extensions and 2000 ms (2 seconds) for all other Extensions.</p>
65+
* <p>Maximum time (in milliseconds) the Extension can respond within. If no timeout is provided, the default value is used for all types of Extensions, including <code>payment</code> Extensions. The maximum value is 10000 ms (10 seconds) for <code>payment</code> Extensions and 2000 ms (2 seconds) for all other Extensions.</p>
6666
* <p>This limit can be increased per Project after we review the performance impact. Please contact the Composable Commerce support team and provide the Region, Project key, and use case.</p>
6767
* @return timeoutInMs
6868
*/
@@ -100,7 +100,7 @@ public interface ExtensionDraft
100100
public void setTriggers(final List<ExtensionTrigger> triggers);
101101

102102
/**
103-
* <p>Maximum time (in milliseconds) the Extension can respond within. If no timeout is provided, the default value is used for all types of Extensions. The maximum value is 10000 ms (10 seconds) for <code>payment</code> Extensions and 2000 ms (2 seconds) for all other Extensions.</p>
103+
* <p>Maximum time (in milliseconds) the Extension can respond within. If no timeout is provided, the default value is used for all types of Extensions, including <code>payment</code> Extensions. The maximum value is 10000 ms (10 seconds) for <code>payment</code> Extensions and 2000 ms (2 seconds) for all other Extensions.</p>
104104
* <p>This limit can be increased per Project after we review the performance impact. Please contact the Composable Commerce support team and provide the Region, Project key, and use case.</p>
105105
* @param timeoutInMs value to be set
106106
*/

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/extension/ExtensionDraftBuilder.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ public ExtensionDraftBuilder setTriggers(
160160
}
161161

162162
/**
163-
* <p>Maximum time (in milliseconds) the Extension can respond within. If no timeout is provided, the default value is used for all types of Extensions. The maximum value is 10000 ms (10 seconds) for <code>payment</code> Extensions and 2000 ms (2 seconds) for all other Extensions.</p>
163+
* <p>Maximum time (in milliseconds) the Extension can respond within. If no timeout is provided, the default value is used for all types of Extensions, including <code>payment</code> Extensions. The maximum value is 10000 ms (10 seconds) for <code>payment</code> Extensions and 2000 ms (2 seconds) for all other Extensions.</p>
164164
* <p>This limit can be increased per Project after we review the performance impact. Please contact the Composable Commerce support team and provide the Region, Project key, and use case.</p>
165165
* @param timeoutInMs value to be set
166166
* @return Builder
@@ -200,7 +200,7 @@ public java.util.List<com.commercetools.api.models.extension.ExtensionTrigger> g
200200
}
201201

202202
/**
203-
* <p>Maximum time (in milliseconds) the Extension can respond within. If no timeout is provided, the default value is used for all types of Extensions. The maximum value is 10000 ms (10 seconds) for <code>payment</code> Extensions and 2000 ms (2 seconds) for all other Extensions.</p>
203+
* <p>Maximum time (in milliseconds) the Extension can respond within. If no timeout is provided, the default value is used for all types of Extensions, including <code>payment</code> Extensions. The maximum value is 10000 ms (10 seconds) for <code>payment</code> Extensions and 2000 ms (2 seconds) for all other Extensions.</p>
204204
* <p>This limit can be increased per Project after we review the performance impact. Please contact the Composable Commerce support team and provide the Region, Project key, and use case.</p>
205205
* @return timeoutInMs
206206
*/

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/extension/ExtensionDraftImpl.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public java.util.List<com.commercetools.api.models.extension.ExtensionTrigger> g
7575
}
7676

7777
/**
78-
* <p>Maximum time (in milliseconds) the Extension can respond within. If no timeout is provided, the default value is used for all types of Extensions. The maximum value is 10000 ms (10 seconds) for <code>payment</code> Extensions and 2000 ms (2 seconds) for all other Extensions.</p>
78+
* <p>Maximum time (in milliseconds) the Extension can respond within. If no timeout is provided, the default value is used for all types of Extensions, including <code>payment</code> Extensions. The maximum value is 10000 ms (10 seconds) for <code>payment</code> Extensions and 2000 ms (2 seconds) for all other Extensions.</p>
7979
* <p>This limit can be increased per Project after we review the performance impact. Please contact the Composable Commerce support team and provide the Region, Project key, and use case.</p>
8080
*/
8181

0 commit comments

Comments
 (0)