Skip to content

Commit 8ee789b

Browse files
authored
Merge branch 'main' into checkout-test
2 parents 64b3149 + a2d39c6 commit 8ee789b

16 files changed

Lines changed: 3202 additions & 24 deletions
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"service": "configurationwebhooks",
33
"project": "java",
4-
"generatedAt": "2026-06-02T15:30:09Z",
5-
"openapiCommitSha": "f3894fd6b47d9076841b04852378251de3bba2de",
6-
"automationCommitSha": "6f06b47d0661f0891defe6b85461d2c367fbd284",
7-
"libraryCommitSha": "9539e092f2160ca341916c804f01f0f699a64415"
4+
"generatedAt": "2026-07-23T13:25:47Z",
5+
"openapiCommitSha": "06d031500a5565d326553c6b0d14c3c79d13a1eb",
6+
"automationCommitSha": "0c108bd8050cf480d2710b78b770afdfbdd89397",
7+
"libraryCommitSha": "7f01d8c3c98591abf7cf85a4db7b7ff76aa7e66b"
88
}

src/main/java/com/adyen/model/configurationwebhooks/ConfigurationWebhooksHandler.java

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,53 @@ public Optional<ScoreNotificationRequest> getScoreNotificationRequest() {
310310
return Optional.empty();
311311
}
312312

