diff --git a/src/main/java/com/adyen/model/acswebhooks/BalancePlatformNotificationResponse.java b/src/main/java/com/adyen/model/acswebhooks/BalancePlatformNotificationResponse.java index 20876755a..88b15bd90 100644 --- a/src/main/java/com/adyen/model/acswebhooks/BalancePlatformNotificationResponse.java +++ b/src/main/java/com/adyen/model/acswebhooks/BalancePlatformNotificationResponse.java @@ -27,10 +27,10 @@ public BalancePlatformNotificationResponse() {} /** * Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). * * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). * @return the current {@code BalancePlatformNotificationResponse} instance, allowing for method * chaining */ @@ -41,10 +41,10 @@ public BalancePlatformNotificationResponse notificationResponse(String notificat /** * Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). * * @return notificationResponse Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). */ @JsonProperty(JSON_PROPERTY_NOTIFICATION_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -54,10 +54,10 @@ public String getNotificationResponse() { /** * Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). * * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). */ @JsonProperty(JSON_PROPERTY_NOTIFICATION_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/src/main/java/com/adyen/model/acswebhooks/Resource.java b/src/main/java/com/adyen/model/acswebhooks/Resource.java index c3d732f9d..37bb6def5 100644 --- a/src/main/java/com/adyen/model/acswebhooks/Resource.java +++ b/src/main/java/com/adyen/model/acswebhooks/Resource.java @@ -71,10 +71,10 @@ public void setBalancePlatform(String balancePlatform) { /** * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2020-12-18T10:15:30+01:00**. + * **2025-03-19T10:15:30+01:00**. * * @param creationDate The date and time when the event was triggered, in ISO 8601 extended - * format. For example, **2020-12-18T10:15:30+01:00**. + * format. For example, **2025-03-19T10:15:30+01:00**. * @return the current {@code Resource} instance, allowing for method chaining */ public Resource creationDate(OffsetDateTime creationDate) { @@ -84,10 +84,10 @@ public Resource creationDate(OffsetDateTime creationDate) { /** * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2020-12-18T10:15:30+01:00**. + * **2025-03-19T10:15:30+01:00**. * * @return creationDate The date and time when the event was triggered, in ISO 8601 extended - * format. For example, **2020-12-18T10:15:30+01:00**. + * format. For example, **2025-03-19T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -97,10 +97,10 @@ public OffsetDateTime getCreationDate() { /** * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2020-12-18T10:15:30+01:00**. + * **2025-03-19T10:15:30+01:00**. * * @param creationDate The date and time when the event was triggered, in ISO 8601 extended - * format. For example, **2020-12-18T10:15:30+01:00**. + * format. For example, **2025-03-19T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/src/main/java/com/adyen/model/balanceplatform/AdditionalBankIdentificationRequirement.java b/src/main/java/com/adyen/model/balanceplatform/AdditionalBankIdentificationRequirement.java new file mode 100644 index 000000000..179aea932 --- /dev/null +++ b/src/main/java/com/adyen/model/balanceplatform/AdditionalBankIdentificationRequirement.java @@ -0,0 +1,365 @@ +/* + * Configuration API + * + * The version of the OpenAPI document: 2 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.adyen.model.balanceplatform; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; + +/** AdditionalBankIdentificationRequirement */ +@JsonPropertyOrder({ + AdditionalBankIdentificationRequirement.JSON_PROPERTY_ADDITIONAL_BANK_IDENTIFICATION_TYPE, + AdditionalBankIdentificationRequirement.JSON_PROPERTY_DESCRIPTION, + AdditionalBankIdentificationRequirement.JSON_PROPERTY_TYPE +}) +public class AdditionalBankIdentificationRequirement { + /** + * The type of additional bank identification, depending on the country. Possible values: * + * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) + * code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * + * **caRoutingNumber**: The 9-digit [Canadian routing + * number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without + * separators or spaces. * **gbSortCode**: The 6-digit [UK sort + * code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * + * **usRoutingNumber**: The 9-digit [routing + * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or + * spaces. + */ + public enum AdditionalBankIdentificationTypeEnum { + AUBSBCODE(String.valueOf("auBsbCode")), + + CAROUTINGNUMBER(String.valueOf("caRoutingNumber")), + + GBSORTCODE(String.valueOf("gbSortCode")), + + USROUTINGNUMBER(String.valueOf("usRoutingNumber")); + + private static final Logger LOG = + Logger.getLogger(AdditionalBankIdentificationTypeEnum.class.getName()); + + private String value; + + AdditionalBankIdentificationTypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static AdditionalBankIdentificationTypeEnum fromValue(String value) { + for (AdditionalBankIdentificationTypeEnum b : AdditionalBankIdentificationTypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + // handling unexpected value + LOG.warning( + "AdditionalBankIdentificationTypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(AdditionalBankIdentificationTypeEnum.values())); + return null; + } + } + + public static final String JSON_PROPERTY_ADDITIONAL_BANK_IDENTIFICATION_TYPE = + "additionalBankIdentificationType"; + private AdditionalBankIdentificationTypeEnum additionalBankIdentificationType; + + public static final String JSON_PROPERTY_DESCRIPTION = "description"; + private String description; + + /** **additionalBankIdentificationRequirement** */ + public enum TypeEnum { + ADDITIONALBANKIDENTIFICATIONREQUIREMENT( + String.valueOf("additionalBankIdentificationRequirement")); + + private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + // handling unexpected value + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); + return null; + } + } + + public static final String JSON_PROPERTY_TYPE = "type"; + private TypeEnum type; + + public AdditionalBankIdentificationRequirement() {} + + /** + * The type of additional bank identification, depending on the country. Possible values: * + * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) + * code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * + * **caRoutingNumber**: The 9-digit [Canadian routing + * number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without + * separators or spaces. * **gbSortCode**: The 6-digit [UK sort + * code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * + * **usRoutingNumber**: The 9-digit [routing + * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or + * spaces. + * + * @param additionalBankIdentificationType The type of additional bank identification, depending + * on the country. Possible values: * **auBsbCode**: The 6-digit [Australian Bank State Branch + * (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. + * * **caRoutingNumber**: The 9-digit [Canadian routing + * number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without + * separators or spaces. * **gbSortCode**: The 6-digit [UK sort + * code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * + * **usRoutingNumber**: The 9-digit [routing + * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or + * spaces. + * @return the current {@code AdditionalBankIdentificationRequirement} instance, allowing for + * method chaining + */ + public AdditionalBankIdentificationRequirement additionalBankIdentificationType( + AdditionalBankIdentificationTypeEnum additionalBankIdentificationType) { + this.additionalBankIdentificationType = additionalBankIdentificationType; + return this; + } + + /** + * The type of additional bank identification, depending on the country. Possible values: * + * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) + * code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * + * **caRoutingNumber**: The 9-digit [Canadian routing + * number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without + * separators or spaces. * **gbSortCode**: The 6-digit [UK sort + * code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * + * **usRoutingNumber**: The 9-digit [routing + * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or + * spaces. + * + * @return additionalBankIdentificationType The type of additional bank identification, depending + * on the country. Possible values: * **auBsbCode**: The 6-digit [Australian Bank State Branch + * (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. + * * **caRoutingNumber**: The 9-digit [Canadian routing + * number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without + * separators or spaces. * **gbSortCode**: The 6-digit [UK sort + * code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * + * **usRoutingNumber**: The 9-digit [routing + * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or + * spaces. + */ + @JsonProperty(JSON_PROPERTY_ADDITIONAL_BANK_IDENTIFICATION_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public AdditionalBankIdentificationTypeEnum getAdditionalBankIdentificationType() { + return additionalBankIdentificationType; + } + + /** + * The type of additional bank identification, depending on the country. Possible values: * + * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) + * code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * + * **caRoutingNumber**: The 9-digit [Canadian routing + * number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without + * separators or spaces. * **gbSortCode**: The 6-digit [UK sort + * code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * + * **usRoutingNumber**: The 9-digit [routing + * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or + * spaces. + * + * @param additionalBankIdentificationType The type of additional bank identification, depending + * on the country. Possible values: * **auBsbCode**: The 6-digit [Australian Bank State Branch + * (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. + * * **caRoutingNumber**: The 9-digit [Canadian routing + * number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without + * separators or spaces. * **gbSortCode**: The 6-digit [UK sort + * code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * + * **usRoutingNumber**: The 9-digit [routing + * number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or + * spaces. + */ + @JsonProperty(JSON_PROPERTY_ADDITIONAL_BANK_IDENTIFICATION_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setAdditionalBankIdentificationType( + AdditionalBankIdentificationTypeEnum additionalBankIdentificationType) { + this.additionalBankIdentificationType = additionalBankIdentificationType; + } + + /** + * The description of the additional bank identification requirement. + * + * @param description The description of the additional bank identification requirement. + * @return the current {@code AdditionalBankIdentificationRequirement} instance, allowing for + * method chaining + */ + public AdditionalBankIdentificationRequirement description(String description) { + this.description = description; + return this; + } + + /** + * The description of the additional bank identification requirement. + * + * @return description The description of the additional bank identification requirement. + */ + @JsonProperty(JSON_PROPERTY_DESCRIPTION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getDescription() { + return description; + } + + /** + * The description of the additional bank identification requirement. + * + * @param description The description of the additional bank identification requirement. + */ + @JsonProperty(JSON_PROPERTY_DESCRIPTION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDescription(String description) { + this.description = description; + } + + /** + * **additionalBankIdentificationRequirement** + * + * @param type **additionalBankIdentificationRequirement** + * @return the current {@code AdditionalBankIdentificationRequirement} instance, allowing for + * method chaining + */ + public AdditionalBankIdentificationRequirement type(TypeEnum type) { + this.type = type; + return this; + } + + /** + * **additionalBankIdentificationRequirement** + * + * @return type **additionalBankIdentificationRequirement** + */ + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public TypeEnum getType() { + return type; + } + + /** + * **additionalBankIdentificationRequirement** + * + * @param type **additionalBankIdentificationRequirement** + */ + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setType(TypeEnum type) { + this.type = type; + } + + /** Return true if this AdditionalBankIdentificationRequirement object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AdditionalBankIdentificationRequirement additionalBankIdentificationRequirement = + (AdditionalBankIdentificationRequirement) o; + return Objects.equals( + this.additionalBankIdentificationType, + additionalBankIdentificationRequirement.additionalBankIdentificationType) + && Objects.equals(this.description, additionalBankIdentificationRequirement.description) + && Objects.equals(this.type, additionalBankIdentificationRequirement.type); + } + + @Override + public int hashCode() { + return Objects.hash(additionalBankIdentificationType, description, type); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AdditionalBankIdentificationRequirement {\n"); + sb.append(" additionalBankIdentificationType: ") + .append(toIndentedString(additionalBankIdentificationType)) + .append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Create an instance of AdditionalBankIdentificationRequirement given an JSON string + * + * @param jsonString JSON string + * @return An instance of AdditionalBankIdentificationRequirement + * @throws JsonProcessingException if the JSON string is invalid with respect to + * AdditionalBankIdentificationRequirement + */ + public static AdditionalBankIdentificationRequirement fromJson(String jsonString) + throws JsonProcessingException { + return JSON.getMapper().readValue(jsonString, AdditionalBankIdentificationRequirement.class); + } + + /** + * Convert an instance of AdditionalBankIdentificationRequirement to an JSON string + * + * @return JSON string + */ + public String toJson() throws JsonProcessingException { + return JSON.getMapper().writeValueAsString(this); + } +} diff --git a/src/main/java/com/adyen/model/balanceplatform/BalanceAccount.java b/src/main/java/com/adyen/model/balanceplatform/BalanceAccount.java index b867ea730..61c175894 100644 --- a/src/main/java/com/adyen/model/balanceplatform/BalanceAccount.java +++ b/src/main/java/com/adyen/model/balanceplatform/BalanceAccount.java @@ -130,11 +130,11 @@ public BalanceAccount( /** * The unique identifier of the [account - * holder](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/accountHolders__resParam_id) + * holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) * associated with the balance account. * * @param accountHolderId The unique identifier of the [account - * holder](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/accountHolders__resParam_id) + * holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) * associated with the balance account. * @return the current {@code BalanceAccount} instance, allowing for method chaining */ @@ -145,11 +145,11 @@ public BalanceAccount accountHolderId(String accountHolderId) { /** * The unique identifier of the [account - * holder](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/accountHolders__resParam_id) + * holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) * associated with the balance account. * * @return accountHolderId The unique identifier of the [account - * holder](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/accountHolders__resParam_id) + * holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) * associated with the balance account. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_ID) @@ -160,11 +160,11 @@ public String getAccountHolderId() { /** * The unique identifier of the [account - * holder](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/accountHolders__resParam_id) + * holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) * associated with the balance account. * * @param accountHolderId The unique identifier of the [account - * holder](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/accountHolders__resParam_id) + * holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) * associated with the balance account. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_ID) diff --git a/src/main/java/com/adyen/model/balanceplatform/BalanceAccountBase.java b/src/main/java/com/adyen/model/balanceplatform/BalanceAccountBase.java index ed183c8a0..5ffc89b49 100644 --- a/src/main/java/com/adyen/model/balanceplatform/BalanceAccountBase.java +++ b/src/main/java/com/adyen/model/balanceplatform/BalanceAccountBase.java @@ -124,11 +124,11 @@ public BalanceAccountBase( /** * The unique identifier of the [account - * holder](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/accountHolders__resParam_id) + * holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) * associated with the balance account. * * @param accountHolderId The unique identifier of the [account - * holder](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/accountHolders__resParam_id) + * holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) * associated with the balance account. * @return the current {@code BalanceAccountBase} instance, allowing for method chaining */ @@ -139,11 +139,11 @@ public BalanceAccountBase accountHolderId(String accountHolderId) { /** * The unique identifier of the [account - * holder](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/accountHolders__resParam_id) + * holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) * associated with the balance account. * * @return accountHolderId The unique identifier of the [account - * holder](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/accountHolders__resParam_id) + * holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) * associated with the balance account. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_ID) @@ -154,11 +154,11 @@ public String getAccountHolderId() { /** * The unique identifier of the [account - * holder](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/accountHolders__resParam_id) + * holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) * associated with the balance account. * * @param accountHolderId The unique identifier of the [account - * holder](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/accountHolders__resParam_id) + * holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) * associated with the balance account. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_ID) diff --git a/src/main/java/com/adyen/model/balanceplatform/BalanceAccountInfo.java b/src/main/java/com/adyen/model/balanceplatform/BalanceAccountInfo.java index a8b41c252..f708e38b7 100644 --- a/src/main/java/com/adyen/model/balanceplatform/BalanceAccountInfo.java +++ b/src/main/java/com/adyen/model/balanceplatform/BalanceAccountInfo.java @@ -68,11 +68,11 @@ public BalanceAccountInfo( /** * The unique identifier of the [account - * holder](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/accountHolders__resParam_id) + * holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) * associated with the balance account. * * @param accountHolderId The unique identifier of the [account - * holder](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/accountHolders__resParam_id) + * holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) * associated with the balance account. * @return the current {@code BalanceAccountInfo} instance, allowing for method chaining */ @@ -83,11 +83,11 @@ public BalanceAccountInfo accountHolderId(String accountHolderId) { /** * The unique identifier of the [account - * holder](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/accountHolders__resParam_id) + * holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) * associated with the balance account. * * @return accountHolderId The unique identifier of the [account - * holder](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/accountHolders__resParam_id) + * holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) * associated with the balance account. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_ID) @@ -98,11 +98,11 @@ public String getAccountHolderId() { /** * The unique identifier of the [account - * holder](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/accountHolders__resParam_id) + * holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) * associated with the balance account. * * @param accountHolderId The unique identifier of the [account - * holder](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/accountHolders__resParam_id) + * holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) * associated with the balance account. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_ID) diff --git a/src/main/java/com/adyen/model/balanceplatform/BalanceAccountUpdateRequest.java b/src/main/java/com/adyen/model/balanceplatform/BalanceAccountUpdateRequest.java index 4bd2ecb8a..5cd3126b2 100644 --- a/src/main/java/com/adyen/model/balanceplatform/BalanceAccountUpdateRequest.java +++ b/src/main/java/com/adyen/model/balanceplatform/BalanceAccountUpdateRequest.java @@ -109,11 +109,11 @@ public BalanceAccountUpdateRequest() {} /** * The unique identifier of the [account - * holder](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/accountHolders__resParam_id) + * holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) * associated with the balance account. * * @param accountHolderId The unique identifier of the [account - * holder](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/accountHolders__resParam_id) + * holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) * associated with the balance account. * @return the current {@code BalanceAccountUpdateRequest} instance, allowing for method chaining */ @@ -124,11 +124,11 @@ public BalanceAccountUpdateRequest accountHolderId(String accountHolderId) { /** * The unique identifier of the [account - * holder](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/accountHolders__resParam_id) + * holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) * associated with the balance account. * * @return accountHolderId The unique identifier of the [account - * holder](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/accountHolders__resParam_id) + * holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) * associated with the balance account. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_ID) @@ -139,11 +139,11 @@ public String getAccountHolderId() { /** * The unique identifier of the [account - * holder](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/accountHolders__resParam_id) + * holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) * associated with the balance account. * * @param accountHolderId The unique identifier of the [account - * holder](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/accountHolders__resParam_id) + * holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) * associated with the balance account. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_ID) diff --git a/src/main/java/com/adyen/model/balanceplatform/Card.java b/src/main/java/com/adyen/model/balanceplatform/Card.java index 7352f26e0..c80794462 100644 --- a/src/main/java/com/adyen/model/balanceplatform/Card.java +++ b/src/main/java/com/adyen/model/balanceplatform/Card.java @@ -35,7 +35,8 @@ Card.JSON_PROPERTY_FORM_FACTOR, Card.JSON_PROPERTY_LAST_FOUR, Card.JSON_PROPERTY_NUMBER, - Card.JSON_PROPERTY_THREE_D_SECURE + Card.JSON_PROPERTY_THREE_D_SECURE, + Card.JSON_PROPERTY_USAGE }) public class Card { public static final String JSON_PROPERTY_AUTHENTICATION = "authentication"; @@ -120,6 +121,9 @@ public static FormFactorEnum fromValue(String value) { public static final String JSON_PROPERTY_THREE_D_SECURE = "threeDSecure"; private String threeDSecure; + public static final String JSON_PROPERTY_USAGE = "usage"; + private String usage; + public Card() {} @JsonCreator @@ -567,6 +571,48 @@ public void setThreeDSecure(String threeDSecure) { this.threeDSecure = threeDSecure; } + /** + * Specifies how many times the card can be used. Possible values: **singleUse**, **multiUse**. + * > Reach out to your Adyen contact to determine the value relevant for your integration. + * + * @param usage Specifies how many times the card can be used. Possible values: **singleUse**, + * **multiUse**. > Reach out to your Adyen contact to determine the value relevant for your + * integration. + * @return the current {@code Card} instance, allowing for method chaining + */ + public Card usage(String usage) { + this.usage = usage; + return this; + } + + /** + * Specifies how many times the card can be used. Possible values: **singleUse**, **multiUse**. + * > Reach out to your Adyen contact to determine the value relevant for your integration. + * + * @return usage Specifies how many times the card can be used. Possible values: **singleUse**, + * **multiUse**. > Reach out to your Adyen contact to determine the value relevant for your + * integration. + */ + @JsonProperty(JSON_PROPERTY_USAGE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getUsage() { + return usage; + } + + /** + * Specifies how many times the card can be used. Possible values: **singleUse**, **multiUse**. + * > Reach out to your Adyen contact to determine the value relevant for your integration. + * + * @param usage Specifies how many times the card can be used. Possible values: **singleUse**, + * **multiUse**. > Reach out to your Adyen contact to determine the value relevant for your + * integration. + */ + @JsonProperty(JSON_PROPERTY_USAGE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUsage(String usage) { + this.usage = usage; + } + /** Return true if this Card object is equal to o. */ @Override public boolean equals(Object o) { @@ -589,7 +635,8 @@ public boolean equals(Object o) { && Objects.equals(this.formFactor, card.formFactor) && Objects.equals(this.lastFour, card.lastFour) && Objects.equals(this.number, card.number) - && Objects.equals(this.threeDSecure, card.threeDSecure); + && Objects.equals(this.threeDSecure, card.threeDSecure) + && Objects.equals(this.usage, card.usage); } @Override @@ -607,7 +654,8 @@ public int hashCode() { formFactor, lastFour, number, - threeDSecure); + threeDSecure, + usage); } @Override @@ -627,6 +675,7 @@ public String toString() { sb.append(" lastFour: ").append(toIndentedString(lastFour)).append("\n"); sb.append(" number: ").append(toIndentedString(number)).append("\n"); sb.append(" threeDSecure: ").append(toIndentedString(threeDSecure)).append("\n"); + sb.append(" usage: ").append(toIndentedString(usage)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/adyen/model/balanceplatform/CardInfo.java b/src/main/java/com/adyen/model/balanceplatform/CardInfo.java index a5fc9852d..672469bfb 100644 --- a/src/main/java/com/adyen/model/balanceplatform/CardInfo.java +++ b/src/main/java/com/adyen/model/balanceplatform/CardInfo.java @@ -30,7 +30,8 @@ CardInfo.JSON_PROPERTY_CONFIGURATION, CardInfo.JSON_PROPERTY_DELIVERY_CONTACT, CardInfo.JSON_PROPERTY_FORM_FACTOR, - CardInfo.JSON_PROPERTY_THREE_D_SECURE + CardInfo.JSON_PROPERTY_THREE_D_SECURE, + CardInfo.JSON_PROPERTY_USAGE }) public class CardInfo { public static final String JSON_PROPERTY_AUTHENTICATION = "authentication"; @@ -100,6 +101,9 @@ public static FormFactorEnum fromValue(String value) { public static final String JSON_PROPERTY_THREE_D_SECURE = "threeDSecure"; private String threeDSecure; + public static final String JSON_PROPERTY_USAGE = "usage"; + private String usage; + public CardInfo() {} /** @@ -390,6 +394,48 @@ public void setThreeDSecure(String threeDSecure) { this.threeDSecure = threeDSecure; } + /** + * Specifies how many times the card can be used. Possible values: **singleUse**, **multiUse**. + * > Reach out to your Adyen contact to determine the value relevant for your integration. + * + * @param usage Specifies how many times the card can be used. Possible values: **singleUse**, + * **multiUse**. > Reach out to your Adyen contact to determine the value relevant for your + * integration. + * @return the current {@code CardInfo} instance, allowing for method chaining + */ + public CardInfo usage(String usage) { + this.usage = usage; + return this; + } + + /** + * Specifies how many times the card can be used. Possible values: **singleUse**, **multiUse**. + * > Reach out to your Adyen contact to determine the value relevant for your integration. + * + * @return usage Specifies how many times the card can be used. Possible values: **singleUse**, + * **multiUse**. > Reach out to your Adyen contact to determine the value relevant for your + * integration. + */ + @JsonProperty(JSON_PROPERTY_USAGE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getUsage() { + return usage; + } + + /** + * Specifies how many times the card can be used. Possible values: **singleUse**, **multiUse**. + * > Reach out to your Adyen contact to determine the value relevant for your integration. + * + * @param usage Specifies how many times the card can be used. Possible values: **singleUse**, + * **multiUse**. > Reach out to your Adyen contact to determine the value relevant for your + * integration. + */ + @JsonProperty(JSON_PROPERTY_USAGE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUsage(String usage) { + this.usage = usage; + } + /** Return true if this CardInfo object is equal to o. */ @Override public boolean equals(Object o) { @@ -407,7 +453,8 @@ public boolean equals(Object o) { && Objects.equals(this.configuration, cardInfo.configuration) && Objects.equals(this.deliveryContact, cardInfo.deliveryContact) && Objects.equals(this.formFactor, cardInfo.formFactor) - && Objects.equals(this.threeDSecure, cardInfo.threeDSecure); + && Objects.equals(this.threeDSecure, cardInfo.threeDSecure) + && Objects.equals(this.usage, cardInfo.usage); } @Override @@ -420,7 +467,8 @@ public int hashCode() { configuration, deliveryContact, formFactor, - threeDSecure); + threeDSecure, + usage); } @Override @@ -435,6 +483,7 @@ public String toString() { sb.append(" deliveryContact: ").append(toIndentedString(deliveryContact)).append("\n"); sb.append(" formFactor: ").append(toIndentedString(formFactor)).append("\n"); sb.append(" threeDSecure: ").append(toIndentedString(threeDSecure)).append("\n"); + sb.append(" usage: ").append(toIndentedString(usage)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/adyen/model/balanceplatform/CardOrderItem.java b/src/main/java/com/adyen/model/balanceplatform/CardOrderItem.java index 148e7e7d1..94ea7a405 100644 --- a/src/main/java/com/adyen/model/balanceplatform/CardOrderItem.java +++ b/src/main/java/com/adyen/model/balanceplatform/CardOrderItem.java @@ -164,10 +164,10 @@ public void setCardOrderItemId(String cardOrderItemId) { /** * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2020-12-18T10:15:30+01:00**. + * **2025-03-19T10:15:30+01:00**. * * @param creationDate The date and time when the event was triggered, in ISO 8601 extended - * format. For example, **2020-12-18T10:15:30+01:00**. + * format. For example, **2025-03-19T10:15:30+01:00**. * @return the current {@code CardOrderItem} instance, allowing for method chaining */ public CardOrderItem creationDate(OffsetDateTime creationDate) { @@ -177,10 +177,10 @@ public CardOrderItem creationDate(OffsetDateTime creationDate) { /** * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2020-12-18T10:15:30+01:00**. + * **2025-03-19T10:15:30+01:00**. * * @return creationDate The date and time when the event was triggered, in ISO 8601 extended - * format. For example, **2020-12-18T10:15:30+01:00**. + * format. For example, **2025-03-19T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -190,10 +190,10 @@ public OffsetDateTime getCreationDate() { /** * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2020-12-18T10:15:30+01:00**. + * **2025-03-19T10:15:30+01:00**. * * @param creationDate The date and time when the event was triggered, in ISO 8601 extended - * format. For example, **2020-12-18T10:15:30+01:00**. + * format. For example, **2025-03-19T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/src/main/java/com/adyen/model/balanceplatform/CreateSweepConfigurationV2.java b/src/main/java/com/adyen/model/balanceplatform/CreateSweepConfigurationV2.java index 2ea0e68fd..216b62e90 100644 --- a/src/main/java/com/adyen/model/balanceplatform/CreateSweepConfigurationV2.java +++ b/src/main/java/com/adyen/model/balanceplatform/CreateSweepConfigurationV2.java @@ -162,6 +162,8 @@ public enum ReasonEnum { AMOUNTLIMITEXCEEDED(String.valueOf("amountLimitExceeded")), + APPROVALEXPIRED(String.valueOf("approvalExpired")), + APPROVED(String.valueOf("approved")), BALANCEACCOUNTTEMPORARILYBLOCKEDBYTRANSACTIONRULE( diff --git a/src/main/java/com/adyen/model/balanceplatform/NetworkToken.java b/src/main/java/com/adyen/model/balanceplatform/NetworkToken.java index f289cf2c9..10a5f39d0 100644 --- a/src/main/java/com/adyen/model/balanceplatform/NetworkToken.java +++ b/src/main/java/com/adyen/model/balanceplatform/NetworkToken.java @@ -154,11 +154,11 @@ public void setBrandVariant(String brandVariant) { /** * Date and time when the network token was created, in [ISO * 8601](https://www.iso.org/iso-8601-date-and-time-format.html) extended format. For example, - * **2020-12-18T10:15:30+01:00**.. + * **2025-03-19T10:15:30+01:00**.. * * @param creationDate Date and time when the network token was created, in [ISO * 8601](https://www.iso.org/iso-8601-date-and-time-format.html) extended format. For example, - * **2020-12-18T10:15:30+01:00**.. + * **2025-03-19T10:15:30+01:00**.. * @return the current {@code NetworkToken} instance, allowing for method chaining */ public NetworkToken creationDate(OffsetDateTime creationDate) { @@ -169,11 +169,11 @@ public NetworkToken creationDate(OffsetDateTime creationDate) { /** * Date and time when the network token was created, in [ISO * 8601](https://www.iso.org/iso-8601-date-and-time-format.html) extended format. For example, - * **2020-12-18T10:15:30+01:00**.. + * **2025-03-19T10:15:30+01:00**.. * * @return creationDate Date and time when the network token was created, in [ISO * 8601](https://www.iso.org/iso-8601-date-and-time-format.html) extended format. For example, - * **2020-12-18T10:15:30+01:00**.. + * **2025-03-19T10:15:30+01:00**.. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -184,11 +184,11 @@ public OffsetDateTime getCreationDate() { /** * Date and time when the network token was created, in [ISO * 8601](https://www.iso.org/iso-8601-date-and-time-format.html) extended format. For example, - * **2020-12-18T10:15:30+01:00**.. + * **2025-03-19T10:15:30+01:00**.. * * @param creationDate Date and time when the network token was created, in [ISO * 8601](https://www.iso.org/iso-8601-date-and-time-format.html) extended format. For example, - * **2020-12-18T10:15:30+01:00**.. + * **2025-03-19T10:15:30+01:00**.. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/src/main/java/com/adyen/model/balanceplatform/NetworkTokenActivationDataRequest.java b/src/main/java/com/adyen/model/balanceplatform/NetworkTokenActivationDataRequest.java index 411411a06..33a0c67e4 100644 --- a/src/main/java/com/adyen/model/balanceplatform/NetworkTokenActivationDataRequest.java +++ b/src/main/java/com/adyen/model/balanceplatform/NetworkTokenActivationDataRequest.java @@ -27,13 +27,13 @@ public NetworkTokenActivationDataRequest() {} /** * A block of data automatically generated by Adyen's SDK for network token provisioning. This - * `sdkInput` is required to create provisioning data for the network token. For more + * `sdkOutput` is required to create provisioning data for the network token. For more * information, see the repositories for Adyen's SDKs for network token provisioning: * [Adyen * Apple Pay Provisioning SDK](https://github.com/Adyen/adyen-apple-pay-provisioning-ios). * * [Adyen Google Wallet Provisioning SDK](https://github.com/Adyen/adyen-issuing-android) * * @param sdkOutput A block of data automatically generated by Adyen's SDK for network token - * provisioning. This `sdkInput` is required to create provisioning data for the + * provisioning. This `sdkOutput` is required to create provisioning data for the * network token. For more information, see the repositories for Adyen's SDKs for network * token provisioning: * [Adyen Apple Pay Provisioning * SDK](https://github.com/Adyen/adyen-apple-pay-provisioning-ios). * [Adyen Google Wallet @@ -48,13 +48,13 @@ public NetworkTokenActivationDataRequest sdkOutput(String sdkOutput) { /** * A block of data automatically generated by Adyen's SDK for network token provisioning. This - * `sdkInput` is required to create provisioning data for the network token. For more + * `sdkOutput` is required to create provisioning data for the network token. For more * information, see the repositories for Adyen's SDKs for network token provisioning: * [Adyen * Apple Pay Provisioning SDK](https://github.com/Adyen/adyen-apple-pay-provisioning-ios). * * [Adyen Google Wallet Provisioning SDK](https://github.com/Adyen/adyen-issuing-android) * * @return sdkOutput A block of data automatically generated by Adyen's SDK for network token - * provisioning. This `sdkInput` is required to create provisioning data for the + * provisioning. This `sdkOutput` is required to create provisioning data for the * network token. For more information, see the repositories for Adyen's SDKs for network * token provisioning: * [Adyen Apple Pay Provisioning * SDK](https://github.com/Adyen/adyen-apple-pay-provisioning-ios). * [Adyen Google Wallet @@ -68,13 +68,13 @@ public String getSdkOutput() { /** * A block of data automatically generated by Adyen's SDK for network token provisioning. This - * `sdkInput` is required to create provisioning data for the network token. For more + * `sdkOutput` is required to create provisioning data for the network token. For more * information, see the repositories for Adyen's SDKs for network token provisioning: * [Adyen * Apple Pay Provisioning SDK](https://github.com/Adyen/adyen-apple-pay-provisioning-ios). * * [Adyen Google Wallet Provisioning SDK](https://github.com/Adyen/adyen-issuing-android) * * @param sdkOutput A block of data automatically generated by Adyen's SDK for network token - * provisioning. This `sdkInput` is required to create provisioning data for the + * provisioning. This `sdkOutput` is required to create provisioning data for the * network token. For more information, see the repositories for Adyen's SDKs for network * token provisioning: * [Adyen Apple Pay Provisioning * SDK](https://github.com/Adyen/adyen-apple-pay-provisioning-ios). * [Adyen Google Wallet diff --git a/src/main/java/com/adyen/model/balanceplatform/NetworkTokenActivationDataResponse.java b/src/main/java/com/adyen/model/balanceplatform/NetworkTokenActivationDataResponse.java index 1ebf24279..27bd58cba 100644 --- a/src/main/java/com/adyen/model/balanceplatform/NetworkTokenActivationDataResponse.java +++ b/src/main/java/com/adyen/model/balanceplatform/NetworkTokenActivationDataResponse.java @@ -26,15 +26,16 @@ public class NetworkTokenActivationDataResponse { public NetworkTokenActivationDataResponse() {} /** - * A block of data automatically generated by Adyen's SDK for network token provisioning. This - * `sdkInput` is required to create provisioning data for the network token. For more - * information, see the repositories for Adyen's SDKs for network token provisioning: * [Adyen - * Apple Pay Provisioning SDK](https://github.com/Adyen/adyen-apple-pay-provisioning-ios). * - * [Adyen Google Wallet Provisioning SDK](https://github.com/Adyen/adyen-issuing-android) + * A block of data that contains the activation data for a network token. This + * `sdkInput` is required to initialize Adyen's SDK for network token provisioning. + * For more information, see the repositories for Adyen's SDKs for network token provisioning: + * * [Adyen Apple Pay Provisioning + * SDK](https://github.com/Adyen/adyen-apple-pay-provisioning-ios). * [Adyen Google Wallet + * Provisioning SDK](https://github.com/Adyen/adyen-issuing-android) * - * @param sdkInput A block of data automatically generated by Adyen's SDK for network token - * provisioning. This `sdkInput` is required to create provisioning data for the - * network token. For more information, see the repositories for Adyen's SDKs for network + * @param sdkInput A block of data that contains the activation data for a network token. This + * `sdkInput` is required to initialize Adyen's SDK for network token + * provisioning. For more information, see the repositories for Adyen's SDKs for network * token provisioning: * [Adyen Apple Pay Provisioning * SDK](https://github.com/Adyen/adyen-apple-pay-provisioning-ios). * [Adyen Google Wallet * Provisioning SDK](https://github.com/Adyen/adyen-issuing-android) @@ -47,15 +48,16 @@ public NetworkTokenActivationDataResponse sdkInput(String sdkInput) { } /** - * A block of data automatically generated by Adyen's SDK for network token provisioning. This - * `sdkInput` is required to create provisioning data for the network token. For more - * information, see the repositories for Adyen's SDKs for network token provisioning: * [Adyen - * Apple Pay Provisioning SDK](https://github.com/Adyen/adyen-apple-pay-provisioning-ios). * - * [Adyen Google Wallet Provisioning SDK](https://github.com/Adyen/adyen-issuing-android) + * A block of data that contains the activation data for a network token. This + * `sdkInput` is required to initialize Adyen's SDK for network token provisioning. + * For more information, see the repositories for Adyen's SDKs for network token provisioning: + * * [Adyen Apple Pay Provisioning + * SDK](https://github.com/Adyen/adyen-apple-pay-provisioning-ios). * [Adyen Google Wallet + * Provisioning SDK](https://github.com/Adyen/adyen-issuing-android) * - * @return sdkInput A block of data automatically generated by Adyen's SDK for network token - * provisioning. This `sdkInput` is required to create provisioning data for the - * network token. For more information, see the repositories for Adyen's SDKs for network + * @return sdkInput A block of data that contains the activation data for a network token. This + * `sdkInput` is required to initialize Adyen's SDK for network token + * provisioning. For more information, see the repositories for Adyen's SDKs for network * token provisioning: * [Adyen Apple Pay Provisioning * SDK](https://github.com/Adyen/adyen-apple-pay-provisioning-ios). * [Adyen Google Wallet * Provisioning SDK](https://github.com/Adyen/adyen-issuing-android) @@ -67,15 +69,16 @@ public String getSdkInput() { } /** - * A block of data automatically generated by Adyen's SDK for network token provisioning. This - * `sdkInput` is required to create provisioning data for the network token. For more - * information, see the repositories for Adyen's SDKs for network token provisioning: * [Adyen - * Apple Pay Provisioning SDK](https://github.com/Adyen/adyen-apple-pay-provisioning-ios). * - * [Adyen Google Wallet Provisioning SDK](https://github.com/Adyen/adyen-issuing-android) + * A block of data that contains the activation data for a network token. This + * `sdkInput` is required to initialize Adyen's SDK for network token provisioning. + * For more information, see the repositories for Adyen's SDKs for network token provisioning: + * * [Adyen Apple Pay Provisioning + * SDK](https://github.com/Adyen/adyen-apple-pay-provisioning-ios). * [Adyen Google Wallet + * Provisioning SDK](https://github.com/Adyen/adyen-issuing-android) * - * @param sdkInput A block of data automatically generated by Adyen's SDK for network token - * provisioning. This `sdkInput` is required to create provisioning data for the - * network token. For more information, see the repositories for Adyen's SDKs for network + * @param sdkInput A block of data that contains the activation data for a network token. This + * `sdkInput` is required to initialize Adyen's SDK for network token + * provisioning. For more information, see the repositories for Adyen's SDKs for network * token provisioning: * [Adyen Apple Pay Provisioning * SDK](https://github.com/Adyen/adyen-apple-pay-provisioning-ios). * [Adyen Google Wallet * Provisioning SDK](https://github.com/Adyen/adyen-issuing-android) diff --git a/src/main/java/com/adyen/model/balanceplatform/SweepConfigurationV2.java b/src/main/java/com/adyen/model/balanceplatform/SweepConfigurationV2.java index 39f9cfcb2..08b97b895 100644 --- a/src/main/java/com/adyen/model/balanceplatform/SweepConfigurationV2.java +++ b/src/main/java/com/adyen/model/balanceplatform/SweepConfigurationV2.java @@ -166,6 +166,8 @@ public enum ReasonEnum { AMOUNTLIMITEXCEEDED(String.valueOf("amountLimitExceeded")), + APPROVALEXPIRED(String.valueOf("approvalExpired")), + APPROVED(String.valueOf("approved")), BALANCEACCOUNTTEMPORARILYBLOCKEDBYTRANSACTIONRULE( diff --git a/src/main/java/com/adyen/model/balanceplatform/TransactionRule.java b/src/main/java/com/adyen/model/balanceplatform/TransactionRule.java index 49c8b98b4..c9473bd3a 100644 --- a/src/main/java/com/adyen/model/balanceplatform/TransactionRule.java +++ b/src/main/java/com/adyen/model/balanceplatform/TransactionRule.java @@ -380,11 +380,11 @@ public void setDescription(String description) { /** * The date when the rule will stop being evaluated, in ISO 8601 extended offset date-time format. - * For example, **2020-12-18T10:15:30+01:00**. If not provided, the rule will be evaluated until + * For example, **2025-03-19T10:15:30+01:00**. If not provided, the rule will be evaluated until * the rule status is set to **inactive**. * * @param endDate The date when the rule will stop being evaluated, in ISO 8601 extended offset - * date-time format. For example, **2020-12-18T10:15:30+01:00**. If not provided, the rule + * date-time format. For example, **2025-03-19T10:15:30+01:00**. If not provided, the rule * will be evaluated until the rule status is set to **inactive**. * @return the current {@code TransactionRule} instance, allowing for method chaining */ @@ -395,11 +395,11 @@ public TransactionRule endDate(String endDate) { /** * The date when the rule will stop being evaluated, in ISO 8601 extended offset date-time format. - * For example, **2020-12-18T10:15:30+01:00**. If not provided, the rule will be evaluated until + * For example, **2025-03-19T10:15:30+01:00**. If not provided, the rule will be evaluated until * the rule status is set to **inactive**. * * @return endDate The date when the rule will stop being evaluated, in ISO 8601 extended offset - * date-time format. For example, **2020-12-18T10:15:30+01:00**. If not provided, the rule + * date-time format. For example, **2025-03-19T10:15:30+01:00**. If not provided, the rule * will be evaluated until the rule status is set to **inactive**. */ @JsonProperty(JSON_PROPERTY_END_DATE) @@ -410,11 +410,11 @@ public String getEndDate() { /** * The date when the rule will stop being evaluated, in ISO 8601 extended offset date-time format. - * For example, **2020-12-18T10:15:30+01:00**. If not provided, the rule will be evaluated until + * For example, **2025-03-19T10:15:30+01:00**. If not provided, the rule will be evaluated until * the rule status is set to **inactive**. * * @param endDate The date when the rule will stop being evaluated, in ISO 8601 extended offset - * date-time format. For example, **2020-12-18T10:15:30+01:00**. If not provided, the rule + * date-time format. For example, **2025-03-19T10:15:30+01:00**. If not provided, the rule * will be evaluated until the rule status is set to **inactive**. */ @JsonProperty(JSON_PROPERTY_END_DATE) @@ -743,11 +743,11 @@ public void setScore(Integer score) { /** * The date when the rule will start to be evaluated, in ISO 8601 extended offset date-time - * format. For example, **2020-12-18T10:15:30+01:00**. If not provided when creating a transaction + * format. For example, **2025-03-19T10:15:30+01:00**. If not provided when creating a transaction * rule, the `startDate` is set to the date when the rule status is set to **active**. * * @param startDate The date when the rule will start to be evaluated, in ISO 8601 extended offset - * date-time format. For example, **2020-12-18T10:15:30+01:00**. If not provided when creating + * date-time format. For example, **2025-03-19T10:15:30+01:00**. If not provided when creating * a transaction rule, the `startDate` is set to the date when the rule status is * set to **active**. * @return the current {@code TransactionRule} instance, allowing for method chaining @@ -759,11 +759,11 @@ public TransactionRule startDate(String startDate) { /** * The date when the rule will start to be evaluated, in ISO 8601 extended offset date-time - * format. For example, **2020-12-18T10:15:30+01:00**. If not provided when creating a transaction + * format. For example, **2025-03-19T10:15:30+01:00**. If not provided when creating a transaction * rule, the `startDate` is set to the date when the rule status is set to **active**. * * @return startDate The date when the rule will start to be evaluated, in ISO 8601 extended - * offset date-time format. For example, **2020-12-18T10:15:30+01:00**. If not provided when + * offset date-time format. For example, **2025-03-19T10:15:30+01:00**. If not provided when * creating a transaction rule, the `startDate` is set to the date when the rule * status is set to **active**. */ @@ -775,11 +775,11 @@ public String getStartDate() { /** * The date when the rule will start to be evaluated, in ISO 8601 extended offset date-time - * format. For example, **2020-12-18T10:15:30+01:00**. If not provided when creating a transaction + * format. For example, **2025-03-19T10:15:30+01:00**. If not provided when creating a transaction * rule, the `startDate` is set to the date when the rule status is set to **active**. * * @param startDate The date when the rule will start to be evaluated, in ISO 8601 extended offset - * date-time format. For example, **2020-12-18T10:15:30+01:00**. If not provided when creating + * date-time format. For example, **2025-03-19T10:15:30+01:00**. If not provided when creating * a transaction rule, the `startDate` is set to the date when the rule status is * set to **active**. */ diff --git a/src/main/java/com/adyen/model/balanceplatform/TransactionRuleInfo.java b/src/main/java/com/adyen/model/balanceplatform/TransactionRuleInfo.java index be5ce649f..5a380710e 100644 --- a/src/main/java/com/adyen/model/balanceplatform/TransactionRuleInfo.java +++ b/src/main/java/com/adyen/model/balanceplatform/TransactionRuleInfo.java @@ -376,11 +376,11 @@ public void setDescription(String description) { /** * The date when the rule will stop being evaluated, in ISO 8601 extended offset date-time format. - * For example, **2020-12-18T10:15:30+01:00**. If not provided, the rule will be evaluated until + * For example, **2025-03-19T10:15:30+01:00**. If not provided, the rule will be evaluated until * the rule status is set to **inactive**. * * @param endDate The date when the rule will stop being evaluated, in ISO 8601 extended offset - * date-time format. For example, **2020-12-18T10:15:30+01:00**. If not provided, the rule + * date-time format. For example, **2025-03-19T10:15:30+01:00**. If not provided, the rule * will be evaluated until the rule status is set to **inactive**. * @return the current {@code TransactionRuleInfo} instance, allowing for method chaining */ @@ -391,11 +391,11 @@ public TransactionRuleInfo endDate(String endDate) { /** * The date when the rule will stop being evaluated, in ISO 8601 extended offset date-time format. - * For example, **2020-12-18T10:15:30+01:00**. If not provided, the rule will be evaluated until + * For example, **2025-03-19T10:15:30+01:00**. If not provided, the rule will be evaluated until * the rule status is set to **inactive**. * * @return endDate The date when the rule will stop being evaluated, in ISO 8601 extended offset - * date-time format. For example, **2020-12-18T10:15:30+01:00**. If not provided, the rule + * date-time format. For example, **2025-03-19T10:15:30+01:00**. If not provided, the rule * will be evaluated until the rule status is set to **inactive**. */ @JsonProperty(JSON_PROPERTY_END_DATE) @@ -406,11 +406,11 @@ public String getEndDate() { /** * The date when the rule will stop being evaluated, in ISO 8601 extended offset date-time format. - * For example, **2020-12-18T10:15:30+01:00**. If not provided, the rule will be evaluated until + * For example, **2025-03-19T10:15:30+01:00**. If not provided, the rule will be evaluated until * the rule status is set to **inactive**. * * @param endDate The date when the rule will stop being evaluated, in ISO 8601 extended offset - * date-time format. For example, **2020-12-18T10:15:30+01:00**. If not provided, the rule + * date-time format. For example, **2025-03-19T10:15:30+01:00**. If not provided, the rule * will be evaluated until the rule status is set to **inactive**. */ @JsonProperty(JSON_PROPERTY_END_DATE) @@ -706,11 +706,11 @@ public void setScore(Integer score) { /** * The date when the rule will start to be evaluated, in ISO 8601 extended offset date-time - * format. For example, **2020-12-18T10:15:30+01:00**. If not provided when creating a transaction + * format. For example, **2025-03-19T10:15:30+01:00**. If not provided when creating a transaction * rule, the `startDate` is set to the date when the rule status is set to **active**. * * @param startDate The date when the rule will start to be evaluated, in ISO 8601 extended offset - * date-time format. For example, **2020-12-18T10:15:30+01:00**. If not provided when creating + * date-time format. For example, **2025-03-19T10:15:30+01:00**. If not provided when creating * a transaction rule, the `startDate` is set to the date when the rule status is * set to **active**. * @return the current {@code TransactionRuleInfo} instance, allowing for method chaining @@ -722,11 +722,11 @@ public TransactionRuleInfo startDate(String startDate) { /** * The date when the rule will start to be evaluated, in ISO 8601 extended offset date-time - * format. For example, **2020-12-18T10:15:30+01:00**. If not provided when creating a transaction + * format. For example, **2025-03-19T10:15:30+01:00**. If not provided when creating a transaction * rule, the `startDate` is set to the date when the rule status is set to **active**. * * @return startDate The date when the rule will start to be evaluated, in ISO 8601 extended - * offset date-time format. For example, **2020-12-18T10:15:30+01:00**. If not provided when + * offset date-time format. For example, **2025-03-19T10:15:30+01:00**. If not provided when * creating a transaction rule, the `startDate` is set to the date when the rule * status is set to **active**. */ @@ -738,11 +738,11 @@ public String getStartDate() { /** * The date when the rule will start to be evaluated, in ISO 8601 extended offset date-time - * format. For example, **2020-12-18T10:15:30+01:00**. If not provided when creating a transaction + * format. For example, **2025-03-19T10:15:30+01:00**. If not provided when creating a transaction * rule, the `startDate` is set to the date when the rule status is set to **active**. * * @param startDate The date when the rule will start to be evaluated, in ISO 8601 extended offset - * date-time format. For example, **2020-12-18T10:15:30+01:00**. If not provided when creating + * date-time format. For example, **2025-03-19T10:15:30+01:00**. If not provided when creating * a transaction rule, the `startDate` is set to the date when the rule status is * set to **active**. */ diff --git a/src/main/java/com/adyen/model/balanceplatform/TransferRouteRequirementsInner.java b/src/main/java/com/adyen/model/balanceplatform/TransferRouteRequirementsInner.java index c127c06fb..204965f54 100644 --- a/src/main/java/com/adyen/model/balanceplatform/TransferRouteRequirementsInner.java +++ b/src/main/java/com/adyen/model/balanceplatform/TransferRouteRequirementsInner.java @@ -77,6 +77,35 @@ public TransferRouteRequirementsInner deserialize(JsonParser jp, Deserialization boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); int match = 0; JsonToken token = tree.traverse(jp.getCodec()).nextToken(); + // deserialize AdditionalBankIdentificationRequirement + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = + Arrays.stream(AdditionalBankIdentificationRequirement.TypeEnum.values()) + .anyMatch((t) -> t.getValue().contains(tree.findValue("type").asText())); + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()) + .readValueAs(AdditionalBankIdentificationRequirement.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log( + Level.FINER, "Input data matches schema 'AdditionalBankIdentificationRequirement'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log( + Level.FINER, + "Input data does not match schema 'AdditionalBankIdentificationRequirement'", + e); + } + // deserialize AddressRequirement try { boolean attemptParsing = true; @@ -312,6 +341,11 @@ public TransferRouteRequirementsInner() { super("oneOf", Boolean.FALSE); } + public TransferRouteRequirementsInner(AdditionalBankIdentificationRequirement o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + public TransferRouteRequirementsInner(AddressRequirement o) { super("oneOf", Boolean.FALSE); setActualInstance(o); @@ -353,6 +387,9 @@ public TransferRouteRequirementsInner(USInternationalAchAddressRequirement o) { } static { + schemas.put( + "AdditionalBankIdentificationRequirement", + new GenericType() {}); schemas.put("AddressRequirement", new GenericType() {}); schemas.put("AmountMinMaxRequirement", new GenericType() {}); schemas.put( @@ -381,16 +418,23 @@ public Map> getSchemas() { /** * Set the instance that matches the oneOf child schema, check the instance parameter is valid - * against the oneOf child schemas: AddressRequirement, AmountMinMaxRequirement, - * AmountNonZeroDecimalsRequirement, BankAccountIdentificationTypeRequirement, - * IbanAccountIdentificationRequirement, PaymentInstrumentRequirement, - * USInstantPayoutAddressRequirement, USInternationalAchAddressRequirement + * against the oneOf child schemas: AdditionalBankIdentificationRequirement, AddressRequirement, + * AmountMinMaxRequirement, AmountNonZeroDecimalsRequirement, + * BankAccountIdentificationTypeRequirement, IbanAccountIdentificationRequirement, + * PaymentInstrumentRequirement, USInstantPayoutAddressRequirement, + * USInternationalAchAddressRequirement * *

It could be an instance of the 'oneOf' schemas. The oneOf child schemas may themselves be a * composed schema (allOf, anyOf, oneOf). */ @Override public void setActualInstance(Object instance) { + if (JSON.isInstanceOf( + AdditionalBankIdentificationRequirement.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; + } + if (JSON.isInstanceOf(AddressRequirement.class, instance, new HashSet<>())) { super.setActualInstance(instance); return; @@ -433,26 +477,39 @@ public void setActualInstance(Object instance) { } throw new RuntimeException( - "Invalid instance type. Must be AddressRequirement, AmountMinMaxRequirement, AmountNonZeroDecimalsRequirement, BankAccountIdentificationTypeRequirement, IbanAccountIdentificationRequirement, PaymentInstrumentRequirement, USInstantPayoutAddressRequirement, USInternationalAchAddressRequirement"); + "Invalid instance type. Must be AdditionalBankIdentificationRequirement, AddressRequirement, AmountMinMaxRequirement, AmountNonZeroDecimalsRequirement, BankAccountIdentificationTypeRequirement, IbanAccountIdentificationRequirement, PaymentInstrumentRequirement, USInstantPayoutAddressRequirement, USInternationalAchAddressRequirement"); } /** - * Get the actual instance, which can be the following: AddressRequirement, - * AmountMinMaxRequirement, AmountNonZeroDecimalsRequirement, + * Get the actual instance, which can be the following: AdditionalBankIdentificationRequirement, + * AddressRequirement, AmountMinMaxRequirement, AmountNonZeroDecimalsRequirement, * BankAccountIdentificationTypeRequirement, IbanAccountIdentificationRequirement, * PaymentInstrumentRequirement, USInstantPayoutAddressRequirement, * USInternationalAchAddressRequirement * - * @return The actual instance (AddressRequirement, AmountMinMaxRequirement, - * AmountNonZeroDecimalsRequirement, BankAccountIdentificationTypeRequirement, - * IbanAccountIdentificationRequirement, PaymentInstrumentRequirement, - * USInstantPayoutAddressRequirement, USInternationalAchAddressRequirement) + * @return The actual instance (AdditionalBankIdentificationRequirement, AddressRequirement, + * AmountMinMaxRequirement, AmountNonZeroDecimalsRequirement, + * BankAccountIdentificationTypeRequirement, IbanAccountIdentificationRequirement, + * PaymentInstrumentRequirement, USInstantPayoutAddressRequirement, + * USInternationalAchAddressRequirement) */ @Override public Object getActualInstance() { return super.getActualInstance(); } + /** + * Get the actual instance of `AdditionalBankIdentificationRequirement`. If the actual instance is + * not `AdditionalBankIdentificationRequirement`, the ClassCastException will be thrown. + * + * @return The actual instance of `AdditionalBankIdentificationRequirement` + * @throws ClassCastException if the instance is not `AdditionalBankIdentificationRequirement` + */ + public AdditionalBankIdentificationRequirement getAdditionalBankIdentificationRequirement() + throws ClassCastException { + return (AdditionalBankIdentificationRequirement) super.getActualInstance(); + } + /** * Get the actual instance of `AddressRequirement`. If the actual instance is not * `AddressRequirement`, the ClassCastException will be thrown. diff --git a/src/main/java/com/adyen/model/balanceplatform/UpdateSweepConfigurationV2.java b/src/main/java/com/adyen/model/balanceplatform/UpdateSweepConfigurationV2.java index 86d53feb5..ff6417562 100644 --- a/src/main/java/com/adyen/model/balanceplatform/UpdateSweepConfigurationV2.java +++ b/src/main/java/com/adyen/model/balanceplatform/UpdateSweepConfigurationV2.java @@ -166,6 +166,8 @@ public enum ReasonEnum { AMOUNTLIMITEXCEEDED(String.valueOf("amountLimitExceeded")), + APPROVALEXPIRED(String.valueOf("approvalExpired")), + APPROVED(String.valueOf("approved")), BALANCEACCOUNTTEMPORARILYBLOCKEDBYTRANSACTIONRULE( diff --git a/src/main/java/com/adyen/model/balancewebhooks/BalanceNotificationData.java b/src/main/java/com/adyen/model/balancewebhooks/BalanceNotificationData.java index f8df25faf..61f6bab65 100644 --- a/src/main/java/com/adyen/model/balancewebhooks/BalanceNotificationData.java +++ b/src/main/java/com/adyen/model/balancewebhooks/BalanceNotificationData.java @@ -162,10 +162,10 @@ public void setBalances(Balances balances) { /** * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2020-12-18T10:15:30+01:00**. + * **2025-03-19T10:15:30+01:00**. * * @param creationDate The date and time when the event was triggered, in ISO 8601 extended - * format. For example, **2020-12-18T10:15:30+01:00**. + * format. For example, **2025-03-19T10:15:30+01:00**. * @return the current {@code BalanceNotificationData} instance, allowing for method chaining */ public BalanceNotificationData creationDate(OffsetDateTime creationDate) { @@ -175,10 +175,10 @@ public BalanceNotificationData creationDate(OffsetDateTime creationDate) { /** * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2020-12-18T10:15:30+01:00**. + * **2025-03-19T10:15:30+01:00**. * * @return creationDate The date and time when the event was triggered, in ISO 8601 extended - * format. For example, **2020-12-18T10:15:30+01:00**. + * format. For example, **2025-03-19T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -188,10 +188,10 @@ public OffsetDateTime getCreationDate() { /** * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2020-12-18T10:15:30+01:00**. + * **2025-03-19T10:15:30+01:00**. * * @param creationDate The date and time when the event was triggered, in ISO 8601 extended - * format. For example, **2020-12-18T10:15:30+01:00**. + * format. For example, **2025-03-19T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -200,10 +200,10 @@ public void setCreationDate(OffsetDateTime creationDate) { } /** - * TThe three-character [ISO currency + * The three-character [ISO currency * code](https://docs.adyen.com/development-resources/currency-codes). * - * @param currency TThe three-character [ISO currency + * @param currency The three-character [ISO currency * code](https://docs.adyen.com/development-resources/currency-codes). * @return the current {@code BalanceNotificationData} instance, allowing for method chaining */ @@ -213,10 +213,10 @@ public BalanceNotificationData currency(String currency) { } /** - * TThe three-character [ISO currency + * The three-character [ISO currency * code](https://docs.adyen.com/development-resources/currency-codes). * - * @return currency TThe three-character [ISO currency + * @return currency The three-character [ISO currency * code](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_CURRENCY) @@ -226,10 +226,10 @@ public String getCurrency() { } /** - * TThe three-character [ISO currency + * The three-character [ISO currency * code](https://docs.adyen.com/development-resources/currency-codes). * - * @param currency TThe three-character [ISO currency + * @param currency The three-character [ISO currency * code](https://docs.adyen.com/development-resources/currency-codes). */ @JsonProperty(JSON_PROPERTY_CURRENCY) diff --git a/src/main/java/com/adyen/model/balancewebhooks/BalancePlatformNotificationResponse.java b/src/main/java/com/adyen/model/balancewebhooks/BalancePlatformNotificationResponse.java index 0f26267e6..535426b80 100644 --- a/src/main/java/com/adyen/model/balancewebhooks/BalancePlatformNotificationResponse.java +++ b/src/main/java/com/adyen/model/balancewebhooks/BalancePlatformNotificationResponse.java @@ -27,10 +27,10 @@ public BalancePlatformNotificationResponse() {} /** * Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). * * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). * @return the current {@code BalancePlatformNotificationResponse} instance, allowing for method * chaining */ @@ -41,10 +41,10 @@ public BalancePlatformNotificationResponse notificationResponse(String notificat /** * Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). * * @return notificationResponse Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). */ @JsonProperty(JSON_PROPERTY_NOTIFICATION_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -54,10 +54,10 @@ public String getNotificationResponse() { /** * Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). * * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). */ @JsonProperty(JSON_PROPERTY_NOTIFICATION_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/src/main/java/com/adyen/model/configurationwebhooks/BalanceAccount.java b/src/main/java/com/adyen/model/configurationwebhooks/BalanceAccount.java index 32d54ff9b..fe5eb468f 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/BalanceAccount.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/BalanceAccount.java @@ -123,11 +123,11 @@ public BalanceAccount() {} /** * The unique identifier of the [account - * holder](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/accountHolders__resParam_id) + * holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) * associated with the balance account. * * @param accountHolderId The unique identifier of the [account - * holder](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/accountHolders__resParam_id) + * holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) * associated with the balance account. * @return the current {@code BalanceAccount} instance, allowing for method chaining */ @@ -138,11 +138,11 @@ public BalanceAccount accountHolderId(String accountHolderId) { /** * The unique identifier of the [account - * holder](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/accountHolders__resParam_id) + * holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) * associated with the balance account. * * @return accountHolderId The unique identifier of the [account - * holder](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/accountHolders__resParam_id) + * holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) * associated with the balance account. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_ID) @@ -153,11 +153,11 @@ public String getAccountHolderId() { /** * The unique identifier of the [account - * holder](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/accountHolders__resParam_id) + * holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) * associated with the balance account. * * @param accountHolderId The unique identifier of the [account - * holder](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/accountHolders__resParam_id) + * holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) * associated with the balance account. */ @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_ID) diff --git a/src/main/java/com/adyen/model/configurationwebhooks/BalancePlatformNotificationResponse.java b/src/main/java/com/adyen/model/configurationwebhooks/BalancePlatformNotificationResponse.java index fe26060fa..c004a6522 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/BalancePlatformNotificationResponse.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/BalancePlatformNotificationResponse.java @@ -27,10 +27,10 @@ public BalancePlatformNotificationResponse() {} /** * Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). * * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). * @return the current {@code BalancePlatformNotificationResponse} instance, allowing for method * chaining */ @@ -41,10 +41,10 @@ public BalancePlatformNotificationResponse notificationResponse(String notificat /** * Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). * * @return notificationResponse Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). */ @JsonProperty(JSON_PROPERTY_NOTIFICATION_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -54,10 +54,10 @@ public String getNotificationResponse() { /** * Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). * * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). */ @JsonProperty(JSON_PROPERTY_NOTIFICATION_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/src/main/java/com/adyen/model/configurationwebhooks/Card.java b/src/main/java/com/adyen/model/configurationwebhooks/Card.java index cb90ef139..e2086496b 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/Card.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/Card.java @@ -35,7 +35,8 @@ Card.JSON_PROPERTY_FORM_FACTOR, Card.JSON_PROPERTY_LAST_FOUR, Card.JSON_PROPERTY_NUMBER, - Card.JSON_PROPERTY_THREE_D_SECURE + Card.JSON_PROPERTY_THREE_D_SECURE, + Card.JSON_PROPERTY_USAGE }) public class Card { public static final String JSON_PROPERTY_AUTHENTICATION = "authentication"; @@ -120,6 +121,9 @@ public static FormFactorEnum fromValue(String value) { public static final String JSON_PROPERTY_THREE_D_SECURE = "threeDSecure"; private String threeDSecure; + public static final String JSON_PROPERTY_USAGE = "usage"; + private String usage; + public Card() {} /** @@ -587,6 +591,48 @@ public void setThreeDSecure(String threeDSecure) { this.threeDSecure = threeDSecure; } + /** + * Specifies how many times the card can be used. Possible values: **singleUse**, **multiUse**. + * > Reach out to your Adyen contact to determine the value relevant for your integration. + * + * @param usage Specifies how many times the card can be used. Possible values: **singleUse**, + * **multiUse**. > Reach out to your Adyen contact to determine the value relevant for your + * integration. + * @return the current {@code Card} instance, allowing for method chaining + */ + public Card usage(String usage) { + this.usage = usage; + return this; + } + + /** + * Specifies how many times the card can be used. Possible values: **singleUse**, **multiUse**. + * > Reach out to your Adyen contact to determine the value relevant for your integration. + * + * @return usage Specifies how many times the card can be used. Possible values: **singleUse**, + * **multiUse**. > Reach out to your Adyen contact to determine the value relevant for your + * integration. + */ + @JsonProperty(JSON_PROPERTY_USAGE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getUsage() { + return usage; + } + + /** + * Specifies how many times the card can be used. Possible values: **singleUse**, **multiUse**. + * > Reach out to your Adyen contact to determine the value relevant for your integration. + * + * @param usage Specifies how many times the card can be used. Possible values: **singleUse**, + * **multiUse**. > Reach out to your Adyen contact to determine the value relevant for your + * integration. + */ + @JsonProperty(JSON_PROPERTY_USAGE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUsage(String usage) { + this.usage = usage; + } + /** Return true if this Card object is equal to o. */ @Override public boolean equals(Object o) { @@ -609,7 +655,8 @@ public boolean equals(Object o) { && Objects.equals(this.formFactor, card.formFactor) && Objects.equals(this.lastFour, card.lastFour) && Objects.equals(this.number, card.number) - && Objects.equals(this.threeDSecure, card.threeDSecure); + && Objects.equals(this.threeDSecure, card.threeDSecure) + && Objects.equals(this.usage, card.usage); } @Override @@ -627,7 +674,8 @@ public int hashCode() { formFactor, lastFour, number, - threeDSecure); + threeDSecure, + usage); } @Override @@ -647,6 +695,7 @@ public String toString() { sb.append(" lastFour: ").append(toIndentedString(lastFour)).append("\n"); sb.append(" number: ").append(toIndentedString(number)).append("\n"); sb.append(" threeDSecure: ").append(toIndentedString(threeDSecure)).append("\n"); + sb.append(" usage: ").append(toIndentedString(usage)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/CardOrderItem.java b/src/main/java/com/adyen/model/configurationwebhooks/CardOrderItem.java index 931ec5034..6b607b4d7 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/CardOrderItem.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/CardOrderItem.java @@ -157,10 +157,10 @@ public void setCardOrderItemId(String cardOrderItemId) { /** * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2020-12-18T10:15:30+01:00**. + * **2025-03-19T10:15:30+01:00**. * * @param creationDate The date and time when the event was triggered, in ISO 8601 extended - * format. For example, **2020-12-18T10:15:30+01:00**. + * format. For example, **2025-03-19T10:15:30+01:00**. * @return the current {@code CardOrderItem} instance, allowing for method chaining */ public CardOrderItem creationDate(OffsetDateTime creationDate) { @@ -170,10 +170,10 @@ public CardOrderItem creationDate(OffsetDateTime creationDate) { /** * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2020-12-18T10:15:30+01:00**. + * **2025-03-19T10:15:30+01:00**. * * @return creationDate The date and time when the event was triggered, in ISO 8601 extended - * format. For example, **2020-12-18T10:15:30+01:00**. + * format. For example, **2025-03-19T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -183,10 +183,10 @@ public OffsetDateTime getCreationDate() { /** * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2020-12-18T10:15:30+01:00**. + * **2025-03-19T10:15:30+01:00**. * * @param creationDate The date and time when the event was triggered, in ISO 8601 extended - * format. For example, **2020-12-18T10:15:30+01:00**. + * format. For example, **2025-03-19T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenNotificationDataV2.java b/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenNotificationDataV2.java index 47eda924f..be67d535d 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenNotificationDataV2.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenNotificationDataV2.java @@ -30,6 +30,7 @@ NetworkTokenNotificationDataV2.JSON_PROPERTY_STATUS, NetworkTokenNotificationDataV2.JSON_PROPERTY_TOKEN_LAST_FOUR, NetworkTokenNotificationDataV2.JSON_PROPERTY_TOKEN_REQUESTOR, + NetworkTokenNotificationDataV2.JSON_PROPERTY_TRANSACTION_RULES_RESULT, NetworkTokenNotificationDataV2.JSON_PROPERTY_TYPE, NetworkTokenNotificationDataV2.JSON_PROPERTY_VALIDATION_FACTS, NetworkTokenNotificationDataV2.JSON_PROPERTY_WALLET @@ -62,6 +63,9 @@ public class NetworkTokenNotificationDataV2 { public static final String JSON_PROPERTY_TOKEN_REQUESTOR = "tokenRequestor"; private NetworkTokenRequestor tokenRequestor; + public static final String JSON_PROPERTY_TRANSACTION_RULES_RESULT = "transactionRulesResult"; + private NetworkTokenTransactionRulesResult transactionRulesResult; + public static final String JSON_PROPERTY_TYPE = "type"; private String type; @@ -398,9 +402,44 @@ public void setTokenRequestor(NetworkTokenRequestor tokenRequestor) { } /** - * The type of network token. + * transactionRulesResult * - * @param type The type of network token. + * @param transactionRulesResult + * @return the current {@code NetworkTokenNotificationDataV2} instance, allowing for method + * chaining + */ + public NetworkTokenNotificationDataV2 transactionRulesResult( + NetworkTokenTransactionRulesResult transactionRulesResult) { + this.transactionRulesResult = transactionRulesResult; + return this; + } + + /** + * Get transactionRulesResult + * + * @return transactionRulesResult + */ + @JsonProperty(JSON_PROPERTY_TRANSACTION_RULES_RESULT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public NetworkTokenTransactionRulesResult getTransactionRulesResult() { + return transactionRulesResult; + } + + /** + * transactionRulesResult + * + * @param transactionRulesResult + */ + @JsonProperty(JSON_PROPERTY_TRANSACTION_RULES_RESULT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setTransactionRulesResult(NetworkTokenTransactionRulesResult transactionRulesResult) { + this.transactionRulesResult = transactionRulesResult; + } + + /** + * The type of network token. Possible values: **wallet**, **cof**. + * + * @param type The type of network token. Possible values: **wallet**, **cof**. * @return the current {@code NetworkTokenNotificationDataV2} instance, allowing for method * chaining */ @@ -410,9 +449,9 @@ public NetworkTokenNotificationDataV2 type(String type) { } /** - * The type of network token. + * The type of network token. Possible values: **wallet**, **cof**. * - * @return type The type of network token. + * @return type The type of network token. Possible values: **wallet**, **cof**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -421,9 +460,9 @@ public String getType() { } /** - * The type of network token. + * The type of network token. Possible values: **wallet**, **cof**. * - * @param type The type of network token. + * @param type The type of network token. Possible values: **wallet**, **cof**. */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -533,6 +572,8 @@ public boolean equals(Object o) { && Objects.equals(this.status, networkTokenNotificationDataV2.status) && Objects.equals(this.tokenLastFour, networkTokenNotificationDataV2.tokenLastFour) && Objects.equals(this.tokenRequestor, networkTokenNotificationDataV2.tokenRequestor) + && Objects.equals( + this.transactionRulesResult, networkTokenNotificationDataV2.transactionRulesResult) && Objects.equals(this.type, networkTokenNotificationDataV2.type) && Objects.equals(this.validationFacts, networkTokenNotificationDataV2.validationFacts) && Objects.equals(this.wallet, networkTokenNotificationDataV2.wallet); @@ -550,6 +591,7 @@ public int hashCode() { status, tokenLastFour, tokenRequestor, + transactionRulesResult, type, validationFacts, wallet); @@ -572,6 +614,9 @@ public String toString() { sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" tokenLastFour: ").append(toIndentedString(tokenLastFour)).append("\n"); sb.append(" tokenRequestor: ").append(toIndentedString(tokenRequestor)).append("\n"); + sb.append(" transactionRulesResult: ") + .append(toIndentedString(transactionRulesResult)) + .append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" validationFacts: ").append(toIndentedString(validationFacts)).append("\n"); sb.append(" wallet: ").append(toIndentedString(wallet)).append("\n"); diff --git a/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenRequestor.java b/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenRequestor.java index 96a1f0306..60aa90363 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenRequestor.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenRequestor.java @@ -32,9 +32,9 @@ public class NetworkTokenRequestor { public NetworkTokenRequestor() {} /** - * The id of the network token requestor. + * The unique identifier of the network token requestor. * - * @param id The id of the network token requestor. + * @param id The unique identifier of the network token requestor. * @return the current {@code NetworkTokenRequestor} instance, allowing for method chaining */ public NetworkTokenRequestor id(String id) { @@ -43,9 +43,9 @@ public NetworkTokenRequestor id(String id) { } /** - * The id of the network token requestor. + * The unique identifier of the network token requestor. * - * @return id The id of the network token requestor. + * @return id The unique identifier of the network token requestor. */ @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -54,9 +54,9 @@ public String getId() { } /** - * The id of the network token requestor. + * The unique identifier of the network token requestor. * - * @param id The id of the network token requestor. + * @param id The unique identifier of the network token requestor. */ @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenRiskRuleData.java b/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenRiskRuleData.java new file mode 100644 index 000000000..6cb95aa83 --- /dev/null +++ b/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenRiskRuleData.java @@ -0,0 +1,277 @@ +/* + * Configuration webhooks + * + * The version of the OpenAPI document: 2 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.adyen.model.configurationwebhooks; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; + +/** NetworkTokenRiskRuleData */ +@JsonPropertyOrder({ + NetworkTokenRiskRuleData.JSON_PROPERTY_DESCRIPTION, + NetworkTokenRiskRuleData.JSON_PROPERTY_ID, + NetworkTokenRiskRuleData.JSON_PROPERTY_OUTCOME_TYPE, + NetworkTokenRiskRuleData.JSON_PROPERTY_REFERENCE, + NetworkTokenRiskRuleData.JSON_PROPERTY_SCORE +}) +public class NetworkTokenRiskRuleData { + public static final String JSON_PROPERTY_DESCRIPTION = "description"; + private String description; + + public static final String JSON_PROPERTY_ID = "id"; + private String id; + + public static final String JSON_PROPERTY_OUTCOME_TYPE = "outcomeType"; + private String outcomeType; + + public static final String JSON_PROPERTY_REFERENCE = "reference"; + private String reference; + + public static final String JSON_PROPERTY_SCORE = "score"; + private Integer score; + + public NetworkTokenRiskRuleData() {} + + /** + * The description of the transaction rule. + * + * @param description The description of the transaction rule. + * @return the current {@code NetworkTokenRiskRuleData} instance, allowing for method chaining + */ + public NetworkTokenRiskRuleData description(String description) { + this.description = description; + return this; + } + + /** + * The description of the transaction rule. + * + * @return description The description of the transaction rule. + */ + @JsonProperty(JSON_PROPERTY_DESCRIPTION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getDescription() { + return description; + } + + /** + * The description of the transaction rule. + * + * @param description The description of the transaction rule. + */ + @JsonProperty(JSON_PROPERTY_DESCRIPTION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDescription(String description) { + this.description = description; + } + + /** + * The unique identifier of the transaction rule. + * + * @param id The unique identifier of the transaction rule. + * @return the current {@code NetworkTokenRiskRuleData} instance, allowing for method chaining + */ + public NetworkTokenRiskRuleData id(String id) { + this.id = id; + return this; + } + + /** + * The unique identifier of the transaction rule. + * + * @return id The unique identifier of the transaction rule. + */ + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getId() { + return id; + } + + /** + * The unique identifier of the transaction rule. + * + * @param id The unique identifier of the transaction rule. + */ + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setId(String id) { + this.id = id; + } + + /** + * The outcome type of the transaction rule. + * + * @param outcomeType The outcome type of the transaction rule. + * @return the current {@code NetworkTokenRiskRuleData} instance, allowing for method chaining + */ + public NetworkTokenRiskRuleData outcomeType(String outcomeType) { + this.outcomeType = outcomeType; + return this; + } + + /** + * The outcome type of the transaction rule. + * + * @return outcomeType The outcome type of the transaction rule. + */ + @JsonProperty(JSON_PROPERTY_OUTCOME_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getOutcomeType() { + return outcomeType; + } + + /** + * The outcome type of the transaction rule. + * + * @param outcomeType The outcome type of the transaction rule. + */ + @JsonProperty(JSON_PROPERTY_OUTCOME_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setOutcomeType(String outcomeType) { + this.outcomeType = outcomeType; + } + + /** + * The reference for the transaction rule. + * + * @param reference The reference for the transaction rule. + * @return the current {@code NetworkTokenRiskRuleData} instance, allowing for method chaining + */ + public NetworkTokenRiskRuleData reference(String reference) { + this.reference = reference; + return this; + } + + /** + * The reference for the transaction rule. + * + * @return reference The reference for the transaction rule. + */ + @JsonProperty(JSON_PROPERTY_REFERENCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getReference() { + return reference; + } + + /** + * The reference for the transaction rule. + * + * @param reference The reference for the transaction rule. + */ + @JsonProperty(JSON_PROPERTY_REFERENCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setReference(String reference) { + this.reference = reference; + } + + /** + * The transaction score determined by the rule. + * + * @param score The transaction score determined by the rule. + * @return the current {@code NetworkTokenRiskRuleData} instance, allowing for method chaining + */ + public NetworkTokenRiskRuleData score(Integer score) { + this.score = score; + return this; + } + + /** + * The transaction score determined by the rule. + * + * @return score The transaction score determined by the rule. + */ + @JsonProperty(JSON_PROPERTY_SCORE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getScore() { + return score; + } + + /** + * The transaction score determined by the rule. + * + * @param score The transaction score determined by the rule. + */ + @JsonProperty(JSON_PROPERTY_SCORE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setScore(Integer score) { + this.score = score; + } + + /** Return true if this NetworkTokenRiskRuleData object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + NetworkTokenRiskRuleData networkTokenRiskRuleData = (NetworkTokenRiskRuleData) o; + return Objects.equals(this.description, networkTokenRiskRuleData.description) + && Objects.equals(this.id, networkTokenRiskRuleData.id) + && Objects.equals(this.outcomeType, networkTokenRiskRuleData.outcomeType) + && Objects.equals(this.reference, networkTokenRiskRuleData.reference) + && Objects.equals(this.score, networkTokenRiskRuleData.score); + } + + @Override + public int hashCode() { + return Objects.hash(description, id, outcomeType, reference, score); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class NetworkTokenRiskRuleData {\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" outcomeType: ").append(toIndentedString(outcomeType)).append("\n"); + sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); + sb.append(" score: ").append(toIndentedString(score)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Create an instance of NetworkTokenRiskRuleData given an JSON string + * + * @param jsonString JSON string + * @return An instance of NetworkTokenRiskRuleData + * @throws JsonProcessingException if the JSON string is invalid with respect to + * NetworkTokenRiskRuleData + */ + public static NetworkTokenRiskRuleData fromJson(String jsonString) + throws JsonProcessingException { + return JSON.getMapper().readValue(jsonString, NetworkTokenRiskRuleData.class); + } + + /** + * Convert an instance of NetworkTokenRiskRuleData to an JSON string + * + * @return JSON string + */ + public String toJson() throws JsonProcessingException { + return JSON.getMapper().writeValueAsString(this); + } +} diff --git a/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenRiskRuleSource.java b/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenRiskRuleSource.java new file mode 100644 index 000000000..4a5f85e4f --- /dev/null +++ b/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenRiskRuleSource.java @@ -0,0 +1,178 @@ +/* + * Configuration webhooks + * + * The version of the OpenAPI document: 2 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.adyen.model.configurationwebhooks; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; + +/** NetworkTokenRiskRuleSource */ +@JsonPropertyOrder({ + NetworkTokenRiskRuleSource.JSON_PROPERTY_ID, + NetworkTokenRiskRuleSource.JSON_PROPERTY_TYPE +}) +public class NetworkTokenRiskRuleSource { + public static final String JSON_PROPERTY_ID = "id"; + private String id; + + public static final String JSON_PROPERTY_TYPE = "type"; + private String type; + + public NetworkTokenRiskRuleSource() {} + + /** + * The unique identifier of the resource to which the transaction rule applies. + * + * @param id The unique identifier of the resource to which the transaction rule applies. + * @return the current {@code NetworkTokenRiskRuleSource} instance, allowing for method chaining + */ + public NetworkTokenRiskRuleSource id(String id) { + this.id = id; + return this; + } + + /** + * The unique identifier of the resource to which the transaction rule applies. + * + * @return id The unique identifier of the resource to which the transaction rule applies. + */ + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getId() { + return id; + } + + /** + * The unique identifier of the resource to which the transaction rule applies. + * + * @param id The unique identifier of the resource to which the transaction rule applies. + */ + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setId(String id) { + this.id = id; + } + + /** + * Indicates the type of resource for which the transaction rule is defined. Possible values: * + * **PaymentInstrumentGroup** * **PaymentInstrument** * **BalancePlatform** * + * **EntityUsageConfiguration** * **PlatformRule**: The transaction rule is a platform-wide rule + * imposed by Adyen. + * + * @param type Indicates the type of resource for which the transaction rule is defined. Possible + * values: * **PaymentInstrumentGroup** * **PaymentInstrument** * **BalancePlatform** * + * **EntityUsageConfiguration** * **PlatformRule**: The transaction rule is a platform-wide + * rule imposed by Adyen. + * @return the current {@code NetworkTokenRiskRuleSource} instance, allowing for method chaining + */ + public NetworkTokenRiskRuleSource type(String type) { + this.type = type; + return this; + } + + /** + * Indicates the type of resource for which the transaction rule is defined. Possible values: * + * **PaymentInstrumentGroup** * **PaymentInstrument** * **BalancePlatform** * + * **EntityUsageConfiguration** * **PlatformRule**: The transaction rule is a platform-wide rule + * imposed by Adyen. + * + * @return type Indicates the type of resource for which the transaction rule is defined. Possible + * values: * **PaymentInstrumentGroup** * **PaymentInstrument** * **BalancePlatform** * + * **EntityUsageConfiguration** * **PlatformRule**: The transaction rule is a platform-wide + * rule imposed by Adyen. + */ + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getType() { + return type; + } + + /** + * Indicates the type of resource for which the transaction rule is defined. Possible values: * + * **PaymentInstrumentGroup** * **PaymentInstrument** * **BalancePlatform** * + * **EntityUsageConfiguration** * **PlatformRule**: The transaction rule is a platform-wide rule + * imposed by Adyen. + * + * @param type Indicates the type of resource for which the transaction rule is defined. Possible + * values: * **PaymentInstrumentGroup** * **PaymentInstrument** * **BalancePlatform** * + * **EntityUsageConfiguration** * **PlatformRule**: The transaction rule is a platform-wide + * rule imposed by Adyen. + */ + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setType(String type) { + this.type = type; + } + + /** Return true if this NetworkTokenRiskRuleSource object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + NetworkTokenRiskRuleSource networkTokenRiskRuleSource = (NetworkTokenRiskRuleSource) o; + return Objects.equals(this.id, networkTokenRiskRuleSource.id) + && Objects.equals(this.type, networkTokenRiskRuleSource.type); + } + + @Override + public int hashCode() { + return Objects.hash(id, type); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class NetworkTokenRiskRuleSource {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Create an instance of NetworkTokenRiskRuleSource given an JSON string + * + * @param jsonString JSON string + * @return An instance of NetworkTokenRiskRuleSource + * @throws JsonProcessingException if the JSON string is invalid with respect to + * NetworkTokenRiskRuleSource + */ + public static NetworkTokenRiskRuleSource fromJson(String jsonString) + throws JsonProcessingException { + return JSON.getMapper().readValue(jsonString, NetworkTokenRiskRuleSource.class); + } + + /** + * Convert an instance of NetworkTokenRiskRuleSource to an JSON string + * + * @return JSON string + */ + public String toJson() throws JsonProcessingException { + return JSON.getMapper().writeValueAsString(this); + } +} diff --git a/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenTransactionRulesResult.java b/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenTransactionRulesResult.java new file mode 100644 index 000000000..3a6444eeb --- /dev/null +++ b/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenTransactionRulesResult.java @@ -0,0 +1,272 @@ +/* + * Configuration webhooks + * + * The version of the OpenAPI document: 2 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.adyen.model.configurationwebhooks; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.ArrayList; +import java.util.List; + +/** NetworkTokenTransactionRulesResult */ +@JsonPropertyOrder({ + NetworkTokenTransactionRulesResult.JSON_PROPERTY_ADVICE, + NetworkTokenTransactionRulesResult.JSON_PROPERTY_ALL_HARD_BLOCK_RULES_PASSED, + NetworkTokenTransactionRulesResult.JSON_PROPERTY_SCORE, + NetworkTokenTransactionRulesResult.JSON_PROPERTY_TRIGGERED_TRANSACTION_RULES +}) +public class NetworkTokenTransactionRulesResult { + public static final String JSON_PROPERTY_ADVICE = "advice"; + private String advice; + + public static final String JSON_PROPERTY_ALL_HARD_BLOCK_RULES_PASSED = "allHardBlockRulesPassed"; + private Boolean allHardBlockRulesPassed; + + public static final String JSON_PROPERTY_SCORE = "score"; + private Integer score; + + public static final String JSON_PROPERTY_TRIGGERED_TRANSACTION_RULES = + "triggeredTransactionRules"; + private List triggeredTransactionRules; + + public NetworkTokenTransactionRulesResult() {} + + /** + * The advice given by the Risk analysis. + * + * @param advice The advice given by the Risk analysis. + * @return the current {@code NetworkTokenTransactionRulesResult} instance, allowing for method + * chaining + */ + public NetworkTokenTransactionRulesResult advice(String advice) { + this.advice = advice; + return this; + } + + /** + * The advice given by the Risk analysis. + * + * @return advice The advice given by the Risk analysis. + */ + @JsonProperty(JSON_PROPERTY_ADVICE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getAdvice() { + return advice; + } + + /** + * The advice given by the Risk analysis. + * + * @param advice The advice given by the Risk analysis. + */ + @JsonProperty(JSON_PROPERTY_ADVICE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setAdvice(String advice) { + this.advice = advice; + } + + /** + * Indicates whether the transaction passed all rules with `outcomeType` **hardBlock**. + * + * @param allHardBlockRulesPassed Indicates whether the transaction passed all rules with + * `outcomeType` **hardBlock**. + * @return the current {@code NetworkTokenTransactionRulesResult} instance, allowing for method + * chaining + */ + public NetworkTokenTransactionRulesResult allHardBlockRulesPassed( + Boolean allHardBlockRulesPassed) { + this.allHardBlockRulesPassed = allHardBlockRulesPassed; + return this; + } + + /** + * Indicates whether the transaction passed all rules with `outcomeType` **hardBlock**. + * + * @return allHardBlockRulesPassed Indicates whether the transaction passed all rules with + * `outcomeType` **hardBlock**. + */ + @JsonProperty(JSON_PROPERTY_ALL_HARD_BLOCK_RULES_PASSED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getAllHardBlockRulesPassed() { + return allHardBlockRulesPassed; + } + + /** + * Indicates whether the transaction passed all rules with `outcomeType` **hardBlock**. + * + * @param allHardBlockRulesPassed Indicates whether the transaction passed all rules with + * `outcomeType` **hardBlock**. + */ + @JsonProperty(JSON_PROPERTY_ALL_HARD_BLOCK_RULES_PASSED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setAllHardBlockRulesPassed(Boolean allHardBlockRulesPassed) { + this.allHardBlockRulesPassed = allHardBlockRulesPassed; + } + + /** + * The score of the Risk analysis. + * + * @param score The score of the Risk analysis. + * @return the current {@code NetworkTokenTransactionRulesResult} instance, allowing for method + * chaining + */ + public NetworkTokenTransactionRulesResult score(Integer score) { + this.score = score; + return this; + } + + /** + * The score of the Risk analysis. + * + * @return score The score of the Risk analysis. + */ + @JsonProperty(JSON_PROPERTY_SCORE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getScore() { + return score; + } + + /** + * The score of the Risk analysis. + * + * @param score The score of the Risk analysis. + */ + @JsonProperty(JSON_PROPERTY_SCORE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setScore(Integer score) { + this.score = score; + } + + /** + * Contains a list of all triggered transaction rules and the corresponding data. + * + * @param triggeredTransactionRules Contains a list of all triggered transaction rules and the + * corresponding data. + * @return the current {@code NetworkTokenTransactionRulesResult} instance, allowing for method + * chaining + */ + public NetworkTokenTransactionRulesResult triggeredTransactionRules( + List triggeredTransactionRules) { + this.triggeredTransactionRules = triggeredTransactionRules; + return this; + } + + public NetworkTokenTransactionRulesResult addTriggeredTransactionRulesItem( + NetworkTokenTriggeredRiskRule triggeredTransactionRulesItem) { + if (this.triggeredTransactionRules == null) { + this.triggeredTransactionRules = new ArrayList<>(); + } + this.triggeredTransactionRules.add(triggeredTransactionRulesItem); + return this; + } + + /** + * Contains a list of all triggered transaction rules and the corresponding data. + * + * @return triggeredTransactionRules Contains a list of all triggered transaction rules and the + * corresponding data. + */ + @JsonProperty(JSON_PROPERTY_TRIGGERED_TRANSACTION_RULES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getTriggeredTransactionRules() { + return triggeredTransactionRules; + } + + /** + * Contains a list of all triggered transaction rules and the corresponding data. + * + * @param triggeredTransactionRules Contains a list of all triggered transaction rules and the + * corresponding data. + */ + @JsonProperty(JSON_PROPERTY_TRIGGERED_TRANSACTION_RULES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setTriggeredTransactionRules( + List triggeredTransactionRules) { + this.triggeredTransactionRules = triggeredTransactionRules; + } + + /** Return true if this NetworkTokenTransactionRulesResult object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + NetworkTokenTransactionRulesResult networkTokenTransactionRulesResult = + (NetworkTokenTransactionRulesResult) o; + return Objects.equals(this.advice, networkTokenTransactionRulesResult.advice) + && Objects.equals( + this.allHardBlockRulesPassed, + networkTokenTransactionRulesResult.allHardBlockRulesPassed) + && Objects.equals(this.score, networkTokenTransactionRulesResult.score) + && Objects.equals( + this.triggeredTransactionRules, + networkTokenTransactionRulesResult.triggeredTransactionRules); + } + + @Override + public int hashCode() { + return Objects.hash(advice, allHardBlockRulesPassed, score, triggeredTransactionRules); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class NetworkTokenTransactionRulesResult {\n"); + sb.append(" advice: ").append(toIndentedString(advice)).append("\n"); + sb.append(" allHardBlockRulesPassed: ") + .append(toIndentedString(allHardBlockRulesPassed)) + .append("\n"); + sb.append(" score: ").append(toIndentedString(score)).append("\n"); + sb.append(" triggeredTransactionRules: ") + .append(toIndentedString(triggeredTransactionRules)) + .append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Create an instance of NetworkTokenTransactionRulesResult given an JSON string + * + * @param jsonString JSON string + * @return An instance of NetworkTokenTransactionRulesResult + * @throws JsonProcessingException if the JSON string is invalid with respect to + * NetworkTokenTransactionRulesResult + */ + public static NetworkTokenTransactionRulesResult fromJson(String jsonString) + throws JsonProcessingException { + return JSON.getMapper().readValue(jsonString, NetworkTokenTransactionRulesResult.class); + } + + /** + * Convert an instance of NetworkTokenTransactionRulesResult to an JSON string + * + * @return JSON string + */ + public String toJson() throws JsonProcessingException { + return JSON.getMapper().writeValueAsString(this); + } +} diff --git a/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenTriggeredRiskRule.java b/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenTriggeredRiskRule.java new file mode 100644 index 000000000..b9e7c9203 --- /dev/null +++ b/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenTriggeredRiskRule.java @@ -0,0 +1,206 @@ +/* + * Configuration webhooks + * + * The version of the OpenAPI document: 2 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.adyen.model.configurationwebhooks; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; + +/** NetworkTokenTriggeredRiskRule */ +@JsonPropertyOrder({ + NetworkTokenTriggeredRiskRule.JSON_PROPERTY_REASON, + NetworkTokenTriggeredRiskRule.JSON_PROPERTY_TRANSACTION_RULE, + NetworkTokenTriggeredRiskRule.JSON_PROPERTY_TRANSACTION_RULE_SOURCE +}) +public class NetworkTokenTriggeredRiskRule { + public static final String JSON_PROPERTY_REASON = "reason"; + private String reason; + + public static final String JSON_PROPERTY_TRANSACTION_RULE = "transactionRule"; + private NetworkTokenRiskRuleData transactionRule; + + public static final String JSON_PROPERTY_TRANSACTION_RULE_SOURCE = "transactionRuleSource"; + private NetworkTokenRiskRuleSource transactionRuleSource; + + public NetworkTokenTriggeredRiskRule() {} + + /** + * Explains why the transaction rule failed. + * + * @param reason Explains why the transaction rule failed. + * @return the current {@code NetworkTokenTriggeredRiskRule} instance, allowing for method + * chaining + */ + public NetworkTokenTriggeredRiskRule reason(String reason) { + this.reason = reason; + return this; + } + + /** + * Explains why the transaction rule failed. + * + * @return reason Explains why the transaction rule failed. + */ + @JsonProperty(JSON_PROPERTY_REASON) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getReason() { + return reason; + } + + /** + * Explains why the transaction rule failed. + * + * @param reason Explains why the transaction rule failed. + */ + @JsonProperty(JSON_PROPERTY_REASON) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setReason(String reason) { + this.reason = reason; + } + + /** + * transactionRule + * + * @param transactionRule + * @return the current {@code NetworkTokenTriggeredRiskRule} instance, allowing for method + * chaining + */ + public NetworkTokenTriggeredRiskRule transactionRule(NetworkTokenRiskRuleData transactionRule) { + this.transactionRule = transactionRule; + return this; + } + + /** + * Get transactionRule + * + * @return transactionRule + */ + @JsonProperty(JSON_PROPERTY_TRANSACTION_RULE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public NetworkTokenRiskRuleData getTransactionRule() { + return transactionRule; + } + + /** + * transactionRule + * + * @param transactionRule + */ + @JsonProperty(JSON_PROPERTY_TRANSACTION_RULE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setTransactionRule(NetworkTokenRiskRuleData transactionRule) { + this.transactionRule = transactionRule; + } + + /** + * transactionRuleSource + * + * @param transactionRuleSource + * @return the current {@code NetworkTokenTriggeredRiskRule} instance, allowing for method + * chaining + */ + public NetworkTokenTriggeredRiskRule transactionRuleSource( + NetworkTokenRiskRuleSource transactionRuleSource) { + this.transactionRuleSource = transactionRuleSource; + return this; + } + + /** + * Get transactionRuleSource + * + * @return transactionRuleSource + */ + @JsonProperty(JSON_PROPERTY_TRANSACTION_RULE_SOURCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public NetworkTokenRiskRuleSource getTransactionRuleSource() { + return transactionRuleSource; + } + + /** + * transactionRuleSource + * + * @param transactionRuleSource + */ + @JsonProperty(JSON_PROPERTY_TRANSACTION_RULE_SOURCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setTransactionRuleSource(NetworkTokenRiskRuleSource transactionRuleSource) { + this.transactionRuleSource = transactionRuleSource; + } + + /** Return true if this NetworkTokenTriggeredRiskRule object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + NetworkTokenTriggeredRiskRule networkTokenTriggeredRiskRule = (NetworkTokenTriggeredRiskRule) o; + return Objects.equals(this.reason, networkTokenTriggeredRiskRule.reason) + && Objects.equals(this.transactionRule, networkTokenTriggeredRiskRule.transactionRule) + && Objects.equals( + this.transactionRuleSource, networkTokenTriggeredRiskRule.transactionRuleSource); + } + + @Override + public int hashCode() { + return Objects.hash(reason, transactionRule, transactionRuleSource); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class NetworkTokenTriggeredRiskRule {\n"); + sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); + sb.append(" transactionRule: ").append(toIndentedString(transactionRule)).append("\n"); + sb.append(" transactionRuleSource: ") + .append(toIndentedString(transactionRuleSource)) + .append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Create an instance of NetworkTokenTriggeredRiskRule given an JSON string + * + * @param jsonString JSON string + * @return An instance of NetworkTokenTriggeredRiskRule + * @throws JsonProcessingException if the JSON string is invalid with respect to + * NetworkTokenTriggeredRiskRule + */ + public static NetworkTokenTriggeredRiskRule fromJson(String jsonString) + throws JsonProcessingException { + return JSON.getMapper().readValue(jsonString, NetworkTokenTriggeredRiskRule.class); + } + + /** + * Convert an instance of NetworkTokenTriggeredRiskRule to an JSON string + * + * @return JSON string + */ + public String toJson() throws JsonProcessingException { + return JSON.getMapper().writeValueAsString(this); + } +} diff --git a/src/main/java/com/adyen/model/configurationwebhooks/Resource.java b/src/main/java/com/adyen/model/configurationwebhooks/Resource.java index 3867fc444..90f36aea5 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/Resource.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/Resource.java @@ -71,10 +71,10 @@ public void setBalancePlatform(String balancePlatform) { /** * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2020-12-18T10:15:30+01:00**. + * **2025-03-19T10:15:30+01:00**. * * @param creationDate The date and time when the event was triggered, in ISO 8601 extended - * format. For example, **2020-12-18T10:15:30+01:00**. + * format. For example, **2025-03-19T10:15:30+01:00**. * @return the current {@code Resource} instance, allowing for method chaining */ public Resource creationDate(OffsetDateTime creationDate) { @@ -84,10 +84,10 @@ public Resource creationDate(OffsetDateTime creationDate) { /** * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2020-12-18T10:15:30+01:00**. + * **2025-03-19T10:15:30+01:00**. * * @return creationDate The date and time when the event was triggered, in ISO 8601 extended - * format. For example, **2020-12-18T10:15:30+01:00**. + * format. For example, **2025-03-19T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -97,10 +97,10 @@ public OffsetDateTime getCreationDate() { /** * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2020-12-18T10:15:30+01:00**. + * **2025-03-19T10:15:30+01:00**. * * @param creationDate The date and time when the event was triggered, in ISO 8601 extended - * format. For example, **2020-12-18T10:15:30+01:00**. + * format. For example, **2025-03-19T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/src/main/java/com/adyen/model/configurationwebhooks/SweepConfigurationV2.java b/src/main/java/com/adyen/model/configurationwebhooks/SweepConfigurationV2.java index 1abe06c6e..228e1fac8 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/SweepConfigurationV2.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/SweepConfigurationV2.java @@ -166,6 +166,8 @@ public enum ReasonEnum { AMOUNTLIMITEXCEEDED(String.valueOf("amountLimitExceeded")), + APPROVALEXPIRED(String.valueOf("approvalExpired")), + APPROVED(String.valueOf("approved")), BALANCEACCOUNTTEMPORARILYBLOCKEDBYTRANSACTIONRULE( diff --git a/src/main/java/com/adyen/model/legalentitymanagement/Address.java b/src/main/java/com/adyen/model/legalentitymanagement/Address.java index be5b5815d..bf74541dd 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/Address.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/Address.java @@ -171,13 +171,13 @@ public void setPostalCode(String postalCode) { } /** - * The two-letter ISO 3166-2 state or province code. For example, **CA** in the US. If you specify - * the state or province, you must also send `city`, `postalCode`, and - * `street`. + * The two-letter ISO 3166-2 state or province code. For example, **CA** in the US. Required for + * Australia and New Zealand. If you specify the state or province, you must also send + * `city`, `postalCode`, and `street`. * * @param stateOrProvince The two-letter ISO 3166-2 state or province code. For example, **CA** in - * the US. If you specify the state or province, you must also send `city`, - * `postalCode`, and `street`. + * the US. Required for Australia and New Zealand. If you specify the state or province, you + * must also send `city`, `postalCode`, and `street`. * @return the current {@code Address} instance, allowing for method chaining */ public Address stateOrProvince(String stateOrProvince) { @@ -186,13 +186,13 @@ public Address stateOrProvince(String stateOrProvince) { } /** - * The two-letter ISO 3166-2 state or province code. For example, **CA** in the US. If you specify - * the state or province, you must also send `city`, `postalCode`, and - * `street`. + * The two-letter ISO 3166-2 state or province code. For example, **CA** in the US. Required for + * Australia and New Zealand. If you specify the state or province, you must also send + * `city`, `postalCode`, and `street`. * * @return stateOrProvince The two-letter ISO 3166-2 state or province code. For example, **CA** - * in the US. If you specify the state or province, you must also send `city`, - * `postalCode`, and `street`. + * in the US. Required for Australia and New Zealand. If you specify the state or province, + * you must also send `city`, `postalCode`, and `street`. */ @JsonProperty(JSON_PROPERTY_STATE_OR_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -201,13 +201,13 @@ public String getStateOrProvince() { } /** - * The two-letter ISO 3166-2 state or province code. For example, **CA** in the US. If you specify - * the state or province, you must also send `city`, `postalCode`, and - * `street`. + * The two-letter ISO 3166-2 state or province code. For example, **CA** in the US. Required for + * Australia and New Zealand. If you specify the state or province, you must also send + * `city`, `postalCode`, and `street`. * * @param stateOrProvince The two-letter ISO 3166-2 state or province code. For example, **CA** in - * the US. If you specify the state or province, you must also send `city`, - * `postalCode`, and `street`. + * the US. Required for Australia and New Zealand. If you specify the state or province, you + * must also send `city`, `postalCode`, and `street`. */ @JsonProperty(JSON_PROPERTY_STATE_OR_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/src/main/java/com/adyen/model/negativebalancewarningwebhooks/NegativeBalanceCompensationWarningNotificationData.java b/src/main/java/com/adyen/model/negativebalancewarningwebhooks/NegativeBalanceCompensationWarningNotificationData.java index 892ef2f51..db92ccaea 100644 --- a/src/main/java/com/adyen/model/negativebalancewarningwebhooks/NegativeBalanceCompensationWarningNotificationData.java +++ b/src/main/java/com/adyen/model/negativebalancewarningwebhooks/NegativeBalanceCompensationWarningNotificationData.java @@ -162,10 +162,10 @@ public void setBalancePlatform(String balancePlatform) { /** * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2020-12-18T10:15:30+01:00**. + * **2025-03-19T10:15:30+01:00**. * * @param creationDate The date and time when the event was triggered, in ISO 8601 extended - * format. For example, **2020-12-18T10:15:30+01:00**. + * format. For example, **2025-03-19T10:15:30+01:00**. * @return the current {@code NegativeBalanceCompensationWarningNotificationData} instance, * allowing for method chaining */ @@ -177,10 +177,10 @@ public NegativeBalanceCompensationWarningNotificationData creationDate( /** * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2020-12-18T10:15:30+01:00**. + * **2025-03-19T10:15:30+01:00**. * * @return creationDate The date and time when the event was triggered, in ISO 8601 extended - * format. For example, **2020-12-18T10:15:30+01:00**. + * format. For example, **2025-03-19T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -190,10 +190,10 @@ public OffsetDateTime getCreationDate() { /** * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2020-12-18T10:15:30+01:00**. + * **2025-03-19T10:15:30+01:00**. * * @param creationDate The date and time when the event was triggered, in ISO 8601 extended - * format. For example, **2020-12-18T10:15:30+01:00**. + * format. For example, **2025-03-19T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/src/main/java/com/adyen/model/negativebalancewarningwebhooks/Resource.java b/src/main/java/com/adyen/model/negativebalancewarningwebhooks/Resource.java index 770d0be75..5e4717104 100644 --- a/src/main/java/com/adyen/model/negativebalancewarningwebhooks/Resource.java +++ b/src/main/java/com/adyen/model/negativebalancewarningwebhooks/Resource.java @@ -71,10 +71,10 @@ public void setBalancePlatform(String balancePlatform) { /** * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2020-12-18T10:15:30+01:00**. + * **2025-03-19T10:15:30+01:00**. * * @param creationDate The date and time when the event was triggered, in ISO 8601 extended - * format. For example, **2020-12-18T10:15:30+01:00**. + * format. For example, **2025-03-19T10:15:30+01:00**. * @return the current {@code Resource} instance, allowing for method chaining */ public Resource creationDate(OffsetDateTime creationDate) { @@ -84,10 +84,10 @@ public Resource creationDate(OffsetDateTime creationDate) { /** * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2020-12-18T10:15:30+01:00**. + * **2025-03-19T10:15:30+01:00**. * * @return creationDate The date and time when the event was triggered, in ISO 8601 extended - * format. For example, **2020-12-18T10:15:30+01:00**. + * format. For example, **2025-03-19T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -97,10 +97,10 @@ public OffsetDateTime getCreationDate() { /** * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2020-12-18T10:15:30+01:00**. + * **2025-03-19T10:15:30+01:00**. * * @param creationDate The date and time when the event was triggered, in ISO 8601 extended - * format. For example, **2020-12-18T10:15:30+01:00**. + * format. For example, **2025-03-19T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/src/main/java/com/adyen/model/reportwebhooks/BalancePlatformNotificationResponse.java b/src/main/java/com/adyen/model/reportwebhooks/BalancePlatformNotificationResponse.java index b7875cc56..ab2375333 100644 --- a/src/main/java/com/adyen/model/reportwebhooks/BalancePlatformNotificationResponse.java +++ b/src/main/java/com/adyen/model/reportwebhooks/BalancePlatformNotificationResponse.java @@ -27,10 +27,10 @@ public BalancePlatformNotificationResponse() {} /** * Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). * * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). * @return the current {@code BalancePlatformNotificationResponse} instance, allowing for method * chaining */ @@ -41,10 +41,10 @@ public BalancePlatformNotificationResponse notificationResponse(String notificat /** * Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). * * @return notificationResponse Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). */ @JsonProperty(JSON_PROPERTY_NOTIFICATION_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -54,10 +54,10 @@ public String getNotificationResponse() { /** * Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). * * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). */ @JsonProperty(JSON_PROPERTY_NOTIFICATION_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/src/main/java/com/adyen/model/reportwebhooks/ReportNotificationData.java b/src/main/java/com/adyen/model/reportwebhooks/ReportNotificationData.java index e614714dd..c3b1033a0 100644 --- a/src/main/java/com/adyen/model/reportwebhooks/ReportNotificationData.java +++ b/src/main/java/com/adyen/model/reportwebhooks/ReportNotificationData.java @@ -157,10 +157,10 @@ public void setBalancePlatform(String balancePlatform) { /** * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2020-12-18T10:15:30+01:00**. + * **2025-03-19T10:15:30+01:00**. * * @param creationDate The date and time when the event was triggered, in ISO 8601 extended - * format. For example, **2020-12-18T10:15:30+01:00**. + * format. For example, **2025-03-19T10:15:30+01:00**. * @return the current {@code ReportNotificationData} instance, allowing for method chaining */ public ReportNotificationData creationDate(OffsetDateTime creationDate) { @@ -170,10 +170,10 @@ public ReportNotificationData creationDate(OffsetDateTime creationDate) { /** * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2020-12-18T10:15:30+01:00**. + * **2025-03-19T10:15:30+01:00**. * * @return creationDate The date and time when the event was triggered, in ISO 8601 extended - * format. For example, **2020-12-18T10:15:30+01:00**. + * format. For example, **2025-03-19T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -183,10 +183,10 @@ public OffsetDateTime getCreationDate() { /** * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2020-12-18T10:15:30+01:00**. + * **2025-03-19T10:15:30+01:00**. * * @param creationDate The date and time when the event was triggered, in ISO 8601 extended - * format. For example, **2020-12-18T10:15:30+01:00**. + * format. For example, **2025-03-19T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/src/main/java/com/adyen/model/reportwebhooks/Resource.java b/src/main/java/com/adyen/model/reportwebhooks/Resource.java index c5cd15a12..68ccb752a 100644 --- a/src/main/java/com/adyen/model/reportwebhooks/Resource.java +++ b/src/main/java/com/adyen/model/reportwebhooks/Resource.java @@ -71,10 +71,10 @@ public void setBalancePlatform(String balancePlatform) { /** * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2020-12-18T10:15:30+01:00**. + * **2025-03-19T10:15:30+01:00**. * * @param creationDate The date and time when the event was triggered, in ISO 8601 extended - * format. For example, **2020-12-18T10:15:30+01:00**. + * format. For example, **2025-03-19T10:15:30+01:00**. * @return the current {@code Resource} instance, allowing for method chaining */ public Resource creationDate(OffsetDateTime creationDate) { @@ -84,10 +84,10 @@ public Resource creationDate(OffsetDateTime creationDate) { /** * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2020-12-18T10:15:30+01:00**. + * **2025-03-19T10:15:30+01:00**. * * @return creationDate The date and time when the event was triggered, in ISO 8601 extended - * format. For example, **2020-12-18T10:15:30+01:00**. + * format. For example, **2025-03-19T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -97,10 +97,10 @@ public OffsetDateTime getCreationDate() { /** * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2020-12-18T10:15:30+01:00**. + * **2025-03-19T10:15:30+01:00**. * * @param creationDate The date and time when the event was triggered, in ISO 8601 extended - * format. For example, **2020-12-18T10:15:30+01:00**. + * format. For example, **2025-03-19T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/src/main/java/com/adyen/model/transactionwebhooks/BalancePlatformNotificationResponse.java b/src/main/java/com/adyen/model/transactionwebhooks/BalancePlatformNotificationResponse.java index 35d8bc087..639e14f1e 100644 --- a/src/main/java/com/adyen/model/transactionwebhooks/BalancePlatformNotificationResponse.java +++ b/src/main/java/com/adyen/model/transactionwebhooks/BalancePlatformNotificationResponse.java @@ -27,10 +27,10 @@ public BalancePlatformNotificationResponse() {} /** * Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). * * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). * @return the current {@code BalancePlatformNotificationResponse} instance, allowing for method * chaining */ @@ -41,10 +41,10 @@ public BalancePlatformNotificationResponse notificationResponse(String notificat /** * Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). * * @return notificationResponse Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). */ @JsonProperty(JSON_PROPERTY_NOTIFICATION_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -54,10 +54,10 @@ public String getNotificationResponse() { /** * Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). * * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). */ @JsonProperty(JSON_PROPERTY_NOTIFICATION_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/src/main/java/com/adyen/model/transactionwebhooks/Resource.java b/src/main/java/com/adyen/model/transactionwebhooks/Resource.java index d016bdbec..925b9380f 100644 --- a/src/main/java/com/adyen/model/transactionwebhooks/Resource.java +++ b/src/main/java/com/adyen/model/transactionwebhooks/Resource.java @@ -71,10 +71,10 @@ public void setBalancePlatform(String balancePlatform) { /** * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2020-12-18T10:15:30+01:00**. + * **2025-03-19T10:15:30+01:00**. * * @param creationDate The date and time when the event was triggered, in ISO 8601 extended - * format. For example, **2020-12-18T10:15:30+01:00**. + * format. For example, **2025-03-19T10:15:30+01:00**. * @return the current {@code Resource} instance, allowing for method chaining */ public Resource creationDate(OffsetDateTime creationDate) { @@ -84,10 +84,10 @@ public Resource creationDate(OffsetDateTime creationDate) { /** * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2020-12-18T10:15:30+01:00**. + * **2025-03-19T10:15:30+01:00**. * * @return creationDate The date and time when the event was triggered, in ISO 8601 extended - * format. For example, **2020-12-18T10:15:30+01:00**. + * format. For example, **2025-03-19T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -97,10 +97,10 @@ public OffsetDateTime getCreationDate() { /** * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2020-12-18T10:15:30+01:00**. + * **2025-03-19T10:15:30+01:00**. * * @param creationDate The date and time when the event was triggered, in ISO 8601 extended - * format. For example, **2020-12-18T10:15:30+01:00**. + * format. For example, **2025-03-19T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/src/main/java/com/adyen/model/transactionwebhooks/Transaction.java b/src/main/java/com/adyen/model/transactionwebhooks/Transaction.java index 0a1dbe178..e583a0cdc 100644 --- a/src/main/java/com/adyen/model/transactionwebhooks/Transaction.java +++ b/src/main/java/com/adyen/model/transactionwebhooks/Transaction.java @@ -291,10 +291,10 @@ public void setBookingDate(OffsetDateTime bookingDate) { /** * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2020-12-18T10:15:30+01:00**. + * **2025-03-19T10:15:30+01:00**. * * @param creationDate The date and time when the event was triggered, in ISO 8601 extended - * format. For example, **2020-12-18T10:15:30+01:00**. + * format. For example, **2025-03-19T10:15:30+01:00**. * @return the current {@code Transaction} instance, allowing for method chaining */ public Transaction creationDate(OffsetDateTime creationDate) { @@ -304,10 +304,10 @@ public Transaction creationDate(OffsetDateTime creationDate) { /** * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2020-12-18T10:15:30+01:00**. + * **2025-03-19T10:15:30+01:00**. * * @return creationDate The date and time when the event was triggered, in ISO 8601 extended - * format. For example, **2020-12-18T10:15:30+01:00**. + * format. For example, **2025-03-19T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -317,10 +317,10 @@ public OffsetDateTime getCreationDate() { /** * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2020-12-18T10:15:30+01:00**. + * **2025-03-19T10:15:30+01:00**. * * @param creationDate The date and time when the event was triggered, in ISO 8601 extended - * format. For example, **2020-12-18T10:15:30+01:00**. + * format. For example, **2025-03-19T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/src/main/java/com/adyen/model/transfers/PartyIdentification.java b/src/main/java/com/adyen/model/transfers/PartyIdentification.java index a378d9e26..f7150a348 100644 --- a/src/main/java/com/adyen/model/transfers/PartyIdentification.java +++ b/src/main/java/com/adyen/model/transfers/PartyIdentification.java @@ -26,11 +26,13 @@ @JsonPropertyOrder({ PartyIdentification.JSON_PROPERTY_ADDRESS, PartyIdentification.JSON_PROPERTY_DATE_OF_BIRTH, + PartyIdentification.JSON_PROPERTY_EMAIL, PartyIdentification.JSON_PROPERTY_FIRST_NAME, PartyIdentification.JSON_PROPERTY_FULL_NAME, PartyIdentification.JSON_PROPERTY_LAST_NAME, PartyIdentification.JSON_PROPERTY_REFERENCE, - PartyIdentification.JSON_PROPERTY_TYPE + PartyIdentification.JSON_PROPERTY_TYPE, + PartyIdentification.JSON_PROPERTY_URL }) public class PartyIdentification { public static final String JSON_PROPERTY_ADDRESS = "address"; @@ -39,6 +41,9 @@ public class PartyIdentification { public static final String JSON_PROPERTY_DATE_OF_BIRTH = "dateOfBirth"; private LocalDate dateOfBirth; + public static final String JSON_PROPERTY_EMAIL = "email"; + private String email; + public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; private String firstName; @@ -101,6 +106,9 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; + public static final String JSON_PROPERTY_URL = "url"; + private String url; + public PartyIdentification() {} /** @@ -178,6 +186,42 @@ public void setDateOfBirth(LocalDate dateOfBirth) { this.dateOfBirth = dateOfBirth; } + /** + * The email address of the organization or individual. Maximum length: 254 characters. + * + * @param email The email address of the organization or individual. Maximum length: 254 + * characters. + * @return the current {@code PartyIdentification} instance, allowing for method chaining + */ + public PartyIdentification email(String email) { + this.email = email; + return this; + } + + /** + * The email address of the organization or individual. Maximum length: 254 characters. + * + * @return email The email address of the organization or individual. Maximum length: 254 + * characters. + */ + @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getEmail() { + return email; + } + + /** + * The email address of the organization or individual. Maximum length: 254 characters. + * + * @param email The email address of the organization or individual. Maximum length: 254 + * characters. + */ + @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setEmail(String email) { + this.email = email; + } + /** * The first name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This * parameter is: - Allowed only when `type` is **individual**. - Required when @@ -403,6 +447,39 @@ public void setType(TypeEnum type) { this.type = type; } + /** + * The URL of the organization or individual. Maximum length: 255 characters. + * + * @param url The URL of the organization or individual. Maximum length: 255 characters. + * @return the current {@code PartyIdentification} instance, allowing for method chaining + */ + public PartyIdentification url(String url) { + this.url = url; + return this; + } + + /** + * The URL of the organization or individual. Maximum length: 255 characters. + * + * @return url The URL of the organization or individual. Maximum length: 255 characters. + */ + @JsonProperty(JSON_PROPERTY_URL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getUrl() { + return url; + } + + /** + * The URL of the organization or individual. Maximum length: 255 characters. + * + * @param url The URL of the organization or individual. Maximum length: 255 characters. + */ + @JsonProperty(JSON_PROPERTY_URL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUrl(String url) { + this.url = url; + } + /** Return true if this PartyIdentification object is equal to o. */ @Override public boolean equals(Object o) { @@ -415,16 +492,19 @@ public boolean equals(Object o) { PartyIdentification partyIdentification = (PartyIdentification) o; return Objects.equals(this.address, partyIdentification.address) && Objects.equals(this.dateOfBirth, partyIdentification.dateOfBirth) + && Objects.equals(this.email, partyIdentification.email) && Objects.equals(this.firstName, partyIdentification.firstName) && Objects.equals(this.fullName, partyIdentification.fullName) && Objects.equals(this.lastName, partyIdentification.lastName) && Objects.equals(this.reference, partyIdentification.reference) - && Objects.equals(this.type, partyIdentification.type); + && Objects.equals(this.type, partyIdentification.type) + && Objects.equals(this.url, partyIdentification.url); } @Override public int hashCode() { - return Objects.hash(address, dateOfBirth, firstName, fullName, lastName, reference, type); + return Objects.hash( + address, dateOfBirth, email, firstName, fullName, lastName, reference, type, url); } @Override @@ -433,11 +513,13 @@ public String toString() { sb.append("class PartyIdentification {\n"); sb.append(" address: ").append(toIndentedString(address)).append("\n"); sb.append(" dateOfBirth: ").append(toIndentedString(dateOfBirth)).append("\n"); + sb.append(" email: ").append(toIndentedString(email)).append("\n"); sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n"); sb.append(" fullName: ").append(toIndentedString(fullName)).append("\n"); sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" url: ").append(toIndentedString(url)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/adyen/model/transfers/Transaction.java b/src/main/java/com/adyen/model/transfers/Transaction.java index b81ebe9b6..e2d17457e 100644 --- a/src/main/java/com/adyen/model/transfers/Transaction.java +++ b/src/main/java/com/adyen/model/transfers/Transaction.java @@ -291,10 +291,10 @@ public void setBookingDate(OffsetDateTime bookingDate) { /** * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2020-12-18T10:15:30+01:00**. + * **2025-03-19T10:15:30+01:00**. * * @param creationDate The date and time when the event was triggered, in ISO 8601 extended - * format. For example, **2020-12-18T10:15:30+01:00**. + * format. For example, **2025-03-19T10:15:30+01:00**. * @return the current {@code Transaction} instance, allowing for method chaining */ public Transaction creationDate(OffsetDateTime creationDate) { @@ -304,10 +304,10 @@ public Transaction creationDate(OffsetDateTime creationDate) { /** * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2020-12-18T10:15:30+01:00**. + * **2025-03-19T10:15:30+01:00**. * * @return creationDate The date and time when the event was triggered, in ISO 8601 extended - * format. For example, **2020-12-18T10:15:30+01:00**. + * format. For example, **2025-03-19T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -317,10 +317,10 @@ public OffsetDateTime getCreationDate() { /** * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2020-12-18T10:15:30+01:00**. + * **2025-03-19T10:15:30+01:00**. * * @param creationDate The date and time when the event was triggered, in ISO 8601 extended - * format. For example, **2020-12-18T10:15:30+01:00**. + * format. For example, **2025-03-19T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/src/main/java/com/adyen/model/transfers/TransactionRuleReference.java b/src/main/java/com/adyen/model/transfers/TransactionRuleReference.java index fed438353..4863931e3 100644 --- a/src/main/java/com/adyen/model/transfers/TransactionRuleReference.java +++ b/src/main/java/com/adyen/model/transfers/TransactionRuleReference.java @@ -176,9 +176,11 @@ public void setReference(String reference) { } /** - * The score of the rule in case it's a scoreBased rule. + * The transaction score determined by the rule. Returned only when `outcomeType` is + * **scoreBased**. * - * @param score The score of the rule in case it's a scoreBased rule. + * @param score The transaction score determined by the rule. Returned only when + * `outcomeType` is **scoreBased**. * @return the current {@code TransactionRuleReference} instance, allowing for method chaining */ public TransactionRuleReference score(Integer score) { @@ -187,9 +189,11 @@ public TransactionRuleReference score(Integer score) { } /** - * The score of the rule in case it's a scoreBased rule. + * The transaction score determined by the rule. Returned only when `outcomeType` is + * **scoreBased**. * - * @return score The score of the rule in case it's a scoreBased rule. + * @return score The transaction score determined by the rule. Returned only when + * `outcomeType` is **scoreBased**. */ @JsonProperty(JSON_PROPERTY_SCORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -198,9 +202,11 @@ public Integer getScore() { } /** - * The score of the rule in case it's a scoreBased rule. + * The transaction score determined by the rule. Returned only when `outcomeType` is + * **scoreBased**. * - * @param score The score of the rule in case it's a scoreBased rule. + * @param score The transaction score determined by the rule. Returned only when + * `outcomeType` is **scoreBased**. */ @JsonProperty(JSON_PROPERTY_SCORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/src/main/java/com/adyen/model/transfers/Transfer.java b/src/main/java/com/adyen/model/transfers/Transfer.java index e2a5d7ae8..6d7ee7e5f 100644 --- a/src/main/java/com/adyen/model/transfers/Transfer.java +++ b/src/main/java/com/adyen/model/transfers/Transfer.java @@ -194,6 +194,8 @@ public enum ReasonEnum { AMOUNTLIMITEXCEEDED(String.valueOf("amountLimitExceeded")), + APPROVALEXPIRED(String.valueOf("approvalExpired")), + APPROVED(String.valueOf("approved")), BALANCEACCOUNTTEMPORARILYBLOCKEDBYTRANSACTIONRULE( diff --git a/src/main/java/com/adyen/model/transfers/TransferData.java b/src/main/java/com/adyen/model/transfers/TransferData.java index dd4bdc410..5fdf4cfd3 100644 --- a/src/main/java/com/adyen/model/transfers/TransferData.java +++ b/src/main/java/com/adyen/model/transfers/TransferData.java @@ -220,6 +220,8 @@ public enum ReasonEnum { AMOUNTLIMITEXCEEDED(String.valueOf("amountLimitExceeded")), + APPROVALEXPIRED(String.valueOf("approvalExpired")), + APPROVED(String.valueOf("approved")), BALANCEACCOUNTTEMPORARILYBLOCKEDBYTRANSACTIONRULE( diff --git a/src/main/java/com/adyen/model/transfers/TransferEvent.java b/src/main/java/com/adyen/model/transfers/TransferEvent.java index 94e00f17c..cfba03bb6 100644 --- a/src/main/java/com/adyen/model/transfers/TransferEvent.java +++ b/src/main/java/com/adyen/model/transfers/TransferEvent.java @@ -85,6 +85,8 @@ public enum ReasonEnum { AMOUNTLIMITEXCEEDED(String.valueOf("amountLimitExceeded")), + APPROVALEXPIRED(String.valueOf("approvalExpired")), + APPROVED(String.valueOf("approved")), BALANCEACCOUNTTEMPORARILYBLOCKEDBYTRANSACTIONRULE( diff --git a/src/main/java/com/adyen/model/transfers/UltimatePartyIdentification.java b/src/main/java/com/adyen/model/transfers/UltimatePartyIdentification.java index df68cd36e..1b8cbaeee 100644 --- a/src/main/java/com/adyen/model/transfers/UltimatePartyIdentification.java +++ b/src/main/java/com/adyen/model/transfers/UltimatePartyIdentification.java @@ -26,11 +26,13 @@ @JsonPropertyOrder({ UltimatePartyIdentification.JSON_PROPERTY_ADDRESS, UltimatePartyIdentification.JSON_PROPERTY_DATE_OF_BIRTH, + UltimatePartyIdentification.JSON_PROPERTY_EMAIL, UltimatePartyIdentification.JSON_PROPERTY_FIRST_NAME, UltimatePartyIdentification.JSON_PROPERTY_FULL_NAME, UltimatePartyIdentification.JSON_PROPERTY_LAST_NAME, UltimatePartyIdentification.JSON_PROPERTY_REFERENCE, - UltimatePartyIdentification.JSON_PROPERTY_TYPE + UltimatePartyIdentification.JSON_PROPERTY_TYPE, + UltimatePartyIdentification.JSON_PROPERTY_URL }) public class UltimatePartyIdentification { public static final String JSON_PROPERTY_ADDRESS = "address"; @@ -39,6 +41,9 @@ public class UltimatePartyIdentification { public static final String JSON_PROPERTY_DATE_OF_BIRTH = "dateOfBirth"; private LocalDate dateOfBirth; + public static final String JSON_PROPERTY_EMAIL = "email"; + private String email; + public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; private String firstName; @@ -101,6 +106,9 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; + public static final String JSON_PROPERTY_URL = "url"; + private String url; + public UltimatePartyIdentification() {} /** @@ -178,6 +186,42 @@ public void setDateOfBirth(LocalDate dateOfBirth) { this.dateOfBirth = dateOfBirth; } + /** + * The email address of the organization or individual. Maximum length: 254 characters. + * + * @param email The email address of the organization or individual. Maximum length: 254 + * characters. + * @return the current {@code UltimatePartyIdentification} instance, allowing for method chaining + */ + public UltimatePartyIdentification email(String email) { + this.email = email; + return this; + } + + /** + * The email address of the organization or individual. Maximum length: 254 characters. + * + * @return email The email address of the organization or individual. Maximum length: 254 + * characters. + */ + @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getEmail() { + return email; + } + + /** + * The email address of the organization or individual. Maximum length: 254 characters. + * + * @param email The email address of the organization or individual. Maximum length: 254 + * characters. + */ + @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setEmail(String email) { + this.email = email; + } + /** * The first name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This * parameter is: - Allowed only when `type` is **individual**. - Required when @@ -403,6 +447,39 @@ public void setType(TypeEnum type) { this.type = type; } + /** + * The URL of the organization or individual. Maximum length: 255 characters. + * + * @param url The URL of the organization or individual. Maximum length: 255 characters. + * @return the current {@code UltimatePartyIdentification} instance, allowing for method chaining + */ + public UltimatePartyIdentification url(String url) { + this.url = url; + return this; + } + + /** + * The URL of the organization or individual. Maximum length: 255 characters. + * + * @return url The URL of the organization or individual. Maximum length: 255 characters. + */ + @JsonProperty(JSON_PROPERTY_URL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getUrl() { + return url; + } + + /** + * The URL of the organization or individual. Maximum length: 255 characters. + * + * @param url The URL of the organization or individual. Maximum length: 255 characters. + */ + @JsonProperty(JSON_PROPERTY_URL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUrl(String url) { + this.url = url; + } + /** Return true if this UltimatePartyIdentification object is equal to o. */ @Override public boolean equals(Object o) { @@ -415,16 +492,19 @@ public boolean equals(Object o) { UltimatePartyIdentification ultimatePartyIdentification = (UltimatePartyIdentification) o; return Objects.equals(this.address, ultimatePartyIdentification.address) && Objects.equals(this.dateOfBirth, ultimatePartyIdentification.dateOfBirth) + && Objects.equals(this.email, ultimatePartyIdentification.email) && Objects.equals(this.firstName, ultimatePartyIdentification.firstName) && Objects.equals(this.fullName, ultimatePartyIdentification.fullName) && Objects.equals(this.lastName, ultimatePartyIdentification.lastName) && Objects.equals(this.reference, ultimatePartyIdentification.reference) - && Objects.equals(this.type, ultimatePartyIdentification.type); + && Objects.equals(this.type, ultimatePartyIdentification.type) + && Objects.equals(this.url, ultimatePartyIdentification.url); } @Override public int hashCode() { - return Objects.hash(address, dateOfBirth, firstName, fullName, lastName, reference, type); + return Objects.hash( + address, dateOfBirth, email, firstName, fullName, lastName, reference, type, url); } @Override @@ -433,11 +513,13 @@ public String toString() { sb.append("class UltimatePartyIdentification {\n"); sb.append(" address: ").append(toIndentedString(address)).append("\n"); sb.append(" dateOfBirth: ").append(toIndentedString(dateOfBirth)).append("\n"); + sb.append(" email: ").append(toIndentedString(email)).append("\n"); sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n"); sb.append(" fullName: ").append(toIndentedString(fullName)).append("\n"); sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" url: ").append(toIndentedString(url)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/BalancePlatformNotificationResponse.java b/src/main/java/com/adyen/model/transferwebhooks/BalancePlatformNotificationResponse.java index 5401465cf..6f13538f7 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/BalancePlatformNotificationResponse.java +++ b/src/main/java/com/adyen/model/transferwebhooks/BalancePlatformNotificationResponse.java @@ -27,10 +27,10 @@ public BalancePlatformNotificationResponse() {} /** * Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). * * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). * @return the current {@code BalancePlatformNotificationResponse} instance, allowing for method * chaining */ @@ -41,10 +41,10 @@ public BalancePlatformNotificationResponse notificationResponse(String notificat /** * Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). * * @return notificationResponse Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). */ @JsonProperty(JSON_PROPERTY_NOTIFICATION_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -54,10 +54,10 @@ public String getNotificationResponse() { /** * Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). * * @param notificationResponse Respond with any **2xx** HTTP status code to [accept the - * webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). + * webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). */ @JsonProperty(JSON_PROPERTY_NOTIFICATION_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/src/main/java/com/adyen/model/transferwebhooks/PartyIdentification.java b/src/main/java/com/adyen/model/transferwebhooks/PartyIdentification.java index a9a0bac4d..f4f324c6d 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/PartyIdentification.java +++ b/src/main/java/com/adyen/model/transferwebhooks/PartyIdentification.java @@ -26,11 +26,13 @@ @JsonPropertyOrder({ PartyIdentification.JSON_PROPERTY_ADDRESS, PartyIdentification.JSON_PROPERTY_DATE_OF_BIRTH, + PartyIdentification.JSON_PROPERTY_EMAIL, PartyIdentification.JSON_PROPERTY_FIRST_NAME, PartyIdentification.JSON_PROPERTY_FULL_NAME, PartyIdentification.JSON_PROPERTY_LAST_NAME, PartyIdentification.JSON_PROPERTY_REFERENCE, - PartyIdentification.JSON_PROPERTY_TYPE + PartyIdentification.JSON_PROPERTY_TYPE, + PartyIdentification.JSON_PROPERTY_URL }) public class PartyIdentification { public static final String JSON_PROPERTY_ADDRESS = "address"; @@ -39,6 +41,9 @@ public class PartyIdentification { public static final String JSON_PROPERTY_DATE_OF_BIRTH = "dateOfBirth"; private LocalDate dateOfBirth; + public static final String JSON_PROPERTY_EMAIL = "email"; + private String email; + public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; private String firstName; @@ -101,6 +106,9 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; + public static final String JSON_PROPERTY_URL = "url"; + private String url; + public PartyIdentification() {} /** @@ -178,6 +186,42 @@ public void setDateOfBirth(LocalDate dateOfBirth) { this.dateOfBirth = dateOfBirth; } + /** + * The email address of the organization or individual. Maximum length: 254 characters. + * + * @param email The email address of the organization or individual. Maximum length: 254 + * characters. + * @return the current {@code PartyIdentification} instance, allowing for method chaining + */ + public PartyIdentification email(String email) { + this.email = email; + return this; + } + + /** + * The email address of the organization or individual. Maximum length: 254 characters. + * + * @return email The email address of the organization or individual. Maximum length: 254 + * characters. + */ + @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getEmail() { + return email; + } + + /** + * The email address of the organization or individual. Maximum length: 254 characters. + * + * @param email The email address of the organization or individual. Maximum length: 254 + * characters. + */ + @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setEmail(String email) { + this.email = email; + } + /** * The first name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This * parameter is: - Allowed only when `type` is **individual**. - Required when @@ -403,6 +447,39 @@ public void setType(TypeEnum type) { this.type = type; } + /** + * The URL of the organization or individual. Maximum length: 255 characters. + * + * @param url The URL of the organization or individual. Maximum length: 255 characters. + * @return the current {@code PartyIdentification} instance, allowing for method chaining + */ + public PartyIdentification url(String url) { + this.url = url; + return this; + } + + /** + * The URL of the organization or individual. Maximum length: 255 characters. + * + * @return url The URL of the organization or individual. Maximum length: 255 characters. + */ + @JsonProperty(JSON_PROPERTY_URL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getUrl() { + return url; + } + + /** + * The URL of the organization or individual. Maximum length: 255 characters. + * + * @param url The URL of the organization or individual. Maximum length: 255 characters. + */ + @JsonProperty(JSON_PROPERTY_URL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUrl(String url) { + this.url = url; + } + /** Return true if this PartyIdentification object is equal to o. */ @Override public boolean equals(Object o) { @@ -415,16 +492,19 @@ public boolean equals(Object o) { PartyIdentification partyIdentification = (PartyIdentification) o; return Objects.equals(this.address, partyIdentification.address) && Objects.equals(this.dateOfBirth, partyIdentification.dateOfBirth) + && Objects.equals(this.email, partyIdentification.email) && Objects.equals(this.firstName, partyIdentification.firstName) && Objects.equals(this.fullName, partyIdentification.fullName) && Objects.equals(this.lastName, partyIdentification.lastName) && Objects.equals(this.reference, partyIdentification.reference) - && Objects.equals(this.type, partyIdentification.type); + && Objects.equals(this.type, partyIdentification.type) + && Objects.equals(this.url, partyIdentification.url); } @Override public int hashCode() { - return Objects.hash(address, dateOfBirth, firstName, fullName, lastName, reference, type); + return Objects.hash( + address, dateOfBirth, email, firstName, fullName, lastName, reference, type, url); } @Override @@ -433,11 +513,13 @@ public String toString() { sb.append("class PartyIdentification {\n"); sb.append(" address: ").append(toIndentedString(address)).append("\n"); sb.append(" dateOfBirth: ").append(toIndentedString(dateOfBirth)).append("\n"); + sb.append(" email: ").append(toIndentedString(email)).append("\n"); sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n"); sb.append(" fullName: ").append(toIndentedString(fullName)).append("\n"); sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" url: ").append(toIndentedString(url)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/adyen/model/transferwebhooks/Resource.java b/src/main/java/com/adyen/model/transferwebhooks/Resource.java index a89fe8d10..960a64abd 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/Resource.java +++ b/src/main/java/com/adyen/model/transferwebhooks/Resource.java @@ -71,10 +71,10 @@ public void setBalancePlatform(String balancePlatform) { /** * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2020-12-18T10:15:30+01:00**. + * **2025-03-19T10:15:30+01:00**. * * @param creationDate The date and time when the event was triggered, in ISO 8601 extended - * format. For example, **2020-12-18T10:15:30+01:00**. + * format. For example, **2025-03-19T10:15:30+01:00**. * @return the current {@code Resource} instance, allowing for method chaining */ public Resource creationDate(OffsetDateTime creationDate) { @@ -84,10 +84,10 @@ public Resource creationDate(OffsetDateTime creationDate) { /** * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2020-12-18T10:15:30+01:00**. + * **2025-03-19T10:15:30+01:00**. * * @return creationDate The date and time when the event was triggered, in ISO 8601 extended - * format. For example, **2020-12-18T10:15:30+01:00**. + * format. For example, **2025-03-19T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -97,10 +97,10 @@ public OffsetDateTime getCreationDate() { /** * The date and time when the event was triggered, in ISO 8601 extended format. For example, - * **2020-12-18T10:15:30+01:00**. + * **2025-03-19T10:15:30+01:00**. * * @param creationDate The date and time when the event was triggered, in ISO 8601 extended - * format. For example, **2020-12-18T10:15:30+01:00**. + * format. For example, **2025-03-19T10:15:30+01:00**. */ @JsonProperty(JSON_PROPERTY_CREATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/src/main/java/com/adyen/model/transferwebhooks/TransactionRuleReference.java b/src/main/java/com/adyen/model/transferwebhooks/TransactionRuleReference.java index a56ead9df..73caf743b 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/TransactionRuleReference.java +++ b/src/main/java/com/adyen/model/transferwebhooks/TransactionRuleReference.java @@ -176,9 +176,11 @@ public void setReference(String reference) { } /** - * The score of the rule in case it's a scoreBased rule. + * The transaction score determined by the rule. Returned only when `outcomeType` is + * **scoreBased**. * - * @param score The score of the rule in case it's a scoreBased rule. + * @param score The transaction score determined by the rule. Returned only when + * `outcomeType` is **scoreBased**. * @return the current {@code TransactionRuleReference} instance, allowing for method chaining */ public TransactionRuleReference score(Integer score) { @@ -187,9 +189,11 @@ public TransactionRuleReference score(Integer score) { } /** - * The score of the rule in case it's a scoreBased rule. + * The transaction score determined by the rule. Returned only when `outcomeType` is + * **scoreBased**. * - * @return score The score of the rule in case it's a scoreBased rule. + * @return score The transaction score determined by the rule. Returned only when + * `outcomeType` is **scoreBased**. */ @JsonProperty(JSON_PROPERTY_SCORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -198,9 +202,11 @@ public Integer getScore() { } /** - * The score of the rule in case it's a scoreBased rule. + * The transaction score determined by the rule. Returned only when `outcomeType` is + * **scoreBased**. * - * @param score The score of the rule in case it's a scoreBased rule. + * @param score The transaction score determined by the rule. Returned only when + * `outcomeType` is **scoreBased**. */ @JsonProperty(JSON_PROPERTY_SCORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/src/main/java/com/adyen/model/transferwebhooks/TransferData.java b/src/main/java/com/adyen/model/transferwebhooks/TransferData.java index b096f1c4a..5fc6b8a7f 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/TransferData.java +++ b/src/main/java/com/adyen/model/transferwebhooks/TransferData.java @@ -220,6 +220,8 @@ public enum ReasonEnum { AMOUNTLIMITEXCEEDED(String.valueOf("amountLimitExceeded")), + APPROVALEXPIRED(String.valueOf("approvalExpired")), + APPROVED(String.valueOf("approved")), BALANCEACCOUNTTEMPORARILYBLOCKEDBYTRANSACTIONRULE( diff --git a/src/main/java/com/adyen/model/transferwebhooks/TransferEvent.java b/src/main/java/com/adyen/model/transferwebhooks/TransferEvent.java index a472556a8..8e00640c8 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/TransferEvent.java +++ b/src/main/java/com/adyen/model/transferwebhooks/TransferEvent.java @@ -85,6 +85,8 @@ public enum ReasonEnum { AMOUNTLIMITEXCEEDED(String.valueOf("amountLimitExceeded")), + APPROVALEXPIRED(String.valueOf("approvalExpired")), + APPROVED(String.valueOf("approved")), BALANCEACCOUNTTEMPORARILYBLOCKEDBYTRANSACTIONRULE( diff --git a/src/main/java/com/adyen/service/balanceplatform/PaymentInstrumentsApi.java b/src/main/java/com/adyen/service/balanceplatform/PaymentInstrumentsApi.java index b547a37ea..ef2e9446c 100644 --- a/src/main/java/com/adyen/service/balanceplatform/PaymentInstrumentsApi.java +++ b/src/main/java/com/adyen/service/balanceplatform/PaymentInstrumentsApi.java @@ -62,21 +62,21 @@ public PaymentInstrumentsApi(Client client, String baseURL) { } /** - * Create network token activation data + * Create network token provisioning data * * @param id {@link String } The unique identifier of the payment instrument. (required) * @param networkTokenActivationDataRequest {@link NetworkTokenActivationDataRequest } (required) * @return {@link NetworkTokenActivationDataResponse } * @throws ApiException if fails to make API call */ - public NetworkTokenActivationDataResponse createNetworkTokenActivationData( + public NetworkTokenActivationDataResponse createNetworkTokenProvisioningData( String id, NetworkTokenActivationDataRequest networkTokenActivationDataRequest) throws ApiException, IOException { - return createNetworkTokenActivationData(id, networkTokenActivationDataRequest, null); + return createNetworkTokenProvisioningData(id, networkTokenActivationDataRequest, null); } /** - * Create network token activation data + * Create network token provisioning data * * @param id {@link String } The unique identifier of the payment instrument. (required) * @param networkTokenActivationDataRequest {@link NetworkTokenActivationDataRequest } (required) @@ -85,7 +85,7 @@ public NetworkTokenActivationDataResponse createNetworkTokenActivationData( * @return {@link NetworkTokenActivationDataResponse } * @throws ApiException if fails to make API call */ - public NetworkTokenActivationDataResponse createNetworkTokenActivationData( + public NetworkTokenActivationDataResponse createNetworkTokenProvisioningData( String id, NetworkTokenActivationDataRequest networkTokenActivationDataRequest, RequestOptions requestOptions) diff --git a/src/main/java/com/adyen/service/transfers/TransactionsApi.java b/src/main/java/com/adyen/service/transfers/TransactionsApi.java index e20ca95a9..570a190f1 100644 --- a/src/main/java/com/adyen/service/transfers/TransactionsApi.java +++ b/src/main/java/com/adyen/service/transfers/TransactionsApi.java @@ -102,9 +102,10 @@ public TransactionSearchResponse getAllTransactions( * @param createdUntil {@link OffsetDateTime } Query: Only include transactions that have been * created on or before this point in time. The value must be in ISO 8601 format. For example, * **2021-05-30T15:07:40Z**. (required) - * @param sortOrder {@link String } Query: The transactions sorting order. Possible values: - - * **asc**: Ascending order, from older to most recent. - **desc**: Descending order, from - * most recent to older. (optional) + * @param sortOrder {@link String } Query: Determines the sort order of the returned transactions. + * The sort order is based on the creation date of the transaction. Possible values: - + * **asc**: Ascending order, from oldest to most recent. - **desc**: Descending order, from + * most recent to oldest. Default value: **asc**. (optional) * @param limit {@link Integer } Query: The number of items returned per page, maximum of 100 * items. By default, the response returns 10 items per page. (optional) * @param requestOptions {@link RequestOptions } Object to store additional data such as diff --git a/src/main/java/com/adyen/service/transfers/TransfersApi.java b/src/main/java/com/adyen/service/transfers/TransfersApi.java index 3eb99b7fd..8b71f26d6 100644 --- a/src/main/java/com/adyen/service/transfers/TransfersApi.java +++ b/src/main/java/com/adyen/service/transfers/TransfersApi.java @@ -174,9 +174,10 @@ public FindTransfersResponse getAllTransfers( * created on or before this point in time. The value must be in ISO 8601 format and not later * than 6 months after the `createdSince` date. For example, * **2021-05-30T15:07:40Z**. (required) - * @param sortOrder {@link String } Query: The transfers sorting order. Possible values: - - * **asc**: Ascending order, from older to most recent. - **desc**: Descending order, from - * most recent to older. (optional) + * @param sortOrder {@link String } Query: Determines the sort order of the returned transfers. + * The sort order is based on the creation date of the transfers. Possible values: - **asc**: + * Ascending order, from oldest to most recent. - **desc**: Descending order, from most recent + * to oldest. Default value: **asc**. (optional) * @param cursor {@link String } Query: The `cursor` returned in the links of the * previous response. (optional) * @param limit {@link Integer } Query: The number of items returned per page, maximum of 100