Package com.adyen.model.payment
Class BankAccount
- java.lang.Object
-
- com.adyen.model.payment.BankAccount
-
public class BankAccount extends Object
BankAccount
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBankAccount.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_BANK_ACCOUNT_NUMBERstatic StringSERIALIZED_NAME_BANK_CITYstatic StringSERIALIZED_NAME_BANK_LOCATION_IDstatic StringSERIALIZED_NAME_BANK_NAMEstatic StringSERIALIZED_NAME_BICstatic StringSERIALIZED_NAME_COUNTRY_CODEstatic StringSERIALIZED_NAME_IBANstatic StringSERIALIZED_NAME_OWNER_NAMEstatic StringSERIALIZED_NAME_TAX_ID
-
Constructor Summary
Constructors Constructor Description BankAccount()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BankAccountbankAccountNumber(String bankAccountNumber)BankAccountbankCity(String bankCity)BankAccountbankLocationId(String bankLocationId)BankAccountbankName(String bankName)BankAccountbic(String bic)BankAccountcountryCode(String countryCode)booleanequals(Object o)static BankAccountfromJson(String jsonString)Create an instance of BankAccount given an JSON stringStringgetBankAccountNumber()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.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()BankAccountiban(String iban)BankAccountownerName(String ownerName)voidsetBankAccountNumber(String bankAccountNumber)voidsetBankCity(String bankCity)voidsetBankLocationId(String bankLocationId)voidsetBankName(String bankName)voidsetBic(String bic)voidsetCountryCode(String countryCode)voidsetIban(String iban)voidsetOwnerName(String ownerName)voidsetTaxId(String taxId)BankAccounttaxId(String taxId)StringtoJson()Convert an instance of BankAccount to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_BANK_ACCOUNT_NUMBER
public static final String SERIALIZED_NAME_BANK_ACCOUNT_NUMBER
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_BANK_CITY
public static final String SERIALIZED_NAME_BANK_CITY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_BANK_LOCATION_ID
public static final String SERIALIZED_NAME_BANK_LOCATION_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_BANK_NAME
public static final String SERIALIZED_NAME_BANK_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_BIC
public static final String SERIALIZED_NAME_BIC
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_COUNTRY_CODE
public static final String SERIALIZED_NAME_COUNTRY_CODE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_IBAN
public static final String SERIALIZED_NAME_IBAN
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_OWNER_NAME
public static final String SERIALIZED_NAME_OWNER_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TAX_ID
public static final String SERIALIZED_NAME_TAX_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
bankAccountNumber
public BankAccount bankAccountNumber(String bankAccountNumber)
-
getBankAccountNumber
public String getBankAccountNumber()
The bank account number (without separators).- Returns:
- bankAccountNumber
-
setBankAccountNumber
public void setBankAccountNumber(String bankAccountNumber)
-
bankCity
public BankAccount bankCity(String bankCity)
-
getBankCity
public String getBankCity()
The bank city.- Returns:
- bankCity
-
setBankCity
public void setBankCity(String bankCity)
-
bankLocationId
public BankAccount bankLocationId(String bankLocationId)
-
getBankLocationId
public String getBankLocationId()
The location id of the bank. The field value is `nil` in most cases.- Returns:
- bankLocationId
-
setBankLocationId
public void setBankLocationId(String bankLocationId)
-
bankName
public BankAccount bankName(String bankName)
-
getBankName
public String getBankName()
The name of the bank.- Returns:
- bankName
-
setBankName
public void setBankName(String bankName)
-
bic
public BankAccount bic(String bic)
-
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
-
setBic
public void setBic(String bic)
-
countryCode
public BankAccount countryCode(String countryCode)
-
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
-
setCountryCode
public void setCountryCode(String countryCode)
-
iban
public BankAccount iban(String iban)
-
getIban
public String getIban()
The [International Bank Account Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN).- Returns:
- iban
-
setIban
public void setIban(String iban)
-
ownerName
public BankAccount ownerName(String ownerName)
-
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
-
setOwnerName
public void setOwnerName(String ownerName)
-
taxId
public BankAccount taxId(String taxId)
-
getTaxId
public String getTaxId()
The bank account holder's tax ID.- Returns:
- taxId
-
setTaxId
public void setTaxId(String taxId)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOExceptionValidates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
IOException- if the JSON Object is invalid with respect to BankAccount
-
fromJson
public static BankAccount fromJson(String jsonString) throws IOException
Create an instance of BankAccount given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of BankAccount
- Throws:
IOException- if the JSON string is invalid with respect to BankAccount
-
toJson
public String toJson()
Convert an instance of BankAccount to an JSON string- Returns:
- JSON string
-
-