Skip to content

Commit 0a70c88

Browse files
committed
build(codegen): updating SDK
1 parent 53199d2 commit 0a70c88

File tree

10 files changed

+52
-327
lines changed

10 files changed

+52
-327
lines changed

changes.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,9 @@
174174
- :warning: removed query parameter `localeProjection` from method `get /{projectKey}/products/{ID}`
175175
- :warning: removed query parameter `localeProjection` from method `post /{projectKey}/products/{ID}`
176176
- :warning: removed query parameter `localeProjection` from method `delete /{projectKey}/products/{ID}`
177+
- :warning: removed query parameter `sort` from method `get /{projectKey}/product-projections/suggest`
178+
- :warning: removed query parameter `offset` from method `get /{projectKey}/product-projections/suggest`
179+
- :warning: removed query parameter `withTotal` from method `get /{projectKey}/product-projections/suggest`
177180
</details>
178181

179182

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

Lines changed: 33 additions & 284 deletions
Large diffs are not rendered by default.

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/SearchKeyword.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
public interface SearchKeyword {
3434

3535
/**
36-
* <p>Text to return in the result of a suggest query.</p>
36+
* <p>Text to return in the SuggestionResult.</p>
3737
* @return text
3838
*/
3939
@NotNull
@@ -49,7 +49,7 @@ public interface SearchKeyword {
4949
public SuggestTokenizer getSuggestTokenizer();
5050

5151
/**
52-
* <p>Text to return in the result of a suggest query.</p>
52+
* <p>Text to return in the SuggestionResult.</p>
5353
* @param text value to be set
5454
*/
5555

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/SearchKeywordBuilder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public class SearchKeywordBuilder implements Builder<SearchKeyword> {
3030
private com.commercetools.api.models.product.SuggestTokenizer suggestTokenizer;
3131

3232
/**
33-
* <p>Text to return in the result of a suggest query.</p>
33+
* <p>Text to return in the SuggestionResult.</p>
3434
* @param text value to be set
3535
* @return Builder
3636
*/
@@ -66,7 +66,7 @@ public SearchKeywordBuilder suggestTokenizer(
6666
}
6767

6868
/**
69-
* <p>Text to return in the result of a suggest query.</p>
69+
* <p>Text to return in the SuggestionResult.</p>
7070
* @return text
7171
*/
7272

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/SearchKeywordImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public SearchKeywordImpl() {
4343
}
4444

4545
/**
46-
* <p>Text to return in the result of a suggest query.</p>
46+
* <p>Text to return in the SuggestionResult.</p>
4747
*/
4848

4949
public String getText() {

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/SuggestionResult.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
public interface SuggestionResult {
3434

3535
/**
36-
*
36+
* <p>The result may contain multiple Suggestions identified by their Locale. See Suggestions for two languages.</p>
3737
* @return map of the pattern property values
3838
*/
3939
@NotNull
@@ -42,7 +42,7 @@ public interface SuggestionResult {
4242
public Map<String, List<Suggestion>> values();
4343

4444
/**
45-
* set pattern property
45+
* <p>The result may contain multiple Suggestions identified by their Locale. See Suggestions for two languages.</p>
4646
* @param key property name
4747
* @param value property value
4848
*/

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/SuggestionResultBuilder.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public class SuggestionResultBuilder implements Builder<SuggestionResult> {
2424
private Map<String, java.util.List<com.commercetools.api.models.product.Suggestion>> values = new HashMap<>();
2525

2626
/**
27-
* assign pattern properties to the builder
27+
* <p>The result may contain multiple Suggestions identified by their Locale. See Suggestions for two languages.</p>
2828
* @param values properties to be set
2929
* @return Builder
3030
*/
@@ -36,7 +36,7 @@ public SuggestionResultBuilder values(
3636
}
3737

3838
/**
39-
* assign a pattern property to the builder
39+
* <p>The result may contain multiple Suggestions identified by their Locale. See Suggestions for two languages.</p>
4040
* @param key property name
4141
* @param value property value
4242
* @return Builder
@@ -52,7 +52,7 @@ public SuggestionResultBuilder addValue(final String key,
5252
}
5353

5454
/**
55-
* values of pattern properties
55+
* <p>The result may contain multiple Suggestions identified by their Locale. See Suggestions for two languages.</p>
5656
* @return pattern properties
5757
*/
5858

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/SuggestionResultImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public SuggestionResultImpl() {
4040
}
4141

4242
/**
43-
*
43+
* <p>The result may contain multiple Suggestions identified by their Locale. See Suggestions for two languages.</p>
4444
*/
4545

4646
public Map<String, java.util.List<com.commercetools.api.models.product.Suggestion>> values() {

commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyProductProjectionsSuggestTest.java

Lines changed: 4 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,6 @@ public void executeClientException(HttpRequestCommand<?> httpRequest) throws Exc
6464
@DataProvider
6565
public static Object[][] requestWithMethodParameters() {
6666
return new Object[][] {
67-
new Object[] {
68-
apiRoot.withProjectKey("test_projectKey")
69-
.productProjections()
70-
.suggest()
71-
.get()
72-
.withFuzzy(true)
73-
.createHttpRequest(),
74-
"get", "test_projectKey/product-projections/suggest?fuzzy=true", },
7567
new Object[] {
7668
apiRoot.withProjectKey("test_projectKey")
7769
.productProjections()
@@ -81,32 +73,20 @@ public static Object[][] requestWithMethodParameters() {
8173
.createHttpRequest(),
8274
"get",
8375
"test_projectKey/product-projections/suggest?searchKeywords.locale=searchKeywords.locale", },
84-
new Object[] { apiRoot.withProjectKey("test_projectKey")
85-
.productProjections()
86-
.suggest()
87-
.get()
88-
.withSort("sort")
89-
.createHttpRequest(), "get", "test_projectKey/product-projections/suggest?sort=sort", },
9076
new Object[] { apiRoot.withProjectKey("test_projectKey")
9177
.productProjections()
9278
.suggest()
9379
.get()
9480
.withLimit(7)
9581
.createHttpRequest(), "get", "test_projectKey/product-projections/suggest?limit=7", },
96-
new Object[] { apiRoot.withProjectKey("test_projectKey")
97-
.productProjections()
98-
.suggest()
99-
.get()
100-
.withOffset(3)
101-
.createHttpRequest(), "get", "test_projectKey/product-projections/suggest?offset=3", },
10282
new Object[] {
10383
apiRoot.withProjectKey("test_projectKey")
10484
.productProjections()
10585
.suggest()
10686
.get()
107-
.withWithTotal(true)
87+
.withFuzzy(true)
10888
.createHttpRequest(),
109-
"get", "test_projectKey/product-projections/suggest?withTotal=true", },
89+
"get", "test_projectKey/product-projections/suggest?fuzzy=true", },
11090
new Object[] {
11191
apiRoot.withProjectKey("test_projectKey")
11292
.productProjections()
@@ -124,27 +104,19 @@ public static Object[][] requestWithMethodParameters() {
124104

125105
@DataProvider
126106
public static Object[][] executeMethodParameters() {
127-
return new Object[][] { new Object[] {
128-
apiRoot.withProjectKey("test_projectKey").productProjections().suggest().get().withFuzzy(true), },
107+
return new Object[][] {
129108
new Object[] { apiRoot.withProjectKey("test_projectKey")
130109
.productProjections()
131110
.suggest()
132111
.get()
133112
.withSearchKeywords("locale", "searchKeywords.locale"), },
134-
new Object[] { apiRoot.withProjectKey("test_projectKey")
135-
.productProjections()
136-
.suggest()
137-
.get()
138-
.withSort("sort"), },
139113
new Object[] {
140114
apiRoot.withProjectKey("test_projectKey").productProjections().suggest().get().withLimit(7), },
141-
new Object[] {
142-
apiRoot.withProjectKey("test_projectKey").productProjections().suggest().get().withOffset(3), },
143115
new Object[] { apiRoot.withProjectKey("test_projectKey")
144116
.productProjections()
145117
.suggest()
146118
.get()
147-
.withWithTotal(true), },
119+
.withFuzzy(true), },
148120
new Object[] { apiRoot.withProjectKey("test_projectKey")
149121
.productProjections()
150122
.suggest()

references.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,3 +276,4 @@ d41fc6a548bdf9a82b6e33c4334c99cda6f4e8d9
276276
d74a87f613d9efd31448c3b11f505f7bf6bf57c0
277277
369fbe55d487e70a626a9c12a2cf3cfe891b5bf0
278278
4c21b32d2f4bd2b61a9ee586c736672ad4b4ff0b
279+
292d2e67ff13394a226e7c259cbaf086bb0119ec

0 commit comments

Comments
 (0)