Skip to content

Commit 01f94f2

Browse files
committed
build(codegen): updating SDK
1 parent f1c5657 commit 01f94f2

File tree

378 files changed

+41356
-102
lines changed

Some content is hidden

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

378 files changed

+41356
-102
lines changed

changes.md

Lines changed: 163 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,166 @@
4141
- added resource `/{projectKey}/in-store/key={storeKey}/carts/customer-id={customerId}/merge`
4242
</details>
4343

44+
**Checkout changes**
45+
46+
<details>
47+
<summary>Added Type(s)</summary>
48+
49+
- added type `AllowedOrigins`
50+
- added type `Application`
51+
- added type `ApplicationAgreement`
52+
- added type `ApplicationAgreementDraft`
53+
- added type `ApplicationAgreementStatus`
54+
- added type `ApplicationAgreementType`
55+
- added type `ApplicationDraft`
56+
- added type `ApplicationLogo`
57+
- added type `ApplicationMode`
58+
- added type `ApplicationStatus`
59+
- added type `ApplicationUpdateAction`
60+
- added type `ApplicationUpdateActions`
61+
- added type `DiscountsConfiguration`
62+
- added type `PaginatedApplication`
63+
- added type `PaymentsConfiguration`
64+
- added type `AddAllowedOriginUpdateAction`
65+
- added type `AddApplicationAgreementUpdateAction`
66+
- added type `AddCountryUpdateAction`
67+
- added type `RemoveAllowedOriginUpdateAction`
68+
- added type `RemoveApplicationAgreementUpdateAction`
69+
- added type `RemoveCountryUpdateAction`
70+
- added type `ReorderApplicationAgreementUpdateAction`
71+
- added type `SetActivePaymentComponentTypeUpdateAction`
72+
- added type `SetAllowAllOriginsUpdateAction`
73+
- added type `SetAllowedOriginsUpdateAction`
74+
- added type `SetApplicationAgreementNameUpdateAction`
75+
- added type `SetApplicationAgreementStatusUpdateAction`
76+
- added type `SetApplicationAgreementTextUpdateAction`
77+
- added type `SetApplicationAgreementTypeUpdateAction`
78+
- added type `SetApplicationAgreementsUpdateAction`
79+
- added type `SetApplicationLogoUpdateAction`
80+
- added type `SetApplicationNameUpdateAction`
81+
- added type `SetApplicationStatusUpdateAction`
82+
- added type `SetCountriesUpdateAction`
83+
- added type `SetDescriptionUpdateAction`
84+
- added type `SetDiscountsConfigurationUpdateAction`
85+
- added type `SetPaymentReturnUrlUpdateAction`
86+
- added type `SetPaymentsConfigurationUpdateAction`
87+
- added type `CreatedBy`
88+
- added type `LastModifiedBy`
89+
- added type `LocalizedString`
90+
- added type `LocalizedUrl`
91+
- added type `ConcurrentModificationError`
92+
- added type `DuplicateFieldWithConflictingResourceError`
93+
- added type `ErrorResponse`
94+
- added type `InvalidFieldError`
95+
- added type `InvalidOperationError`
96+
- added type `MaxResourceLimitExceededError`
97+
- added type `MissingProjectKeyError`
98+
- added type `ReferencedResourceNotFoundError`
99+
- added type `ServiceUnavailableError`
100+
- added type `SyntaxErrorError`
101+
- added type `AutomatedReversalConfiguration`
102+
- added type `ConnectorDeploymentReference`
103+
- added type `DisplayInfo`
104+
- added type `PaginatedPaymentIntegration`
105+
- added type `PaymentComponentType`
106+
- added type `PaymentIntegration`
107+
- added type `PaymentIntegrationDraft`
108+
- added type `PaymentIntegrationStatus`
109+
- added type `PaymentIntegrationType`
110+
- added type `SortingInfo`
111+
- added type `PaymentIntegrationUpdateAction`
112+
- added type `PaymentIntegrationUpdateActions`
113+
- added type `SetAutomatedReversalConfigurationPredicateUpdateAction`
114+
- added type `SetAutomatedReversalConfigurationStatusUpdateAction`
115+
- added type `SetAutomatedReversalConfigurationUpdateAction`
116+
- added type `SetConnectorDeploymentUpdateAction`
117+
- added type `SetDisplayInfoDescriptionUpdateAction`
118+
- added type `SetDisplayInfoLabelUpdateAction`
119+
- added type `SetDisplayInfoLogoUrlUpdateAction`
120+
- added type `SetDisplayInfoPayButtonTextUpdateAction`
121+
- added type `SetDisplayInfoUpdateAction`
122+
- added type `SetKeyUpdateAction`
123+
- added type `SetNameUpdateAction`
124+
- added type `SetPredicateUpdateAction`
125+
- added type `SetSortingInfoUpdateAction`
126+
- added type `SetStatusUpdateAction`
127+
- added type `SetTypeUpdateAction`
128+
</details>
129+
130+
131+
<details>
132+
<summary>Added Enum(s)</summary>
133+
134+
- added enum `deployment` to type `ReferenceTypeId`
135+
</details>
136+
137+
138+
<details>
139+
<summary>Required Property(s)</summary>
140+
141+
- changed property `detailedErrorMessage` of type `InvalidJsonInputError` to be optional
142+
</details>
143+
144+
145+
<details>
146+
<summary>Changed Property(s)</summary>
147+
148+
- :warning: changed property `application` of type `Transaction` from type `ApplicationResourceIdentifier` to `ApplicationReference`
149+
</details>
150+
151+
152+
<details>
153+
<summary>Added Property(s)</summary>
154+
155+
- added property `resourceIdentifier` to type `ResourceNotFoundError`
156+
- added property `resourceId` to type `ResourceNotFoundError`
157+
</details>
158+
159+
160+
<details>
161+
<summary>Changed MethodResponseBody(s)</summary>
162+
163+
- :warning: changed response body for `400: application/json` of method `post /{projectKey}/transactions` from type `null` to `ErrorResponse`
164+
- :warning: changed response body for `400: application/json` of method `post /{projectKey}/payment-intents/{paymentId}` from type `null` to `ErrorResponse`
165+
- :warning: changed response body for `400: application/json` of method `get /{projectKey}/transactions/{id}` from type `null` to `ErrorResponse`
166+
- :warning: changed response body for `400: application/json` of method `get /{projectKey}/transactions/key={key}` from type `null` to `ErrorResponse`
167+
</details>
168+
169+
170+
<details>
171+
<summary>Added Method(s)</summary>
172+
173+
- added method `apiRoot.withProjectKey().paymentIntegrations().get()`
174+
- added method `apiRoot.withProjectKey().paymentIntegrations().post()`
175+
- added method `apiRoot.withProjectKey().applications().get()`
176+
- added method `apiRoot.withProjectKey().applications().post()`
177+
- added method `apiRoot.withProjectKey().paymentIntegrations().withId().get()`
178+
- added method `apiRoot.withProjectKey().paymentIntegrations().withId().head()`
179+
- added method `apiRoot.withProjectKey().paymentIntegrations().withId().post()`
180+
- added method `apiRoot.withProjectKey().paymentIntegrations().withId().delete()`
181+
- added method `apiRoot.withProjectKey().paymentIntegrations().withKey().get()`
182+
- added method `apiRoot.withProjectKey().paymentIntegrations().withKey().post()`
183+
- added method `apiRoot.withProjectKey().paymentIntegrations().withKey().head()`
184+
- added method `apiRoot.withProjectKey().paymentIntegrations().withKey().delete()`
185+
- added method `apiRoot.withProjectKey().applications().withId().get()`
186+
- added method `apiRoot.withProjectKey().applications().withId().head()`
187+
- added method `apiRoot.withProjectKey().applications().withId().post()`
188+
- added method `apiRoot.withProjectKey().applications().withId().delete()`
189+
- added method `apiRoot.withProjectKey().applications().withKey().get()`
190+
- added method `apiRoot.withProjectKey().applications().withKey().post()`
191+
- added method `apiRoot.withProjectKey().applications().withKey().head()`
192+
- added method `apiRoot.withProjectKey().applications().withKey().delete()`
193+
</details>
194+
195+
196+
<details>
197+
<summary>Added Resource(s)</summary>
198+
199+
- added resource `/{projectKey}/payment-integrations`
200+
- added resource `/{projectKey}/applications`
201+
- added resource `/{projectKey}/payment-integrations/{id}`
202+
- added resource `/{projectKey}/payment-integrations/key={key}`
203+
- added resource `/{projectKey}/applications/{id}`
204+
- added resource `/{projectKey}/applications/key={key}`
205+
</details>
206+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,143 @@
1+
2+
package com.commercetools.checkout.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.checkout.models.application.Application>> result = apiRoot
25+
* .withProjectKey("{projectKey}")
26+
* .applications()
27+
* .withId("{id}")
28+
* .delete(null)
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 ByProjectKeyApplicationsByIdDelete extends
35+
TypeBodyApiMethod<ByProjectKeyApplicationsByIdDelete, com.commercetools.checkout.models.application.Application, com.commercetools.checkout.models.application.Application>
36+
implements
37+
com.commercetools.checkout.client.Secured_by_manage_applicationsTrait<ByProjectKeyApplicationsByIdDelete> {
38+
39+
@Override
40+
public TypeReference<com.commercetools.checkout.models.application.Application> resultType() {
41+
return new TypeReference<com.commercetools.checkout.models.application.Application>() {
42+
};
43+
}
44+
45+
private String projectKey;
46+
private String id;
47+
48+
private com.commercetools.checkout.models.application.Application application;
49+
50+
public ByProjectKeyApplicationsByIdDelete(final ApiHttpClient apiHttpClient, String projectKey, String id,
51+
com.commercetools.checkout.models.application.Application application) {
52+
super(apiHttpClient);
53+
this.projectKey = projectKey;
54+
this.id = id;
55+
this.application = application;
56+
}
57+
58+
public ByProjectKeyApplicationsByIdDelete(ByProjectKeyApplicationsByIdDelete t) {
59+
super(t);
60+
this.projectKey = t.projectKey;
61+
this.id = t.id;
62+
this.application = t.application;
63+
}
64+
65+
@Override
66+
protected ApiHttpRequest buildHttpRequest() {
67+
List<String> params = new ArrayList<>(getQueryParamUriStrings());
68+
String httpRequestPath = String.format("%s/applications/%s", encodePathParam(this.projectKey),
69+
encodePathParam(this.id));
70+
if (!params.isEmpty()) {
71+
httpRequestPath += "?" + String.join("&", params);
72+
}
73+
return new ApiHttpRequest(ApiHttpMethod.DELETE, URI.create(httpRequestPath), getHeaders(),
74+
io.vrap.rmf.base.client.utils.json.JsonUtils
75+
.executing(() -> apiHttpClient().getSerializerService().toJsonByteArray(application)));
76+
77+
}
78+
79+
@Override
80+
public ApiHttpResponse<com.commercetools.checkout.models.application.Application> executeBlocking(
81+
final ApiHttpClient client, final Duration timeout) {
82+
return executeBlocking(client, timeout, com.commercetools.checkout.models.application.Application.class);
83+
}
84+
85+
@Override
86+
public CompletableFuture<ApiHttpResponse<com.commercetools.checkout.models.application.Application>> execute(
87+
final ApiHttpClient client) {
88+
return execute(client, com.commercetools.checkout.models.application.Application.class);
89+
}
90+
91+
public String getProjectKey() {
92+
return this.projectKey;
93+
}
94+
95+
public String getId() {
96+
return this.id;
97+
}
98+
99+
public void setProjectKey(final String projectKey) {
100+
this.projectKey = projectKey;
101+
}
102+
103+
public void setId(final String id) {
104+
this.id = id;
105+
}
106+
107+
public com.commercetools.checkout.models.application.Application getBody() {
108+
return application;
109+
}
110+
111+
public ByProjectKeyApplicationsByIdDelete withBody(
112+
com.commercetools.checkout.models.application.Application application) {
113+
ByProjectKeyApplicationsByIdDelete t = copy();
114+
t.application = application;
115+
return t;
116+
}
117+
118+
@Override
119+
public boolean equals(Object o) {
120+
if (this == o)
121+
return true;
122+
123+
if (o == null || getClass() != o.getClass())
124+
return false;
125+
126+
ByProjectKeyApplicationsByIdDelete that = (ByProjectKeyApplicationsByIdDelete) o;
127+
128+
return new EqualsBuilder().append(projectKey, that.projectKey)
129+
.append(id, that.id)
130+
.append(application, that.application)
131+
.isEquals();
132+
}
133+
134+
@Override
135+
public int hashCode() {
136+
return new HashCodeBuilder(17, 37).append(projectKey).append(id).append(application).toHashCode();
137+
}
138+
139+
@Override
140+
protected ByProjectKeyApplicationsByIdDelete copy() {
141+
return new ByProjectKeyApplicationsByIdDelete(this);
142+
}
143+
}

0 commit comments

Comments
 (0)