diff --git a/sdk-generation-log/checkout.json b/sdk-generation-log/checkout.json new file mode 100644 index 000000000..c0d1b531d --- /dev/null +++ b/sdk-generation-log/checkout.json @@ -0,0 +1,8 @@ +{ + "service": "checkout", + "project": "java", + "generatedAt": "2026-04-15T07:56:40Z", + "openapiCommitSha": "3550ecd3f320efaad6bee55ffed5122cb9ba09d5", + "automationCommitSha": "1ceda93a33430aa189b6141d5f6ea2e61051c7fd", + "libraryCommitSha": "006de89d9ba7bca5c80eca48bcb5ee5829e763cb" +} diff --git a/src/main/java/com/adyen/model/checkout/AccountInfo.java b/src/main/java/com/adyen/model/checkout/AccountInfo.java index 74765ace3..6c5f54845 100644 --- a/src/main/java/com/adyen/model/checkout/AccountInfo.java +++ b/src/main/java/com/adyen/model/checkout/AccountInfo.java @@ -291,17 +291,15 @@ public static DeliveryAddressUsageIndicatorEnum fromValue(String value) { private boolean isSetDeliveryAddressUsageIndicator = false; public static final String JSON_PROPERTY_HOME_PHONE = "homePhone"; - @Deprecated // deprecated since Adyen Checkout API v68: Use `ThreeDS2RequestData.homePhone` - // instead. - private String homePhone; + /* deprecated since Adyen Checkout API v68: Use `ThreeDS2RequestData.homePhone` instead. */ + @Deprecated private String homePhone; /** Mark when the attribute has been explicitly set. */ private boolean isSetHomePhone = false; public static final String JSON_PROPERTY_MOBILE_PHONE = "mobilePhone"; - @Deprecated // deprecated since Adyen Checkout API v68: Use `ThreeDS2RequestData.mobilePhone` - // instead. - private String mobilePhone; + /* deprecated since Adyen Checkout API v68: Use `ThreeDS2RequestData.mobilePhone` instead. */ + @Deprecated private String mobilePhone; /** Mark when the attribute has been explicitly set. */ private boolean isSetMobilePhone = false; @@ -456,9 +454,8 @@ public static PaymentAccountIndicatorEnum fromValue(String value) { private boolean isSetSuspiciousActivity = false; public static final String JSON_PROPERTY_WORK_PHONE = "workPhone"; - @Deprecated // deprecated since Adyen Checkout API v68: Use `ThreeDS2RequestData.workPhone` - // instead. - private String workPhone; + /* deprecated since Adyen Checkout API v68: Use `ThreeDS2RequestData.workPhone` instead. */ + @Deprecated private String workPhone; /** Mark when the attribute has been explicitly set. */ private boolean isSetWorkPhone = false; @@ -797,10 +794,9 @@ public void setDeliveryAddressUsageIndicator( * * @param homePhone Shopper's home phone number (including the country code). * @return the current {@code AccountInfo} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v68 Use `ThreeDS2RequestData.homePhone` instead. + * @deprecated since Adyen Checkout API v68 Use `ThreeDS2RequestData.homePhone` instead. */ - @Deprecated // deprecated since Adyen Checkout API v68: Use `ThreeDS2RequestData.homePhone` - // instead. + @Deprecated public AccountInfo homePhone(String homePhone) { this.homePhone = homePhone; isSetHomePhone = true; // mark as set @@ -811,11 +807,9 @@ public AccountInfo homePhone(String homePhone) { * Shopper's home phone number (including the country code). * * @return homePhone Shopper's home phone number (including the country code). - * @deprecated // deprecated since Adyen Checkout API v68: Use `ThreeDS2RequestData.homePhone` - * instead. + * @deprecated since Adyen Checkout API v68 Use `ThreeDS2RequestData.homePhone` instead. */ - @Deprecated // deprecated since Adyen Checkout API v68: Use `ThreeDS2RequestData.homePhone` - // instead. + @Deprecated @JsonProperty(JSON_PROPERTY_HOME_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getHomePhone() { @@ -826,10 +820,9 @@ public String getHomePhone() { * Shopper's home phone number (including the country code). * * @param homePhone Shopper's home phone number (including the country code). - * @deprecated since Adyen Checkout API v68 Use `ThreeDS2RequestData.homePhone` instead. + * @deprecated since Adyen Checkout API v68 Use `ThreeDS2RequestData.homePhone` instead. */ - @Deprecated // deprecated since Adyen Checkout API v68: Use `ThreeDS2RequestData.homePhone` - // instead. + @Deprecated @JsonProperty(JSON_PROPERTY_HOME_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setHomePhone(String homePhone) { @@ -842,11 +835,9 @@ public void setHomePhone(String homePhone) { * * @param mobilePhone Shopper's mobile phone number (including the country code). * @return the current {@code AccountInfo} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v68 Use `ThreeDS2RequestData.mobilePhone` - * instead. + * @deprecated since Adyen Checkout API v68 Use `ThreeDS2RequestData.mobilePhone` instead. */ - @Deprecated // deprecated since Adyen Checkout API v68: Use `ThreeDS2RequestData.mobilePhone` - // instead. + @Deprecated public AccountInfo mobilePhone(String mobilePhone) { this.mobilePhone = mobilePhone; isSetMobilePhone = true; // mark as set @@ -857,11 +848,9 @@ public AccountInfo mobilePhone(String mobilePhone) { * Shopper's mobile phone number (including the country code). * * @return mobilePhone Shopper's mobile phone number (including the country code). - * @deprecated // deprecated since Adyen Checkout API v68: Use `ThreeDS2RequestData.mobilePhone` - * instead. + * @deprecated since Adyen Checkout API v68 Use `ThreeDS2RequestData.mobilePhone` instead. */ - @Deprecated // deprecated since Adyen Checkout API v68: Use `ThreeDS2RequestData.mobilePhone` - // instead. + @Deprecated @JsonProperty(JSON_PROPERTY_MOBILE_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMobilePhone() { @@ -872,11 +861,9 @@ public String getMobilePhone() { * Shopper's mobile phone number (including the country code). * * @param mobilePhone Shopper's mobile phone number (including the country code). - * @deprecated since Adyen Checkout API v68 Use `ThreeDS2RequestData.mobilePhone` - * instead. + * @deprecated since Adyen Checkout API v68 Use `ThreeDS2RequestData.mobilePhone` instead. */ - @Deprecated // deprecated since Adyen Checkout API v68: Use `ThreeDS2RequestData.mobilePhone` - // instead. + @Deprecated @JsonProperty(JSON_PROPERTY_MOBILE_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMobilePhone(String mobilePhone) { @@ -1196,10 +1183,9 @@ public void setSuspiciousActivity(Boolean suspiciousActivity) { * * @param workPhone Shopper's work phone number (including the country code). * @return the current {@code AccountInfo} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v68 Use `ThreeDS2RequestData.workPhone` instead. + * @deprecated since Adyen Checkout API v68 Use `ThreeDS2RequestData.workPhone` instead. */ - @Deprecated // deprecated since Adyen Checkout API v68: Use `ThreeDS2RequestData.workPhone` - // instead. + @Deprecated public AccountInfo workPhone(String workPhone) { this.workPhone = workPhone; isSetWorkPhone = true; // mark as set @@ -1210,11 +1196,9 @@ public AccountInfo workPhone(String workPhone) { * Shopper's work phone number (including the country code). * * @return workPhone Shopper's work phone number (including the country code). - * @deprecated // deprecated since Adyen Checkout API v68: Use `ThreeDS2RequestData.workPhone` - * instead. + * @deprecated since Adyen Checkout API v68 Use `ThreeDS2RequestData.workPhone` instead. */ - @Deprecated // deprecated since Adyen Checkout API v68: Use `ThreeDS2RequestData.workPhone` - // instead. + @Deprecated @JsonProperty(JSON_PROPERTY_WORK_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getWorkPhone() { @@ -1225,10 +1209,9 @@ public String getWorkPhone() { * Shopper's work phone number (including the country code). * * @param workPhone Shopper's work phone number (including the country code). - * @deprecated since Adyen Checkout API v68 Use `ThreeDS2RequestData.workPhone` instead. + * @deprecated since Adyen Checkout API v68 Use `ThreeDS2RequestData.workPhone` instead. */ - @Deprecated // deprecated since Adyen Checkout API v68: Use `ThreeDS2RequestData.workPhone` - // instead. + @Deprecated @JsonProperty(JSON_PROPERTY_WORK_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWorkPhone(String workPhone) { diff --git a/src/main/java/com/adyen/model/checkout/AchDetails.java b/src/main/java/com/adyen/model/checkout/AchDetails.java index 62bbe17a1..e5b55eaae 100644 --- a/src/main/java/com/adyen/model/checkout/AchDetails.java +++ b/src/main/java/com/adyen/model/checkout/AchDetails.java @@ -182,8 +182,8 @@ public static BankAccountTypeEnum fromValue(String value) { private boolean isSetOwnerName = false; public static final String JSON_PROPERTY_RECURRING_DETAIL_REFERENCE = "recurringDetailReference"; - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. - private String recurringDetailReference; + /* deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ + @Deprecated private String recurringDetailReference; /** Mark when the attribute has been explicitly set. */ private boolean isSetRecurringDetailReference = false; @@ -608,9 +608,9 @@ public void setOwnerName(String ownerName) { * @param recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. * @return the current {@code AchDetails} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated public AchDetails recurringDetailReference(String recurringDetailReference) { this.recurringDetailReference = recurringDetailReference; isSetRecurringDetailReference = true; // mark as set @@ -623,9 +623,9 @@ public AchDetails recurringDetailReference(String recurringDetailReference) { * * @return recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. - * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getRecurringDetailReference() { @@ -638,9 +638,9 @@ public String getRecurringDetailReference() { * * @param recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRecurringDetailReference(String recurringDetailReference) { diff --git a/src/main/java/com/adyen/model/checkout/AdditionalData3DSecure.java b/src/main/java/com/adyen/model/checkout/AdditionalData3DSecure.java index bc5b8a6e0..48b3f3911 100644 --- a/src/main/java/com/adyen/model/checkout/AdditionalData3DSecure.java +++ b/src/main/java/com/adyen/model/checkout/AdditionalData3DSecure.java @@ -34,9 +34,8 @@ }) public class AdditionalData3DSecure { public static final String JSON_PROPERTY_ALLOW3_D_S2 = "allow3DS2"; - @Deprecated // deprecated since Adyen Checkout API v69: Use - // `authenticationData.threeDSRequestData.nativeThreeDS` instead. - private String allow3DS2; + /* deprecated since Adyen Checkout API v69: Use `authenticationData.threeDSRequestData.nativeThreeDS` instead. */ + @Deprecated private String allow3DS2; /** Mark when the attribute has been explicitly set. */ private boolean isSetAllow3DS2 = false; @@ -99,9 +98,8 @@ public static ChallengeWindowSizeEnum fromValue(String value) { private boolean isSetChallengeWindowSize = false; public static final String JSON_PROPERTY_EXECUTE_THREE_D = "executeThreeD"; - @Deprecated // deprecated since Adyen Checkout API v69: Use - // [`authenticationData.attemptAuthentication`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments?target=_blank#request-authenticationData-attemptAuthentication) instead - private String executeThreeD; + /* deprecated since Adyen Checkout API v69: Use [`authenticationData.attemptAuthentication`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments?target=_blank#request-authenticationData-attemptAuthentication) instead */ + @Deprecated private String executeThreeD; /** Mark when the attribute has been explicitly set. */ private boolean isSetExecuteThreeD = false; @@ -160,10 +158,9 @@ public AdditionalData3DSecure() {} * instead, based on your configuration. * @return the current {@code AdditionalData3DSecure} instance, allowing for method chaining * @deprecated since Adyen Checkout API v69 Use - * `authenticationData.threeDSRequestData.nativeThreeDS` instead. + * `authenticationData.threeDSRequestData.nativeThreeDS` instead. */ - @Deprecated // deprecated since Adyen Checkout API v69: Use - // `authenticationData.threeDSRequestData.nativeThreeDS` instead. + @Deprecated public AdditionalData3DSecure allow3DS2(String allow3DS2) { this.allow3DS2 = allow3DS2; isSetAllow3DS2 = true; // mark as set @@ -196,11 +193,10 @@ public AdditionalData3DSecure allow3DS2(String allow3DS2) { * authorization rates and improve the shopper's experience. * **false** – Not ready to * support native 3D Secure 2 authentication. Adyen offers redirect 3D Secure 2 authentication * instead, based on your configuration. - * @deprecated // deprecated since Adyen Checkout API v69: Use + * @deprecated since Adyen Checkout API v69 Use * `authenticationData.threeDSRequestData.nativeThreeDS` instead. */ - @Deprecated // deprecated since Adyen Checkout API v69: Use - // `authenticationData.threeDSRequestData.nativeThreeDS` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_ALLOW3_D_S2) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getAllow3DS2() { @@ -234,10 +230,9 @@ public String getAllow3DS2() { * support native 3D Secure 2 authentication. Adyen offers redirect 3D Secure 2 authentication * instead, based on your configuration. * @deprecated since Adyen Checkout API v69 Use - * `authenticationData.threeDSRequestData.nativeThreeDS` instead. + * `authenticationData.threeDSRequestData.nativeThreeDS` instead. */ - @Deprecated // deprecated since Adyen Checkout API v69: Use - // `authenticationData.threeDSRequestData.nativeThreeDS` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_ALLOW3_D_S2) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAllow3DS2(String allow3DS2) { @@ -307,11 +302,10 @@ public void setChallengeWindowSize(ChallengeWindowSizeEnum challengeWindowSize) * mandates 3D Secure because of the PSD2 directive or other, national regulations. * @return the current {@code AdditionalData3DSecure} instance, allowing for method chaining * @deprecated since Adyen Checkout API v69 Use - * [`authenticationData.attemptAuthentication`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments?target=_blank#request-authenticationData-attemptAuthentication) + * [`authenticationData.attemptAuthentication`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments?target=_blank#request-authenticationData-attemptAuthentication) * instead */ - @Deprecated // deprecated since Adyen Checkout API v69: Use - // [`authenticationData.attemptAuthentication`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments?target=_blank#request-authenticationData-attemptAuthentication) instead + @Deprecated public AdditionalData3DSecure executeThreeD(String executeThreeD) { this.executeThreeD = executeThreeD; isSetExecuteThreeD = true; // mark as set @@ -331,12 +325,11 @@ public AdditionalData3DSecure executeThreeD(String executeThreeD) { * Possible values: * **true** – Perform 3D Secure authentication. * **false** – Don't * perform 3D Secure authentication. Note that this setting results in refusals if the issuer * mandates 3D Secure because of the PSD2 directive or other, national regulations. - * @deprecated // deprecated since Adyen Checkout API v69: Use + * @deprecated since Adyen Checkout API v69 Use * [`authenticationData.attemptAuthentication`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments?target=_blank#request-authenticationData-attemptAuthentication) * instead */ - @Deprecated // deprecated since Adyen Checkout API v69: Use - // [`authenticationData.attemptAuthentication`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments?target=_blank#request-authenticationData-attemptAuthentication) instead + @Deprecated @JsonProperty(JSON_PROPERTY_EXECUTE_THREE_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getExecuteThreeD() { @@ -357,11 +350,10 @@ public String getExecuteThreeD() { * perform 3D Secure authentication. Note that this setting results in refusals if the issuer * mandates 3D Secure because of the PSD2 directive or other, national regulations. * @deprecated since Adyen Checkout API v69 Use - * [`authenticationData.attemptAuthentication`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments?target=_blank#request-authenticationData-attemptAuthentication) + * [`authenticationData.attemptAuthentication`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments?target=_blank#request-authenticationData-attemptAuthentication) * instead */ - @Deprecated // deprecated since Adyen Checkout API v69: Use - // [`authenticationData.attemptAuthentication`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments?target=_blank#request-authenticationData-attemptAuthentication) instead + @Deprecated @JsonProperty(JSON_PROPERTY_EXECUTE_THREE_D) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setExecuteThreeD(String executeThreeD) { diff --git a/src/main/java/com/adyen/model/checkout/AfterpayDetails.java b/src/main/java/com/adyen/model/checkout/AfterpayDetails.java index 21efc433f..17d26ef57 100644 --- a/src/main/java/com/adyen/model/checkout/AfterpayDetails.java +++ b/src/main/java/com/adyen/model/checkout/AfterpayDetails.java @@ -60,8 +60,8 @@ public class AfterpayDetails { private boolean isSetPersonalDetails = false; public static final String JSON_PROPERTY_RECURRING_DETAIL_REFERENCE = "recurringDetailReference"; - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. - private String recurringDetailReference; + /* deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ + @Deprecated private String recurringDetailReference; /** Mark when the attribute has been explicitly set. */ private boolean isSetRecurringDetailReference = false; @@ -284,9 +284,9 @@ public void setPersonalDetails(String personalDetails) { * @param recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. * @return the current {@code AfterpayDetails} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated public AfterpayDetails recurringDetailReference(String recurringDetailReference) { this.recurringDetailReference = recurringDetailReference; isSetRecurringDetailReference = true; // mark as set @@ -299,9 +299,9 @@ public AfterpayDetails recurringDetailReference(String recurringDetailReference) * * @return recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. - * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getRecurringDetailReference() { @@ -314,9 +314,9 @@ public String getRecurringDetailReference() { * * @param recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRecurringDetailReference(String recurringDetailReference) { diff --git a/src/main/java/com/adyen/model/checkout/AlmaDetails.java b/src/main/java/com/adyen/model/checkout/AlmaDetails.java new file mode 100644 index 000000000..221a9ca9e --- /dev/null +++ b/src/main/java/com/adyen/model/checkout/AlmaDetails.java @@ -0,0 +1,414 @@ +/* + * Adyen Checkout API + * + * The version of the OpenAPI document: 71 + * + * + * 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.checkout; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +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; + +/** AlmaDetails */ +@JsonPropertyOrder({ + AlmaDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, + AlmaDetails.JSON_PROPERTY_FEE_TYPE, + AlmaDetails.JSON_PROPERTY_SDK_DATA, + AlmaDetails.JSON_PROPERTY_TYPE +}) +public class AlmaDetails { + public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId"; + private String checkoutAttemptId; + + /** Mark when the attribute has been explicitly set. */ + private boolean isSetCheckoutAttemptId = false; + + /** **Alma payment request fee type** */ + public enum FeeTypeEnum { + MERCHANTPAYS(String.valueOf("merchantPays")), + + SHOPPERPAYS(String.valueOf("shopperPays")); + + private static final Logger LOG = Logger.getLogger(FeeTypeEnum.class.getName()); + + private String value; + + FeeTypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static FeeTypeEnum fromValue(String value) { + for (FeeTypeEnum b : FeeTypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + // handling unexpected value + LOG.warning( + "FeeTypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(FeeTypeEnum.values())); + return null; + } + } + + public static final String JSON_PROPERTY_FEE_TYPE = "feeType"; + private FeeTypeEnum feeType; + + /** Mark when the attribute has been explicitly set. */ + private boolean isSetFeeType = false; + + public static final String JSON_PROPERTY_SDK_DATA = "sdkData"; + private String sdkData; + + /** Mark when the attribute has been explicitly set. */ + private boolean isSetSdkData = false; + + /** The payment method type. */ + public enum TypeEnum { + ALMA(String.valueOf("alma")); + + 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; + + /** Mark when the attribute has been explicitly set. */ + private boolean isSetType = false; + + /** + * Sets whether attributes with null values should be explicitly included in the JSON payload. + * Default is false. + */ + @JsonIgnore private boolean includeNullValues = false; + + public AlmaDetails() {} + + /** + * The checkout attempt identifier. + * + * @param checkoutAttemptId The checkout attempt identifier. + * @return the current {@code AlmaDetails} instance, allowing for method chaining + */ + public AlmaDetails checkoutAttemptId(String checkoutAttemptId) { + this.checkoutAttemptId = checkoutAttemptId; + isSetCheckoutAttemptId = true; // mark as set + return this; + } + + /** + * The checkout attempt identifier. + * + * @return checkoutAttemptId The checkout attempt identifier. + */ + @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getCheckoutAttemptId() { + return checkoutAttemptId; + } + + /** + * The checkout attempt identifier. + * + * @param checkoutAttemptId The checkout attempt identifier. + */ + @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setCheckoutAttemptId(String checkoutAttemptId) { + this.checkoutAttemptId = checkoutAttemptId; + isSetCheckoutAttemptId = true; // mark as set + } + + /** + * **Alma payment request fee type** + * + * @param feeType **Alma payment request fee type** + * @return the current {@code AlmaDetails} instance, allowing for method chaining + */ + public AlmaDetails feeType(FeeTypeEnum feeType) { + this.feeType = feeType; + isSetFeeType = true; // mark as set + return this; + } + + /** + * **Alma payment request fee type** + * + * @return feeType **Alma payment request fee type** + */ + @JsonProperty(JSON_PROPERTY_FEE_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public FeeTypeEnum getFeeType() { + return feeType; + } + + /** + * **Alma payment request fee type** + * + * @param feeType **Alma payment request fee type** + */ + @JsonProperty(JSON_PROPERTY_FEE_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setFeeType(FeeTypeEnum feeType) { + this.feeType = feeType; + isSetFeeType = true; // mark as set + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * @return the current {@code AlmaDetails} instance, allowing for method chaining + */ + public AlmaDetails sdkData(String sdkData) { + this.sdkData = sdkData; + isSetSdkData = true; // mark as set + return this; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return sdkData Base64-encoded JSON object containing SDK related parameters required by the + * SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSdkData() { + return sdkData; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSdkData(String sdkData) { + this.sdkData = sdkData; + isSetSdkData = true; // mark as set + } + + /** + * The payment method type. + * + * @param type The payment method type. + * @return the current {@code AlmaDetails} instance, allowing for method chaining + */ + public AlmaDetails type(TypeEnum type) { + this.type = type; + isSetType = true; // mark as set + return this; + } + + /** + * The payment method type. + * + * @return type The payment method type. + */ + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public TypeEnum getType() { + return type; + } + + /** + * The payment method type. + * + * @param type The payment method type. + */ + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setType(TypeEnum type) { + this.type = type; + isSetType = true; // mark as set + } + + /** + * Configures whether null values are explicitly serialized in the JSON payload. Default is false. + */ + public AlmaDetails includeNullValues(boolean includeNullValues) { + this.includeNullValues = includeNullValues; + return this; + } + + /** Returns whether null values are explicitly serialized in the JSON payload. */ + public boolean isIncludeNullValues() { + return includeNullValues; + } + + /** + * Sets whether null values should be explicitly serialized in the JSON payload. Default is false. + */ + public void setIncludeNullValues(boolean includeNullValues) { + this.includeNullValues = includeNullValues; + } + + /** Return true if this AlmaDetails object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AlmaDetails almaDetails = (AlmaDetails) o; + return Objects.equals(this.checkoutAttemptId, almaDetails.checkoutAttemptId) + && Objects.equals(this.isSetCheckoutAttemptId, almaDetails.isSetCheckoutAttemptId) + && Objects.equals(this.feeType, almaDetails.feeType) + && Objects.equals(this.isSetFeeType, almaDetails.isSetFeeType) + && Objects.equals(this.sdkData, almaDetails.sdkData) + && Objects.equals(this.isSetSdkData, almaDetails.isSetSdkData) + && Objects.equals(this.type, almaDetails.type) + && Objects.equals(this.isSetType, almaDetails.isSetType); + } + + @Override + public int hashCode() { + return Objects.hash( + checkoutAttemptId, + isSetCheckoutAttemptId, + feeType, + isSetFeeType, + sdkData, + isSetSdkData, + type, + isSetType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AlmaDetails {\n"); + sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); + sb.append(" feeType: ").append(toIndentedString(feeType)).append("\n"); + sb.append(" sdkData: ").append(toIndentedString(sdkData)).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 "); + } + + /** Returns a map of properties to be merged into the JSON payload as explicit null values. */ + @JsonInclude(JsonInclude.Include.ALWAYS) + @JsonAnyGetter + public Map getExplicitNulls() { + if (!this.includeNullValues) { + return Collections.emptyMap(); + } + + Map nulls = new HashMap<>(); + + if (isSetCheckoutAttemptId) { + addIfNull(nulls, JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, this.checkoutAttemptId); + } + if (isSetFeeType) { + addIfNull(nulls, JSON_PROPERTY_FEE_TYPE, this.feeType); + } + if (isSetSdkData) { + addIfNull(nulls, JSON_PROPERTY_SDK_DATA, this.sdkData); + } + if (isSetType) { + addIfNull(nulls, JSON_PROPERTY_TYPE, this.type); + } + + return nulls; + } + + // add to map when value is null + private void addIfNull(Map map, String key, Object value) { + if (value == null) { + map.put(key, null); + } + } + + /** + * Create an instance of AlmaDetails given an JSON string + * + * @param jsonString JSON string + * @return An instance of AlmaDetails + * @throws JsonProcessingException if the JSON string is invalid with respect to AlmaDetails + */ + public static AlmaDetails fromJson(String jsonString) throws JsonProcessingException { + return JSON.getMapper().readValue(jsonString, AlmaDetails.class); + } + + /** + * Convert an instance of AlmaDetails 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/checkout/AncvDetails.java b/src/main/java/com/adyen/model/checkout/AncvDetails.java index 3f6db62d9..dfc2232b4 100644 --- a/src/main/java/com/adyen/model/checkout/AncvDetails.java +++ b/src/main/java/com/adyen/model/checkout/AncvDetails.java @@ -46,8 +46,8 @@ public class AncvDetails { private boolean isSetCheckoutAttemptId = false; public static final String JSON_PROPERTY_RECURRING_DETAIL_REFERENCE = "recurringDetailReference"; - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. - private String recurringDetailReference; + /* deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ + @Deprecated private String recurringDetailReference; /** Mark when the attribute has been explicitly set. */ private boolean isSetRecurringDetailReference = false; @@ -194,9 +194,9 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { * @param recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. * @return the current {@code AncvDetails} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated public AncvDetails recurringDetailReference(String recurringDetailReference) { this.recurringDetailReference = recurringDetailReference; isSetRecurringDetailReference = true; // mark as set @@ -209,9 +209,9 @@ public AncvDetails recurringDetailReference(String recurringDetailReference) { * * @return recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. - * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getRecurringDetailReference() { @@ -224,9 +224,9 @@ public String getRecurringDetailReference() { * * @param recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRecurringDetailReference(String recurringDetailReference) { diff --git a/src/main/java/com/adyen/model/checkout/AppIdentifierInfo.java b/src/main/java/com/adyen/model/checkout/AppIdentifierInfo.java new file mode 100644 index 000000000..fc805221f --- /dev/null +++ b/src/main/java/com/adyen/model/checkout/AppIdentifierInfo.java @@ -0,0 +1,225 @@ +/* + * Adyen Checkout API + * + * The version of the OpenAPI document: 71 + * + * + * 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.checkout; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +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.*; + +/** AppIdentifierInfo */ +@JsonPropertyOrder({ + AppIdentifierInfo.JSON_PROPERTY_ANDROID_PACKAGE_ID, + AppIdentifierInfo.JSON_PROPERTY_IOS_SCHEME +}) +public class AppIdentifierInfo { + public static final String JSON_PROPERTY_ANDROID_PACKAGE_ID = "androidPackageId"; + private String androidPackageId; + + /** Mark when the attribute has been explicitly set. */ + private boolean isSetAndroidPackageId = false; + + public static final String JSON_PROPERTY_IOS_SCHEME = "iosScheme"; + private String iosScheme; + + /** Mark when the attribute has been explicitly set. */ + private boolean isSetIosScheme = false; + + /** + * Sets whether attributes with null values should be explicitly included in the JSON payload. + * Default is false. + */ + @JsonIgnore private boolean includeNullValues = false; + + public AppIdentifierInfo() {} + + /** + * The Android package identifier for this app. + * + * @param androidPackageId The Android package identifier for this app. + * @return the current {@code AppIdentifierInfo} instance, allowing for method chaining + */ + public AppIdentifierInfo androidPackageId(String androidPackageId) { + this.androidPackageId = androidPackageId; + isSetAndroidPackageId = true; // mark as set + return this; + } + + /** + * The Android package identifier for this app. + * + * @return androidPackageId The Android package identifier for this app. + */ + @JsonProperty(JSON_PROPERTY_ANDROID_PACKAGE_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getAndroidPackageId() { + return androidPackageId; + } + + /** + * The Android package identifier for this app. + * + * @param androidPackageId The Android package identifier for this app. + */ + @JsonProperty(JSON_PROPERTY_ANDROID_PACKAGE_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setAndroidPackageId(String androidPackageId) { + this.androidPackageId = androidPackageId; + isSetAndroidPackageId = true; // mark as set + } + + /** + * The iOS URL scheme for this app. + * + * @param iosScheme The iOS URL scheme for this app. + * @return the current {@code AppIdentifierInfo} instance, allowing for method chaining + */ + public AppIdentifierInfo iosScheme(String iosScheme) { + this.iosScheme = iosScheme; + isSetIosScheme = true; // mark as set + return this; + } + + /** + * The iOS URL scheme for this app. + * + * @return iosScheme The iOS URL scheme for this app. + */ + @JsonProperty(JSON_PROPERTY_IOS_SCHEME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getIosScheme() { + return iosScheme; + } + + /** + * The iOS URL scheme for this app. + * + * @param iosScheme The iOS URL scheme for this app. + */ + @JsonProperty(JSON_PROPERTY_IOS_SCHEME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIosScheme(String iosScheme) { + this.iosScheme = iosScheme; + isSetIosScheme = true; // mark as set + } + + /** + * Configures whether null values are explicitly serialized in the JSON payload. Default is false. + */ + public AppIdentifierInfo includeNullValues(boolean includeNullValues) { + this.includeNullValues = includeNullValues; + return this; + } + + /** Returns whether null values are explicitly serialized in the JSON payload. */ + public boolean isIncludeNullValues() { + return includeNullValues; + } + + /** + * Sets whether null values should be explicitly serialized in the JSON payload. Default is false. + */ + public void setIncludeNullValues(boolean includeNullValues) { + this.includeNullValues = includeNullValues; + } + + /** Return true if this AppIdentifierInfo object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AppIdentifierInfo appIdentifierInfo = (AppIdentifierInfo) o; + return Objects.equals(this.androidPackageId, appIdentifierInfo.androidPackageId) + && Objects.equals(this.isSetAndroidPackageId, appIdentifierInfo.isSetAndroidPackageId) + && Objects.equals(this.iosScheme, appIdentifierInfo.iosScheme) + && Objects.equals(this.isSetIosScheme, appIdentifierInfo.isSetIosScheme); + } + + @Override + public int hashCode() { + return Objects.hash(androidPackageId, isSetAndroidPackageId, iosScheme, isSetIosScheme); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AppIdentifierInfo {\n"); + sb.append(" androidPackageId: ").append(toIndentedString(androidPackageId)).append("\n"); + sb.append(" iosScheme: ").append(toIndentedString(iosScheme)).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 "); + } + + /** Returns a map of properties to be merged into the JSON payload as explicit null values. */ + @JsonInclude(JsonInclude.Include.ALWAYS) + @JsonAnyGetter + public Map getExplicitNulls() { + if (!this.includeNullValues) { + return Collections.emptyMap(); + } + + Map nulls = new HashMap<>(); + + if (isSetAndroidPackageId) { + addIfNull(nulls, JSON_PROPERTY_ANDROID_PACKAGE_ID, this.androidPackageId); + } + if (isSetIosScheme) { + addIfNull(nulls, JSON_PROPERTY_IOS_SCHEME, this.iosScheme); + } + + return nulls; + } + + // add to map when value is null + private void addIfNull(Map map, String key, Object value) { + if (value == null) { + map.put(key, null); + } + } + + /** + * Create an instance of AppIdentifierInfo given an JSON string + * + * @param jsonString JSON string + * @return An instance of AppIdentifierInfo + * @throws JsonProcessingException if the JSON string is invalid with respect to AppIdentifierInfo + */ + public static AppIdentifierInfo fromJson(String jsonString) throws JsonProcessingException { + return JSON.getMapper().readValue(jsonString, AppIdentifierInfo.class); + } + + /** + * Convert an instance of AppIdentifierInfo 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/checkout/ApplePayDetails.java b/src/main/java/com/adyen/model/checkout/ApplePayDetails.java index f78178e98..bdf8b598f 100644 --- a/src/main/java/com/adyen/model/checkout/ApplePayDetails.java +++ b/src/main/java/com/adyen/model/checkout/ApplePayDetails.java @@ -99,8 +99,8 @@ public static FundingSourceEnum fromValue(String value) { private boolean isSetFundingSource = false; public static final String JSON_PROPERTY_RECURRING_DETAIL_REFERENCE = "recurringDetailReference"; - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. - private String recurringDetailReference; + /* deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ + @Deprecated private String recurringDetailReference; /** Mark when the attribute has been explicitly set. */ private boolean isSetRecurringDetailReference = false; @@ -297,9 +297,9 @@ public void setFundingSource(FundingSourceEnum fundingSource) { * @param recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. * @return the current {@code ApplePayDetails} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated public ApplePayDetails recurringDetailReference(String recurringDetailReference) { this.recurringDetailReference = recurringDetailReference; isSetRecurringDetailReference = true; // mark as set @@ -312,9 +312,9 @@ public ApplePayDetails recurringDetailReference(String recurringDetailReference) * * @return recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. - * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getRecurringDetailReference() { @@ -327,9 +327,9 @@ public String getRecurringDetailReference() { * * @param recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRecurringDetailReference(String recurringDetailReference) { diff --git a/src/main/java/com/adyen/model/checkout/ApplePayDonations.java b/src/main/java/com/adyen/model/checkout/ApplePayDonations.java index 2b14d8f9f..b6df29286 100644 --- a/src/main/java/com/adyen/model/checkout/ApplePayDonations.java +++ b/src/main/java/com/adyen/model/checkout/ApplePayDonations.java @@ -99,8 +99,8 @@ public static FundingSourceEnum fromValue(String value) { private boolean isSetFundingSource = false; public static final String JSON_PROPERTY_RECURRING_DETAIL_REFERENCE = "recurringDetailReference"; - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. - private String recurringDetailReference; + /* deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ + @Deprecated private String recurringDetailReference; /** Mark when the attribute has been explicitly set. */ private boolean isSetRecurringDetailReference = false; @@ -297,9 +297,9 @@ public void setFundingSource(FundingSourceEnum fundingSource) { * @param recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. * @return the current {@code ApplePayDonations} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated public ApplePayDonations recurringDetailReference(String recurringDetailReference) { this.recurringDetailReference = recurringDetailReference; isSetRecurringDetailReference = true; // mark as set @@ -312,9 +312,9 @@ public ApplePayDonations recurringDetailReference(String recurringDetailReferenc * * @return recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. - * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getRecurringDetailReference() { @@ -327,9 +327,9 @@ public String getRecurringDetailReference() { * * @param recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRecurringDetailReference(String recurringDetailReference) { diff --git a/src/main/java/com/adyen/model/checkout/BacsDirectDebitDetails.java b/src/main/java/com/adyen/model/checkout/BacsDirectDebitDetails.java index 3aa9f9695..7a1e3e7d3 100644 --- a/src/main/java/com/adyen/model/checkout/BacsDirectDebitDetails.java +++ b/src/main/java/com/adyen/model/checkout/BacsDirectDebitDetails.java @@ -61,8 +61,8 @@ public class BacsDirectDebitDetails { private boolean isSetHolderName = false; public static final String JSON_PROPERTY_RECURRING_DETAIL_REFERENCE = "recurringDetailReference"; - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. - private String recurringDetailReference; + /* deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ + @Deprecated private String recurringDetailReference; /** Mark when the attribute has been explicitly set. */ private boolean isSetRecurringDetailReference = false; @@ -285,9 +285,9 @@ public void setHolderName(String holderName) { * @param recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. * @return the current {@code BacsDirectDebitDetails} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated public BacsDirectDebitDetails recurringDetailReference(String recurringDetailReference) { this.recurringDetailReference = recurringDetailReference; isSetRecurringDetailReference = true; // mark as set @@ -300,9 +300,9 @@ public BacsDirectDebitDetails recurringDetailReference(String recurringDetailRef * * @return recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. - * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getRecurringDetailReference() { @@ -315,9 +315,9 @@ public String getRecurringDetailReference() { * * @param recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRecurringDetailReference(String recurringDetailReference) { diff --git a/src/main/java/com/adyen/model/checkout/BalanceCheckRequest.java b/src/main/java/com/adyen/model/checkout/BalanceCheckRequest.java index fe8b026d2..c2c39b8f4 100644 --- a/src/main/java/com/adyen/model/checkout/BalanceCheckRequest.java +++ b/src/main/java/com/adyen/model/checkout/BalanceCheckRequest.java @@ -438,9 +438,8 @@ public static ShopperInteractionEnum fromValue(String value) { public static final String JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY = "threeDSAuthenticationOnly"; - @Deprecated // deprecated since Adyen Checkout API v69: Use - // `authenticationData.authenticationOnly` instead. - private Boolean threeDSAuthenticationOnly; + /* deprecated since Adyen Checkout API v69: Use `authenticationData.authenticationOnly` instead. */ + @Deprecated private Boolean threeDSAuthenticationOnly; /** Mark when the attribute has been explicitly set. */ private boolean isSetThreeDSAuthenticationOnly = false; @@ -2004,11 +2003,17 @@ public void setShopperInteraction(ShopperInteractionEnum shopperInteraction) { } /** - * The combination of a language code and a country code to specify the language to be used in the - * payment. + * The language for the payment. The value combines the two-letter [ISO + * 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) language code with the + * [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes) country + * code. For example, **nl-NL**. When using Drop-in/Components, the specified language appears if + * your front-end global configuration does not set the `locale`. * - * @param shopperLocale The combination of a language code and a country code to specify the - * language to be used in the payment. + * @param shopperLocale The language for the payment. The value combines the two-letter [ISO + * 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) language code with the + * [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes) country + * code. For example, **nl-NL**. When using Drop-in/Components, the specified language appears + * if your front-end global configuration does not set the `locale`. * @return the current {@code BalanceCheckRequest} instance, allowing for method chaining */ public BalanceCheckRequest shopperLocale(String shopperLocale) { @@ -2018,11 +2023,17 @@ public BalanceCheckRequest shopperLocale(String shopperLocale) { } /** - * The combination of a language code and a country code to specify the language to be used in the - * payment. + * The language for the payment. The value combines the two-letter [ISO + * 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) language code with the + * [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes) country + * code. For example, **nl-NL**. When using Drop-in/Components, the specified language appears if + * your front-end global configuration does not set the `locale`. * - * @return shopperLocale The combination of a language code and a country code to specify the - * language to be used in the payment. + * @return shopperLocale The language for the payment. The value combines the two-letter [ISO + * 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) language code with the + * [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes) country + * code. For example, **nl-NL**. When using Drop-in/Components, the specified language appears + * if your front-end global configuration does not set the `locale`. */ @JsonProperty(JSON_PROPERTY_SHOPPER_LOCALE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2031,11 +2042,17 @@ public String getShopperLocale() { } /** - * The combination of a language code and a country code to specify the language to be used in the - * payment. + * The language for the payment. The value combines the two-letter [ISO + * 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) language code with the + * [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes) country + * code. For example, **nl-NL**. When using Drop-in/Components, the specified language appears if + * your front-end global configuration does not set the `locale`. * - * @param shopperLocale The combination of a language code and a country code to specify the - * language to be used in the payment. + * @param shopperLocale The language for the payment. The value combines the two-letter [ISO + * 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) language code with the + * [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes) country + * code. For example, **nl-NL**. When using Drop-in/Components, the specified language appears + * if your front-end global configuration does not set the `locale`. */ @JsonProperty(JSON_PROPERTY_SHOPPER_LOCALE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2457,11 +2474,9 @@ public void setThreeDS2RequestData(ThreeDS2RequestData threeDS2RequestData) { * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the * payment authorization.Default: **false**. * @return the current {@code BalanceCheckRequest} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v69 Use `authenticationData.authenticationOnly` - * instead. + * @deprecated since Adyen Checkout API v69 Use `authenticationData.authenticationOnly` instead. */ - @Deprecated // deprecated since Adyen Checkout API v69: Use - // `authenticationData.authenticationOnly` instead. + @Deprecated public BalanceCheckRequest threeDSAuthenticationOnly(Boolean threeDSAuthenticationOnly) { this.threeDSAuthenticationOnly = threeDSAuthenticationOnly; isSetThreeDSAuthenticationOnly = true; // mark as set @@ -2478,11 +2493,9 @@ public BalanceCheckRequest threeDSAuthenticationOnly(Boolean threeDSAuthenticati * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the * payment authorization.Default: **false**. - * @deprecated // deprecated since Adyen Checkout API v69: Use - * `authenticationData.authenticationOnly` instead. + * @deprecated since Adyen Checkout API v69 Use `authenticationData.authenticationOnly` instead. */ - @Deprecated // deprecated since Adyen Checkout API v69: Use - // `authenticationData.authenticationOnly` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getThreeDSAuthenticationOnly() { @@ -2499,11 +2512,9 @@ public Boolean getThreeDSAuthenticationOnly() { * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the * payment authorization.Default: **false**. - * @deprecated since Adyen Checkout API v69 Use `authenticationData.authenticationOnly` - * instead. + * @deprecated since Adyen Checkout API v69 Use `authenticationData.authenticationOnly` instead. */ - @Deprecated // deprecated since Adyen Checkout API v69: Use - // `authenticationData.authenticationOnly` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setThreeDSAuthenticationOnly(Boolean threeDSAuthenticationOnly) { diff --git a/src/main/java/com/adyen/model/checkout/BlikDetails.java b/src/main/java/com/adyen/model/checkout/BlikDetails.java index 7b0c69667..a860420ef 100644 --- a/src/main/java/com/adyen/model/checkout/BlikDetails.java +++ b/src/main/java/com/adyen/model/checkout/BlikDetails.java @@ -46,8 +46,8 @@ public class BlikDetails { private boolean isSetCheckoutAttemptId = false; public static final String JSON_PROPERTY_RECURRING_DETAIL_REFERENCE = "recurringDetailReference"; - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. - private String recurringDetailReference; + /* deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ + @Deprecated private String recurringDetailReference; /** Mark when the attribute has been explicitly set. */ private boolean isSetRecurringDetailReference = false; @@ -194,9 +194,9 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { * @param recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. * @return the current {@code BlikDetails} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated public BlikDetails recurringDetailReference(String recurringDetailReference) { this.recurringDetailReference = recurringDetailReference; isSetRecurringDetailReference = true; // mark as set @@ -209,9 +209,9 @@ public BlikDetails recurringDetailReference(String recurringDetailReference) { * * @return recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. - * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getRecurringDetailReference() { @@ -224,9 +224,9 @@ public String getRecurringDetailReference() { * * @param recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRecurringDetailReference(String recurringDetailReference) { diff --git a/src/main/java/com/adyen/model/checkout/CardDetails.java b/src/main/java/com/adyen/model/checkout/CardDetails.java index 44005ff96..18385a409 100644 --- a/src/main/java/com/adyen/model/checkout/CardDetails.java +++ b/src/main/java/com/adyen/model/checkout/CardDetails.java @@ -74,8 +74,8 @@ public class CardDetails { private boolean isSetCheckoutAttemptId = false; public static final String JSON_PROPERTY_CUPSECUREPLUS_SMSCODE = "cupsecureplus.smscode"; - @Deprecated // deprecated - private String cupsecureplusSmscode; + /* deprecated */ + @Deprecated private String cupsecureplusSmscode; /** Mark when the attribute has been explicitly set. */ private boolean isSetCupsecureplusSmscode = false; @@ -211,8 +211,8 @@ public static FundingSourceEnum fromValue(String value) { private boolean isSetNumber = false; public static final String JSON_PROPERTY_RECURRING_DETAIL_REFERENCE = "recurringDetailReference"; - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. - private String recurringDetailReference; + /* deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ + @Deprecated private String recurringDetailReference; /** Mark when the attribute has been explicitly set. */ private boolean isSetRecurringDetailReference = false; @@ -453,7 +453,7 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { * @return the current {@code CardDetails} instance, allowing for method chaining * @deprecated */ - @Deprecated // deprecated + @Deprecated public CardDetails cupsecureplusSmscode(String cupsecureplusSmscode) { this.cupsecureplusSmscode = cupsecureplusSmscode; isSetCupsecureplusSmscode = true; // mark as set @@ -464,9 +464,9 @@ public CardDetails cupsecureplusSmscode(String cupsecureplusSmscode) { * Get cupsecureplusSmscode * * @return cupsecureplusSmscode - * @deprecated // deprecated + * @deprecated */ - @Deprecated // deprecated + @Deprecated @JsonProperty(JSON_PROPERTY_CUPSECUREPLUS_SMSCODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCupsecureplusSmscode() { @@ -479,7 +479,7 @@ public String getCupsecureplusSmscode() { * @param cupsecureplusSmscode * @deprecated */ - @Deprecated // deprecated + @Deprecated @JsonProperty(JSON_PROPERTY_CUPSECUREPLUS_SMSCODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCupsecureplusSmscode(String cupsecureplusSmscode) { @@ -1041,9 +1041,9 @@ public void setNumber(String number) { * @param recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. * @return the current {@code CardDetails} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated public CardDetails recurringDetailReference(String recurringDetailReference) { this.recurringDetailReference = recurringDetailReference; isSetRecurringDetailReference = true; // mark as set @@ -1056,9 +1056,9 @@ public CardDetails recurringDetailReference(String recurringDetailReference) { * * @return recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. - * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getRecurringDetailReference() { @@ -1071,9 +1071,9 @@ public String getRecurringDetailReference() { * * @param recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRecurringDetailReference(String recurringDetailReference) { diff --git a/src/main/java/com/adyen/model/checkout/CardDetailsRequest.java b/src/main/java/com/adyen/model/checkout/CardDetailsRequest.java index c1f364fe7..9b9a00138 100644 --- a/src/main/java/com/adyen/model/checkout/CardDetailsRequest.java +++ b/src/main/java/com/adyen/model/checkout/CardDetailsRequest.java @@ -125,10 +125,10 @@ public void setCardNumber(String cardNumber) { } /** - * The shopper country. Format: [ISO 3166-1 + * The shopper country code. Format: [ISO 3166-1 * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE * - * @param countryCode The shopper country. Format: [ISO 3166-1 + * @param countryCode The shopper country code. Format: [ISO 3166-1 * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE * @return the current {@code CardDetailsRequest} instance, allowing for method chaining */ @@ -139,10 +139,10 @@ public CardDetailsRequest countryCode(String countryCode) { } /** - * The shopper country. Format: [ISO 3166-1 + * The shopper country code. Format: [ISO 3166-1 * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE * - * @return countryCode The shopper country. Format: [ISO 3166-1 + * @return countryCode The shopper country code. Format: [ISO 3166-1 * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE */ @JsonProperty(JSON_PROPERTY_COUNTRY_CODE) @@ -152,10 +152,10 @@ public String getCountryCode() { } /** - * The shopper country. Format: [ISO 3166-1 + * The shopper country code. Format: [ISO 3166-1 * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE * - * @param countryCode The shopper country. Format: [ISO 3166-1 + * @param countryCode The shopper country code. Format: [ISO 3166-1 * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE */ @JsonProperty(JSON_PROPERTY_COUNTRY_CODE) diff --git a/src/main/java/com/adyen/model/checkout/CardDonations.java b/src/main/java/com/adyen/model/checkout/CardDonations.java index a44c86099..77810c732 100644 --- a/src/main/java/com/adyen/model/checkout/CardDonations.java +++ b/src/main/java/com/adyen/model/checkout/CardDonations.java @@ -74,8 +74,8 @@ public class CardDonations { private boolean isSetCheckoutAttemptId = false; public static final String JSON_PROPERTY_CUPSECUREPLUS_SMSCODE = "cupsecureplus.smscode"; - @Deprecated // deprecated - private String cupsecureplusSmscode; + /* deprecated */ + @Deprecated private String cupsecureplusSmscode; /** Mark when the attribute has been explicitly set. */ private boolean isSetCupsecureplusSmscode = false; @@ -211,8 +211,8 @@ public static FundingSourceEnum fromValue(String value) { private boolean isSetNumber = false; public static final String JSON_PROPERTY_RECURRING_DETAIL_REFERENCE = "recurringDetailReference"; - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. - private String recurringDetailReference; + /* deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ + @Deprecated private String recurringDetailReference; /** Mark when the attribute has been explicitly set. */ private boolean isSetRecurringDetailReference = false; @@ -453,7 +453,7 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { * @return the current {@code CardDonations} instance, allowing for method chaining * @deprecated */ - @Deprecated // deprecated + @Deprecated public CardDonations cupsecureplusSmscode(String cupsecureplusSmscode) { this.cupsecureplusSmscode = cupsecureplusSmscode; isSetCupsecureplusSmscode = true; // mark as set @@ -464,9 +464,9 @@ public CardDonations cupsecureplusSmscode(String cupsecureplusSmscode) { * Get cupsecureplusSmscode * * @return cupsecureplusSmscode - * @deprecated // deprecated + * @deprecated */ - @Deprecated // deprecated + @Deprecated @JsonProperty(JSON_PROPERTY_CUPSECUREPLUS_SMSCODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCupsecureplusSmscode() { @@ -479,7 +479,7 @@ public String getCupsecureplusSmscode() { * @param cupsecureplusSmscode * @deprecated */ - @Deprecated // deprecated + @Deprecated @JsonProperty(JSON_PROPERTY_CUPSECUREPLUS_SMSCODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCupsecureplusSmscode(String cupsecureplusSmscode) { @@ -1041,9 +1041,9 @@ public void setNumber(String number) { * @param recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. * @return the current {@code CardDonations} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated public CardDonations recurringDetailReference(String recurringDetailReference) { this.recurringDetailReference = recurringDetailReference; isSetRecurringDetailReference = true; // mark as set @@ -1056,9 +1056,9 @@ public CardDonations recurringDetailReference(String recurringDetailReference) { * * @return recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. - * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getRecurringDetailReference() { @@ -1071,9 +1071,9 @@ public String getRecurringDetailReference() { * * @param recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRecurringDetailReference(String recurringDetailReference) { diff --git a/src/main/java/com/adyen/model/checkout/CashAppDetails.java b/src/main/java/com/adyen/model/checkout/CashAppDetails.java index 4895a9ddb..c0eb7471d 100644 --- a/src/main/java/com/adyen/model/checkout/CashAppDetails.java +++ b/src/main/java/com/adyen/model/checkout/CashAppDetails.java @@ -69,8 +69,8 @@ public class CashAppDetails { private boolean isSetOnFileGrantId = false; public static final String JSON_PROPERTY_RECURRING_DETAIL_REFERENCE = "recurringDetailReference"; - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. - private String recurringDetailReference; + /* deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ + @Deprecated private String recurringDetailReference; /** Mark when the attribute has been explicitly set. */ private boolean isSetRecurringDetailReference = false; @@ -334,9 +334,9 @@ public void setOnFileGrantId(String onFileGrantId) { * @param recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. * @return the current {@code CashAppDetails} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated public CashAppDetails recurringDetailReference(String recurringDetailReference) { this.recurringDetailReference = recurringDetailReference; isSetRecurringDetailReference = true; // mark as set @@ -349,9 +349,9 @@ public CashAppDetails recurringDetailReference(String recurringDetailReference) * * @return recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. - * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getRecurringDetailReference() { @@ -364,9 +364,9 @@ public String getRecurringDetailReference() { * * @param recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRecurringDetailReference(String recurringDetailReference) { diff --git a/src/main/java/com/adyen/model/checkout/CheckoutForwardRequest.java b/src/main/java/com/adyen/model/checkout/CheckoutForwardRequest.java index ec7b99ca5..dd6f2c9a4 100644 --- a/src/main/java/com/adyen/model/checkout/CheckoutForwardRequest.java +++ b/src/main/java/com/adyen/model/checkout/CheckoutForwardRequest.java @@ -21,6 +21,7 @@ /** CheckoutForwardRequest */ @JsonPropertyOrder({ + CheckoutForwardRequest.JSON_PROPERTY_AMOUNT, CheckoutForwardRequest.JSON_PROPERTY_BASE_URL, CheckoutForwardRequest.JSON_PROPERTY_MERCHANT_ACCOUNT, CheckoutForwardRequest.JSON_PROPERTY_MERCHANT_REFERENCE, @@ -31,6 +32,12 @@ CheckoutForwardRequest.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID }) public class CheckoutForwardRequest { + public static final String JSON_PROPERTY_AMOUNT = "amount"; + private Amount amount; + + /** Mark when the attribute has been explicitly set. */ + private boolean isSetAmount = false; + public static final String JSON_PROPERTY_BASE_URL = "baseUrl"; private String baseUrl; @@ -87,6 +94,41 @@ public class CheckoutForwardRequest { public CheckoutForwardRequest() {} + /** + * amount + * + * @param amount + * @return the current {@code CheckoutForwardRequest} instance, allowing for method chaining + */ + public CheckoutForwardRequest amount(Amount amount) { + this.amount = amount; + isSetAmount = true; // mark as set + return this; + } + + /** + * Get amount + * + * @return amount + */ + @JsonProperty(JSON_PROPERTY_AMOUNT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Amount getAmount() { + return amount; + } + + /** + * amount + * + * @param amount + */ + @JsonProperty(JSON_PROPERTY_AMOUNT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setAmount(Amount amount) { + this.amount = amount; + isSetAmount = true; // mark as set + } + /** * The base URL of the third party API, where Adyen will send the request to forward the payment * details. @@ -427,7 +469,9 @@ public boolean equals(Object o) { return false; } CheckoutForwardRequest checkoutForwardRequest = (CheckoutForwardRequest) o; - return Objects.equals(this.baseUrl, checkoutForwardRequest.baseUrl) + return Objects.equals(this.amount, checkoutForwardRequest.amount) + && Objects.equals(this.isSetAmount, checkoutForwardRequest.isSetAmount) + && Objects.equals(this.baseUrl, checkoutForwardRequest.baseUrl) && Objects.equals(this.isSetBaseUrl, checkoutForwardRequest.isSetBaseUrl) && Objects.equals(this.merchantAccount, checkoutForwardRequest.merchantAccount) && Objects.equals(this.isSetMerchantAccount, checkoutForwardRequest.isSetMerchantAccount) @@ -450,6 +494,8 @@ public boolean equals(Object o) { @Override public int hashCode() { return Objects.hash( + amount, + isSetAmount, baseUrl, isSetBaseUrl, merchantAccount, @@ -472,6 +518,7 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CheckoutForwardRequest {\n"); + sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); sb.append(" baseUrl: ").append(toIndentedString(baseUrl)).append("\n"); sb.append(" merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n"); sb.append(" merchantReference: ").append(toIndentedString(merchantReference)).append("\n"); @@ -506,6 +553,9 @@ public Map getExplicitNulls() { Map nulls = new HashMap<>(); + if (isSetAmount) { + addIfNull(nulls, JSON_PROPERTY_AMOUNT, this.amount); + } if (isSetBaseUrl) { addIfNull(nulls, JSON_PROPERTY_BASE_URL, this.baseUrl); } diff --git a/src/main/java/com/adyen/model/checkout/CheckoutPaymentMethod.java b/src/main/java/com/adyen/model/checkout/CheckoutPaymentMethod.java index 02b5fd816..d480d1fd3 100644 --- a/src/main/java/com/adyen/model/checkout/CheckoutPaymentMethod.java +++ b/src/main/java/com/adyen/model/checkout/CheckoutPaymentMethod.java @@ -151,6 +151,32 @@ public CheckoutPaymentMethod deserialize(JsonParser jp, DeserializationContext c log.log(Level.FINER, "Input data does not match schema 'AfterpayDetails'", e); } + // deserialize AlmaDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(AlmaDetails.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(AlmaDetails.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 'AlmaDetails'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'AlmaDetails'", e); + } + // deserialize AmazonPayDetails try { boolean attemptParsing = true; @@ -411,6 +437,32 @@ public CheckoutPaymentMethod deserialize(JsonParser jp, DeserializationContext c log.log(Level.FINER, "Input data does not match schema 'CellulantDetails'", e); } + // deserialize DirectDebitAuDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(DirectDebitAuDetails.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(DirectDebitAuDetails.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 'DirectDebitAuDetails'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'DirectDebitAuDetails'", e); + } + // deserialize DokuDetails try { boolean attemptParsing = true; @@ -699,6 +751,32 @@ public CheckoutPaymentMethod deserialize(JsonParser jp, DeserializationContext c log.log(Level.FINER, "Input data does not match schema 'KlarnaDetails'", e); } + // deserialize KlarnaNetworkDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(KlarnaNetworkDetails.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(KlarnaNetworkDetails.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 'KlarnaNetworkDetails'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'KlarnaNetworkDetails'", e); + } + // deserialize MasterpassDetails try { boolean attemptParsing = true; @@ -1065,6 +1143,32 @@ public CheckoutPaymentMethod deserialize(JsonParser jp, DeserializationContext c log.log(Level.FINER, "Input data does not match schema 'PixDetails'", e); } + // deserialize PixPayByBankDetails + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = false; + if (tree.findValue("type") != null) { + typeMatch = + Arrays.stream(PixPayByBankDetails.TypeEnum.values()) + .anyMatch((t) -> t.getValue().equals(tree.findValue("type").asText())); + } + + if (typeMatch) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(PixPayByBankDetails.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 'PixPayByBankDetails'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'PixPayByBankDetails'", e); + } + // deserialize PseDetails try { boolean attemptParsing = true; @@ -1524,6 +1628,11 @@ public CheckoutPaymentMethod(AfterpayDetails o) { setActualInstance(o); } + public CheckoutPaymentMethod(AlmaDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + public CheckoutPaymentMethod(AmazonPayDetails o) { super("oneOf", Boolean.FALSE); setActualInstance(o); @@ -1574,6 +1683,11 @@ public CheckoutPaymentMethod(CellulantDetails o) { setActualInstance(o); } + public CheckoutPaymentMethod(DirectDebitAuDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + public CheckoutPaymentMethod(DokuDetails o) { super("oneOf", Boolean.FALSE); setActualInstance(o); @@ -1629,6 +1743,11 @@ public CheckoutPaymentMethod(KlarnaDetails o) { setActualInstance(o); } + public CheckoutPaymentMethod(KlarnaNetworkDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + public CheckoutPaymentMethod(MasterpassDetails o) { super("oneOf", Boolean.FALSE); setActualInstance(o); @@ -1699,6 +1818,11 @@ public CheckoutPaymentMethod(PixDetails o) { setActualInstance(o); } + public CheckoutPaymentMethod(PixPayByBankDetails o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + public CheckoutPaymentMethod(PseDetails o) { super("oneOf", Boolean.FALSE); setActualInstance(o); @@ -1783,6 +1907,7 @@ public CheckoutPaymentMethod(ZipDetails o) { schemas.put("AchDetails", new GenericType() {}); schemas.put("AffirmDetails", new GenericType() {}); schemas.put("AfterpayDetails", new GenericType() {}); + schemas.put("AlmaDetails", new GenericType() {}); schemas.put("AmazonPayDetails", new GenericType() {}); schemas.put("AncvDetails", new GenericType() {}); schemas.put("AndroidPayDetails", new GenericType() {}); @@ -1793,6 +1918,7 @@ public CheckoutPaymentMethod(ZipDetails o) { schemas.put("CardDetails", new GenericType() {}); schemas.put("CashAppDetails", new GenericType() {}); schemas.put("CellulantDetails", new GenericType() {}); + schemas.put("DirectDebitAuDetails", new GenericType() {}); schemas.put("DokuDetails", new GenericType() {}); schemas.put("DragonpayDetails", new GenericType() {}); schemas.put("EBankingFinlandDetails", new GenericType() {}); @@ -1806,6 +1932,7 @@ public CheckoutPaymentMethod(ZipDetails o) { schemas.put("GooglePayDetails", new GenericType() {}); schemas.put("IdealDetails", new GenericType() {}); schemas.put("KlarnaDetails", new GenericType() {}); + schemas.put("KlarnaNetworkDetails", new GenericType() {}); schemas.put("MasterpassDetails", new GenericType() {}); schemas.put("MbwayDetails", new GenericType() {}); schemas.put("MobilePayDetails", new GenericType() {}); @@ -1821,6 +1948,7 @@ public CheckoutPaymentMethod(ZipDetails o) { schemas.put("PayWithGoogleDetails", new GenericType() {}); schemas.put("PaymentDetails", new GenericType() {}); schemas.put("PixDetails", new GenericType() {}); + schemas.put("PixPayByBankDetails", new GenericType() {}); schemas.put("PseDetails", new GenericType() {}); schemas.put("RakutenPayDetails", new GenericType() {}); schemas.put("RatepayDetails", new GenericType() {}); @@ -1847,18 +1975,19 @@ public Map> getSchemas() { /** * Set the instance that matches the oneOf child schema, check the instance parameter is valid - * against the oneOf child schemas: AchDetails, AffirmDetails, AfterpayDetails, AmazonPayDetails, - * AncvDetails, AndroidPayDetails, ApplePayDetails, BacsDirectDebitDetails, BillDeskDetails, - * BlikDetails, CardDetails, CashAppDetails, CellulantDetails, DokuDetails, DragonpayDetails, - * EBankingFinlandDetails, EcontextVoucherDetails, EftDetails, ExternalTokenDetails, - * FastlaneDetails, GenericIssuerPaymentMethodDetails, GooglePayDetails, IdealDetails, - * KlarnaDetails, MasterpassDetails, MbwayDetails, MobilePayDetails, MolPayDetails, + * against the oneOf child schemas: AchDetails, AffirmDetails, AfterpayDetails, AlmaDetails, + * AmazonPayDetails, AncvDetails, AndroidPayDetails, ApplePayDetails, BacsDirectDebitDetails, + * BillDeskDetails, BlikDetails, CardDetails, CashAppDetails, CellulantDetails, + * DirectDebitAuDetails, DokuDetails, DragonpayDetails, EBankingFinlandDetails, + * EcontextVoucherDetails, EftDetails, ExternalTokenDetails, FastlaneDetails, + * GenericIssuerPaymentMethodDetails, GooglePayDetails, IdealDetails, KlarnaDetails, + * KlarnaNetworkDetails, MasterpassDetails, MbwayDetails, MobilePayDetails, MolPayDetails, * OpenInvoiceDetails, PayByBankAISDirectDebitDetails, PayByBankDetails, PayPalDetails, * PayPayDetails, PayToDetails, PayUUpiDetails, PayWithGoogleDetails, PaymentDetails, PixDetails, - * PseDetails, RakutenPayDetails, RatepayDetails, RivertyDetails, SamsungPayDetails, - * SepaDirectDebitDetails, StoredPaymentMethodDetails, TwintDetails, UpiCollectDetails, - * UpiIntentDetails, UpiQrDetails, VippsDetails, VisaCheckoutDetails, WeChatPayDetails, - * WeChatPayMiniProgramDetails, ZipDetails + * PixPayByBankDetails, PseDetails, RakutenPayDetails, RatepayDetails, RivertyDetails, + * SamsungPayDetails, SepaDirectDebitDetails, StoredPaymentMethodDetails, TwintDetails, + * UpiCollectDetails, UpiIntentDetails, UpiQrDetails, VippsDetails, VisaCheckoutDetails, + * WeChatPayDetails, WeChatPayMiniProgramDetails, ZipDetails * *

It could be an instance of the 'oneOf' schemas. The oneOf child schemas may themselves be a * composed schema (allOf, anyOf, oneOf). @@ -1880,6 +2009,11 @@ public void setActualInstance(Object instance) { return; } + if (JSON.isInstanceOf(AlmaDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; + } + if (JSON.isInstanceOf(AmazonPayDetails.class, instance, new HashSet<>())) { super.setActualInstance(instance); return; @@ -1930,6 +2064,11 @@ public void setActualInstance(Object instance) { return; } + if (JSON.isInstanceOf(DirectDebitAuDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; + } + if (JSON.isInstanceOf(DokuDetails.class, instance, new HashSet<>())) { super.setActualInstance(instance); return; @@ -1985,6 +2124,11 @@ public void setActualInstance(Object instance) { return; } + if (JSON.isInstanceOf(KlarnaNetworkDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; + } + if (JSON.isInstanceOf(MasterpassDetails.class, instance, new HashSet<>())) { super.setActualInstance(instance); return; @@ -2055,6 +2199,11 @@ public void setActualInstance(Object instance) { return; } + if (JSON.isInstanceOf(PixPayByBankDetails.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; + } + if (JSON.isInstanceOf(PseDetails.class, instance, new HashSet<>())) { super.setActualInstance(instance); return; @@ -2136,35 +2285,37 @@ public void setActualInstance(Object instance) { } throw new RuntimeException( - "Invalid instance type. Must be AchDetails, AffirmDetails, AfterpayDetails, AmazonPayDetails, AncvDetails, AndroidPayDetails, ApplePayDetails, BacsDirectDebitDetails, BillDeskDetails, BlikDetails, CardDetails, CashAppDetails, CellulantDetails, DokuDetails, DragonpayDetails, EBankingFinlandDetails, EcontextVoucherDetails, EftDetails, ExternalTokenDetails, FastlaneDetails, GenericIssuerPaymentMethodDetails, GooglePayDetails, IdealDetails, KlarnaDetails, MasterpassDetails, MbwayDetails, MobilePayDetails, MolPayDetails, OpenInvoiceDetails, PayByBankAISDirectDebitDetails, PayByBankDetails, PayPalDetails, PayPayDetails, PayToDetails, PayUUpiDetails, PayWithGoogleDetails, PaymentDetails, PixDetails, PseDetails, RakutenPayDetails, RatepayDetails, RivertyDetails, SamsungPayDetails, SepaDirectDebitDetails, StoredPaymentMethodDetails, TwintDetails, UpiCollectDetails, UpiIntentDetails, UpiQrDetails, VippsDetails, VisaCheckoutDetails, WeChatPayDetails, WeChatPayMiniProgramDetails, ZipDetails"); + "Invalid instance type. Must be AchDetails, AffirmDetails, AfterpayDetails, AlmaDetails, AmazonPayDetails, AncvDetails, AndroidPayDetails, ApplePayDetails, BacsDirectDebitDetails, BillDeskDetails, BlikDetails, CardDetails, CashAppDetails, CellulantDetails, DirectDebitAuDetails, DokuDetails, DragonpayDetails, EBankingFinlandDetails, EcontextVoucherDetails, EftDetails, ExternalTokenDetails, FastlaneDetails, GenericIssuerPaymentMethodDetails, GooglePayDetails, IdealDetails, KlarnaDetails, KlarnaNetworkDetails, MasterpassDetails, MbwayDetails, MobilePayDetails, MolPayDetails, OpenInvoiceDetails, PayByBankAISDirectDebitDetails, PayByBankDetails, PayPalDetails, PayPayDetails, PayToDetails, PayUUpiDetails, PayWithGoogleDetails, PaymentDetails, PixDetails, PixPayByBankDetails, PseDetails, RakutenPayDetails, RatepayDetails, RivertyDetails, SamsungPayDetails, SepaDirectDebitDetails, StoredPaymentMethodDetails, TwintDetails, UpiCollectDetails, UpiIntentDetails, UpiQrDetails, VippsDetails, VisaCheckoutDetails, WeChatPayDetails, WeChatPayMiniProgramDetails, ZipDetails"); } /** * Get the actual instance, which can be the following: AchDetails, AffirmDetails, - * AfterpayDetails, AmazonPayDetails, AncvDetails, AndroidPayDetails, ApplePayDetails, - * BacsDirectDebitDetails, BillDeskDetails, BlikDetails, CardDetails, CashAppDetails, - * CellulantDetails, DokuDetails, DragonpayDetails, EBankingFinlandDetails, - * EcontextVoucherDetails, EftDetails, ExternalTokenDetails, FastlaneDetails, - * GenericIssuerPaymentMethodDetails, GooglePayDetails, IdealDetails, KlarnaDetails, - * MasterpassDetails, MbwayDetails, MobilePayDetails, MolPayDetails, OpenInvoiceDetails, - * PayByBankAISDirectDebitDetails, PayByBankDetails, PayPalDetails, PayPayDetails, PayToDetails, - * PayUUpiDetails, PayWithGoogleDetails, PaymentDetails, PixDetails, PseDetails, - * RakutenPayDetails, RatepayDetails, RivertyDetails, SamsungPayDetails, SepaDirectDebitDetails, - * StoredPaymentMethodDetails, TwintDetails, UpiCollectDetails, UpiIntentDetails, UpiQrDetails, - * VippsDetails, VisaCheckoutDetails, WeChatPayDetails, WeChatPayMiniProgramDetails, ZipDetails + * AfterpayDetails, AlmaDetails, AmazonPayDetails, AncvDetails, AndroidPayDetails, + * ApplePayDetails, BacsDirectDebitDetails, BillDeskDetails, BlikDetails, CardDetails, + * CashAppDetails, CellulantDetails, DirectDebitAuDetails, DokuDetails, DragonpayDetails, + * EBankingFinlandDetails, EcontextVoucherDetails, EftDetails, ExternalTokenDetails, + * FastlaneDetails, GenericIssuerPaymentMethodDetails, GooglePayDetails, IdealDetails, + * KlarnaDetails, KlarnaNetworkDetails, MasterpassDetails, MbwayDetails, MobilePayDetails, + * MolPayDetails, OpenInvoiceDetails, PayByBankAISDirectDebitDetails, PayByBankDetails, + * PayPalDetails, PayPayDetails, PayToDetails, PayUUpiDetails, PayWithGoogleDetails, + * PaymentDetails, PixDetails, PixPayByBankDetails, PseDetails, RakutenPayDetails, RatepayDetails, + * RivertyDetails, SamsungPayDetails, SepaDirectDebitDetails, StoredPaymentMethodDetails, + * TwintDetails, UpiCollectDetails, UpiIntentDetails, UpiQrDetails, VippsDetails, + * VisaCheckoutDetails, WeChatPayDetails, WeChatPayMiniProgramDetails, ZipDetails * - * @return The actual instance (AchDetails, AffirmDetails, AfterpayDetails, AmazonPayDetails, - * AncvDetails, AndroidPayDetails, ApplePayDetails, BacsDirectDebitDetails, BillDeskDetails, - * BlikDetails, CardDetails, CashAppDetails, CellulantDetails, DokuDetails, DragonpayDetails, - * EBankingFinlandDetails, EcontextVoucherDetails, EftDetails, ExternalTokenDetails, - * FastlaneDetails, GenericIssuerPaymentMethodDetails, GooglePayDetails, IdealDetails, - * KlarnaDetails, MasterpassDetails, MbwayDetails, MobilePayDetails, MolPayDetails, + * @return The actual instance (AchDetails, AffirmDetails, AfterpayDetails, AlmaDetails, + * AmazonPayDetails, AncvDetails, AndroidPayDetails, ApplePayDetails, BacsDirectDebitDetails, + * BillDeskDetails, BlikDetails, CardDetails, CashAppDetails, CellulantDetails, + * DirectDebitAuDetails, DokuDetails, DragonpayDetails, EBankingFinlandDetails, + * EcontextVoucherDetails, EftDetails, ExternalTokenDetails, FastlaneDetails, + * GenericIssuerPaymentMethodDetails, GooglePayDetails, IdealDetails, KlarnaDetails, + * KlarnaNetworkDetails, MasterpassDetails, MbwayDetails, MobilePayDetails, MolPayDetails, * OpenInvoiceDetails, PayByBankAISDirectDebitDetails, PayByBankDetails, PayPalDetails, * PayPayDetails, PayToDetails, PayUUpiDetails, PayWithGoogleDetails, PaymentDetails, - * PixDetails, PseDetails, RakutenPayDetails, RatepayDetails, RivertyDetails, - * SamsungPayDetails, SepaDirectDebitDetails, StoredPaymentMethodDetails, TwintDetails, - * UpiCollectDetails, UpiIntentDetails, UpiQrDetails, VippsDetails, VisaCheckoutDetails, - * WeChatPayDetails, WeChatPayMiniProgramDetails, ZipDetails) + * PixDetails, PixPayByBankDetails, PseDetails, RakutenPayDetails, RatepayDetails, + * RivertyDetails, SamsungPayDetails, SepaDirectDebitDetails, StoredPaymentMethodDetails, + * TwintDetails, UpiCollectDetails, UpiIntentDetails, UpiQrDetails, VippsDetails, + * VisaCheckoutDetails, WeChatPayDetails, WeChatPayMiniProgramDetails, ZipDetails) */ @Override public Object getActualInstance() { @@ -2204,6 +2355,17 @@ public AfterpayDetails getAfterpayDetails() throws ClassCastException { return (AfterpayDetails) super.getActualInstance(); } + /** + * Get the actual instance of `AlmaDetails`. If the actual instance is not `AlmaDetails`, the + * ClassCastException will be thrown. + * + * @return The actual instance of `AlmaDetails` + * @throws ClassCastException if the instance is not `AlmaDetails` + */ + public AlmaDetails getAlmaDetails() throws ClassCastException { + return (AlmaDetails) super.getActualInstance(); + } + /** * Get the actual instance of `AmazonPayDetails`. If the actual instance is not * `AmazonPayDetails`, the ClassCastException will be thrown. @@ -2314,6 +2476,17 @@ public CellulantDetails getCellulantDetails() throws ClassCastException { return (CellulantDetails) super.getActualInstance(); } + /** + * Get the actual instance of `DirectDebitAuDetails`. If the actual instance is not + * `DirectDebitAuDetails`, the ClassCastException will be thrown. + * + * @return The actual instance of `DirectDebitAuDetails` + * @throws ClassCastException if the instance is not `DirectDebitAuDetails` + */ + public DirectDebitAuDetails getDirectDebitAuDetails() throws ClassCastException { + return (DirectDebitAuDetails) super.getActualInstance(); + } + /** * Get the actual instance of `DokuDetails`. If the actual instance is not `DokuDetails`, the * ClassCastException will be thrown. @@ -2436,6 +2609,17 @@ public KlarnaDetails getKlarnaDetails() throws ClassCastException { return (KlarnaDetails) super.getActualInstance(); } + /** + * Get the actual instance of `KlarnaNetworkDetails`. If the actual instance is not + * `KlarnaNetworkDetails`, the ClassCastException will be thrown. + * + * @return The actual instance of `KlarnaNetworkDetails` + * @throws ClassCastException if the instance is not `KlarnaNetworkDetails` + */ + public KlarnaNetworkDetails getKlarnaNetworkDetails() throws ClassCastException { + return (KlarnaNetworkDetails) super.getActualInstance(); + } + /** * Get the actual instance of `MasterpassDetails`. If the actual instance is not * `MasterpassDetails`, the ClassCastException will be thrown. @@ -2591,6 +2775,17 @@ public PixDetails getPixDetails() throws ClassCastException { return (PixDetails) super.getActualInstance(); } + /** + * Get the actual instance of `PixPayByBankDetails`. If the actual instance is not + * `PixPayByBankDetails`, the ClassCastException will be thrown. + * + * @return The actual instance of `PixPayByBankDetails` + * @throws ClassCastException if the instance is not `PixPayByBankDetails` + */ + public PixPayByBankDetails getPixPayByBankDetails() throws ClassCastException { + return (PixPayByBankDetails) super.getActualInstance(); + } + /** * Get the actual instance of `PseDetails`. If the actual instance is not `PseDetails`, the * ClassCastException will be thrown. diff --git a/src/main/java/com/adyen/model/checkout/ConfidenceScore.java b/src/main/java/com/adyen/model/checkout/ConfidenceScore.java new file mode 100644 index 000000000..8ebeae57c --- /dev/null +++ b/src/main/java/com/adyen/model/checkout/ConfidenceScore.java @@ -0,0 +1,232 @@ +/* + * Adyen Checkout API + * + * The version of the OpenAPI document: 71 + * + * + * 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.checkout; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +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; + +/** ConfidenceScore */ +@JsonPropertyOrder({ConfidenceScore.JSON_PROPERTY_ERRORS, ConfidenceScore.JSON_PROPERTY_SCORE}) +public class ConfidenceScore { + public static final String JSON_PROPERTY_ERRORS = "errors"; + private List errors; + + /** Mark when the attribute has been explicitly set. */ + private boolean isSetErrors = false; + + public static final String JSON_PROPERTY_SCORE = "score"; + private Double score; + + /** Mark when the attribute has been explicitly set. */ + private boolean isSetScore = false; + + /** + * Sets whether attributes with null values should be explicitly included in the JSON payload. + * Default is false. + */ + @JsonIgnore private boolean includeNullValues = false; + + public ConfidenceScore() {} + + /** + * errors + * + * @param errors + * @return the current {@code ConfidenceScore} instance, allowing for method chaining + */ + public ConfidenceScore errors(List errors) { + this.errors = errors; + isSetErrors = true; // mark as set + return this; + } + + public ConfidenceScore addErrorsItem(String errorsItem) { + if (this.errors == null) { + this.errors = new ArrayList<>(); + } + this.errors.add(errorsItem); + return this; + } + + /** + * Get errors + * + * @return errors + */ + @JsonProperty(JSON_PROPERTY_ERRORS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getErrors() { + return errors; + } + + /** + * errors + * + * @param errors + */ + @JsonProperty(JSON_PROPERTY_ERRORS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setErrors(List errors) { + this.errors = errors; + isSetErrors = true; // mark as set + } + + /** + * score + * + * @param score + * @return the current {@code ConfidenceScore} instance, allowing for method chaining + */ + public ConfidenceScore score(Double score) { + this.score = score; + isSetScore = true; // mark as set + return this; + } + + /** + * Get score + * + * @return score + */ + @JsonProperty(JSON_PROPERTY_SCORE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Double getScore() { + return score; + } + + /** + * score + * + * @param score + */ + @JsonProperty(JSON_PROPERTY_SCORE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setScore(Double score) { + this.score = score; + isSetScore = true; // mark as set + } + + /** + * Configures whether null values are explicitly serialized in the JSON payload. Default is false. + */ + public ConfidenceScore includeNullValues(boolean includeNullValues) { + this.includeNullValues = includeNullValues; + return this; + } + + /** Returns whether null values are explicitly serialized in the JSON payload. */ + public boolean isIncludeNullValues() { + return includeNullValues; + } + + /** + * Sets whether null values should be explicitly serialized in the JSON payload. Default is false. + */ + public void setIncludeNullValues(boolean includeNullValues) { + this.includeNullValues = includeNullValues; + } + + /** Return true if this ConfidenceScore object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ConfidenceScore confidenceScore = (ConfidenceScore) o; + return Objects.equals(this.errors, confidenceScore.errors) + && Objects.equals(this.isSetErrors, confidenceScore.isSetErrors) + && Objects.equals(this.score, confidenceScore.score) + && Objects.equals(this.isSetScore, confidenceScore.isSetScore); + } + + @Override + public int hashCode() { + return Objects.hash(errors, isSetErrors, score, isSetScore); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ConfidenceScore {\n"); + sb.append(" errors: ").append(toIndentedString(errors)).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 "); + } + + /** Returns a map of properties to be merged into the JSON payload as explicit null values. */ + @JsonInclude(JsonInclude.Include.ALWAYS) + @JsonAnyGetter + public Map getExplicitNulls() { + if (!this.includeNullValues) { + return Collections.emptyMap(); + } + + Map nulls = new HashMap<>(); + + if (isSetErrors) { + addIfNull(nulls, JSON_PROPERTY_ERRORS, this.errors); + } + if (isSetScore) { + addIfNull(nulls, JSON_PROPERTY_SCORE, this.score); + } + + return nulls; + } + + // add to map when value is null + private void addIfNull(Map map, String key, Object value) { + if (value == null) { + map.put(key, null); + } + } + + /** + * Create an instance of ConfidenceScore given an JSON string + * + * @param jsonString JSON string + * @return An instance of ConfidenceScore + * @throws JsonProcessingException if the JSON string is invalid with respect to ConfidenceScore + */ + public static ConfidenceScore fromJson(String jsonString) throws JsonProcessingException { + return JSON.getMapper().readValue(jsonString, ConfidenceScore.class); + } + + /** + * Convert an instance of ConfidenceScore 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/checkout/CreateCheckoutSessionRequest.java b/src/main/java/com/adyen/model/checkout/CreateCheckoutSessionRequest.java index 27cf14b88..1314a7a3c 100644 --- a/src/main/java/com/adyen/model/checkout/CreateCheckoutSessionRequest.java +++ b/src/main/java/com/adyen/model/checkout/CreateCheckoutSessionRequest.java @@ -752,9 +752,8 @@ public static StorePaymentMethodModeEnum fromValue(String value) { public static final String JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY = "threeDSAuthenticationOnly"; - @Deprecated // deprecated since Adyen Checkout API v69: Use - // `authenticationData.authenticationOnly` instead. - private Boolean threeDSAuthenticationOnly; + /* deprecated since Adyen Checkout API v69: Use `authenticationData.authenticationOnly` instead. */ + @Deprecated private Boolean threeDSAuthenticationOnly; /** Mark when the attribute has been explicitly set. */ private boolean isSetThreeDSAuthenticationOnly = false; @@ -2816,11 +2815,17 @@ public void setShopperInteraction(ShopperInteractionEnum shopperInteraction) { } /** - * The combination of a language code and a country code to specify the language to be used in the - * payment. + * The language for the payment. The value combines the two-letter [ISO + * 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) language code with the + * [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes) country + * code. For example, **nl-NL**. When using Drop-in/Components, the specified language appears if + * your front-end global configuration does not set the `locale`. * - * @param shopperLocale The combination of a language code and a country code to specify the - * language to be used in the payment. + * @param shopperLocale The language for the payment. The value combines the two-letter [ISO + * 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) language code with the + * [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes) country + * code. For example, **nl-NL**. When using Drop-in/Components, the specified language appears + * if your front-end global configuration does not set the `locale`. * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ public CreateCheckoutSessionRequest shopperLocale(String shopperLocale) { @@ -2830,11 +2835,17 @@ public CreateCheckoutSessionRequest shopperLocale(String shopperLocale) { } /** - * The combination of a language code and a country code to specify the language to be used in the - * payment. + * The language for the payment. The value combines the two-letter [ISO + * 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) language code with the + * [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes) country + * code. For example, **nl-NL**. When using Drop-in/Components, the specified language appears if + * your front-end global configuration does not set the `locale`. * - * @return shopperLocale The combination of a language code and a country code to specify the - * language to be used in the payment. + * @return shopperLocale The language for the payment. The value combines the two-letter [ISO + * 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) language code with the + * [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes) country + * code. For example, **nl-NL**. When using Drop-in/Components, the specified language appears + * if your front-end global configuration does not set the `locale`. */ @JsonProperty(JSON_PROPERTY_SHOPPER_LOCALE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2843,11 +2854,17 @@ public String getShopperLocale() { } /** - * The combination of a language code and a country code to specify the language to be used in the - * payment. + * The language for the payment. The value combines the two-letter [ISO + * 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) language code with the + * [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes) country + * code. For example, **nl-NL**. When using Drop-in/Components, the specified language appears if + * your front-end global configuration does not set the `locale`. * - * @param shopperLocale The combination of a language code and a country code to specify the - * language to be used in the payment. + * @param shopperLocale The language for the payment. The value combines the two-letter [ISO + * 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) language code with the + * [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes) country + * code. For example, **nl-NL**. When using Drop-in/Components, the specified language appears + * if your front-end global configuration does not set the `locale`. */ @JsonProperty(JSON_PROPERTY_SHOPPER_LOCALE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -3602,11 +3619,9 @@ public void setThreeDS2RequestData(CheckoutSessionThreeDS2RequestData threeDS2Re * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the * payment authorization.Default: **false**. * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v69 Use `authenticationData.authenticationOnly` - * instead. + * @deprecated since Adyen Checkout API v69 Use `authenticationData.authenticationOnly` instead. */ - @Deprecated // deprecated since Adyen Checkout API v69: Use - // `authenticationData.authenticationOnly` instead. + @Deprecated public CreateCheckoutSessionRequest threeDSAuthenticationOnly(Boolean threeDSAuthenticationOnly) { this.threeDSAuthenticationOnly = threeDSAuthenticationOnly; isSetThreeDSAuthenticationOnly = true; // mark as set @@ -3623,11 +3638,9 @@ public CreateCheckoutSessionRequest threeDSAuthenticationOnly(Boolean threeDSAut * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the * payment authorization.Default: **false**. - * @deprecated // deprecated since Adyen Checkout API v69: Use - * `authenticationData.authenticationOnly` instead. + * @deprecated since Adyen Checkout API v69 Use `authenticationData.authenticationOnly` instead. */ - @Deprecated // deprecated since Adyen Checkout API v69: Use - // `authenticationData.authenticationOnly` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getThreeDSAuthenticationOnly() { @@ -3644,11 +3657,9 @@ public Boolean getThreeDSAuthenticationOnly() { * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the * payment authorization.Default: **false**. - * @deprecated since Adyen Checkout API v69 Use `authenticationData.authenticationOnly` - * instead. + * @deprecated since Adyen Checkout API v69 Use `authenticationData.authenticationOnly` instead. */ - @Deprecated // deprecated since Adyen Checkout API v69: Use - // `authenticationData.authenticationOnly` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setThreeDSAuthenticationOnly(Boolean threeDSAuthenticationOnly) { diff --git a/src/main/java/com/adyen/model/checkout/CreateCheckoutSessionResponse.java b/src/main/java/com/adyen/model/checkout/CreateCheckoutSessionResponse.java index 6da646748..84689a9c2 100644 --- a/src/main/java/com/adyen/model/checkout/CreateCheckoutSessionResponse.java +++ b/src/main/java/com/adyen/model/checkout/CreateCheckoutSessionResponse.java @@ -766,9 +766,8 @@ public static StorePaymentMethodModeEnum fromValue(String value) { public static final String JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY = "threeDSAuthenticationOnly"; - @Deprecated // deprecated since Adyen Checkout API v69: Use - // `authenticationData.authenticationOnly` instead. - private Boolean threeDSAuthenticationOnly; + /* deprecated since Adyen Checkout API v69: Use `authenticationData.authenticationOnly` instead. */ + @Deprecated private Boolean threeDSAuthenticationOnly; /** Mark when the attribute has been explicitly set. */ private boolean isSetThreeDSAuthenticationOnly = false; @@ -2933,11 +2932,17 @@ public void setShopperInteraction(ShopperInteractionEnum shopperInteraction) { } /** - * The combination of a language code and a country code to specify the language to be used in the - * payment. + * The language for the payment. The value combines the two-letter [ISO + * 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) language code with the + * [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes) country + * code. For example, **nl-NL**. When using Drop-in/Components, the specified language appears if + * your front-end global configuration does not set the `locale`. * - * @param shopperLocale The combination of a language code and a country code to specify the - * language to be used in the payment. + * @param shopperLocale The language for the payment. The value combines the two-letter [ISO + * 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) language code with the + * [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes) country + * code. For example, **nl-NL**. When using Drop-in/Components, the specified language appears + * if your front-end global configuration does not set the `locale`. * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method * chaining */ @@ -2948,11 +2953,17 @@ public CreateCheckoutSessionResponse shopperLocale(String shopperLocale) { } /** - * The combination of a language code and a country code to specify the language to be used in the - * payment. + * The language for the payment. The value combines the two-letter [ISO + * 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) language code with the + * [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes) country + * code. For example, **nl-NL**. When using Drop-in/Components, the specified language appears if + * your front-end global configuration does not set the `locale`. * - * @return shopperLocale The combination of a language code and a country code to specify the - * language to be used in the payment. + * @return shopperLocale The language for the payment. The value combines the two-letter [ISO + * 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) language code with the + * [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes) country + * code. For example, **nl-NL**. When using Drop-in/Components, the specified language appears + * if your front-end global configuration does not set the `locale`. */ @JsonProperty(JSON_PROPERTY_SHOPPER_LOCALE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2961,11 +2972,17 @@ public String getShopperLocale() { } /** - * The combination of a language code and a country code to specify the language to be used in the - * payment. + * The language for the payment. The value combines the two-letter [ISO + * 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) language code with the + * [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes) country + * code. For example, **nl-NL**. When using Drop-in/Components, the specified language appears if + * your front-end global configuration does not set the `locale`. * - * @param shopperLocale The combination of a language code and a country code to specify the - * language to be used in the payment. + * @param shopperLocale The language for the payment. The value combines the two-letter [ISO + * 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) language code with the + * [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes) country + * code. For example, **nl-NL**. When using Drop-in/Components, the specified language appears + * if your front-end global configuration does not set the `locale`. */ @JsonProperty(JSON_PROPERTY_SHOPPER_LOCALE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -3736,11 +3753,9 @@ public void setThreeDS2RequestData(CheckoutSessionThreeDS2RequestData threeDS2Re * payment authorization.Default: **false**. * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method * chaining - * @deprecated since Adyen Checkout API v69 Use `authenticationData.authenticationOnly` - * instead. + * @deprecated since Adyen Checkout API v69 Use `authenticationData.authenticationOnly` instead. */ - @Deprecated // deprecated since Adyen Checkout API v69: Use - // `authenticationData.authenticationOnly` instead. + @Deprecated public CreateCheckoutSessionResponse threeDSAuthenticationOnly( Boolean threeDSAuthenticationOnly) { this.threeDSAuthenticationOnly = threeDSAuthenticationOnly; @@ -3758,11 +3773,9 @@ public CreateCheckoutSessionResponse threeDSAuthenticationOnly( * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the * payment authorization.Default: **false**. - * @deprecated // deprecated since Adyen Checkout API v69: Use - * `authenticationData.authenticationOnly` instead. + * @deprecated since Adyen Checkout API v69 Use `authenticationData.authenticationOnly` instead. */ - @Deprecated // deprecated since Adyen Checkout API v69: Use - // `authenticationData.authenticationOnly` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getThreeDSAuthenticationOnly() { @@ -3779,11 +3792,9 @@ public Boolean getThreeDSAuthenticationOnly() { * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the * payment authorization.Default: **false**. - * @deprecated since Adyen Checkout API v69 Use `authenticationData.authenticationOnly` - * instead. + * @deprecated since Adyen Checkout API v69 Use `authenticationData.authenticationOnly` instead. */ - @Deprecated // deprecated since Adyen Checkout API v69: Use - // `authenticationData.authenticationOnly` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setThreeDSAuthenticationOnly(Boolean threeDSAuthenticationOnly) { diff --git a/src/main/java/com/adyen/model/checkout/DirectDebitAuDetails.java b/src/main/java/com/adyen/model/checkout/DirectDebitAuDetails.java new file mode 100644 index 000000000..de640a7ee --- /dev/null +++ b/src/main/java/com/adyen/model/checkout/DirectDebitAuDetails.java @@ -0,0 +1,553 @@ +/* + * Adyen Checkout API + * + * The version of the OpenAPI document: 71 + * + * + * 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.checkout; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +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; + +/** DirectDebitAuDetails */ +@JsonPropertyOrder({ + DirectDebitAuDetails.JSON_PROPERTY_BANK_ACCOUNT_NUMBER, + DirectDebitAuDetails.JSON_PROPERTY_BANK_BRANCH_CODE, + DirectDebitAuDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, + DirectDebitAuDetails.JSON_PROPERTY_RECURRING_DETAIL_REFERENCE, + DirectDebitAuDetails.JSON_PROPERTY_SDK_DATA, + DirectDebitAuDetails.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID, + DirectDebitAuDetails.JSON_PROPERTY_TYPE +}) +public class DirectDebitAuDetails { + public static final String JSON_PROPERTY_BANK_ACCOUNT_NUMBER = "bankAccountNumber"; + private String bankAccountNumber; + + /** Mark when the attribute has been explicitly set. */ + private boolean isSetBankAccountNumber = false; + + public static final String JSON_PROPERTY_BANK_BRANCH_CODE = "bankBranchCode"; + private String bankBranchCode; + + /** Mark when the attribute has been explicitly set. */ + private boolean isSetBankBranchCode = false; + + public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId"; + private String checkoutAttemptId; + + /** Mark when the attribute has been explicitly set. */ + private boolean isSetCheckoutAttemptId = false; + + public static final String JSON_PROPERTY_RECURRING_DETAIL_REFERENCE = "recurringDetailReference"; + /* deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ + @Deprecated private String recurringDetailReference; + + /** Mark when the attribute has been explicitly set. */ + private boolean isSetRecurringDetailReference = false; + + public static final String JSON_PROPERTY_SDK_DATA = "sdkData"; + private String sdkData; + + /** Mark when the attribute has been explicitly set. */ + private boolean isSetSdkData = false; + + public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId"; + private String storedPaymentMethodId; + + /** Mark when the attribute has been explicitly set. */ + private boolean isSetStoredPaymentMethodId = false; + + /** **directdebit_AU** */ + public enum TypeEnum { + DIRECTDEBIT_AU(String.valueOf("directdebit_AU")); + + 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; + + /** Mark when the attribute has been explicitly set. */ + private boolean isSetType = false; + + /** + * Sets whether attributes with null values should be explicitly included in the JSON payload. + * Default is false. + */ + @JsonIgnore private boolean includeNullValues = false; + + public DirectDebitAuDetails() {} + + /** + * The shopper's banking account number used to complete payment. + * + * @param bankAccountNumber The shopper's banking account number used to complete payment. + * @return the current {@code DirectDebitAuDetails} instance, allowing for method chaining + */ + public DirectDebitAuDetails bankAccountNumber(String bankAccountNumber) { + this.bankAccountNumber = bankAccountNumber; + isSetBankAccountNumber = true; // mark as set + return this; + } + + /** + * The shopper's banking account number used to complete payment. + * + * @return bankAccountNumber The shopper's banking account number used to complete payment. + */ + @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getBankAccountNumber() { + return bankAccountNumber; + } + + /** + * The shopper's banking account number used to complete payment. + * + * @param bankAccountNumber The shopper's banking account number used to complete payment. + */ + @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setBankAccountNumber(String bankAccountNumber) { + this.bankAccountNumber = bankAccountNumber; + isSetBankAccountNumber = true; // mark as set + } + + /** + * The shopper's BSB (their bank's branch code) number used to complete payment. + * + * @param bankBranchCode The shopper's BSB (their bank's branch code) number used to + * complete payment. + * @return the current {@code DirectDebitAuDetails} instance, allowing for method chaining + */ + public DirectDebitAuDetails bankBranchCode(String bankBranchCode) { + this.bankBranchCode = bankBranchCode; + isSetBankBranchCode = true; // mark as set + return this; + } + + /** + * The shopper's BSB (their bank's branch code) number used to complete payment. + * + * @return bankBranchCode The shopper's BSB (their bank's branch code) number used to + * complete payment. + */ + @JsonProperty(JSON_PROPERTY_BANK_BRANCH_CODE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getBankBranchCode() { + return bankBranchCode; + } + + /** + * The shopper's BSB (their bank's branch code) number used to complete payment. + * + * @param bankBranchCode The shopper's BSB (their bank's branch code) number used to + * complete payment. + */ + @JsonProperty(JSON_PROPERTY_BANK_BRANCH_CODE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setBankBranchCode(String bankBranchCode) { + this.bankBranchCode = bankBranchCode; + isSetBankBranchCode = true; // mark as set + } + + /** + * The checkout attempt identifier. + * + * @param checkoutAttemptId The checkout attempt identifier. + * @return the current {@code DirectDebitAuDetails} instance, allowing for method chaining + */ + public DirectDebitAuDetails checkoutAttemptId(String checkoutAttemptId) { + this.checkoutAttemptId = checkoutAttemptId; + isSetCheckoutAttemptId = true; // mark as set + return this; + } + + /** + * The checkout attempt identifier. + * + * @return checkoutAttemptId The checkout attempt identifier. + */ + @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getCheckoutAttemptId() { + return checkoutAttemptId; + } + + /** + * The checkout attempt identifier. + * + * @param checkoutAttemptId The checkout attempt identifier. + */ + @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setCheckoutAttemptId(String checkoutAttemptId) { + this.checkoutAttemptId = checkoutAttemptId; + isSetCheckoutAttemptId = true; // mark as set + } + + /** + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @param recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. + * @return the current {@code DirectDebitAuDetails} instance, allowing for method chaining + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + */ + @Deprecated + public DirectDebitAuDetails recurringDetailReference(String recurringDetailReference) { + this.recurringDetailReference = recurringDetailReference; + isSetRecurringDetailReference = true; // mark as set + return this; + } + + /** + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @return recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + */ + @Deprecated + @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getRecurringDetailReference() { + return recurringDetailReference; + } + + /** + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @param recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + */ + @Deprecated + @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setRecurringDetailReference(String recurringDetailReference) { + this.recurringDetailReference = recurringDetailReference; + isSetRecurringDetailReference = true; // mark as set + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * @return the current {@code DirectDebitAuDetails} instance, allowing for method chaining + */ + public DirectDebitAuDetails sdkData(String sdkData) { + this.sdkData = sdkData; + isSetSdkData = true; // mark as set + return this; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return sdkData Base64-encoded JSON object containing SDK related parameters required by the + * SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSdkData() { + return sdkData; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSdkData(String sdkData) { + this.sdkData = sdkData; + isSetSdkData = true; // mark as set + } + + /** + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. + * @return the current {@code DirectDebitAuDetails} instance, allowing for method chaining + */ + public DirectDebitAuDetails storedPaymentMethodId(String storedPaymentMethodId) { + this.storedPaymentMethodId = storedPaymentMethodId; + isSetStoredPaymentMethodId = true; // mark as set + return this; + } + + /** + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. + */ + @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getStoredPaymentMethodId() { + return storedPaymentMethodId; + } + + /** + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. + */ + @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setStoredPaymentMethodId(String storedPaymentMethodId) { + this.storedPaymentMethodId = storedPaymentMethodId; + isSetStoredPaymentMethodId = true; // mark as set + } + + /** + * **directdebit_AU** + * + * @param type **directdebit_AU** + * @return the current {@code DirectDebitAuDetails} instance, allowing for method chaining + */ + public DirectDebitAuDetails type(TypeEnum type) { + this.type = type; + isSetType = true; // mark as set + return this; + } + + /** + * **directdebit_AU** + * + * @return type **directdebit_AU** + */ + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public TypeEnum getType() { + return type; + } + + /** + * **directdebit_AU** + * + * @param type **directdebit_AU** + */ + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setType(TypeEnum type) { + this.type = type; + isSetType = true; // mark as set + } + + /** + * Configures whether null values are explicitly serialized in the JSON payload. Default is false. + */ + public DirectDebitAuDetails includeNullValues(boolean includeNullValues) { + this.includeNullValues = includeNullValues; + return this; + } + + /** Returns whether null values are explicitly serialized in the JSON payload. */ + public boolean isIncludeNullValues() { + return includeNullValues; + } + + /** + * Sets whether null values should be explicitly serialized in the JSON payload. Default is false. + */ + public void setIncludeNullValues(boolean includeNullValues) { + this.includeNullValues = includeNullValues; + } + + /** Return true if this DirectDebitAuDetails object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DirectDebitAuDetails directDebitAuDetails = (DirectDebitAuDetails) o; + return Objects.equals(this.bankAccountNumber, directDebitAuDetails.bankAccountNumber) + && Objects.equals(this.isSetBankAccountNumber, directDebitAuDetails.isSetBankAccountNumber) + && Objects.equals(this.bankBranchCode, directDebitAuDetails.bankBranchCode) + && Objects.equals(this.isSetBankBranchCode, directDebitAuDetails.isSetBankBranchCode) + && Objects.equals(this.checkoutAttemptId, directDebitAuDetails.checkoutAttemptId) + && Objects.equals(this.isSetCheckoutAttemptId, directDebitAuDetails.isSetCheckoutAttemptId) + && Objects.equals( + this.recurringDetailReference, directDebitAuDetails.recurringDetailReference) + && Objects.equals( + this.isSetRecurringDetailReference, directDebitAuDetails.isSetRecurringDetailReference) + && Objects.equals(this.sdkData, directDebitAuDetails.sdkData) + && Objects.equals(this.isSetSdkData, directDebitAuDetails.isSetSdkData) + && Objects.equals(this.storedPaymentMethodId, directDebitAuDetails.storedPaymentMethodId) + && Objects.equals( + this.isSetStoredPaymentMethodId, directDebitAuDetails.isSetStoredPaymentMethodId) + && Objects.equals(this.type, directDebitAuDetails.type) + && Objects.equals(this.isSetType, directDebitAuDetails.isSetType); + } + + @Override + public int hashCode() { + return Objects.hash( + bankAccountNumber, + isSetBankAccountNumber, + bankBranchCode, + isSetBankBranchCode, + checkoutAttemptId, + isSetCheckoutAttemptId, + recurringDetailReference, + isSetRecurringDetailReference, + sdkData, + isSetSdkData, + storedPaymentMethodId, + isSetStoredPaymentMethodId, + type, + isSetType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DirectDebitAuDetails {\n"); + sb.append(" bankAccountNumber: ").append(toIndentedString(bankAccountNumber)).append("\n"); + sb.append(" bankBranchCode: ").append(toIndentedString(bankBranchCode)).append("\n"); + sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); + sb.append(" recurringDetailReference: ") + .append(toIndentedString(recurringDetailReference)) + .append("\n"); + sb.append(" sdkData: ").append(toIndentedString(sdkData)).append("\n"); + sb.append(" storedPaymentMethodId: ") + .append(toIndentedString(storedPaymentMethodId)) + .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 "); + } + + /** Returns a map of properties to be merged into the JSON payload as explicit null values. */ + @JsonInclude(JsonInclude.Include.ALWAYS) + @JsonAnyGetter + public Map getExplicitNulls() { + if (!this.includeNullValues) { + return Collections.emptyMap(); + } + + Map nulls = new HashMap<>(); + + if (isSetBankAccountNumber) { + addIfNull(nulls, JSON_PROPERTY_BANK_ACCOUNT_NUMBER, this.bankAccountNumber); + } + if (isSetBankBranchCode) { + addIfNull(nulls, JSON_PROPERTY_BANK_BRANCH_CODE, this.bankBranchCode); + } + if (isSetCheckoutAttemptId) { + addIfNull(nulls, JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, this.checkoutAttemptId); + } + if (isSetRecurringDetailReference) { + addIfNull(nulls, JSON_PROPERTY_RECURRING_DETAIL_REFERENCE, this.recurringDetailReference); + } + if (isSetSdkData) { + addIfNull(nulls, JSON_PROPERTY_SDK_DATA, this.sdkData); + } + if (isSetStoredPaymentMethodId) { + addIfNull(nulls, JSON_PROPERTY_STORED_PAYMENT_METHOD_ID, this.storedPaymentMethodId); + } + if (isSetType) { + addIfNull(nulls, JSON_PROPERTY_TYPE, this.type); + } + + return nulls; + } + + // add to map when value is null + private void addIfNull(Map map, String key, Object value) { + if (value == null) { + map.put(key, null); + } + } + + /** + * Create an instance of DirectDebitAuDetails given an JSON string + * + * @param jsonString JSON string + * @return An instance of DirectDebitAuDetails + * @throws JsonProcessingException if the JSON string is invalid with respect to + * DirectDebitAuDetails + */ + public static DirectDebitAuDetails fromJson(String jsonString) throws JsonProcessingException { + return JSON.getMapper().readValue(jsonString, DirectDebitAuDetails.class); + } + + /** + * Convert an instance of DirectDebitAuDetails 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/checkout/DonationCampaignsRequest.java b/src/main/java/com/adyen/model/checkout/DonationCampaignsRequest.java index ac638893a..ede8e4e9b 100644 --- a/src/main/java/com/adyen/model/checkout/DonationCampaignsRequest.java +++ b/src/main/java/com/adyen/model/checkout/DonationCampaignsRequest.java @@ -23,7 +23,8 @@ @JsonPropertyOrder({ DonationCampaignsRequest.JSON_PROPERTY_CURRENCY, DonationCampaignsRequest.JSON_PROPERTY_LOCALE, - DonationCampaignsRequest.JSON_PROPERTY_MERCHANT_ACCOUNT + DonationCampaignsRequest.JSON_PROPERTY_MERCHANT_ACCOUNT, + DonationCampaignsRequest.JSON_PROPERTY_STORE }) public class DonationCampaignsRequest { public static final String JSON_PROPERTY_CURRENCY = "currency"; @@ -44,6 +45,12 @@ public class DonationCampaignsRequest { /** Mark when the attribute has been explicitly set. */ private boolean isSetMerchantAccount = false; + public static final String JSON_PROPERTY_STORE = "store"; + private String store; + + /** Mark when the attribute has been explicitly set. */ + private boolean isSetStore = false; + /** * Sets whether attributes with null values should be explicitly included in the JSON payload. * Default is false. @@ -163,6 +170,80 @@ public void setMerchantAccount(String merchantAccount) { isSetMerchantAccount = true; // mark as set } + /** + * Required for Adyen for Platforms integrations if you are a platform model. This is your + * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) + * (on [balance platform](https://docs.adyen.com/platforms)) or the + * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) + * (in the [classic + * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) + * for the ecommerce or point-of-sale store that is processing the payment. + * + * @param store Required for Adyen for Platforms integrations if you are a platform model. This is + * your + * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) + * (on [balance platform](https://docs.adyen.com/platforms)) or the + * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) + * (in the [classic + * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) + * for the ecommerce or point-of-sale store that is processing the payment. + * @return the current {@code DonationCampaignsRequest} instance, allowing for method chaining + */ + public DonationCampaignsRequest store(String store) { + this.store = store; + isSetStore = true; // mark as set + return this; + } + + /** + * Required for Adyen for Platforms integrations if you are a platform model. This is your + * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) + * (on [balance platform](https://docs.adyen.com/platforms)) or the + * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) + * (in the [classic + * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) + * for the ecommerce or point-of-sale store that is processing the payment. + * + * @return store Required for Adyen for Platforms integrations if you are a platform model. This + * is your + * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) + * (on [balance platform](https://docs.adyen.com/platforms)) or the + * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) + * (in the [classic + * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) + * for the ecommerce or point-of-sale store that is processing the payment. + */ + @JsonProperty(JSON_PROPERTY_STORE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getStore() { + return store; + } + + /** + * Required for Adyen for Platforms integrations if you are a platform model. This is your + * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) + * (on [balance platform](https://docs.adyen.com/platforms)) or the + * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) + * (in the [classic + * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) + * for the ecommerce or point-of-sale store that is processing the payment. + * + * @param store Required for Adyen for Platforms integrations if you are a platform model. This is + * your + * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) + * (on [balance platform](https://docs.adyen.com/platforms)) or the + * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) + * (in the [classic + * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) + * for the ecommerce or point-of-sale store that is processing the payment. + */ + @JsonProperty(JSON_PROPERTY_STORE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setStore(String store) { + this.store = store; + isSetStore = true; // mark as set + } + /** * Configures whether null values are explicitly serialized in the JSON payload. Default is false. */ @@ -198,13 +279,22 @@ public boolean equals(Object o) { && Objects.equals(this.locale, donationCampaignsRequest.locale) && Objects.equals(this.isSetLocale, donationCampaignsRequest.isSetLocale) && Objects.equals(this.merchantAccount, donationCampaignsRequest.merchantAccount) - && Objects.equals(this.isSetMerchantAccount, donationCampaignsRequest.isSetMerchantAccount); + && Objects.equals(this.isSetMerchantAccount, donationCampaignsRequest.isSetMerchantAccount) + && Objects.equals(this.store, donationCampaignsRequest.store) + && Objects.equals(this.isSetStore, donationCampaignsRequest.isSetStore); } @Override public int hashCode() { return Objects.hash( - currency, isSetCurrency, locale, isSetLocale, merchantAccount, isSetMerchantAccount); + currency, + isSetCurrency, + locale, + isSetLocale, + merchantAccount, + isSetMerchantAccount, + store, + isSetStore); } @Override @@ -214,6 +304,7 @@ public String toString() { sb.append(" currency: ").append(toIndentedString(currency)).append("\n"); sb.append(" locale: ").append(toIndentedString(locale)).append("\n"); sb.append(" merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n"); + sb.append(" store: ").append(toIndentedString(store)).append("\n"); sb.append("}"); return sb.toString(); } @@ -247,6 +338,9 @@ public Map getExplicitNulls() { if (isSetMerchantAccount) { addIfNull(nulls, JSON_PROPERTY_MERCHANT_ACCOUNT, this.merchantAccount); } + if (isSetStore) { + addIfNull(nulls, JSON_PROPERTY_STORE, this.store); + } return nulls; } diff --git a/src/main/java/com/adyen/model/checkout/DonationPaymentRequest.java b/src/main/java/com/adyen/model/checkout/DonationPaymentRequest.java index f567b1b30..f5978207a 100644 --- a/src/main/java/com/adyen/model/checkout/DonationPaymentRequest.java +++ b/src/main/java/com/adyen/model/checkout/DonationPaymentRequest.java @@ -69,6 +69,7 @@ DonationPaymentRequest.JSON_PROPERTY_SHOPPER_NAME, DonationPaymentRequest.JSON_PROPERTY_SHOPPER_REFERENCE, DonationPaymentRequest.JSON_PROPERTY_SOCIAL_SECURITY_NUMBER, + DonationPaymentRequest.JSON_PROPERTY_STORE, DonationPaymentRequest.JSON_PROPERTY_TELEPHONE_NUMBER, DonationPaymentRequest.JSON_PROPERTY_THREE_D_S2_REQUEST_DATA, DonationPaymentRequest.JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY @@ -177,8 +178,8 @@ public static ChannelEnum fromValue(String value) { private boolean isSetCheckoutAttemptId = false; public static final String JSON_PROPERTY_CONVERSION_ID = "conversionId"; - @Deprecated // deprecated since Adyen Checkout API v68: Use `checkoutAttemptId` instead - private String conversionId; + /* deprecated since Adyen Checkout API v68: Use `checkoutAttemptId` instead */ + @Deprecated private String conversionId; /** Mark when the attribute has been explicitly set. */ private boolean isSetConversionId = false; @@ -469,6 +470,12 @@ public static ShopperInteractionEnum fromValue(String value) { /** Mark when the attribute has been explicitly set. */ private boolean isSetSocialSecurityNumber = false; + public static final String JSON_PROPERTY_STORE = "store"; + private String store; + + /** Mark when the attribute has been explicitly set. */ + private boolean isSetStore = false; + public static final String JSON_PROPERTY_TELEPHONE_NUMBER = "telephoneNumber"; private String telephoneNumber; @@ -483,9 +490,8 @@ public static ShopperInteractionEnum fromValue(String value) { public static final String JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY = "threeDSAuthenticationOnly"; - @Deprecated // deprecated since Adyen Checkout API v69: Use - // `authenticationData.authenticationOnly` instead. - private Boolean threeDSAuthenticationOnly; + /* deprecated since Adyen Checkout API v69: Use `authenticationData.authenticationOnly` instead. */ + @Deprecated private Boolean threeDSAuthenticationOnly; /** Mark when the attribute has been explicitly set. */ private boolean isSetThreeDSAuthenticationOnly = false; @@ -864,9 +870,9 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { * @param conversionId Conversion ID that corresponds to the Id generated by the client SDK for * tracking user payment journey. * @return the current {@code DonationPaymentRequest} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v68 Use `checkoutAttemptId` instead + * @deprecated since Adyen Checkout API v68 Use `checkoutAttemptId` instead */ - @Deprecated // deprecated since Adyen Checkout API v68: Use `checkoutAttemptId` instead + @Deprecated public DonationPaymentRequest conversionId(String conversionId) { this.conversionId = conversionId; isSetConversionId = true; // mark as set @@ -879,9 +885,9 @@ public DonationPaymentRequest conversionId(String conversionId) { * * @return conversionId Conversion ID that corresponds to the Id generated by the client SDK for * tracking user payment journey. - * @deprecated // deprecated since Adyen Checkout API v68: Use `checkoutAttemptId` instead + * @deprecated since Adyen Checkout API v68 Use `checkoutAttemptId` instead */ - @Deprecated // deprecated since Adyen Checkout API v68: Use `checkoutAttemptId` instead + @Deprecated @JsonProperty(JSON_PROPERTY_CONVERSION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getConversionId() { @@ -894,9 +900,9 @@ public String getConversionId() { * * @param conversionId Conversion ID that corresponds to the Id generated by the client SDK for * tracking user payment journey. - * @deprecated since Adyen Checkout API v68 Use `checkoutAttemptId` instead + * @deprecated since Adyen Checkout API v68 Use `checkoutAttemptId` instead */ - @Deprecated // deprecated since Adyen Checkout API v68: Use `checkoutAttemptId` instead + @Deprecated @JsonProperty(JSON_PROPERTY_CONVERSION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setConversionId(String conversionId) { @@ -905,10 +911,10 @@ public void setConversionId(String conversionId) { } /** - * The shopper country. Format: [ISO 3166-1 + * The shopper country code. Format: [ISO 3166-1 * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE * - * @param countryCode The shopper country. Format: [ISO 3166-1 + * @param countryCode The shopper country code. Format: [ISO 3166-1 * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE * @return the current {@code DonationPaymentRequest} instance, allowing for method chaining */ @@ -919,10 +925,10 @@ public DonationPaymentRequest countryCode(String countryCode) { } /** - * The shopper country. Format: [ISO 3166-1 + * The shopper country code. Format: [ISO 3166-1 * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE * - * @return countryCode The shopper country. Format: [ISO 3166-1 + * @return countryCode The shopper country code. Format: [ISO 3166-1 * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE */ @JsonProperty(JSON_PROPERTY_COUNTRY_CODE) @@ -932,10 +938,10 @@ public String getCountryCode() { } /** - * The shopper country. Format: [ISO 3166-1 + * The shopper country code. Format: [ISO 3166-1 * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE * - * @param countryCode The shopper country. Format: [ISO 3166-1 + * @param countryCode The shopper country code. Format: [ISO 3166-1 * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE */ @JsonProperty(JSON_PROPERTY_COUNTRY_CODE) @@ -2163,11 +2169,17 @@ public void setShopperInteraction(ShopperInteractionEnum shopperInteraction) { } /** - * The combination of a language code and a country code to specify the language to be used in the - * payment. + * The language for the payment. The value combines the two-letter [ISO + * 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) language code with the + * [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes) country + * code. For example, **nl-NL**. When using Drop-in/Components, the specified language appears if + * your front-end global configuration does not set the `locale`. * - * @param shopperLocale The combination of a language code and a country code to specify the - * language to be used in the payment. + * @param shopperLocale The language for the payment. The value combines the two-letter [ISO + * 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) language code with the + * [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes) country + * code. For example, **nl-NL**. When using Drop-in/Components, the specified language appears + * if your front-end global configuration does not set the `locale`. * @return the current {@code DonationPaymentRequest} instance, allowing for method chaining */ public DonationPaymentRequest shopperLocale(String shopperLocale) { @@ -2177,11 +2189,17 @@ public DonationPaymentRequest shopperLocale(String shopperLocale) { } /** - * The combination of a language code and a country code to specify the language to be used in the - * payment. + * The language for the payment. The value combines the two-letter [ISO + * 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) language code with the + * [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes) country + * code. For example, **nl-NL**. When using Drop-in/Components, the specified language appears if + * your front-end global configuration does not set the `locale`. * - * @return shopperLocale The combination of a language code and a country code to specify the - * language to be used in the payment. + * @return shopperLocale The language for the payment. The value combines the two-letter [ISO + * 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) language code with the + * [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes) country + * code. For example, **nl-NL**. When using Drop-in/Components, the specified language appears + * if your front-end global configuration does not set the `locale`. */ @JsonProperty(JSON_PROPERTY_SHOPPER_LOCALE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2190,11 +2208,17 @@ public String getShopperLocale() { } /** - * The combination of a language code and a country code to specify the language to be used in the - * payment. + * The language for the payment. The value combines the two-letter [ISO + * 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) language code with the + * [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes) country + * code. For example, **nl-NL**. When using Drop-in/Components, the specified language appears if + * your front-end global configuration does not set the `locale`. * - * @param shopperLocale The combination of a language code and a country code to specify the - * language to be used in the payment. + * @param shopperLocale The language for the payment. The value combines the two-letter [ISO + * 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) language code with the + * [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes) country + * code. For example, **nl-NL**. When using Drop-in/Components, the specified language appears + * if your front-end global configuration does not set the `locale`. */ @JsonProperty(JSON_PROPERTY_SHOPPER_LOCALE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2323,6 +2347,80 @@ public void setSocialSecurityNumber(String socialSecurityNumber) { isSetSocialSecurityNumber = true; // mark as set } + /** + * Required for Adyen for Platforms integrations if you are a platform model. This is your + * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) + * (on [balance platform](https://docs.adyen.com/platforms)) or the + * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) + * (in the [classic + * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) + * for the ecommerce or point-of-sale store that is processing the payment. + * + * @param store Required for Adyen for Platforms integrations if you are a platform model. This is + * your + * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) + * (on [balance platform](https://docs.adyen.com/platforms)) or the + * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) + * (in the [classic + * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) + * for the ecommerce or point-of-sale store that is processing the payment. + * @return the current {@code DonationPaymentRequest} instance, allowing for method chaining + */ + public DonationPaymentRequest store(String store) { + this.store = store; + isSetStore = true; // mark as set + return this; + } + + /** + * Required for Adyen for Platforms integrations if you are a platform model. This is your + * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) + * (on [balance platform](https://docs.adyen.com/platforms)) or the + * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) + * (in the [classic + * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) + * for the ecommerce or point-of-sale store that is processing the payment. + * + * @return store Required for Adyen for Platforms integrations if you are a platform model. This + * is your + * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) + * (on [balance platform](https://docs.adyen.com/platforms)) or the + * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) + * (in the [classic + * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) + * for the ecommerce or point-of-sale store that is processing the payment. + */ + @JsonProperty(JSON_PROPERTY_STORE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getStore() { + return store; + } + + /** + * Required for Adyen for Platforms integrations if you are a platform model. This is your + * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) + * (on [balance platform](https://docs.adyen.com/platforms)) or the + * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) + * (in the [classic + * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) + * for the ecommerce or point-of-sale store that is processing the payment. + * + * @param store Required for Adyen for Platforms integrations if you are a platform model. This is + * your + * [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) + * (on [balance platform](https://docs.adyen.com/platforms)) or the + * [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) + * (in the [classic + * integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) + * for the ecommerce or point-of-sale store that is processing the payment. + */ + @JsonProperty(JSON_PROPERTY_STORE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setStore(String store) { + this.store = store; + isSetStore = true; // mark as set + } + /** * The shopper's telephone number. The phone number must include a plus sign (+) and a country * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not @@ -2428,11 +2526,9 @@ public void setThreeDS2RequestData(ThreeDS2RequestFields threeDS2RequestData) { * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the * payment authorization.Default: **false**. * @return the current {@code DonationPaymentRequest} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v69 Use `authenticationData.authenticationOnly` - * instead. + * @deprecated since Adyen Checkout API v69 Use `authenticationData.authenticationOnly` instead. */ - @Deprecated // deprecated since Adyen Checkout API v69: Use - // `authenticationData.authenticationOnly` instead. + @Deprecated public DonationPaymentRequest threeDSAuthenticationOnly(Boolean threeDSAuthenticationOnly) { this.threeDSAuthenticationOnly = threeDSAuthenticationOnly; isSetThreeDSAuthenticationOnly = true; // mark as set @@ -2449,11 +2545,9 @@ public DonationPaymentRequest threeDSAuthenticationOnly(Boolean threeDSAuthentic * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the * payment authorization.Default: **false**. - * @deprecated // deprecated since Adyen Checkout API v69: Use - * `authenticationData.authenticationOnly` instead. + * @deprecated since Adyen Checkout API v69 Use `authenticationData.authenticationOnly` instead. */ - @Deprecated // deprecated since Adyen Checkout API v69: Use - // `authenticationData.authenticationOnly` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getThreeDSAuthenticationOnly() { @@ -2470,11 +2564,9 @@ public Boolean getThreeDSAuthenticationOnly() { * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the * payment authorization.Default: **false**. - * @deprecated since Adyen Checkout API v69 Use `authenticationData.authenticationOnly` - * instead. + * @deprecated since Adyen Checkout API v69 Use `authenticationData.authenticationOnly` instead. */ - @Deprecated // deprecated since Adyen Checkout API v69: Use - // `authenticationData.authenticationOnly` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setThreeDSAuthenticationOnly(Boolean threeDSAuthenticationOnly) { @@ -2608,6 +2700,8 @@ public boolean equals(Object o) { && Objects.equals(this.socialSecurityNumber, donationPaymentRequest.socialSecurityNumber) && Objects.equals( this.isSetSocialSecurityNumber, donationPaymentRequest.isSetSocialSecurityNumber) + && Objects.equals(this.store, donationPaymentRequest.store) + && Objects.equals(this.isSetStore, donationPaymentRequest.isSetStore) && Objects.equals(this.telephoneNumber, donationPaymentRequest.telephoneNumber) && Objects.equals(this.isSetTelephoneNumber, donationPaymentRequest.isSetTelephoneNumber) && Objects.equals(this.threeDS2RequestData, donationPaymentRequest.threeDS2RequestData) @@ -2701,6 +2795,8 @@ public int hashCode() { isSetShopperReference, socialSecurityNumber, isSetSocialSecurityNumber, + store, + isSetStore, telephoneNumber, isSetTelephoneNumber, threeDS2RequestData, @@ -2764,6 +2860,7 @@ public String toString() { sb.append(" socialSecurityNumber: ") .append(toIndentedString(socialSecurityNumber)) .append("\n"); + sb.append(" store: ").append(toIndentedString(store)).append("\n"); sb.append(" telephoneNumber: ").append(toIndentedString(telephoneNumber)).append("\n"); sb.append(" threeDS2RequestData: ") .append(toIndentedString(threeDS2RequestData)) @@ -2913,6 +3010,9 @@ public Map getExplicitNulls() { if (isSetSocialSecurityNumber) { addIfNull(nulls, JSON_PROPERTY_SOCIAL_SECURITY_NUMBER, this.socialSecurityNumber); } + if (isSetStore) { + addIfNull(nulls, JSON_PROPERTY_STORE, this.store); + } if (isSetTelephoneNumber) { addIfNull(nulls, JSON_PROPERTY_TELEPHONE_NUMBER, this.telephoneNumber); } diff --git a/src/main/java/com/adyen/model/checkout/EftDetails.java b/src/main/java/com/adyen/model/checkout/EftDetails.java index 531accb23..7c154dbcc 100644 --- a/src/main/java/com/adyen/model/checkout/EftDetails.java +++ b/src/main/java/com/adyen/model/checkout/EftDetails.java @@ -67,8 +67,8 @@ public class EftDetails { private boolean isSetOwnerName = false; public static final String JSON_PROPERTY_RECURRING_DETAIL_REFERENCE = "recurringDetailReference"; - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. - private String recurringDetailReference; + /* deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ + @Deprecated private String recurringDetailReference; /** Mark when the attribute has been explicitly set. */ private boolean isSetRecurringDetailReference = false; @@ -368,9 +368,9 @@ public void setOwnerName(String ownerName) { * @param recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. * @return the current {@code EftDetails} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated public EftDetails recurringDetailReference(String recurringDetailReference) { this.recurringDetailReference = recurringDetailReference; isSetRecurringDetailReference = true; // mark as set @@ -383,9 +383,9 @@ public EftDetails recurringDetailReference(String recurringDetailReference) { * * @return recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. - * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getRecurringDetailReference() { @@ -398,9 +398,9 @@ public String getRecurringDetailReference() { * * @param recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRecurringDetailReference(String recurringDetailReference) { diff --git a/src/main/java/com/adyen/model/checkout/FastlaneDetails.java b/src/main/java/com/adyen/model/checkout/FastlaneDetails.java index c922f4d19..d3509c4e7 100644 --- a/src/main/java/com/adyen/model/checkout/FastlaneDetails.java +++ b/src/main/java/com/adyen/model/checkout/FastlaneDetails.java @@ -46,8 +46,8 @@ public class FastlaneDetails { private boolean isSetFastlaneData = false; public static final String JSON_PROPERTY_RECURRING_DETAIL_REFERENCE = "recurringDetailReference"; - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. - private String recurringDetailReference; + /* deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ + @Deprecated private String recurringDetailReference; /** Mark when the attribute has been explicitly set. */ private boolean isSetRecurringDetailReference = false; @@ -194,9 +194,9 @@ public void setFastlaneData(String fastlaneData) { * @param recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. * @return the current {@code FastlaneDetails} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated public FastlaneDetails recurringDetailReference(String recurringDetailReference) { this.recurringDetailReference = recurringDetailReference; isSetRecurringDetailReference = true; // mark as set @@ -209,9 +209,9 @@ public FastlaneDetails recurringDetailReference(String recurringDetailReference) * * @return recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. - * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getRecurringDetailReference() { @@ -224,9 +224,9 @@ public String getRecurringDetailReference() { * * @param recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRecurringDetailReference(String recurringDetailReference) { diff --git a/src/main/java/com/adyen/model/checkout/GenericIssuerPaymentMethodDetails.java b/src/main/java/com/adyen/model/checkout/GenericIssuerPaymentMethodDetails.java index 65cb63248..292fd8415 100644 --- a/src/main/java/com/adyen/model/checkout/GenericIssuerPaymentMethodDetails.java +++ b/src/main/java/com/adyen/model/checkout/GenericIssuerPaymentMethodDetails.java @@ -46,8 +46,8 @@ public class GenericIssuerPaymentMethodDetails { private boolean isSetIssuer = false; public static final String JSON_PROPERTY_RECURRING_DETAIL_REFERENCE = "recurringDetailReference"; - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. - private String recurringDetailReference; + /* deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ + @Deprecated private String recurringDetailReference; /** Mark when the attribute has been explicitly set. */ private boolean isSetRecurringDetailReference = false; @@ -205,9 +205,9 @@ public void setIssuer(String issuer) { * the response when you created the token. * @return the current {@code GenericIssuerPaymentMethodDetails} instance, allowing for method * chaining - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated public GenericIssuerPaymentMethodDetails recurringDetailReference( String recurringDetailReference) { this.recurringDetailReference = recurringDetailReference; @@ -221,9 +221,9 @@ public GenericIssuerPaymentMethodDetails recurringDetailReference( * * @return recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. - * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getRecurringDetailReference() { @@ -236,9 +236,9 @@ public String getRecurringDetailReference() { * * @param recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRecurringDetailReference(String recurringDetailReference) { diff --git a/src/main/java/com/adyen/model/checkout/GooglePayDetails.java b/src/main/java/com/adyen/model/checkout/GooglePayDetails.java index 777ea33c4..3d8a46caf 100644 --- a/src/main/java/com/adyen/model/checkout/GooglePayDetails.java +++ b/src/main/java/com/adyen/model/checkout/GooglePayDetails.java @@ -107,8 +107,8 @@ public static FundingSourceEnum fromValue(String value) { private boolean isSetGooglePayToken = false; public static final String JSON_PROPERTY_RECURRING_DETAIL_REFERENCE = "recurringDetailReference"; - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. - private String recurringDetailReference; + /* deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ + @Deprecated private String recurringDetailReference; /** Mark when the attribute has been explicitly set. */ private boolean isSetRecurringDetailReference = false; @@ -352,9 +352,9 @@ public void setGooglePayToken(String googlePayToken) { * @param recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. * @return the current {@code GooglePayDetails} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated public GooglePayDetails recurringDetailReference(String recurringDetailReference) { this.recurringDetailReference = recurringDetailReference; isSetRecurringDetailReference = true; // mark as set @@ -367,9 +367,9 @@ public GooglePayDetails recurringDetailReference(String recurringDetailReference * * @return recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. - * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getRecurringDetailReference() { @@ -382,9 +382,9 @@ public String getRecurringDetailReference() { * * @param recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRecurringDetailReference(String recurringDetailReference) { diff --git a/src/main/java/com/adyen/model/checkout/GooglePayDonations.java b/src/main/java/com/adyen/model/checkout/GooglePayDonations.java index 90892f87a..18534f139 100644 --- a/src/main/java/com/adyen/model/checkout/GooglePayDonations.java +++ b/src/main/java/com/adyen/model/checkout/GooglePayDonations.java @@ -107,8 +107,8 @@ public static FundingSourceEnum fromValue(String value) { private boolean isSetGooglePayToken = false; public static final String JSON_PROPERTY_RECURRING_DETAIL_REFERENCE = "recurringDetailReference"; - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. - private String recurringDetailReference; + /* deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ + @Deprecated private String recurringDetailReference; /** Mark when the attribute has been explicitly set. */ private boolean isSetRecurringDetailReference = false; @@ -352,9 +352,9 @@ public void setGooglePayToken(String googlePayToken) { * @param recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. * @return the current {@code GooglePayDonations} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated public GooglePayDonations recurringDetailReference(String recurringDetailReference) { this.recurringDetailReference = recurringDetailReference; isSetRecurringDetailReference = true; // mark as set @@ -367,9 +367,9 @@ public GooglePayDonations recurringDetailReference(String recurringDetailReferen * * @return recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. - * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getRecurringDetailReference() { @@ -382,9 +382,9 @@ public String getRecurringDetailReference() { * * @param recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRecurringDetailReference(String recurringDetailReference) { diff --git a/src/main/java/com/adyen/model/checkout/IdealDetails.java b/src/main/java/com/adyen/model/checkout/IdealDetails.java index 6c152cc09..1c7642dec 100644 --- a/src/main/java/com/adyen/model/checkout/IdealDetails.java +++ b/src/main/java/com/adyen/model/checkout/IdealDetails.java @@ -46,8 +46,8 @@ public class IdealDetails { private boolean isSetIssuer = false; public static final String JSON_PROPERTY_RECURRING_DETAIL_REFERENCE = "recurringDetailReference"; - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. - private String recurringDetailReference; + /* deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ + @Deprecated private String recurringDetailReference; /** Mark when the attribute has been explicitly set. */ private boolean isSetRecurringDetailReference = false; @@ -200,9 +200,9 @@ public void setIssuer(String issuer) { * @param recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. * @return the current {@code IdealDetails} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated public IdealDetails recurringDetailReference(String recurringDetailReference) { this.recurringDetailReference = recurringDetailReference; isSetRecurringDetailReference = true; // mark as set @@ -215,9 +215,9 @@ public IdealDetails recurringDetailReference(String recurringDetailReference) { * * @return recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. - * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getRecurringDetailReference() { @@ -230,9 +230,9 @@ public String getRecurringDetailReference() { * * @param recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRecurringDetailReference(String recurringDetailReference) { diff --git a/src/main/java/com/adyen/model/checkout/IdealDonations.java b/src/main/java/com/adyen/model/checkout/IdealDonations.java index 4f6e93576..567c5862f 100644 --- a/src/main/java/com/adyen/model/checkout/IdealDonations.java +++ b/src/main/java/com/adyen/model/checkout/IdealDonations.java @@ -46,8 +46,8 @@ public class IdealDonations { private boolean isSetIssuer = false; public static final String JSON_PROPERTY_RECURRING_DETAIL_REFERENCE = "recurringDetailReference"; - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. - private String recurringDetailReference; + /* deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ + @Deprecated private String recurringDetailReference; /** Mark when the attribute has been explicitly set. */ private boolean isSetRecurringDetailReference = false; @@ -200,9 +200,9 @@ public void setIssuer(String issuer) { * @param recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. * @return the current {@code IdealDonations} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated public IdealDonations recurringDetailReference(String recurringDetailReference) { this.recurringDetailReference = recurringDetailReference; isSetRecurringDetailReference = true; // mark as set @@ -215,9 +215,9 @@ public IdealDonations recurringDetailReference(String recurringDetailReference) * * @return recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. - * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getRecurringDetailReference() { @@ -230,9 +230,9 @@ public String getRecurringDetailReference() { * * @param recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRecurringDetailReference(String recurringDetailReference) { diff --git a/src/main/java/com/adyen/model/checkout/InputDetail.java b/src/main/java/com/adyen/model/checkout/InputDetail.java index ec6195fd2..2b2b65475 100644 --- a/src/main/java/com/adyen/model/checkout/InputDetail.java +++ b/src/main/java/com/adyen/model/checkout/InputDetail.java @@ -49,8 +49,8 @@ public class InputDetail { private boolean isSetDetails = false; public static final String JSON_PROPERTY_INPUT_DETAILS = "inputDetails"; - @Deprecated // deprecated - private List inputDetails; + /* deprecated */ + @Deprecated private List inputDetails; /** Mark when the attribute has been explicitly set. */ private boolean isSetInputDetails = false; @@ -192,7 +192,7 @@ public void setDetails(List details) { * @return the current {@code InputDetail} instance, allowing for method chaining * @deprecated */ - @Deprecated // deprecated + @Deprecated public InputDetail inputDetails(List inputDetails) { this.inputDetails = inputDetails; isSetInputDetails = true; // mark as set @@ -211,9 +211,9 @@ public InputDetail addInputDetailsItem(SubInputDetail inputDetailsItem) { * Input details can also be provided recursively (deprecated). * * @return inputDetails Input details can also be provided recursively (deprecated). - * @deprecated // deprecated + * @deprecated */ - @Deprecated // deprecated + @Deprecated @JsonProperty(JSON_PROPERTY_INPUT_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getInputDetails() { @@ -226,7 +226,7 @@ public List getInputDetails() { * @param inputDetails Input details can also be provided recursively (deprecated). * @deprecated */ - @Deprecated // deprecated + @Deprecated @JsonProperty(JSON_PROPERTY_INPUT_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInputDetails(List inputDetails) { diff --git a/src/main/java/com/adyen/model/checkout/InvalidField.java b/src/main/java/com/adyen/model/checkout/InvalidField.java index 799f9f6b3..5ee095e4c 100644 --- a/src/main/java/com/adyen/model/checkout/InvalidField.java +++ b/src/main/java/com/adyen/model/checkout/InvalidField.java @@ -21,11 +21,17 @@ /** InvalidField */ @JsonPropertyOrder({ + InvalidField.JSON_PROPERTY_MESSAGE, InvalidField.JSON_PROPERTY_NAME, - InvalidField.JSON_PROPERTY_VALUE, - InvalidField.JSON_PROPERTY_MESSAGE + InvalidField.JSON_PROPERTY_VALUE }) public class InvalidField { + public static final String JSON_PROPERTY_MESSAGE = "message"; + private String message; + + /** Mark when the attribute has been explicitly set. */ + private boolean isSetMessage = false; + public static final String JSON_PROPERTY_NAME = "name"; private String name; @@ -38,12 +44,6 @@ public class InvalidField { /** Mark when the attribute has been explicitly set. */ private boolean isSetValue = false; - public static final String JSON_PROPERTY_MESSAGE = "message"; - private String message; - - /** Mark when the attribute has been explicitly set. */ - private boolean isSetMessage = false; - /** * Sets whether attributes with null values should be explicitly included in the JSON payload. * Default is false. @@ -52,6 +52,41 @@ public class InvalidField { public InvalidField() {} + /** + * Description of the validation error. + * + * @param message Description of the validation error. + * @return the current {@code InvalidField} instance, allowing for method chaining + */ + public InvalidField message(String message) { + this.message = message; + isSetMessage = true; // mark as set + return this; + } + + /** + * Description of the validation error. + * + * @return message Description of the validation error. + */ + @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getMessage() { + return message; + } + + /** + * Description of the validation error. + * + * @param message Description of the validation error. + */ + @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMessage(String message) { + this.message = message; + isSetMessage = true; // mark as set + } + /** * The field that has an invalid value. * @@ -122,41 +157,6 @@ public void setValue(String value) { isSetValue = true; // mark as set } - /** - * Description of the validation error. - * - * @param message Description of the validation error. - * @return the current {@code InvalidField} instance, allowing for method chaining - */ - public InvalidField message(String message) { - this.message = message; - isSetMessage = true; // mark as set - return this; - } - - /** - * Description of the validation error. - * - * @return message Description of the validation error. - */ - @JsonProperty(JSON_PROPERTY_MESSAGE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getMessage() { - return message; - } - - /** - * Description of the validation error. - * - * @param message Description of the validation error. - */ - @JsonProperty(JSON_PROPERTY_MESSAGE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMessage(String message) { - this.message = message; - isSetMessage = true; // mark as set - } - /** * Configures whether null values are explicitly serialized in the JSON payload. Default is false. */ @@ -187,26 +187,26 @@ public boolean equals(Object o) { return false; } InvalidField invalidField = (InvalidField) o; - return Objects.equals(this.name, invalidField.name) + return Objects.equals(this.message, invalidField.message) + && Objects.equals(this.isSetMessage, invalidField.isSetMessage) + && Objects.equals(this.name, invalidField.name) && Objects.equals(this.isSetName, invalidField.isSetName) && Objects.equals(this.value, invalidField.value) - && Objects.equals(this.isSetValue, invalidField.isSetValue) - && Objects.equals(this.message, invalidField.message) - && Objects.equals(this.isSetMessage, invalidField.isSetMessage); + && Objects.equals(this.isSetValue, invalidField.isSetValue); } @Override public int hashCode() { - return Objects.hash(name, isSetName, value, isSetValue, message, isSetMessage); + return Objects.hash(message, isSetMessage, name, isSetName, value, isSetValue); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class InvalidField {\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" value: ").append(toIndentedString(value)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append("}"); return sb.toString(); } @@ -231,15 +231,15 @@ public Map getExplicitNulls() { Map nulls = new HashMap<>(); + if (isSetMessage) { + addIfNull(nulls, JSON_PROPERTY_MESSAGE, this.message); + } if (isSetName) { addIfNull(nulls, JSON_PROPERTY_NAME, this.name); } if (isSetValue) { addIfNull(nulls, JSON_PROPERTY_VALUE, this.value); } - if (isSetMessage) { - addIfNull(nulls, JSON_PROPERTY_MESSAGE, this.message); - } return nulls; } diff --git a/src/main/java/com/adyen/model/checkout/KlarnaDetails.java b/src/main/java/com/adyen/model/checkout/KlarnaDetails.java index 743e29ae4..860317d73 100644 --- a/src/main/java/com/adyen/model/checkout/KlarnaDetails.java +++ b/src/main/java/com/adyen/model/checkout/KlarnaDetails.java @@ -61,8 +61,8 @@ public class KlarnaDetails { private boolean isSetPersonalDetails = false; public static final String JSON_PROPERTY_RECURRING_DETAIL_REFERENCE = "recurringDetailReference"; - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. - private String recurringDetailReference; + /* deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ + @Deprecated private String recurringDetailReference; /** Mark when the attribute has been explicitly set. */ private boolean isSetRecurringDetailReference = false; @@ -297,9 +297,9 @@ public void setPersonalDetails(String personalDetails) { * @param recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. * @return the current {@code KlarnaDetails} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated public KlarnaDetails recurringDetailReference(String recurringDetailReference) { this.recurringDetailReference = recurringDetailReference; isSetRecurringDetailReference = true; // mark as set @@ -312,9 +312,9 @@ public KlarnaDetails recurringDetailReference(String recurringDetailReference) { * * @return recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. - * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getRecurringDetailReference() { @@ -327,9 +327,9 @@ public String getRecurringDetailReference() { * * @param recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRecurringDetailReference(String recurringDetailReference) { diff --git a/src/main/java/com/adyen/model/checkout/KlarnaNetworkDetails.java b/src/main/java/com/adyen/model/checkout/KlarnaNetworkDetails.java new file mode 100644 index 000000000..10469f9ed --- /dev/null +++ b/src/main/java/com/adyen/model/checkout/KlarnaNetworkDetails.java @@ -0,0 +1,565 @@ +/* + * Adyen Checkout API + * + * The version of the OpenAPI document: 71 + * + * + * 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.checkout; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +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; + +/** KlarnaNetworkDetails */ +@JsonPropertyOrder({ + KlarnaNetworkDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, + KlarnaNetworkDetails.JSON_PROPERTY_KLARNA_NETWORK_DATA, + KlarnaNetworkDetails.JSON_PROPERTY_KLARNA_NETWORK_SESSION_TOKEN, + KlarnaNetworkDetails.JSON_PROPERTY_RECURRING_DETAIL_REFERENCE, + KlarnaNetworkDetails.JSON_PROPERTY_SDK_DATA, + KlarnaNetworkDetails.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID, + KlarnaNetworkDetails.JSON_PROPERTY_TYPE +}) +public class KlarnaNetworkDetails { + public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId"; + private String checkoutAttemptId; + + /** Mark when the attribute has been explicitly set. */ + private boolean isSetCheckoutAttemptId = false; + + public static final String JSON_PROPERTY_KLARNA_NETWORK_DATA = "klarnaNetworkData"; + private String klarnaNetworkData; + + /** Mark when the attribute has been explicitly set. */ + private boolean isSetKlarnaNetworkData = false; + + public static final String JSON_PROPERTY_KLARNA_NETWORK_SESSION_TOKEN = + "klarnaNetworkSessionToken"; + private String klarnaNetworkSessionToken; + + /** Mark when the attribute has been explicitly set. */ + private boolean isSetKlarnaNetworkSessionToken = false; + + public static final String JSON_PROPERTY_RECURRING_DETAIL_REFERENCE = "recurringDetailReference"; + /* deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ + @Deprecated private String recurringDetailReference; + + /** Mark when the attribute has been explicitly set. */ + private boolean isSetRecurringDetailReference = false; + + public static final String JSON_PROPERTY_SDK_DATA = "sdkData"; + private String sdkData; + + /** Mark when the attribute has been explicitly set. */ + private boolean isSetSdkData = false; + + public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId"; + private String storedPaymentMethodId; + + /** Mark when the attribute has been explicitly set. */ + private boolean isSetStoredPaymentMethodId = false; + + /** **klarna_network** */ + public enum TypeEnum { + KLARNA_NETWORK(String.valueOf("klarna_network")); + + 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; + + /** Mark when the attribute has been explicitly set. */ + private boolean isSetType = false; + + /** + * Sets whether attributes with null values should be explicitly included in the JSON payload. + * Default is false. + */ + @JsonIgnore private boolean includeNullValues = false; + + public KlarnaNetworkDetails() {} + + /** + * The checkout attempt identifier. + * + * @param checkoutAttemptId The checkout attempt identifier. + * @return the current {@code KlarnaNetworkDetails} instance, allowing for method chaining + */ + public KlarnaNetworkDetails checkoutAttemptId(String checkoutAttemptId) { + this.checkoutAttemptId = checkoutAttemptId; + isSetCheckoutAttemptId = true; // mark as set + return this; + } + + /** + * The checkout attempt identifier. + * + * @return checkoutAttemptId The checkout attempt identifier. + */ + @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getCheckoutAttemptId() { + return checkoutAttemptId; + } + + /** + * The checkout attempt identifier. + * + * @param checkoutAttemptId The checkout attempt identifier. + */ + @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setCheckoutAttemptId(String checkoutAttemptId) { + this.checkoutAttemptId = checkoutAttemptId; + isSetCheckoutAttemptId = true; // mark as set + } + + /** + * A string containing a structured JSON object. This is a passthrough field used to enable custom + * features or data exchange with Klarna. + * + * @param klarnaNetworkData A string containing a structured JSON object. This is a passthrough + * field used to enable custom features or data exchange with Klarna. + * @return the current {@code KlarnaNetworkDetails} instance, allowing for method chaining + */ + public KlarnaNetworkDetails klarnaNetworkData(String klarnaNetworkData) { + this.klarnaNetworkData = klarnaNetworkData; + isSetKlarnaNetworkData = true; // mark as set + return this; + } + + /** + * A string containing a structured JSON object. This is a passthrough field used to enable custom + * features or data exchange with Klarna. + * + * @return klarnaNetworkData A string containing a structured JSON object. This is a passthrough + * field used to enable custom features or data exchange with Klarna. + */ + @JsonProperty(JSON_PROPERTY_KLARNA_NETWORK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getKlarnaNetworkData() { + return klarnaNetworkData; + } + + /** + * A string containing a structured JSON object. This is a passthrough field used to enable custom + * features or data exchange with Klarna. + * + * @param klarnaNetworkData A string containing a structured JSON object. This is a passthrough + * field used to enable custom features or data exchange with Klarna. + */ + @JsonProperty(JSON_PROPERTY_KLARNA_NETWORK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setKlarnaNetworkData(String klarnaNetworkData) { + this.klarnaNetworkData = klarnaNetworkData; + isSetKlarnaNetworkData = true; // mark as set + } + + /** + * The token obtained from the Klarna SDK during an Express Checkout flow. + * + * @param klarnaNetworkSessionToken The token obtained from the Klarna SDK during an Express + * Checkout flow. + * @return the current {@code KlarnaNetworkDetails} instance, allowing for method chaining + */ + public KlarnaNetworkDetails klarnaNetworkSessionToken(String klarnaNetworkSessionToken) { + this.klarnaNetworkSessionToken = klarnaNetworkSessionToken; + isSetKlarnaNetworkSessionToken = true; // mark as set + return this; + } + + /** + * The token obtained from the Klarna SDK during an Express Checkout flow. + * + * @return klarnaNetworkSessionToken The token obtained from the Klarna SDK during an Express + * Checkout flow. + */ + @JsonProperty(JSON_PROPERTY_KLARNA_NETWORK_SESSION_TOKEN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getKlarnaNetworkSessionToken() { + return klarnaNetworkSessionToken; + } + + /** + * The token obtained from the Klarna SDK during an Express Checkout flow. + * + * @param klarnaNetworkSessionToken The token obtained from the Klarna SDK during an Express + * Checkout flow. + */ + @JsonProperty(JSON_PROPERTY_KLARNA_NETWORK_SESSION_TOKEN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setKlarnaNetworkSessionToken(String klarnaNetworkSessionToken) { + this.klarnaNetworkSessionToken = klarnaNetworkSessionToken; + isSetKlarnaNetworkSessionToken = true; // mark as set + } + + /** + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @param recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. + * @return the current {@code KlarnaNetworkDetails} instance, allowing for method chaining + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + */ + @Deprecated + public KlarnaNetworkDetails recurringDetailReference(String recurringDetailReference) { + this.recurringDetailReference = recurringDetailReference; + isSetRecurringDetailReference = true; // mark as set + return this; + } + + /** + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @return recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + */ + @Deprecated + @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getRecurringDetailReference() { + return recurringDetailReference; + } + + /** + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @param recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + */ + @Deprecated + @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setRecurringDetailReference(String recurringDetailReference) { + this.recurringDetailReference = recurringDetailReference; + isSetRecurringDetailReference = true; // mark as set + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * @return the current {@code KlarnaNetworkDetails} instance, allowing for method chaining + */ + public KlarnaNetworkDetails sdkData(String sdkData) { + this.sdkData = sdkData; + isSetSdkData = true; // mark as set + return this; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return sdkData Base64-encoded JSON object containing SDK related parameters required by the + * SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSdkData() { + return sdkData; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSdkData(String sdkData) { + this.sdkData = sdkData; + isSetSdkData = true; // mark as set + } + + /** + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. + * @return the current {@code KlarnaNetworkDetails} instance, allowing for method chaining + */ + public KlarnaNetworkDetails storedPaymentMethodId(String storedPaymentMethodId) { + this.storedPaymentMethodId = storedPaymentMethodId; + isSetStoredPaymentMethodId = true; // mark as set + return this; + } + + /** + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. + */ + @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getStoredPaymentMethodId() { + return storedPaymentMethodId; + } + + /** + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. + */ + @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setStoredPaymentMethodId(String storedPaymentMethodId) { + this.storedPaymentMethodId = storedPaymentMethodId; + isSetStoredPaymentMethodId = true; // mark as set + } + + /** + * **klarna_network** + * + * @param type **klarna_network** + * @return the current {@code KlarnaNetworkDetails} instance, allowing for method chaining + */ + public KlarnaNetworkDetails type(TypeEnum type) { + this.type = type; + isSetType = true; // mark as set + return this; + } + + /** + * **klarna_network** + * + * @return type **klarna_network** + */ + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public TypeEnum getType() { + return type; + } + + /** + * **klarna_network** + * + * @param type **klarna_network** + */ + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setType(TypeEnum type) { + this.type = type; + isSetType = true; // mark as set + } + + /** + * Configures whether null values are explicitly serialized in the JSON payload. Default is false. + */ + public KlarnaNetworkDetails includeNullValues(boolean includeNullValues) { + this.includeNullValues = includeNullValues; + return this; + } + + /** Returns whether null values are explicitly serialized in the JSON payload. */ + public boolean isIncludeNullValues() { + return includeNullValues; + } + + /** + * Sets whether null values should be explicitly serialized in the JSON payload. Default is false. + */ + public void setIncludeNullValues(boolean includeNullValues) { + this.includeNullValues = includeNullValues; + } + + /** Return true if this KlarnaNetworkDetails object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + KlarnaNetworkDetails klarnaNetworkDetails = (KlarnaNetworkDetails) o; + return Objects.equals(this.checkoutAttemptId, klarnaNetworkDetails.checkoutAttemptId) + && Objects.equals(this.isSetCheckoutAttemptId, klarnaNetworkDetails.isSetCheckoutAttemptId) + && Objects.equals(this.klarnaNetworkData, klarnaNetworkDetails.klarnaNetworkData) + && Objects.equals(this.isSetKlarnaNetworkData, klarnaNetworkDetails.isSetKlarnaNetworkData) + && Objects.equals( + this.klarnaNetworkSessionToken, klarnaNetworkDetails.klarnaNetworkSessionToken) + && Objects.equals( + this.isSetKlarnaNetworkSessionToken, + klarnaNetworkDetails.isSetKlarnaNetworkSessionToken) + && Objects.equals( + this.recurringDetailReference, klarnaNetworkDetails.recurringDetailReference) + && Objects.equals( + this.isSetRecurringDetailReference, klarnaNetworkDetails.isSetRecurringDetailReference) + && Objects.equals(this.sdkData, klarnaNetworkDetails.sdkData) + && Objects.equals(this.isSetSdkData, klarnaNetworkDetails.isSetSdkData) + && Objects.equals(this.storedPaymentMethodId, klarnaNetworkDetails.storedPaymentMethodId) + && Objects.equals( + this.isSetStoredPaymentMethodId, klarnaNetworkDetails.isSetStoredPaymentMethodId) + && Objects.equals(this.type, klarnaNetworkDetails.type) + && Objects.equals(this.isSetType, klarnaNetworkDetails.isSetType); + } + + @Override + public int hashCode() { + return Objects.hash( + checkoutAttemptId, + isSetCheckoutAttemptId, + klarnaNetworkData, + isSetKlarnaNetworkData, + klarnaNetworkSessionToken, + isSetKlarnaNetworkSessionToken, + recurringDetailReference, + isSetRecurringDetailReference, + sdkData, + isSetSdkData, + storedPaymentMethodId, + isSetStoredPaymentMethodId, + type, + isSetType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class KlarnaNetworkDetails {\n"); + sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); + sb.append(" klarnaNetworkData: ").append(toIndentedString(klarnaNetworkData)).append("\n"); + sb.append(" klarnaNetworkSessionToken: ") + .append(toIndentedString(klarnaNetworkSessionToken)) + .append("\n"); + sb.append(" recurringDetailReference: ") + .append(toIndentedString(recurringDetailReference)) + .append("\n"); + sb.append(" sdkData: ").append(toIndentedString(sdkData)).append("\n"); + sb.append(" storedPaymentMethodId: ") + .append(toIndentedString(storedPaymentMethodId)) + .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 "); + } + + /** Returns a map of properties to be merged into the JSON payload as explicit null values. */ + @JsonInclude(JsonInclude.Include.ALWAYS) + @JsonAnyGetter + public Map getExplicitNulls() { + if (!this.includeNullValues) { + return Collections.emptyMap(); + } + + Map nulls = new HashMap<>(); + + if (isSetCheckoutAttemptId) { + addIfNull(nulls, JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, this.checkoutAttemptId); + } + if (isSetKlarnaNetworkData) { + addIfNull(nulls, JSON_PROPERTY_KLARNA_NETWORK_DATA, this.klarnaNetworkData); + } + if (isSetKlarnaNetworkSessionToken) { + addIfNull(nulls, JSON_PROPERTY_KLARNA_NETWORK_SESSION_TOKEN, this.klarnaNetworkSessionToken); + } + if (isSetRecurringDetailReference) { + addIfNull(nulls, JSON_PROPERTY_RECURRING_DETAIL_REFERENCE, this.recurringDetailReference); + } + if (isSetSdkData) { + addIfNull(nulls, JSON_PROPERTY_SDK_DATA, this.sdkData); + } + if (isSetStoredPaymentMethodId) { + addIfNull(nulls, JSON_PROPERTY_STORED_PAYMENT_METHOD_ID, this.storedPaymentMethodId); + } + if (isSetType) { + addIfNull(nulls, JSON_PROPERTY_TYPE, this.type); + } + + return nulls; + } + + // add to map when value is null + private void addIfNull(Map map, String key, Object value) { + if (value == null) { + map.put(key, null); + } + } + + /** + * Create an instance of KlarnaNetworkDetails given an JSON string + * + * @param jsonString JSON string + * @return An instance of KlarnaNetworkDetails + * @throws JsonProcessingException if the JSON string is invalid with respect to + * KlarnaNetworkDetails + */ + public static KlarnaNetworkDetails fromJson(String jsonString) throws JsonProcessingException { + return JSON.getMapper().readValue(jsonString, KlarnaNetworkDetails.class); + } + + /** + * Convert an instance of KlarnaNetworkDetails 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/checkout/MerchantRiskIndicator.java b/src/main/java/com/adyen/model/checkout/MerchantRiskIndicator.java index e6cd056e3..a35702b05 100644 --- a/src/main/java/com/adyen/model/checkout/MerchantRiskIndicator.java +++ b/src/main/java/com/adyen/model/checkout/MerchantRiskIndicator.java @@ -111,8 +111,8 @@ public static DeliveryAddressIndicatorEnum fromValue(String value) { private boolean isSetDeliveryAddressIndicator = false; public static final String JSON_PROPERTY_DELIVERY_EMAIL = "deliveryEmail"; - @Deprecated // deprecated since Adyen Checkout API v68: Use `deliveryEmailAddress` instead. - private String deliveryEmail; + /* deprecated since Adyen Checkout API v68: Use `deliveryEmailAddress` instead. */ + @Deprecated private String deliveryEmail; /** Mark when the attribute has been explicitly set. */ private boolean isSetDeliveryEmail = false; @@ -331,9 +331,9 @@ public void setDeliveryAddressIndicator(DeliveryAddressIndicatorEnum deliveryAdd * * @param deliveryEmail The delivery email address (for digital goods). * @return the current {@code MerchantRiskIndicator} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v68 Use `deliveryEmailAddress` instead. + * @deprecated since Adyen Checkout API v68 Use `deliveryEmailAddress` instead. */ - @Deprecated // deprecated since Adyen Checkout API v68: Use `deliveryEmailAddress` instead. + @Deprecated public MerchantRiskIndicator deliveryEmail(String deliveryEmail) { this.deliveryEmail = deliveryEmail; isSetDeliveryEmail = true; // mark as set @@ -344,9 +344,9 @@ public MerchantRiskIndicator deliveryEmail(String deliveryEmail) { * The delivery email address (for digital goods). * * @return deliveryEmail The delivery email address (for digital goods). - * @deprecated // deprecated since Adyen Checkout API v68: Use `deliveryEmailAddress` instead. + * @deprecated since Adyen Checkout API v68 Use `deliveryEmailAddress` instead. */ - @Deprecated // deprecated since Adyen Checkout API v68: Use `deliveryEmailAddress` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_DELIVERY_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getDeliveryEmail() { @@ -357,9 +357,9 @@ public String getDeliveryEmail() { * The delivery email address (for digital goods). * * @param deliveryEmail The delivery email address (for digital goods). - * @deprecated since Adyen Checkout API v68 Use `deliveryEmailAddress` instead. + * @deprecated since Adyen Checkout API v68 Use `deliveryEmailAddress` instead. */ - @Deprecated // deprecated since Adyen Checkout API v68: Use `deliveryEmailAddress` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_DELIVERY_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDeliveryEmail(String deliveryEmail) { diff --git a/src/main/java/com/adyen/model/checkout/OpenInvoiceDetails.java b/src/main/java/com/adyen/model/checkout/OpenInvoiceDetails.java index 6a9718b9c..43aa971dc 100644 --- a/src/main/java/com/adyen/model/checkout/OpenInvoiceDetails.java +++ b/src/main/java/com/adyen/model/checkout/OpenInvoiceDetails.java @@ -60,8 +60,8 @@ public class OpenInvoiceDetails { private boolean isSetPersonalDetails = false; public static final String JSON_PROPERTY_RECURRING_DETAIL_REFERENCE = "recurringDetailReference"; - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. - private String recurringDetailReference; + /* deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ + @Deprecated private String recurringDetailReference; /** Mark when the attribute has been explicitly set. */ private boolean isSetRecurringDetailReference = false; @@ -282,9 +282,9 @@ public void setPersonalDetails(String personalDetails) { * @param recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. * @return the current {@code OpenInvoiceDetails} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated public OpenInvoiceDetails recurringDetailReference(String recurringDetailReference) { this.recurringDetailReference = recurringDetailReference; isSetRecurringDetailReference = true; // mark as set @@ -297,9 +297,9 @@ public OpenInvoiceDetails recurringDetailReference(String recurringDetailReferen * * @return recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. - * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getRecurringDetailReference() { @@ -312,9 +312,9 @@ public String getRecurringDetailReference() { * * @param recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRecurringDetailReference(String recurringDetailReference) { diff --git a/src/main/java/com/adyen/model/checkout/PayByBankAISDirectDebitDetails.java b/src/main/java/com/adyen/model/checkout/PayByBankAISDirectDebitDetails.java index acbebda7f..8191acd7c 100644 --- a/src/main/java/com/adyen/model/checkout/PayByBankAISDirectDebitDetails.java +++ b/src/main/java/com/adyen/model/checkout/PayByBankAISDirectDebitDetails.java @@ -39,8 +39,8 @@ public class PayByBankAISDirectDebitDetails { private boolean isSetCheckoutAttemptId = false; public static final String JSON_PROPERTY_RECURRING_DETAIL_REFERENCE = "recurringDetailReference"; - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. - private String recurringDetailReference; + /* deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ + @Deprecated private String recurringDetailReference; /** Mark when the attribute has been explicitly set. */ private boolean isSetRecurringDetailReference = false; @@ -154,9 +154,9 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { * the response when you created the token. * @return the current {@code PayByBankAISDirectDebitDetails} instance, allowing for method * chaining - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated public PayByBankAISDirectDebitDetails recurringDetailReference(String recurringDetailReference) { this.recurringDetailReference = recurringDetailReference; isSetRecurringDetailReference = true; // mark as set @@ -169,9 +169,9 @@ public PayByBankAISDirectDebitDetails recurringDetailReference(String recurringD * * @return recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. - * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getRecurringDetailReference() { @@ -184,9 +184,9 @@ public String getRecurringDetailReference() { * * @param recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRecurringDetailReference(String recurringDetailReference) { diff --git a/src/main/java/com/adyen/model/checkout/PayPalDetails.java b/src/main/java/com/adyen/model/checkout/PayPalDetails.java index af24d0a9c..e43c7f0db 100644 --- a/src/main/java/com/adyen/model/checkout/PayPalDetails.java +++ b/src/main/java/com/adyen/model/checkout/PayPalDetails.java @@ -68,8 +68,8 @@ public class PayPalDetails { private boolean isSetPayerSelected = false; public static final String JSON_PROPERTY_RECURRING_DETAIL_REFERENCE = "recurringDetailReference"; - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. - private String recurringDetailReference; + /* deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ + @Deprecated private String recurringDetailReference; /** Mark when the attribute has been explicitly set. */ private boolean isSetRecurringDetailReference = false; @@ -370,9 +370,9 @@ public void setPayerSelected(String payerSelected) { * @param recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. * @return the current {@code PayPalDetails} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated public PayPalDetails recurringDetailReference(String recurringDetailReference) { this.recurringDetailReference = recurringDetailReference; isSetRecurringDetailReference = true; // mark as set @@ -385,9 +385,9 @@ public PayPalDetails recurringDetailReference(String recurringDetailReference) { * * @return recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. - * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getRecurringDetailReference() { @@ -400,9 +400,9 @@ public String getRecurringDetailReference() { * * @param recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRecurringDetailReference(String recurringDetailReference) { diff --git a/src/main/java/com/adyen/model/checkout/PayPayDetails.java b/src/main/java/com/adyen/model/checkout/PayPayDetails.java index d020346fa..19299a292 100644 --- a/src/main/java/com/adyen/model/checkout/PayPayDetails.java +++ b/src/main/java/com/adyen/model/checkout/PayPayDetails.java @@ -39,8 +39,8 @@ public class PayPayDetails { private boolean isSetCheckoutAttemptId = false; public static final String JSON_PROPERTY_RECURRING_DETAIL_REFERENCE = "recurringDetailReference"; - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. - private String recurringDetailReference; + /* deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ + @Deprecated private String recurringDetailReference; /** Mark when the attribute has been explicitly set. */ private boolean isSetRecurringDetailReference = false; @@ -152,9 +152,9 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { * @param recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. * @return the current {@code PayPayDetails} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated public PayPayDetails recurringDetailReference(String recurringDetailReference) { this.recurringDetailReference = recurringDetailReference; isSetRecurringDetailReference = true; // mark as set @@ -167,9 +167,9 @@ public PayPayDetails recurringDetailReference(String recurringDetailReference) { * * @return recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. - * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getRecurringDetailReference() { @@ -182,9 +182,9 @@ public String getRecurringDetailReference() { * * @param recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRecurringDetailReference(String recurringDetailReference) { diff --git a/src/main/java/com/adyen/model/checkout/PayToDetails.java b/src/main/java/com/adyen/model/checkout/PayToDetails.java index 04adb6117..b7d126558 100644 --- a/src/main/java/com/adyen/model/checkout/PayToDetails.java +++ b/src/main/java/com/adyen/model/checkout/PayToDetails.java @@ -40,8 +40,8 @@ public class PayToDetails { private boolean isSetCheckoutAttemptId = false; public static final String JSON_PROPERTY_RECURRING_DETAIL_REFERENCE = "recurringDetailReference"; - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. - private String recurringDetailReference; + /* deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ + @Deprecated private String recurringDetailReference; /** Mark when the attribute has been explicitly set. */ private boolean isSetRecurringDetailReference = false; @@ -159,9 +159,9 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { * @param recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. * @return the current {@code PayToDetails} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated public PayToDetails recurringDetailReference(String recurringDetailReference) { this.recurringDetailReference = recurringDetailReference; isSetRecurringDetailReference = true; // mark as set @@ -174,9 +174,9 @@ public PayToDetails recurringDetailReference(String recurringDetailReference) { * * @return recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. - * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getRecurringDetailReference() { @@ -189,9 +189,9 @@ public String getRecurringDetailReference() { * * @param recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRecurringDetailReference(String recurringDetailReference) { diff --git a/src/main/java/com/adyen/model/checkout/PayUUpiDetails.java b/src/main/java/com/adyen/model/checkout/PayUUpiDetails.java index 6217c5623..fa894a22e 100644 --- a/src/main/java/com/adyen/model/checkout/PayUUpiDetails.java +++ b/src/main/java/com/adyen/model/checkout/PayUUpiDetails.java @@ -41,8 +41,8 @@ public class PayUUpiDetails { private boolean isSetCheckoutAttemptId = false; public static final String JSON_PROPERTY_RECURRING_DETAIL_REFERENCE = "recurringDetailReference"; - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. - private String recurringDetailReference; + /* deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ + @Deprecated private String recurringDetailReference; /** Mark when the attribute has been explicitly set. */ private boolean isSetRecurringDetailReference = false; @@ -167,9 +167,9 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { * @param recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. * @return the current {@code PayUUpiDetails} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated public PayUUpiDetails recurringDetailReference(String recurringDetailReference) { this.recurringDetailReference = recurringDetailReference; isSetRecurringDetailReference = true; // mark as set @@ -182,9 +182,9 @@ public PayUUpiDetails recurringDetailReference(String recurringDetailReference) * * @return recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. - * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getRecurringDetailReference() { @@ -197,9 +197,9 @@ public String getRecurringDetailReference() { * * @param recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRecurringDetailReference(String recurringDetailReference) { diff --git a/src/main/java/com/adyen/model/checkout/PayWithGoogleDetails.java b/src/main/java/com/adyen/model/checkout/PayWithGoogleDetails.java index 5f1306244..35e7c2902 100644 --- a/src/main/java/com/adyen/model/checkout/PayWithGoogleDetails.java +++ b/src/main/java/com/adyen/model/checkout/PayWithGoogleDetails.java @@ -100,8 +100,8 @@ public static FundingSourceEnum fromValue(String value) { private boolean isSetGooglePayToken = false; public static final String JSON_PROPERTY_RECURRING_DETAIL_REFERENCE = "recurringDetailReference"; - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. - private String recurringDetailReference; + /* deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ + @Deprecated private String recurringDetailReference; /** Mark when the attribute has been explicitly set. */ private boolean isSetRecurringDetailReference = false; @@ -310,9 +310,9 @@ public void setGooglePayToken(String googlePayToken) { * @param recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. * @return the current {@code PayWithGoogleDetails} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated public PayWithGoogleDetails recurringDetailReference(String recurringDetailReference) { this.recurringDetailReference = recurringDetailReference; isSetRecurringDetailReference = true; // mark as set @@ -325,9 +325,9 @@ public PayWithGoogleDetails recurringDetailReference(String recurringDetailRefer * * @return recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. - * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getRecurringDetailReference() { @@ -340,9 +340,9 @@ public String getRecurringDetailReference() { * * @param recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRecurringDetailReference(String recurringDetailReference) { diff --git a/src/main/java/com/adyen/model/checkout/PayWithGoogleDonations.java b/src/main/java/com/adyen/model/checkout/PayWithGoogleDonations.java index 367e90426..2365a2fbb 100644 --- a/src/main/java/com/adyen/model/checkout/PayWithGoogleDonations.java +++ b/src/main/java/com/adyen/model/checkout/PayWithGoogleDonations.java @@ -100,8 +100,8 @@ public static FundingSourceEnum fromValue(String value) { private boolean isSetGooglePayToken = false; public static final String JSON_PROPERTY_RECURRING_DETAIL_REFERENCE = "recurringDetailReference"; - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. - private String recurringDetailReference; + /* deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ + @Deprecated private String recurringDetailReference; /** Mark when the attribute has been explicitly set. */ private boolean isSetRecurringDetailReference = false; @@ -310,9 +310,9 @@ public void setGooglePayToken(String googlePayToken) { * @param recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. * @return the current {@code PayWithGoogleDonations} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated public PayWithGoogleDonations recurringDetailReference(String recurringDetailReference) { this.recurringDetailReference = recurringDetailReference; isSetRecurringDetailReference = true; // mark as set @@ -325,9 +325,9 @@ public PayWithGoogleDonations recurringDetailReference(String recurringDetailRef * * @return recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. - * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getRecurringDetailReference() { @@ -340,9 +340,9 @@ public String getRecurringDetailReference() { * * @param recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRecurringDetailReference(String recurringDetailReference) { diff --git a/src/main/java/com/adyen/model/checkout/PaymentDetails.java b/src/main/java/com/adyen/model/checkout/PaymentDetails.java index 40a962234..70acc4031 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentDetails.java +++ b/src/main/java/com/adyen/model/checkout/PaymentDetails.java @@ -60,6 +60,8 @@ public enum TypeEnum { IRIS(String.valueOf("iris")), + WERO(String.valueOf("wero")), + TRUSTLY(String.valueOf("trustly")), TRUSTLYVECTOR(String.valueOf("trustlyvector")), @@ -116,8 +118,6 @@ public enum TypeEnum { WALLEY_B2B(String.valueOf("walley_b2b")), - ALMA(String.valueOf("alma")), - PAYPO(String.valueOf("paypo")), SCALAPAY(String.valueOf("scalapay")), diff --git a/src/main/java/com/adyen/model/checkout/PaymentDetailsRequest.java b/src/main/java/com/adyen/model/checkout/PaymentDetailsRequest.java index 157cf0ac9..5fce56f5e 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentDetailsRequest.java +++ b/src/main/java/com/adyen/model/checkout/PaymentDetailsRequest.java @@ -47,9 +47,8 @@ public class PaymentDetailsRequest { public static final String JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY = "threeDSAuthenticationOnly"; - @Deprecated // deprecated since Adyen Checkout API v69: Use - // `authenticationData.authenticationOnly` instead. - private Boolean threeDSAuthenticationOnly; + /* deprecated since Adyen Checkout API v69: Use `authenticationData.authenticationOnly` instead. */ + @Deprecated private Boolean threeDSAuthenticationOnly; /** Mark when the attribute has been explicitly set. */ private boolean isSetThreeDSAuthenticationOnly = false; @@ -209,11 +208,9 @@ public void setPaymentData(String paymentData) { * set in the `/payments` request. Only needs to be set if you want to modify the * value set previously. * @return the current {@code PaymentDetailsRequest} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v69 Use `authenticationData.authenticationOnly` - * instead. + * @deprecated since Adyen Checkout API v69 Use `authenticationData.authenticationOnly` instead. */ - @Deprecated // deprecated since Adyen Checkout API v69: Use - // `authenticationData.authenticationOnly` instead. + @Deprecated public PaymentDetailsRequest threeDSAuthenticationOnly(Boolean threeDSAuthenticationOnly) { this.threeDSAuthenticationOnly = threeDSAuthenticationOnly; isSetThreeDSAuthenticationOnly = true; // mark as set @@ -227,11 +224,9 @@ public PaymentDetailsRequest threeDSAuthenticationOnly(Boolean threeDSAuthentica * @return threeDSAuthenticationOnly Change the `authenticationOnly` indicator * originally set in the `/payments` request. Only needs to be set if you want to * modify the value set previously. - * @deprecated // deprecated since Adyen Checkout API v69: Use - * `authenticationData.authenticationOnly` instead. + * @deprecated since Adyen Checkout API v69 Use `authenticationData.authenticationOnly` instead. */ - @Deprecated // deprecated since Adyen Checkout API v69: Use - // `authenticationData.authenticationOnly` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getThreeDSAuthenticationOnly() { @@ -245,11 +240,9 @@ public Boolean getThreeDSAuthenticationOnly() { * @param threeDSAuthenticationOnly Change the `authenticationOnly` indicator originally * set in the `/payments` request. Only needs to be set if you want to modify the * value set previously. - * @deprecated since Adyen Checkout API v69 Use `authenticationData.authenticationOnly` - * instead. + * @deprecated since Adyen Checkout API v69 Use `authenticationData.authenticationOnly` instead. */ - @Deprecated // deprecated since Adyen Checkout API v69: Use - // `authenticationData.authenticationOnly` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setThreeDSAuthenticationOnly(Boolean threeDSAuthenticationOnly) { diff --git a/src/main/java/com/adyen/model/checkout/PaymentMethod.java b/src/main/java/com/adyen/model/checkout/PaymentMethod.java index 0bbc0581d..c282a9e41 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentMethod.java +++ b/src/main/java/com/adyen/model/checkout/PaymentMethod.java @@ -122,8 +122,8 @@ public static FundingSourceEnum fromValue(String value) { private boolean isSetGroup = false; public static final String JSON_PROPERTY_INPUT_DETAILS = "inputDetails"; - @Deprecated // deprecated - private List inputDetails; + /* deprecated */ + @Deprecated private List inputDetails; /** Mark when the attribute has been explicitly set. */ private boolean isSetInputDetails = false; @@ -402,7 +402,7 @@ public void setGroup(PaymentMethodGroup group) { * @return the current {@code PaymentMethod} instance, allowing for method chaining * @deprecated */ - @Deprecated // deprecated + @Deprecated public PaymentMethod inputDetails(List inputDetails) { this.inputDetails = inputDetails; isSetInputDetails = true; // mark as set @@ -422,9 +422,9 @@ public PaymentMethod addInputDetailsItem(InputDetail inputDetailsItem) { * * @return inputDetails All input details to be provided to complete the payment with this payment * method. - * @deprecated // deprecated + * @deprecated */ - @Deprecated // deprecated + @Deprecated @JsonProperty(JSON_PROPERTY_INPUT_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getInputDetails() { @@ -438,7 +438,7 @@ public List getInputDetails() { * method. * @deprecated */ - @Deprecated // deprecated + @Deprecated @JsonProperty(JSON_PROPERTY_INPUT_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInputDetails(List inputDetails) { diff --git a/src/main/java/com/adyen/model/checkout/PaymentMethodUPIApps.java b/src/main/java/com/adyen/model/checkout/PaymentMethodUPIApps.java index 7d2e5ff5e..a87d977a7 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentMethodUPIApps.java +++ b/src/main/java/com/adyen/model/checkout/PaymentMethodUPIApps.java @@ -20,8 +20,18 @@ import java.util.*; /** PaymentMethodUPIApps */ -@JsonPropertyOrder({PaymentMethodUPIApps.JSON_PROPERTY_ID, PaymentMethodUPIApps.JSON_PROPERTY_NAME}) +@JsonPropertyOrder({ + PaymentMethodUPIApps.JSON_PROPERTY_APP_IDENTIFIER_INFO, + PaymentMethodUPIApps.JSON_PROPERTY_ID, + PaymentMethodUPIApps.JSON_PROPERTY_NAME +}) public class PaymentMethodUPIApps { + public static final String JSON_PROPERTY_APP_IDENTIFIER_INFO = "appIdentifierInfo"; + private AppIdentifierInfo appIdentifierInfo; + + /** Mark when the attribute has been explicitly set. */ + private boolean isSetAppIdentifierInfo = false; + public static final String JSON_PROPERTY_ID = "id"; private String id; @@ -42,6 +52,41 @@ public class PaymentMethodUPIApps { public PaymentMethodUPIApps() {} + /** + * appIdentifierInfo + * + * @param appIdentifierInfo + * @return the current {@code PaymentMethodUPIApps} instance, allowing for method chaining + */ + public PaymentMethodUPIApps appIdentifierInfo(AppIdentifierInfo appIdentifierInfo) { + this.appIdentifierInfo = appIdentifierInfo; + isSetAppIdentifierInfo = true; // mark as set + return this; + } + + /** + * Get appIdentifierInfo + * + * @return appIdentifierInfo + */ + @JsonProperty(JSON_PROPERTY_APP_IDENTIFIER_INFO) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public AppIdentifierInfo getAppIdentifierInfo() { + return appIdentifierInfo; + } + + /** + * appIdentifierInfo + * + * @param appIdentifierInfo + */ + @JsonProperty(JSON_PROPERTY_APP_IDENTIFIER_INFO) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setAppIdentifierInfo(AppIdentifierInfo appIdentifierInfo) { + this.appIdentifierInfo = appIdentifierInfo; + isSetAppIdentifierInfo = true; // mark as set + } + /** * The unique identifier of this app, to submit in requests to /payments. * @@ -142,7 +187,9 @@ public boolean equals(Object o) { return false; } PaymentMethodUPIApps paymentMethodUPIApps = (PaymentMethodUPIApps) o; - return Objects.equals(this.id, paymentMethodUPIApps.id) + return Objects.equals(this.appIdentifierInfo, paymentMethodUPIApps.appIdentifierInfo) + && Objects.equals(this.isSetAppIdentifierInfo, paymentMethodUPIApps.isSetAppIdentifierInfo) + && Objects.equals(this.id, paymentMethodUPIApps.id) && Objects.equals(this.isSetId, paymentMethodUPIApps.isSetId) && Objects.equals(this.name, paymentMethodUPIApps.name) && Objects.equals(this.isSetName, paymentMethodUPIApps.isSetName); @@ -150,13 +197,14 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(id, isSetId, name, isSetName); + return Objects.hash(appIdentifierInfo, isSetAppIdentifierInfo, id, isSetId, name, isSetName); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PaymentMethodUPIApps {\n"); + sb.append(" appIdentifierInfo: ").append(toIndentedString(appIdentifierInfo)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append("}"); @@ -183,6 +231,9 @@ public Map getExplicitNulls() { Map nulls = new HashMap<>(); + if (isSetAppIdentifierInfo) { + addIfNull(nulls, JSON_PROPERTY_APP_IDENTIFIER_INFO, this.appIdentifierInfo); + } if (isSetId) { addIfNull(nulls, JSON_PROPERTY_ID, this.id); } diff --git a/src/main/java/com/adyen/model/checkout/PaymentMethodsRequest.java b/src/main/java/com/adyen/model/checkout/PaymentMethodsRequest.java index cd437c8db..8ec2ed831 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentMethodsRequest.java +++ b/src/main/java/com/adyen/model/checkout/PaymentMethodsRequest.java @@ -822,11 +822,17 @@ public void setShopperIP(String shopperIP) { } /** - * The combination of a language code and a country code to specify the language to be used in the - * payment. + * The language for the payment. The value combines the two-letter [ISO + * 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) language code with the + * [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes) country + * code. For example, **nl-NL**. When using Drop-in/Components, the specified language appears if + * your front-end global configuration does not set the `locale`. * - * @param shopperLocale The combination of a language code and a country code to specify the - * language to be used in the payment. + * @param shopperLocale The language for the payment. The value combines the two-letter [ISO + * 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) language code with the + * [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes) country + * code. For example, **nl-NL**. When using Drop-in/Components, the specified language appears + * if your front-end global configuration does not set the `locale`. * @return the current {@code PaymentMethodsRequest} instance, allowing for method chaining */ public PaymentMethodsRequest shopperLocale(String shopperLocale) { @@ -836,11 +842,17 @@ public PaymentMethodsRequest shopperLocale(String shopperLocale) { } /** - * The combination of a language code and a country code to specify the language to be used in the - * payment. + * The language for the payment. The value combines the two-letter [ISO + * 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) language code with the + * [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes) country + * code. For example, **nl-NL**. When using Drop-in/Components, the specified language appears if + * your front-end global configuration does not set the `locale`. * - * @return shopperLocale The combination of a language code and a country code to specify the - * language to be used in the payment. + * @return shopperLocale The language for the payment. The value combines the two-letter [ISO + * 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) language code with the + * [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes) country + * code. For example, **nl-NL**. When using Drop-in/Components, the specified language appears + * if your front-end global configuration does not set the `locale`. */ @JsonProperty(JSON_PROPERTY_SHOPPER_LOCALE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -849,11 +861,17 @@ public String getShopperLocale() { } /** - * The combination of a language code and a country code to specify the language to be used in the - * payment. + * The language for the payment. The value combines the two-letter [ISO + * 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) language code with the + * [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes) country + * code. For example, **nl-NL**. When using Drop-in/Components, the specified language appears if + * your front-end global configuration does not set the `locale`. * - * @param shopperLocale The combination of a language code and a country code to specify the - * language to be used in the payment. + * @param shopperLocale The language for the payment. The value combines the two-letter [ISO + * 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) language code with the + * [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes) country + * code. For example, **nl-NL**. When using Drop-in/Components, the specified language appears + * if your front-end global configuration does not set the `locale`. */ @JsonProperty(JSON_PROPERTY_SHOPPER_LOCALE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/src/main/java/com/adyen/model/checkout/PaymentRequest.java b/src/main/java/com/adyen/model/checkout/PaymentRequest.java index 2436d9d2e..51ff0deca 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentRequest.java +++ b/src/main/java/com/adyen/model/checkout/PaymentRequest.java @@ -233,8 +233,8 @@ public static ChannelEnum fromValue(String value) { private boolean isSetCompany = false; public static final String JSON_PROPERTY_CONVERSION_ID = "conversionId"; - @Deprecated // deprecated since Adyen Checkout API v68: Use `checkoutAttemptId` instead - private String conversionId; + /* deprecated since Adyen Checkout API v68: Use `checkoutAttemptId` instead */ + @Deprecated private String conversionId; /** Mark when the attribute has been explicitly set. */ private boolean isSetConversionId = false; @@ -270,8 +270,8 @@ public static ChannelEnum fromValue(String value) { private boolean isSetDeliveryAddress = false; public static final String JSON_PROPERTY_DELIVERY_DATE = "deliveryDate"; - @Deprecated // deprecated since Adyen Checkout API v70: Use `deliverAt` instead. - private OffsetDateTime deliveryDate; + /* deprecated since Adyen Checkout API v70: Use `deliverAt` instead. */ + @Deprecated private OffsetDateTime deliveryDate; /** Mark when the attribute has been explicitly set. */ private boolean isSetDeliveryDate = false; @@ -789,9 +789,8 @@ public static ShopperInteractionEnum fromValue(String value) { public static final String JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY = "threeDSAuthenticationOnly"; - @Deprecated // deprecated since Adyen Checkout API v69: Use - // `authenticationData.authenticationOnly` instead. - private Boolean threeDSAuthenticationOnly; + /* deprecated since Adyen Checkout API v69: Use `authenticationData.authenticationOnly` instead. */ + @Deprecated private Boolean threeDSAuthenticationOnly; /** Mark when the attribute has been explicitly set. */ private boolean isSetThreeDSAuthenticationOnly = false; @@ -1146,10 +1145,13 @@ public void setBrowserInfo(BrowserInfo browserInfo) { } /** - * The delay between the authorisation and scheduled auto-capture, specified in hours. + * The [delay between the authorization and automatic + * capture](https://docs.adyen.com/online-payments/capture?tab=delayed-individual_2#delayed-automatic-capture) + * of the payment, specified in hours. Maximum value: **672** (28 days). * - * @param captureDelayHours The delay between the authorisation and scheduled auto-capture, - * specified in hours. + * @param captureDelayHours The [delay between the authorization and automatic + * capture](https://docs.adyen.com/online-payments/capture?tab=delayed-individual_2#delayed-automatic-capture) + * of the payment, specified in hours. Maximum value: **672** (28 days). * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest captureDelayHours(Integer captureDelayHours) { @@ -1159,10 +1161,13 @@ public PaymentRequest captureDelayHours(Integer captureDelayHours) { } /** - * The delay between the authorisation and scheduled auto-capture, specified in hours. + * The [delay between the authorization and automatic + * capture](https://docs.adyen.com/online-payments/capture?tab=delayed-individual_2#delayed-automatic-capture) + * of the payment, specified in hours. Maximum value: **672** (28 days). * - * @return captureDelayHours The delay between the authorisation and scheduled auto-capture, - * specified in hours. + * @return captureDelayHours The [delay between the authorization and automatic + * capture](https://docs.adyen.com/online-payments/capture?tab=delayed-individual_2#delayed-automatic-capture) + * of the payment, specified in hours. Maximum value: **672** (28 days). */ @JsonProperty(JSON_PROPERTY_CAPTURE_DELAY_HOURS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1171,10 +1176,13 @@ public Integer getCaptureDelayHours() { } /** - * The delay between the authorisation and scheduled auto-capture, specified in hours. + * The [delay between the authorization and automatic + * capture](https://docs.adyen.com/online-payments/capture?tab=delayed-individual_2#delayed-automatic-capture) + * of the payment, specified in hours. Maximum value: **672** (28 days). * - * @param captureDelayHours The delay between the authorisation and scheduled auto-capture, - * specified in hours. + * @param captureDelayHours The [delay between the authorization and automatic + * capture](https://docs.adyen.com/online-payments/capture?tab=delayed-individual_2#delayed-automatic-capture) + * of the payment, specified in hours. Maximum value: **672** (28 days). */ @JsonProperty(JSON_PROPERTY_CAPTURE_DELAY_HOURS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1319,9 +1327,9 @@ public void setCompany(Company company) { * @param conversionId Conversion ID that corresponds to the Id generated by the client SDK for * tracking user payment journey. * @return the current {@code PaymentRequest} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v68 Use `checkoutAttemptId` instead + * @deprecated since Adyen Checkout API v68 Use `checkoutAttemptId` instead */ - @Deprecated // deprecated since Adyen Checkout API v68: Use `checkoutAttemptId` instead + @Deprecated public PaymentRequest conversionId(String conversionId) { this.conversionId = conversionId; isSetConversionId = true; // mark as set @@ -1334,9 +1342,9 @@ public PaymentRequest conversionId(String conversionId) { * * @return conversionId Conversion ID that corresponds to the Id generated by the client SDK for * tracking user payment journey. - * @deprecated // deprecated since Adyen Checkout API v68: Use `checkoutAttemptId` instead + * @deprecated since Adyen Checkout API v68 Use `checkoutAttemptId` instead */ - @Deprecated // deprecated since Adyen Checkout API v68: Use `checkoutAttemptId` instead + @Deprecated @JsonProperty(JSON_PROPERTY_CONVERSION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getConversionId() { @@ -1349,9 +1357,9 @@ public String getConversionId() { * * @param conversionId Conversion ID that corresponds to the Id generated by the client SDK for * tracking user payment journey. - * @deprecated since Adyen Checkout API v68 Use `checkoutAttemptId` instead + * @deprecated since Adyen Checkout API v68 Use `checkoutAttemptId` instead */ - @Deprecated // deprecated since Adyen Checkout API v68: Use `checkoutAttemptId` instead + @Deprecated @JsonProperty(JSON_PROPERTY_CONVERSION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setConversionId(String conversionId) { @@ -1360,10 +1368,10 @@ public void setConversionId(String conversionId) { } /** - * The shopper country. Format: [ISO 3166-1 + * The shopper country code. Format: [ISO 3166-1 * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE * - * @param countryCode The shopper country. Format: [ISO 3166-1 + * @param countryCode The shopper country code. Format: [ISO 3166-1 * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE * @return the current {@code PaymentRequest} instance, allowing for method chaining */ @@ -1374,10 +1382,10 @@ public PaymentRequest countryCode(String countryCode) { } /** - * The shopper country. Format: [ISO 3166-1 + * The shopper country code. Format: [ISO 3166-1 * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE * - * @return countryCode The shopper country. Format: [ISO 3166-1 + * @return countryCode The shopper country code. Format: [ISO 3166-1 * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE */ @JsonProperty(JSON_PROPERTY_COUNTRY_CODE) @@ -1387,10 +1395,10 @@ public String getCountryCode() { } /** - * The shopper country. Format: [ISO 3166-1 + * The shopper country code. Format: [ISO 3166-1 * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE * - * @param countryCode The shopper country. Format: [ISO 3166-1 + * @param countryCode The shopper country code. Format: [ISO 3166-1 * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE */ @JsonProperty(JSON_PROPERTY_COUNTRY_CODE) @@ -1567,9 +1575,9 @@ public void setDeliveryAddress(DeliveryAddress deliveryAddress) { * 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: * 2017-07-17T13:42:40.428+01:00 * @return the current {@code PaymentRequest} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v70 Use `deliverAt` instead. + * @deprecated since Adyen Checkout API v70 Use `deliverAt` instead. */ - @Deprecated // deprecated since Adyen Checkout API v70: Use `deliverAt` instead. + @Deprecated public PaymentRequest deliveryDate(OffsetDateTime deliveryDate) { this.deliveryDate = deliveryDate; isSetDeliveryDate = true; // mark as set @@ -1584,9 +1592,9 @@ public PaymentRequest deliveryDate(OffsetDateTime deliveryDate) { * @return deliveryDate The date and time the purchased goods should be delivered. Format [ISO * 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: * 2017-07-17T13:42:40.428+01:00 - * @deprecated // deprecated since Adyen Checkout API v70: Use `deliverAt` instead. + * @deprecated since Adyen Checkout API v70 Use `deliverAt` instead. */ - @Deprecated // deprecated since Adyen Checkout API v70: Use `deliverAt` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_DELIVERY_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getDeliveryDate() { @@ -1601,9 +1609,9 @@ public OffsetDateTime getDeliveryDate() { * @param deliveryDate The date and time the purchased goods should be delivered. Format [ISO * 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: * 2017-07-17T13:42:40.428+01:00 - * @deprecated since Adyen Checkout API v70 Use `deliverAt` instead. + * @deprecated since Adyen Checkout API v70 Use `deliverAt` instead. */ - @Deprecated // deprecated since Adyen Checkout API v70: Use `deliverAt` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_DELIVERY_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDeliveryDate(OffsetDateTime deliveryDate) { @@ -2303,23 +2311,29 @@ public void setMerchantAccount(String merchantAccount) { } /** - * This reference allows linking multiple transactions to each other for reporting purposes (i.e. - * order auth-rate). The reference should be unique per billing cycle. The same merchant order - * reference should never be reused after the first authorised attempt. If used, this field should - * be supplied for all incoming authorisations. > We strongly recommend you send the - * `merchantOrderReference` value to benefit from linking payment requests when - * authorisation retries take place. In addition, we recommend you provide - * `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and - * `retry.skipRetry` values in `PaymentRequest.additionalData`. - * - * @param merchantOrderReference This reference allows linking multiple transactions to each other - * for reporting purposes (i.e. order auth-rate). The reference should be unique per billing - * cycle. The same merchant order reference should never be reused after the first authorised - * attempt. If used, this field should be supplied for all incoming authorisations. > We - * strongly recommend you send the `merchantOrderReference` value to benefit from - * linking payment requests when authorisation retries take place. In addition, we recommend - * you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and - * `retry.skipRetry` values in `PaymentRequest.additionalData`. + * You can use this reference to link multiple transactions to one another (for example, to track + * order authorization rate).For each billing cycle, this reference should be unique. After the + * first authorized payment attempt, do not reuse the reference. If you use this parameter, + * include it in all of the payment requests that you make. We strongly recommend that you: * + * Always include this parameter, so that you can benefit from linking payment requests to one + * another, in case of authorization retries. * Additionally include the following parameters in + * the `additionalData` object: + * [`retry.orderAttemptNumber`](https://docs.adyen.com/api-explorer/Checkout/latest/post/sessions#request-additionalData-AdditionalDataRetry-retry-orderAttemptNumber), + * [`retry.chainAttemptNumber`](https://docs.adyen.com/api-explorer/Checkout/latest/post/sessions#request-additionalData-AdditionalDataRetry-retry-chainAttemptNumber), + * and + * [`retry.skipRetry`](https://docs.adyen.com/api-explorer/Checkout/latest/post/sessions#request-additionalData-AdditionalDataRetry-retry-skipRetry) + * + * @param merchantOrderReference You can use this reference to link multiple transactions to one + * another (for example, to track order authorization rate).For each billing cycle, this + * reference should be unique. After the first authorized payment attempt, do not reuse the + * reference. If you use this parameter, include it in all of the payment requests that you + * make. We strongly recommend that you: * Always include this parameter, so that you can + * benefit from linking payment requests to one another, in case of authorization retries. * + * Additionally include the following parameters in the `additionalData` object: + * [`retry.orderAttemptNumber`](https://docs.adyen.com/api-explorer/Checkout/latest/post/sessions#request-additionalData-AdditionalDataRetry-retry-orderAttemptNumber), + * [`retry.chainAttemptNumber`](https://docs.adyen.com/api-explorer/Checkout/latest/post/sessions#request-additionalData-AdditionalDataRetry-retry-chainAttemptNumber), + * and + * [`retry.skipRetry`](https://docs.adyen.com/api-explorer/Checkout/latest/post/sessions#request-additionalData-AdditionalDataRetry-retry-skipRetry) * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest merchantOrderReference(String merchantOrderReference) { @@ -2329,24 +2343,29 @@ public PaymentRequest merchantOrderReference(String merchantOrderReference) { } /** - * This reference allows linking multiple transactions to each other for reporting purposes (i.e. - * order auth-rate). The reference should be unique per billing cycle. The same merchant order - * reference should never be reused after the first authorised attempt. If used, this field should - * be supplied for all incoming authorisations. > We strongly recommend you send the - * `merchantOrderReference` value to benefit from linking payment requests when - * authorisation retries take place. In addition, we recommend you provide - * `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and - * `retry.skipRetry` values in `PaymentRequest.additionalData`. - * - * @return merchantOrderReference This reference allows linking multiple transactions to each - * other for reporting purposes (i.e. order auth-rate). The reference should be unique per - * billing cycle. The same merchant order reference should never be reused after the first - * authorised attempt. If used, this field should be supplied for all incoming authorisations. - * > We strongly recommend you send the `merchantOrderReference` value to benefit - * from linking payment requests when authorisation retries take place. In addition, we - * recommend you provide `retry.orderAttemptNumber`, - * `retry.chainAttemptNumber`, and `retry.skipRetry` values in - * `PaymentRequest.additionalData`. + * You can use this reference to link multiple transactions to one another (for example, to track + * order authorization rate).For each billing cycle, this reference should be unique. After the + * first authorized payment attempt, do not reuse the reference. If you use this parameter, + * include it in all of the payment requests that you make. We strongly recommend that you: * + * Always include this parameter, so that you can benefit from linking payment requests to one + * another, in case of authorization retries. * Additionally include the following parameters in + * the `additionalData` object: + * [`retry.orderAttemptNumber`](https://docs.adyen.com/api-explorer/Checkout/latest/post/sessions#request-additionalData-AdditionalDataRetry-retry-orderAttemptNumber), + * [`retry.chainAttemptNumber`](https://docs.adyen.com/api-explorer/Checkout/latest/post/sessions#request-additionalData-AdditionalDataRetry-retry-chainAttemptNumber), + * and + * [`retry.skipRetry`](https://docs.adyen.com/api-explorer/Checkout/latest/post/sessions#request-additionalData-AdditionalDataRetry-retry-skipRetry) + * + * @return merchantOrderReference You can use this reference to link multiple transactions to one + * another (for example, to track order authorization rate).For each billing cycle, this + * reference should be unique. After the first authorized payment attempt, do not reuse the + * reference. If you use this parameter, include it in all of the payment requests that you + * make. We strongly recommend that you: * Always include this parameter, so that you can + * benefit from linking payment requests to one another, in case of authorization retries. * + * Additionally include the following parameters in the `additionalData` object: + * [`retry.orderAttemptNumber`](https://docs.adyen.com/api-explorer/Checkout/latest/post/sessions#request-additionalData-AdditionalDataRetry-retry-orderAttemptNumber), + * [`retry.chainAttemptNumber`](https://docs.adyen.com/api-explorer/Checkout/latest/post/sessions#request-additionalData-AdditionalDataRetry-retry-chainAttemptNumber), + * and + * [`retry.skipRetry`](https://docs.adyen.com/api-explorer/Checkout/latest/post/sessions#request-additionalData-AdditionalDataRetry-retry-skipRetry) */ @JsonProperty(JSON_PROPERTY_MERCHANT_ORDER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2355,23 +2374,29 @@ public String getMerchantOrderReference() { } /** - * This reference allows linking multiple transactions to each other for reporting purposes (i.e. - * order auth-rate). The reference should be unique per billing cycle. The same merchant order - * reference should never be reused after the first authorised attempt. If used, this field should - * be supplied for all incoming authorisations. > We strongly recommend you send the - * `merchantOrderReference` value to benefit from linking payment requests when - * authorisation retries take place. In addition, we recommend you provide - * `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and - * `retry.skipRetry` values in `PaymentRequest.additionalData`. - * - * @param merchantOrderReference This reference allows linking multiple transactions to each other - * for reporting purposes (i.e. order auth-rate). The reference should be unique per billing - * cycle. The same merchant order reference should never be reused after the first authorised - * attempt. If used, this field should be supplied for all incoming authorisations. > We - * strongly recommend you send the `merchantOrderReference` value to benefit from - * linking payment requests when authorisation retries take place. In addition, we recommend - * you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and - * `retry.skipRetry` values in `PaymentRequest.additionalData`. + * You can use this reference to link multiple transactions to one another (for example, to track + * order authorization rate).For each billing cycle, this reference should be unique. After the + * first authorized payment attempt, do not reuse the reference. If you use this parameter, + * include it in all of the payment requests that you make. We strongly recommend that you: * + * Always include this parameter, so that you can benefit from linking payment requests to one + * another, in case of authorization retries. * Additionally include the following parameters in + * the `additionalData` object: + * [`retry.orderAttemptNumber`](https://docs.adyen.com/api-explorer/Checkout/latest/post/sessions#request-additionalData-AdditionalDataRetry-retry-orderAttemptNumber), + * [`retry.chainAttemptNumber`](https://docs.adyen.com/api-explorer/Checkout/latest/post/sessions#request-additionalData-AdditionalDataRetry-retry-chainAttemptNumber), + * and + * [`retry.skipRetry`](https://docs.adyen.com/api-explorer/Checkout/latest/post/sessions#request-additionalData-AdditionalDataRetry-retry-skipRetry) + * + * @param merchantOrderReference You can use this reference to link multiple transactions to one + * another (for example, to track order authorization rate).For each billing cycle, this + * reference should be unique. After the first authorized payment attempt, do not reuse the + * reference. If you use this parameter, include it in all of the payment requests that you + * make. We strongly recommend that you: * Always include this parameter, so that you can + * benefit from linking payment requests to one another, in case of authorization retries. * + * Additionally include the following parameters in the `additionalData` object: + * [`retry.orderAttemptNumber`](https://docs.adyen.com/api-explorer/Checkout/latest/post/sessions#request-additionalData-AdditionalDataRetry-retry-orderAttemptNumber), + * [`retry.chainAttemptNumber`](https://docs.adyen.com/api-explorer/Checkout/latest/post/sessions#request-additionalData-AdditionalDataRetry-retry-chainAttemptNumber), + * and + * [`retry.skipRetry`](https://docs.adyen.com/api-explorer/Checkout/latest/post/sessions#request-additionalData-AdditionalDataRetry-retry-skipRetry) */ @JsonProperty(JSON_PROPERTY_MERCHANT_ORDER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2986,14 +3011,15 @@ public void setRedirectToIssuerMethod(String redirectToIssuerMethod) { /** * The reference to uniquely identify a payment. This reference is used in all communication with - * you about the payment status. We recommend using a unique value per payment; however, it is not - * a requirement. If you need to provide multiple references for a transaction, separate them with - * hyphens (\"-\"). Maximum length: 80 characters. + * you about the payment status. To provide multiple references for one transaction, separate the + * reference values with the hyphen (`-`) character.We strongly recommend that you use a + * unique value for each transaction. Maximum length: 80 characters. * * @param reference The reference to uniquely identify a payment. This reference is used in all - * communication with you about the payment status. We recommend using a unique value per - * payment; however, it is not a requirement. If you need to provide multiple references for a - * transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * communication with you about the payment status. To provide multiple references for one + * transaction, separate the reference values with the hyphen (`-`) character.We + * strongly recommend that you use a unique value for each transaction. Maximum length: 80 + * characters. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest reference(String reference) { @@ -3004,14 +3030,15 @@ public PaymentRequest reference(String reference) { /** * The reference to uniquely identify a payment. This reference is used in all communication with - * you about the payment status. We recommend using a unique value per payment; however, it is not - * a requirement. If you need to provide multiple references for a transaction, separate them with - * hyphens (\"-\"). Maximum length: 80 characters. + * you about the payment status. To provide multiple references for one transaction, separate the + * reference values with the hyphen (`-`) character.We strongly recommend that you use a + * unique value for each transaction. Maximum length: 80 characters. * * @return reference The reference to uniquely identify a payment. This reference is used in all - * communication with you about the payment status. We recommend using a unique value per - * payment; however, it is not a requirement. If you need to provide multiple references for a - * transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * communication with you about the payment status. To provide multiple references for one + * transaction, separate the reference values with the hyphen (`-`) character.We + * strongly recommend that you use a unique value for each transaction. Maximum length: 80 + * characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -3021,14 +3048,15 @@ public String getReference() { /** * The reference to uniquely identify a payment. This reference is used in all communication with - * you about the payment status. We recommend using a unique value per payment; however, it is not - * a requirement. If you need to provide multiple references for a transaction, separate them with - * hyphens (\"-\"). Maximum length: 80 characters. + * you about the payment status. To provide multiple references for one transaction, separate the + * reference values with the hyphen (`-`) character.We strongly recommend that you use a + * unique value for each transaction. Maximum length: 80 characters. * * @param reference The reference to uniquely identify a payment. This reference is used in all - * communication with you about the payment status. We recommend using a unique value per - * payment; however, it is not a requirement. If you need to provide multiple references for a - * transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + * communication with you about the payment status. To provide multiple references for one + * transaction, separate the reference values with the hyphen (`-`) character.We + * strongly recommend that you use a unique value for each transaction. Maximum length: 80 + * characters. */ @JsonProperty(JSON_PROPERTY_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -3496,11 +3524,17 @@ public void setShopperInteraction(ShopperInteractionEnum shopperInteraction) { } /** - * The combination of a language code and a country code to specify the language to be used in the - * payment. + * The language for the payment. The value combines the two-letter [ISO + * 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) language code with the + * [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes) country + * code. For example, **nl-NL**. When using Drop-in/Components, the specified language appears if + * your front-end global configuration does not set the `locale`. * - * @param shopperLocale The combination of a language code and a country code to specify the - * language to be used in the payment. + * @param shopperLocale The language for the payment. The value combines the two-letter [ISO + * 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) language code with the + * [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes) country + * code. For example, **nl-NL**. When using Drop-in/Components, the specified language appears + * if your front-end global configuration does not set the `locale`. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest shopperLocale(String shopperLocale) { @@ -3510,11 +3544,17 @@ public PaymentRequest shopperLocale(String shopperLocale) { } /** - * The combination of a language code and a country code to specify the language to be used in the - * payment. + * The language for the payment. The value combines the two-letter [ISO + * 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) language code with the + * [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes) country + * code. For example, **nl-NL**. When using Drop-in/Components, the specified language appears if + * your front-end global configuration does not set the `locale`. * - * @return shopperLocale The combination of a language code and a country code to specify the - * language to be used in the payment. + * @return shopperLocale The language for the payment. The value combines the two-letter [ISO + * 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) language code with the + * [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes) country + * code. For example, **nl-NL**. When using Drop-in/Components, the specified language appears + * if your front-end global configuration does not set the `locale`. */ @JsonProperty(JSON_PROPERTY_SHOPPER_LOCALE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -3523,11 +3563,17 @@ public String getShopperLocale() { } /** - * The combination of a language code and a country code to specify the language to be used in the - * payment. + * The language for the payment. The value combines the two-letter [ISO + * 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) language code with the + * [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes) country + * code. For example, **nl-NL**. When using Drop-in/Components, the specified language appears if + * your front-end global configuration does not set the `locale`. * - * @param shopperLocale The combination of a language code and a country code to specify the - * language to be used in the payment. + * @param shopperLocale The language for the payment. The value combines the two-letter [ISO + * 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) language code with the + * [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes) country + * code. For example, **nl-NL**. When using Drop-in/Components, the specified language appears + * if your front-end global configuration does not set the `locale`. */ @JsonProperty(JSON_PROPERTY_SHOPPER_LOCALE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -4118,11 +4164,9 @@ public void setThreeDS2RequestData(ThreeDS2RequestFields threeDS2RequestData) { * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the * payment authorisation.Default: **false**. * @return the current {@code PaymentRequest} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v69 Use `authenticationData.authenticationOnly` - * instead. + * @deprecated since Adyen Checkout API v69 Use `authenticationData.authenticationOnly` instead. */ - @Deprecated // deprecated since Adyen Checkout API v69: Use - // `authenticationData.authenticationOnly` instead. + @Deprecated public PaymentRequest threeDSAuthenticationOnly(Boolean threeDSAuthenticationOnly) { this.threeDSAuthenticationOnly = threeDSAuthenticationOnly; isSetThreeDSAuthenticationOnly = true; // mark as set @@ -4139,11 +4183,9 @@ public PaymentRequest threeDSAuthenticationOnly(Boolean threeDSAuthenticationOnl * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the * payment authorisation.Default: **false**. - * @deprecated // deprecated since Adyen Checkout API v69: Use - * `authenticationData.authenticationOnly` instead. + * @deprecated since Adyen Checkout API v69 Use `authenticationData.authenticationOnly` instead. */ - @Deprecated // deprecated since Adyen Checkout API v69: Use - // `authenticationData.authenticationOnly` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getThreeDSAuthenticationOnly() { @@ -4160,11 +4202,9 @@ public Boolean getThreeDSAuthenticationOnly() { * flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to * **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the * payment authorisation.Default: **false**. - * @deprecated since Adyen Checkout API v69 Use `authenticationData.authenticationOnly` - * instead. + * @deprecated since Adyen Checkout API v69 Use `authenticationData.authenticationOnly` instead. */ - @Deprecated // deprecated since Adyen Checkout API v69: Use - // `authenticationData.authenticationOnly` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setThreeDSAuthenticationOnly(Boolean threeDSAuthenticationOnly) { diff --git a/src/main/java/com/adyen/model/checkout/PixDetails.java b/src/main/java/com/adyen/model/checkout/PixDetails.java index 8fa20c237..4cbcd1b0c 100644 --- a/src/main/java/com/adyen/model/checkout/PixDetails.java +++ b/src/main/java/com/adyen/model/checkout/PixDetails.java @@ -46,8 +46,8 @@ public class PixDetails { private boolean isSetPixRecurring = false; public static final String JSON_PROPERTY_RECURRING_DETAIL_REFERENCE = "recurringDetailReference"; - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. - private String recurringDetailReference; + /* deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ + @Deprecated private String recurringDetailReference; /** Mark when the attribute has been explicitly set. */ private boolean isSetRecurringDetailReference = false; @@ -194,9 +194,9 @@ public void setPixRecurring(PixRecurring pixRecurring) { * @param recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. * @return the current {@code PixDetails} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated public PixDetails recurringDetailReference(String recurringDetailReference) { this.recurringDetailReference = recurringDetailReference; isSetRecurringDetailReference = true; // mark as set @@ -209,9 +209,9 @@ public PixDetails recurringDetailReference(String recurringDetailReference) { * * @return recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. - * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getRecurringDetailReference() { @@ -224,9 +224,9 @@ public String getRecurringDetailReference() { * * @param recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRecurringDetailReference(String recurringDetailReference) { diff --git a/src/main/java/com/adyen/model/checkout/PixPayByBankDetails.java b/src/main/java/com/adyen/model/checkout/PixPayByBankDetails.java new file mode 100644 index 000000000..f90f773a1 --- /dev/null +++ b/src/main/java/com/adyen/model/checkout/PixPayByBankDetails.java @@ -0,0 +1,600 @@ +/* + * Adyen Checkout API + * + * The version of the OpenAPI document: 71 + * + * + * 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.checkout; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +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; + +/** PixPayByBankDetails */ +@JsonPropertyOrder({ + PixPayByBankDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, + PixPayByBankDetails.JSON_PROPERTY_DEVICE_ID, + PixPayByBankDetails.JSON_PROPERTY_ISSUER, + PixPayByBankDetails.JSON_PROPERTY_RECURRING_DETAIL_REFERENCE, + PixPayByBankDetails.JSON_PROPERTY_RISK_SIGNALS, + PixPayByBankDetails.JSON_PROPERTY_SDK_DATA, + PixPayByBankDetails.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID, + PixPayByBankDetails.JSON_PROPERTY_TYPE +}) +public class PixPayByBankDetails { + public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId"; + private String checkoutAttemptId; + + /** Mark when the attribute has been explicitly set. */ + private boolean isSetCheckoutAttemptId = false; + + public static final String JSON_PROPERTY_DEVICE_ID = "deviceId"; + private String deviceId; + + /** Mark when the attribute has been explicitly set. */ + private boolean isSetDeviceId = false; + + public static final String JSON_PROPERTY_ISSUER = "issuer"; + private String issuer; + + /** Mark when the attribute has been explicitly set. */ + private boolean isSetIssuer = false; + + public static final String JSON_PROPERTY_RECURRING_DETAIL_REFERENCE = "recurringDetailReference"; + /* deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ + @Deprecated private String recurringDetailReference; + + /** Mark when the attribute has been explicitly set. */ + private boolean isSetRecurringDetailReference = false; + + public static final String JSON_PROPERTY_RISK_SIGNALS = "riskSignals"; + private PixPayByBankRiskSignals riskSignals; + + /** Mark when the attribute has been explicitly set. */ + private boolean isSetRiskSignals = false; + + public static final String JSON_PROPERTY_SDK_DATA = "sdkData"; + private String sdkData; + + /** Mark when the attribute has been explicitly set. */ + private boolean isSetSdkData = false; + + public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId"; + private String storedPaymentMethodId; + + /** Mark when the attribute has been explicitly set. */ + private boolean isSetStoredPaymentMethodId = false; + + /** **paybybank_pix** */ + public enum TypeEnum { + PAYBYBANK_PIX(String.valueOf("paybybank_pix")); + + 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; + + /** Mark when the attribute has been explicitly set. */ + private boolean isSetType = false; + + /** + * Sets whether attributes with null values should be explicitly included in the JSON payload. + * Default is false. + */ + @JsonIgnore private boolean includeNullValues = false; + + public PixPayByBankDetails() {} + + /** + * The checkout attempt identifier. + * + * @param checkoutAttemptId The checkout attempt identifier. + * @return the current {@code PixPayByBankDetails} instance, allowing for method chaining + */ + public PixPayByBankDetails checkoutAttemptId(String checkoutAttemptId) { + this.checkoutAttemptId = checkoutAttemptId; + isSetCheckoutAttemptId = true; // mark as set + return this; + } + + /** + * The checkout attempt identifier. + * + * @return checkoutAttemptId The checkout attempt identifier. + */ + @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getCheckoutAttemptId() { + return checkoutAttemptId; + } + + /** + * The checkout attempt identifier. + * + * @param checkoutAttemptId The checkout attempt identifier. + */ + @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setCheckoutAttemptId(String checkoutAttemptId) { + this.checkoutAttemptId = checkoutAttemptId; + isSetCheckoutAttemptId = true; // mark as set + } + + /** + * deviceId + * + * @param deviceId + * @return the current {@code PixPayByBankDetails} instance, allowing for method chaining + */ + public PixPayByBankDetails deviceId(String deviceId) { + this.deviceId = deviceId; + isSetDeviceId = true; // mark as set + return this; + } + + /** + * Get deviceId + * + * @return deviceId + */ + @JsonProperty(JSON_PROPERTY_DEVICE_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getDeviceId() { + return deviceId; + } + + /** + * deviceId + * + * @param deviceId + */ + @JsonProperty(JSON_PROPERTY_DEVICE_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDeviceId(String deviceId) { + this.deviceId = deviceId; + isSetDeviceId = true; // mark as set + } + + /** + * issuer + * + * @param issuer + * @return the current {@code PixPayByBankDetails} instance, allowing for method chaining + */ + public PixPayByBankDetails issuer(String issuer) { + this.issuer = issuer; + isSetIssuer = true; // mark as set + return this; + } + + /** + * Get issuer + * + * @return issuer + */ + @JsonProperty(JSON_PROPERTY_ISSUER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getIssuer() { + return issuer; + } + + /** + * issuer + * + * @param issuer + */ + @JsonProperty(JSON_PROPERTY_ISSUER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIssuer(String issuer) { + this.issuer = issuer; + isSetIssuer = true; // mark as set + } + + /** + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @param recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. + * @return the current {@code PixPayByBankDetails} instance, allowing for method chaining + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + */ + @Deprecated + public PixPayByBankDetails recurringDetailReference(String recurringDetailReference) { + this.recurringDetailReference = recurringDetailReference; + isSetRecurringDetailReference = true; // mark as set + return this; + } + + /** + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @return recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + */ + @Deprecated + @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getRecurringDetailReference() { + return recurringDetailReference; + } + + /** + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @param recurringDetailReference This is the `recurringDetailReference` returned in + * the response when you created the token. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + */ + @Deprecated + @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setRecurringDetailReference(String recurringDetailReference) { + this.recurringDetailReference = recurringDetailReference; + isSetRecurringDetailReference = true; // mark as set + } + + /** + * riskSignals + * + * @param riskSignals + * @return the current {@code PixPayByBankDetails} instance, allowing for method chaining + */ + public PixPayByBankDetails riskSignals(PixPayByBankRiskSignals riskSignals) { + this.riskSignals = riskSignals; + isSetRiskSignals = true; // mark as set + return this; + } + + /** + * Get riskSignals + * + * @return riskSignals + */ + @JsonProperty(JSON_PROPERTY_RISK_SIGNALS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public PixPayByBankRiskSignals getRiskSignals() { + return riskSignals; + } + + /** + * riskSignals + * + * @param riskSignals + */ + @JsonProperty(JSON_PROPERTY_RISK_SIGNALS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setRiskSignals(PixPayByBankRiskSignals riskSignals) { + this.riskSignals = riskSignals; + isSetRiskSignals = true; // mark as set + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * @return the current {@code PixPayByBankDetails} instance, allowing for method chaining + */ + public PixPayByBankDetails sdkData(String sdkData) { + this.sdkData = sdkData; + isSetSdkData = true; // mark as set + return this; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return sdkData Base64-encoded JSON object containing SDK related parameters required by the + * SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSdkData() { + return sdkData; + } + + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + @JsonProperty(JSON_PROPERTY_SDK_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSdkData(String sdkData) { + this.sdkData = sdkData; + isSetSdkData = true; // mark as set + } + + /** + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. + * @return the current {@code PixPayByBankDetails} instance, allowing for method chaining + */ + public PixPayByBankDetails storedPaymentMethodId(String storedPaymentMethodId) { + this.storedPaymentMethodId = storedPaymentMethodId; + isSetStoredPaymentMethodId = true; // mark as set + return this; + } + + /** + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @return storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. + */ + @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getStoredPaymentMethodId() { + return storedPaymentMethodId; + } + + /** + * This is the `recurringDetailReference` returned in the response when you created the + * token. + * + * @param storedPaymentMethodId This is the `recurringDetailReference` returned in the + * response when you created the token. + */ + @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setStoredPaymentMethodId(String storedPaymentMethodId) { + this.storedPaymentMethodId = storedPaymentMethodId; + isSetStoredPaymentMethodId = true; // mark as set + } + + /** + * **paybybank_pix** + * + * @param type **paybybank_pix** + * @return the current {@code PixPayByBankDetails} instance, allowing for method chaining + */ + public PixPayByBankDetails type(TypeEnum type) { + this.type = type; + isSetType = true; // mark as set + return this; + } + + /** + * **paybybank_pix** + * + * @return type **paybybank_pix** + */ + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public TypeEnum getType() { + return type; + } + + /** + * **paybybank_pix** + * + * @param type **paybybank_pix** + */ + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setType(TypeEnum type) { + this.type = type; + isSetType = true; // mark as set + } + + /** + * Configures whether null values are explicitly serialized in the JSON payload. Default is false. + */ + public PixPayByBankDetails includeNullValues(boolean includeNullValues) { + this.includeNullValues = includeNullValues; + return this; + } + + /** Returns whether null values are explicitly serialized in the JSON payload. */ + public boolean isIncludeNullValues() { + return includeNullValues; + } + + /** + * Sets whether null values should be explicitly serialized in the JSON payload. Default is false. + */ + public void setIncludeNullValues(boolean includeNullValues) { + this.includeNullValues = includeNullValues; + } + + /** Return true if this PixPayByBankDetails object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PixPayByBankDetails pixPayByBankDetails = (PixPayByBankDetails) o; + return Objects.equals(this.checkoutAttemptId, pixPayByBankDetails.checkoutAttemptId) + && Objects.equals(this.isSetCheckoutAttemptId, pixPayByBankDetails.isSetCheckoutAttemptId) + && Objects.equals(this.deviceId, pixPayByBankDetails.deviceId) + && Objects.equals(this.isSetDeviceId, pixPayByBankDetails.isSetDeviceId) + && Objects.equals(this.issuer, pixPayByBankDetails.issuer) + && Objects.equals(this.isSetIssuer, pixPayByBankDetails.isSetIssuer) + && Objects.equals( + this.recurringDetailReference, pixPayByBankDetails.recurringDetailReference) + && Objects.equals( + this.isSetRecurringDetailReference, pixPayByBankDetails.isSetRecurringDetailReference) + && Objects.equals(this.riskSignals, pixPayByBankDetails.riskSignals) + && Objects.equals(this.isSetRiskSignals, pixPayByBankDetails.isSetRiskSignals) + && Objects.equals(this.sdkData, pixPayByBankDetails.sdkData) + && Objects.equals(this.isSetSdkData, pixPayByBankDetails.isSetSdkData) + && Objects.equals(this.storedPaymentMethodId, pixPayByBankDetails.storedPaymentMethodId) + && Objects.equals( + this.isSetStoredPaymentMethodId, pixPayByBankDetails.isSetStoredPaymentMethodId) + && Objects.equals(this.type, pixPayByBankDetails.type) + && Objects.equals(this.isSetType, pixPayByBankDetails.isSetType); + } + + @Override + public int hashCode() { + return Objects.hash( + checkoutAttemptId, + isSetCheckoutAttemptId, + deviceId, + isSetDeviceId, + issuer, + isSetIssuer, + recurringDetailReference, + isSetRecurringDetailReference, + riskSignals, + isSetRiskSignals, + sdkData, + isSetSdkData, + storedPaymentMethodId, + isSetStoredPaymentMethodId, + type, + isSetType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PixPayByBankDetails {\n"); + sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); + sb.append(" deviceId: ").append(toIndentedString(deviceId)).append("\n"); + sb.append(" issuer: ").append(toIndentedString(issuer)).append("\n"); + sb.append(" recurringDetailReference: ") + .append(toIndentedString(recurringDetailReference)) + .append("\n"); + sb.append(" riskSignals: ").append(toIndentedString(riskSignals)).append("\n"); + sb.append(" sdkData: ").append(toIndentedString(sdkData)).append("\n"); + sb.append(" storedPaymentMethodId: ") + .append(toIndentedString(storedPaymentMethodId)) + .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 "); + } + + /** Returns a map of properties to be merged into the JSON payload as explicit null values. */ + @JsonInclude(JsonInclude.Include.ALWAYS) + @JsonAnyGetter + public Map getExplicitNulls() { + if (!this.includeNullValues) { + return Collections.emptyMap(); + } + + Map nulls = new HashMap<>(); + + if (isSetCheckoutAttemptId) { + addIfNull(nulls, JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, this.checkoutAttemptId); + } + if (isSetDeviceId) { + addIfNull(nulls, JSON_PROPERTY_DEVICE_ID, this.deviceId); + } + if (isSetIssuer) { + addIfNull(nulls, JSON_PROPERTY_ISSUER, this.issuer); + } + if (isSetRecurringDetailReference) { + addIfNull(nulls, JSON_PROPERTY_RECURRING_DETAIL_REFERENCE, this.recurringDetailReference); + } + if (isSetRiskSignals) { + addIfNull(nulls, JSON_PROPERTY_RISK_SIGNALS, this.riskSignals); + } + if (isSetSdkData) { + addIfNull(nulls, JSON_PROPERTY_SDK_DATA, this.sdkData); + } + if (isSetStoredPaymentMethodId) { + addIfNull(nulls, JSON_PROPERTY_STORED_PAYMENT_METHOD_ID, this.storedPaymentMethodId); + } + if (isSetType) { + addIfNull(nulls, JSON_PROPERTY_TYPE, this.type); + } + + return nulls; + } + + // add to map when value is null + private void addIfNull(Map map, String key, Object value) { + if (value == null) { + map.put(key, null); + } + } + + /** + * Create an instance of PixPayByBankDetails given an JSON string + * + * @param jsonString JSON string + * @return An instance of PixPayByBankDetails + * @throws JsonProcessingException if the JSON string is invalid with respect to + * PixPayByBankDetails + */ + public static PixPayByBankDetails fromJson(String jsonString) throws JsonProcessingException { + return JSON.getMapper().readValue(jsonString, PixPayByBankDetails.class); + } + + /** + * Convert an instance of PixPayByBankDetails 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/checkout/PixPayByBankRiskSignals.java b/src/main/java/com/adyen/model/checkout/PixPayByBankRiskSignals.java new file mode 100644 index 000000000..bcaaedb8b --- /dev/null +++ b/src/main/java/com/adyen/model/checkout/PixPayByBankRiskSignals.java @@ -0,0 +1,534 @@ +/* + * Adyen Checkout API + * + * The version of the OpenAPI document: 71 + * + * + * 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.checkout; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +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.*; + +/** PixPayByBankRiskSignals */ +@JsonPropertyOrder({ + PixPayByBankRiskSignals.JSON_PROPERTY_CONFIDENCE_SCORE, + PixPayByBankRiskSignals.JSON_PROPERTY_ELAPSED_TIME_SINCE_BOOT, + PixPayByBankRiskSignals.JSON_PROPERTY_IS_ROOTED_DEVICE, + PixPayByBankRiskSignals.JSON_PROPERTY_LANGUAGE, + PixPayByBankRiskSignals.JSON_PROPERTY_OS_VERSION, + PixPayByBankRiskSignals.JSON_PROPERTY_SCREEN_BRIGHTNESS, + PixPayByBankRiskSignals.JSON_PROPERTY_SCREEN_DIMENSIONS, + PixPayByBankRiskSignals.JSON_PROPERTY_USER_TIME_ZONE_OFFSET +}) +public class PixPayByBankRiskSignals { + public static final String JSON_PROPERTY_CONFIDENCE_SCORE = "confidenceScore"; + private ConfidenceScore confidenceScore; + + /** Mark when the attribute has been explicitly set. */ + private boolean isSetConfidenceScore = false; + + public static final String JSON_PROPERTY_ELAPSED_TIME_SINCE_BOOT = "elapsedTimeSinceBoot"; + private Long elapsedTimeSinceBoot; + + /** Mark when the attribute has been explicitly set. */ + private boolean isSetElapsedTimeSinceBoot = false; + + public static final String JSON_PROPERTY_IS_ROOTED_DEVICE = "isRootedDevice"; + private Boolean isRootedDevice; + + /** Mark when the attribute has been explicitly set. */ + private boolean isSetIsRootedDevice = false; + + public static final String JSON_PROPERTY_LANGUAGE = "language"; + private String language; + + /** Mark when the attribute has been explicitly set. */ + private boolean isSetLanguage = false; + + public static final String JSON_PROPERTY_OS_VERSION = "osVersion"; + private String osVersion; + + /** Mark when the attribute has been explicitly set. */ + private boolean isSetOsVersion = false; + + public static final String JSON_PROPERTY_SCREEN_BRIGHTNESS = "screenBrightness"; + private Integer screenBrightness; + + /** Mark when the attribute has been explicitly set. */ + private boolean isSetScreenBrightness = false; + + public static final String JSON_PROPERTY_SCREEN_DIMENSIONS = "screenDimensions"; + private ScreenDimensions screenDimensions; + + /** Mark when the attribute has been explicitly set. */ + private boolean isSetScreenDimensions = false; + + public static final String JSON_PROPERTY_USER_TIME_ZONE_OFFSET = "userTimeZoneOffset"; + private Integer userTimeZoneOffset; + + /** Mark when the attribute has been explicitly set. */ + private boolean isSetUserTimeZoneOffset = false; + + /** + * Sets whether attributes with null values should be explicitly included in the JSON payload. + * Default is false. + */ + @JsonIgnore private boolean includeNullValues = false; + + public PixPayByBankRiskSignals() {} + + /** + * confidenceScore + * + * @param confidenceScore + * @return the current {@code PixPayByBankRiskSignals} instance, allowing for method chaining + */ + public PixPayByBankRiskSignals confidenceScore(ConfidenceScore confidenceScore) { + this.confidenceScore = confidenceScore; + isSetConfidenceScore = true; // mark as set + return this; + } + + /** + * Get confidenceScore + * + * @return confidenceScore + */ + @JsonProperty(JSON_PROPERTY_CONFIDENCE_SCORE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public ConfidenceScore getConfidenceScore() { + return confidenceScore; + } + + /** + * confidenceScore + * + * @param confidenceScore + */ + @JsonProperty(JSON_PROPERTY_CONFIDENCE_SCORE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setConfidenceScore(ConfidenceScore confidenceScore) { + this.confidenceScore = confidenceScore; + isSetConfidenceScore = true; // mark as set + } + + /** + * elapsedTimeSinceBoot + * + * @param elapsedTimeSinceBoot + * @return the current {@code PixPayByBankRiskSignals} instance, allowing for method chaining + */ + public PixPayByBankRiskSignals elapsedTimeSinceBoot(Long elapsedTimeSinceBoot) { + this.elapsedTimeSinceBoot = elapsedTimeSinceBoot; + isSetElapsedTimeSinceBoot = true; // mark as set + return this; + } + + /** + * Get elapsedTimeSinceBoot + * + * @return elapsedTimeSinceBoot + */ + @JsonProperty(JSON_PROPERTY_ELAPSED_TIME_SINCE_BOOT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getElapsedTimeSinceBoot() { + return elapsedTimeSinceBoot; + } + + /** + * elapsedTimeSinceBoot + * + * @param elapsedTimeSinceBoot + */ + @JsonProperty(JSON_PROPERTY_ELAPSED_TIME_SINCE_BOOT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setElapsedTimeSinceBoot(Long elapsedTimeSinceBoot) { + this.elapsedTimeSinceBoot = elapsedTimeSinceBoot; + isSetElapsedTimeSinceBoot = true; // mark as set + } + + /** + * isRootedDevice + * + * @param isRootedDevice + * @return the current {@code PixPayByBankRiskSignals} instance, allowing for method chaining + */ + public PixPayByBankRiskSignals isRootedDevice(Boolean isRootedDevice) { + this.isRootedDevice = isRootedDevice; + isSetIsRootedDevice = true; // mark as set + return this; + } + + /** + * Get isRootedDevice + * + * @return isRootedDevice + */ + @JsonProperty(JSON_PROPERTY_IS_ROOTED_DEVICE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getIsRootedDevice() { + return isRootedDevice; + } + + /** + * isRootedDevice + * + * @param isRootedDevice + */ + @JsonProperty(JSON_PROPERTY_IS_ROOTED_DEVICE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIsRootedDevice(Boolean isRootedDevice) { + this.isRootedDevice = isRootedDevice; + isSetIsRootedDevice = true; // mark as set + } + + /** + * language + * + * @param language + * @return the current {@code PixPayByBankRiskSignals} instance, allowing for method chaining + */ + public PixPayByBankRiskSignals language(String language) { + this.language = language; + isSetLanguage = true; // mark as set + return this; + } + + /** + * Get language + * + * @return language + */ + @JsonProperty(JSON_PROPERTY_LANGUAGE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getLanguage() { + return language; + } + + /** + * language + * + * @param language + */ + @JsonProperty(JSON_PROPERTY_LANGUAGE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setLanguage(String language) { + this.language = language; + isSetLanguage = true; // mark as set + } + + /** + * osVersion + * + * @param osVersion + * @return the current {@code PixPayByBankRiskSignals} instance, allowing for method chaining + */ + public PixPayByBankRiskSignals osVersion(String osVersion) { + this.osVersion = osVersion; + isSetOsVersion = true; // mark as set + return this; + } + + /** + * Get osVersion + * + * @return osVersion + */ + @JsonProperty(JSON_PROPERTY_OS_VERSION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getOsVersion() { + return osVersion; + } + + /** + * osVersion + * + * @param osVersion + */ + @JsonProperty(JSON_PROPERTY_OS_VERSION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setOsVersion(String osVersion) { + this.osVersion = osVersion; + isSetOsVersion = true; // mark as set + } + + /** + * screenBrightness + * + * @param screenBrightness + * @return the current {@code PixPayByBankRiskSignals} instance, allowing for method chaining + */ + public PixPayByBankRiskSignals screenBrightness(Integer screenBrightness) { + this.screenBrightness = screenBrightness; + isSetScreenBrightness = true; // mark as set + return this; + } + + /** + * Get screenBrightness + * + * @return screenBrightness + */ + @JsonProperty(JSON_PROPERTY_SCREEN_BRIGHTNESS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getScreenBrightness() { + return screenBrightness; + } + + /** + * screenBrightness + * + * @param screenBrightness + */ + @JsonProperty(JSON_PROPERTY_SCREEN_BRIGHTNESS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setScreenBrightness(Integer screenBrightness) { + this.screenBrightness = screenBrightness; + isSetScreenBrightness = true; // mark as set + } + + /** + * screenDimensions + * + * @param screenDimensions + * @return the current {@code PixPayByBankRiskSignals} instance, allowing for method chaining + */ + public PixPayByBankRiskSignals screenDimensions(ScreenDimensions screenDimensions) { + this.screenDimensions = screenDimensions; + isSetScreenDimensions = true; // mark as set + return this; + } + + /** + * Get screenDimensions + * + * @return screenDimensions + */ + @JsonProperty(JSON_PROPERTY_SCREEN_DIMENSIONS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public ScreenDimensions getScreenDimensions() { + return screenDimensions; + } + + /** + * screenDimensions + * + * @param screenDimensions + */ + @JsonProperty(JSON_PROPERTY_SCREEN_DIMENSIONS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setScreenDimensions(ScreenDimensions screenDimensions) { + this.screenDimensions = screenDimensions; + isSetScreenDimensions = true; // mark as set + } + + /** + * userTimeZoneOffset + * + * @param userTimeZoneOffset + * @return the current {@code PixPayByBankRiskSignals} instance, allowing for method chaining + */ + public PixPayByBankRiskSignals userTimeZoneOffset(Integer userTimeZoneOffset) { + this.userTimeZoneOffset = userTimeZoneOffset; + isSetUserTimeZoneOffset = true; // mark as set + return this; + } + + /** + * Get userTimeZoneOffset + * + * @return userTimeZoneOffset + */ + @JsonProperty(JSON_PROPERTY_USER_TIME_ZONE_OFFSET) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getUserTimeZoneOffset() { + return userTimeZoneOffset; + } + + /** + * userTimeZoneOffset + * + * @param userTimeZoneOffset + */ + @JsonProperty(JSON_PROPERTY_USER_TIME_ZONE_OFFSET) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUserTimeZoneOffset(Integer userTimeZoneOffset) { + this.userTimeZoneOffset = userTimeZoneOffset; + isSetUserTimeZoneOffset = true; // mark as set + } + + /** + * Configures whether null values are explicitly serialized in the JSON payload. Default is false. + */ + public PixPayByBankRiskSignals includeNullValues(boolean includeNullValues) { + this.includeNullValues = includeNullValues; + return this; + } + + /** Returns whether null values are explicitly serialized in the JSON payload. */ + public boolean isIncludeNullValues() { + return includeNullValues; + } + + /** + * Sets whether null values should be explicitly serialized in the JSON payload. Default is false. + */ + public void setIncludeNullValues(boolean includeNullValues) { + this.includeNullValues = includeNullValues; + } + + /** Return true if this PixPayByBankRiskSignals object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PixPayByBankRiskSignals pixPayByBankRiskSignals = (PixPayByBankRiskSignals) o; + return Objects.equals(this.confidenceScore, pixPayByBankRiskSignals.confidenceScore) + && Objects.equals(this.isSetConfidenceScore, pixPayByBankRiskSignals.isSetConfidenceScore) + && Objects.equals(this.elapsedTimeSinceBoot, pixPayByBankRiskSignals.elapsedTimeSinceBoot) + && Objects.equals( + this.isSetElapsedTimeSinceBoot, pixPayByBankRiskSignals.isSetElapsedTimeSinceBoot) + && Objects.equals(this.isRootedDevice, pixPayByBankRiskSignals.isRootedDevice) + && Objects.equals(this.isSetIsRootedDevice, pixPayByBankRiskSignals.isSetIsRootedDevice) + && Objects.equals(this.language, pixPayByBankRiskSignals.language) + && Objects.equals(this.isSetLanguage, pixPayByBankRiskSignals.isSetLanguage) + && Objects.equals(this.osVersion, pixPayByBankRiskSignals.osVersion) + && Objects.equals(this.isSetOsVersion, pixPayByBankRiskSignals.isSetOsVersion) + && Objects.equals(this.screenBrightness, pixPayByBankRiskSignals.screenBrightness) + && Objects.equals(this.isSetScreenBrightness, pixPayByBankRiskSignals.isSetScreenBrightness) + && Objects.equals(this.screenDimensions, pixPayByBankRiskSignals.screenDimensions) + && Objects.equals(this.isSetScreenDimensions, pixPayByBankRiskSignals.isSetScreenDimensions) + && Objects.equals(this.userTimeZoneOffset, pixPayByBankRiskSignals.userTimeZoneOffset) + && Objects.equals( + this.isSetUserTimeZoneOffset, pixPayByBankRiskSignals.isSetUserTimeZoneOffset); + } + + @Override + public int hashCode() { + return Objects.hash( + confidenceScore, + isSetConfidenceScore, + elapsedTimeSinceBoot, + isSetElapsedTimeSinceBoot, + isRootedDevice, + isSetIsRootedDevice, + language, + isSetLanguage, + osVersion, + isSetOsVersion, + screenBrightness, + isSetScreenBrightness, + screenDimensions, + isSetScreenDimensions, + userTimeZoneOffset, + isSetUserTimeZoneOffset); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PixPayByBankRiskSignals {\n"); + sb.append(" confidenceScore: ").append(toIndentedString(confidenceScore)).append("\n"); + sb.append(" elapsedTimeSinceBoot: ") + .append(toIndentedString(elapsedTimeSinceBoot)) + .append("\n"); + sb.append(" isRootedDevice: ").append(toIndentedString(isRootedDevice)).append("\n"); + sb.append(" language: ").append(toIndentedString(language)).append("\n"); + sb.append(" osVersion: ").append(toIndentedString(osVersion)).append("\n"); + sb.append(" screenBrightness: ").append(toIndentedString(screenBrightness)).append("\n"); + sb.append(" screenDimensions: ").append(toIndentedString(screenDimensions)).append("\n"); + sb.append(" userTimeZoneOffset: ").append(toIndentedString(userTimeZoneOffset)).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 "); + } + + /** Returns a map of properties to be merged into the JSON payload as explicit null values. */ + @JsonInclude(JsonInclude.Include.ALWAYS) + @JsonAnyGetter + public Map getExplicitNulls() { + if (!this.includeNullValues) { + return Collections.emptyMap(); + } + + Map nulls = new HashMap<>(); + + if (isSetConfidenceScore) { + addIfNull(nulls, JSON_PROPERTY_CONFIDENCE_SCORE, this.confidenceScore); + } + if (isSetElapsedTimeSinceBoot) { + addIfNull(nulls, JSON_PROPERTY_ELAPSED_TIME_SINCE_BOOT, this.elapsedTimeSinceBoot); + } + if (isSetIsRootedDevice) { + addIfNull(nulls, JSON_PROPERTY_IS_ROOTED_DEVICE, this.isRootedDevice); + } + if (isSetLanguage) { + addIfNull(nulls, JSON_PROPERTY_LANGUAGE, this.language); + } + if (isSetOsVersion) { + addIfNull(nulls, JSON_PROPERTY_OS_VERSION, this.osVersion); + } + if (isSetScreenBrightness) { + addIfNull(nulls, JSON_PROPERTY_SCREEN_BRIGHTNESS, this.screenBrightness); + } + if (isSetScreenDimensions) { + addIfNull(nulls, JSON_PROPERTY_SCREEN_DIMENSIONS, this.screenDimensions); + } + if (isSetUserTimeZoneOffset) { + addIfNull(nulls, JSON_PROPERTY_USER_TIME_ZONE_OFFSET, this.userTimeZoneOffset); + } + + return nulls; + } + + // add to map when value is null + private void addIfNull(Map map, String key, Object value) { + if (value == null) { + map.put(key, null); + } + } + + /** + * Create an instance of PixPayByBankRiskSignals given an JSON string + * + * @param jsonString JSON string + * @return An instance of PixPayByBankRiskSignals + * @throws JsonProcessingException if the JSON string is invalid with respect to + * PixPayByBankRiskSignals + */ + public static PixPayByBankRiskSignals fromJson(String jsonString) throws JsonProcessingException { + return JSON.getMapper().readValue(jsonString, PixPayByBankRiskSignals.class); + } + + /** + * Convert an instance of PixPayByBankRiskSignals 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/checkout/PlatformChargebackLogic.java b/src/main/java/com/adyen/model/checkout/PlatformChargebackLogic.java index 66933cee4..96477defe 100644 --- a/src/main/java/com/adyen/model/checkout/PlatformChargebackLogic.java +++ b/src/main/java/com/adyen/model/checkout/PlatformChargebackLogic.java @@ -35,11 +35,11 @@ public class PlatformChargebackLogic { * **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio**. */ public enum BehaviorEnum { - DEDUCTACCORDINGTOSPLITRATIO(String.valueOf("deductAccordingToSplitRatio")), + DEDUCTFROMONEBALANCEACCOUNT(String.valueOf("deductFromOneBalanceAccount")), - DEDUCTFROMLIABLEACCOUNT(String.valueOf("deductFromLiableAccount")), + DEDUCTACCORDINGTOSPLITRATIO(String.valueOf("deductAccordingToSplitRatio")), - DEDUCTFROMONEBALANCEACCOUNT(String.valueOf("deductFromOneBalanceAccount")); + DEDUCTFROMLIABLEACCOUNT(String.valueOf("deductFromLiableAccount")); private static final Logger LOG = Logger.getLogger(BehaviorEnum.class.getName()); diff --git a/src/main/java/com/adyen/model/checkout/RakutenPayDetails.java b/src/main/java/com/adyen/model/checkout/RakutenPayDetails.java index 61ba85b15..21764fc0d 100644 --- a/src/main/java/com/adyen/model/checkout/RakutenPayDetails.java +++ b/src/main/java/com/adyen/model/checkout/RakutenPayDetails.java @@ -39,8 +39,8 @@ public class RakutenPayDetails { private boolean isSetCheckoutAttemptId = false; public static final String JSON_PROPERTY_RECURRING_DETAIL_REFERENCE = "recurringDetailReference"; - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. - private String recurringDetailReference; + /* deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ + @Deprecated private String recurringDetailReference; /** Mark when the attribute has been explicitly set. */ private boolean isSetRecurringDetailReference = false; @@ -152,9 +152,9 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { * @param recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. * @return the current {@code RakutenPayDetails} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated public RakutenPayDetails recurringDetailReference(String recurringDetailReference) { this.recurringDetailReference = recurringDetailReference; isSetRecurringDetailReference = true; // mark as set @@ -167,9 +167,9 @@ public RakutenPayDetails recurringDetailReference(String recurringDetailReferenc * * @return recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. - * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getRecurringDetailReference() { @@ -182,9 +182,9 @@ public String getRecurringDetailReference() { * * @param recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRecurringDetailReference(String recurringDetailReference) { diff --git a/src/main/java/com/adyen/model/checkout/RatepayDetails.java b/src/main/java/com/adyen/model/checkout/RatepayDetails.java index 042127e11..76fbc6326 100644 --- a/src/main/java/com/adyen/model/checkout/RatepayDetails.java +++ b/src/main/java/com/adyen/model/checkout/RatepayDetails.java @@ -60,8 +60,8 @@ public class RatepayDetails { private boolean isSetPersonalDetails = false; public static final String JSON_PROPERTY_RECURRING_DETAIL_REFERENCE = "recurringDetailReference"; - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. - private String recurringDetailReference; + /* deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ + @Deprecated private String recurringDetailReference; /** Mark when the attribute has been explicitly set. */ private boolean isSetRecurringDetailReference = false; @@ -280,9 +280,9 @@ public void setPersonalDetails(String personalDetails) { * @param recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. * @return the current {@code RatepayDetails} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated public RatepayDetails recurringDetailReference(String recurringDetailReference) { this.recurringDetailReference = recurringDetailReference; isSetRecurringDetailReference = true; // mark as set @@ -295,9 +295,9 @@ public RatepayDetails recurringDetailReference(String recurringDetailReference) * * @return recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. - * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getRecurringDetailReference() { @@ -310,9 +310,9 @@ public String getRecurringDetailReference() { * * @param recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRecurringDetailReference(String recurringDetailReference) { diff --git a/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataCard.java b/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataCard.java index fcf78d2ac..8605c80f4 100644 --- a/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataCard.java +++ b/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataCard.java @@ -25,6 +25,7 @@ /** ResponseAdditionalDataCard */ @JsonPropertyOrder({ + ResponseAdditionalDataCard.JSON_PROPERTY_CARD_ALT_I_D, ResponseAdditionalDataCard.JSON_PROPERTY_CARD_BIN, ResponseAdditionalDataCard.JSON_PROPERTY_CARD_HOLDER_NAME, ResponseAdditionalDataCard.JSON_PROPERTY_CARD_ISSUING_BANK, @@ -36,6 +37,12 @@ ResponseAdditionalDataCard.JSON_PROPERTY_ISSUER_BIN }) public class ResponseAdditionalDataCard { + public static final String JSON_PROPERTY_CARD_ALT_I_D = "cardAltID"; + private String cardAltID; + + /** Mark when the attribute has been explicitly set. */ + private boolean isSetCardAltID = false; + public static final String JSON_PROPERTY_CARD_BIN = "cardBin"; private String cardBin; @@ -165,6 +172,47 @@ public static CardProductIdEnum fromValue(String value) { public ResponseAdditionalDataCard() {} + /** + * This is an ALT ID (alternate ID) mapped to the Card PAN. > Returned only in case of + * Ecommerce Card Payment in India + * + * @param cardAltID This is an ALT ID (alternate ID) mapped to the Card PAN. > Returned only in + * case of Ecommerce Card Payment in India + * @return the current {@code ResponseAdditionalDataCard} instance, allowing for method chaining + */ + public ResponseAdditionalDataCard cardAltID(String cardAltID) { + this.cardAltID = cardAltID; + isSetCardAltID = true; // mark as set + return this; + } + + /** + * This is an ALT ID (alternate ID) mapped to the Card PAN. > Returned only in case of + * Ecommerce Card Payment in India + * + * @return cardAltID This is an ALT ID (alternate ID) mapped to the Card PAN. > Returned only + * in case of Ecommerce Card Payment in India + */ + @JsonProperty(JSON_PROPERTY_CARD_ALT_I_D) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getCardAltID() { + return cardAltID; + } + + /** + * This is an ALT ID (alternate ID) mapped to the Card PAN. > Returned only in case of + * Ecommerce Card Payment in India + * + * @param cardAltID This is an ALT ID (alternate ID) mapped to the Card PAN. > Returned only in + * case of Ecommerce Card Payment in India + */ + @JsonProperty(JSON_PROPERTY_CARD_ALT_I_D) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setCardAltID(String cardAltID) { + this.cardAltID = cardAltID; + isSetCardAltID = true; // mark as set + } + /** * The first six digits of the card number. This is the [Bank Identification Number * (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) @@ -595,7 +643,9 @@ public boolean equals(Object o) { return false; } ResponseAdditionalDataCard responseAdditionalDataCard = (ResponseAdditionalDataCard) o; - return Objects.equals(this.cardBin, responseAdditionalDataCard.cardBin) + return Objects.equals(this.cardAltID, responseAdditionalDataCard.cardAltID) + && Objects.equals(this.isSetCardAltID, responseAdditionalDataCard.isSetCardAltID) + && Objects.equals(this.cardBin, responseAdditionalDataCard.cardBin) && Objects.equals(this.isSetCardBin, responseAdditionalDataCard.isSetCardBin) && Objects.equals(this.cardHolderName, responseAdditionalDataCard.cardHolderName) && Objects.equals(this.isSetCardHolderName, responseAdditionalDataCard.isSetCardHolderName) @@ -622,6 +672,8 @@ public boolean equals(Object o) { @Override public int hashCode() { return Objects.hash( + cardAltID, + isSetCardAltID, cardBin, isSetCardBin, cardHolderName, @@ -646,6 +698,7 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ResponseAdditionalDataCard {\n"); + sb.append(" cardAltID: ").append(toIndentedString(cardAltID)).append("\n"); sb.append(" cardBin: ").append(toIndentedString(cardBin)).append("\n"); sb.append(" cardHolderName: ").append(toIndentedString(cardHolderName)).append("\n"); sb.append(" cardIssuingBank: ").append(toIndentedString(cardIssuingBank)).append("\n"); @@ -681,6 +734,9 @@ public Map getExplicitNulls() { Map nulls = new HashMap<>(); + if (isSetCardAltID) { + addIfNull(nulls, JSON_PROPERTY_CARD_ALT_I_D, this.cardAltID); + } if (isSetCardBin) { addIfNull(nulls, JSON_PROPERTY_CARD_BIN, this.cardBin); } diff --git a/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataCommon.java b/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataCommon.java index 235d56e19..277cdd0d2 100644 --- a/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataCommon.java +++ b/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataCommon.java @@ -58,6 +58,7 @@ ResponseAdditionalDataCommon.JSON_PROPERTY_MC_BANK_NET_REFERENCE_NUMBER, ResponseAdditionalDataCommon.JSON_PROPERTY_MERCHANT_ADVICE_CODE, ResponseAdditionalDataCommon.JSON_PROPERTY_MERCHANT_REFERENCE, + ResponseAdditionalDataCommon.JSON_PROPERTY_NETWORK_PROCESSING_MODE, ResponseAdditionalDataCommon.JSON_PROPERTY_NETWORK_TX_REFERENCE, ResponseAdditionalDataCommon.JSON_PROPERTY_OWNER_NAME, ResponseAdditionalDataCommon.JSON_PROPERTY_PAYMENT_ACCOUNT_REFERENCE, @@ -385,6 +386,12 @@ public static FraudRiskLevelEnum fromValue(String value) { /** Mark when the attribute has been explicitly set. */ private boolean isSetMerchantReference = false; + public static final String JSON_PROPERTY_NETWORK_PROCESSING_MODE = "networkProcessingMode"; + private String networkProcessingMode; + + /** Mark when the attribute has been explicitly set. */ + private boolean isSetNetworkProcessingMode = false; + public static final String JSON_PROPERTY_NETWORK_TX_REFERENCE = "networkTxReference"; private String networkTxReference; @@ -449,17 +456,16 @@ public static FraudRiskLevelEnum fromValue(String value) { public static final String JSON_PROPERTY_RECURRING_RECURRING_DETAIL_REFERENCE = "recurring.recurringDetailReference"; - @Deprecated // deprecated since Adyen Checkout API v68: Use tokenization.storedPaymentMethodId - // instead. - private String recurringRecurringDetailReference; + /* deprecated since Adyen Checkout API v68: Use tokenization.storedPaymentMethodId instead. */ + @Deprecated private String recurringRecurringDetailReference; /** Mark when the attribute has been explicitly set. */ private boolean isSetRecurringRecurringDetailReference = false; public static final String JSON_PROPERTY_RECURRING_SHOPPER_REFERENCE = "recurring.shopperReference"; - @Deprecated // deprecated since Adyen Checkout API v68: Use tokenization.shopperReference instead. - private String recurringShopperReference; + /* deprecated since Adyen Checkout API v68: Use tokenization.shopperReference instead. */ + @Deprecated private String recurringShopperReference; /** Mark when the attribute has been explicitly set. */ private boolean isSetRecurringShopperReference = false; @@ -2078,6 +2084,65 @@ public void setMerchantReference(String merchantReference) { isSetMerchantReference = true; // mark as set } + /** + * Indicates the processing flow. Possible values: * **sale**: You do not need to separately + * capture the funds, because capture happens automatically as part of the transaction. * + * **auth**: If you have not [configured automatic capture for the + * transaction](https://docs.adyen.com/online-payments/capture#types-of-capture), you must + * manually capture the funds. + * + * @param networkProcessingMode Indicates the processing flow. Possible values: * **sale**: You do + * not need to separately capture the funds, because capture happens automatically as part of + * the transaction. * **auth**: If you have not [configured automatic capture for the + * transaction](https://docs.adyen.com/online-payments/capture#types-of-capture), you must + * manually capture the funds. + * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining + */ + public ResponseAdditionalDataCommon networkProcessingMode(String networkProcessingMode) { + this.networkProcessingMode = networkProcessingMode; + isSetNetworkProcessingMode = true; // mark as set + return this; + } + + /** + * Indicates the processing flow. Possible values: * **sale**: You do not need to separately + * capture the funds, because capture happens automatically as part of the transaction. * + * **auth**: If you have not [configured automatic capture for the + * transaction](https://docs.adyen.com/online-payments/capture#types-of-capture), you must + * manually capture the funds. + * + * @return networkProcessingMode Indicates the processing flow. Possible values: * **sale**: You + * do not need to separately capture the funds, because capture happens automatically as part + * of the transaction. * **auth**: If you have not [configured automatic capture for the + * transaction](https://docs.adyen.com/online-payments/capture#types-of-capture), you must + * manually capture the funds. + */ + @JsonProperty(JSON_PROPERTY_NETWORK_PROCESSING_MODE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getNetworkProcessingMode() { + return networkProcessingMode; + } + + /** + * Indicates the processing flow. Possible values: * **sale**: You do not need to separately + * capture the funds, because capture happens automatically as part of the transaction. * + * **auth**: If you have not [configured automatic capture for the + * transaction](https://docs.adyen.com/online-payments/capture#types-of-capture), you must + * manually capture the funds. + * + * @param networkProcessingMode Indicates the processing flow. Possible values: * **sale**: You do + * not need to separately capture the funds, because capture happens automatically as part of + * the transaction. * **auth**: If you have not [configured automatic capture for the + * transaction](https://docs.adyen.com/online-payments/capture#types-of-capture), you must + * manually capture the funds. + */ + @JsonProperty(JSON_PROPERTY_NETWORK_PROCESSING_MODE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setNetworkProcessingMode(String networkProcessingMode) { + this.networkProcessingMode = networkProcessingMode; + isSetNetworkProcessingMode = true; // mark as set + } + /** * Returned in the response if you are not tokenizing with Adyen and are using the * Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either @@ -2516,8 +2581,7 @@ public void setRecurringFirstPspReference(String recurringFirstPspReference) { * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining * @deprecated since Adyen Checkout API v68 Use tokenization.storedPaymentMethodId instead. */ - @Deprecated // deprecated since Adyen Checkout API v68: Use tokenization.storedPaymentMethodId - // instead. + @Deprecated public ResponseAdditionalDataCommon recurringRecurringDetailReference( String recurringRecurringDetailReference) { this.recurringRecurringDetailReference = recurringRecurringDetailReference; @@ -2530,11 +2594,9 @@ public ResponseAdditionalDataCommon recurringRecurringDetailReference( * * @return recurringRecurringDetailReference The reference that uniquely identifies the recurring * transaction. - * @deprecated // deprecated since Adyen Checkout API v68: Use tokenization.storedPaymentMethodId - * instead. + * @deprecated since Adyen Checkout API v68 Use tokenization.storedPaymentMethodId instead. */ - @Deprecated // deprecated since Adyen Checkout API v68: Use tokenization.storedPaymentMethodId - // instead. + @Deprecated @JsonProperty(JSON_PROPERTY_RECURRING_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getRecurringRecurringDetailReference() { @@ -2548,8 +2610,7 @@ public String getRecurringRecurringDetailReference() { * transaction. * @deprecated since Adyen Checkout API v68 Use tokenization.storedPaymentMethodId instead. */ - @Deprecated // deprecated since Adyen Checkout API v68: Use tokenization.storedPaymentMethodId - // instead. + @Deprecated @JsonProperty(JSON_PROPERTY_RECURRING_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRecurringRecurringDetailReference(String recurringRecurringDetailReference) { @@ -2565,7 +2626,7 @@ public void setRecurringRecurringDetailReference(String recurringRecurringDetail * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining * @deprecated since Adyen Checkout API v68 Use tokenization.shopperReference instead. */ - @Deprecated // deprecated since Adyen Checkout API v68: Use tokenization.shopperReference instead. + @Deprecated public ResponseAdditionalDataCommon recurringShopperReference(String recurringShopperReference) { this.recurringShopperReference = recurringShopperReference; isSetRecurringShopperReference = true; // mark as set @@ -2577,10 +2638,9 @@ public ResponseAdditionalDataCommon recurringShopperReference(String recurringSh * * @return recurringShopperReference The provided reference of the shopper for a recurring * transaction. - * @deprecated // deprecated since Adyen Checkout API v68: Use tokenization.shopperReference - * instead. + * @deprecated since Adyen Checkout API v68 Use tokenization.shopperReference instead. */ - @Deprecated // deprecated since Adyen Checkout API v68: Use tokenization.shopperReference instead. + @Deprecated @JsonProperty(JSON_PROPERTY_RECURRING_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getRecurringShopperReference() { @@ -2594,7 +2654,7 @@ public String getRecurringShopperReference() { * transaction. * @deprecated since Adyen Checkout API v68 Use tokenization.shopperReference instead. */ - @Deprecated // deprecated since Adyen Checkout API v68: Use tokenization.shopperReference instead. + @Deprecated @JsonProperty(JSON_PROPERTY_RECURRING_SHOPPER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRecurringShopperReference(String recurringShopperReference) { @@ -3433,6 +3493,11 @@ public boolean equals(Object o) { && Objects.equals(this.merchantReference, responseAdditionalDataCommon.merchantReference) && Objects.equals( this.isSetMerchantReference, responseAdditionalDataCommon.isSetMerchantReference) + && Objects.equals( + this.networkProcessingMode, responseAdditionalDataCommon.networkProcessingMode) + && Objects.equals( + this.isSetNetworkProcessingMode, + responseAdditionalDataCommon.isSetNetworkProcessingMode) && Objects.equals(this.networkTxReference, responseAdditionalDataCommon.networkTxReference) && Objects.equals( this.isSetNetworkTxReference, responseAdditionalDataCommon.isSetNetworkTxReference) @@ -3621,6 +3686,8 @@ public int hashCode() { isSetMerchantAdviceCode, merchantReference, isSetMerchantReference, + networkProcessingMode, + isSetNetworkProcessingMode, networkTxReference, isSetNetworkTxReference, ownerName, @@ -3732,6 +3799,9 @@ public String toString() { .append("\n"); sb.append(" merchantAdviceCode: ").append(toIndentedString(merchantAdviceCode)).append("\n"); sb.append(" merchantReference: ").append(toIndentedString(merchantReference)).append("\n"); + sb.append(" networkProcessingMode: ") + .append(toIndentedString(networkProcessingMode)) + .append("\n"); sb.append(" networkTxReference: ").append(toIndentedString(networkTxReference)).append("\n"); sb.append(" ownerName: ").append(toIndentedString(ownerName)).append("\n"); sb.append(" paymentAccountReference: ") @@ -3918,6 +3988,9 @@ public Map getExplicitNulls() { if (isSetMerchantReference) { addIfNull(nulls, JSON_PROPERTY_MERCHANT_REFERENCE, this.merchantReference); } + if (isSetNetworkProcessingMode) { + addIfNull(nulls, JSON_PROPERTY_NETWORK_PROCESSING_MODE, this.networkProcessingMode); + } if (isSetNetworkTxReference) { addIfNull(nulls, JSON_PROPERTY_NETWORK_TX_REFERENCE, this.networkTxReference); } diff --git a/src/main/java/com/adyen/model/checkout/Result.java b/src/main/java/com/adyen/model/checkout/Result.java index c8c43fea4..bd288bff7 100644 --- a/src/main/java/com/adyen/model/checkout/Result.java +++ b/src/main/java/com/adyen/model/checkout/Result.java @@ -21,7 +21,9 @@ public enum Result { INVALID("INVALID"), - UNKNOWN("UNKNOWN"); + UNKNOWN("UNKNOWN"), + + NOT_REQUIRED("NOT_REQUIRED"); private String value; diff --git a/src/main/java/com/adyen/model/checkout/RivertyDetails.java b/src/main/java/com/adyen/model/checkout/RivertyDetails.java index 95ccd69f7..459d3037b 100644 --- a/src/main/java/com/adyen/model/checkout/RivertyDetails.java +++ b/src/main/java/com/adyen/model/checkout/RivertyDetails.java @@ -75,8 +75,8 @@ public class RivertyDetails { private boolean isSetPersonalDetails = false; public static final String JSON_PROPERTY_RECURRING_DETAIL_REFERENCE = "recurringDetailReference"; - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. - private String recurringDetailReference; + /* deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ + @Deprecated private String recurringDetailReference; /** Mark when the attribute has been explicitly set. */ private boolean isSetRecurringDetailReference = false; @@ -384,9 +384,9 @@ public void setPersonalDetails(String personalDetails) { * @param recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. * @return the current {@code RivertyDetails} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated public RivertyDetails recurringDetailReference(String recurringDetailReference) { this.recurringDetailReference = recurringDetailReference; isSetRecurringDetailReference = true; // mark as set @@ -399,9 +399,9 @@ public RivertyDetails recurringDetailReference(String recurringDetailReference) * * @return recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. - * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getRecurringDetailReference() { @@ -414,9 +414,9 @@ public String getRecurringDetailReference() { * * @param recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRecurringDetailReference(String recurringDetailReference) { diff --git a/src/main/java/com/adyen/model/checkout/SamsungPayDetails.java b/src/main/java/com/adyen/model/checkout/SamsungPayDetails.java index 194fb5b2d..47ae61b09 100644 --- a/src/main/java/com/adyen/model/checkout/SamsungPayDetails.java +++ b/src/main/java/com/adyen/model/checkout/SamsungPayDetails.java @@ -93,8 +93,8 @@ public static FundingSourceEnum fromValue(String value) { private boolean isSetFundingSource = false; public static final String JSON_PROPERTY_RECURRING_DETAIL_REFERENCE = "recurringDetailReference"; - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. - private String recurringDetailReference; + /* deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ + @Deprecated private String recurringDetailReference; /** Mark when the attribute has been explicitly set. */ private boolean isSetRecurringDetailReference = false; @@ -256,9 +256,9 @@ public void setFundingSource(FundingSourceEnum fundingSource) { * @param recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. * @return the current {@code SamsungPayDetails} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated public SamsungPayDetails recurringDetailReference(String recurringDetailReference) { this.recurringDetailReference = recurringDetailReference; isSetRecurringDetailReference = true; // mark as set @@ -271,9 +271,9 @@ public SamsungPayDetails recurringDetailReference(String recurringDetailReferenc * * @return recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. - * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getRecurringDetailReference() { @@ -286,9 +286,9 @@ public String getRecurringDetailReference() { * * @param recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRecurringDetailReference(String recurringDetailReference) { diff --git a/src/main/java/com/adyen/model/checkout/ScreenDimensions.java b/src/main/java/com/adyen/model/checkout/ScreenDimensions.java new file mode 100644 index 000000000..ed45d2388 --- /dev/null +++ b/src/main/java/com/adyen/model/checkout/ScreenDimensions.java @@ -0,0 +1,222 @@ +/* + * Adyen Checkout API + * + * The version of the OpenAPI document: 71 + * + * + * 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.checkout; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +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.*; + +/** ScreenDimensions */ +@JsonPropertyOrder({ScreenDimensions.JSON_PROPERTY_HEIGHT, ScreenDimensions.JSON_PROPERTY_WIDTH}) +public class ScreenDimensions { + public static final String JSON_PROPERTY_HEIGHT = "height"; + private Integer height; + + /** Mark when the attribute has been explicitly set. */ + private boolean isSetHeight = false; + + public static final String JSON_PROPERTY_WIDTH = "width"; + private Integer width; + + /** Mark when the attribute has been explicitly set. */ + private boolean isSetWidth = false; + + /** + * Sets whether attributes with null values should be explicitly included in the JSON payload. + * Default is false. + */ + @JsonIgnore private boolean includeNullValues = false; + + public ScreenDimensions() {} + + /** + * height + * + * @param height + * @return the current {@code ScreenDimensions} instance, allowing for method chaining + */ + public ScreenDimensions height(Integer height) { + this.height = height; + isSetHeight = true; // mark as set + return this; + } + + /** + * Get height + * + * @return height + */ + @JsonProperty(JSON_PROPERTY_HEIGHT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getHeight() { + return height; + } + + /** + * height + * + * @param height + */ + @JsonProperty(JSON_PROPERTY_HEIGHT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setHeight(Integer height) { + this.height = height; + isSetHeight = true; // mark as set + } + + /** + * width + * + * @param width + * @return the current {@code ScreenDimensions} instance, allowing for method chaining + */ + public ScreenDimensions width(Integer width) { + this.width = width; + isSetWidth = true; // mark as set + return this; + } + + /** + * Get width + * + * @return width + */ + @JsonProperty(JSON_PROPERTY_WIDTH) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getWidth() { + return width; + } + + /** + * width + * + * @param width + */ + @JsonProperty(JSON_PROPERTY_WIDTH) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setWidth(Integer width) { + this.width = width; + isSetWidth = true; // mark as set + } + + /** + * Configures whether null values are explicitly serialized in the JSON payload. Default is false. + */ + public ScreenDimensions includeNullValues(boolean includeNullValues) { + this.includeNullValues = includeNullValues; + return this; + } + + /** Returns whether null values are explicitly serialized in the JSON payload. */ + public boolean isIncludeNullValues() { + return includeNullValues; + } + + /** + * Sets whether null values should be explicitly serialized in the JSON payload. Default is false. + */ + public void setIncludeNullValues(boolean includeNullValues) { + this.includeNullValues = includeNullValues; + } + + /** Return true if this ScreenDimensions object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ScreenDimensions screenDimensions = (ScreenDimensions) o; + return Objects.equals(this.height, screenDimensions.height) + && Objects.equals(this.isSetHeight, screenDimensions.isSetHeight) + && Objects.equals(this.width, screenDimensions.width) + && Objects.equals(this.isSetWidth, screenDimensions.isSetWidth); + } + + @Override + public int hashCode() { + return Objects.hash(height, isSetHeight, width, isSetWidth); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ScreenDimensions {\n"); + sb.append(" height: ").append(toIndentedString(height)).append("\n"); + sb.append(" width: ").append(toIndentedString(width)).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 "); + } + + /** Returns a map of properties to be merged into the JSON payload as explicit null values. */ + @JsonInclude(JsonInclude.Include.ALWAYS) + @JsonAnyGetter + public Map getExplicitNulls() { + if (!this.includeNullValues) { + return Collections.emptyMap(); + } + + Map nulls = new HashMap<>(); + + if (isSetHeight) { + addIfNull(nulls, JSON_PROPERTY_HEIGHT, this.height); + } + if (isSetWidth) { + addIfNull(nulls, JSON_PROPERTY_WIDTH, this.width); + } + + return nulls; + } + + // add to map when value is null + private void addIfNull(Map map, String key, Object value) { + if (value == null) { + map.put(key, null); + } + } + + /** + * Create an instance of ScreenDimensions given an JSON string + * + * @param jsonString JSON string + * @return An instance of ScreenDimensions + * @throws JsonProcessingException if the JSON string is invalid with respect to ScreenDimensions + */ + public static ScreenDimensions fromJson(String jsonString) throws JsonProcessingException { + return JSON.getMapper().readValue(jsonString, ScreenDimensions.class); + } + + /** + * Convert an instance of ScreenDimensions 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/checkout/SepaDirectDebitDetails.java b/src/main/java/com/adyen/model/checkout/SepaDirectDebitDetails.java index 6009ba883..bdb90f3c8 100644 --- a/src/main/java/com/adyen/model/checkout/SepaDirectDebitDetails.java +++ b/src/main/java/com/adyen/model/checkout/SepaDirectDebitDetails.java @@ -61,8 +61,8 @@ public class SepaDirectDebitDetails { private boolean isSetOwnerName = false; public static final String JSON_PROPERTY_RECURRING_DETAIL_REFERENCE = "recurringDetailReference"; - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. - private String recurringDetailReference; + /* deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ + @Deprecated private String recurringDetailReference; /** Mark when the attribute has been explicitly set. */ private boolean isSetRecurringDetailReference = false; @@ -287,9 +287,9 @@ public void setOwnerName(String ownerName) { * @param recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. * @return the current {@code SepaDirectDebitDetails} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated public SepaDirectDebitDetails recurringDetailReference(String recurringDetailReference) { this.recurringDetailReference = recurringDetailReference; isSetRecurringDetailReference = true; // mark as set @@ -302,9 +302,9 @@ public SepaDirectDebitDetails recurringDetailReference(String recurringDetailRef * * @return recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. - * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getRecurringDetailReference() { @@ -317,9 +317,9 @@ public String getRecurringDetailReference() { * * @param recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRecurringDetailReference(String recurringDetailReference) { diff --git a/src/main/java/com/adyen/model/checkout/ShopperTaxInfo.java b/src/main/java/com/adyen/model/checkout/ShopperTaxInfo.java index efdf8a0cc..d5e08eaa3 100644 --- a/src/main/java/com/adyen/model/checkout/ShopperTaxInfo.java +++ b/src/main/java/com/adyen/model/checkout/ShopperTaxInfo.java @@ -21,21 +21,21 @@ /** ShopperTaxInfo */ @JsonPropertyOrder({ - ShopperTaxInfo.JSON_PROPERTY_TAX_ID, - ShopperTaxInfo.JSON_PROPERTY_TAX_ID_COUNTRY_CODE + ShopperTaxInfo.JSON_PROPERTY_TAX_COUNTRY_CODE, + ShopperTaxInfo.JSON_PROPERTY_TAX_IDENTIFICATION_NUMBER }) public class ShopperTaxInfo { - public static final String JSON_PROPERTY_TAX_ID = "taxId"; - private String taxId; + public static final String JSON_PROPERTY_TAX_COUNTRY_CODE = "taxCountryCode"; + private String taxCountryCode; /** Mark when the attribute has been explicitly set. */ - private boolean isSetTaxId = false; + private boolean isSetTaxCountryCode = false; - public static final String JSON_PROPERTY_TAX_ID_COUNTRY_CODE = "taxIdCountryCode"; - private String taxIdCountryCode; + public static final String JSON_PROPERTY_TAX_IDENTIFICATION_NUMBER = "taxIdentificationNumber"; + private String taxIdentificationNumber; /** Mark when the attribute has been explicitly set. */ - private boolean isSetTaxIdCountryCode = false; + private boolean isSetTaxIdentificationNumber = false; /** * Sets whether attributes with null values should be explicitly included in the JSON payload. @@ -46,73 +46,88 @@ public class ShopperTaxInfo { public ShopperTaxInfo() {} /** - * The tax-id of the shopper doing the transaction. + * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) + * country code associated with the provided tax identification number. Currently used only for + * Indian PA-CB tax verification, when applicable. * - * @param taxId The tax-id of the shopper doing the transaction. + * @param taxCountryCode The two-character [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code associated with the + * provided tax identification number. Currently used only for Indian PA-CB tax verification, + * when applicable. * @return the current {@code ShopperTaxInfo} instance, allowing for method chaining */ - public ShopperTaxInfo taxId(String taxId) { - this.taxId = taxId; - isSetTaxId = true; // mark as set + public ShopperTaxInfo taxCountryCode(String taxCountryCode) { + this.taxCountryCode = taxCountryCode; + isSetTaxCountryCode = true; // mark as set return this; } /** - * The tax-id of the shopper doing the transaction. + * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) + * country code associated with the provided tax identification number. Currently used only for + * Indian PA-CB tax verification, when applicable. * - * @return taxId The tax-id of the shopper doing the transaction. + * @return taxCountryCode The two-character [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code associated with the + * provided tax identification number. Currently used only for Indian PA-CB tax verification, + * when applicable. */ - @JsonProperty(JSON_PROPERTY_TAX_ID) + @JsonProperty(JSON_PROPERTY_TAX_COUNTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getTaxId() { - return taxId; + public String getTaxCountryCode() { + return taxCountryCode; } /** - * The tax-id of the shopper doing the transaction. + * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) + * country code associated with the provided tax identification number. Currently used only for + * Indian PA-CB tax verification, when applicable. * - * @param taxId The tax-id of the shopper doing the transaction. + * @param taxCountryCode The two-character [ISO 3166-1 + * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code associated with the + * provided tax identification number. Currently used only for Indian PA-CB tax verification, + * when applicable. */ - @JsonProperty(JSON_PROPERTY_TAX_ID) + @JsonProperty(JSON_PROPERTY_TAX_COUNTRY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTaxId(String taxId) { - this.taxId = taxId; - isSetTaxId = true; // mark as set + public void setTaxCountryCode(String taxCountryCode) { + this.taxCountryCode = taxCountryCode; + isSetTaxCountryCode = true; // mark as set } /** - * The country to which the tax-id belongs to. + * The shopper’s tax identification number. * - * @param taxIdCountryCode The country to which the tax-id belongs to. + * @param taxIdentificationNumber The shopper’s tax identification number. * @return the current {@code ShopperTaxInfo} instance, allowing for method chaining */ - public ShopperTaxInfo taxIdCountryCode(String taxIdCountryCode) { - this.taxIdCountryCode = taxIdCountryCode; - isSetTaxIdCountryCode = true; // mark as set + public ShopperTaxInfo taxIdentificationNumber(String taxIdentificationNumber) { + this.taxIdentificationNumber = taxIdentificationNumber; + isSetTaxIdentificationNumber = true; // mark as set return this; } /** - * The country to which the tax-id belongs to. + * The shopper’s tax identification number. * - * @return taxIdCountryCode The country to which the tax-id belongs to. + * @return taxIdentificationNumber The shopper’s tax identification number. */ - @JsonProperty(JSON_PROPERTY_TAX_ID_COUNTRY_CODE) + @JsonProperty(JSON_PROPERTY_TAX_IDENTIFICATION_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getTaxIdCountryCode() { - return taxIdCountryCode; + public String getTaxIdentificationNumber() { + return taxIdentificationNumber; } /** - * The country to which the tax-id belongs to. + * The shopper’s tax identification number. * - * @param taxIdCountryCode The country to which the tax-id belongs to. + * @param taxIdentificationNumber The shopper’s tax identification number. */ - @JsonProperty(JSON_PROPERTY_TAX_ID_COUNTRY_CODE) + @JsonProperty(JSON_PROPERTY_TAX_IDENTIFICATION_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTaxIdCountryCode(String taxIdCountryCode) { - this.taxIdCountryCode = taxIdCountryCode; - isSetTaxIdCountryCode = true; // mark as set + public void setTaxIdentificationNumber(String taxIdentificationNumber) { + this.taxIdentificationNumber = taxIdentificationNumber; + isSetTaxIdentificationNumber = true; // mark as set } /** @@ -145,23 +160,27 @@ public boolean equals(Object o) { return false; } ShopperTaxInfo shopperTaxInfo = (ShopperTaxInfo) o; - return Objects.equals(this.taxId, shopperTaxInfo.taxId) - && Objects.equals(this.isSetTaxId, shopperTaxInfo.isSetTaxId) - && Objects.equals(this.taxIdCountryCode, shopperTaxInfo.taxIdCountryCode) - && Objects.equals(this.isSetTaxIdCountryCode, shopperTaxInfo.isSetTaxIdCountryCode); + return Objects.equals(this.taxCountryCode, shopperTaxInfo.taxCountryCode) + && Objects.equals(this.isSetTaxCountryCode, shopperTaxInfo.isSetTaxCountryCode) + && Objects.equals(this.taxIdentificationNumber, shopperTaxInfo.taxIdentificationNumber) + && Objects.equals( + this.isSetTaxIdentificationNumber, shopperTaxInfo.isSetTaxIdentificationNumber); } @Override public int hashCode() { - return Objects.hash(taxId, isSetTaxId, taxIdCountryCode, isSetTaxIdCountryCode); + return Objects.hash( + taxCountryCode, isSetTaxCountryCode, taxIdentificationNumber, isSetTaxIdentificationNumber); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ShopperTaxInfo {\n"); - sb.append(" taxId: ").append(toIndentedString(taxId)).append("\n"); - sb.append(" taxIdCountryCode: ").append(toIndentedString(taxIdCountryCode)).append("\n"); + sb.append(" taxCountryCode: ").append(toIndentedString(taxCountryCode)).append("\n"); + sb.append(" taxIdentificationNumber: ") + .append(toIndentedString(taxIdentificationNumber)) + .append("\n"); sb.append("}"); return sb.toString(); } @@ -186,11 +205,11 @@ public Map getExplicitNulls() { Map nulls = new HashMap<>(); - if (isSetTaxId) { - addIfNull(nulls, JSON_PROPERTY_TAX_ID, this.taxId); + if (isSetTaxCountryCode) { + addIfNull(nulls, JSON_PROPERTY_TAX_COUNTRY_CODE, this.taxCountryCode); } - if (isSetTaxIdCountryCode) { - addIfNull(nulls, JSON_PROPERTY_TAX_ID_COUNTRY_CODE, this.taxIdCountryCode); + if (isSetTaxIdentificationNumber) { + addIfNull(nulls, JSON_PROPERTY_TAX_IDENTIFICATION_NUMBER, this.taxIdentificationNumber); } return nulls; diff --git a/src/main/java/com/adyen/model/checkout/StoredPaymentMethod.java b/src/main/java/com/adyen/model/checkout/StoredPaymentMethod.java index ca013c0b7..ed26120c8 100644 --- a/src/main/java/com/adyen/model/checkout/StoredPaymentMethod.java +++ b/src/main/java/com/adyen/model/checkout/StoredPaymentMethod.java @@ -336,9 +336,9 @@ public void setExpiryYear(String expiryYear) { } /** - * The unique payment method code. + * The name of the payment method holder. * - * @param holderName The unique payment method code. + * @param holderName The name of the payment method holder. * @return the current {@code StoredPaymentMethod} instance, allowing for method chaining */ public StoredPaymentMethod holderName(String holderName) { @@ -348,9 +348,9 @@ public StoredPaymentMethod holderName(String holderName) { } /** - * The unique payment method code. + * The name of the payment method holder. * - * @return holderName The unique payment method code. + * @return holderName The name of the payment method holder. */ @JsonProperty(JSON_PROPERTY_HOLDER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -359,9 +359,9 @@ public String getHolderName() { } /** - * The unique payment method code. + * The name of the payment method holder. * - * @param holderName The unique payment method code. + * @param holderName The name of the payment method holder. */ @JsonProperty(JSON_PROPERTY_HOLDER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/src/main/java/com/adyen/model/checkout/StoredPaymentMethodDetails.java b/src/main/java/com/adyen/model/checkout/StoredPaymentMethodDetails.java index 02aa911a6..0af2f2426 100644 --- a/src/main/java/com/adyen/model/checkout/StoredPaymentMethodDetails.java +++ b/src/main/java/com/adyen/model/checkout/StoredPaymentMethodDetails.java @@ -39,8 +39,8 @@ public class StoredPaymentMethodDetails { private boolean isSetCheckoutAttemptId = false; public static final String JSON_PROPERTY_RECURRING_DETAIL_REFERENCE = "recurringDetailReference"; - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. - private String recurringDetailReference; + /* deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ + @Deprecated private String recurringDetailReference; /** Mark when the attribute has been explicitly set. */ private boolean isSetRecurringDetailReference = false; @@ -210,9 +210,9 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { * @param recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. * @return the current {@code StoredPaymentMethodDetails} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated public StoredPaymentMethodDetails recurringDetailReference(String recurringDetailReference) { this.recurringDetailReference = recurringDetailReference; isSetRecurringDetailReference = true; // mark as set @@ -225,9 +225,9 @@ public StoredPaymentMethodDetails recurringDetailReference(String recurringDetai * * @return recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. - * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getRecurringDetailReference() { @@ -240,9 +240,9 @@ public String getRecurringDetailReference() { * * @param recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRecurringDetailReference(String recurringDetailReference) { diff --git a/src/main/java/com/adyen/model/checkout/StoredPaymentMethodResource.java b/src/main/java/com/adyen/model/checkout/StoredPaymentMethodResource.java index 910856472..80ad5ae79 100644 --- a/src/main/java/com/adyen/model/checkout/StoredPaymentMethodResource.java +++ b/src/main/java/com/adyen/model/checkout/StoredPaymentMethodResource.java @@ -23,6 +23,8 @@ /** StoredPaymentMethodResource */ @JsonPropertyOrder({ + StoredPaymentMethodResource.JSON_PROPERTY_ALIAS, + StoredPaymentMethodResource.JSON_PROPERTY_ALIAS_TYPE, StoredPaymentMethodResource.JSON_PROPERTY_BRAND, StoredPaymentMethodResource.JSON_PROPERTY_CARD_BIN, StoredPaymentMethodResource.JSON_PROPERTY_EXPIRY_MONTH, @@ -44,6 +46,18 @@ StoredPaymentMethodResource.JSON_PROPERTY_TYPE }) public class StoredPaymentMethodResource { + public static final String JSON_PROPERTY_ALIAS = "alias"; + private String alias; + + /** Mark when the attribute has been explicitly set. */ + private boolean isSetAlias = false; + + public static final String JSON_PROPERTY_ALIAS_TYPE = "aliasType"; + private String aliasType; + + /** Mark when the attribute has been explicitly set. */ + private boolean isSetAliasType = false; + public static final String JSON_PROPERTY_BRAND = "brand"; private String brand; @@ -167,6 +181,88 @@ public class StoredPaymentMethodResource { public StoredPaymentMethodResource() {} + /** + * The alias of the credit card number. Applies only to recurring contracts storing credit card + * details + * + * @param alias The alias of the credit card number. Applies only to recurring contracts storing + * credit card details + * @return the current {@code StoredPaymentMethodResource} instance, allowing for method chaining + */ + public StoredPaymentMethodResource alias(String alias) { + this.alias = alias; + isSetAlias = true; // mark as set + return this; + } + + /** + * The alias of the credit card number. Applies only to recurring contracts storing credit card + * details + * + * @return alias The alias of the credit card number. Applies only to recurring contracts storing + * credit card details + */ + @JsonProperty(JSON_PROPERTY_ALIAS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getAlias() { + return alias; + } + + /** + * The alias of the credit card number. Applies only to recurring contracts storing credit card + * details + * + * @param alias The alias of the credit card number. Applies only to recurring contracts storing + * credit card details + */ + @JsonProperty(JSON_PROPERTY_ALIAS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setAlias(String alias) { + this.alias = alias; + isSetAlias = true; // mark as set + } + + /** + * The alias type of the credit card number. Applies only to recurring contracts storing credit + * card details. + * + * @param aliasType The alias type of the credit card number. Applies only to recurring contracts + * storing credit card details. + * @return the current {@code StoredPaymentMethodResource} instance, allowing for method chaining + */ + public StoredPaymentMethodResource aliasType(String aliasType) { + this.aliasType = aliasType; + isSetAliasType = true; // mark as set + return this; + } + + /** + * The alias type of the credit card number. Applies only to recurring contracts storing credit + * card details. + * + * @return aliasType The alias type of the credit card number. Applies only to recurring contracts + * storing credit card details. + */ + @JsonProperty(JSON_PROPERTY_ALIAS_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getAliasType() { + return aliasType; + } + + /** + * The alias type of the credit card number. Applies only to recurring contracts storing credit + * card details. + * + * @param aliasType The alias type of the credit card number. Applies only to recurring contracts + * storing credit card details. + */ + @JsonProperty(JSON_PROPERTY_ALIAS_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setAliasType(String aliasType) { + this.aliasType = aliasType; + isSetAliasType = true; // mark as set + } + /** * The brand of the card. * @@ -957,7 +1053,11 @@ public boolean equals(Object o) { return false; } StoredPaymentMethodResource storedPaymentMethodResource = (StoredPaymentMethodResource) o; - return Objects.equals(this.brand, storedPaymentMethodResource.brand) + return Objects.equals(this.alias, storedPaymentMethodResource.alias) + && Objects.equals(this.isSetAlias, storedPaymentMethodResource.isSetAlias) + && Objects.equals(this.aliasType, storedPaymentMethodResource.aliasType) + && Objects.equals(this.isSetAliasType, storedPaymentMethodResource.isSetAliasType) + && Objects.equals(this.brand, storedPaymentMethodResource.brand) && Objects.equals(this.isSetBrand, storedPaymentMethodResource.isSetBrand) && Objects.equals(this.cardBin, storedPaymentMethodResource.cardBin) && Objects.equals(this.isSetCardBin, storedPaymentMethodResource.isSetCardBin) @@ -1011,6 +1111,10 @@ public boolean equals(Object o) { @Override public int hashCode() { return Objects.hash( + alias, + isSetAlias, + aliasType, + isSetAliasType, brand, isSetBrand, cardBin, @@ -1055,6 +1159,8 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class StoredPaymentMethodResource {\n"); + sb.append(" alias: ").append(toIndentedString(alias)).append("\n"); + sb.append(" aliasType: ").append(toIndentedString(aliasType)).append("\n"); sb.append(" brand: ").append(toIndentedString(brand)).append("\n"); sb.append(" cardBin: ").append(toIndentedString(cardBin)).append("\n"); sb.append(" expiryMonth: ").append(toIndentedString(expiryMonth)).append("\n"); @@ -1104,6 +1210,12 @@ public Map getExplicitNulls() { Map nulls = new HashMap<>(); + if (isSetAlias) { + addIfNull(nulls, JSON_PROPERTY_ALIAS, this.alias); + } + if (isSetAliasType) { + addIfNull(nulls, JSON_PROPERTY_ALIAS_TYPE, this.aliasType); + } if (isSetBrand) { addIfNull(nulls, JSON_PROPERTY_BRAND, this.brand); } diff --git a/src/main/java/com/adyen/model/checkout/ThreeDS2RequestData.java b/src/main/java/com/adyen/model/checkout/ThreeDS2RequestData.java index 5e3f4f63a..062e1a893 100644 --- a/src/main/java/com/adyen/model/checkout/ThreeDS2RequestData.java +++ b/src/main/java/com/adyen/model/checkout/ThreeDS2RequestData.java @@ -188,8 +188,8 @@ public static AddrMatchEnum fromValue(String value) { private boolean isSetAddrMatch = false; public static final String JSON_PROPERTY_AUTHENTICATION_ONLY = "authenticationOnly"; - @Deprecated // deprecated since Adyen Checkout API v50: Use `threeDSAuthenticationOnly` instead. - private Boolean authenticationOnly; + /* deprecated since Adyen Checkout API v50: Use `threeDSAuthenticationOnly` instead. */ + @Deprecated private Boolean authenticationOnly; /** Mark when the attribute has been explicitly set. */ private boolean isSetAuthenticationOnly = false; @@ -244,9 +244,8 @@ public static ChallengeIndicatorEnum fromValue(String value) { } public static final String JSON_PROPERTY_CHALLENGE_INDICATOR = "challengeIndicator"; - @Deprecated // deprecated since Adyen Checkout API v68: Use `threeDSRequestorChallengeInd` - // instead. - private ChallengeIndicatorEnum challengeIndicator; + /* deprecated since Adyen Checkout API v68: Use `threeDSRequestorChallengeInd` instead. */ + @Deprecated private ChallengeIndicatorEnum challengeIndicator; /** Mark when the attribute has been explicitly set. */ private boolean isSetChallengeIndicator = false; @@ -853,9 +852,9 @@ public void setAddrMatch(AddrMatchEnum addrMatch) { * authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), * and not the payment authorisation. * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v50 Use `threeDSAuthenticationOnly` instead. + * @deprecated since Adyen Checkout API v50 Use `threeDSAuthenticationOnly` instead. */ - @Deprecated // deprecated since Adyen Checkout API v50: Use `threeDSAuthenticationOnly` instead. + @Deprecated public ThreeDS2RequestData authenticationOnly(Boolean authenticationOnly) { this.authenticationOnly = authenticationOnly; isSetAuthenticationOnly = true; // mark as set @@ -870,10 +869,9 @@ public ThreeDS2RequestData authenticationOnly(Boolean authenticationOnly) { * @return authenticationOnly If set to true, you will only perform the [3D Secure 2 * authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), * and not the payment authorisation. - * @deprecated // deprecated since Adyen Checkout API v50: Use `threeDSAuthenticationOnly` - * instead. + * @deprecated since Adyen Checkout API v50 Use `threeDSAuthenticationOnly` instead. */ - @Deprecated // deprecated since Adyen Checkout API v50: Use `threeDSAuthenticationOnly` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_AUTHENTICATION_ONLY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getAuthenticationOnly() { @@ -888,9 +886,9 @@ public Boolean getAuthenticationOnly() { * @param authenticationOnly If set to true, you will only perform the [3D Secure 2 * authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), * and not the payment authorisation. - * @deprecated since Adyen Checkout API v50 Use `threeDSAuthenticationOnly` instead. + * @deprecated since Adyen Checkout API v50 Use `threeDSAuthenticationOnly` instead. */ - @Deprecated // deprecated since Adyen Checkout API v50: Use `threeDSAuthenticationOnly` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_AUTHENTICATION_ONLY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAuthenticationOnly(Boolean authenticationOnly) { @@ -907,10 +905,9 @@ public void setAuthenticationOnly(Boolean authenticationOnly) { * the issuer. Allowed values: * `noPreference` * `requestNoChallenge` * * `requestChallenge` * `requestChallengeAsMandate` * @return the current {@code ThreeDS2RequestData} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v68 Use `threeDSRequestorChallengeInd` instead. + * @deprecated since Adyen Checkout API v68 Use `threeDSRequestorChallengeInd` instead. */ - @Deprecated // deprecated since Adyen Checkout API v68: Use `threeDSRequestorChallengeInd` - // instead. + @Deprecated public ThreeDS2RequestData challengeIndicator(ChallengeIndicatorEnum challengeIndicator) { this.challengeIndicator = challengeIndicator; isSetChallengeIndicator = true; // mark as set @@ -925,11 +922,9 @@ public ThreeDS2RequestData challengeIndicator(ChallengeIndicatorEnum challengeIn * @return challengeIndicator Possibility to specify a preference for receiving a challenge from * the issuer. Allowed values: * `noPreference` * `requestNoChallenge` * * `requestChallenge` * `requestChallengeAsMandate` - * @deprecated // deprecated since Adyen Checkout API v68: Use `threeDSRequestorChallengeInd` - * instead. + * @deprecated since Adyen Checkout API v68 Use `threeDSRequestorChallengeInd` instead. */ - @Deprecated // deprecated since Adyen Checkout API v68: Use `threeDSRequestorChallengeInd` - // instead. + @Deprecated @JsonProperty(JSON_PROPERTY_CHALLENGE_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public ChallengeIndicatorEnum getChallengeIndicator() { @@ -944,10 +939,9 @@ public ChallengeIndicatorEnum getChallengeIndicator() { * @param challengeIndicator Possibility to specify a preference for receiving a challenge from * the issuer. Allowed values: * `noPreference` * `requestNoChallenge` * * `requestChallenge` * `requestChallengeAsMandate` - * @deprecated since Adyen Checkout API v68 Use `threeDSRequestorChallengeInd` instead. + * @deprecated since Adyen Checkout API v68 Use `threeDSRequestorChallengeInd` instead. */ - @Deprecated // deprecated since Adyen Checkout API v68: Use `threeDSRequestorChallengeInd` - // instead. + @Deprecated @JsonProperty(JSON_PROPERTY_CHALLENGE_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setChallengeIndicator(ChallengeIndicatorEnum challengeIndicator) { diff --git a/src/main/java/com/adyen/model/checkout/ThreeDS2RequestFields.java b/src/main/java/com/adyen/model/checkout/ThreeDS2RequestFields.java index b21d1316d..2baa6c7e3 100644 --- a/src/main/java/com/adyen/model/checkout/ThreeDS2RequestFields.java +++ b/src/main/java/com/adyen/model/checkout/ThreeDS2RequestFields.java @@ -185,8 +185,9 @@ public static AddrMatchEnum fromValue(String value) { private boolean isSetAddrMatch = false; public static final String JSON_PROPERTY_AUTHENTICATION_ONLY = "authenticationOnly"; - @Deprecated // deprecated since Adyen Checkout API v50: Use `threeDSAuthenticationOnly` instead. - private Boolean authenticationOnly; + /* deprecated since Adyen Checkout API v50: - If your version is between 50 and 69, use `threeDSAuthenticationOnly` instead. + - If your version is 70 or later, use `authenticationData.authenticationOnly` instead. */ + @Deprecated private Boolean authenticationOnly; /** Mark when the attribute has been explicitly set. */ private boolean isSetAuthenticationOnly = false; @@ -241,9 +242,8 @@ public static ChallengeIndicatorEnum fromValue(String value) { } public static final String JSON_PROPERTY_CHALLENGE_INDICATOR = "challengeIndicator"; - @Deprecated // deprecated since Adyen Checkout API v68: Use `threeDSRequestorChallengeInd` - // instead. - private ChallengeIndicatorEnum challengeIndicator; + /* deprecated since Adyen Checkout API v68: Use `threeDSRequestorChallengeInd` instead. */ + @Deprecated private ChallengeIndicatorEnum challengeIndicator; /** Mark when the attribute has been explicitly set. */ private boolean isSetChallengeIndicator = false; @@ -832,9 +832,11 @@ public void setAddrMatch(AddrMatchEnum addrMatch) { * authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), * and not the payment authorisation. * @return the current {@code ThreeDS2RequestFields} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v50 Use `threeDSAuthenticationOnly` instead. + * @deprecated since Adyen Checkout API v50 - If your version is between 50 and 69, use + * `threeDSAuthenticationOnly` instead. - If your version is 70 or later, use + * `authenticationData.authenticationOnly` instead. */ - @Deprecated // deprecated since Adyen Checkout API v50: Use `threeDSAuthenticationOnly` instead. + @Deprecated public ThreeDS2RequestFields authenticationOnly(Boolean authenticationOnly) { this.authenticationOnly = authenticationOnly; isSetAuthenticationOnly = true; // mark as set @@ -849,10 +851,11 @@ public ThreeDS2RequestFields authenticationOnly(Boolean authenticationOnly) { * @return authenticationOnly If set to true, you will only perform the [3D Secure 2 * authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), * and not the payment authorisation. - * @deprecated // deprecated since Adyen Checkout API v50: Use `threeDSAuthenticationOnly` - * instead. + * @deprecated since Adyen Checkout API v50 - If your version is between 50 and 69, use + * `threeDSAuthenticationOnly` instead. - If your version is 70 or later, use + * `authenticationData.authenticationOnly` instead. */ - @Deprecated // deprecated since Adyen Checkout API v50: Use `threeDSAuthenticationOnly` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_AUTHENTICATION_ONLY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getAuthenticationOnly() { @@ -867,9 +870,11 @@ public Boolean getAuthenticationOnly() { * @param authenticationOnly If set to true, you will only perform the [3D Secure 2 * authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), * and not the payment authorisation. - * @deprecated since Adyen Checkout API v50 Use `threeDSAuthenticationOnly` instead. + * @deprecated since Adyen Checkout API v50 - If your version is between 50 and 69, use + * `threeDSAuthenticationOnly` instead. - If your version is 70 or later, use + * `authenticationData.authenticationOnly` instead. */ - @Deprecated // deprecated since Adyen Checkout API v50: Use `threeDSAuthenticationOnly` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_AUTHENTICATION_ONLY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAuthenticationOnly(Boolean authenticationOnly) { @@ -886,10 +891,9 @@ public void setAuthenticationOnly(Boolean authenticationOnly) { * the issuer. Allowed values: * `noPreference` * `requestNoChallenge` * * `requestChallenge` * `requestChallengeAsMandate` * @return the current {@code ThreeDS2RequestFields} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v68 Use `threeDSRequestorChallengeInd` instead. + * @deprecated since Adyen Checkout API v68 Use `threeDSRequestorChallengeInd` instead. */ - @Deprecated // deprecated since Adyen Checkout API v68: Use `threeDSRequestorChallengeInd` - // instead. + @Deprecated public ThreeDS2RequestFields challengeIndicator(ChallengeIndicatorEnum challengeIndicator) { this.challengeIndicator = challengeIndicator; isSetChallengeIndicator = true; // mark as set @@ -904,11 +908,9 @@ public ThreeDS2RequestFields challengeIndicator(ChallengeIndicatorEnum challenge * @return challengeIndicator Possibility to specify a preference for receiving a challenge from * the issuer. Allowed values: * `noPreference` * `requestNoChallenge` * * `requestChallenge` * `requestChallengeAsMandate` - * @deprecated // deprecated since Adyen Checkout API v68: Use `threeDSRequestorChallengeInd` - * instead. + * @deprecated since Adyen Checkout API v68 Use `threeDSRequestorChallengeInd` instead. */ - @Deprecated // deprecated since Adyen Checkout API v68: Use `threeDSRequestorChallengeInd` - // instead. + @Deprecated @JsonProperty(JSON_PROPERTY_CHALLENGE_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public ChallengeIndicatorEnum getChallengeIndicator() { @@ -923,10 +925,9 @@ public ChallengeIndicatorEnum getChallengeIndicator() { * @param challengeIndicator Possibility to specify a preference for receiving a challenge from * the issuer. Allowed values: * `noPreference` * `requestNoChallenge` * * `requestChallenge` * `requestChallengeAsMandate` - * @deprecated since Adyen Checkout API v68 Use `threeDSRequestorChallengeInd` instead. + * @deprecated since Adyen Checkout API v68 Use `threeDSRequestorChallengeInd` instead. */ - @Deprecated // deprecated since Adyen Checkout API v68: Use `threeDSRequestorChallengeInd` - // instead. + @Deprecated @JsonProperty(JSON_PROPERTY_CHALLENGE_INDICATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setChallengeIndicator(ChallengeIndicatorEnum challengeIndicator) { diff --git a/src/main/java/com/adyen/model/checkout/TokenMandate.java b/src/main/java/com/adyen/model/checkout/TokenMandate.java index ce2bd5fda..659e3435e 100644 --- a/src/main/java/com/adyen/model/checkout/TokenMandate.java +++ b/src/main/java/com/adyen/model/checkout/TokenMandate.java @@ -36,8 +36,12 @@ TokenMandate.JSON_PROPERTY_FREQUENCY, TokenMandate.JSON_PROPERTY_MANDATE_ID, TokenMandate.JSON_PROPERTY_MASKED_ACCOUNT_ID, + TokenMandate.JSON_PROPERTY_MIN_AMOUNT, TokenMandate.JSON_PROPERTY_PROVIDER_ID, + TokenMandate.JSON_PROPERTY_RECURRING_AMOUNT, + TokenMandate.JSON_PROPERTY_RECURRING_STATEMENT, TokenMandate.JSON_PROPERTY_REMARKS, + TokenMandate.JSON_PROPERTY_RETRY_POLICY, TokenMandate.JSON_PROPERTY_STARTS_AT, TokenMandate.JSON_PROPERTY_STATUS, TokenMandate.JSON_PROPERTY_TX_VARIANT @@ -257,18 +261,83 @@ public static FrequencyEnum fromValue(String value) { /** Mark when the attribute has been explicitly set. */ private boolean isSetMaskedAccountId = false; + public static final String JSON_PROPERTY_MIN_AMOUNT = "minAmount"; + private String minAmount; + + /** Mark when the attribute has been explicitly set. */ + private boolean isSetMinAmount = false; + public static final String JSON_PROPERTY_PROVIDER_ID = "providerId"; private String providerId; /** Mark when the attribute has been explicitly set. */ private boolean isSetProviderId = false; + public static final String JSON_PROPERTY_RECURRING_AMOUNT = "recurringAmount"; + private String recurringAmount; + + /** Mark when the attribute has been explicitly set. */ + private boolean isSetRecurringAmount = false; + + public static final String JSON_PROPERTY_RECURRING_STATEMENT = "recurringStatement"; + private String recurringStatement; + + /** Mark when the attribute has been explicitly set. */ + private boolean isSetRecurringStatement = false; + public static final String JSON_PROPERTY_REMARKS = "remarks"; private String remarks; /** Mark when the attribute has been explicitly set. */ private boolean isSetRemarks = false; + /** When set to true, you can retry for failed recurring payments. The default value is true. */ + public enum RetryPolicyEnum { + TRUE(String.valueOf("true")), + + FALSE(String.valueOf("false")); + + private static final Logger LOG = Logger.getLogger(RetryPolicyEnum.class.getName()); + + private String value; + + RetryPolicyEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static RetryPolicyEnum fromValue(String value) { + for (RetryPolicyEnum b : RetryPolicyEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + // handling unexpected value + LOG.warning( + "RetryPolicyEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(RetryPolicyEnum.values())); + return null; + } + } + + public static final String JSON_PROPERTY_RETRY_POLICY = "retryPolicy"; + private RetryPolicyEnum retryPolicy; + + /** Mark when the attribute has been explicitly set. */ + private boolean isSetRetryPolicy = false; + public static final String JSON_PROPERTY_STARTS_AT = "startsAt"; private String startsAt; @@ -734,6 +803,53 @@ public void setMaskedAccountId(String maskedAccountId) { isSetMaskedAccountId = true; // mark as set } + /** + * For a billing plan where the payment amounts are variable, the minimum amount to charge the + * shopper for each recurring payment. When a shopper approves the billing plan, they can also + * specify a maximum amount in their banking app. + * + * @param minAmount For a billing plan where the payment amounts are variable, the minimum amount + * to charge the shopper for each recurring payment. When a shopper approves the billing plan, + * they can also specify a maximum amount in their banking app. + * @return the current {@code TokenMandate} instance, allowing for method chaining + */ + public TokenMandate minAmount(String minAmount) { + this.minAmount = minAmount; + isSetMinAmount = true; // mark as set + return this; + } + + /** + * For a billing plan where the payment amounts are variable, the minimum amount to charge the + * shopper for each recurring payment. When a shopper approves the billing plan, they can also + * specify a maximum amount in their banking app. + * + * @return minAmount For a billing plan where the payment amounts are variable, the minimum amount + * to charge the shopper for each recurring payment. When a shopper approves the billing plan, + * they can also specify a maximum amount in their banking app. + */ + @JsonProperty(JSON_PROPERTY_MIN_AMOUNT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getMinAmount() { + return minAmount; + } + + /** + * For a billing plan where the payment amounts are variable, the minimum amount to charge the + * shopper for each recurring payment. When a shopper approves the billing plan, they can also + * specify a maximum amount in their banking app. + * + * @param minAmount For a billing plan where the payment amounts are variable, the minimum amount + * to charge the shopper for each recurring payment. When a shopper approves the billing plan, + * they can also specify a maximum amount in their banking app. + */ + @JsonProperty(JSON_PROPERTY_MIN_AMOUNT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMinAmount(String minAmount) { + this.minAmount = minAmount; + isSetMinAmount = true; // mark as set + } + /** * The provider-specific identifier for this mandate. * @@ -769,6 +885,94 @@ public void setProviderId(String providerId) { isSetProviderId = true; // mark as set } + /** + * For a billing plan where the payment amount is fixed, the amount the shopper will be charged + * for each recurring payment. + * + * @param recurringAmount For a billing plan where the payment amount is fixed, the amount the + * shopper will be charged for each recurring payment. + * @return the current {@code TokenMandate} instance, allowing for method chaining + */ + public TokenMandate recurringAmount(String recurringAmount) { + this.recurringAmount = recurringAmount; + isSetRecurringAmount = true; // mark as set + return this; + } + + /** + * For a billing plan where the payment amount is fixed, the amount the shopper will be charged + * for each recurring payment. + * + * @return recurringAmount For a billing plan where the payment amount is fixed, the amount the + * shopper will be charged for each recurring payment. + */ + @JsonProperty(JSON_PROPERTY_RECURRING_AMOUNT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getRecurringAmount() { + return recurringAmount; + } + + /** + * For a billing plan where the payment amount is fixed, the amount the shopper will be charged + * for each recurring payment. + * + * @param recurringAmount For a billing plan where the payment amount is fixed, the amount the + * shopper will be charged for each recurring payment. + */ + @JsonProperty(JSON_PROPERTY_RECURRING_AMOUNT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setRecurringAmount(String recurringAmount) { + this.recurringAmount = recurringAmount; + isSetRecurringAmount = true; // mark as set + } + + /** + * The text that will be shown on the shopper's bank statement for the recurring payments. We + * recommend to add a descriptive text about the subscription to let your shoppers recognize your + * recurring payments. Maximum length: 35 characters. + * + * @param recurringStatement The text that will be shown on the shopper's bank statement for + * the recurring payments. We recommend to add a descriptive text about the subscription to + * let your shoppers recognize your recurring payments. Maximum length: 35 characters. + * @return the current {@code TokenMandate} instance, allowing for method chaining + */ + public TokenMandate recurringStatement(String recurringStatement) { + this.recurringStatement = recurringStatement; + isSetRecurringStatement = true; // mark as set + return this; + } + + /** + * The text that will be shown on the shopper's bank statement for the recurring payments. We + * recommend to add a descriptive text about the subscription to let your shoppers recognize your + * recurring payments. Maximum length: 35 characters. + * + * @return recurringStatement The text that will be shown on the shopper's bank statement for + * the recurring payments. We recommend to add a descriptive text about the subscription to + * let your shoppers recognize your recurring payments. Maximum length: 35 characters. + */ + @JsonProperty(JSON_PROPERTY_RECURRING_STATEMENT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getRecurringStatement() { + return recurringStatement; + } + + /** + * The text that will be shown on the shopper's bank statement for the recurring payments. We + * recommend to add a descriptive text about the subscription to let your shoppers recognize your + * recurring payments. Maximum length: 35 characters. + * + * @param recurringStatement The text that will be shown on the shopper's bank statement for + * the recurring payments. We recommend to add a descriptive text about the subscription to + * let your shoppers recognize your recurring payments. Maximum length: 35 characters. + */ + @JsonProperty(JSON_PROPERTY_RECURRING_STATEMENT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setRecurringStatement(String recurringStatement) { + this.recurringStatement = recurringStatement; + isSetRecurringStatement = true; // mark as set + } + /** * Additional remarks or notes about the mandate. * @@ -804,6 +1008,44 @@ public void setRemarks(String remarks) { isSetRemarks = true; // mark as set } + /** + * When set to true, you can retry for failed recurring payments. The default value is true. + * + * @param retryPolicy When set to true, you can retry for failed recurring payments. The default + * value is true. + * @return the current {@code TokenMandate} instance, allowing for method chaining + */ + public TokenMandate retryPolicy(RetryPolicyEnum retryPolicy) { + this.retryPolicy = retryPolicy; + isSetRetryPolicy = true; // mark as set + return this; + } + + /** + * When set to true, you can retry for failed recurring payments. The default value is true. + * + * @return retryPolicy When set to true, you can retry for failed recurring payments. The default + * value is true. + */ + @JsonProperty(JSON_PROPERTY_RETRY_POLICY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public RetryPolicyEnum getRetryPolicy() { + return retryPolicy; + } + + /** + * When set to true, you can retry for failed recurring payments. The default value is true. + * + * @param retryPolicy When set to true, you can retry for failed recurring payments. The default + * value is true. + */ + @JsonProperty(JSON_PROPERTY_RETRY_POLICY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setRetryPolicy(RetryPolicyEnum retryPolicy) { + this.retryPolicy = retryPolicy; + isSetRetryPolicy = true; // mark as set + } + /** * Start date of the billing plan, in YYYY-MM-DD format. By default, the transaction date. * @@ -964,10 +1206,18 @@ public boolean equals(Object o) { && Objects.equals(this.isSetMandateId, tokenMandate.isSetMandateId) && Objects.equals(this.maskedAccountId, tokenMandate.maskedAccountId) && Objects.equals(this.isSetMaskedAccountId, tokenMandate.isSetMaskedAccountId) + && Objects.equals(this.minAmount, tokenMandate.minAmount) + && Objects.equals(this.isSetMinAmount, tokenMandate.isSetMinAmount) && Objects.equals(this.providerId, tokenMandate.providerId) && Objects.equals(this.isSetProviderId, tokenMandate.isSetProviderId) + && Objects.equals(this.recurringAmount, tokenMandate.recurringAmount) + && Objects.equals(this.isSetRecurringAmount, tokenMandate.isSetRecurringAmount) + && Objects.equals(this.recurringStatement, tokenMandate.recurringStatement) + && Objects.equals(this.isSetRecurringStatement, tokenMandate.isSetRecurringStatement) && Objects.equals(this.remarks, tokenMandate.remarks) && Objects.equals(this.isSetRemarks, tokenMandate.isSetRemarks) + && Objects.equals(this.retryPolicy, tokenMandate.retryPolicy) + && Objects.equals(this.isSetRetryPolicy, tokenMandate.isSetRetryPolicy) && Objects.equals(this.startsAt, tokenMandate.startsAt) && Objects.equals(this.isSetStartsAt, tokenMandate.isSetStartsAt) && Objects.equals(this.status, tokenMandate.status) @@ -1001,10 +1251,18 @@ public int hashCode() { isSetMandateId, maskedAccountId, isSetMaskedAccountId, + minAmount, + isSetMinAmount, providerId, isSetProviderId, + recurringAmount, + isSetRecurringAmount, + recurringStatement, + isSetRecurringStatement, remarks, isSetRemarks, + retryPolicy, + isSetRetryPolicy, startsAt, isSetStartsAt, status, @@ -1030,8 +1288,12 @@ public String toString() { sb.append(" frequency: ").append(toIndentedString(frequency)).append("\n"); sb.append(" mandateId: ").append(toIndentedString(mandateId)).append("\n"); sb.append(" maskedAccountId: ").append(toIndentedString(maskedAccountId)).append("\n"); + sb.append(" minAmount: ").append(toIndentedString(minAmount)).append("\n"); sb.append(" providerId: ").append(toIndentedString(providerId)).append("\n"); + sb.append(" recurringAmount: ").append(toIndentedString(recurringAmount)).append("\n"); + sb.append(" recurringStatement: ").append(toIndentedString(recurringStatement)).append("\n"); sb.append(" remarks: ").append(toIndentedString(remarks)).append("\n"); + sb.append(" retryPolicy: ").append(toIndentedString(retryPolicy)).append("\n"); sb.append(" startsAt: ").append(toIndentedString(startsAt)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" txVariant: ").append(toIndentedString(txVariant)).append("\n"); @@ -1092,12 +1354,24 @@ public Map getExplicitNulls() { if (isSetMaskedAccountId) { addIfNull(nulls, JSON_PROPERTY_MASKED_ACCOUNT_ID, this.maskedAccountId); } + if (isSetMinAmount) { + addIfNull(nulls, JSON_PROPERTY_MIN_AMOUNT, this.minAmount); + } if (isSetProviderId) { addIfNull(nulls, JSON_PROPERTY_PROVIDER_ID, this.providerId); } + if (isSetRecurringAmount) { + addIfNull(nulls, JSON_PROPERTY_RECURRING_AMOUNT, this.recurringAmount); + } + if (isSetRecurringStatement) { + addIfNull(nulls, JSON_PROPERTY_RECURRING_STATEMENT, this.recurringStatement); + } if (isSetRemarks) { addIfNull(nulls, JSON_PROPERTY_REMARKS, this.remarks); } + if (isSetRetryPolicy) { + addIfNull(nulls, JSON_PROPERTY_RETRY_POLICY, this.retryPolicy); + } if (isSetStartsAt) { addIfNull(nulls, JSON_PROPERTY_STARTS_AT, this.startsAt); } diff --git a/src/main/java/com/adyen/model/checkout/TwintDetails.java b/src/main/java/com/adyen/model/checkout/TwintDetails.java index ac1e8dde1..22a256aad 100644 --- a/src/main/java/com/adyen/model/checkout/TwintDetails.java +++ b/src/main/java/com/adyen/model/checkout/TwintDetails.java @@ -40,8 +40,8 @@ public class TwintDetails { private boolean isSetCheckoutAttemptId = false; public static final String JSON_PROPERTY_RECURRING_DETAIL_REFERENCE = "recurringDetailReference"; - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. - private String recurringDetailReference; + /* deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ + @Deprecated private String recurringDetailReference; /** Mark when the attribute has been explicitly set. */ private boolean isSetRecurringDetailReference = false; @@ -159,9 +159,9 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { * @param recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. * @return the current {@code TwintDetails} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated public TwintDetails recurringDetailReference(String recurringDetailReference) { this.recurringDetailReference = recurringDetailReference; isSetRecurringDetailReference = true; // mark as set @@ -174,9 +174,9 @@ public TwintDetails recurringDetailReference(String recurringDetailReference) { * * @return recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. - * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getRecurringDetailReference() { @@ -189,9 +189,9 @@ public String getRecurringDetailReference() { * * @param recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRecurringDetailReference(String recurringDetailReference) { diff --git a/src/main/java/com/adyen/model/checkout/UpiCollectDetails.java b/src/main/java/com/adyen/model/checkout/UpiCollectDetails.java index 90fc04f96..82be9cd01 100644 --- a/src/main/java/com/adyen/model/checkout/UpiCollectDetails.java +++ b/src/main/java/com/adyen/model/checkout/UpiCollectDetails.java @@ -48,8 +48,8 @@ public class UpiCollectDetails { private boolean isSetCheckoutAttemptId = false; public static final String JSON_PROPERTY_RECURRING_DETAIL_REFERENCE = "recurringDetailReference"; - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. - private String recurringDetailReference; + /* deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ + @Deprecated private String recurringDetailReference; /** Mark when the attribute has been explicitly set. */ private boolean isSetRecurringDetailReference = false; @@ -218,9 +218,9 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { * @param recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. * @return the current {@code UpiCollectDetails} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated public UpiCollectDetails recurringDetailReference(String recurringDetailReference) { this.recurringDetailReference = recurringDetailReference; isSetRecurringDetailReference = true; // mark as set @@ -233,9 +233,9 @@ public UpiCollectDetails recurringDetailReference(String recurringDetailReferenc * * @return recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. - * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getRecurringDetailReference() { @@ -248,9 +248,9 @@ public String getRecurringDetailReference() { * * @param recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRecurringDetailReference(String recurringDetailReference) { diff --git a/src/main/java/com/adyen/model/checkout/UpiIntentDetails.java b/src/main/java/com/adyen/model/checkout/UpiIntentDetails.java index 81b18bad6..6e9986b94 100644 --- a/src/main/java/com/adyen/model/checkout/UpiIntentDetails.java +++ b/src/main/java/com/adyen/model/checkout/UpiIntentDetails.java @@ -54,8 +54,8 @@ public class UpiIntentDetails { private boolean isSetCheckoutAttemptId = false; public static final String JSON_PROPERTY_RECURRING_DETAIL_REFERENCE = "recurringDetailReference"; - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. - private String recurringDetailReference; + /* deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ + @Deprecated private String recurringDetailReference; /** Mark when the attribute has been explicitly set. */ private boolean isSetRecurringDetailReference = false; @@ -253,9 +253,9 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { * @param recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. * @return the current {@code UpiIntentDetails} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated public UpiIntentDetails recurringDetailReference(String recurringDetailReference) { this.recurringDetailReference = recurringDetailReference; isSetRecurringDetailReference = true; // mark as set @@ -268,9 +268,9 @@ public UpiIntentDetails recurringDetailReference(String recurringDetailReference * * @return recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. - * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getRecurringDetailReference() { @@ -283,9 +283,9 @@ public String getRecurringDetailReference() { * * @param recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRecurringDetailReference(String recurringDetailReference) { diff --git a/src/main/java/com/adyen/model/checkout/UpiQrDetails.java b/src/main/java/com/adyen/model/checkout/UpiQrDetails.java index 1bc75908f..2498177ce 100644 --- a/src/main/java/com/adyen/model/checkout/UpiQrDetails.java +++ b/src/main/java/com/adyen/model/checkout/UpiQrDetails.java @@ -47,8 +47,8 @@ public class UpiQrDetails { private boolean isSetCheckoutAttemptId = false; public static final String JSON_PROPERTY_RECURRING_DETAIL_REFERENCE = "recurringDetailReference"; - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. - private String recurringDetailReference; + /* deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ + @Deprecated private String recurringDetailReference; /** Mark when the attribute has been explicitly set. */ private boolean isSetRecurringDetailReference = false; @@ -211,9 +211,9 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { * @param recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. * @return the current {@code UpiQrDetails} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated public UpiQrDetails recurringDetailReference(String recurringDetailReference) { this.recurringDetailReference = recurringDetailReference; isSetRecurringDetailReference = true; // mark as set @@ -226,9 +226,9 @@ public UpiQrDetails recurringDetailReference(String recurringDetailReference) { * * @return recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. - * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getRecurringDetailReference() { @@ -241,9 +241,9 @@ public String getRecurringDetailReference() { * * @param recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRecurringDetailReference(String recurringDetailReference) { diff --git a/src/main/java/com/adyen/model/checkout/VippsDetails.java b/src/main/java/com/adyen/model/checkout/VippsDetails.java index ec847cbb8..8682c86b3 100644 --- a/src/main/java/com/adyen/model/checkout/VippsDetails.java +++ b/src/main/java/com/adyen/model/checkout/VippsDetails.java @@ -40,8 +40,8 @@ public class VippsDetails { private boolean isSetCheckoutAttemptId = false; public static final String JSON_PROPERTY_RECURRING_DETAIL_REFERENCE = "recurringDetailReference"; - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. - private String recurringDetailReference; + /* deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ + @Deprecated private String recurringDetailReference; /** Mark when the attribute has been explicitly set. */ private boolean isSetRecurringDetailReference = false; @@ -159,9 +159,9 @@ public void setCheckoutAttemptId(String checkoutAttemptId) { * @param recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. * @return the current {@code VippsDetails} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated public VippsDetails recurringDetailReference(String recurringDetailReference) { this.recurringDetailReference = recurringDetailReference; isSetRecurringDetailReference = true; // mark as set @@ -174,9 +174,9 @@ public VippsDetails recurringDetailReference(String recurringDetailReference) { * * @return recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. - * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getRecurringDetailReference() { @@ -189,9 +189,9 @@ public String getRecurringDetailReference() { * * @param recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRecurringDetailReference(String recurringDetailReference) { diff --git a/src/main/java/com/adyen/model/checkout/WeChatPayMiniProgramDetails.java b/src/main/java/com/adyen/model/checkout/WeChatPayMiniProgramDetails.java index 507b1157e..90b1acdf4 100644 --- a/src/main/java/com/adyen/model/checkout/WeChatPayMiniProgramDetails.java +++ b/src/main/java/com/adyen/model/checkout/WeChatPayMiniProgramDetails.java @@ -53,8 +53,8 @@ public class WeChatPayMiniProgramDetails { private boolean isSetOpenid = false; public static final String JSON_PROPERTY_RECURRING_DETAIL_REFERENCE = "recurringDetailReference"; - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. - private String recurringDetailReference; + /* deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ + @Deprecated private String recurringDetailReference; /** Mark when the attribute has been explicitly set. */ private boolean isSetRecurringDetailReference = false; @@ -236,9 +236,9 @@ public void setOpenid(String openid) { * @param recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. * @return the current {@code WeChatPayMiniProgramDetails} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated public WeChatPayMiniProgramDetails recurringDetailReference(String recurringDetailReference) { this.recurringDetailReference = recurringDetailReference; isSetRecurringDetailReference = true; // mark as set @@ -251,9 +251,9 @@ public WeChatPayMiniProgramDetails recurringDetailReference(String recurringDeta * * @return recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. - * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getRecurringDetailReference() { @@ -266,9 +266,9 @@ public String getRecurringDetailReference() { * * @param recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRecurringDetailReference(String recurringDetailReference) { diff --git a/src/main/java/com/adyen/model/checkout/ZipDetails.java b/src/main/java/com/adyen/model/checkout/ZipDetails.java index f7253b5eb..d0a528f57 100644 --- a/src/main/java/com/adyen/model/checkout/ZipDetails.java +++ b/src/main/java/com/adyen/model/checkout/ZipDetails.java @@ -46,8 +46,8 @@ public class ZipDetails { private boolean isSetClickAndCollect = false; public static final String JSON_PROPERTY_RECURRING_DETAIL_REFERENCE = "recurringDetailReference"; - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. - private String recurringDetailReference; + /* deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. */ + @Deprecated private String recurringDetailReference; /** Mark when the attribute has been explicitly set. */ private boolean isSetRecurringDetailReference = false; @@ -202,9 +202,9 @@ public void setClickAndCollect(String clickAndCollect) { * @param recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. * @return the current {@code ZipDetails} instance, allowing for method chaining - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated public ZipDetails recurringDetailReference(String recurringDetailReference) { this.recurringDetailReference = recurringDetailReference; isSetRecurringDetailReference = true; // mark as set @@ -217,9 +217,9 @@ public ZipDetails recurringDetailReference(String recurringDetailReference) { * * @return recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. - * @deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getRecurringDetailReference() { @@ -232,9 +232,9 @@ public String getRecurringDetailReference() { * * @param recurringDetailReference This is the `recurringDetailReference` returned in * the response when you created the token. - * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. + * @deprecated since Adyen Checkout API v49 Use `storedPaymentMethodId` instead. */ - @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead. + @Deprecated @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRecurringDetailReference(String recurringDetailReference) {