Skip to content

Commit 3f6ffd5

Browse files
Merge pull request #785 from commercetools/gen-sdk-updates
Update generated SDKs
2 parents 99f1f3b + c24d4db commit 3f6ffd5

File tree

64 files changed

+5336
-64
lines changed

Some content is hidden

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

64 files changed

+5336
-64
lines changed

changes.md

+20-35
Original file line numberDiff line numberDiff line change
@@ -1,62 +1,47 @@
11
**Api changes**
22

33
<details>
4-
<summary>Added Resource(s)</summary>
5-
6-
- added resource `/{projectKey}/channels/key={key}`
7-
</details>
8-
9-
10-
<details>
11-
<summary>Added Method(s)</summary>
4+
<summary>Changed Property(s)</summary>
125

13-
- added method `apiRoot.withProjectKey().channels().withKey().get()`
14-
- added method `apiRoot.withProjectKey().channels().withKey().head()`
15-
- added method `apiRoot.withProjectKey().channels().withKey().post()`
16-
- added method `apiRoot.withProjectKey().channels().withKey().delete()`
6+
- :warning: changed property `exact` of type `SearchExactExpression` from type `SearchAnyValue` to `SearchExactValue`
177
</details>
188

199

2010
<details>
21-
<summary>Added Type(s)</summary>
11+
<summary>Added Property(s)</summary>
2212

23-
- added type `CartDiscountPatternTarget`
24-
- added type `CountOnCustomLineItemUnits`
25-
- added type `CountOnLineItemUnits`
26-
- added type `PatternComponent`
27-
- added type `ShoppingListLineItemAddedMessage`
28-
- added type `ShoppingListLineItemRemovedMessage`
29-
- added type `ShoppingListMessage`
30-
- added type `ShoppingListLineItemAddedMessagePayload`
31-
- added type `ShoppingListLineItemRemovedMessagePayload`
32-
- added type `ShoppingListMessagePayload`
13+
- added property `businessUnits` to type `SearchIndexingConfiguration`
3314
</details>
3415

3516

3617
<details>
37-
<summary>Added Enum(s)</summary>
18+
<summary>Added Resource(s)</summary>
3819

39-
- added enum `Canceled` to type `ShipmentState`
40-
- added enum `shopping-list` to type `MessageSubscriptionResourceTypeId`
20+
- added resource `/{projectKey}/business-units/search`
21+
- added resource `/{projectKey}/business-units/search/indexing-status`
4122
</details>
4223

4324

4425
<details>
45-
<summary>Added Property(s)</summary>
26+
<summary>Added Method(s)</summary>
4627

47-
- added property `applicationMode` to type `CartDiscountValueFixed`
48-
- added property `applicationMode` to type `CartDiscountValueFixedDraft`
49-
- added property `custom` to type `CartSetCustomShippingMethodAction`
50-
- added property `custom` to type `StagedOrderSetCustomShippingMethodAction`
51-
- added property `custom` to type `StagedOrderSetShippingAddressAndCustomShippingMethodAction`
28+
- added method `apiRoot.withProjectKey().businessUnits().search().post()`
29+
- added method `apiRoot.withProjectKey().businessUnits().search().head()`
30+
- added method `apiRoot.withProjectKey().businessUnits().searchIndexingStatus().get()`
5231
</details>
5332

54-
**History changes**
5533

5634
<details>
5735
<summary>Added Type(s)</summary>
5836

59-
- added type `ChangeTargetPatternChangeValue`
60-
- added type `PatternComponent`
37+
- added type `BusinessUnitIndexingProgress`
38+
- added type `BusinessUnitIndexingStatus`
39+
- added type `BusinessUnitPagedSearchResponse`
40+
- added type `BusinessUnitSearchIndexingStatusResponse`
41+
- added type `BusinessUnitSearchRequest`
42+
- added type `BusinessUnitSearchResult`
43+
- added type `BusinessUnitSearchStatus`
44+
- added type `ProjectChangeBusinessUnitSearchStatusAction`
45+
- added type `SearchExactValue`
6146
</details>
6247

commercetools/commercetools-graphql-api/src/main/resources/graphql/schema.graphqls

+24
Original file line numberDiff line numberDiff line change
@@ -1596,6 +1596,19 @@ type BusinessUnitQueryResult {
15961596
results: [BusinessUnit!]!
15971597
}
15981598

1599+
"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
1600+
type BusinessUnitSearchConfiguration {
1601+
status: BusinessUnitSearchStatus!
1602+
lastModifiedAt: DateTime!
1603+
lastModifiedBy: Initiator
1604+
}
1605+
1606+
"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
1607+
enum BusinessUnitSearchStatus {
1608+
Activated
1609+
Deactivated
1610+
}
1611+
15991612
type BusinessUnitShippingAddressAdded implements MessagePayload {
16001613
address: Address!
16011614
type: String!
@@ -2626,6 +2639,11 @@ input ChangeProductTailoringAssetOrder {
26262639
assetOrder: [String!]!
26272640
}
26282641

2642+
"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
2643+
input ChangeProjectSettingsBusinessUnitSearchStatus {
2644+
status: BusinessUnitSearchStatus!
2645+
}
2646+
26292647
input ChangeProjectSettingsCartsConfiguration {
26302648
cartsConfiguration: CartsConfigurationInput!
26312649
}
@@ -9114,6 +9132,9 @@ input ProjectSettingsUpdateAction {
91149132

91159133
"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
91169134
setMyBusinessUnitAssociateRoleOnCreation: SetProjectSettingsMyBusinessUnitAssociateRoleOnCreation
9135+
9136+
"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
9137+
changeBusinessUnitSearchStatus: ChangeProjectSettingsBusinessUnitSearchStatus
91179138
changeProductSearchIndexingEnabled: ChangeProjectSettingsProductSearchIndexingEnabled
91189139
}
91199140

@@ -10507,6 +10528,9 @@ type SearchIndexingConfiguration {
1050710528
products: SearchIndexingConfigurationValues
1050810529
orders: OrderSearchConfiguration
1050910530
customers: CustomerSearchConfiguration
10531+
10532+
"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
10533+
businessUnits: BusinessUnitSearchConfiguration
1051010534
}
1051110535

1051210536
type SearchIndexingConfigurationValues {

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

+8
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,12 @@ public ByProjectKeyBusinessUnitsByIDRequestBuilder withId(String ID) {
4848
return new ByProjectKeyBusinessUnitsByIDRequestBuilder(apiHttpClient, projectKey, ID);
4949
}
5050

51+
public ByProjectKeyBusinessUnitsSearchRequestBuilder search() {
52+
return new ByProjectKeyBusinessUnitsSearchRequestBuilder(apiHttpClient, projectKey);
53+
}
54+
55+
public ByProjectKeyBusinessUnitsSearchIndexingStatusRequestBuilder searchIndexingStatus() {
56+
return new ByProjectKeyBusinessUnitsSearchIndexingStatusRequestBuilder(apiHttpClient, projectKey);
57+
}
58+
5159
}
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 of Business Units exists for a Project. Returns a <code>200 OK</code> if an index exists; otherwise, returns a <code>409 Conflict</code>.</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+
* .businessUnits()
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 ByProjectKeyBusinessUnitsSearchHead
35+
extends TypeApiMethod<ByProjectKeyBusinessUnitsSearchHead, com.fasterxml.jackson.databind.JsonNode>
36+
implements com.commercetools.api.client.ErrorableTrait<ByProjectKeyBusinessUnitsSearchHead>,
37+
com.commercetools.api.client.Deprecatable200Trait<ByProjectKeyBusinessUnitsSearchHead> {
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 ByProjectKeyBusinessUnitsSearchHead(final ApiHttpClient apiHttpClient, String projectKey) {
48+
super(apiHttpClient);
49+
this.projectKey = projectKey;
50+
}
51+
52+
public ByProjectKeyBusinessUnitsSearchHead(ByProjectKeyBusinessUnitsSearchHead 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/business-units/search", encodePathParam(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+
ByProjectKeyBusinessUnitsSearchHead that = (ByProjectKeyBusinessUnitsSearchHead) 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 ByProjectKeyBusinessUnitsSearchHead copy() {
107+
return new ByProjectKeyBusinessUnitsSearchHead(this);
108+
}
109+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
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>Returns the indexing status of the Business Unit Search for a Project.</p>
20+
*
21+
* <hr>
22+
* <div class=code-example>
23+
* <pre><code class='java'>{@code
24+
* CompletableFuture<ApiHttpResponse<com.commercetools.api.models.business_unit_search.BusinessUnitSearchIndexingStatusResponse>> result = apiRoot
25+
* .withProjectKey("{projectKey}")
26+
* .businessUnits()
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 ByProjectKeyBusinessUnitsSearchIndexingStatusGet extends
35+
TypeApiMethod<ByProjectKeyBusinessUnitsSearchIndexingStatusGet, com.commercetools.api.models.business_unit_search.BusinessUnitSearchIndexingStatusResponse>
36+
implements com.commercetools.api.client.ErrorableTrait<ByProjectKeyBusinessUnitsSearchIndexingStatusGet>,
37+
com.commercetools.api.client.Deprecatable200Trait<ByProjectKeyBusinessUnitsSearchIndexingStatusGet> {
38+
39+
@Override
40+
public TypeReference<com.commercetools.api.models.business_unit_search.BusinessUnitSearchIndexingStatusResponse> resultType() {
41+
return new TypeReference<com.commercetools.api.models.business_unit_search.BusinessUnitSearchIndexingStatusResponse>() {
42+
};
43+
}
44+
45+
private String projectKey;
46+
47+
public ByProjectKeyBusinessUnitsSearchIndexingStatusGet(final ApiHttpClient apiHttpClient, String projectKey) {
48+
super(apiHttpClient);
49+
this.projectKey = projectKey;
50+
}
51+
52+
public ByProjectKeyBusinessUnitsSearchIndexingStatusGet(ByProjectKeyBusinessUnitsSearchIndexingStatusGet 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/business-units/search/indexing-status",
61+
encodePathParam(this.projectKey));
62+
if (!params.isEmpty()) {
63+
httpRequestPath += "?" + String.join("&", params);
64+
}
65+
return new ApiHttpRequest(ApiHttpMethod.GET, URI.create(httpRequestPath), getHeaders(), null);
66+
}
67+
68+
@Override
69+
public ApiHttpResponse<com.commercetools.api.models.business_unit_search.BusinessUnitSearchIndexingStatusResponse> executeBlocking(
70+
final ApiHttpClient client, final Duration timeout) {
71+
return executeBlocking(client, timeout,
72+
com.commercetools.api.models.business_unit_search.BusinessUnitSearchIndexingStatusResponse.class);
73+
}
74+
75+
@Override
76+
public CompletableFuture<ApiHttpResponse<com.commercetools.api.models.business_unit_search.BusinessUnitSearchIndexingStatusResponse>> execute(
77+
final ApiHttpClient client) {
78+
return execute(client,
79+
com.commercetools.api.models.business_unit_search.BusinessUnitSearchIndexingStatusResponse.class);
80+
}
81+
82+
public String getProjectKey() {
83+
return this.projectKey;
84+
}
85+
86+
public void setProjectKey(final String projectKey) {
87+
this.projectKey = projectKey;
88+
}
89+
90+
@Override
91+
public boolean equals(Object o) {
92+
if (this == o)
93+
return true;
94+
95+
if (o == null || getClass() != o.getClass())
96+
return false;
97+
98+
ByProjectKeyBusinessUnitsSearchIndexingStatusGet that = (ByProjectKeyBusinessUnitsSearchIndexingStatusGet) o;
99+
100+
return new EqualsBuilder().append(projectKey, that.projectKey).isEquals();
101+
}
102+
103+
@Override
104+
public int hashCode() {
105+
return new HashCodeBuilder(17, 37).append(projectKey).toHashCode();
106+
}
107+
108+
@Override
109+
protected ByProjectKeyBusinessUnitsSearchIndexingStatusGet copy() {
110+
return new ByProjectKeyBusinessUnitsSearchIndexingStatusGet(this);
111+
}
112+
}
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 ByProjectKeyBusinessUnitsSearchIndexingStatusRequestBuilder {
9+
10+
private final ApiHttpClient apiHttpClient;
11+
private final String projectKey;
12+
13+
public ByProjectKeyBusinessUnitsSearchIndexingStatusRequestBuilder(final ApiHttpClient apiHttpClient,
14+
final String projectKey) {
15+
this.apiHttpClient = apiHttpClient;
16+
this.projectKey = projectKey;
17+
}
18+
19+
public ByProjectKeyBusinessUnitsSearchIndexingStatusGet get() {
20+
return new ByProjectKeyBusinessUnitsSearchIndexingStatusGet(apiHttpClient, projectKey);
21+
}
22+
23+
}

0 commit comments

Comments
 (0)