Skip to content

Commit d6d824f

Browse files
AdyenAutomationBotjeandersonbc
authored andcommitted
[configurationwebhooks] Automated update from Adyen/adyen-openapi@75b5618
1 parent ceeb349 commit d6d824f

11 files changed

Lines changed: 3687 additions & 3 deletions
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"service": "configurationwebhooks",
33
"project": "java",
4-
"generatedAt": "2026-05-14T14:22:13Z",
5-
"openapiCommitSha": "cbc5406a2df1f24d50e40742f18342f7ca7f21fc",
4+
"generatedAt": "2026-05-19T12:23:29Z",
5+
"openapiCommitSha": "75b5618c8524d3adf4c19c365400d017320c85e0",
66
"automationCommitSha": "6f06b47d0661f0891defe6b85461d2c367fbd284",
7-
"libraryCommitSha": "5790580db2f8a931a68baba2bff9760b8aed2067"
7+
"libraryCommitSha": "b155c3941b7c46a0682b3e5aa205136e7e73308a"
88
}
Lines changed: 295 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,295 @@
1+
/*
2+
* Configuration webhooks
3+
*
4+
* The version of the OpenAPI document: 2
5+
*
6+
*
7+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
8+
* https://openapi-generator.tech
9+
* Do not edit the class manually.
10+
*/
11+
12+
package com.adyen.model.configurationwebhooks;
13+
14+
import com.fasterxml.jackson.annotation.JsonCreator;
15+
import com.fasterxml.jackson.annotation.JsonInclude;
16+
import com.fasterxml.jackson.annotation.JsonProperty;
17+
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
18+
import com.fasterxml.jackson.annotation.JsonValue;
19+
import com.fasterxml.jackson.core.JsonProcessingException;
20+
import java.time.OffsetDateTime;
21+
import java.util.*;
22+
import java.util.Arrays;
23+
import java.util.logging.Logger;
24+
25+
/** AccountPayoutAutoApplicationNotificationRequest */
26+
@JsonPropertyOrder({
27+
AccountPayoutAutoApplicationNotificationRequest.JSON_PROPERTY_DATA,
28+
AccountPayoutAutoApplicationNotificationRequest.JSON_PROPERTY_ENVIRONMENT,
29+
AccountPayoutAutoApplicationNotificationRequest.JSON_PROPERTY_TIMESTAMP,
30+
AccountPayoutAutoApplicationNotificationRequest.JSON_PROPERTY_TYPE
31+
})
32+
public class AccountPayoutAutoApplicationNotificationRequest {
33+
public static final String JSON_PROPERTY_DATA = "data";
34+
private AccountPayoutAutoApplicationWebhookData data;
35+
36+
public static final String JSON_PROPERTY_ENVIRONMENT = "environment";
37+
private String environment;
38+
39+
public static final String JSON_PROPERTY_TIMESTAMP = "timestamp";
40+
private OffsetDateTime timestamp;
41+
42+
/** Type of webhook. */
43+
public enum TypeEnum {
44+
BALANCEPLATFORM_BALANCEACCOUNTPAYOUTSCHEDULEAUTOAPPLICATION_FAILED(
45+
String.valueOf("balancePlatform.balanceAccountPayoutScheduleAutoApplication.failed"));
46+
47+
private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName());
48+
49+
private String value;
50+
51+
TypeEnum(String value) {
52+
this.value = value;
53+
}
54+
55+
@JsonValue
56+
public String getValue() {
57+
return value;
58+
}
59+
60+
@Override
61+
public String toString() {
62+
return String.valueOf(value);
63+
}
64+
65+
@JsonCreator
66+
public static TypeEnum fromValue(String value) {
67+
for (TypeEnum b : TypeEnum.values()) {
68+
if (b.value.equals(value)) {
69+
return b;
70+
}
71+
}
72+
// handling unexpected value
73+
LOG.warning(
74+
"TypeEnum: unexpected enum value '"
75+
+ value
76+
+ "' - Supported values are "
77+
+ Arrays.toString(TypeEnum.values()));
78+
return null;
79+
}
80+
}
81+
82+
public static final String JSON_PROPERTY_TYPE = "type";
83+
private TypeEnum type;
84+
85+
public AccountPayoutAutoApplicationNotificationRequest() {}
86+
87+
/**
88+
* data
89+
*
90+
* @param data
91+
* @return the current {@code AccountPayoutAutoApplicationNotificationRequest} instance, allowing
92+
* for method chaining
93+
*/
94+
public AccountPayoutAutoApplicationNotificationRequest data(
95+
AccountPayoutAutoApplicationWebhookData data) {
96+
this.data = data;
97+
return this;
98+
}
99+
100+
/**
101+
* Get data
102+
*
103+
* @return data
104+
*/
105+
@JsonProperty(JSON_PROPERTY_DATA)
106+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
107+
public AccountPayoutAutoApplicationWebhookData getData() {
108+
return data;
109+
}
110+
111+
/**
112+
* data
113+
*
114+
* @param data
115+
*/
116+
@JsonProperty(JSON_PROPERTY_DATA)
117+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
118+
public void setData(AccountPayoutAutoApplicationWebhookData data) {
119+
this.data = data;
120+
}
121+
122+
/**
123+
* The environment from which the webhook originated. Possible values: **test**, **live**.
124+
*
125+
* @param environment The environment from which the webhook originated. Possible values:
126+
* **test**, **live**.
127+
* @return the current {@code AccountPayoutAutoApplicationNotificationRequest} instance, allowing
128+
* for method chaining
129+
*/
130+
public AccountPayoutAutoApplicationNotificationRequest environment(String environment) {
131+
this.environment = environment;
132+
return this;
133+
}
134+
135+
/**
136+
* The environment from which the webhook originated. Possible values: **test**, **live**.
137+
*
138+
* @return environment The environment from which the webhook originated. Possible values:
139+
* **test**, **live**.
140+
*/
141+
@JsonProperty(JSON_PROPERTY_ENVIRONMENT)
142+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
143+
public String getEnvironment() {
144+
return environment;
145+
}
146+
147+
/**
148+
* The environment from which the webhook originated. Possible values: **test**, **live**.
149+
*
150+
* @param environment The environment from which the webhook originated. Possible values:
151+
* **test**, **live**.
152+
*/
153+
@JsonProperty(JSON_PROPERTY_ENVIRONMENT)
154+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
155+
public void setEnvironment(String environment) {
156+
this.environment = environment;
157+
}
158+
159+
/**
160+
* When the event was queued.
161+
*
162+
* @param timestamp When the event was queued.
163+
* @return the current {@code AccountPayoutAutoApplicationNotificationRequest} instance, allowing
164+
* for method chaining
165+
*/
166+
public AccountPayoutAutoApplicationNotificationRequest timestamp(OffsetDateTime timestamp) {
167+
this.timestamp = timestamp;
168+
return this;
169+
}
170+
171+
/**
172+
* When the event was queued.
173+
*
174+
* @return timestamp When the event was queued.
175+
*/
176+
@JsonProperty(JSON_PROPERTY_TIMESTAMP)
177+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
178+
public OffsetDateTime getTimestamp() {
179+
return timestamp;
180+
}
181+
182+
/**
183+
* When the event was queued.
184+
*
185+
* @param timestamp When the event was queued.
186+
*/
187+
@JsonProperty(JSON_PROPERTY_TIMESTAMP)
188+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
189+
public void setTimestamp(OffsetDateTime timestamp) {
190+
this.timestamp = timestamp;
191+
}
192+
193+
/**
194+
* Type of webhook.
195+
*
196+
* @param type Type of webhook.
197+
* @return the current {@code AccountPayoutAutoApplicationNotificationRequest} instance, allowing
198+
* for method chaining
199+
*/
200+
public AccountPayoutAutoApplicationNotificationRequest type(TypeEnum type) {
201+
this.type = type;
202+
return this;
203+
}
204+
205+
/**
206+
* Type of webhook.
207+
*
208+
* @return type Type of webhook.
209+
*/
210+
@JsonProperty(JSON_PROPERTY_TYPE)
211+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
212+
public TypeEnum getType() {
213+
return type;
214+
}
215+
216+
/**
217+
* Type of webhook.
218+
*
219+
* @param type Type of webhook.
220+
*/
221+
@JsonProperty(JSON_PROPERTY_TYPE)
222+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
223+
public void setType(TypeEnum type) {
224+
this.type = type;
225+
}
226+
227+
/** Return true if this AccountPayoutAutoApplicationNotificationRequest object is equal to o. */
228+
@Override
229+
public boolean equals(Object o) {
230+
if (this == o) {
231+
return true;
232+
}
233+
if (o == null || getClass() != o.getClass()) {
234+
return false;
235+
}
236+
AccountPayoutAutoApplicationNotificationRequest
237+
accountPayoutAutoApplicationNotificationRequest =
238+
(AccountPayoutAutoApplicationNotificationRequest) o;
239+
return Objects.equals(this.data, accountPayoutAutoApplicationNotificationRequest.data)
240+
&& Objects.equals(
241+
this.environment, accountPayoutAutoApplicationNotificationRequest.environment)
242+
&& Objects.equals(this.timestamp, accountPayoutAutoApplicationNotificationRequest.timestamp)
243+
&& Objects.equals(this.type, accountPayoutAutoApplicationNotificationRequest.type);
244+
}
245+
246+
@Override
247+
public int hashCode() {
248+
return Objects.hash(data, environment, timestamp, type);
249+
}
250+
251+
@Override
252+
public String toString() {
253+
StringBuilder sb = new StringBuilder();
254+
sb.append("class AccountPayoutAutoApplicationNotificationRequest {\n");
255+
sb.append(" data: ").append(toIndentedString(data)).append("\n");
256+
sb.append(" environment: ").append(toIndentedString(environment)).append("\n");
257+
sb.append(" timestamp: ").append(toIndentedString(timestamp)).append("\n");
258+
sb.append(" type: ").append(toIndentedString(type)).append("\n");
259+
sb.append("}");
260+
return sb.toString();
261+
}
262+
263+
/**
264+
* Convert the given object to string with each line indented by 4 spaces (except the first line).
265+
*/
266+
private String toIndentedString(Object o) {
267+
if (o == null) {
268+
return "null";
269+
}
270+
return o.toString().replace("\n", "\n ");
271+
}
272+
273+
/**
274+
* Create an instance of AccountPayoutAutoApplicationNotificationRequest given an JSON string
275+
*
276+
* @param jsonString JSON string
277+
* @return An instance of AccountPayoutAutoApplicationNotificationRequest
278+
* @throws JsonProcessingException if the JSON string is invalid with respect to
279+
* AccountPayoutAutoApplicationNotificationRequest
280+
*/
281+
public static AccountPayoutAutoApplicationNotificationRequest fromJson(String jsonString)
282+
throws JsonProcessingException {
283+
return JSON.getMapper()
284+
.readValue(jsonString, AccountPayoutAutoApplicationNotificationRequest.class);
285+
}
286+
287+
/**
288+
* Convert an instance of AccountPayoutAutoApplicationNotificationRequest to an JSON string
289+
*
290+
* @return JSON string
291+
*/
292+
public String toJson() throws JsonProcessingException {
293+
return JSON.getMapper().writeValueAsString(this);
294+
}
295+
}

0 commit comments

Comments
 (0)