diff --git a/sdk-generation-log/configurationwebhooks.json b/sdk-generation-log/configurationwebhooks.json index e9d72b807..3668e6575 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-15T06:41:26Z", + "openapiCommitSha": "8ca5e35a2df8646fbed1793daeba735ebfcb821b", + "automationCommitSha": "4478bcfef1fe50149c65d560b30f1a42e9ecc14f", + "libraryCommitSha": "296425916478c4062b8f99f79b75ed0ebc526180" } 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