Package com.adyen.model.checkout
Class CheckoutBankAccount
- java.lang.Object
-
- com.adyen.model.checkout.CheckoutBankAccount
-
public class CheckoutBankAccount extends Object
CheckoutBankAccount
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCheckoutBankAccount.AccountTypeEnumThe type of the bank account.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ACCOUNT_TYPEstatic StringJSON_PROPERTY_BANK_ACCOUNT_NUMBERstatic StringJSON_PROPERTY_BANK_CITYstatic StringJSON_PROPERTY_BANK_LOCATION_IDstatic StringJSON_PROPERTY_BANK_NAMEstatic StringJSON_PROPERTY_BICstatic StringJSON_PROPERTY_COUNTRY_CODEstatic StringJSON_PROPERTY_IBANstatic StringJSON_PROPERTY_OWNER_NAMEstatic StringJSON_PROPERTY_TAX_ID
-
Constructor Summary
Constructors Constructor Description CheckoutBankAccount()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CheckoutBankAccountaccountType(CheckoutBankAccount.AccountTypeEnum accountType)The type of the bank account.CheckoutBankAccountbankAccountNumber(String bankAccountNumber)The bank account number (without separators).CheckoutBankAccountbankCity(String bankCity)The bank city.CheckoutBankAccountbankLocationId(String bankLocationId)The location id of the bank.CheckoutBankAccountbankName(String bankName)The name of the bank.CheckoutBankAccountbic(String bic)The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT address assigned to a bank.CheckoutBankAccountcountryCode(String countryCode)Country code where the bank is located.booleanequals(Object o)Return true if this CheckoutBankAccount object is equal to o.static CheckoutBankAccountfromJson(String jsonString)Create an instance of CheckoutBankAccount given an JSON stringCheckoutBankAccount.AccountTypeEnumgetAccountType()The type of the bank account.StringgetBankAccountNumber()The bank account number (without separators).StringgetBankCity()The bank city.StringgetBankLocationId()The location id of the bank.StringgetBankName()The name of the bank.StringgetBic()The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT address assigned to a bank.StringgetCountryCode()Country code where the bank is located.Map<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.StringgetIban()The [International Bank Account Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN).StringgetOwnerName()The name of the bank account holder.StringgetTaxId()The bank account holder's tax ID.inthashCode()CheckoutBankAccountiban(String iban)The [International Bank Account Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN).CheckoutBankAccountincludeNullValues(boolean includeNullValues)Configures whether null values are explicitly serialized in the JSON payload.booleanisIncludeNullValues()Returns whether null values are explicitly serialized in the JSON payload.CheckoutBankAccountownerName(String ownerName)The name of the bank account holder.voidsetAccountType(CheckoutBankAccount.AccountTypeEnum accountType)The type of the bank account.voidsetBankAccountNumber(String bankAccountNumber)The bank account number (without separators).voidsetBankCity(String bankCity)The bank city.voidsetBankLocationId(String bankLocationId)The location id of the bank.voidsetBankName(String bankName)The name of the bank.voidsetBic(String bic)The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT address assigned to a bank.voidsetCountryCode(String countryCode)Country code where the bank is located.voidsetIban(String iban)The [International Bank Account Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN).voidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetOwnerName(String ownerName)The name of the bank account holder.voidsetTaxId(String taxId)The bank account holder's tax ID.CheckoutBankAccounttaxId(String taxId)The bank account holder's tax ID.StringtoJson()Convert an instance of CheckoutBankAccount to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_ACCOUNT_TYPE
public static final String JSON_PROPERTY_ACCOUNT_TYPE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_BANK_ACCOUNT_NUMBER
public static final String JSON_PROPERTY_BANK_ACCOUNT_NUMBER
- See Also:
- Constant Field Values
-
JSON_PROPERTY_BANK_CITY
public static final String JSON_PROPERTY_BANK_CITY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_BANK_LOCATION_ID
public static final String JSON_PROPERTY_BANK_LOCATION_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_BANK_NAME
public static final String JSON_PROPERTY_BANK_NAME
- See Also:
- Constant Field Values
-
JSON_PROPERTY_BIC
public static final String JSON_PROPERTY_BIC
- See Also:
- Constant Field Values
-
JSON_PROPERTY_COUNTRY_CODE
public static final String JSON_PROPERTY_COUNTRY_CODE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_IBAN
public static final String JSON_PROPERTY_IBAN
- See Also:
- Constant Field Values
-
JSON_PROPERTY_OWNER_NAME
public static final String JSON_PROPERTY_OWNER_NAME
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TAX_ID
public static final String JSON_PROPERTY_TAX_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
accountType
public CheckoutBankAccount accountType(CheckoutBankAccount.AccountTypeEnum accountType)
The type of the bank account.- Parameters:
accountType- The type of the bank account.- Returns:
- the current
CheckoutBankAccountinstance, allowing for method chaining
-
getAccountType
public CheckoutBankAccount.AccountTypeEnum getAccountType()
The type of the bank account.- Returns:
- accountType The type of the bank account.
-
setAccountType
public void setAccountType(CheckoutBankAccount.AccountTypeEnum accountType)
The type of the bank account.- Parameters:
accountType- The type of the bank account.
-
bankAccountNumber
public CheckoutBankAccount bankAccountNumber(String bankAccountNumber)
The bank account number (without separators).- Parameters:
bankAccountNumber- The bank account number (without separators).- Returns:
- the current
CheckoutBankAccountinstance, allowing for method chaining
-
getBankAccountNumber
public String getBankAccountNumber()
The bank account number (without separators).- Returns:
- bankAccountNumber The bank account number (without separators).
-
setBankAccountNumber
public void setBankAccountNumber(String bankAccountNumber)
The bank account number (without separators).- Parameters:
bankAccountNumber- The bank account number (without separators).
-
bankCity
public CheckoutBankAccount bankCity(String bankCity)
The bank city.- Parameters:
bankCity- The bank city.- Returns:
- the current
CheckoutBankAccountinstance, allowing for method chaining
-
getBankCity
public String getBankCity()
The bank city.- Returns:
- bankCity The bank city.
-
setBankCity
public void setBankCity(String bankCity)
The bank city.- Parameters:
bankCity- The bank city.
-
bankLocationId
public CheckoutBankAccount bankLocationId(String bankLocationId)
The location id of the bank. The field value is `nil` in most cases.- Parameters:
bankLocationId- The location id of the bank. The field value is `nil` in most cases.- Returns:
- the current
CheckoutBankAccountinstance, allowing for method chaining
-
getBankLocationId
public String getBankLocationId()
The location id of the bank. The field value is `nil` in most cases.- Returns:
- bankLocationId The location id of the bank. The field value is `nil` in most cases.
-
setBankLocationId
public void setBankLocationId(String bankLocationId)
The location id of the bank. The field value is `nil` in most cases.- Parameters:
bankLocationId- The location id of the bank. The field value is `nil` in most cases.
-
bankName
public CheckoutBankAccount bankName(String bankName)
The name of the bank.- Parameters:
bankName- The name of the bank.- Returns:
- the current
CheckoutBankAccountinstance, allowing for method chaining
-
getBankName
public String getBankName()
The name of the bank.- Returns:
- bankName The name of the bank.
-
setBankName
public void setBankName(String bankName)
The name of the bank.- Parameters:
bankName- The name of the bank.
-
bic
public CheckoutBankAccount bic(String bic)
The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT address assigned to a bank. The field value is `nil` in most cases.- Parameters:
bic- The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT address assigned to a bank. The field value is `nil` in most cases.- Returns:
- the current
CheckoutBankAccountinstance, allowing for method chaining
-
getBic
public String getBic()
The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT address assigned to a bank. The field value is `nil` in most cases.- Returns:
- bic The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT address assigned to a bank. The field value is `nil` in most cases.
-
setBic
public void setBic(String bic)
The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT address assigned to a bank. The field value is `nil` in most cases.- Parameters:
bic- The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT address assigned to a bank. The field value is `nil` in most cases.
-
countryCode
public CheckoutBankAccount countryCode(String countryCode)
Country code where the bank is located. A valid value is an ISO two-character country code (e.g. 'NL').- Parameters:
countryCode- Country code where the bank is located. A valid value is an ISO two-character country code (e.g. 'NL').- Returns:
- the current
CheckoutBankAccountinstance, allowing for method chaining
-
getCountryCode
public String getCountryCode()
Country code where the bank is located. A valid value is an ISO two-character country code (e.g. 'NL').- Returns:
- countryCode Country code where the bank is located. A valid value is an ISO two-character country code (e.g. 'NL').
-
setCountryCode
public void setCountryCode(String countryCode)
Country code where the bank is located. A valid value is an ISO two-character country code (e.g. 'NL').- Parameters:
countryCode- Country code where the bank is located. A valid value is an ISO two-character country code (e.g. 'NL').
-
iban
public CheckoutBankAccount iban(String iban)
The [International Bank Account Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN).- Parameters:
iban- The [International Bank Account Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN).- Returns:
- the current
CheckoutBankAccountinstance, allowing for method chaining
-
getIban
public String getIban()
The [International Bank Account Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN).- Returns:
- iban The [International Bank Account Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN).
-
setIban
public void setIban(String iban)
The [International Bank Account Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN).- Parameters:
iban- The [International Bank Account Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN).
-
ownerName
public CheckoutBankAccount ownerName(String ownerName)
The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don't accept 'ø'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don't match the required format, the response returns the error message: 203 'Invalid bank account holder name'.- Parameters:
ownerName- The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don't accept 'ø'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don't match the required format, the response returns the error message: 203 'Invalid bank account holder name'.- Returns:
- the current
CheckoutBankAccountinstance, allowing for method chaining
-
getOwnerName
public String getOwnerName()
The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don't accept 'ø'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don't match the required format, the response returns the error message: 203 'Invalid bank account holder name'.- Returns:
- ownerName The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don't accept 'ø'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don't match the required format, the response returns the error message: 203 'Invalid bank account holder name'.
-
setOwnerName
public void setOwnerName(String ownerName)
The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don't accept 'ø'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don't match the required format, the response returns the error message: 203 'Invalid bank account holder name'.- Parameters:
ownerName- The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don't accept 'ø'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don't match the required format, the response returns the error message: 203 'Invalid bank account holder name'.
-
taxId
public CheckoutBankAccount taxId(String taxId)
The bank account holder's tax ID.- Parameters:
taxId- The bank account holder's tax ID.- Returns:
- the current
CheckoutBankAccountinstance, allowing for method chaining
-
getTaxId
public String getTaxId()
The bank account holder's tax ID.- Returns:
- taxId The bank account holder's tax ID.
-
setTaxId
public void setTaxId(String taxId)
The bank account holder's tax ID.- Parameters:
taxId- The bank account holder's tax ID.
-
includeNullValues
public CheckoutBankAccount includeNullValues(boolean includeNullValues)
Configures whether null values are explicitly serialized in the JSON payload. Default is false.
-
isIncludeNullValues
public boolean isIncludeNullValues()
Returns whether null values are explicitly serialized in the JSON payload.
-
setIncludeNullValues
public void setIncludeNullValues(boolean includeNullValues)
Sets whether null values should be explicitly serialized in the JSON payload. Default is false.
-
equals
public boolean equals(Object o)
Return true if this CheckoutBankAccount object is equal to o.
-
getExplicitNulls
public Map<String,Object> getExplicitNulls()
Returns a map of properties to be merged into the JSON payload as explicit null values.
-
fromJson
public static CheckoutBankAccount fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of CheckoutBankAccount given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CheckoutBankAccount
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to CheckoutBankAccount
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of CheckoutBankAccount to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-