Class BankAccountInfo


  • public class BankAccountInfo
    extends Object
    BankAccountInfo
    • Constructor Detail

      • BankAccountInfo

        public BankAccountInfo()
    • Method Detail

      • getAccountType

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

        @Deprecated
        public void setAccountType​(String accountType)
        Deprecated.
      • 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)
      • 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