Class BankAccountInfo
- java.lang.Object
-
- com.adyen.model.legalentitymanagement.BankAccountInfo
-
public class BankAccountInfo extends Object
BankAccountInfo
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBankAccountInfo.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_ACCOUNT_NUMBERstatic StringSERIALIZED_NAME_ACCOUNT_TYPEstatic StringSERIALIZED_NAME_BANK_BIC_SWIFTstatic StringSERIALIZED_NAME_BANK_CITYstatic StringSERIALIZED_NAME_BANK_CODEstatic StringSERIALIZED_NAME_BANK_NAMEstatic StringSERIALIZED_NAME_BRANCH_CODEstatic StringSERIALIZED_NAME_CHECK_CODEstatic StringSERIALIZED_NAME_COUNTRY_CODEstatic StringSERIALIZED_NAME_CURRENCY_CODEstatic StringSERIALIZED_NAME_IBAN
-
Constructor Summary
Constructors Constructor Description BankAccountInfo()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description BankAccountInfoaccountNumber(String accountNumber)BankAccountInfoaccountType(String accountType)BankAccountInfobankBicSwift(String bankBicSwift)BankAccountInfobankCity(String bankCity)BankAccountInfobankCode(String bankCode)BankAccountInfobankName(String bankName)BankAccountInfobranchCode(String branchCode)BankAccountInfocheckCode(String checkCode)BankAccountInfocountryCode(String countryCode)BankAccountInfocurrencyCode(String currencyCode)booleanequals(Object o)static BankAccountInfofromJson(String jsonString)Create an instance of BankAccountInfo given an JSON stringStringgetAccountNumber()The bank account number (without separators).StringgetAccountType()Deprecated.StringgetBankBicSwift()The bank's BIC or SWIFT code.StringgetBankCity()The city where the bank is located.StringgetBankCode()The bank code of the banking institution with which the bank account is registered.StringgetBankName()The name of the banking institution where the bank account is held.StringgetBranchCode()The branch code of the branch under which the bank account is registered.StringgetCheckCode()The check code of the bank account.StringgetCountryCode()The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the bank account is registered.StringgetCurrencyCode()The account's three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes).StringgetIban()The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard.inthashCode()BankAccountInfoiban(String iban)voidsetAccountNumber(String accountNumber)voidsetAccountType(String accountType)voidsetBankBicSwift(String bankBicSwift)voidsetBankCity(String bankCity)voidsetBankCode(String bankCode)voidsetBankName(String bankName)voidsetBranchCode(String branchCode)voidsetCheckCode(String checkCode)voidsetCountryCode(String countryCode)voidsetCurrencyCode(String currencyCode)voidsetIban(String iban)StringtoJson()Convert an instance of BankAccountInfo 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_ACCOUNT_NUMBER
public static final String SERIALIZED_NAME_ACCOUNT_NUMBER
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ACCOUNT_TYPE
public static final String SERIALIZED_NAME_ACCOUNT_TYPE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_BANK_BIC_SWIFT
public static final String SERIALIZED_NAME_BANK_BIC_SWIFT
- 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_CODE
public static final String SERIALIZED_NAME_BANK_CODE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_BANK_NAME
public static final String SERIALIZED_NAME_BANK_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_BRANCH_CODE
public static final String SERIALIZED_NAME_BRANCH_CODE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CHECK_CODE
public static final String SERIALIZED_NAME_CHECK_CODE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_COUNTRY_CODE
public static final String SERIALIZED_NAME_COUNTRY_CODE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CURRENCY_CODE
public static final String SERIALIZED_NAME_CURRENCY_CODE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_IBAN
public static final String SERIALIZED_NAME_IBAN
- See Also:
- Constant Field Values
-
-
Method Detail
-
accountNumber
public BankAccountInfo accountNumber(String accountNumber)
-
getAccountNumber
public String getAccountNumber()
The bank account number (without separators). When this is provided, the `branchCode` is also required.- Returns:
- accountNumber
-
setAccountNumber
public void setAccountNumber(String accountNumber)
-
accountType
public BankAccountInfo accountType(String accountType)
-
getAccountType
@Deprecated public String getAccountType()
Deprecated.The type of bank account.- Returns:
- accountType
-
setAccountType
public void setAccountType(String accountType)
-
bankBicSwift
public BankAccountInfo bankBicSwift(String bankBicSwift)
-
getBankBicSwift
public String getBankBicSwift()
The bank's BIC or SWIFT code.- Returns:
- bankBicSwift
-
setBankBicSwift
public void setBankBicSwift(String bankBicSwift)
-
bankCity
public BankAccountInfo bankCity(String bankCity)
-
getBankCity
public String getBankCity()
The city where the bank is located.- Returns:
- bankCity
-
setBankCity
public void setBankCity(String bankCity)
-
bankCode
public BankAccountInfo bankCode(String bankCode)
-
getBankCode
public String getBankCode()
The bank code of the banking institution with which the bank account is registered.- Returns:
- bankCode
-
setBankCode
public void setBankCode(String bankCode)
-
bankName
public BankAccountInfo bankName(String bankName)
-
getBankName
public String getBankName()
The name of the banking institution where the bank account is held.- Returns:
- bankName
-
setBankName
public void setBankName(String bankName)
-
branchCode
public BankAccountInfo branchCode(String branchCode)
-
getBranchCode
public String getBranchCode()
The branch code of the branch under which the bank account is registered. Required when you provide an `accountNumber`. In the following countries, this value corresponds to: * United States: routing number * United Kingdom: sort code * Germany: Bankleitzahl- Returns:
- branchCode
-
setBranchCode
public void setBranchCode(String branchCode)
-
checkCode
public BankAccountInfo checkCode(String checkCode)
-
getCheckCode
public String getCheckCode()
The check code of the bank account.- Returns:
- checkCode
-
setCheckCode
public void setCheckCode(String checkCode)
-
countryCode
public BankAccountInfo countryCode(String countryCode)
-
getCountryCode
public String getCountryCode()
The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the bank account is registered. For example, **NL**.- Returns:
- countryCode
-
setCountryCode
public void setCountryCode(String countryCode)
-
currencyCode
public BankAccountInfo currencyCode(String currencyCode)
-
getCurrencyCode
public String getCurrencyCode()
The account's three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). For example, **EUR**.- Returns:
- currencyCode
-
setCurrencyCode
public void setCurrencyCode(String currencyCode)
-
iban
public BankAccountInfo iban(String iban)
-
getIban
public String getIban()
The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard.- Returns:
- iban
-
setIban
public void setIban(String iban)
-
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 BankAccountInfo
-
fromJson
public static BankAccountInfo fromJson(String jsonString) throws IOException
Create an instance of BankAccountInfo given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of BankAccountInfo
- Throws:
IOException- if the JSON string is invalid with respect to BankAccountInfo
-
toJson
public String toJson()
Convert an instance of BankAccountInfo to an JSON string- Returns:
- JSON string
-
-