Class Representative


  • public class Representative
    extends java.lang.Object
    Representative

    Describes a business representative.

    • Constructor Detail

      • Representative

        public Representative​(java.lang.String representativeID,
                              IndividualName name,
                              java.util.Optional<? extends PhoneNumber> phone,
                              java.util.Optional<java.lang.String> email,
                              java.util.Optional<? extends Address> address,
                              java.util.Optional<java.lang.Boolean> birthDateProvided,
                              java.util.Optional<java.lang.Boolean> governmentIDProvided,
                              java.util.Optional<? extends RepresentativeResponsibilities> responsibilities,
                              java.time.OffsetDateTime createdOn,
                              java.time.OffsetDateTime updatedOn,
                              java.util.Optional<java.time.OffsetDateTime> disabledOn)
      • Representative

        public Representative​(java.lang.String representativeID,
                              IndividualName name,
                              java.time.OffsetDateTime createdOn,
                              java.time.OffsetDateTime updatedOn)
    • Method Detail

      • representativeID

        public java.lang.String representativeID()
        Unique identifier for this representative.
      • phone

        public java.util.Optional<PhoneNumber> phone()
      • email

        public java.util.Optional<java.lang.String> email()
      • address

        public java.util.Optional<Address> address()
      • birthDateProvided

        public java.util.Optional<java.lang.Boolean> birthDateProvided()
        Indicates whether this representative's birth date has been provided.
      • governmentIDProvided

        public java.util.Optional<java.lang.Boolean> governmentIDProvided()
        Indicates whether a government ID (SSN, ITIN, etc.) has been provided for this representative.
      • responsibilities

        public java.util.Optional<RepresentativeResponsibilities> responsibilities()
        Describes the job responsibilities of a business representative.
      • createdOn

        public java.time.OffsetDateTime createdOn()
      • updatedOn

        public java.time.OffsetDateTime updatedOn()
      • disabledOn

        public java.util.Optional<java.time.OffsetDateTime> disabledOn()
      • withRepresentativeID

        public Representative withRepresentativeID​(java.lang.String representativeID)
        Unique identifier for this representative.
      • withEmail

        public Representative withEmail​(java.lang.String email)
      • withEmail

        public Representative withEmail​(java.util.Optional<java.lang.String> email)
      • withBirthDateProvided

        public Representative withBirthDateProvided​(boolean birthDateProvided)
        Indicates whether this representative's birth date has been provided.
      • withBirthDateProvided

        public Representative withBirthDateProvided​(java.util.Optional<java.lang.Boolean> birthDateProvided)
        Indicates whether this representative's birth date has been provided.
      • withGovernmentIDProvided

        public Representative withGovernmentIDProvided​(boolean governmentIDProvided)
        Indicates whether a government ID (SSN, ITIN, etc.) has been provided for this representative.
      • withGovernmentIDProvided

        public Representative withGovernmentIDProvided​(java.util.Optional<java.lang.Boolean> governmentIDProvided)
        Indicates whether a government ID (SSN, ITIN, etc.) has been provided for this representative.
      • withCreatedOn

        public Representative withCreatedOn​(java.time.OffsetDateTime createdOn)
      • withUpdatedOn

        public Representative withUpdatedOn​(java.time.OffsetDateTime updatedOn)
      • withDisabledOn

        public Representative withDisabledOn​(java.time.OffsetDateTime disabledOn)
      • withDisabledOn

        public Representative withDisabledOn​(java.util.Optional<java.time.OffsetDateTime> disabledOn)
      • 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