313+
/**
314+
* Attempts to deserialize the webhook payload into a TopUpConfigurationEventRequest
315+
*
316+
* @return an Optional containing the deserialized object, or empty if deserialization fails
317+
*/
318+
public Optional<TopUpConfigurationEventRequest> getTopUpConfigurationEventRequest() {
319+
320+
var optionalTopUpConfigurationEventRequest =
321+
getOptionalField(TopUpConfigurationEventRequest.class);
322+
323+
if (optionalTopUpConfigurationEventRequest.isPresent()) {
324+
// verify event type
325+
for (var value : TopUpConfigurationEventRequest.TypeEnum.values()) {
326+
if (value.equals(optionalTopUpConfigurationEventRequest.get().getType())) {
327+
// found matching event type
328+
return optionalTopUpConfigurationEventRequest;
329+
}
330+
}
331+
}
332+
333+
return Optional.empty();
334+
}
335+
336+
/**
337+
* Attempts to deserialize the webhook payload into a TopUpConfigurationUpdatedEventRequest
338+
*
339+
* @return an Optional containing the deserialized object, or empty if deserialization fails
340+
*/
341+
public Optional<TopUpConfigurationUpdatedEventRequest>
342+
getTopUpConfigurationUpdatedEventRequest() {
343+
344+
var optionalTopUpConfigurationUpdatedEventRequest =
345+
getOptionalField(TopUpConfigurationUpdatedEventRequest.class);
346+
347+
if (optionalTopUpConfigurationUpdatedEventRequest.isPresent()) {
348+
// verify event type
349+
for (var value : TopUpConfigurationUpdatedEventRequest.TypeEnum.values()) {
350+
if (value.equals(optionalTopUpConfigurationUpdatedEventRequest.get().getType())) {
351+
// found matching event type
352+
return optionalTopUpConfigurationUpdatedEventRequest;
353+
}
354+
}
355+
}
356+
357+
return Optional.empty();
358+
}
359+
313360
/**
314361
* Deserializes the payload into the specified class type.
315362
*

src/main/java/com/adyen/model/configurationwebhooks/Mandate.java

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
1818
import com.fasterxml.jackson.annotation.JsonValue;
1919
import com.fasterxml.jackson.core.JsonProcessingException;
20+
import java.time.OffsetDateTime;
2021
import java.util.*;
2122
import java.util.Arrays;
2223
import java.util.logging.Logger;
@@ -40,7 +41,7 @@ public class Mandate {
4041
private MandateBankAccount counterparty;
4142

4243
public static final String JSON_PROPERTY_CREATED_AT = "createdAt";
43-
private Object createdAt;
44+
private OffsetDateTime createdAt;
4445

4546
public static final String JSON_PROPERTY_ID = "id";
4647
private String id;
@@ -137,7 +138,7 @@ public static TypeEnum fromValue(String value) {
137138
private TypeEnum type;
138139

139140
public static final String JSON_PROPERTY_UPDATED_AT = "updatedAt";
140-
private Object updatedAt;
141+
private OffsetDateTime updatedAt;
141142

142143
public Mandate() {}
143144

@@ -211,35 +212,35 @@ public void setCounterparty(MandateBankAccount counterparty) {
211212
}
212213

213214
/**
214-
* createdAt
215+
* The date when the mandate was created.
215216
*
216-
* @param createdAt
217+
* @param createdAt The date when the mandate was created.
217218
* @return the current {@code Mandate} instance, allowing for method chaining
218219
*/
219-
public Mandate createdAt(Object createdAt) {
220+
public Mandate createdAt(OffsetDateTime createdAt) {
220221
this.createdAt = createdAt;
221222
return this;
222223
}
223224

224225
/**
225-
* Get createdAt
226+
* The date when the mandate was created.
226227
*
227-
* @return createdAt
228+
* @return createdAt The date when the mandate was created.
228229
*/
229230
@JsonProperty(JSON_PROPERTY_CREATED_AT)
230231
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
231-
public Object getCreatedAt() {
232+
public OffsetDateTime getCreatedAt() {
232233
return createdAt;
233234
}
234235

235236
/**
236-
* createdAt
237+
* The date when the mandate was created.
237238
*
238-
* @param createdAt
239+
* @param createdAt The date when the mandate was created.
239240
*/
240241
@JsonProperty(JSON_PROPERTY_CREATED_AT)
241242
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
242-
public void setCreatedAt(Object createdAt) {
243+
public void setCreatedAt(OffsetDateTime createdAt) {
243244
this.createdAt = createdAt;
244245
}
245246

@@ -382,35 +383,35 @@ public void setType(TypeEnum type) {
382383
}
383384

384385
/**
385-
* updatedAt
386+
* The date when the mandate was updated.
386387
*
387-
* @param updatedAt
388+
* @param updatedAt The date when the mandate was updated.
388389
* @return the current {@code Mandate} instance, allowing for method chaining
389390
*/
390-
public Mandate updatedAt(Object updatedAt) {
391+
public Mandate updatedAt(OffsetDateTime updatedAt) {
391392
this.updatedAt = updatedAt;
392393
return this;
393394
}
394395

395396
/**
396-
* Get updatedAt
397+
* The date when the mandate was updated.
397398
*
398-
* @return updatedAt
399+
* @return updatedAt The date when the mandate was updated.
399400
*/
400401
@JsonProperty(JSON_PROPERTY_UPDATED_AT)
401402
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
402-
public Object getUpdatedAt() {
403+
public OffsetDateTime getUpdatedAt() {
403404
return updatedAt;
404405
}
405406

406407
/**
407-
* updatedAt
408+
* The date when the mandate was updated.
408409
*
409-
* @param updatedAt
410+
* @param updatedAt The date when the mandate was updated.
410411
*/
411412
@JsonProperty(JSON_PROPERTY_UPDATED_AT)
412413
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
413-
public void setUpdatedAt(Object updatedAt) {
414+
public void setUpdatedAt(OffsetDateTime updatedAt) {
414415
this.updatedAt = updatedAt;
415416
}
416417

src/main/java/com/adyen/model/configurationwebhooks/MandateBankAccountAccountIdentification.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,13 @@ public MandateBankAccountAccountIdentification(UKLocalMandateAccountIdentificati
152152
new GenericType<UKLocalMandateAccountIdentification>() {});
153153
JSON.registerDescendants(
154154
MandateBankAccountAccountIdentification.class, Collections.unmodifiableMap(schemas));
155+
// Initialize and register the discriminator mappings.
156+
Map<String, Class<?>> mappings = new HashMap<>();
157+
mappings.put("ukLocal", UKLocalMandateAccountIdentification.class);
158+
mappings.put("UKLocalMandateAccountIdentification", UKLocalMandateAccountIdentification.class);
159+
mappings.put(
160+
"MandateBankAccount_accountIdentification", MandateBankAccountAccountIdentification.class);
161+
JSON.registerDiscriminator(MandateBankAccountAccountIdentification.class, "type", mappings);
155162
}
156163

157164
@Override

src/main/java/com/adyen/model/configurationwebhooks/PaymentInstrumentAdditionalBankAccountIdentificationsInner.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,15 @@ public PaymentInstrumentAdditionalBankAccountIdentificationsInner(IbanAccountIde
151151
JSON.registerDescendants(
152152
PaymentInstrumentAdditionalBankAccountIdentificationsInner.class,
153153
Collections.unmodifiableMap(schemas));
154+
// Initialize and register the discriminator mappings.
155+
Map<String, Class<?>> mappings = new HashMap<>();
156+
mappings.put("iban", IbanAccountIdentification.class);
157+
mappings.put("IbanAccountIdentification", IbanAccountIdentification.class);
158+
mappings.put(
159+
"PaymentInstrument_additionalBankAccountIdentifications_inner",
160+
PaymentInstrumentAdditionalBankAccountIdentificationsInner.class);
161+
JSON.registerDiscriminator(
162+
PaymentInstrumentAdditionalBankAccountIdentificationsInner.class, "type", mappings);
154163
}
155164

156165
@Override

0 commit comments

Comments
 (0)