Class Employee

java.lang.Object
com.xero.models.payrollau.Employee

public class Employee
extends Object
Employee
  • Constructor Details

    • Employee

      public Employee()
  • Method Details

    • firstName

      public Employee firstName​(String firstName)
    • getFirstName

      public String getFirstName()
      First name of employee
      Returns:
      firstName
    • setFirstName

      public void setFirstName​(String firstName)
    • lastName

      public Employee lastName​(String lastName)
    • getLastName

      public String getLastName()
      Last name of employee
      Returns:
      lastName
    • setLastName

      public void setLastName​(String lastName)
    • dateOfBirth

      public Employee dateOfBirth​(String dateOfBirth)
    • getDateOfBirth

      public String getDateOfBirth()
      Date of birth of the employee (YYYY-MM-DD)
      Returns:
      dateOfBirth
    • getDateOfBirthAsDate

      public org.threeten.bp.LocalDate getDateOfBirthAsDate()
    • setDateOfBirth

      public void setDateOfBirth​(String dateOfBirth)
    • setDateOfBirth

      public void setDateOfBirth​(org.threeten.bp.LocalDate dateOfBirth)
    • homeAddress

      public Employee homeAddress​(HomeAddress homeAddress)
    • getHomeAddress

      public HomeAddress getHomeAddress()
      Get homeAddress
      Returns:
      homeAddress
    • setHomeAddress

      public void setHomeAddress​(HomeAddress homeAddress)
    • startDate

      public Employee startDate​(String startDate)
    • getStartDate

      public String getStartDate()
      Start date for an employee (YYYY-MM-DD)
      Returns:
      startDate
    • getStartDateAsDate

      public org.threeten.bp.LocalDate getStartDateAsDate()
    • setStartDate

      public void setStartDate​(String startDate)
    • setStartDate

      public void setStartDate​(org.threeten.bp.LocalDate startDate)
    • title

      public Employee title​(String title)
    • getTitle

      public String getTitle()
      Title of the employee
      Returns:
      title
    • setTitle

      public void setTitle​(String title)
    • middleNames

      public Employee middleNames​(String middleNames)
    • getMiddleNames

      public String getMiddleNames()
      Middle name(s) of the employee
      Returns:
      middleNames
    • setMiddleNames

      public void setMiddleNames​(String middleNames)
    • email

      public Employee email​(String email)
    • getEmail

      public String getEmail()
      The email address for the employee
      Returns:
      email
    • setEmail

      public void setEmail​(String email)
    • gender

      public Employee gender​(Employee.GenderEnum gender)
    • getGender

      public Employee.GenderEnum getGender()
      The employee’s gender. See Employee Gender
      Returns:
      gender
    • setGender

      public void setGender​(Employee.GenderEnum gender)
    • phone

      public Employee phone​(String phone)
    • getPhone

      public String getPhone()
      Employee phone number
      Returns:
      phone
    • setPhone

      public void setPhone​(String phone)
    • mobile

      public Employee mobile​(String mobile)
    • getMobile

      public String getMobile()
      Employee mobile number
      Returns:
      mobile
    • setMobile

      public void setMobile​(String mobile)
    • twitterUserName

      public Employee twitterUserName​(String twitterUserName)
    • getTwitterUserName

      public String getTwitterUserName()
      Employee’s twitter name
      Returns:
      twitterUserName
    • setTwitterUserName

      public void setTwitterUserName​(String twitterUserName)
    • isAuthorisedToApproveLeave

      public Employee isAuthorisedToApproveLeave​(Boolean isAuthorisedToApproveLeave)
    • getIsAuthorisedToApproveLeave

      public Boolean getIsAuthorisedToApproveLeave()
      Authorised to approve other employees' leave requests
      Returns:
      isAuthorisedToApproveLeave
    • setIsAuthorisedToApproveLeave

      public void setIsAuthorisedToApproveLeave​(Boolean isAuthorisedToApproveLeave)
    • isAuthorisedToApproveTimesheets

      public Employee isAuthorisedToApproveTimesheets​(Boolean isAuthorisedToApproveTimesheets)
    • getIsAuthorisedToApproveTimesheets

      public Boolean getIsAuthorisedToApproveTimesheets()
      Authorised to approve timesheets
      Returns:
      isAuthorisedToApproveTimesheets
    • setIsAuthorisedToApproveTimesheets

      public void setIsAuthorisedToApproveTimesheets​(Boolean isAuthorisedToApproveTimesheets)
    • jobTitle

      public Employee jobTitle​(String jobTitle)
    • getJobTitle

      public String getJobTitle()
      JobTitle of the employee
      Returns:
      jobTitle
    • setJobTitle

      public void setJobTitle​(String jobTitle)
    • classification

      public Employee classification​(String classification)
    • getClassification

      public String getClassification()
      Employees classification
      Returns:
      classification
    • setClassification

      public void setClassification​(String classification)
    • ordinaryEarningsRateID

      public Employee ordinaryEarningsRateID​(UUID ordinaryEarningsRateID)
    • getOrdinaryEarningsRateID

      public UUID getOrdinaryEarningsRateID()
      Xero unique identifier for earnings rate
      Returns:
      ordinaryEarningsRateID
    • setOrdinaryEarningsRateID

      public void setOrdinaryEarningsRateID​(UUID ordinaryEarningsRateID)
    • payrollCalendarID

      public Employee payrollCalendarID​(UUID payrollCalendarID)
    • getPayrollCalendarID

      public UUID getPayrollCalendarID()
      Xero unique identifier for payroll calendar for the employee
      Returns:
      payrollCalendarID
    • setPayrollCalendarID

      public void setPayrollCalendarID​(UUID payrollCalendarID)
    • employeeGroupName

      public Employee employeeGroupName​(String employeeGroupName)
    • getEmployeeGroupName

      public String getEmployeeGroupName()
      The Employee Group allows you to report on payroll expenses and liabilities for each group of employees
      Returns:
      employeeGroupName
    • setEmployeeGroupName

      public void setEmployeeGroupName​(String employeeGroupName)
    • employeeID

      public Employee employeeID​(UUID employeeID)
    • getEmployeeID

      public UUID getEmployeeID()
      Xero unique identifier for an Employee
      Returns:
      employeeID
    • setEmployeeID

      public void setEmployeeID​(UUID employeeID)
    • terminationDate

      public Employee terminationDate​(String terminationDate)
    • getTerminationDate

      public String getTerminationDate()
      Employee Termination Date (YYYY-MM-DD)
      Returns:
      terminationDate
    • getTerminationDateAsDate

      public org.threeten.bp.LocalDate getTerminationDateAsDate()
    • setTerminationDate

      public void setTerminationDate​(String terminationDate)
    • setTerminationDate

      public void setTerminationDate​(org.threeten.bp.LocalDate terminationDate)
    • bankAccounts

      public Employee bankAccounts​(List<BankAccount> bankAccounts)
    • addBankAccountsItem

      public Employee addBankAccountsItem​(BankAccount bankAccountsItem)
    • getBankAccounts

      public List<BankAccount> getBankAccounts()
      Get bankAccounts
      Returns:
      bankAccounts
    • setBankAccounts

      public void setBankAccounts​(List<BankAccount> bankAccounts)
    • payTemplate

      public Employee payTemplate​(PayTemplate payTemplate)
    • getPayTemplate

      public PayTemplate getPayTemplate()
      Get payTemplate
      Returns:
      payTemplate
    • setPayTemplate

      public void setPayTemplate​(PayTemplate payTemplate)
    • openingBalances

      public Employee openingBalances​(OpeningBalances openingBalances)
    • getOpeningBalances

      public OpeningBalances getOpeningBalances()
      Get openingBalances
      Returns:
      openingBalances
    • setOpeningBalances

      public void setOpeningBalances​(OpeningBalances openingBalances)
    • taxDeclaration

      public Employee taxDeclaration​(TaxDeclaration taxDeclaration)
    • getTaxDeclaration

      public TaxDeclaration getTaxDeclaration()
      Get taxDeclaration
      Returns:
      taxDeclaration
    • setTaxDeclaration

      public void setTaxDeclaration​(TaxDeclaration taxDeclaration)
    • leaveBalances

      public Employee leaveBalances​(List<LeaveBalance> leaveBalances)
    • addLeaveBalancesItem

      public Employee addLeaveBalancesItem​(LeaveBalance leaveBalancesItem)
    • getLeaveBalances

      public List<LeaveBalance> getLeaveBalances()
      Get leaveBalances
      Returns:
      leaveBalances
    • setLeaveBalances

      public void setLeaveBalances​(List<LeaveBalance> leaveBalances)
    • leaveLines

      public Employee leaveLines​(List<LeaveLine> leaveLines)
    • addLeaveLinesItem

      public Employee addLeaveLinesItem​(LeaveLine leaveLinesItem)
    • getLeaveLines

      public List<LeaveLine> getLeaveLines()
      Get leaveLines
      Returns:
      leaveLines
    • setLeaveLines

      public void setLeaveLines​(List<LeaveLine> leaveLines)
    • superMemberships

      public Employee superMemberships​(List<SuperMembership> superMemberships)
    • addSuperMembershipsItem

      public Employee addSuperMembershipsItem​(SuperMembership superMembershipsItem)
    • getSuperMemberships

      public List<SuperMembership> getSuperMemberships()
      Get superMemberships
      Returns:
      superMemberships
    • setSuperMemberships

      public void setSuperMemberships​(List<SuperMembership> superMemberships)
    • status

      public Employee status​(EmployeeStatus status)
    • getStatus

      public EmployeeStatus getStatus()
      Get status
      Returns:
      status
    • setStatus

      public void setStatus​(EmployeeStatus status)
    • getUpdatedDateUTC

      public String getUpdatedDateUTC()
      Last modified timestamp
      Returns:
      updatedDateUTC
    • getUpdatedDateUTCAsDate

      public org.threeten.bp.OffsetDateTime getUpdatedDateUTCAsDate()
    • validationErrors

      public Employee validationErrors​(List<ValidationError> validationErrors)
    • addValidationErrorsItem

      public Employee addValidationErrorsItem​(ValidationError validationErrorsItem)
    • getValidationErrors

      public List<ValidationError> getValidationErrors()
      Displays array of validation error messages from the API
      Returns:
      validationErrors
    • setValidationErrors

      public void setValidationErrors​(List<ValidationError> validationErrors)
    • equals

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

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

      public String toString()
      Overrides:
      toString in class Object