diff --git a/src/main/java/com/adyen/model/checkout/CardDetails.java b/src/main/java/com/adyen/model/checkout/CardDetails.java index 1b73e19a6..75f8934ed 100644 --- a/src/main/java/com/adyen/model/checkout/CardDetails.java +++ b/src/main/java/com/adyen/model/checkout/CardDetails.java @@ -577,10 +577,10 @@ public CardDetails networkPaymentReference(String networkPaymentReference) { } /** - * The network token reference. This is the [`networkTxReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_additionalData-ResponseAdditionalDataCommon-networkTxReference) from the response to the first payment. + * The transaction identifier from card schemes. This is the [`networkTxReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_additionalData-ResponseAdditionalDataCommon-networkTxReference) from the response to the first payment. * @return networkPaymentReference **/ - @ApiModelProperty(value = "The network token reference. This is the [`networkTxReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_additionalData-ResponseAdditionalDataCommon-networkTxReference) from the response to the first payment.") + @ApiModelProperty(value = "The transaction identifier from card schemes. This is the [`networkTxReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_additionalData-ResponseAdditionalDataCommon-networkTxReference) from the response to the first payment.") @JsonProperty(JSON_PROPERTY_NETWORK_PAYMENT_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -590,7 +590,7 @@ public String getNetworkPaymentReference() { /** - * The network token reference. This is the [`networkTxReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_additionalData-ResponseAdditionalDataCommon-networkTxReference) from the response to the first payment. + * The transaction identifier from card schemes. This is the [`networkTxReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_additionalData-ResponseAdditionalDataCommon-networkTxReference) from the response to the first payment. * * @param networkPaymentReference */ diff --git a/src/main/java/com/adyen/model/checkout/CardDonations.java b/src/main/java/com/adyen/model/checkout/CardDonations.java index 31fe77c9e..4dcc839e0 100644 --- a/src/main/java/com/adyen/model/checkout/CardDonations.java +++ b/src/main/java/com/adyen/model/checkout/CardDonations.java @@ -577,10 +577,10 @@ public CardDonations networkPaymentReference(String networkPaymentReference) { } /** - * The network token reference. This is the [`networkTxReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_additionalData-ResponseAdditionalDataCommon-networkTxReference) from the response to the first payment. + * The transaction identifier from card schemes. This is the [`networkTxReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_additionalData-ResponseAdditionalDataCommon-networkTxReference) from the response to the first payment. * @return networkPaymentReference **/ - @ApiModelProperty(value = "The network token reference. This is the [`networkTxReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_additionalData-ResponseAdditionalDataCommon-networkTxReference) from the response to the first payment.") + @ApiModelProperty(value = "The transaction identifier from card schemes. This is the [`networkTxReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_additionalData-ResponseAdditionalDataCommon-networkTxReference) from the response to the first payment.") @JsonProperty(JSON_PROPERTY_NETWORK_PAYMENT_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -590,7 +590,7 @@ public String getNetworkPaymentReference() { /** - * The network token reference. This is the [`networkTxReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_additionalData-ResponseAdditionalDataCommon-networkTxReference) from the response to the first payment. + * The transaction identifier from card schemes. This is the [`networkTxReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_additionalData-ResponseAdditionalDataCommon-networkTxReference) from the response to the first payment. * * @param networkPaymentReference */ diff --git a/src/main/java/com/adyen/model/checkout/CheckoutBankTransferAction.java b/src/main/java/com/adyen/model/checkout/CheckoutBankTransferAction.java new file mode 100644 index 000000000..5d094c5e2 --- /dev/null +++ b/src/main/java/com/adyen/model/checkout/CheckoutBankTransferAction.java @@ -0,0 +1,491 @@ +/* + * 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 java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.adyen.model.checkout.Amount; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + + +/** + * CheckoutBankTransferAction + */ +@JsonPropertyOrder({ + CheckoutBankTransferAction.JSON_PROPERTY_BENEFICIARY, + CheckoutBankTransferAction.JSON_PROPERTY_BIC, + CheckoutBankTransferAction.JSON_PROPERTY_DOWNLOAD_URL, + CheckoutBankTransferAction.JSON_PROPERTY_IBAN, + CheckoutBankTransferAction.JSON_PROPERTY_PAYMENT_METHOD_TYPE, + CheckoutBankTransferAction.JSON_PROPERTY_REFERENCE, + CheckoutBankTransferAction.JSON_PROPERTY_SHOPPER_EMAIL, + CheckoutBankTransferAction.JSON_PROPERTY_TOTAL_AMOUNT, + CheckoutBankTransferAction.JSON_PROPERTY_TYPE, + CheckoutBankTransferAction.JSON_PROPERTY_URL +}) + +public class CheckoutBankTransferAction { + public static final String JSON_PROPERTY_BENEFICIARY = "beneficiary"; + private String beneficiary; + + public static final String JSON_PROPERTY_BIC = "bic"; + private String bic; + + public static final String JSON_PROPERTY_DOWNLOAD_URL = "downloadUrl"; + private String downloadUrl; + + public static final String JSON_PROPERTY_IBAN = "iban"; + private String iban; + + public static final String JSON_PROPERTY_PAYMENT_METHOD_TYPE = "paymentMethodType"; + private String paymentMethodType; + + public static final String JSON_PROPERTY_REFERENCE = "reference"; + private String reference; + + public static final String JSON_PROPERTY_SHOPPER_EMAIL = "shopperEmail"; + private String shopperEmail; + + public static final String JSON_PROPERTY_TOTAL_AMOUNT = "totalAmount"; + private Amount totalAmount; + + /** + * The type of the action. + */ + public enum TypeEnum { + BANKTRANSFER("bankTransfer"); + + 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; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_TYPE = "type"; + private TypeEnum type; + + public static final String JSON_PROPERTY_URL = "url"; + private String url; + + public CheckoutBankTransferAction() { + } + + public CheckoutBankTransferAction beneficiary(String beneficiary) { + this.beneficiary = beneficiary; + return this; + } + + /** + * The name of the account holder. + * @return beneficiary + **/ + @ApiModelProperty(value = "The name of the account holder.") + @JsonProperty(JSON_PROPERTY_BENEFICIARY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getBeneficiary() { + return beneficiary; + } + + + /** + * The name of the account holder. + * + * @param beneficiary + */ + @JsonProperty(JSON_PROPERTY_BENEFICIARY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setBeneficiary(String beneficiary) { + this.beneficiary = beneficiary; + } + + + public CheckoutBankTransferAction bic(String bic) { + this.bic = bic; + return this; + } + + /** + * The BIC of the IBAN. + * @return bic + **/ + @ApiModelProperty(value = "The BIC of the IBAN.") + @JsonProperty(JSON_PROPERTY_BIC) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getBic() { + return bic; + } + + + /** + * The BIC of the IBAN. + * + * @param bic + */ + @JsonProperty(JSON_PROPERTY_BIC) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setBic(String bic) { + this.bic = bic; + } + + + public CheckoutBankTransferAction downloadUrl(String downloadUrl) { + this.downloadUrl = downloadUrl; + return this; + } + + /** + * The url to download payment details with. + * @return downloadUrl + **/ + @ApiModelProperty(value = "The url to download payment details with.") + @JsonProperty(JSON_PROPERTY_DOWNLOAD_URL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getDownloadUrl() { + return downloadUrl; + } + + + /** + * The url to download payment details with. + * + * @param downloadUrl + */ + @JsonProperty(JSON_PROPERTY_DOWNLOAD_URL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDownloadUrl(String downloadUrl) { + this.downloadUrl = downloadUrl; + } + + + public CheckoutBankTransferAction iban(String iban) { + this.iban = iban; + return this; + } + + /** + * The IBAN of the bank transfer. + * @return iban + **/ + @ApiModelProperty(value = "The IBAN of the bank transfer.") + @JsonProperty(JSON_PROPERTY_IBAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getIban() { + return iban; + } + + + /** + * The IBAN of the bank transfer. + * + * @param iban + */ + @JsonProperty(JSON_PROPERTY_IBAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIban(String iban) { + this.iban = iban; + } + + + public CheckoutBankTransferAction paymentMethodType(String paymentMethodType) { + this.paymentMethodType = paymentMethodType; + return this; + } + + /** + * Specifies the payment method. + * @return paymentMethodType + **/ + @ApiModelProperty(value = "Specifies the payment method.") + @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getPaymentMethodType() { + return paymentMethodType; + } + + + /** + * Specifies the payment method. + * + * @param paymentMethodType + */ + @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setPaymentMethodType(String paymentMethodType) { + this.paymentMethodType = paymentMethodType; + } + + + public CheckoutBankTransferAction reference(String reference) { + this.reference = reference; + return this; + } + + /** + * The transfer reference. + * @return reference + **/ + @ApiModelProperty(value = "The transfer reference.") + @JsonProperty(JSON_PROPERTY_REFERENCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getReference() { + return reference; + } + + + /** + * The transfer reference. + * + * @param reference + */ + @JsonProperty(JSON_PROPERTY_REFERENCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setReference(String reference) { + this.reference = reference; + } + + + public CheckoutBankTransferAction shopperEmail(String shopperEmail) { + this.shopperEmail = shopperEmail; + return this; + } + + /** + * The e-mail of the shopper, included if an e-mail was sent to the shopper. + * @return shopperEmail + **/ + @ApiModelProperty(value = "The e-mail of the shopper, included if an e-mail was sent to the shopper.") + @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getShopperEmail() { + return shopperEmail; + } + + + /** + * The e-mail of the shopper, included if an e-mail was sent to the shopper. + * + * @param shopperEmail + */ + @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setShopperEmail(String shopperEmail) { + this.shopperEmail = shopperEmail; + } + + + public CheckoutBankTransferAction totalAmount(Amount totalAmount) { + this.totalAmount = totalAmount; + return this; + } + + /** + * Get totalAmount + * @return totalAmount + **/ + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_TOTAL_AMOUNT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Amount getTotalAmount() { + return totalAmount; + } + + + /** + * totalAmount + * + * @param totalAmount + */ + @JsonProperty(JSON_PROPERTY_TOTAL_AMOUNT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setTotalAmount(Amount totalAmount) { + this.totalAmount = totalAmount; + } + + + public CheckoutBankTransferAction type(TypeEnum type) { + this.type = type; + return this; + } + + /** + * The type of the action. + * @return type + **/ + @ApiModelProperty(required = true, value = "The type of the action.") + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public TypeEnum getType() { + return type; + } + + + /** + * The type of the action. + * + * @param type + */ + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setType(TypeEnum type) { + this.type = type; + } + + + public CheckoutBankTransferAction url(String url) { + this.url = url; + return this; + } + + /** + * Specifies the URL to redirect to. + * @return url + **/ + @ApiModelProperty(value = "Specifies the URL to redirect to.") + @JsonProperty(JSON_PROPERTY_URL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getUrl() { + return url; + } + + + /** + * Specifies the URL to redirect to. + * + * @param url + */ + @JsonProperty(JSON_PROPERTY_URL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUrl(String url) { + this.url = url; + } + + + /** + * Return true if this CheckoutBankTransferAction object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CheckoutBankTransferAction checkoutBankTransferAction = (CheckoutBankTransferAction) o; + return Objects.equals(this.beneficiary, checkoutBankTransferAction.beneficiary) && + Objects.equals(this.bic, checkoutBankTransferAction.bic) && + Objects.equals(this.downloadUrl, checkoutBankTransferAction.downloadUrl) && + Objects.equals(this.iban, checkoutBankTransferAction.iban) && + Objects.equals(this.paymentMethodType, checkoutBankTransferAction.paymentMethodType) && + Objects.equals(this.reference, checkoutBankTransferAction.reference) && + Objects.equals(this.shopperEmail, checkoutBankTransferAction.shopperEmail) && + Objects.equals(this.totalAmount, checkoutBankTransferAction.totalAmount) && + Objects.equals(this.type, checkoutBankTransferAction.type) && + Objects.equals(this.url, checkoutBankTransferAction.url); + } + + @Override + public int hashCode() { + return Objects.hash(beneficiary, bic, downloadUrl, iban, paymentMethodType, reference, shopperEmail, totalAmount, type, url); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CheckoutBankTransferAction {\n"); + sb.append(" beneficiary: ").append(toIndentedString(beneficiary)).append("\n"); + sb.append(" bic: ").append(toIndentedString(bic)).append("\n"); + sb.append(" downloadUrl: ").append(toIndentedString(downloadUrl)).append("\n"); + sb.append(" iban: ").append(toIndentedString(iban)).append("\n"); + sb.append(" paymentMethodType: ").append(toIndentedString(paymentMethodType)).append("\n"); + sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); + sb.append(" shopperEmail: ").append(toIndentedString(shopperEmail)).append("\n"); + sb.append(" totalAmount: ").append(toIndentedString(totalAmount)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" url: ").append(toIndentedString(url)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +/** + * Create an instance of CheckoutBankTransferAction given an JSON string + * + * @param jsonString JSON string + * @return An instance of CheckoutBankTransferAction + * @throws JsonProcessingException if the JSON string is invalid with respect to CheckoutBankTransferAction + */ + public static CheckoutBankTransferAction fromJson(String jsonString) throws JsonProcessingException { + return JSON.getMapper().readValue(jsonString, CheckoutBankTransferAction.class); + } +/** + * Convert an instance of CheckoutBankTransferAction 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/DonationPaymentRequest.java b/src/main/java/com/adyen/model/checkout/DonationPaymentRequest.java index 919b299a8..0b6de1995 100644 --- a/src/main/java/com/adyen/model/checkout/DonationPaymentRequest.java +++ b/src/main/java/com/adyen/model/checkout/DonationPaymentRequest.java @@ -1272,10 +1272,10 @@ public DonationPaymentRequest returnUrl(String returnUrl) { } /** - * The URL to return to in case of a redirection. The format depends on the channel. This URL can have a maximum of 1024 characters. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name`If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. > The URL must not include personally identifiable information (PII), for example name or email address. + * The URL to return to in case of a redirection. The format depends on the channel. This URL can have a maximum of 1024 characters. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name` If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. > The URL must not include personally identifiable information (PII), for example name or email address. * @return returnUrl **/ - @ApiModelProperty(required = true, value = "The URL to return to in case of a redirection. The format depends on the channel. This URL can have a maximum of 1024 characters. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name`If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. > The URL must not include personally identifiable information (PII), for example name or email address.") + @ApiModelProperty(required = true, value = "The URL to return to in case of a redirection. The format depends on the channel. This URL can have a maximum of 1024 characters. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name` If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. > The URL must not include personally identifiable information (PII), for example name or email address.") @JsonProperty(JSON_PROPERTY_RETURN_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1285,7 +1285,7 @@ public String getReturnUrl() { /** - * The URL to return to in case of a redirection. The format depends on the channel. This URL can have a maximum of 1024 characters. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name`If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. > The URL must not include personally identifiable information (PII), for example name or email address. + * The URL to return to in case of a redirection. The format depends on the channel. This URL can have a maximum of 1024 characters. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name` If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. > The URL must not include personally identifiable information (PII), for example name or email address. * * @param returnUrl */ diff --git a/src/main/java/com/adyen/model/checkout/FundOrigin.java b/src/main/java/com/adyen/model/checkout/FundOrigin.java index fc9a918f9..9c85f93c9 100644 --- a/src/main/java/com/adyen/model/checkout/FundOrigin.java +++ b/src/main/java/com/adyen/model/checkout/FundOrigin.java @@ -95,10 +95,10 @@ public FundOrigin shopperEmail(String shopperEmail) { } /** - * Email address of the person. + * The email address of the person funding the money. * @return shopperEmail **/ - @ApiModelProperty(value = "Email address of the person.") + @ApiModelProperty(value = "The email address of the person funding the money.") @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -108,7 +108,7 @@ public String getShopperEmail() { /** - * Email address of the person. + * The email address of the person funding the money. * * @param shopperEmail */ @@ -155,10 +155,10 @@ public FundOrigin telephoneNumber(String telephoneNumber) { } /** - * Phone number of the person + * The phone number of the person funding the money. * @return telephoneNumber **/ - @ApiModelProperty(value = "Phone number of the person") + @ApiModelProperty(value = "The phone number of the person funding the money.") @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -168,7 +168,7 @@ public String getTelephoneNumber() { /** - * Phone number of the person + * The phone number of the person funding the money. * * @param telephoneNumber */ @@ -185,10 +185,10 @@ public FundOrigin walletIdentifier(String walletIdentifier) { } /** - * Get walletIdentifier + * The unique identifier of the wallet where the funds are coming from. * @return walletIdentifier **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "The unique identifier of the wallet where the funds are coming from.") @JsonProperty(JSON_PROPERTY_WALLET_IDENTIFIER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -198,7 +198,7 @@ public String getWalletIdentifier() { /** - * walletIdentifier + * The unique identifier of the wallet where the funds are coming from. * * @param walletIdentifier */ diff --git a/src/main/java/com/adyen/model/checkout/PaymentRequest.java b/src/main/java/com/adyen/model/checkout/PaymentRequest.java index 7dbd9e4f7..2ec27e2f8 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentRequest.java +++ b/src/main/java/com/adyen/model/checkout/PaymentRequest.java @@ -37,6 +37,7 @@ import com.adyen.model.checkout.PlatformChargebackLogic; import com.adyen.model.checkout.RiskData; import com.adyen.model.checkout.Split; +import com.adyen.model.checkout.SubMerchantInfo; import com.adyen.model.checkout.ThreeDS2RequestFields; import com.adyen.model.checkout.ThreeDSecureData; import com.fasterxml.jackson.annotation.JsonInclude; @@ -122,6 +123,7 @@ PaymentRequest.JSON_PROPERTY_SPLITS, PaymentRequest.JSON_PROPERTY_STORE, PaymentRequest.JSON_PROPERTY_STORE_PAYMENT_METHOD, + PaymentRequest.JSON_PROPERTY_SUB_MERCHANTS, PaymentRequest.JSON_PROPERTY_TELEPHONE_NUMBER, PaymentRequest.JSON_PROPERTY_THREE_D_S2_REQUEST_DATA, PaymentRequest.JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY, @@ -505,6 +507,9 @@ public static ShopperInteractionEnum fromValue(String value) { public static final String JSON_PROPERTY_STORE_PAYMENT_METHOD = "storePaymentMethod"; private Boolean storePaymentMethod; + public static final String JSON_PROPERTY_SUB_MERCHANTS = "subMerchants"; + private List subMerchants = null; + public static final String JSON_PROPERTY_TELEPHONE_NUMBER = "telephoneNumber"; private String telephoneNumber; @@ -2459,6 +2464,44 @@ public void setStorePaymentMethod(Boolean storePaymentMethod) { } + public PaymentRequest subMerchants(List subMerchants) { + this.subMerchants = subMerchants; + return this; + } + + public PaymentRequest addSubMerchantsItem(SubMerchantInfo subMerchantsItem) { + if (this.subMerchants == null) { + this.subMerchants = new ArrayList<>(); + } + this.subMerchants.add(subMerchantsItem); + return this; + } + + /** + * This field contains additional information on the submerchant, who is onboarded to an acquirer through a payment facilitator or aggregator + * @return subMerchants + **/ + @ApiModelProperty(value = "This field contains additional information on the submerchant, who is onboarded to an acquirer through a payment facilitator or aggregator") + @JsonProperty(JSON_PROPERTY_SUB_MERCHANTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getSubMerchants() { + return subMerchants; + } + + + /** + * This field contains additional information on the submerchant, who is onboarded to an acquirer through a payment facilitator or aggregator + * + * @param subMerchants + */ + @JsonProperty(JSON_PROPERTY_SUB_MERCHANTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSubMerchants(List subMerchants) { + this.subMerchants = subMerchants; + } + + public PaymentRequest telephoneNumber(String telephoneNumber) { this.telephoneNumber = telephoneNumber; return this; @@ -2658,6 +2701,7 @@ public boolean equals(Object o) { Objects.equals(this.splits, paymentRequest.splits) && Objects.equals(this.store, paymentRequest.store) && Objects.equals(this.storePaymentMethod, paymentRequest.storePaymentMethod) && + Objects.equals(this.subMerchants, paymentRequest.subMerchants) && Objects.equals(this.telephoneNumber, paymentRequest.telephoneNumber) && Objects.equals(this.threeDS2RequestData, paymentRequest.threeDS2RequestData) && Objects.equals(this.threeDSAuthenticationOnly, paymentRequest.threeDSAuthenticationOnly) && @@ -2666,7 +2710,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(accountInfo, additionalAmount, additionalData, amount, applicationInfo, authenticationData, billingAddress, browserInfo, captureDelayHours, channel, checkoutAttemptId, company, conversionId, countryCode, dateOfBirth, dccQuote, deliverAt, deliveryAddress, deliveryDate, deviceFingerprint, enableOneClick, enablePayOut, enableRecurring, entityType, fraudOffset, fundOrigin, fundRecipient, industryUsage, installments, lineItems, localizedShopperStatement, mandate, mcc, merchantAccount, merchantOrderReference, merchantRiskIndicator, metadata, mpiData, order, orderReference, origin, paymentMethod, platformChargebackLogic, recurringExpiry, recurringFrequency, recurringProcessingModel, redirectFromIssuerMethod, redirectToIssuerMethod, reference, returnUrl, riskData, sessionValidity, shopperEmail, shopperIP, shopperInteraction, shopperLocale, shopperName, shopperReference, shopperStatement, socialSecurityNumber, splits, store, storePaymentMethod, telephoneNumber, threeDS2RequestData, threeDSAuthenticationOnly, trustedShopper); + return Objects.hash(accountInfo, additionalAmount, additionalData, amount, applicationInfo, authenticationData, billingAddress, browserInfo, captureDelayHours, channel, checkoutAttemptId, company, conversionId, countryCode, dateOfBirth, dccQuote, deliverAt, deliveryAddress, deliveryDate, deviceFingerprint, enableOneClick, enablePayOut, enableRecurring, entityType, fraudOffset, fundOrigin, fundRecipient, industryUsage, installments, lineItems, localizedShopperStatement, mandate, mcc, merchantAccount, merchantOrderReference, merchantRiskIndicator, metadata, mpiData, order, orderReference, origin, paymentMethod, platformChargebackLogic, recurringExpiry, recurringFrequency, recurringProcessingModel, redirectFromIssuerMethod, redirectToIssuerMethod, reference, returnUrl, riskData, sessionValidity, shopperEmail, shopperIP, shopperInteraction, shopperLocale, shopperName, shopperReference, shopperStatement, socialSecurityNumber, splits, store, storePaymentMethod, subMerchants, telephoneNumber, threeDS2RequestData, threeDSAuthenticationOnly, trustedShopper); } @Override @@ -2736,6 +2780,7 @@ public String toString() { sb.append(" splits: ").append(toIndentedString(splits)).append("\n"); sb.append(" store: ").append(toIndentedString(store)).append("\n"); sb.append(" storePaymentMethod: ").append(toIndentedString(storePaymentMethod)).append("\n"); + sb.append(" subMerchants: ").append(toIndentedString(subMerchants)).append("\n"); sb.append(" telephoneNumber: ").append(toIndentedString(telephoneNumber)).append("\n"); sb.append(" threeDS2RequestData: ").append(toIndentedString(threeDS2RequestData)).append("\n"); sb.append(" threeDSAuthenticationOnly: ").append(toIndentedString(threeDSAuthenticationOnly)).append("\n"); diff --git a/src/main/java/com/adyen/model/checkout/PaymentResponseAction.java b/src/main/java/com/adyen/model/checkout/PaymentResponseAction.java index 1a9042724..61f6fae3a 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentResponseAction.java +++ b/src/main/java/com/adyen/model/checkout/PaymentResponseAction.java @@ -18,6 +18,7 @@ import java.util.HashMap; import com.adyen.model.checkout.Amount; import com.adyen.model.checkout.CheckoutAwaitAction; +import com.adyen.model.checkout.CheckoutBankTransferAction; import com.adyen.model.checkout.CheckoutDelegatedAuthenticationAction; import com.adyen.model.checkout.CheckoutNativeRedirectAction; import com.adyen.model.checkout.CheckoutQrCodeAction; @@ -132,6 +133,34 @@ public PaymentResponseAction deserialize(JsonParser jp, DeserializationContext c } + // deserialize CheckoutBankTransferAction + try { + boolean attemptParsing = true; + // ensure that we respect type coercion as set on the client ObjectMapper + if (CheckoutBankTransferAction.class.equals(Integer.class) || CheckoutBankTransferAction.class.equals(Long.class) || CheckoutBankTransferAction.class.equals(Float.class) || CheckoutBankTransferAction.class.equals(Double.class) || CheckoutBankTransferAction.class.equals(Boolean.class) || CheckoutBankTransferAction.class.equals(String.class)) { + attemptParsing = typeCoercion; + if (!attemptParsing) { + attemptParsing |= ((CheckoutBankTransferAction.class.equals(Integer.class) || CheckoutBankTransferAction.class.equals(Long.class)) && token == JsonToken.VALUE_NUMBER_INT); + attemptParsing |= ((CheckoutBankTransferAction.class.equals(Float.class) || CheckoutBankTransferAction.class.equals(Double.class)) && token == JsonToken.VALUE_NUMBER_FLOAT); + attemptParsing |= (CheckoutBankTransferAction.class.equals(Boolean.class) && (token == JsonToken.VALUE_FALSE || token == JsonToken.VALUE_TRUE)); + attemptParsing |= (CheckoutBankTransferAction.class.equals(String.class) && token == JsonToken.VALUE_STRING); + } + } + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = Arrays.stream(CheckoutBankTransferAction.TypeEnum.values()).anyMatch((t) -> t.getValue().contains(tree.findValue("type").asText())); + if (attemptParsing || typeMatch) { + // Strict deserialization for oneOf models + deserialized = JSON.getMapper().readValue(tree.toString(), CheckoutBankTransferAction.class); + // typeMatch should enforce proper deserialization + match++; + log.log(Level.FINER, "Input data matches schema 'CheckoutBankTransferAction'"); + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'CheckoutBankTransferAction'", e); + } + + // deserialize CheckoutDelegatedAuthenticationAction try { boolean attemptParsing = true; @@ -362,6 +391,11 @@ public PaymentResponseAction(CheckoutAwaitAction o) { setActualInstance(o); } + public PaymentResponseAction(CheckoutBankTransferAction o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + public PaymentResponseAction(CheckoutDelegatedAuthenticationAction o) { super("oneOf", Boolean.FALSE); setActualInstance(o); @@ -400,6 +434,8 @@ public PaymentResponseAction(CheckoutVoucherAction o) { static { schemas.put("CheckoutAwaitAction", new GenericType() { }); + schemas.put("CheckoutBankTransferAction", new GenericType() { + }); schemas.put("CheckoutDelegatedAuthenticationAction", new GenericType() { }); schemas.put("CheckoutNativeRedirectAction", new GenericType() { @@ -425,7 +461,7 @@ public Map getSchemas() { /** * Set the instance that matches the oneOf child schema, check * the instance parameter is valid against the oneOf child schemas: - * CheckoutAwaitAction, CheckoutDelegatedAuthenticationAction, CheckoutNativeRedirectAction, CheckoutQrCodeAction, CheckoutRedirectAction, CheckoutSDKAction, CheckoutThreeDS2Action, CheckoutVoucherAction + * CheckoutAwaitAction, CheckoutBankTransferAction, CheckoutDelegatedAuthenticationAction, CheckoutNativeRedirectAction, CheckoutQrCodeAction, CheckoutRedirectAction, CheckoutSDKAction, CheckoutThreeDS2Action, CheckoutVoucherAction * * It could be an instance of the 'oneOf' schemas. * The oneOf child schemas may themselves be a composed schema (allOf, anyOf, oneOf). @@ -437,6 +473,11 @@ public void setActualInstance(Object instance) { return; } + if (JSON.isInstanceOf(CheckoutBankTransferAction.class, instance, new HashSet>())) { + super.setActualInstance(instance); + return; + } + if (JSON.isInstanceOf(CheckoutDelegatedAuthenticationAction.class, instance, new HashSet>())) { super.setActualInstance(instance); return; @@ -472,14 +513,14 @@ public void setActualInstance(Object instance) { return; } - throw new RuntimeException("Invalid instance type. Must be CheckoutAwaitAction, CheckoutDelegatedAuthenticationAction, CheckoutNativeRedirectAction, CheckoutQrCodeAction, CheckoutRedirectAction, CheckoutSDKAction, CheckoutThreeDS2Action, CheckoutVoucherAction"); + throw new RuntimeException("Invalid instance type. Must be CheckoutAwaitAction, CheckoutBankTransferAction, CheckoutDelegatedAuthenticationAction, CheckoutNativeRedirectAction, CheckoutQrCodeAction, CheckoutRedirectAction, CheckoutSDKAction, CheckoutThreeDS2Action, CheckoutVoucherAction"); } /** * Get the actual instance, which can be the following: - * CheckoutAwaitAction, CheckoutDelegatedAuthenticationAction, CheckoutNativeRedirectAction, CheckoutQrCodeAction, CheckoutRedirectAction, CheckoutSDKAction, CheckoutThreeDS2Action, CheckoutVoucherAction + * CheckoutAwaitAction, CheckoutBankTransferAction, CheckoutDelegatedAuthenticationAction, CheckoutNativeRedirectAction, CheckoutQrCodeAction, CheckoutRedirectAction, CheckoutSDKAction, CheckoutThreeDS2Action, CheckoutVoucherAction * - * @return The actual instance (CheckoutAwaitAction, CheckoutDelegatedAuthenticationAction, CheckoutNativeRedirectAction, CheckoutQrCodeAction, CheckoutRedirectAction, CheckoutSDKAction, CheckoutThreeDS2Action, CheckoutVoucherAction) + * @return The actual instance (CheckoutAwaitAction, CheckoutBankTransferAction, CheckoutDelegatedAuthenticationAction, CheckoutNativeRedirectAction, CheckoutQrCodeAction, CheckoutRedirectAction, CheckoutSDKAction, CheckoutThreeDS2Action, CheckoutVoucherAction) */ @Override public Object getActualInstance() { @@ -497,6 +538,17 @@ public CheckoutAwaitAction getCheckoutAwaitAction() throws ClassCastException { return (CheckoutAwaitAction)super.getActualInstance(); } + /** + * Get the actual instance of `CheckoutBankTransferAction`. If the actual instance is not `CheckoutBankTransferAction`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `CheckoutBankTransferAction` + * @throws ClassCastException if the instance is not `CheckoutBankTransferAction` + */ + public CheckoutBankTransferAction getCheckoutBankTransferAction() throws ClassCastException { + return (CheckoutBankTransferAction)super.getActualInstance(); + } + /** * Get the actual instance of `CheckoutDelegatedAuthenticationAction`. If the actual instance is not `CheckoutDelegatedAuthenticationAction`, * the ClassCastException will be thrown. diff --git a/src/main/java/com/adyen/model/checkout/PaymentSetupRequest.java b/src/main/java/com/adyen/model/checkout/PaymentSetupRequest.java index 1675c0915..925db1f71 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentSetupRequest.java +++ b/src/main/java/com/adyen/model/checkout/PaymentSetupRequest.java @@ -1566,10 +1566,10 @@ public PaymentSetupRequest returnUrl(String returnUrl) { } /** - * The URL to return to in case of a redirection. The format depends on the channel. This URL can have a maximum of 1024 characters. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name`If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. > The URL must not include personally identifiable information (PII), for example name or email address. + * The URL to return to in case of a redirection. The format depends on the channel. This URL can have a maximum of 1024 characters. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name` If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. > The URL must not include personally identifiable information (PII), for example name or email address. * @return returnUrl **/ - @ApiModelProperty(required = true, value = "The URL to return to in case of a redirection. The format depends on the channel. This URL can have a maximum of 1024 characters. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name`If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. > The URL must not include personally identifiable information (PII), for example name or email address.") + @ApiModelProperty(required = true, value = "The URL to return to in case of a redirection. The format depends on the channel. This URL can have a maximum of 1024 characters. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name` If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. > The URL must not include personally identifiable information (PII), for example name or email address.") @JsonProperty(JSON_PROPERTY_RETURN_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1579,7 +1579,7 @@ public String getReturnUrl() { /** - * The URL to return to in case of a redirection. The format depends on the channel. This URL can have a maximum of 1024 characters. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name`If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. > The URL must not include personally identifiable information (PII), for example name or email address. + * The URL to return to in case of a redirection. The format depends on the channel. This URL can have a maximum of 1024 characters. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name` If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. > The URL must not include personally identifiable information (PII), for example name or email address. * * @param returnUrl */ diff --git a/src/main/java/com/adyen/model/checkout/SubMerchantInfo.java b/src/main/java/com/adyen/model/checkout/SubMerchantInfo.java index a64a80b51..2031a4e3f 100644 --- a/src/main/java/com/adyen/model/checkout/SubMerchantInfo.java +++ b/src/main/java/com/adyen/model/checkout/SubMerchantInfo.java @@ -145,10 +145,10 @@ public SubMerchantInfo email(String email) { } /** - * Get email + * Required for transactions performed by registered payment facilitators. The email associated with the sub-merchant's account. * @return email **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Required for transactions performed by registered payment facilitators. The email associated with the sub-merchant's account.") @JsonProperty(JSON_PROPERTY_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -158,7 +158,7 @@ public String getEmail() { /** - * email + * Required for transactions performed by registered payment facilitators. The email associated with the sub-merchant's account. * * @param email */ @@ -175,10 +175,10 @@ public SubMerchantInfo id(String id) { } /** - * Get id + * Required for transactions performed by registered payment facilitators. A unique identifier that you create for the sub-merchant, used by schemes to identify the sub-merchant. * Format: Alphanumeric * Maximum length: 15 characters * @return id **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Required for transactions performed by registered payment facilitators. A unique identifier that you create for the sub-merchant, used by schemes to identify the sub-merchant. * Format: Alphanumeric * Maximum length: 15 characters") @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -188,7 +188,7 @@ public String getId() { /** - * id + * Required for transactions performed by registered payment facilitators. A unique identifier that you create for the sub-merchant, used by schemes to identify the sub-merchant. * Format: Alphanumeric * Maximum length: 15 characters * * @param id */ @@ -205,10 +205,10 @@ public SubMerchantInfo mcc(String mcc) { } /** - * Get mcc + * Required for transactions performed by registered payment facilitators. The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits * @return mcc **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Required for transactions performed by registered payment facilitators. The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits") @JsonProperty(JSON_PROPERTY_MCC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -218,7 +218,7 @@ public String getMcc() { /** - * mcc + * Required for transactions performed by registered payment facilitators. The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits * * @param mcc */ @@ -235,10 +235,10 @@ public SubMerchantInfo name(String name) { } /** - * Get name + * Required for transactions performed by registered payment facilitators. The name of the sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement that will appear in the card statement. * Format: Alphanumeric * Maximum length: 22 characters * @return name **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Required for transactions performed by registered payment facilitators. The name of the sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement that will appear in the card statement. * Format: Alphanumeric * Maximum length: 22 characters") @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -248,7 +248,7 @@ public String getName() { /** - * name + * Required for transactions performed by registered payment facilitators. The name of the sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement that will appear in the card statement. * Format: Alphanumeric * Maximum length: 22 characters * * @param name */ @@ -265,10 +265,10 @@ public SubMerchantInfo phoneNumber(String phoneNumber) { } /** - * Get phoneNumber + * Required for transactions performed by registered payment facilitators. The phone number associated with the sub-merchant's account. * @return phoneNumber **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Required for transactions performed by registered payment facilitators. The phone number associated with the sub-merchant's account.") @JsonProperty(JSON_PROPERTY_PHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -278,7 +278,7 @@ public String getPhoneNumber() { /** - * phoneNumber + * Required for transactions performed by registered payment facilitators. The phone number associated with the sub-merchant's account. * * @param phoneNumber */ @@ -325,10 +325,10 @@ public SubMerchantInfo taxId(String taxId) { } /** - * Get taxId + * Required for transactions performed by registered payment facilitators. The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ * @return taxId **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Required for transactions performed by registered payment facilitators. The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ") @JsonProperty(JSON_PROPERTY_TAX_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -338,7 +338,7 @@ public String getTaxId() { /** - * taxId + * Required for transactions performed by registered payment facilitators. The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ * * @param taxId */ @@ -355,10 +355,10 @@ public SubMerchantInfo url(String url) { } /** - * Get url + * Required for transactions performed by registered payment facilitators. The sub-merchant's URL on the platform, i.e. the sub-merchant's shop. * @return url **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Required for transactions performed by registered payment facilitators. The sub-merchant's URL on the platform, i.e. the sub-merchant's shop.") @JsonProperty(JSON_PROPERTY_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -368,7 +368,7 @@ public String getUrl() { /** - * url + * Required for transactions performed by registered payment facilitators. The sub-merchant's URL on the platform, i.e. the sub-merchant's shop. * * @param url */ diff --git a/src/main/java/com/adyen/model/legalentitymanagement/OnboardingLinkSettings.java b/src/main/java/com/adyen/model/legalentitymanagement/OnboardingLinkSettings.java index 7067722ea..2e2889e48 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/OnboardingLinkSettings.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/OnboardingLinkSettings.java @@ -263,10 +263,10 @@ public OnboardingLinkSettings hideOnboardingIntroductionIndividual(Boolean hideO } /** - * Default value: **false** Indicates if the user of the individual legal entity type can view the introduction screen. The introduction screen provides brief instructions for the subsequent steps in the hosted onboarding process. + * Default value: **true** Indicates whether the introduction screen is hidden for the user of the individual legal entity type. The introduction screen provides brief instructions for the subsequent steps in the hosted onboarding process. * @return hideOnboardingIntroductionIndividual **/ - @ApiModelProperty(value = "Default value: **false** Indicates if the user of the individual legal entity type can view the introduction screen. The introduction screen provides brief instructions for the subsequent steps in the hosted onboarding process.") + @ApiModelProperty(value = "Default value: **true** Indicates whether the introduction screen is hidden for the user of the individual legal entity type. The introduction screen provides brief instructions for the subsequent steps in the hosted onboarding process.") @JsonProperty(JSON_PROPERTY_HIDE_ONBOARDING_INTRODUCTION_INDIVIDUAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -276,7 +276,7 @@ public Boolean getHideOnboardingIntroductionIndividual() { /** - * Default value: **false** Indicates if the user of the individual legal entity type can view the introduction screen. The introduction screen provides brief instructions for the subsequent steps in the hosted onboarding process. + * Default value: **true** Indicates whether the introduction screen is hidden for the user of the individual legal entity type. The introduction screen provides brief instructions for the subsequent steps in the hosted onboarding process. * * @param hideOnboardingIntroductionIndividual */ @@ -293,10 +293,10 @@ public OnboardingLinkSettings hideOnboardingIntroductionOrganization(Boolean hid } /** - * Default value: **false** Indicates if the user of the organization legal entity type can view the introduction screen. The introduction screen provides brief instructions for the subsequent steps in the hosted onboarding process. + * Default value: **true** Indicates whether the introduction screen is hidden for the user of the organization legal entity type. The introduction screen provides brief instructions for the subsequent steps in the hosted onboarding process. * @return hideOnboardingIntroductionOrganization **/ - @ApiModelProperty(value = "Default value: **false** Indicates if the user of the organization legal entity type can view the introduction screen. The introduction screen provides brief instructions for the subsequent steps in the hosted onboarding process.") + @ApiModelProperty(value = "Default value: **true** Indicates whether the introduction screen is hidden for the user of the organization legal entity type. The introduction screen provides brief instructions for the subsequent steps in the hosted onboarding process.") @JsonProperty(JSON_PROPERTY_HIDE_ONBOARDING_INTRODUCTION_ORGANIZATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -306,7 +306,7 @@ public Boolean getHideOnboardingIntroductionOrganization() { /** - * Default value: **false** Indicates if the user of the organization legal entity type can view the introduction screen. The introduction screen provides brief instructions for the subsequent steps in the hosted onboarding process. + * Default value: **true** Indicates whether the introduction screen is hidden for the user of the organization legal entity type. The introduction screen provides brief instructions for the subsequent steps in the hosted onboarding process. * * @param hideOnboardingIntroductionOrganization */ @@ -323,10 +323,10 @@ public OnboardingLinkSettings hideOnboardingIntroductionSoleProprietor(Boolean h } /** - * Default value: **false** Indicates if the user of the sole proprietorship legal entity type can view the introduction screen. The introduction screen provides brief instructions for the subsequent steps in the hosted onboarding process. + * Default value: **true** Indicates whether the introduction screen is hidden for the user of the sole proprietorship legal entity type. The introduction screen provides brief instructions for the subsequent steps in the hosted onboarding process. * @return hideOnboardingIntroductionSoleProprietor **/ - @ApiModelProperty(value = "Default value: **false** Indicates if the user of the sole proprietorship legal entity type can view the introduction screen. The introduction screen provides brief instructions for the subsequent steps in the hosted onboarding process.") + @ApiModelProperty(value = "Default value: **true** Indicates whether the introduction screen is hidden for the user of the sole proprietorship legal entity type. The introduction screen provides brief instructions for the subsequent steps in the hosted onboarding process.") @JsonProperty(JSON_PROPERTY_HIDE_ONBOARDING_INTRODUCTION_SOLE_PROPRIETOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -336,7 +336,7 @@ public Boolean getHideOnboardingIntroductionSoleProprietor() { /** - * Default value: **false** Indicates if the user of the sole proprietorship legal entity type can view the introduction screen. The introduction screen provides brief instructions for the subsequent steps in the hosted onboarding process. + * Default value: **true** Indicates whether the introduction screen is hidden for the user of the sole proprietorship legal entity type. The introduction screen provides brief instructions for the subsequent steps in the hosted onboarding process. * * @param hideOnboardingIntroductionSoleProprietor */ @@ -353,10 +353,10 @@ public OnboardingLinkSettings hideOnboardingIntroductionTrust(Boolean hideOnboar } /** - * Default value: **false** Indicates if the user of the trust legal entity type can view the introduction screen. The introduction screen provides brief instructions for the subsequent steps in the hosted onboarding process. + * Default value: **true** Indicates whether the introduction screen is hidden for the user of the trust legal entity type. The introduction screen provides brief instructions for the subsequent steps in the hosted onboarding process. * @return hideOnboardingIntroductionTrust **/ - @ApiModelProperty(value = "Default value: **false** Indicates if the user of the trust legal entity type can view the introduction screen. The introduction screen provides brief instructions for the subsequent steps in the hosted onboarding process.") + @ApiModelProperty(value = "Default value: **true** Indicates whether the introduction screen is hidden for the user of the trust legal entity type. The introduction screen provides brief instructions for the subsequent steps in the hosted onboarding process.") @JsonProperty(JSON_PROPERTY_HIDE_ONBOARDING_INTRODUCTION_TRUST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -366,7 +366,7 @@ public Boolean getHideOnboardingIntroductionTrust() { /** - * Default value: **false** Indicates if the user of the trust legal entity type can view the introduction screen. The introduction screen provides brief instructions for the subsequent steps in the hosted onboarding process. + * Default value: **true** Indicates whether the introduction screen is hidden for the user of the trust legal entity type. The introduction screen provides brief instructions for the subsequent steps in the hosted onboarding process. * * @param hideOnboardingIntroductionTrust */ diff --git a/src/main/java/com/adyen/model/payment/FundDestination.java b/src/main/java/com/adyen/model/payment/FundDestination.java index 7f6631c8e..ba7293500 100644 --- a/src/main/java/com/adyen/model/payment/FundDestination.java +++ b/src/main/java/com/adyen/model/payment/FundDestination.java @@ -38,6 +38,7 @@ * FundDestination */ @JsonPropertyOrder({ + FundDestination.JSON_PROPERTY_I_B_A_N, FundDestination.JSON_PROPERTY_ADDITIONAL_DATA, FundDestination.JSON_PROPERTY_BILLING_ADDRESS, FundDestination.JSON_PROPERTY_CARD, @@ -51,6 +52,9 @@ }) public class FundDestination { + public static final String JSON_PROPERTY_I_B_A_N = "IBAN"; + private String IBAN; + public static final String JSON_PROPERTY_ADDITIONAL_DATA = "additionalData"; private Map additionalData = null; @@ -84,6 +88,36 @@ public class FundDestination { public FundDestination() { } + public FundDestination IBAN(String IBAN) { + this.IBAN = IBAN; + return this; + } + + /** + * Bank Account Number of the recipient + * @return IBAN + **/ + @ApiModelProperty(value = "Bank Account Number of the recipient") + @JsonProperty(JSON_PROPERTY_I_B_A_N) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getIBAN() { + return IBAN; + } + + + /** + * Bank Account Number of the recipient + * + * @param IBAN + */ + @JsonProperty(JSON_PROPERTY_I_B_A_N) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIBAN(String IBAN) { + this.IBAN = IBAN; + } + + public FundDestination additionalData(Map additionalData) { this.additionalData = additionalData; return this; @@ -404,7 +438,8 @@ public boolean equals(Object o) { return false; } FundDestination fundDestination = (FundDestination) o; - return Objects.equals(this.additionalData, fundDestination.additionalData) && + return Objects.equals(this.IBAN, fundDestination.IBAN) && + Objects.equals(this.additionalData, fundDestination.additionalData) && Objects.equals(this.billingAddress, fundDestination.billingAddress) && Objects.equals(this.card, fundDestination.card) && Objects.equals(this.selectedRecurringDetailReference, fundDestination.selectedRecurringDetailReference) && @@ -418,13 +453,14 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(additionalData, billingAddress, card, selectedRecurringDetailReference, shopperEmail, shopperName, shopperReference, subMerchant, telephoneNumber, walletPurpose); + return Objects.hash(IBAN, additionalData, billingAddress, card, selectedRecurringDetailReference, shopperEmail, shopperName, shopperReference, subMerchant, telephoneNumber, walletPurpose); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class FundDestination {\n"); + sb.append(" IBAN: ").append(toIndentedString(IBAN)).append("\n"); sb.append(" additionalData: ").append(toIndentedString(additionalData)).append("\n"); sb.append(" billingAddress: ").append(toIndentedString(billingAddress)).append("\n"); sb.append(" card: ").append(toIndentedString(card)).append("\n"); diff --git a/src/main/java/com/adyen/model/payment/Split.java b/src/main/java/com/adyen/model/payment/Split.java index 46d152dc6..bd9fd1c4f 100644 --- a/src/main/java/com/adyen/model/payment/Split.java +++ b/src/main/java/com/adyen/model/payment/Split.java @@ -53,7 +53,7 @@ public class Split { private String reference; /** - * The part of the payment you want to book to the specified `account`. Possible values for the [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): * **BalanceAccount**: books part of the payment (specified in `amount`) to the specified `account`. * Transaction fees types that you can book to the specified `account`: * **AcquiringFees**: the aggregated amount of the interchange and scheme fees. * **PaymentFee**: the aggregated amount of all transaction fees. * **AdyenFees**: the aggregated amount of Adyen's commission and markup fees. * **AdyenCommission**: the transaction fees due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **AdyenMarkup**: the transaction fees due to Adyen under [Interchange ++ pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **Interchange**: the fees paid to the issuer for each payment made with the card network. * **SchemeFee**: the fees paid to the card scheme for using their network. * **Remainder**: the amount left over after a currency conversion, booked to the specified `account`. * **VAT**: the value-added tax charged on the payment, booked to your platforms liable balance account. * **Commission**: your platform's commission (specified in `amount`) on the payment, booked to your liable balance account. * **Default**: in very specific use cases, allows you to book the specified `amount` to the specified `account`. For more information, contact Adyen support. Possible values for the [Classic Platforms integration](https://docs.adyen.com/classic-platforms): **Commission**, **Default**, **Marketplace**, **PaymentFee**, **VAT**. + * The part of the payment you want to book to the specified `account`. Possible values for the [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): * **BalanceAccount**: books part of the payment (specified in `amount`) to the specified `account`. * Transaction fees types that you can book to the specified `account`: * **AcquiringFees**: the aggregated amount of the interchange and scheme fees. * **PaymentFee**: the aggregated amount of all transaction fees. * **AdyenFees**: the aggregated amount of Adyen's commission and markup fees. * **AdyenCommission**: the transaction fees due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **AdyenMarkup**: the transaction fees due to Adyen under [Interchange ++ pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **Interchange**: the fees paid to the issuer for each payment made with the card network. * **SchemeFee**: the fees paid to the card scheme for using their network. * **Commission**: your platform's commission on the payment (specified in `amount`), booked to your liable balance account. * **Remainder**: the amount left over after a currency conversion, booked to the specified `account`. * **TopUp**: allows you and your users to top up balance accounts using direct debit, card payments, or other payment methods. * **VAT**: the value-added tax charged on the payment, booked to your platforms liable balance account. * **Commission**: your platform's commission (specified in `amount`) on the payment, booked to your liable balance account. * **Default**: in very specific use cases, allows you to book the specified `amount` to the specified `account`. For more information, contact Adyen support. Possible values for the [Classic Platforms integration](https://docs.adyen.com/classic-platforms): **Commission**, **Default**, **Marketplace**, **PaymentFee**, **VAT**. */ public enum TypeEnum { ACQUIRINGFEES("AcquiringFees"), @@ -245,10 +245,10 @@ public Split type(TypeEnum type) { } /** - * The part of the payment you want to book to the specified `account`. Possible values for the [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): * **BalanceAccount**: books part of the payment (specified in `amount`) to the specified `account`. * Transaction fees types that you can book to the specified `account`: * **AcquiringFees**: the aggregated amount of the interchange and scheme fees. * **PaymentFee**: the aggregated amount of all transaction fees. * **AdyenFees**: the aggregated amount of Adyen's commission and markup fees. * **AdyenCommission**: the transaction fees due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **AdyenMarkup**: the transaction fees due to Adyen under [Interchange ++ pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **Interchange**: the fees paid to the issuer for each payment made with the card network. * **SchemeFee**: the fees paid to the card scheme for using their network. * **Remainder**: the amount left over after a currency conversion, booked to the specified `account`. * **VAT**: the value-added tax charged on the payment, booked to your platforms liable balance account. * **Commission**: your platform's commission (specified in `amount`) on the payment, booked to your liable balance account. * **Default**: in very specific use cases, allows you to book the specified `amount` to the specified `account`. For more information, contact Adyen support. Possible values for the [Classic Platforms integration](https://docs.adyen.com/classic-platforms): **Commission**, **Default**, **Marketplace**, **PaymentFee**, **VAT**. + * The part of the payment you want to book to the specified `account`. Possible values for the [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): * **BalanceAccount**: books part of the payment (specified in `amount`) to the specified `account`. * Transaction fees types that you can book to the specified `account`: * **AcquiringFees**: the aggregated amount of the interchange and scheme fees. * **PaymentFee**: the aggregated amount of all transaction fees. * **AdyenFees**: the aggregated amount of Adyen's commission and markup fees. * **AdyenCommission**: the transaction fees due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **AdyenMarkup**: the transaction fees due to Adyen under [Interchange ++ pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **Interchange**: the fees paid to the issuer for each payment made with the card network. * **SchemeFee**: the fees paid to the card scheme for using their network. * **Commission**: your platform's commission on the payment (specified in `amount`), booked to your liable balance account. * **Remainder**: the amount left over after a currency conversion, booked to the specified `account`. * **TopUp**: allows you and your users to top up balance accounts using direct debit, card payments, or other payment methods. * **VAT**: the value-added tax charged on the payment, booked to your platforms liable balance account. * **Commission**: your platform's commission (specified in `amount`) on the payment, booked to your liable balance account. * **Default**: in very specific use cases, allows you to book the specified `amount` to the specified `account`. For more information, contact Adyen support. Possible values for the [Classic Platforms integration](https://docs.adyen.com/classic-platforms): **Commission**, **Default**, **Marketplace**, **PaymentFee**, **VAT**. * @return type **/ - @ApiModelProperty(required = true, value = "The part of the payment you want to book to the specified `account`. Possible values for the [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): * **BalanceAccount**: books part of the payment (specified in `amount`) to the specified `account`. * Transaction fees types that you can book to the specified `account`: * **AcquiringFees**: the aggregated amount of the interchange and scheme fees. * **PaymentFee**: the aggregated amount of all transaction fees. * **AdyenFees**: the aggregated amount of Adyen's commission and markup fees. * **AdyenCommission**: the transaction fees due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **AdyenMarkup**: the transaction fees due to Adyen under [Interchange ++ pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **Interchange**: the fees paid to the issuer for each payment made with the card network. * **SchemeFee**: the fees paid to the card scheme for using their network. * **Remainder**: the amount left over after a currency conversion, booked to the specified `account`. * **VAT**: the value-added tax charged on the payment, booked to your platforms liable balance account. * **Commission**: your platform's commission (specified in `amount`) on the payment, booked to your liable balance account. * **Default**: in very specific use cases, allows you to book the specified `amount` to the specified `account`. For more information, contact Adyen support. Possible values for the [Classic Platforms integration](https://docs.adyen.com/classic-platforms): **Commission**, **Default**, **Marketplace**, **PaymentFee**, **VAT**.") + @ApiModelProperty(required = true, value = "The part of the payment you want to book to the specified `account`. Possible values for the [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): * **BalanceAccount**: books part of the payment (specified in `amount`) to the specified `account`. * Transaction fees types that you can book to the specified `account`: * **AcquiringFees**: the aggregated amount of the interchange and scheme fees. * **PaymentFee**: the aggregated amount of all transaction fees. * **AdyenFees**: the aggregated amount of Adyen's commission and markup fees. * **AdyenCommission**: the transaction fees due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **AdyenMarkup**: the transaction fees due to Adyen under [Interchange ++ pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **Interchange**: the fees paid to the issuer for each payment made with the card network. * **SchemeFee**: the fees paid to the card scheme for using their network. * **Commission**: your platform's commission on the payment (specified in `amount`), booked to your liable balance account. * **Remainder**: the amount left over after a currency conversion, booked to the specified `account`. * **TopUp**: allows you and your users to top up balance accounts using direct debit, card payments, or other payment methods. * **VAT**: the value-added tax charged on the payment, booked to your platforms liable balance account. * **Commission**: your platform's commission (specified in `amount`) on the payment, booked to your liable balance account. * **Default**: in very specific use cases, allows you to book the specified `amount` to the specified `account`. For more information, contact Adyen support. Possible values for the [Classic Platforms integration](https://docs.adyen.com/classic-platforms): **Commission**, **Default**, **Marketplace**, **PaymentFee**, **VAT**.") @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -258,7 +258,7 @@ public TypeEnum getType() { /** - * The part of the payment you want to book to the specified `account`. Possible values for the [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): * **BalanceAccount**: books part of the payment (specified in `amount`) to the specified `account`. * Transaction fees types that you can book to the specified `account`: * **AcquiringFees**: the aggregated amount of the interchange and scheme fees. * **PaymentFee**: the aggregated amount of all transaction fees. * **AdyenFees**: the aggregated amount of Adyen's commission and markup fees. * **AdyenCommission**: the transaction fees due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **AdyenMarkup**: the transaction fees due to Adyen under [Interchange ++ pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **Interchange**: the fees paid to the issuer for each payment made with the card network. * **SchemeFee**: the fees paid to the card scheme for using their network. * **Remainder**: the amount left over after a currency conversion, booked to the specified `account`. * **VAT**: the value-added tax charged on the payment, booked to your platforms liable balance account. * **Commission**: your platform's commission (specified in `amount`) on the payment, booked to your liable balance account. * **Default**: in very specific use cases, allows you to book the specified `amount` to the specified `account`. For more information, contact Adyen support. Possible values for the [Classic Platforms integration](https://docs.adyen.com/classic-platforms): **Commission**, **Default**, **Marketplace**, **PaymentFee**, **VAT**. + * The part of the payment you want to book to the specified `account`. Possible values for the [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): * **BalanceAccount**: books part of the payment (specified in `amount`) to the specified `account`. * Transaction fees types that you can book to the specified `account`: * **AcquiringFees**: the aggregated amount of the interchange and scheme fees. * **PaymentFee**: the aggregated amount of all transaction fees. * **AdyenFees**: the aggregated amount of Adyen's commission and markup fees. * **AdyenCommission**: the transaction fees due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **AdyenMarkup**: the transaction fees due to Adyen under [Interchange ++ pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **Interchange**: the fees paid to the issuer for each payment made with the card network. * **SchemeFee**: the fees paid to the card scheme for using their network. * **Commission**: your platform's commission on the payment (specified in `amount`), booked to your liable balance account. * **Remainder**: the amount left over after a currency conversion, booked to the specified `account`. * **TopUp**: allows you and your users to top up balance accounts using direct debit, card payments, or other payment methods. * **VAT**: the value-added tax charged on the payment, booked to your platforms liable balance account. * **Commission**: your platform's commission (specified in `amount`) on the payment, booked to your liable balance account. * **Default**: in very specific use cases, allows you to book the specified `amount` to the specified `account`. For more information, contact Adyen support. Possible values for the [Classic Platforms integration](https://docs.adyen.com/classic-platforms): **Commission**, **Default**, **Marketplace**, **PaymentFee**, **VAT**. * * @param type */