Class Project

java.lang.Object
com.xero.models.project.Project

public class Project
extends Object
Project
  • Constructor Details

    • Project

      public Project()
  • Method Details

    • projectId

      public Project projectId​(UUID projectId)
    • getProjectId

      public UUID getProjectId()
      Identifier of the project.
      Returns:
      projectId
    • setProjectId

      public void setProjectId​(UUID projectId)
    • contactId

      public Project contactId​(UUID contactId)
    • getContactId

      public UUID getContactId()
      Identifier of the contact this project was created for.
      Returns:
      contactId
    • setContactId

      public void setContactId​(UUID contactId)
    • name

      public Project name​(String name)
    • getName

      public String getName()
      Name of the project.
      Returns:
      name
    • setName

      public void setName​(String name)
    • currencyCode

      public Project currencyCode​(CurrencyCode currencyCode)
    • getCurrencyCode

      public CurrencyCode getCurrencyCode()
      Get currencyCode
      Returns:
      currencyCode
    • setCurrencyCode

      public void setCurrencyCode​(CurrencyCode currencyCode)
    • minutesLogged

      public Project minutesLogged​(Integer minutesLogged)
    • getMinutesLogged

      public Integer getMinutesLogged()
      A total of minutes logged against all tasks on the Project.
      Returns:
      minutesLogged
    • setMinutesLogged

      public void setMinutesLogged​(Integer minutesLogged)
    • totalTaskAmount

      public Project totalTaskAmount​(Amount totalTaskAmount)
    • getTotalTaskAmount

      public Amount getTotalTaskAmount()
      Get totalTaskAmount
      Returns:
      totalTaskAmount
    • setTotalTaskAmount

      public void setTotalTaskAmount​(Amount totalTaskAmount)
    • totalExpenseAmount

      public Project totalExpenseAmount​(Amount totalExpenseAmount)
    • getTotalExpenseAmount

      public Amount getTotalExpenseAmount()
      Get totalExpenseAmount
      Returns:
      totalExpenseAmount
    • setTotalExpenseAmount

      public void setTotalExpenseAmount​(Amount totalExpenseAmount)
    • estimateAmount

      public Project estimateAmount​(Amount estimateAmount)
    • getEstimateAmount

      public Amount getEstimateAmount()
      Get estimateAmount
      Returns:
      estimateAmount
    • setEstimateAmount

      public void setEstimateAmount​(Amount estimateAmount)
    • minutesToBeInvoiced

      public Project minutesToBeInvoiced​(Integer minutesToBeInvoiced)
    • getMinutesToBeInvoiced

      public Integer getMinutesToBeInvoiced()
      Minutes which have not been invoiced across all chargeable tasks in the project.
      Returns:
      minutesToBeInvoiced
    • setMinutesToBeInvoiced

      public void setMinutesToBeInvoiced​(Integer minutesToBeInvoiced)
    • taskAmountToBeInvoiced

      public Project taskAmountToBeInvoiced​(Amount taskAmountToBeInvoiced)
    • getTaskAmountToBeInvoiced

      public Amount getTaskAmountToBeInvoiced()
      Get taskAmountToBeInvoiced
      Returns:
      taskAmountToBeInvoiced
    • setTaskAmountToBeInvoiced

      public void setTaskAmountToBeInvoiced​(Amount taskAmountToBeInvoiced)
    • taskAmountInvoiced

      public Project taskAmountInvoiced​(Amount taskAmountInvoiced)
    • getTaskAmountInvoiced

      public Amount getTaskAmountInvoiced()
      Get taskAmountInvoiced
      Returns:
      taskAmountInvoiced
    • setTaskAmountInvoiced

      public void setTaskAmountInvoiced​(Amount taskAmountInvoiced)
    • expenseAmountToBeInvoiced

      public Project expenseAmountToBeInvoiced​(Amount expenseAmountToBeInvoiced)
    • getExpenseAmountToBeInvoiced

      public Amount getExpenseAmountToBeInvoiced()
      Get expenseAmountToBeInvoiced
      Returns:
      expenseAmountToBeInvoiced
    • setExpenseAmountToBeInvoiced

      public void setExpenseAmountToBeInvoiced​(Amount expenseAmountToBeInvoiced)
    • expenseAmountInvoiced

      public Project expenseAmountInvoiced​(Amount expenseAmountInvoiced)
    • getExpenseAmountInvoiced

      public Amount getExpenseAmountInvoiced()
      Get expenseAmountInvoiced
      Returns:
      expenseAmountInvoiced
    • setExpenseAmountInvoiced

      public void setExpenseAmountInvoiced​(Amount expenseAmountInvoiced)
    • projectAmountInvoiced

      public Project projectAmountInvoiced​(Amount projectAmountInvoiced)
    • getProjectAmountInvoiced

      public Amount getProjectAmountInvoiced()
      Get projectAmountInvoiced
      Returns:
      projectAmountInvoiced
    • setProjectAmountInvoiced

      public void setProjectAmountInvoiced​(Amount projectAmountInvoiced)
    • deposit

      public Project deposit​(Amount deposit)
    • getDeposit

      public Amount getDeposit()
      Get deposit
      Returns:
      deposit
    • setDeposit

      public void setDeposit​(Amount deposit)
    • depositApplied

      public Project depositApplied​(Amount depositApplied)
    • getDepositApplied

      public Amount getDepositApplied()
      Get depositApplied
      Returns:
      depositApplied
    • setDepositApplied

      public void setDepositApplied​(Amount depositApplied)
    • creditNoteAmount

      public Project creditNoteAmount​(Amount creditNoteAmount)
    • getCreditNoteAmount

      public Amount getCreditNoteAmount()
      Get creditNoteAmount
      Returns:
      creditNoteAmount
    • setCreditNoteAmount

      public void setCreditNoteAmount​(Amount creditNoteAmount)
    • deadlineUtc

      public Project deadlineUtc​(org.threeten.bp.OffsetDateTime deadlineUtc)
    • getDeadlineUtc

      public org.threeten.bp.OffsetDateTime getDeadlineUtc()
      Deadline for the project. UTC Date Time in ISO-8601 format.
      Returns:
      deadlineUtc
    • setDeadlineUtc

      public void setDeadlineUtc​(org.threeten.bp.OffsetDateTime deadlineUtc)
    • totalInvoiced

      public Project totalInvoiced​(Amount totalInvoiced)
    • getTotalInvoiced

      public Amount getTotalInvoiced()
      Get totalInvoiced
      Returns:
      totalInvoiced
    • setTotalInvoiced

      public void setTotalInvoiced​(Amount totalInvoiced)
    • totalToBeInvoiced

      public Project totalToBeInvoiced​(Amount totalToBeInvoiced)
    • getTotalToBeInvoiced

      public Amount getTotalToBeInvoiced()
      Get totalToBeInvoiced
      Returns:
      totalToBeInvoiced
    • setTotalToBeInvoiced

      public void setTotalToBeInvoiced​(Amount totalToBeInvoiced)
    • estimate

      public Project estimate​(Amount estimate)
    • getEstimate

      public Amount getEstimate()
      Get estimate
      Returns:
      estimate
    • setEstimate

      public void setEstimate​(Amount estimate)
    • status

      public Project status​(ProjectStatus status)
    • getStatus

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

      public void setStatus​(ProjectStatus status)
    • 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