Package com.xero.models.accounting
Class User
- java.lang.Object
-
- com.xero.models.accounting.User
-
public class User extends Object
User
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUser.OrganisationRoleEnumUser role that defines permissions in Xero and via API (READONLY, INVOICEONLY, STANDARD, FINANCIALADVISER, etc)
-
Constructor Summary
Constructors Constructor Description User()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UseremailAddress(String emailAddress)Email address of userbooleanequals(Object o)UserfirstName(String firstName)First name of userStringgetEmailAddress()Email address of userStringgetFirstName()First name of userBooleangetIsSubscriber()Boolean to indicate if user is the subscriberStringgetLastName()Last name of userUser.OrganisationRoleEnumgetOrganisationRole()User role that defines permissions in Xero and via API (READONLY, INVOICEONLY, STANDARD, FINANCIALADVISER, etc)StringgetUpdatedDateUTC()Timestamp of last change to userorg.threeten.bp.OffsetDateTimegetUpdatedDateUTCAsDate()Timestamp of last change to userUUIDgetUserID()Xero identifierinthashCode()UserisSubscriber(Boolean isSubscriber)Boolean to indicate if user is the subscriberUserlastName(String lastName)Last name of userUserorganisationRole(User.OrganisationRoleEnum organisationRole)User role that defines permissions in Xero and via API (READONLY, INVOICEONLY, STANDARD, FINANCIALADVISER, etc)voidsetEmailAddress(String emailAddress)Email address of uservoidsetFirstName(String firstName)First name of uservoidsetIsSubscriber(Boolean isSubscriber)Boolean to indicate if user is the subscribervoidsetLastName(String lastName)Last name of uservoidsetOrganisationRole(User.OrganisationRoleEnum organisationRole)User role that defines permissions in Xero and via API (READONLY, INVOICEONLY, STANDARD, FINANCIALADVISER, etc)voidsetUserID(UUID userID)Xero identifierStringtoString()UseruserID(UUID userID)Xero identifier
-
-
-
Method Detail
-
getUserID
public UUID getUserID()
Xero identifier- Returns:
- userID
-
setUserID
public void setUserID(UUID userID)
Xero identifier- Parameters:
userID- UUID
-
emailAddress
public User emailAddress(String emailAddress)
Email address of user- Parameters:
emailAddress- String- Returns:
- User
-
getEmailAddress
public String getEmailAddress()
Email address of user- Returns:
- emailAddress
-
setEmailAddress
public void setEmailAddress(String emailAddress)
Email address of user- Parameters:
emailAddress- String
-
firstName
public User firstName(String firstName)
First name of user- Parameters:
firstName- String- Returns:
- User
-
getFirstName
public String getFirstName()
First name of user- Returns:
- firstName
-
setFirstName
public void setFirstName(String firstName)
First name of user- Parameters:
firstName- String
-
lastName
public User lastName(String lastName)
Last name of user- Parameters:
lastName- String- Returns:
- User
-
getLastName
public String getLastName()
Last name of user- Returns:
- lastName
-
setLastName
public void setLastName(String lastName)
Last name of user- Parameters:
lastName- String
-
getUpdatedDateUTC
public String getUpdatedDateUTC()
Timestamp of last change to user- Returns:
- updatedDateUTC
-
getUpdatedDateUTCAsDate
public org.threeten.bp.OffsetDateTime getUpdatedDateUTCAsDate()
Timestamp of last change to user- Returns:
- OffsetDateTime
-
isSubscriber
public User isSubscriber(Boolean isSubscriber)
Boolean to indicate if user is the subscriber- Parameters:
isSubscriber- Boolean- Returns:
- User
-
getIsSubscriber
public Boolean getIsSubscriber()
Boolean to indicate if user is the subscriber- Returns:
- isSubscriber
-
setIsSubscriber
public void setIsSubscriber(Boolean isSubscriber)
Boolean to indicate if user is the subscriber- Parameters:
isSubscriber- Boolean
-
organisationRole
public User organisationRole(User.OrganisationRoleEnum organisationRole)
User role that defines permissions in Xero and via API (READONLY, INVOICEONLY, STANDARD, FINANCIALADVISER, etc)- Parameters:
organisationRole- OrganisationRoleEnum- Returns:
- User
-
getOrganisationRole
public User.OrganisationRoleEnum getOrganisationRole()
User role that defines permissions in Xero and via API (READONLY, INVOICEONLY, STANDARD, FINANCIALADVISER, etc)- Returns:
- organisationRole
-
setOrganisationRole
public void setOrganisationRole(User.OrganisationRoleEnum organisationRole)
User role that defines permissions in Xero and via API (READONLY, INVOICEONLY, STANDARD, FINANCIALADVISER, etc)- Parameters:
organisationRole- OrganisationRoleEnum
-
-