Class BankAccountInfo


  • public class BankAccountInfo
    extends Object
    BankAccountInfo
    • Constructor Detail

      • BankAccountInfo

        public BankAccountInfo()
    • Method Detail

      • 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)
      • getAccountType

        @Deprecated
        public String getAccountType()
        Deprecated.
        The type of bank account.
        Returns:
        accountType
      • setAccountType

        public void setAccountType​(String accountType)
      • getBankBicSwift

        public String getBankBicSwift()
        The bank's BIC or SWIFT code.
        Returns:
        bankBicSwift
      • setBankBicSwift

        public void setBankBicSwift​(String bankBicSwift)
      • getBankCity

        public String getBankCity()
        The city where the bank is located.
        Returns:
        bankCity
      • setBankCity

        public void setBankCity​(String bankCity)
      • 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)
      • getBankName

        public String getBankName()
        The name of the banking institution where the bank account is held.
        Returns:
        bankName
      • setBankName

        public void setBankName​(String bankName)
      • 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)
      • getCheckCode

        public String getCheckCode()
        The check code of the bank account.
        Returns:
        checkCode
      • setCheckCode

        public void setCheckCode​(String checkCode)
      • 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)
      • 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)
      • 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)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • validateJsonObject

        public static void validateJsonObject​(com.google.gson.JsonObject jsonObj)
                                       throws IOException
        Validates 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