From e9276434da5dd2f01dd5d9376da3316efdff7999 Mon Sep 17 00:00:00 2001 From: AdyenAutomationBot <38424300+AdyenAutomationBot@users.noreply.github.com> Date: Wed, 8 Jul 2026 18:09:51 +0000 Subject: [PATCH] [configurationwebhooks] Automated update from Adyen/adyen-openapi@3349008 --- sdk-generation-log/configurationwebhooks.json | 8 ++-- .../model/configurationwebhooks/Mandate.java | 41 ++++++++++--------- ...ndateBankAccountAccountIdentification.java | 7 ++++ ...tionalBankAccountIdentificationsInner.java | 9 ++++ 4 files changed, 41 insertions(+), 24 deletions(-) diff --git a/sdk-generation-log/configurationwebhooks.json b/sdk-generation-log/configurationwebhooks.json index e9d72b807..71c8c5c6a 100644 --- a/sdk-generation-log/configurationwebhooks.json +++ b/sdk-generation-log/configurationwebhooks.json @@ -1,8 +1,8 @@ { "service": "configurationwebhooks", "project": "java", - "generatedAt": "2026-06-02T15:30:09Z", - "openapiCommitSha": "f3894fd6b47d9076841b04852378251de3bba2de", - "automationCommitSha": "6f06b47d0661f0891defe6b85461d2c367fbd284", - "libraryCommitSha": "9539e092f2160ca341916c804f01f0f699a64415" + "generatedAt": "2026-07-08T18:09:51Z", + "openapiCommitSha": "334900842b135eb9fc1a17afebd46a4f07793aec", + "automationCommitSha": "5f1d5ab9643886ef722a2626e23afef8db5d52a6", + "libraryCommitSha": "9272fbb8dc027b507a9e88aca0a36557e80e6e52" } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/Mandate.java b/src/main/java/com/adyen/model/configurationwebhooks/Mandate.java index 45b7efe31..03a1c3772 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/Mandate.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/Mandate.java @@ -17,6 +17,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.JsonProcessingException; +import java.time.OffsetDateTime; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; @@ -40,7 +41,7 @@ public class Mandate { private MandateBankAccount counterparty; public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; - private Object createdAt; + private OffsetDateTime createdAt; public static final String JSON_PROPERTY_ID = "id"; private String id; @@ -137,7 +138,7 @@ public static TypeEnum fromValue(String value) { private TypeEnum type; public static final String JSON_PROPERTY_UPDATED_AT = "updatedAt"; - private Object updatedAt; + private OffsetDateTime updatedAt; public Mandate() {} @@ -211,35 +212,35 @@ public void setCounterparty(MandateBankAccount counterparty) { } /** - * createdAt + * The date when the mandate was created. * - * @param createdAt + * @param createdAt The date when the mandate was created. * @return the current {@code Mandate} instance, allowing for method chaining */ - public Mandate createdAt(Object createdAt) { + public Mandate createdAt(OffsetDateTime createdAt) { this.createdAt = createdAt; return this; } /** - * Get createdAt + * The date when the mandate was created. * - * @return createdAt + * @return createdAt The date when the mandate was created. */ @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Object getCreatedAt() { + public OffsetDateTime getCreatedAt() { return createdAt; } /** - * createdAt + * The date when the mandate was created. * - * @param createdAt + * @param createdAt The date when the mandate was created. */ @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCreatedAt(Object createdAt) { + public void setCreatedAt(OffsetDateTime createdAt) { this.createdAt = createdAt; } @@ -382,35 +383,35 @@ public void setType(TypeEnum type) { } /** - * updatedAt + * The date when the mandate was updated. * - * @param updatedAt + * @param updatedAt The date when the mandate was updated. * @return the current {@code Mandate} instance, allowing for method chaining */ - public Mandate updatedAt(Object updatedAt) { + public Mandate updatedAt(OffsetDateTime updatedAt) { this.updatedAt = updatedAt; return this; } /** - * Get updatedAt + * The date when the mandate was updated. * - * @return updatedAt + * @return updatedAt The date when the mandate was updated. */ @JsonProperty(JSON_PROPERTY_UPDATED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Object getUpdatedAt() { + public OffsetDateTime getUpdatedAt() { return updatedAt; } /** - * updatedAt + * The date when the mandate was updated. * - * @param updatedAt + * @param updatedAt The date when the mandate was updated. */ @JsonProperty(JSON_PROPERTY_UPDATED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUpdatedAt(Object updatedAt) { + public void setUpdatedAt(OffsetDateTime updatedAt) { this.updatedAt = updatedAt; } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/MandateBankAccountAccountIdentification.java b/src/main/java/com/adyen/model/configurationwebhooks/MandateBankAccountAccountIdentification.java index 4a1ffca1a..bf95a3302 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/MandateBankAccountAccountIdentification.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/MandateBankAccountAccountIdentification.java @@ -152,6 +152,13 @@ public MandateBankAccountAccountIdentification(UKLocalMandateAccountIdentificati new GenericType() {}); JSON.registerDescendants( MandateBankAccountAccountIdentification.class, Collections.unmodifiableMap(schemas)); + // Initialize and register the discriminator mappings. + Map> mappings = new HashMap<>(); + mappings.put("ukLocal", UKLocalMandateAccountIdentification.class); + mappings.put("UKLocalMandateAccountIdentification", UKLocalMandateAccountIdentification.class); + mappings.put( + "MandateBankAccount_accountIdentification", MandateBankAccountAccountIdentification.class); + JSON.registerDiscriminator(MandateBankAccountAccountIdentification.class, "type", mappings); } @Override diff --git a/src/main/java/com/adyen/model/configurationwebhooks/PaymentInstrumentAdditionalBankAccountIdentificationsInner.java b/src/main/java/com/adyen/model/configurationwebhooks/PaymentInstrumentAdditionalBankAccountIdentificationsInner.java index c157a56b3..f97c3213d 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/PaymentInstrumentAdditionalBankAccountIdentificationsInner.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/PaymentInstrumentAdditionalBankAccountIdentificationsInner.java @@ -151,6 +151,15 @@ public PaymentInstrumentAdditionalBankAccountIdentificationsInner(IbanAccountIde JSON.registerDescendants( PaymentInstrumentAdditionalBankAccountIdentificationsInner.class, Collections.unmodifiableMap(schemas)); + // Initialize and register the discriminator mappings. + Map> mappings = new HashMap<>(); + mappings.put("iban", IbanAccountIdentification.class); + mappings.put("IbanAccountIdentification", IbanAccountIdentification.class); + mappings.put( + "PaymentInstrument_additionalBankAccountIdentifications_inner", + PaymentInstrumentAdditionalBankAccountIdentificationsInner.class); + JSON.registerDiscriminator( + PaymentInstrumentAdditionalBankAccountIdentificationsInner.class, "type", mappings); } @Override