Skip to content

Commit 64f55e3

Browse files
AdyenAutomationBotAdyenAutomationBot
andauthored
Code generation: update services and models (#1512)
* false[adyen-sdk-automation] automated change * style(fmt): code formatted --------- Co-authored-by: AdyenAutomationBot <AdyenAutomationBot 38424300+AdyenAutomationBot@users.noreply.github.com>
1 parent ec22612 commit 64f55e3

38 files changed

+2638
-594
lines changed

src/main/java/com/adyen/model/acswebhooks/RelayedAuthenticationRequest.java

Lines changed: 208 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,29 @@
1111

1212
package com.adyen.model.acswebhooks;
1313

14+
import com.fasterxml.jackson.annotation.JsonCreator;
1415
import com.fasterxml.jackson.annotation.JsonInclude;
1516
import com.fasterxml.jackson.annotation.JsonProperty;
1617
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
18+
import com.fasterxml.jackson.annotation.JsonValue;
1719
import com.fasterxml.jackson.core.JsonProcessingException;
20+
import java.time.OffsetDateTime;
1821
import java.util.Objects;
1922

2023
/** RelayedAuthenticationRequest */
2124
@JsonPropertyOrder({
25+
RelayedAuthenticationRequest.JSON_PROPERTY_ENVIRONMENT,
2226
RelayedAuthenticationRequest.JSON_PROPERTY_ID,
2327
RelayedAuthenticationRequest.JSON_PROPERTY_PAYMENT_INSTRUMENT_ID,
24-
RelayedAuthenticationRequest.JSON_PROPERTY_PURCHASE
28+
RelayedAuthenticationRequest.JSON_PROPERTY_PURCHASE,
29+
RelayedAuthenticationRequest.JSON_PROPERTY_THREE_D_S_REQUESTOR_APP_U_R_L,
30+
RelayedAuthenticationRequest.JSON_PROPERTY_TIMESTAMP,
31+
RelayedAuthenticationRequest.JSON_PROPERTY_TYPE
2532
})
2633
public class RelayedAuthenticationRequest {
34+
public static final String JSON_PROPERTY_ENVIRONMENT = "environment";
35+
private String environment;
36+
2737
public static final String JSON_PROPERTY_ID = "id";
2838
private String id;
2939

@@ -33,8 +43,85 @@ public class RelayedAuthenticationRequest {
3343
public static final String JSON_PROPERTY_PURCHASE = "purchase";
3444
private Purchase purchase;
3545

46+
public static final String JSON_PROPERTY_THREE_D_S_REQUESTOR_APP_U_R_L = "threeDSRequestorAppURL";
47+
private String threeDSRequestorAppURL;
48+
49+
public static final String JSON_PROPERTY_TIMESTAMP = "timestamp";
50+
private OffsetDateTime timestamp;
51+
52+
/** Type of notification. */
53+
public enum TypeEnum {
54+
BALANCEPLATFORM_AUTHENTICATION_RELAYED(
55+
String.valueOf("balancePlatform.authentication.relayed"));
56+
57+
private String value;
58+
59+
TypeEnum(String value) {
60+
this.value = value;
61+
}
62+
63+
@JsonValue
64+
public String getValue() {
65+
return value;
66+
}
67+
68+
@Override
69+
public String toString() {
70+
return String.valueOf(value);
71+
}
72+
73+
@JsonCreator
74+
public static TypeEnum fromValue(String value) {
75+
for (TypeEnum b : TypeEnum.values()) {
76+
if (b.value.equals(value)) {
77+
return b;
78+
}
79+
}
80+
throw new IllegalArgumentException("Unexpected value '" + value + "'");
81+
}
82+
}
83+
84+
public static final String JSON_PROPERTY_TYPE = "type";
85+
private TypeEnum type;
86+
3687
public RelayedAuthenticationRequest() {}
3788

89+
/**
90+
* The environment from which the webhook originated. Possible values: **test**, **live**.
91+
*
92+
* @param environment The environment from which the webhook originated. Possible values:
93+
* **test**, **live**.
94+
* @return the current {@code RelayedAuthenticationRequest} instance, allowing for method chaining
95+
*/
96+
public RelayedAuthenticationRequest environment(String environment) {
97+
this.environment = environment;
98+
return this;
99+
}
100+
101+
/**
102+
* The environment from which the webhook originated. Possible values: **test**, **live**.
103+
*
104+
* @return environment The environment from which the webhook originated. Possible values:
105+
* **test**, **live**.
106+
*/
107+
@JsonProperty(JSON_PROPERTY_ENVIRONMENT)
108+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
109+
public String getEnvironment() {
110+
return environment;
111+
}
112+
113+
/**
114+
* The environment from which the webhook originated. Possible values: **test**, **live**.
115+
*
116+
* @param environment The environment from which the webhook originated. Possible values:
117+
* **test**, **live**.
118+
*/
119+
@JsonProperty(JSON_PROPERTY_ENVIRONMENT)
120+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
121+
public void setEnvironment(String environment) {
122+
this.environment = environment;
123+
}
124+
38125
/**
39126
* The unique identifier of the challenge.
40127
*
@@ -146,6 +233,111 @@ public void setPurchase(Purchase purchase) {
146233
this.purchase = purchase;
147234
}
148235

236+
/**
237+
* URL for auto-switching to the threeDS Requestor App. If not present, the threeDS Requestor App
238+
* doesn&#39;t support auto-switching.
239+
*
240+
* @param threeDSRequestorAppURL URL for auto-switching to the threeDS Requestor App. If not
241+
* present, the threeDS Requestor App doesn&#39;t support auto-switching.
242+
* @return the current {@code RelayedAuthenticationRequest} instance, allowing for method chaining
243+
*/
244+
public RelayedAuthenticationRequest threeDSRequestorAppURL(String threeDSRequestorAppURL) {
245+
this.threeDSRequestorAppURL = threeDSRequestorAppURL;
246+
return this;
247+
}
248+
249+
/**
250+
* URL for auto-switching to the threeDS Requestor App. If not present, the threeDS Requestor App
251+
* doesn&#39;t support auto-switching.
252+
*
253+
* @return threeDSRequestorAppURL URL for auto-switching to the threeDS Requestor App. If not
254+
* present, the threeDS Requestor App doesn&#39;t support auto-switching.
255+
*/
256+
@JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_APP_U_R_L)
257+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
258+
public String getThreeDSRequestorAppURL() {
259+
return threeDSRequestorAppURL;
260+
}
261+
262+
/**
263+
* URL for auto-switching to the threeDS Requestor App. If not present, the threeDS Requestor App
264+
* doesn&#39;t support auto-switching.
265+
*
266+
* @param threeDSRequestorAppURL URL for auto-switching to the threeDS Requestor App. If not
267+
* present, the threeDS Requestor App doesn&#39;t support auto-switching.
268+
*/
269+
@JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_APP_U_R_L)
270+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
271+
public void setThreeDSRequestorAppURL(String threeDSRequestorAppURL) {
272+
this.threeDSRequestorAppURL = threeDSRequestorAppURL;
273+
}
274+
275+
/**
276+
* When the event was queued.
277+
*
278+
* @param timestamp When the event was queued.
279+
* @return the current {@code RelayedAuthenticationRequest} instance, allowing for method chaining
280+
*/
281+
public RelayedAuthenticationRequest timestamp(OffsetDateTime timestamp) {
282+
this.timestamp = timestamp;
283+
return this;
284+
}
285+
286+
/**
287+
* When the event was queued.
288+
*
289+
* @return timestamp When the event was queued.
290+
*/
291+
@JsonProperty(JSON_PROPERTY_TIMESTAMP)
292+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
293+
public OffsetDateTime getTimestamp() {
294+
return timestamp;
295+
}
296+
297+
/**
298+
* When the event was queued.
299+
*
300+
* @param timestamp When the event was queued.
301+
*/
302+
@JsonProperty(JSON_PROPERTY_TIMESTAMP)
303+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
304+
public void setTimestamp(OffsetDateTime timestamp) {
305+
this.timestamp = timestamp;
306+
}
307+
308+
/**
309+
* Type of notification.
310+
*
311+
* @param type Type of notification.
312+
* @return the current {@code RelayedAuthenticationRequest} instance, allowing for method chaining
313+
*/
314+
public RelayedAuthenticationRequest type(TypeEnum type) {
315+
this.type = type;
316+
return this;
317+
}
318+
319+
/**
320+
* Type of notification.
321+
*
322+
* @return type Type of notification.
323+
*/
324+
@JsonProperty(JSON_PROPERTY_TYPE)
325+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
326+
public TypeEnum getType() {
327+
return type;
328+
}
329+
330+
/**
331+
* Type of notification.
332+
*
333+
* @param type Type of notification.
334+
*/
335+
@JsonProperty(JSON_PROPERTY_TYPE)
336+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
337+
public void setType(TypeEnum type) {
338+
this.type = type;
339+
}
340+
149341
/** Return true if this RelayedAuthenticationRequest object is equal to o. */
150342
@Override
151343
public boolean equals(Object o) {
@@ -156,26 +348,38 @@ public boolean equals(Object o) {
156348
return false;
157349
}
158350
RelayedAuthenticationRequest relayedAuthenticationRequest = (RelayedAuthenticationRequest) o;
159-
return Objects.equals(this.id, relayedAuthenticationRequest.id)
351+
return Objects.equals(this.environment, relayedAuthenticationRequest.environment)
352+
&& Objects.equals(this.id, relayedAuthenticationRequest.id)
160353
&& Objects.equals(
161354
this.paymentInstrumentId, relayedAuthenticationRequest.paymentInstrumentId)
162-
&& Objects.equals(this.purchase, relayedAuthenticationRequest.purchase);
355+
&& Objects.equals(this.purchase, relayedAuthenticationRequest.purchase)
356+
&& Objects.equals(
357+
this.threeDSRequestorAppURL, relayedAuthenticationRequest.threeDSRequestorAppURL)
358+
&& Objects.equals(this.timestamp, relayedAuthenticationRequest.timestamp)
359+
&& Objects.equals(this.type, relayedAuthenticationRequest.type);
163360
}
164361

165362
@Override
166363
public int hashCode() {
167-
return Objects.hash(id, paymentInstrumentId, purchase);
364+
return Objects.hash(
365+
environment, id, paymentInstrumentId, purchase, threeDSRequestorAppURL, timestamp, type);
168366
}
169367

170368
@Override
171369
public String toString() {
172370
StringBuilder sb = new StringBuilder();
173371
sb.append("class RelayedAuthenticationRequest {\n");
372+
sb.append(" environment: ").append(toIndentedString(environment)).append("\n");
174373
sb.append(" id: ").append(toIndentedString(id)).append("\n");
175374
sb.append(" paymentInstrumentId: ")
176375
.append(toIndentedString(paymentInstrumentId))
177376
.append("\n");
178377
sb.append(" purchase: ").append(toIndentedString(purchase)).append("\n");
378+
sb.append(" threeDSRequestorAppURL: ")
379+
.append(toIndentedString(threeDSRequestorAppURL))
380+
.append("\n");
381+
sb.append(" timestamp: ").append(toIndentedString(timestamp)).append("\n");
382+
sb.append(" type: ").append(toIndentedString(type)).append("\n");
179383
sb.append("}");
180384
return sb.toString();
181385
}

src/main/java/com/adyen/model/balanceplatform/AdditionalBankIdentification.java

Lines changed: 47 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,21 @@ public class AdditionalBankIdentification {
3030

3131
/**
3232
* The type of additional bank identification, depending on the country. Possible values: *
33-
* **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without
34-
* separators or spaces * **usRoutingNumber**: The 9-digit [routing
33+
* **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB)
34+
* code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. *
35+
* **caRoutingNumber**: The 9-digit [Canadian routing
36+
* number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without
37+
* separators or spaces. * **gbSortCode**: The 6-digit [UK sort
38+
* code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces *
39+
* **usRoutingNumber**: The 9-digit [routing
3540
* number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or
3641
* spaces.
3742
*/
3843
public enum TypeEnum {
44+
AUBSBCODE(String.valueOf("auBsbCode")),
45+
46+
CAROUTINGNUMBER(String.valueOf("caRoutingNumber")),
47+
3948
GBSORTCODE(String.valueOf("gbSortCode")),
4049

4150
USROUTINGNUMBER(String.valueOf("usRoutingNumber"));
@@ -107,13 +116,22 @@ public void setCode(String code) {
107116

108117
/**
109118
* The type of additional bank identification, depending on the country. Possible values: *
110-
* **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without
111-
* separators or spaces * **usRoutingNumber**: The 9-digit [routing
119+
* **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB)
120+
* code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. *
121+
* **caRoutingNumber**: The 9-digit [Canadian routing
122+
* number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without
123+
* separators or spaces. * **gbSortCode**: The 6-digit [UK sort
124+
* code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces *
125+
* **usRoutingNumber**: The 9-digit [routing
112126
* number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or
113127
* spaces.
114128
*
115129
* @param type The type of additional bank identification, depending on the country. Possible
116-
* values: * **gbSortCode**: The 6-digit [UK sort
130+
* values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB)
131+
* code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. *
132+
* **caRoutingNumber**: The 9-digit [Canadian routing
133+
* number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without
134+
* separators or spaces. * **gbSortCode**: The 6-digit [UK sort
117135
* code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces *
118136
* **usRoutingNumber**: The 9-digit [routing
119137
* number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or
@@ -127,13 +145,22 @@ public AdditionalBankIdentification type(TypeEnum type) {
127145

128146
/**
129147
* The type of additional bank identification, depending on the country. Possible values: *
130-
* **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without
131-
* separators or spaces * **usRoutingNumber**: The 9-digit [routing
148+
* **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB)
149+
* code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. *
150+
* **caRoutingNumber**: The 9-digit [Canadian routing
151+
* number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without
152+
* separators or spaces. * **gbSortCode**: The 6-digit [UK sort
153+
* code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces *
154+
* **usRoutingNumber**: The 9-digit [routing
132155
* number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or
133156
* spaces.
134157
*
135158
* @return type The type of additional bank identification, depending on the country. Possible
136-
* values: * **gbSortCode**: The 6-digit [UK sort
159+
* values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB)
160+
* code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. *
161+
* **caRoutingNumber**: The 9-digit [Canadian routing
162+
* number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without
163+
* separators or spaces. * **gbSortCode**: The 6-digit [UK sort
137164
* code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces *
138165
* **usRoutingNumber**: The 9-digit [routing
139166
* number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or
@@ -147,13 +174,22 @@ public TypeEnum getType() {
147174

148175
/**
149176
* The type of additional bank identification, depending on the country. Possible values: *
150-
* **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without
151-
* separators or spaces * **usRoutingNumber**: The 9-digit [routing
177+
* **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB)
178+
* code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. *
179+
* **caRoutingNumber**: The 9-digit [Canadian routing
180+
* number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without
181+
* separators or spaces. * **gbSortCode**: The 6-digit [UK sort
182+
* code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces *
183+
* **usRoutingNumber**: The 9-digit [routing
152184
* number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or
153185
* spaces.
154186
*
155187
* @param type The type of additional bank identification, depending on the country. Possible
156-
* values: * **gbSortCode**: The 6-digit [UK sort
188+
* values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB)
189+
* code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. *
190+
* **caRoutingNumber**: The 9-digit [Canadian routing
191+
* number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without
192+
* separators or spaces. * **gbSortCode**: The 6-digit [UK sort
157193
* code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces *
158194
* **usRoutingNumber**: The 9-digit [routing
159195
* number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or

0 commit comments

Comments
 (0)