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

Lines changed: 6 additions & 38 deletions
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

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>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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 83 additions & 0 deletions
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

Lines changed: 83 additions & 0 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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() {

0 commit comments

Comments
 (0)