Skip to content

Commit

Permalink
build(codegen): updating SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
ct-sdks[bot] committed Jul 15, 2024
1 parent 53199d2 commit 0a70c88
Show file tree
Hide file tree
Showing 10 changed files with 52 additions and 327 deletions.
3 changes: 3 additions & 0 deletions changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,9 @@
- :warning: removed query parameter `localeProjection` from method `get /{projectKey}/products/{ID}`
- :warning: removed query parameter `localeProjection` from method `post /{projectKey}/products/{ID}`
- :warning: removed query parameter `localeProjection` from method `delete /{projectKey}/products/{ID}`
- :warning: removed query parameter `sort` from method `get /{projectKey}/product-projections/suggest`
- :warning: removed query parameter `offset` from method `get /{projectKey}/product-projections/suggest`
- :warning: removed query parameter `withTotal` from method `get /{projectKey}/product-projections/suggest`
</details>


Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
public interface SearchKeyword {

/**
* <p>Text to return in the result of a suggest query.</p>
* <p>Text to return in the SuggestionResult.</p>
* @return text
*/
@NotNull
Expand All @@ -49,7 +49,7 @@ public interface SearchKeyword {
public SuggestTokenizer getSuggestTokenizer();

/**
* <p>Text to return in the result of a suggest query.</p>
* <p>Text to return in the SuggestionResult.</p>
* @param text value to be set
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public class SearchKeywordBuilder implements Builder<SearchKeyword> {
private com.commercetools.api.models.product.SuggestTokenizer suggestTokenizer;

/**
* <p>Text to return in the result of a suggest query.</p>
* <p>Text to return in the SuggestionResult.</p>
* @param text value to be set
* @return Builder
*/
Expand Down Expand Up @@ -66,7 +66,7 @@ public SearchKeywordBuilder suggestTokenizer(
}

/**
* <p>Text to return in the result of a suggest query.</p>
* <p>Text to return in the SuggestionResult.</p>
* @return text
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public SearchKeywordImpl() {
}

/**
* <p>Text to return in the result of a suggest query.</p>
* <p>Text to return in the SuggestionResult.</p>
*/

public String getText() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
public interface SuggestionResult {

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

/**
* set pattern property
* <p>The result may contain multiple Suggestions identified by their Locale. See Suggestions for two languages.</p>
* @param key property name
* @param value property value
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public class SuggestionResultBuilder implements Builder<SuggestionResult> {
private Map<String, java.util.List<com.commercetools.api.models.product.Suggestion>> values = new HashMap<>();

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

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

/**
* values of pattern properties
* <p>The result may contain multiple Suggestions identified by their Locale. See Suggestions for two languages.</p>
* @return pattern properties
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public SuggestionResultImpl() {
}

/**
*
* <p>The result may contain multiple Suggestions identified by their Locale. See Suggestions for two languages.</p>
*/

public Map<String, java.util.List<com.commercetools.api.models.product.Suggestion>> values() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,6 @@ public void executeClientException(HttpRequestCommand<?> httpRequest) throws Exc
@DataProvider
public static Object[][] requestWithMethodParameters() {
return new Object[][] {
new Object[] {
apiRoot.withProjectKey("test_projectKey")
.productProjections()
.suggest()
.get()
.withFuzzy(true)
.createHttpRequest(),
"get", "test_projectKey/product-projections/suggest?fuzzy=true", },
new Object[] {
apiRoot.withProjectKey("test_projectKey")
.productProjections()
Expand All @@ -81,32 +73,20 @@ public static Object[][] requestWithMethodParameters() {
.createHttpRequest(),
"get",
"test_projectKey/product-projections/suggest?searchKeywords.locale=searchKeywords.locale", },
new Object[] { apiRoot.withProjectKey("test_projectKey")
.productProjections()
.suggest()
.get()
.withSort("sort")
.createHttpRequest(), "get", "test_projectKey/product-projections/suggest?sort=sort", },
new Object[] { apiRoot.withProjectKey("test_projectKey")
.productProjections()
.suggest()
.get()
.withLimit(7)
.createHttpRequest(), "get", "test_projectKey/product-projections/suggest?limit=7", },
new Object[] { apiRoot.withProjectKey("test_projectKey")
.productProjections()
.suggest()
.get()
.withOffset(3)
.createHttpRequest(), "get", "test_projectKey/product-projections/suggest?offset=3", },
new Object[] {
apiRoot.withProjectKey("test_projectKey")
.productProjections()
.suggest()
.get()
.withWithTotal(true)
.withFuzzy(true)
.createHttpRequest(),
"get", "test_projectKey/product-projections/suggest?withTotal=true", },
"get", "test_projectKey/product-projections/suggest?fuzzy=true", },
new Object[] {
apiRoot.withProjectKey("test_projectKey")
.productProjections()
Expand All @@ -124,27 +104,19 @@ public static Object[][] requestWithMethodParameters() {

@DataProvider
public static Object[][] executeMethodParameters() {
return new Object[][] { new Object[] {
apiRoot.withProjectKey("test_projectKey").productProjections().suggest().get().withFuzzy(true), },
return new Object[][] {
new Object[] { apiRoot.withProjectKey("test_projectKey")
.productProjections()
.suggest()
.get()
.withSearchKeywords("locale", "searchKeywords.locale"), },
new Object[] { apiRoot.withProjectKey("test_projectKey")
.productProjections()
.suggest()
.get()
.withSort("sort"), },
new Object[] {
apiRoot.withProjectKey("test_projectKey").productProjections().suggest().get().withLimit(7), },
new Object[] {
apiRoot.withProjectKey("test_projectKey").productProjections().suggest().get().withOffset(3), },
new Object[] { apiRoot.withProjectKey("test_projectKey")
.productProjections()
.suggest()
.get()
.withWithTotal(true), },
.withFuzzy(true), },
new Object[] { apiRoot.withProjectKey("test_projectKey")
.productProjections()
.suggest()
Expand Down
1 change: 1 addition & 0 deletions references.txt
Original file line number Diff line number Diff line change
Expand Up @@ -276,3 +276,4 @@ d41fc6a548bdf9a82b6e33c4334c99cda6f4e8d9
d74a87f613d9efd31448c3b11f505f7bf6bf57c0
369fbe55d487e70a626a9c12a2cf3cfe891b5bf0
4c21b32d2f4bd2b61a9ee586c736672ad4b4ff0b
292d2e67ff13394a226e7c259cbaf086bb0119ec

0 comments on commit 0a70c88

Please sign in to comment.