Class BACSAccountIdentifier


  • public class BACSAccountIdentifier
    extends Object
    BACSAccountIdentifier
    • Constructor Detail

      • BACSAccountIdentifier

        public BACSAccountIdentifier()
    • Method Detail

      • accountNumber

        public BACSAccountIdentifier accountNumber​(String accountNumber)
        The account number of the bank account.
        Parameters:
        accountNumber - The account number of the bank account.
        Returns:
        the current BACSAccountIdentifier instance, allowing for method chaining
      • getAccountNumber

        public String getAccountNumber()
        The account number of the bank account.
        Returns:
        accountNumber The account number of the bank account.
      • setAccountNumber

        public void setAccountNumber​(String accountNumber)
        The account number of the bank account.
        Parameters:
        accountNumber - The account number of the bank account.
      • sortCode

        public BACSAccountIdentifier sortCode​(String sortCode)
        A number that identifies the specific bank and branch where a UK bank account is held.
        Parameters:
        sortCode - A number that identifies the specific bank and branch where a UK bank account is held.
        Returns:
        the current BACSAccountIdentifier instance, allowing for method chaining
      • getSortCode

        public String getSortCode()
        A number that identifies the specific bank and branch where a UK bank account is held.
        Returns:
        sortCode A number that identifies the specific bank and branch where a UK bank account is held.
      • setSortCode

        public void setSortCode​(String sortCode)
        A number that identifies the specific bank and branch where a UK bank account is held.
        Parameters:
        sortCode - A number that identifies the specific bank and branch where a UK bank account is held.
      • equals

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

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

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

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