diff --git a/src/main/java/com/adyen/model/configurationwebhooks/Amount.java b/src/main/java/com/adyen/model/configurationwebhooks/Amount.java index 706cfa8f0..35f0c4c76 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/Amount.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/Amount.java @@ -30,10 +30,12 @@ public Amount() {} /** * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes) of the + * amount. * * @param currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes) of the + * amount. * @return the current {@code Amount} instance, allowing for method chaining */ public Amount currency(String currency) { @@ -43,10 +45,12 @@ public Amount currency(String currency) { /** * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes) of the + * amount. * * @return currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes) of the + * amount. */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -56,10 +60,12 @@ public String getCurrency() { /** * The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes) of the + * amount. * * @param currency The three-character [ISO currency - * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * code](https://docs.adyen.com/development-resources/currency-codes#currency-codes) of the + * amount. */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -68,10 +74,10 @@ public void setCurrency(String currency) { } /** - * The amount of the transaction, in [minor + * The numeric value of the amount, in [minor * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * - * @param value The amount of the transaction, in [minor + * @param value The numeric value of the amount, in [minor * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * @return the current {@code Amount} instance, allowing for method chaining */ @@ -81,10 +87,10 @@ public Amount value(Long value) { } /** - * The amount of the transaction, in [minor + * The numeric value of the amount, in [minor * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * - * @return value The amount of the transaction, in [minor + * @return value The numeric value of the amount, in [minor * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). */ @JsonProperty(JSON_PROPERTY_VALUE) @@ -94,10 +100,10 @@ public Long getValue() { } /** - * The amount of the transaction, in [minor + * The numeric value of the amount, in [minor * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). * - * @param value The amount of the transaction, in [minor + * @param value The numeric value of the amount, in [minor * units](https://docs.adyen.com/development-resources/currency-codes#minor-units). */ @JsonProperty(JSON_PROPERTY_VALUE) diff --git a/src/main/java/com/adyen/model/configurationwebhooks/BulkAddress.java b/src/main/java/com/adyen/model/configurationwebhooks/BulkAddress.java index d5892bebc..2c7962a33 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/BulkAddress.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/BulkAddress.java @@ -28,6 +28,7 @@ BulkAddress.JSON_PROPERTY_LINE2, BulkAddress.JSON_PROPERTY_LINE3, BulkAddress.JSON_PROPERTY_MOBILE, + BulkAddress.JSON_PROPERTY_NAME, BulkAddress.JSON_PROPERTY_POSTAL_CODE, BulkAddress.JSON_PROPERTY_STATE_OR_PROVINCE, BulkAddress.JSON_PROPERTY_STREET @@ -60,6 +61,9 @@ public class BulkAddress { public static final String JSON_PROPERTY_MOBILE = "mobile"; private String mobile; + public static final String JSON_PROPERTY_NAME = "name"; + private String name; + public static final String JSON_PROPERTY_POSTAL_CODE = "postalCode"; private String postalCode; @@ -377,6 +381,39 @@ public void setMobile(String mobile) { this.mobile = mobile; } + /** + * The recipient’s name (person or contact), for example ‘John Doe’. + * + * @param name The recipient’s name (person or contact), for example ‘John Doe’. + * @return the current {@code BulkAddress} instance, allowing for method chaining + */ + public BulkAddress name(String name) { + this.name = name; + return this; + } + + /** + * The recipient’s name (person or contact), for example ‘John Doe’. + * + * @return name The recipient’s name (person or contact), for example ‘John Doe’. + */ + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { + return name; + } + + /** + * The recipient’s name (person or contact), for example ‘John Doe’. + * + * @param name The recipient’s name (person or contact), for example ‘John Doe’. + */ + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setName(String name) { + this.name = name; + } + /** * The postal code. Maximum length: * 5 digits for addresses in the US. * 10 characters for all * other countries. @@ -507,6 +544,7 @@ public boolean equals(Object o) { && Objects.equals(this.line2, bulkAddress.line2) && Objects.equals(this.line3, bulkAddress.line3) && Objects.equals(this.mobile, bulkAddress.mobile) + && Objects.equals(this.name, bulkAddress.name) && Objects.equals(this.postalCode, bulkAddress.postalCode) && Objects.equals(this.stateOrProvince, bulkAddress.stateOrProvince) && Objects.equals(this.street, bulkAddress.street); @@ -524,6 +562,7 @@ public int hashCode() { line2, line3, mobile, + name, postalCode, stateOrProvince, street); @@ -542,6 +581,7 @@ public String toString() { sb.append(" line2: ").append(toIndentedString(line2)).append("\n"); sb.append(" line3: ").append(toIndentedString(line3)).append("\n"); sb.append(" mobile: ").append(toIndentedString(mobile)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" postalCode: ").append(toIndentedString(postalCode)).append("\n"); sb.append(" stateOrProvince: ").append(toIndentedString(stateOrProvince)).append("\n"); sb.append(" street: ").append(toIndentedString(street)).append("\n"); diff --git a/src/main/java/com/adyen/model/configurationwebhooks/CardConfiguration.java b/src/main/java/com/adyen/model/configurationwebhooks/CardConfiguration.java index dd2eeaa80..9f2b92731 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/CardConfiguration.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/CardConfiguration.java @@ -80,12 +80,12 @@ public class CardConfiguration { public CardConfiguration() {} /** - * Overrides the activation label design ID defined in the `configurationProfileId`. The - * activation label is attached to the card and contains the activation instructions. + * The activation label attached to the card that contains the activation instructions. This field + * overrides the activation label design ID defined in the card configuration profile. * - * @param activation Overrides the activation label design ID defined in the - * `configurationProfileId`. The activation label is attached to the card and - * contains the activation instructions. + * @param activation The activation label attached to the card that contains the activation + * instructions. This field overrides the activation label design ID defined in the card + * configuration profile. * @return the current {@code CardConfiguration} instance, allowing for method chaining */ public CardConfiguration activation(String activation) { @@ -94,12 +94,12 @@ public CardConfiguration activation(String activation) { } /** - * Overrides the activation label design ID defined in the `configurationProfileId`. The - * activation label is attached to the card and contains the activation instructions. + * The activation label attached to the card that contains the activation instructions. This field + * overrides the activation label design ID defined in the card configuration profile. * - * @return activation Overrides the activation label design ID defined in the - * `configurationProfileId`. The activation label is attached to the card and - * contains the activation instructions. + * @return activation The activation label attached to the card that contains the activation + * instructions. This field overrides the activation label design ID defined in the card + * configuration profile. */ @JsonProperty(JSON_PROPERTY_ACTIVATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -108,12 +108,12 @@ public String getActivation() { } /** - * Overrides the activation label design ID defined in the `configurationProfileId`. The - * activation label is attached to the card and contains the activation instructions. + * The activation label attached to the card that contains the activation instructions. This field + * overrides the activation label design ID defined in the card configuration profile. * - * @param activation Overrides the activation label design ID defined in the - * `configurationProfileId`. The activation label is attached to the card and - * contains the activation instructions. + * @param activation The activation label attached to the card that contains the activation + * instructions. This field overrides the activation label design ID defined in the card + * configuration profile. */ @JsonProperty(JSON_PROPERTY_ACTIVATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -206,9 +206,9 @@ public void setBulkAddress(BulkAddress bulkAddress) { } /** - * The ID of the card image. This is the image that will be printed on the full front of the card. + * The unique identifier of the card image. This image is printed on the full front of the card. * - * @param cardImageId The ID of the card image. This is the image that will be printed on the full + * @param cardImageId The unique identifier of the card image. This image is printed on the full * front of the card. * @return the current {@code CardConfiguration} instance, allowing for method chaining */ @@ -218,10 +218,10 @@ public CardConfiguration cardImageId(String cardImageId) { } /** - * The ID of the card image. This is the image that will be printed on the full front of the card. + * The unique identifier of the card image. This image is printed on the full front of the card. * - * @return cardImageId The ID of the card image. This is the image that will be printed on the - * full front of the card. + * @return cardImageId The unique identifier of the card image. This image is printed on the full + * front of the card. */ @JsonProperty(JSON_PROPERTY_CARD_IMAGE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -230,9 +230,9 @@ public String getCardImageId() { } /** - * The ID of the card image. This is the image that will be printed on the full front of the card. + * The unique identifier of the card image. This image is printed on the full front of the card. * - * @param cardImageId The ID of the card image. This is the image that will be printed on the full + * @param cardImageId The unique identifier of the card image. This image is printed on the full * front of the card. */ @JsonProperty(JSON_PROPERTY_CARD_IMAGE_ID) @@ -242,12 +242,11 @@ public void setCardImageId(String cardImageId) { } /** - * Overrides the carrier design ID defined in the `configurationProfileId`. The carrier - * is the letter or packaging to which the card is attached. + * The letter or packaging to which the card is attached. This field overrides the carrier design + * ID defined in the card configuration profile. * - * @param carrier Overrides the carrier design ID defined in the - * `configurationProfileId`. The carrier is the letter or packaging to which the - * card is attached. + * @param carrier The letter or packaging to which the card is attached. This field overrides the + * carrier design ID defined in the card configuration profile. * @return the current {@code CardConfiguration} instance, allowing for method chaining */ public CardConfiguration carrier(String carrier) { @@ -256,12 +255,11 @@ public CardConfiguration carrier(String carrier) { } /** - * Overrides the carrier design ID defined in the `configurationProfileId`. The carrier - * is the letter or packaging to which the card is attached. + * The letter or packaging to which the card is attached. This field overrides the carrier design + * ID defined in the card configuration profile. * - * @return carrier Overrides the carrier design ID defined in the - * `configurationProfileId`. The carrier is the letter or packaging to which the - * card is attached. + * @return carrier The letter or packaging to which the card is attached. This field overrides the + * carrier design ID defined in the card configuration profile. */ @JsonProperty(JSON_PROPERTY_CARRIER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -270,12 +268,11 @@ public String getCarrier() { } /** - * Overrides the carrier design ID defined in the `configurationProfileId`. The carrier - * is the letter or packaging to which the card is attached. + * The letter or packaging to which the card is attached. This field overrides the carrier design + * ID defined in the card configuration profile. * - * @param carrier Overrides the carrier design ID defined in the - * `configurationProfileId`. The carrier is the letter or packaging to which the - * card is attached. + * @param carrier The letter or packaging to which the card is attached. This field overrides the + * carrier design ID defined in the card configuration profile. */ @JsonProperty(JSON_PROPERTY_CARRIER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -284,10 +281,10 @@ public void setCarrier(String carrier) { } /** - * The ID of the carrier image. This is the image that will printed on the letter to which the + * The unique identifier of the carrier image. This image is printed on the letter to which the * card is attached. * - * @param carrierImageId The ID of the carrier image. This is the image that will printed on the + * @param carrierImageId The unique identifier of the carrier image. This image is printed on the * letter to which the card is attached. * @return the current {@code CardConfiguration} instance, allowing for method chaining */ @@ -297,10 +294,10 @@ public CardConfiguration carrierImageId(String carrierImageId) { } /** - * The ID of the carrier image. This is the image that will printed on the letter to which the + * The unique identifier of the carrier image. This image is printed on the letter to which the * card is attached. * - * @return carrierImageId The ID of the carrier image. This is the image that will printed on the + * @return carrierImageId The unique identifier of the carrier image. This image is printed on the * letter to which the card is attached. */ @JsonProperty(JSON_PROPERTY_CARRIER_IMAGE_ID) @@ -310,10 +307,10 @@ public String getCarrierImageId() { } /** - * The ID of the carrier image. This is the image that will printed on the letter to which the + * The unique identifier of the carrier image. This image is printed on the letter to which the * card is attached. * - * @param carrierImageId The ID of the carrier image. This is the image that will printed on the + * @param carrierImageId The unique identifier of the carrier image. This image is printed on the * letter to which the card is attached. */ @JsonProperty(JSON_PROPERTY_CARRIER_IMAGE_ID) @@ -323,18 +320,19 @@ public void setCarrierImageId(String carrierImageId) { } /** - * The ID of the card configuration profile that contains the settings of the card. For example, - * the envelope and PIN mailer designs or the logistics company handling the shipment. All the - * settings in the profile are applied to the card, unless you provide other fields to override - * them. For example, send the `shipmentMethod` to override the logistics company - * defined in the card configuration profile. + * The unique identifier of the card configuration profile that contains the settings that are + * applied to the card. For example, the envelope and PIN mailer designs or the logistics company + * handling the shipment. You can override some of the existing settings in the configuration + * profile by providing the corresponding fields in the `configuration` object. For + * example, send the `shipmentMethod` to override the logistics company defined in the + * card configuration profile. * - * @param configurationProfileId The ID of the card configuration profile that contains the - * settings of the card. For example, the envelope and PIN mailer designs or the logistics - * company handling the shipment. All the settings in the profile are applied to the card, - * unless you provide other fields to override them. For example, send the - * `shipmentMethod` to override the logistics company defined in the card - * configuration profile. + * @param configurationProfileId The unique identifier of the card configuration profile that + * contains the settings that are applied to the card. For example, the envelope and PIN + * mailer designs or the logistics company handling the shipment. You can override some of the + * existing settings in the configuration profile by providing the corresponding fields in the + * `configuration` object. For example, send the `shipmentMethod` to + * override the logistics company defined in the card configuration profile. * @return the current {@code CardConfiguration} instance, allowing for method chaining */ public CardConfiguration configurationProfileId(String configurationProfileId) { @@ -343,18 +341,19 @@ public CardConfiguration configurationProfileId(String configurationProfileId) { } /** - * The ID of the card configuration profile that contains the settings of the card. For example, - * the envelope and PIN mailer designs or the logistics company handling the shipment. All the - * settings in the profile are applied to the card, unless you provide other fields to override - * them. For example, send the `shipmentMethod` to override the logistics company - * defined in the card configuration profile. + * The unique identifier of the card configuration profile that contains the settings that are + * applied to the card. For example, the envelope and PIN mailer designs or the logistics company + * handling the shipment. You can override some of the existing settings in the configuration + * profile by providing the corresponding fields in the `configuration` object. For + * example, send the `shipmentMethod` to override the logistics company defined in the + * card configuration profile. * - * @return configurationProfileId The ID of the card configuration profile that contains the - * settings of the card. For example, the envelope and PIN mailer designs or the logistics - * company handling the shipment. All the settings in the profile are applied to the card, - * unless you provide other fields to override them. For example, send the - * `shipmentMethod` to override the logistics company defined in the card - * configuration profile. + * @return configurationProfileId The unique identifier of the card configuration profile that + * contains the settings that are applied to the card. For example, the envelope and PIN + * mailer designs or the logistics company handling the shipment. You can override some of the + * existing settings in the configuration profile by providing the corresponding fields in the + * `configuration` object. For example, send the `shipmentMethod` to + * override the logistics company defined in the card configuration profile. */ @JsonProperty(JSON_PROPERTY_CONFIGURATION_PROFILE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -363,18 +362,19 @@ public String getConfigurationProfileId() { } /** - * The ID of the card configuration profile that contains the settings of the card. For example, - * the envelope and PIN mailer designs or the logistics company handling the shipment. All the - * settings in the profile are applied to the card, unless you provide other fields to override - * them. For example, send the `shipmentMethod` to override the logistics company - * defined in the card configuration profile. + * The unique identifier of the card configuration profile that contains the settings that are + * applied to the card. For example, the envelope and PIN mailer designs or the logistics company + * handling the shipment. You can override some of the existing settings in the configuration + * profile by providing the corresponding fields in the `configuration` object. For + * example, send the `shipmentMethod` to override the logistics company defined in the + * card configuration profile. * - * @param configurationProfileId The ID of the card configuration profile that contains the - * settings of the card. For example, the envelope and PIN mailer designs or the logistics - * company handling the shipment. All the settings in the profile are applied to the card, - * unless you provide other fields to override them. For example, send the - * `shipmentMethod` to override the logistics company defined in the card - * configuration profile. + * @param configurationProfileId The unique identifier of the card configuration profile that + * contains the settings that are applied to the card. For example, the envelope and PIN + * mailer designs or the logistics company handling the shipment. You can override some of the + * existing settings in the configuration profile by providing the corresponding fields in the + * `configuration` object. For example, send the `shipmentMethod` to + * override the logistics company defined in the card configuration profile. */ @JsonProperty(JSON_PROPERTY_CONFIGURATION_PROFILE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -384,10 +384,12 @@ public void setConfigurationProfileId(String configurationProfileId) { /** * The three-letter [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the card. - * For example, **EUR**. + * For example, **EUR**. This field overrides the existing currency setting on the card + * configuration profile. * * @param currency The three-letter [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217) currency - * code of the card. For example, **EUR**. + * code of the card. For example, **EUR**. This field overrides the existing currency setting + * on the card configuration profile. * @return the current {@code CardConfiguration} instance, allowing for method chaining */ public CardConfiguration currency(String currency) { @@ -397,10 +399,12 @@ public CardConfiguration currency(String currency) { /** * The three-letter [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the card. - * For example, **EUR**. + * For example, **EUR**. This field overrides the existing currency setting on the card + * configuration profile. * * @return currency The three-letter [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217) currency - * code of the card. For example, **EUR**. + * code of the card. For example, **EUR**. This field overrides the existing currency setting + * on the card configuration profile. */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -410,10 +414,12 @@ public String getCurrency() { /** * The three-letter [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the card. - * For example, **EUR**. + * For example, **EUR**. This field overrides the existing currency setting on the card + * configuration profile. * * @param currency The three-letter [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217) currency - * code of the card. For example, **EUR**. + * code of the card. For example, **EUR**. This field overrides the existing currency setting + * on the card configuration profile. */ @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -422,10 +428,9 @@ public void setCurrency(String currency) { } /** - * Overrides the envelope design ID defined in the `configurationProfileId`. + * Overrides the envelope design ID defined in the card configuration profile. * - * @param envelope Overrides the envelope design ID defined in the - * `configurationProfileId`. + * @param envelope Overrides the envelope design ID defined in the card configuration profile. * @return the current {@code CardConfiguration} instance, allowing for method chaining */ public CardConfiguration envelope(String envelope) { @@ -434,10 +439,9 @@ public CardConfiguration envelope(String envelope) { } /** - * Overrides the envelope design ID defined in the `configurationProfileId`. + * Overrides the envelope design ID defined in the card configuration profile. * - * @return envelope Overrides the envelope design ID defined in the - * `configurationProfileId`. + * @return envelope Overrides the envelope design ID defined in the card configuration profile. */ @JsonProperty(JSON_PROPERTY_ENVELOPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -446,10 +450,9 @@ public String getEnvelope() { } /** - * Overrides the envelope design ID defined in the `configurationProfileId`. + * Overrides the envelope design ID defined in the card configuration profile. * - * @param envelope Overrides the envelope design ID defined in the - * `configurationProfileId`. + * @param envelope Overrides the envelope design ID defined in the card configuration profile. */ @JsonProperty(JSON_PROPERTY_ENVELOPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -458,12 +461,12 @@ public void setEnvelope(String envelope) { } /** - * Overrides the insert design ID defined in the `configurationProfileId`. An insert is - * any additional material, such as marketing materials, that are shipped together with the card. + * Any additional material, such as marketing material, that is shipped together with the card. + * This field overrides the insert design ID defined in the card configuration profile. * - * @param insert Overrides the insert design ID defined in the `configurationProfileId`. - * An insert is any additional material, such as marketing materials, that are shipped - * together with the card. + * @param insert Any additional material, such as marketing material, that is shipped together + * with the card. This field overrides the insert design ID defined in the card configuration + * profile. * @return the current {@code CardConfiguration} instance, allowing for method chaining */ public CardConfiguration insert(String insert) { @@ -472,12 +475,12 @@ public CardConfiguration insert(String insert) { } /** - * Overrides the insert design ID defined in the `configurationProfileId`. An insert is - * any additional material, such as marketing materials, that are shipped together with the card. + * Any additional material, such as marketing material, that is shipped together with the card. + * This field overrides the insert design ID defined in the card configuration profile. * - * @return insert Overrides the insert design ID defined in the - * `configurationProfileId`. An insert is any additional material, such as marketing - * materials, that are shipped together with the card. + * @return insert Any additional material, such as marketing material, that is shipped together + * with the card. This field overrides the insert design ID defined in the card configuration + * profile. */ @JsonProperty(JSON_PROPERTY_INSERT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -486,12 +489,12 @@ public String getInsert() { } /** - * Overrides the insert design ID defined in the `configurationProfileId`. An insert is - * any additional material, such as marketing materials, that are shipped together with the card. + * Any additional material, such as marketing material, that is shipped together with the card. + * This field overrides the insert design ID defined in the card configuration profile. * - * @param insert Overrides the insert design ID defined in the `configurationProfileId`. - * An insert is any additional material, such as marketing materials, that are shipped - * together with the card. + * @param insert Any additional material, such as marketing material, that is shipped together + * with the card. This field overrides the insert design ID defined in the card configuration + * profile. */ @JsonProperty(JSON_PROPERTY_INSERT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -542,11 +545,11 @@ public void setLanguage(String language) { } /** - * The ID of the logo image. This is the image that will be printed on the partial front of the - * card, such as a logo on the upper right corner. + * The unique identifier of the logo image. This image is printed on the partial front of the + * card, for example, a logo on the upper right corner. * - * @param logoImageId The ID of the logo image. This is the image that will be printed on the - * partial front of the card, such as a logo on the upper right corner. + * @param logoImageId The unique identifier of the logo image. This image is printed on the + * partial front of the card, for example, a logo on the upper right corner. * @return the current {@code CardConfiguration} instance, allowing for method chaining */ public CardConfiguration logoImageId(String logoImageId) { @@ -555,11 +558,11 @@ public CardConfiguration logoImageId(String logoImageId) { } /** - * The ID of the logo image. This is the image that will be printed on the partial front of the - * card, such as a logo on the upper right corner. + * The unique identifier of the logo image. This image is printed on the partial front of the + * card, for example, a logo on the upper right corner. * - * @return logoImageId The ID of the logo image. This is the image that will be printed on the - * partial front of the card, such as a logo on the upper right corner. + * @return logoImageId The unique identifier of the logo image. This image is printed on the + * partial front of the card, for example, a logo on the upper right corner. */ @JsonProperty(JSON_PROPERTY_LOGO_IMAGE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -568,11 +571,11 @@ public String getLogoImageId() { } /** - * The ID of the logo image. This is the image that will be printed on the partial front of the - * card, such as a logo on the upper right corner. + * The unique identifier of the logo image. This image is printed on the partial front of the + * card, for example, a logo on the upper right corner. * - * @param logoImageId The ID of the logo image. This is the image that will be printed on the - * partial front of the card, such as a logo on the upper right corner. + * @param logoImageId The unique identifier of the logo image. This image is printed on the + * partial front of the card, for example, a logo on the upper right corner. */ @JsonProperty(JSON_PROPERTY_LOGO_IMAGE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -581,12 +584,11 @@ public void setLogoImageId(String logoImageId) { } /** - * Overrides the PIN mailer design ID defined in the `configurationProfileId`. The PIN - * mailer is the letter on which the PIN is printed. + * The letter on which the PIN of the card is printed. This field overrides the PIN mailer design + * ID defined in the card configuration profile. * - * @param pinMailer Overrides the PIN mailer design ID defined in the - * `configurationProfileId`. The PIN mailer is the letter on which the PIN is - * printed. + * @param pinMailer The letter on which the PIN of the card is printed. This field overrides the + * PIN mailer design ID defined in the card configuration profile. * @return the current {@code CardConfiguration} instance, allowing for method chaining */ public CardConfiguration pinMailer(String pinMailer) { @@ -595,12 +597,11 @@ public CardConfiguration pinMailer(String pinMailer) { } /** - * Overrides the PIN mailer design ID defined in the `configurationProfileId`. The PIN - * mailer is the letter on which the PIN is printed. + * The letter on which the PIN of the card is printed. This field overrides the PIN mailer design + * ID defined in the card configuration profile. * - * @return pinMailer Overrides the PIN mailer design ID defined in the - * `configurationProfileId`. The PIN mailer is the letter on which the PIN is - * printed. + * @return pinMailer The letter on which the PIN of the card is printed. This field overrides the + * PIN mailer design ID defined in the card configuration profile. */ @JsonProperty(JSON_PROPERTY_PIN_MAILER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -609,12 +610,11 @@ public String getPinMailer() { } /** - * Overrides the PIN mailer design ID defined in the `configurationProfileId`. The PIN - * mailer is the letter on which the PIN is printed. + * The letter on which the PIN of the card is printed. This field overrides the PIN mailer design + * ID defined in the card configuration profile. * - * @param pinMailer Overrides the PIN mailer design ID defined in the - * `configurationProfileId`. The PIN mailer is the letter on which the PIN is - * printed. + * @param pinMailer The letter on which the PIN of the card is printed. This field overrides the + * PIN mailer design ID defined in the card configuration profile. */ @JsonProperty(JSON_PROPERTY_PIN_MAILER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -623,10 +623,11 @@ public void setPinMailer(String pinMailer) { } /** - * Overrides the logistics company defined in the `configurationProfileId`. + * The logistics company that ships the card. This field overrides the logistics company defined + * in the card configuration profile. * - * @param shipmentMethod Overrides the logistics company defined in the - * `configurationProfileId`. + * @param shipmentMethod The logistics company that ships the card. This field overrides the + * logistics company defined in the card configuration profile. * @return the current {@code CardConfiguration} instance, allowing for method chaining */ public CardConfiguration shipmentMethod(String shipmentMethod) { @@ -635,10 +636,11 @@ public CardConfiguration shipmentMethod(String shipmentMethod) { } /** - * Overrides the logistics company defined in the `configurationProfileId`. + * The logistics company that ships the card. This field overrides the logistics company defined + * in the card configuration profile. * - * @return shipmentMethod Overrides the logistics company defined in the - * `configurationProfileId`. + * @return shipmentMethod The logistics company that ships the card. This field overrides the + * logistics company defined in the card configuration profile. */ @JsonProperty(JSON_PROPERTY_SHIPMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -647,10 +649,11 @@ public String getShipmentMethod() { } /** - * Overrides the logistics company defined in the `configurationProfileId`. + * The logistics company that ships the card. This field overrides the logistics company defined + * in the card configuration profile. * - * @param shipmentMethod Overrides the logistics company defined in the - * `configurationProfileId`. + * @param shipmentMethod The logistics company that ships the card. This field overrides the + * logistics company defined in the card configuration profile. */ @JsonProperty(JSON_PROPERTY_SHIPMENT_METHOD) @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 228e1fac8..e4dcd651c 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/SweepConfigurationV2.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/SweepConfigurationV2.java @@ -209,6 +209,8 @@ public enum ReasonEnum { SCAFAILED(String.valueOf("scaFailed")), + SCHEMEADVICE(String.valueOf("schemeAdvice")), + TRANSFERINSTRUMENTDOESNOTEXIST(String.valueOf("transferInstrumentDoesNotExist")), UNKNOWN(String.valueOf("unknown")); @@ -605,14 +607,14 @@ public void setId(String id) { * priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if * you provide `[\"wire\",\"regular\"]`, and `wire` is not * supported but `regular` is, the request will still be accepted and processed. - * Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to + * Possible values: * **regular**: For normal, low-value transactions. * **fast**: A faster way to * transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. - * * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for - * high-priority, high-value transactions. * **instant**: for instant funds transfers within the + * * **wire**: The fastest way to transfer funds, but this has the highest fees. Recommended for + * high-priority, high-value transactions. * **instant**: For instant funds transfers within the * United States and in [SEPA * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * - * **crossBorder**: for high-value transfers to a recipient in a different country. * - * **internal**: for transfers to an Adyen-issued business bank account (by bank account + * **crossBorder**: For high-value transfers to a recipient in a different country. * + * **internal**: For transfers to an Adyen-issued business bank account (by bank account * number/IBAN). Set `category` to **bank**. For more details, see optional priorities * setup for * [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) @@ -628,14 +630,14 @@ public void setId(String id) { * activated for your platform). For example, if you provide * `[\"wire\",\"regular\"]`, and `wire` is not * supported but `regular` is, the request will still be accepted and processed. - * Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster + * Possible values: * **regular**: For normal, low-value transactions. * **fast**: A faster * way to transfer funds, but the fees are higher. Recommended for high-priority, low-value - * transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. - * Recommended for high-priority, high-value transactions. * **instant**: for instant funds + * transactions. * **wire**: The fastest way to transfer funds, but this has the highest fees. + * Recommended for high-priority, high-value transactions. * **instant**: For instant funds * transfers within the United States and in [SEPA * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * - * **crossBorder**: for high-value transfers to a recipient in a different country. * - * **internal**: for transfers to an Adyen-issued business bank account (by bank account + * **crossBorder**: For high-value transfers to a recipient in a different country. * + * **internal**: For transfers to an Adyen-issued business bank account (by bank account * number/IBAN). Set `category` to **bank**. For more details, see optional * priorities setup for * [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) @@ -665,14 +667,14 @@ public SweepConfigurationV2 addPrioritiesItem(PrioritiesEnum prioritiesItem) { * priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if * you provide `[\"wire\",\"regular\"]`, and `wire` is not * supported but `regular` is, the request will still be accepted and processed. - * Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to + * Possible values: * **regular**: For normal, low-value transactions. * **fast**: A faster way to * transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. - * * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for - * high-priority, high-value transactions. * **instant**: for instant funds transfers within the + * * **wire**: The fastest way to transfer funds, but this has the highest fees. Recommended for + * high-priority, high-value transactions. * **instant**: For instant funds transfers within the * United States and in [SEPA * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * - * **crossBorder**: for high-value transfers to a recipient in a different country. * - * **internal**: for transfers to an Adyen-issued business bank account (by bank account + * **crossBorder**: For high-value transfers to a recipient in a different country. * + * **internal**: For transfers to an Adyen-issued business bank account (by bank account * number/IBAN). Set `category` to **bank**. For more details, see optional priorities * setup for * [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) @@ -688,14 +690,14 @@ public SweepConfigurationV2 addPrioritiesItem(PrioritiesEnum prioritiesItem) { * activated for your platform). For example, if you provide * `[\"wire\",\"regular\"]`, and `wire` is not * supported but `regular` is, the request will still be accepted and processed. - * Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster + * Possible values: * **regular**: For normal, low-value transactions. * **fast**: A faster * way to transfer funds, but the fees are higher. Recommended for high-priority, low-value - * transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. - * Recommended for high-priority, high-value transactions. * **instant**: for instant funds + * transactions. * **wire**: The fastest way to transfer funds, but this has the highest fees. + * Recommended for high-priority, high-value transactions. * **instant**: For instant funds * transfers within the United States and in [SEPA * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * - * **crossBorder**: for high-value transfers to a recipient in a different country. * - * **internal**: for transfers to an Adyen-issued business bank account (by bank account + * **crossBorder**: For high-value transfers to a recipient in a different country. * + * **internal**: For transfers to an Adyen-issued business bank account (by bank account * number/IBAN). Set `category` to **bank**. For more details, see optional * priorities setup for * [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) @@ -717,14 +719,14 @@ public List getPriorities() { * priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if * you provide `[\"wire\",\"regular\"]`, and `wire` is not * supported but `regular` is, the request will still be accepted and processed. - * Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to + * Possible values: * **regular**: For normal, low-value transactions. * **fast**: A faster way to * transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. - * * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for - * high-priority, high-value transactions. * **instant**: for instant funds transfers within the + * * **wire**: The fastest way to transfer funds, but this has the highest fees. Recommended for + * high-priority, high-value transactions. * **instant**: For instant funds transfers within the * United States and in [SEPA * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * - * **crossBorder**: for high-value transfers to a recipient in a different country. * - * **internal**: for transfers to an Adyen-issued business bank account (by bank account + * **crossBorder**: For high-value transfers to a recipient in a different country. * + * **internal**: For transfers to an Adyen-issued business bank account (by bank account * number/IBAN). Set `category` to **bank**. For more details, see optional priorities * setup for * [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) @@ -740,14 +742,14 @@ public List getPriorities() { * activated for your platform). For example, if you provide * `[\"wire\",\"regular\"]`, and `wire` is not * supported but `regular` is, the request will still be accepted and processed. - * Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster + * Possible values: * **regular**: For normal, low-value transactions. * **fast**: A faster * way to transfer funds, but the fees are higher. Recommended for high-priority, low-value - * transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. - * Recommended for high-priority, high-value transactions. * **instant**: for instant funds + * transactions. * **wire**: The fastest way to transfer funds, but this has the highest fees. + * Recommended for high-priority, high-value transactions. * **instant**: For instant funds * transfers within the United States and in [SEPA * locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * - * **crossBorder**: for high-value transfers to a recipient in a different country. * - * **internal**: for transfers to an Adyen-issued business bank account (by bank account + * **crossBorder**: For high-value transfers to a recipient in a different country. * + * **internal**: For transfers to an Adyen-issued business bank account (by bank account * number/IBAN). Set `category` to **bank**. For more details, see optional * priorities setup for * [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) diff --git a/src/test/java/com/adyen/CheckoutTest.java b/src/test/java/com/adyen/CheckoutTest.java index b81e95531..396880cdc 100644 --- a/src/test/java/com/adyen/CheckoutTest.java +++ b/src/test/java/com/adyen/CheckoutTest.java @@ -889,7 +889,7 @@ public void testForwardCardDetails() throws Exception { CheckoutForwardResponse response = recurringApi.forward(checkoutForwardRequest); - assertNull(response.getStoredPaymentMethodId()); // card is not tokenized + assertNull(response.getStoredPaymentMethodId()); // card is not tokenized assertNotNull(response.getResponse()); assertEquals(200, (int) response.getResponse().getStatus()); assertTrue(response.getResponse().getBody().contains("PAYMENT_METHOD_ID"));