Class AccountHolder


  • public final class AccountHolder
    extends java.lang.Object
    account_holder object describes payee details
    • Constructor Detail

      • AccountHolder

        public AccountHolder()
      • AccountHolder

        public AccountHolder​(java.lang.String firstName,
                             java.lang.String lastName,
                             BillingAddress billingAddress,
                             java.lang.String email,
                             java.lang.String dateOfBirth,
                             java.lang.String gender,
                             Phone phone)
        Creates a new AccountHolder instance.
        Parameters:
        firstName - First name of the account holder. [Optional]
        lastName - Last name of the account holder. [Optional]
        billingAddress - Address of the account holder. [Optional]
        email - Email address of the account holder. [Optional]
        dateOfBirth - Date of birth of the account holder. [Optional]
        gender - Gender of the account holder. [Optional]
        phone - Phone number of the account holder. [Optional]
    • Method Detail

      • getFirstName

        public java.lang.String getFirstName()
        First name of the account holder. [Optional]
      • getLastName

        public java.lang.String getLastName()
        Last name of the account holder. [Optional]
      • getBillingAddress

        public BillingAddress getBillingAddress()
        Address of the account holder. [Optional]
      • getEmail

        public java.lang.String getEmail()
        Email address of the account holder. [Optional]
      • getDateOfBirth

        public java.lang.String getDateOfBirth()
        Date of birth of the account holder. [Optional]
      • getGender

        public java.lang.String getGender()
        Gender of the account holder. [Optional]
      • getPhone

        public Phone getPhone()
        Phone number of the account holder. [Optional]
      • setFirstName

        public void setFirstName​(java.lang.String firstName)
        First name of the account holder. [Optional]
      • setLastName

        public void setLastName​(java.lang.String lastName)
        Last name of the account holder. [Optional]
      • setBillingAddress

        public void setBillingAddress​(BillingAddress billingAddress)
        Address of the account holder. [Optional]
      • setEmail

        public void setEmail​(java.lang.String email)
        Email address of the account holder. [Optional]
      • setDateOfBirth

        public void setDateOfBirth​(java.lang.String dateOfBirth)
        Date of birth of the account holder. [Optional]
      • setGender

        public void setGender​(java.lang.String gender)
        Gender of the account holder. [Optional]
      • setPhone

        public void setPhone​(Phone phone)
        Phone number of the account holder. [Optional]
      • 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