Skip to content

Commit 37923aa

Browse files
authored
Merge pull request #507 from commercetools/gen-sdk-updates
2 parents c886ffb + 5972d58 commit 37923aa

File tree

532 files changed

+28460
-192
lines changed

Some content is hidden

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

532 files changed

+28460
-192
lines changed

changes.md

+180-8
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,190 @@
33
<details>
44
<summary>Added Enum(s)</summary>
55

6-
- added enum `customer-email-token` to type `ReferenceTypeId`
7-
- added enum `customer-password-token` to type `ReferenceTypeId`
8-
- added enum `customer-email-token` to type `MessageSubscriptionResourceTypeId`
9-
- added enum `customer-group` to type `MessageSubscriptionResourceTypeId`
10-
- added enum `customer-password-token` to type `MessageSubscriptionResourceTypeId`
6+
- added enum `approval-flow` to type `ReferenceTypeId`
7+
- added enum `approval-rule` to type `ReferenceTypeId`
8+
- added enum `approval-flow` to type `ChangeSubscriptionResourceTypeId`
9+
- added enum `approval-rule` to type `ChangeSubscriptionResourceTypeId`
10+
- added enum `approval-flow` to type `MessageSubscriptionResourceTypeId`
11+
- added enum `approval-rule` to type `MessageSubscriptionResourceTypeId`
1112
</details>
1213

1314

1415
<details>
15-
<summary>Added Type(s)</summary>
16+
<summary>Added Method(s)</summary>
1617

