Package io.moov.sdk.models.components
Class Representative
- java.lang.Object
-
- io.moov.sdk.models.components.Representative
-
public class Representative extends java.lang.ObjectRepresentativeDescribes a business representative.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRepresentative.Builder
-
Constructor Summary
Constructors Constructor Description Representative(java.lang.String representativeID, IndividualName name, java.time.OffsetDateTime createdOn, java.time.OffsetDateTime updatedOn)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)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<Address>address()java.util.Optional<java.lang.Boolean>birthDateProvided()Indicates whether this representative's birth date has been provided.static Representative.Builderbuilder()java.time.OffsetDateTimecreatedOn()java.util.Optional<java.time.OffsetDateTime>disabledOn()java.util.Optional<java.lang.String>email()booleanequals(java.lang.Object o)java.util.Optional<java.lang.Boolean>governmentIDProvided()Indicates whether a government ID (SSN, ITIN, etc.) has been provided for this representative.inthashCode()IndividualNamename()java.util.Optional<PhoneNumber>phone()java.lang.StringrepresentativeID()Unique identifier for this representative.java.util.Optional<RepresentativeResponsibilities>responsibilities()Describes the job responsibilities of a business representative.java.lang.StringtoString()java.time.OffsetDateTimeupdatedOn()RepresentativewithAddress(Address address)RepresentativewithAddress(java.util.Optional<? extends Address> address)RepresentativewithBirthDateProvided(boolean birthDateProvided)Indicates whether this representative's birth date has been provided.RepresentativewithBirthDateProvided(java.util.Optional<java.lang.Boolean> birthDateProvided)Indicates whether this representative's birth date has been provided.RepresentativewithCreatedOn(java.time.OffsetDateTime createdOn)RepresentativewithDisabledOn(java.time.OffsetDateTime disabledOn)RepresentativewithDisabledOn(java.util.Optional<java.time.OffsetDateTime> disabledOn)RepresentativewithEmail(java.lang.String email)RepresentativewithEmail(java.util.Optional<java.lang.String> email)RepresentativewithGovernmentIDProvided(boolean governmentIDProvided)Indicates whether a government ID (SSN, ITIN, etc.) has been provided for this representative.RepresentativewithGovernmentIDProvided(java.util.Optional<java.lang.Boolean> governmentIDProvided)Indicates whether a government ID (SSN, ITIN, etc.) has been provided for this representative.RepresentativewithName(IndividualName name)RepresentativewithPhone(PhoneNumber phone)RepresentativewithPhone(java.util.Optional<? extends PhoneNumber> phone)RepresentativewithRepresentativeID(java.lang.String representativeID)Unique identifier for this representative.RepresentativewithResponsibilities(RepresentativeResponsibilities responsibilities)Describes the job responsibilities of a business representative.RepresentativewithResponsibilities(java.util.Optional<? extends RepresentativeResponsibilities> responsibilities)Describes the job responsibilities of a business representative.RepresentativewithUpdatedOn(java.time.OffsetDateTime updatedOn)
-
-
-
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.
-
name
public IndividualName name()
-
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()
-
builder
public static final Representative.Builder builder()
-
withRepresentativeID
public Representative withRepresentativeID(java.lang.String representativeID)
Unique identifier for this representative.
-
withName
public Representative withName(IndividualName name)
-
withPhone
public Representative withPhone(PhoneNumber phone)
-
withPhone
public Representative withPhone(java.util.Optional<? extends PhoneNumber> phone)
-
withEmail
public Representative withEmail(java.lang.String email)
-
withEmail
public Representative withEmail(java.util.Optional<java.lang.String> email)
-
withAddress
public Representative withAddress(Address address)
-
withAddress
public Representative withAddress(java.util.Optional<? extends Address> address)
-
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.
-
withResponsibilities
public Representative withResponsibilities(RepresentativeResponsibilities responsibilities)
Describes the job responsibilities of a business representative.
-
withResponsibilities
public Representative withResponsibilities(java.util.Optional<? extends RepresentativeResponsibilities> responsibilities)
Describes the job responsibilities of a business 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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-