Skip to content

Commit 8e79739

Browse files
committed
build(codegen): updating SDK
1 parent e0d51ae commit 8e79739

File tree

56 files changed

+4821
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+4821
-0
lines changed

changes.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
<details>
2222
<summary>Added Resource(s)</summary>
2323

24+
- added resource `/{projectKey}/customers/search`
25+
- added resource `/{projectKey}/customers/search/indexing-status`
2426
- added resource `/{projectKey}/in-store/key={storeKey}/quote-requests`
2527
- added resource `/{projectKey}/in-store/key={storeKey}/staged-quotes`
2628
- added resource `/{projectKey}/in-store/key={storeKey}/quotes`
@@ -54,6 +56,9 @@
5456
<details>
5557
<summary>Added Method(s)</summary>
5658

59+
- added method `apiRoot.withProjectKey().customers().search().post()`
60+
- added method `apiRoot.withProjectKey().customers().search().head()`
61+
- added method `apiRoot.withProjectKey().customers().searchIndexingStatus().get()`
5762
- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().quoteRequests().get()`
5863
- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().quoteRequests().head()`
5964
- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().quoteRequests().post()`
@@ -96,6 +101,14 @@
96101
<details>
97102
<summary>Added Type(s)</summary>
98103

104+
- added type `CustomerIndexingProgress`
105+
- added type `CustomerIndexingStatus`
106+
- added type `CustomerPagedSearchResponse`
107+
- added type `CustomerSearchIndexingStatusResponse`
108+
- added type `CustomerSearchRequest`
109+
- added type `CustomerSearchResult`
110+
- added type `CustomerSearchProjectNotIndexedError`
111+
- added type `GraphQLCustomerSearchProjectNotIndexedError`
99112
- added type `ProductTailoringImageAddedMessage`
100113
- added type `ProductTailoringImagesSetMessage`
101114
- added type `ProductVariantTailoringAddedMessage`
@@ -123,6 +136,8 @@
123136
- added type `ProductTailoringSetAssetTagsAction`
124137
- added type `ProductTailoringSetExternalImagesAction`
125138
- added type `ProductTailoringSetImageLabelAction`
139+
- added type `CustomerSearchStatus`
140+
- added type `ProjectChangeCustomerSearchStatusAction`
126141
</details>
127142

128143

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,4 +75,12 @@ public ByProjectKeyCustomersByIDRequestBuilder withId(String ID) {
7575
return new ByProjectKeyCustomersByIDRequestBuilder(apiHttpClient, projectKey, ID);
7676
}
7777

78+
public ByProjectKeyCustomersSearchRequestBuilder search() {
79+
return new ByProjectKeyCustomersSearchRequestBuilder(apiHttpClient, projectKey);
80+
}
81+
82+
public ByProjectKeyCustomersSearchIndexingStatusRequestBuilder searchIndexingStatus() {
83+
return new ByProjectKeyCustomersSearchIndexingStatusRequestBuilder(apiHttpClient, projectKey);
84+
}
85+
7886
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
2+
package com.commercetools.api.client;
3+
4+
import java.net.URI;
5+
import java.time.Duration;
6+
import java.util.ArrayList;
7+
import java.util.List;
8+
import java.util.concurrent.CompletableFuture;
9+
10+
import com.fasterxml.jackson.core.type.TypeReference;
11+
12+
import io.vrap.rmf.base.client.*;
13+
import io.vrap.rmf.base.client.utils.Generated;
14+
15+
import org.apache.commons.lang3.builder.EqualsBuilder;
16+
import org.apache.commons.lang3.builder.HashCodeBuilder;
17+
18+
/**
19+
* <p>Checks whether a search index for the Project's Customers exists. Returns a <code>200 OK</code> status if the index exists or <code>404 Not Found</code> otherwise.</p>
20+
*
21+
* <hr>
22+
* <div class=code-example>
23+
* <pre><code class='java'>{@code
24+
* CompletableFuture<ApiHttpResponse<com.fasterxml.jackson.databind.JsonNode>> result = apiRoot
25+
* .withProjectKey("{projectKey}")
26+
* .customers()
27+
* .search()
28+
* .head()
29+
* .execute()
30+
* }</code></pre>
31+
* </div>
32+
*/
33+
@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
34+
public class ByProjectKeyCustomersSearchHead
35+
extends TypeApiMethod<ByProjectKeyCustomersSearchHead, com.fasterxml.jackson.databind.JsonNode>
36+
implements com.commercetools.api.client.ErrorableTrait<ByProjectKeyCustomersSearchHead>,
37+
com.commercetools.api.client.Deprecatable200Trait<ByProjectKeyCustomersSearchHead> {
38+
39+
@Override
40+
public TypeReference<com.fasterxml.jackson.databind.JsonNode> resultType() {
41+
return new TypeReference<com.fasterxml.jackson.databind.JsonNode>() {
42+
};
43+
}
44+
45+
private String projectKey;
46+
47+
public ByProjectKeyCustomersSearchHead(final ApiHttpClient apiHttpClient, String projectKey) {
48+
super(apiHttpClient);
49+
this.projectKey = projectKey;
50+
}
51+
52+
public ByProjectKeyCustomersSearchHead(ByProjectKeyCustomersSearchHead t) {
53+
super(t);
54+
this.projectKey = t.projectKey;
55+
}
56+
57+
@Override
58+
protected ApiHttpRequest buildHttpRequest() {
59+
List<String> params = new ArrayList<>(getQueryParamUriStrings());
60+
String httpRequestPath = String.format("%s/customers/search", this.projectKey);
61+
if (!params.isEmpty()) {
62+
httpRequestPath += "?" + String.join("&", params);
63+
}
64+
return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null);
65+
}
66+
67+
@Override
68+
public ApiHttpResponse<com.fasterxml.jackson.databind.JsonNode> executeBlocking(final ApiHttpClient client,
69+
final Duration timeout) {
70+
return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class);
71+
}
72+
73+
@Override
74+
public CompletableFuture<ApiHttpResponse<com.fasterxml.jackson.databind.JsonNode>> execute(
75+
final ApiHttpClient client) {
76+
return execute(client, com.fasterxml.jackson.databind.JsonNode.class);
77+
}
78+
79+
public String getProjectKey() {
80+
return this.projectKey;
81+
}
82+
83+
public void setProjectKey(final String projectKey) {
84+
this.projectKey = projectKey;
85+
}
86+
87+
@Override
88+
public boolean equals(Object o) {
89+
if (this == o)
90+
return true;
91+
92+
if (o == null || getClass() != o.getClass())
93+
return false;
94+
95+
ByProjectKeyCustomersSearchHead that = (ByProjectKeyCustomersSearchHead) o;
96+
97+
return new EqualsBuilder().append(projectKey, that.projectKey).isEquals();
98+
}
99+
100+
@Override
101+
public int hashCode() {
102+
return new HashCodeBuilder(17, 37).append(projectKey).toHashCode();
103+
}
104+
105+
@Override
106+
protected ByProjectKeyCustomersSearchHead copy() {
107+
return new ByProjectKeyCustomersSearchHead(this);
108+
}
109+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
2+
package com.commercetools.api.client;
3+
4+
import java.net.URI;
5+
import java.time.Duration;
6+
import java.util.ArrayList;
7+
import java.util.List;
8+
import java.util.concurrent.CompletableFuture;
9+
10+
import com.fasterxml.jackson.core.type.TypeReference;
11+
12+
import io.vrap.rmf.base.client.*;
13+
import io.vrap.rmf.base.client.utils.Generated;
14+
15+
import org.apache.commons.lang3.builder.EqualsBuilder;
16+
import org.apache.commons.lang3.builder.HashCodeBuilder;
17+
18+
/**
19+
*
20+
*
21+
* <hr>
22+
* <div class=code-example>
23+
* <pre><code class='java'>{@code
24+
* CompletableFuture<ApiHttpResponse<com.commercetools.api.models.customer_search.CustomerSearchIndexingStatusResponse>> result = apiRoot
25+
* .withProjectKey("{projectKey}")
26+
* .customers()
27+
* .searchIndexingStatus()
28+
* .get()
29+
* .execute()
30+
* }</code></pre>
31+
* </div>
32+
*/
33+
@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
34+
public class ByProjectKeyCustomersSearchIndexingStatusGet extends
35+
TypeApiMethod<ByProjectKeyCustomersSearchIndexingStatusGet, com.commercetools.api.models.customer_search.CustomerSearchIndexingStatusResponse>
36+
implements com.commercetools.api.client.ErrorableTrait<ByProjectKeyCustomersSearchIndexingStatusGet>,
37+
com.commercetools.api.client.Deprecatable200Trait<ByProjectKeyCustomersSearchIndexingStatusGet> {
38+
39+
@Override
40+
public TypeReference<com.commercetools.api.models.customer_search.CustomerSearchIndexingStatusResponse> resultType() {
41+
return new TypeReference<com.commercetools.api.models.customer_search.CustomerSearchIndexingStatusResponse>() {
42+
};
43+
}
44+
45+
private String projectKey;
46+
47+
public ByProjectKeyCustomersSearchIndexingStatusGet(final ApiHttpClient apiHttpClient, String projectKey) {
48+
super(apiHttpClient);
49+
this.projectKey = projectKey;
50+
}
51+
52+
public ByProjectKeyCustomersSearchIndexingStatusGet(ByProjectKeyCustomersSearchIndexingStatusGet t) {
53+
super(t);
54+
this.projectKey = t.projectKey;
55+
}
56+
57+
@Override
58+
protected ApiHttpRequest buildHttpRequest() {
59+
List<String> params = new ArrayList<>(getQueryParamUriStrings());
60+
String httpRequestPath = String.format("%s/customers/search/indexing-status", this.projectKey);
61+
if (!params.isEmpty()) {
62+
httpRequestPath += "?" + String.join("&", params);
63+
}
64+
return new ApiHttpRequest(ApiHttpMethod.GET, URI.create(httpRequestPath), getHeaders(), null);
65+
}
66+
67+
@Override
68+
public ApiHttpResponse<com.commercetools.api.models.customer_search.CustomerSearchIndexingStatusResponse> executeBlocking(
69+
final ApiHttpClient client, final Duration timeout) {
70+
return executeBlocking(client, timeout,
71+
com.commercetools.api.models.customer_search.CustomerSearchIndexingStatusResponse.class);
72+
}
73+
74+
@Override
75+
public CompletableFuture<ApiHttpResponse<com.commercetools.api.models.customer_search.CustomerSearchIndexingStatusResponse>> execute(
76+
final ApiHttpClient client) {
77+
return execute(client, com.commercetools.api.models.customer_search.CustomerSearchIndexingStatusResponse.class);
78+
}
79+
80+
public String getProjectKey() {
81+
return this.projectKey;
82+
}
83+
84+
public void setProjectKey(final String projectKey) {
85+
this.projectKey = projectKey;
86+
}
87+
88+
@Override
89+
public boolean equals(Object o) {
90+
if (this == o)
91+
return true;
92+
93+
if (o == null || getClass() != o.getClass())
94+
return false;
95+
96+
ByProjectKeyCustomersSearchIndexingStatusGet that = (ByProjectKeyCustomersSearchIndexingStatusGet) o;
97+
98+
return new EqualsBuilder().append(projectKey, that.projectKey).isEquals();
99+
}
100+
101+
@Override
102+
public int hashCode() {
103+
return new HashCodeBuilder(17, 37).append(projectKey).toHashCode();
104+
}
105+
106+
@Override
107+
protected ByProjectKeyCustomersSearchIndexingStatusGet copy() {
108+
return new ByProjectKeyCustomersSearchIndexingStatusGet(this);
109+
}
110+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
2+
package com.commercetools.api.client;
3+
4+
import io.vrap.rmf.base.client.ApiHttpClient;
5+
import io.vrap.rmf.base.client.utils.Generated;
6+
7+
@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
8+
public class ByProjectKeyCustomersSearchIndexingStatusRequestBuilder {
9+
10+
private final ApiHttpClient apiHttpClient;
11+
private final String projectKey;
12+
13+
public ByProjectKeyCustomersSearchIndexingStatusRequestBuilder(final ApiHttpClient apiHttpClient,
14+
final String projectKey) {
15+
this.apiHttpClient = apiHttpClient;
16+
this.projectKey = projectKey;
17+
}
18+
19+
public ByProjectKeyCustomersSearchIndexingStatusGet get() {
20+
return new ByProjectKeyCustomersSearchIndexingStatusGet(apiHttpClient, projectKey);
21+
}
22+
23+
}

0 commit comments

Comments
 (0)