17-
- added type `CustomerEmailTokenReference`
18-
- added type `CustomerPasswordTokenReference`
18+
- added method `apiRoot.withProjectKey().head()`
19+
- added method `apiRoot.withProjectKey().associateRoles().head()`
20+
- added method `apiRoot.withProjectKey().businessUnits().head()`
21+
- added method `apiRoot.withProjectKey().categories().head()`
22+
- added method `apiRoot.withProjectKey().carts().head()`
23+
- added method `apiRoot.withProjectKey().cartDiscounts().head()`
24+
- added method `apiRoot.withProjectKey().channels().head()`
25+
- added method `apiRoot.withProjectKey().customers().head()`
26+
- added method `apiRoot.withProjectKey().customerGroups().head()`
27+
- added method `apiRoot.withProjectKey().customObjects().head()`
28+
- added method `apiRoot.withProjectKey().discountCodes().head()`
29+
- added method `apiRoot.withProjectKey().inventory().head()`
30+
- added method `apiRoot.withProjectKey().messages().head()`
31+
- added method `apiRoot.withProjectKey().orders().head()`
32+
- added method `apiRoot.withProjectKey().payments().head()`
33+
- added method `apiRoot.withProjectKey().productDiscounts().head()`
34+
- added method `apiRoot.withProjectKey().productProjections().head()`
35+
- added method `apiRoot.withProjectKey().productSelections().head()`
36+
- added method `apiRoot.withProjectKey().quotes().head()`
37+
- added method `apiRoot.withProjectKey().quoteRequests().head()`
38+
- added method `apiRoot.withProjectKey().stagedQuotes().head()`
39+
- added method `apiRoot.withProjectKey().reviews().head()`
40+
- added method `apiRoot.withProjectKey().shippingMethods().head()`
41+
- added method `apiRoot.withProjectKey().shoppingLists().head()`
42+
- added method `apiRoot.withProjectKey().states().head()`
43+
- added method `apiRoot.withProjectKey().subscriptions().head()`
44+
- added method `apiRoot.withProjectKey().taxCategories().head()`
45+
- added method `apiRoot.withProjectKey().types().head()`
46+
- added method `apiRoot.withProjectKey().zones().head()`
47+
- added method `apiRoot.withProjectKey().extensions().head()`
48+
- added method `apiRoot.withProjectKey().apiClients().head()`
49+
- added method `apiRoot.withProjectKey().stores().head()`
50+
- added method `apiRoot.withProjectKey().standalonePrices().head()`
51+
- added method `apiRoot.withProjectKey().attributeGroups().head()`
52+
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().businessUnits().head()`
53+
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().businessUnits().withKey().head()`
54+
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().businessUnits().withId().head()`
55+
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().carts().head()`
56+
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().orders().head()`
57+
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().quotes().head()`
58+
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().quoteRequests().head()`
59+
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().carts().withKey().head()`
60+
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().carts().withId().head()`
61+
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().orders().withOrderNumber().head()`
62+
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().orders().withId().head()`
63+
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().quotes().withKey().head()`
64+
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().quotes().withId().head()`
65+
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().quoteRequests().withKey().head()`
66+
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().quoteRequests().withId().head()`
67+
- added method `apiRoot.withProjectKey().associateRoles().withKey().head()`
68+
- added method `apiRoot.withProjectKey().associateRoles().withId().head()`
69+
- added method `apiRoot.withProjectKey().businessUnits().withKey().head()`
70+
- added method `apiRoot.withProjectKey().businessUnits().withId().head()`
71+
- added method `apiRoot.withProjectKey().categories().withKey().head()`
72+
- added method `apiRoot.withProjectKey().categories().withId().head()`
73+
- added method `apiRoot.withProjectKey().carts().withCustomerId().head()`
74+
- added method `apiRoot.withProjectKey().carts().withKey().head()`
75+
- added method `apiRoot.withProjectKey().carts().withId().head()`
76+
- added method `apiRoot.withProjectKey().cartDiscounts().withKey().head()`
77+
- added method `apiRoot.withProjectKey().cartDiscounts().withId().head()`
78+
- added method `apiRoot.withProjectKey().channels().withId().head()`
79+
- added method `apiRoot.withProjectKey().customers().withKey().head()`
80+
- added method `apiRoot.withProjectKey().customers().withId().head()`
81+
- added method `apiRoot.withProjectKey().customerGroups().withKey().head()`
82+
- added method `apiRoot.withProjectKey().customerGroups().withId().head()`
83+
- added method `apiRoot.withProjectKey().discountCodes().withId().head()`
84+
- added method `apiRoot.withProjectKey().inventory().withId().head()`
85+
- added method `apiRoot.withProjectKey().inventory().withKey().head()`
86+
- added method `apiRoot.withProjectKey().messages().withId().head()`
87+
- added method `apiRoot.withProjectKey().orders().withOrderNumber().head()`
88+
- added method `apiRoot.withProjectKey().orders().edits().head()`
89+
- added method `apiRoot.withProjectKey().orders().withId().head()`
90+
- added method `apiRoot.withProjectKey().orders().edits().withKey().head()`
91+
- added method `apiRoot.withProjectKey().orders().edits().withId().head()`
92+
- added method `apiRoot.withProjectKey().payments().withKey().head()`
93+
- added method `apiRoot.withProjectKey().payments().withId().head()`
94+
- added method `apiRoot.withProjectKey().productDiscounts().withKey().head()`
95+
- added method `apiRoot.withProjectKey().productDiscounts().withId().head()`
96+
- added method `apiRoot.withProjectKey().productProjections().withKey().head()`
97+
- added method `apiRoot.withProjectKey().productProjections().withId().head()`
98+
- added method `apiRoot.withProjectKey().productSelections().withKey().head()`
99+
- added method `apiRoot.withProjectKey().productSelections().withId().head()`
100+
- added method `apiRoot.withProjectKey().quotes().withKey().head()`
101+
- added method `apiRoot.withProjectKey().quotes().withId().head()`
102+
- added method `apiRoot.withProjectKey().quoteRequests().withKey().head()`
103+
- added method `apiRoot.withProjectKey().quoteRequests().withId().head()`
104+
- added method `apiRoot.withProjectKey().stagedQuotes().withKey().head()`
105+
- added method `apiRoot.withProjectKey().stagedQuotes().withId().head()`
106+
- added method `apiRoot.withProjectKey().reviews().withKey().head()`
107+
- added method `apiRoot.withProjectKey().reviews().withId().head()`
108+
- added method `apiRoot.withProjectKey().shippingMethods().withKey().head()`
109+
- added method `apiRoot.withProjectKey().shippingMethods().matchingCart().head()`
110+
- added method `apiRoot.withProjectKey().shippingMethods().matchingCartLocation().head()`
111+
- added method `apiRoot.withProjectKey().shippingMethods().matchingOrderedit().head()`
112+
- added method `apiRoot.withProjectKey().shippingMethods().matchingLocation().head()`
113+
- added method `apiRoot.withProjectKey().shippingMethods().withId().head()`
114+
- added method `apiRoot.withProjectKey().shoppingLists().withKey().head()`
115+
- added method `apiRoot.withProjectKey().shoppingLists().withId().head()`
116+
- added method `apiRoot.withProjectKey().states().withKey().head()`
117+
- added method `apiRoot.withProjectKey().states().withId().head()`
118+
- added method `apiRoot.withProjectKey().subscriptions().withKey().head()`
119+
- added method `apiRoot.withProjectKey().subscriptions().withId().head()`
120+
- added method `apiRoot.withProjectKey().taxCategories().withKey().head()`
121+
- added method `apiRoot.withProjectKey().taxCategories().withId().head()`
122+
- added method `apiRoot.withProjectKey().types().withKey().head()`
123+
- added method `apiRoot.withProjectKey().types().withId().head()`
124+
- added method `apiRoot.withProjectKey().zones().withKey().head()`
125+
- added method `apiRoot.withProjectKey().zones().withId().head()`
126+
- added method `apiRoot.withProjectKey().me().activeCart().head()`
127+
- added method `apiRoot.withProjectKey().me().businessUnits().head()`
128+
- added method `apiRoot.withProjectKey().me().carts().head()`
129+
- added method `apiRoot.withProjectKey().me().orders().head()`
130+
- added method `apiRoot.withProjectKey().me().payments().head()`
131+
- added method `apiRoot.withProjectKey().me().quoteRequests().head()`
132+
- added method `apiRoot.withProjectKey().me().quotes().head()`
133+
- added method `apiRoot.withProjectKey().me().shoppingLists().head()`
134+
- added method `apiRoot.withProjectKey().me().businessUnits().withId().head()`
135+
- added method `apiRoot.withProjectKey().me().businessUnits().withKey().head()`
136+
- added method `apiRoot.withProjectKey().me().carts().withKey().head()`
137+
- added method `apiRoot.withProjectKey().me().carts().withId().head()`
138+
- added method `apiRoot.withProjectKey().me().orders().withId().head()`
139+
- added method `apiRoot.withProjectKey().me().payments().withId().head()`
140+
- added method `apiRoot.withProjectKey().me().quoteRequests().withId().head()`
141+
- added method `apiRoot.withProjectKey().me().quoteRequests().withKey().head()`
142+
- added method `apiRoot.withProjectKey().me().quotes().withId().head()`
143+
- added method `apiRoot.withProjectKey().me().quotes().withKey().head()`
144+
- added method `apiRoot.withProjectKey().me().shoppingLists().withId().head()`
145+
- added method `apiRoot.withProjectKey().me().shoppingLists().withKey().head()`
146+
- added method `apiRoot.withProjectKey().extensions().withKey().head()`
147+
- added method `apiRoot.withProjectKey().extensions().withId().head()`
148+
- added method `apiRoot.withProjectKey().apiClients().withId().head()`
149+
- added method `apiRoot.withProjectKey().stores().withKey().head()`
150+
- added method `apiRoot.withProjectKey().stores().withId().head()`
151+
- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().carts().head()`
152+
- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().orders().head()`
153+
- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().customers().head()`
154+
- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().shoppingLists().head()`
155+
- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().cartDiscounts().head()`
156+
- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().carts().withCustomerId().head()`
157+
- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().carts().withKey().head()`
158+
- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().carts().withId().head()`
159+
- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().orders().withOrderNumber().head()`
160+
- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().orders().withId().head()`
161+
- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().me().carts().head()`
162+
- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().me().orders().head()`
163+
- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().me().activeCart().head()`
164+
- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().me().shoppingLists().head()`
165+
- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().me().carts().withId().head()`
166+
- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().me().orders().withId().head()`
167+
- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().me().shoppingLists().withKey().head()`
168+
- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().me().shoppingLists().withId().head()`
169+
- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().customers().withKey().head()`
170+
- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().customers().withId().head()`
171+
- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().shippingMethods().matchingCart().head()`
172+
- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().shoppingLists().withKey().head()`
173+
- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().shoppingLists().withId().head()`
174+
- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().productProjections().withKey().head()`
175+
- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().productProjections().withId().head()`
176+
- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().cartDiscounts().withKey().head()`
177+
- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().cartDiscounts().withId().head()`
178+
- added method `apiRoot.withProjectKey().standalonePrices().withKey().head()`
179+
- added method `apiRoot.withProjectKey().standalonePrices().withId().head()`
180+
- added method `apiRoot.withProjectKey().attributeGroups().withKey().head()`
181+
- added method `apiRoot.withProjectKey().attributeGroups().withId().head()`
182+
</details>
183+
184+
**History changes**
185+
186+
<details>
187+
<summary>Changed Property(s)</summary>
188+
189+
- :warning: changed property `previousValue` of type `SetNameChange` from type `LocalizedString` to `string`
190+
- :warning: changed property `nextValue` of type `SetNameChange` from type `LocalizedString` to `string`
19191
</details>
20192

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
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 if an API Client exists for a given <code>id</code>. Returns a <code>200 OK</code> status if the API Client exists or a <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+
* .apiClients()
27+
* .withId("{ID}")
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 ByProjectKeyApiClientsByIDHead
35+
extends TypeApiMethod<ByProjectKeyApiClientsByIDHead, com.fasterxml.jackson.databind.JsonNode>
36+
implements com.commercetools.api.client.ErrorableTrait<ByProjectKeyApiClientsByIDHead>,
37+
com.commercetools.api.client.Deprecatable200Trait<ByProjectKeyApiClientsByIDHead> {
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+
private String ID;
47+
48+
public ByProjectKeyApiClientsByIDHead(final ApiHttpClient apiHttpClient, String projectKey, String ID) {
49+
super(apiHttpClient);
50+
this.projectKey = projectKey;
51+
this.ID = ID;
52+
}
53+
54+
public ByProjectKeyApiClientsByIDHead(ByProjectKeyApiClientsByIDHead t) {
55+
super(t);
56+
this.projectKey = t.projectKey;
57+
this.ID = t.ID;
58+
}
59+
60+
@Override
61+
protected ApiHttpRequest buildHttpRequest() {
62+
List<String> params = new ArrayList<>(getQueryParamUriStrings());
63+
String httpRequestPath = String.format("%s/api-clients/%s", this.projectKey, this.ID);
64+
if (!params.isEmpty()) {
65+
httpRequestPath += "?" + String.join("&", params);
66+
}
67+
return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null);
68+
}
69+
70+
@Override
71+
public ApiHttpResponse<com.fasterxml.jackson.databind.JsonNode> executeBlocking(final ApiHttpClient client,
72+
final Duration timeout) {
73+
return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class);
74+
}
75+
76+
@Override
77+
public CompletableFuture<ApiHttpResponse<com.fasterxml.jackson.databind.JsonNode>> execute(
78+
final ApiHttpClient client) {
79+
return execute(client, com.fasterxml.jackson.databind.JsonNode.class);
80+
}
81+
82+
public String getProjectKey() {
83+
return this.projectKey;
84+
}
85+
86+
public String getID() {
87+
return this.ID;
88+
}
89+
90+
public void setProjectKey(final String projectKey) {
91+
this.projectKey = projectKey;
92+
}
93+
94+
public void setID(final String ID) {
95+
this.ID = ID;
96+
}
97+
98+
@Override
99+
public boolean equals(Object o) {
100+
if (this == o)
101+
return true;
102+
103+
if (o == null || getClass() != o.getClass())
104+
return false;
105+
106+
ByProjectKeyApiClientsByIDHead that = (ByProjectKeyApiClientsByIDHead) o;
107+
108+
return new EqualsBuilder().append(projectKey, that.projectKey).append(ID, that.ID).isEquals();
109+
}
110+
111+
@Override
112+
public int hashCode() {
113+
return new HashCodeBuilder(17, 37).append(projectKey).append(ID).toHashCode();
114+
}
115+
116+
@Override
117+
protected ByProjectKeyApiClientsByIDHead copy() {
118+
return new ByProjectKeyApiClientsByIDHead(this);
119+
}
120+
}

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

+4
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ public ByProjectKeyApiClientsByIDGet get() {
2222
return new ByProjectKeyApiClientsByIDGet(apiHttpClient, projectKey, ID);
2323
}
2424

25+
public ByProjectKeyApiClientsByIDHead head() {
26+
return new ByProjectKeyApiClientsByIDHead(apiHttpClient, projectKey, ID);
27+
}
28+
2529
public ByProjectKeyApiClientsByIDDelete delete() {
2630
return new ByProjectKeyApiClientsByIDDelete(apiHttpClient, projectKey, ID);
2731
}

0 commit comments

Comments
 (0)