Class Recipient


  • public final class Recipient
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Recipient()  
      Recipient​(java.time.Instant dob, java.lang.String accountNumber, Address address, java.lang.String firstName, java.lang.String lastName)
      Creates a new Recipient instance.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static Recipient.RecipientBuilder builder()  
      boolean equals​(java.lang.Object o)  
      java.lang.String getAccountNumber()
      An identifier related to the primary recipient's account.
      Address getAddress()
      The recipient's address.
      java.time.Instant getDob()
      The recipient's date of birth, in the format YYYY-MM-DD.
      java.lang.String getFirstName()
      The recipient's first name.
      java.lang.String getLastName()
      The recipient's last name.
      int hashCode()  
      void setAccountNumber​(java.lang.String accountNumber)
      An identifier related to the primary recipient's account.
      void setAddress​(Address address)
      The recipient's address.
      void setDob​(java.time.Instant dob)
      The recipient's date of birth, in the format YYYY-MM-DD.
      void setFirstName​(java.lang.String firstName)
      The recipient's first name.
      void setLastName​(java.lang.String lastName)
      The recipient's last name.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Recipient

        public Recipient()
      • Recipient

        public Recipient​(java.time.Instant dob,
                         java.lang.String accountNumber,
                         Address address,
                         java.lang.String firstName,
                         java.lang.String lastName)
        Creates a new Recipient instance.
        Parameters:
        dob - The recipient's date of birth, in the format YYYY-MM-DD.
        accountNumber - An identifier related to the primary recipient's account. For example, an IBAN, an internal account number, a phone number, or the first six and last four digits of the PAN.
        address - The recipient's address.
        firstName - The recipient's first name.
        lastName - The recipient's last name.
    • Method Detail

      • getDob

        public java.time.Instant getDob()
        The recipient's date of birth, in the format YYYY-MM-DD.
      • getAccountNumber

        public java.lang.String getAccountNumber()
        An identifier related to the primary recipient's account. For example, an IBAN, an internal account number, a phone number, or the first six and last four digits of the PAN.
      • getAddress

        public Address getAddress()
        The recipient's address.
      • getFirstName

        public java.lang.String getFirstName()
        The recipient's first name.
      • getLastName

        public java.lang.String getLastName()
        The recipient's last name.
      • setDob

        public void setDob​(java.time.Instant dob)
        The recipient's date of birth, in the format YYYY-MM-DD.
      • setAccountNumber

        public void setAccountNumber​(java.lang.String accountNumber)
        An identifier related to the primary recipient's account. For example, an IBAN, an internal account number, a phone number, or the first six and last four digits of the PAN.
      • setAddress

        public void setAddress​(Address address)
        The recipient's address.
      • setFirstName

        public void setFirstName​(java.lang.String firstName)
        The recipient's first name.
      • setLastName

        public void setLastName​(java.lang.String lastName)
        The recipient's last name.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object