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 Apr 9, 2024
1 parent 3cc1320 commit 9992fa6
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 127 deletions.
7 changes: 7 additions & 0 deletions changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@
- added type `AttributionSource`
</details>


<details>
<summary>Removed Method(s)</summary>

- :warning: removed method `apiRoot.withProjectKey().products().search().head()`
</details>

**Import changes**

<details>
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,4 @@ public ByProjectKeyProductsSearchPost post(
return post(op.apply(com.commercetools.api.models.product_search.ProductSearchRequestBuilder.of()).build());
}

public ByProjectKeyProductsSearchHead head() {
return new ByProjectKeyProductsSearchHead(apiHttpClient, projectKey);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -63,23 +63,18 @@ public void executeClientException(HttpRequestCommand<?> httpRequest) throws Exc

@DataProvider
public static Object[][] requestWithMethodParameters() {
return new Object[][] {
new Object[] { apiRoot.withProjectKey("test_projectKey")
.products()
.search()
.post(com.commercetools.api.models.product_search.ProductSearchRequest.of())
.createHttpRequest(), "post", "test_projectKey/products/search", },
new Object[] { apiRoot.withProjectKey("test_projectKey").products().search().head().createHttpRequest(),
"head", "test_projectKey/products/search", } };
return new Object[][] { new Object[] { apiRoot.withProjectKey("test_projectKey")
.products()
.search()
.post(com.commercetools.api.models.product_search.ProductSearchRequest.of())
.createHttpRequest(), "post", "test_projectKey/products/search", } };
}

@DataProvider
public static Object[][] executeMethodParameters() {
return new Object[][] {
new Object[] { apiRoot.withProjectKey("test_projectKey")
.products()
.search()
.post(com.commercetools.api.models.product_search.ProductSearchRequest.of()), },
new Object[] { apiRoot.withProjectKey("test_projectKey").products().search().head(), } };
return new Object[][] { new Object[] { apiRoot.withProjectKey("test_projectKey")
.products()
.search()
.post(com.commercetools.api.models.product_search.ProductSearchRequest.of()), } };
}
}
1 change: 1 addition & 0 deletions references.txt
Original file line number Diff line number Diff line change
Expand Up @@ -219,3 +219,4 @@ cec3e86fa69d9a68a2add55c132e2ffff406a294
a9d748dbcbfc8d2a1cd8d0f8c4e48807e502e79e
970259cbb06d9d9158370b3f9ed69f4ab63d88a3
7a5a2679c591822f7c7030af99fb7888ba6bea0d
22d37e3825d895d44abb4ba0b5e4b8785f7f0968

0 comments on commit 9992fa6

Please sign in to comment.