Skip to content

Commit dfeaa49

Browse files
author
Auto Mation
committed
TASK: Updating SDK
1 parent cc1bd58 commit dfeaa49

File tree

4 files changed

+31
-9
lines changed

4 files changed

+31
-9
lines changed

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

Lines changed: 28 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,13 @@
1313
import io.vrap.rmf.base.client.utils.Generated;
1414

1515
/**
16-
* <p>Get CustomObject by container</p>
16+
* <p>Get CustomObjectPagedQueryResponse by container</p>
1717
*/
1818
@Generated(value = "io.vrap.rmf.codegen.rendring.CoreCodeGenerator", comments = "https://github.com/vrapio/rmf-codegen")
1919
public class ByProjectKeyCustomObjectsByContainerGet extends
20-
ApiMethod<ByProjectKeyCustomObjectsByContainerGet, com.commercetools.api.models.custom_object.CustomObject>
21-
implements com.commercetools.api.client.ExpandableTrait<ByProjectKeyCustomObjectsByContainerGet>,
20+
ApiMethod<ByProjectKeyCustomObjectsByContainerGet, com.commercetools.api.models.custom_object.CustomObjectPagedQueryResponse>
21+
implements com.commercetools.api.client.QueryTrait<ByProjectKeyCustomObjectsByContainerGet>,
22+
com.commercetools.api.client.ExpandableTrait<ByProjectKeyCustomObjectsByContainerGet>,
2223
com.commercetools.api.client.ErrorableTrait<ByProjectKeyCustomObjectsByContainerGet>,
2324
com.commercetools.api.client.DeprecatableTrait<ByProjectKeyCustomObjectsByContainerGet> {
2425

@@ -50,14 +51,15 @@ public ApiHttpRequest createHttpRequest() {
5051
}
5152

5253
@Override
53-
public ApiHttpResponse<com.commercetools.api.models.custom_object.CustomObject> executeBlocking(Duration timeout) {
54+
public ApiHttpResponse<com.commercetools.api.models.custom_object.CustomObjectPagedQueryResponse> executeBlocking(
55+
Duration timeout) {
5456
return blockingWait(execute(), timeout);
5557
}
5658

5759
@Override
58-
public CompletableFuture<ApiHttpResponse<com.commercetools.api.models.custom_object.CustomObject>> execute() {
60+
public CompletableFuture<ApiHttpResponse<com.commercetools.api.models.custom_object.CustomObjectPagedQueryResponse>> execute() {
5961
return apiHttpClient().execute(this.createHttpRequest(),
60-
com.commercetools.api.models.custom_object.CustomObject.class);
62+
com.commercetools.api.models.custom_object.CustomObjectPagedQueryResponse.class);
6163
}
6264

6365
public String getProjectKey() {
@@ -68,6 +70,10 @@ public String getContainer() {
6870
return this.container;
6971
}
7072

73+
public List<String> getWhere() {
74+
return this.getQueryParam("where");
75+
}
76+
7177
public List<String> getExpand() {
7278
return this.getQueryParam("expand");
7379
}
@@ -80,6 +86,14 @@ public void setContainer(final String container) {
8086
this.container = container;
8187
}
8288

89+
public ByProjectKeyCustomObjectsByContainerGet withWhere(final String where) {
90+
return copy().withQueryParam("where", where);
91+
}
92+
93+
public ByProjectKeyCustomObjectsByContainerGet addWhere(final String where) {
94+
return copy().addQueryParam("where", where);
95+
}
96+
8397
public ByProjectKeyCustomObjectsByContainerGet withExpand(final String expand) {
8498
return copy().withQueryParam("expand", expand);
8599
}
@@ -88,6 +102,14 @@ public ByProjectKeyCustomObjectsByContainerGet addExpand(final String expand) {
88102
return copy().addQueryParam("expand", expand);
89103
}
90104

105+
public ByProjectKeyCustomObjectsByContainerGet withPredicateVar(final String varName, final String predicateVar) {
106+
return copy().withQueryParam(String.format("var.%s", varName), predicateVar);
107+
}
108+
109+
public ByProjectKeyCustomObjectsByContainerGet addPredicateVar(final String varName, final String predicateVar) {
110+
return copy().addQueryParam(String.format("var.%s", varName), predicateVar);
111+
}
112+
91113
@Override
92114
protected ByProjectKeyCustomObjectsByContainerGet copy() {
93115
return new ByProjectKeyCustomObjectsByContainerGet(this);
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
hash=404d79793f0187fe18ae31a66dcd585a952aab9a
1+
hash=6b57a31412a6752d45e4acae4fcd983d49f4d8e3
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
hash=404d79793f0187fe18ae31a66dcd585a952aab9a
1+
hash=6b57a31412a6752d45e4acae4fcd983d49f4d8e3
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
hash=404d79793f0187fe18ae31a66dcd585a952aab9a
1+
hash=6b57a31412a6752d45e4acae4fcd983d49f4d8e3

0 commit comments

Comments
 (0)