Class BankAccountDetails


  • public class BankAccountDetails
    extends Object
    BankAccountDetails
    • Constructor Detail

      • BankAccountDetails

        public BankAccountDetails()
    • Method Detail

      • accountNumber

        public BankAccountDetails accountNumber​(String accountNumber)
        The bank account number, without separators or whitespace.
        Parameters:
        accountNumber -
        Returns:
        the current BankAccountDetails instance, allowing for method chaining
      • getAccountNumber

        public String getAccountNumber()
        The bank account number, without separators or whitespace.
        Returns:
        accountNumber
      • setAccountNumber

        public void setAccountNumber​(String accountNumber)
        The bank account number, without separators or whitespace.
        Parameters:
        accountNumber -
      • accountType

        public BankAccountDetails accountType​(String accountType)
        The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**.
        Parameters:
        accountType -
        Returns:
        the current BankAccountDetails instance, allowing for method chaining
      • getAccountType

        public String getAccountType()
        The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**.
        Returns:
        accountType
      • setAccountType

        public void setAccountType​(String accountType)
        The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**.
        Parameters:
        accountType -
      • branchNumber

        public BankAccountDetails branchNumber​(String branchNumber)
        The bank account branch number, without separators or whitespace
        Parameters:
        branchNumber -
        Returns:
        the current BankAccountDetails instance, allowing for method chaining
      • getBranchNumber

        public String getBranchNumber()
        The bank account branch number, without separators or whitespace
        Returns:
        branchNumber
      • setBranchNumber

        public void setBranchNumber​(String branchNumber)
        The bank account branch number, without separators or whitespace
        Parameters:
        branchNumber -
      • formFactor

        public BankAccountDetails formFactor​(String formFactor)
        Business accounts with a `formFactor` value of **physical** are business accounts issued under the central bank of that country. The default value is **physical** for NL, US, and UK business accounts. Adyen creates a local IBAN for business accounts when the `formFactor` value is set to **virtual**. The local IBANs that are supported are for DE and FR, which reference a physical NL account, with funds being routed through the central bank of NL.
        Parameters:
        formFactor -
        Returns:
        the current BankAccountDetails instance, allowing for method chaining
      • getFormFactor

        public String getFormFactor()
        Business accounts with a `formFactor` value of **physical** are business accounts issued under the central bank of that country. The default value is **physical** for NL, US, and UK business accounts. Adyen creates a local IBAN for business accounts when the `formFactor` value is set to **virtual**. The local IBANs that are supported are for DE and FR, which reference a physical NL account, with funds being routed through the central bank of NL.
        Returns:
        formFactor
      • setFormFactor

        public void setFormFactor​(String formFactor)
        Business accounts with a `formFactor` value of **physical** are business accounts issued under the central bank of that country. The default value is **physical** for NL, US, and UK business accounts. Adyen creates a local IBAN for business accounts when the `formFactor` value is set to **virtual**. The local IBANs that are supported are for DE and FR, which reference a physical NL account, with funds being routed through the central bank of NL.
        Parameters:
        formFactor -
      • iban

        public BankAccountDetails iban​(String iban)
        The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard.
        Parameters:
        iban -
        Returns:
        the current BankAccountDetails instance, allowing for method chaining
      • 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)
        The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard.
        Parameters:
        iban -
      • routingNumber

        public BankAccountDetails routingNumber​(String routingNumber)
        The [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace.
        Parameters:
        routingNumber -
        Returns:
        the current BankAccountDetails instance, allowing for method chaining
      • getRoutingNumber

        public String getRoutingNumber()
        The [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace.
        Returns:
        routingNumber
      • setRoutingNumber

        public void setRoutingNumber​(String routingNumber)
        The [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace.
        Parameters:
        routingNumber -
      • sortCode

        public BankAccountDetails sortCode​(String sortCode)
        The [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace.
        Parameters:
        sortCode -
        Returns:
        the current BankAccountDetails instance, allowing for method chaining
      • getSortCode

        public String getSortCode()
        The [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace.
        Returns:
        sortCode
      • setSortCode

        public void setSortCode​(String sortCode)
        The [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace.
        Parameters:
        sortCode -
      • type

        public BankAccountDetails type​(String type)
        **iban** or **usLocal** or **ukLocal**
        Parameters:
        type -
        Returns:
        the current BankAccountDetails instance, allowing for method chaining
      • getType

        public String getType()
        **iban** or **usLocal** or **ukLocal**
        Returns:
        type
      • setType

        public void setType​(String type)
        **iban** or **usLocal** or **ukLocal**
        Parameters:
        type -
      • equals

        public boolean equals​(Object o)
        Return true if this BankAccountDetails object is equal to o.
        Overrides:
        equals in class Object
      • hashCode

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

        public static BankAccountDetails fromJson​(String jsonString)
                                           throws com.fasterxml.jackson.core.JsonProcessingException
        Create an instance of BankAccountDetails given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of BankAccountDetails
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException - if the JSON string is invalid with respect to BankAccountDetails
      • toJson

        public String toJson()
                      throws com.fasterxml.jackson.core.JsonProcessingException
        Convert an instance of BankAccountDetails to an JSON string
        Returns:
        JSON string
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException