Package com.xero.models.project
Class Task
java.lang.Object
com.xero.models.project.Task
public class Task extends Object
Task
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTask.StatusEnumStatus of the task. -
Constructor Summary
Constructors Constructor Description Task() -
Method Summary
Modifier and Type Method Description TaskamountInvoiced(Amount amountInvoiced)TaskamountToBeInvoiced(Amount amountToBeInvoiced)TaskchargeType(ChargeType chargeType)booleanequals(Object o)TaskestimateMinutes(Double estimateMinutes)TaskfixedMinutes(Double fixedMinutes)AmountgetAmountInvoiced()Get amountInvoicedAmountgetAmountToBeInvoiced()Get amountToBeInvoicedChargeTypegetChargeType()Get chargeTypeDoublegetEstimateMinutes()An estimated time to perform the taskDoublegetFixedMinutes()Minutes logged against this task if its charge type is `FIXED`.DoublegetMinutesInvoiced()Minutes on this task which have been invoiced.DoublegetMinutesToBeInvoiced()Minutes on this task which have not been invoiced.StringgetName()Name of the task.DoublegetNonChargeableMinutes()Minutes logged against this task if its charge type is `NON_CHARGEABLE`.UUIDgetProjectId()Identifier of the project task belongs to.AmountgetRate()Get rateTask.StatusEnumgetStatus()Status of the task.UUIDgetTaskId()Identifier of the task.AmountgetTotalAmount()Get totalAmountDoublegetTotalMinutes()Total minutes which have been logged against the task.inthashCode()TaskminutesInvoiced(Double minutesInvoiced)TaskminutesToBeInvoiced(Double minutesToBeInvoiced)Taskname(String name)TasknonChargeableMinutes(Double nonChargeableMinutes)TaskprojectId(UUID projectId)Taskrate(Amount rate)voidsetAmountInvoiced(Amount amountInvoiced)voidsetAmountToBeInvoiced(Amount amountToBeInvoiced)voidsetChargeType(ChargeType chargeType)voidsetEstimateMinutes(Double estimateMinutes)voidsetFixedMinutes(Double fixedMinutes)voidsetMinutesInvoiced(Double minutesInvoiced)voidsetMinutesToBeInvoiced(Double minutesToBeInvoiced)voidsetName(String name)voidsetNonChargeableMinutes(Double nonChargeableMinutes)voidsetProjectId(UUID projectId)voidsetRate(Amount rate)voidsetStatus(Task.StatusEnum status)voidsetTaskId(UUID taskId)voidsetTotalAmount(Amount totalAmount)voidsetTotalMinutes(Double totalMinutes)Taskstatus(Task.StatusEnum status)TasktaskId(UUID taskId)StringtoString()TasktotalAmount(Amount totalAmount)TasktotalMinutes(Double totalMinutes)
-
Constructor Details
-
Task
public Task()
-
-
Method Details
-
taskId
-
getTaskId
Identifier of the task.- Returns:
- taskId
-
setTaskId
-
name
-
getName
Name of the task.- Returns:
- name
-
setName
-
rate
-
getRate
Get rate- Returns:
- rate
-
setRate
-
chargeType
-
getChargeType
Get chargeType- Returns:
- chargeType
-
setChargeType
-
estimateMinutes
-
getEstimateMinutes
An estimated time to perform the task- Returns:
- estimateMinutes
-
setEstimateMinutes
-
projectId
-
getProjectId
Identifier of the project task belongs to.- Returns:
- projectId
-
setProjectId
-
totalMinutes
-
getTotalMinutes
Total minutes which have been logged against the task. Logged by assigning a time entry to a task- Returns:
- totalMinutes
-
setTotalMinutes
-
totalAmount
-
getTotalAmount
Get totalAmount- Returns:
- totalAmount
-
setTotalAmount
-
minutesInvoiced
-
getMinutesInvoiced
Minutes on this task which have been invoiced.- Returns:
- minutesInvoiced
-
setMinutesInvoiced
-
minutesToBeInvoiced
-
getMinutesToBeInvoiced
Minutes on this task which have not been invoiced.- Returns:
- minutesToBeInvoiced
-
setMinutesToBeInvoiced
-
fixedMinutes
-
getFixedMinutes
Minutes logged against this task if its charge type is `FIXED`.- Returns:
- fixedMinutes
-
setFixedMinutes
-
nonChargeableMinutes
-
getNonChargeableMinutes
Minutes logged against this task if its charge type is `NON_CHARGEABLE`.- Returns:
- nonChargeableMinutes
-
setNonChargeableMinutes
-
amountToBeInvoiced
-
getAmountToBeInvoiced
Get amountToBeInvoiced- Returns:
- amountToBeInvoiced
-
setAmountToBeInvoiced
-
amountInvoiced
-
getAmountInvoiced
Get amountInvoiced- Returns:
- amountInvoiced
-
setAmountInvoiced
-
status
-
getStatus
Status of the task. When a task of ChargeType is `FIXED` and the rate amount is invoiced the status will be set to `INVOICED` and can't be modified. A task with ChargeType of `TIME` or `NON_CHARGEABLE` cannot have a status of `INVOICED`. A `LOCKED` state indicates that the task is currently changing state (for example being invoiced) and can't be modified.- Returns:
- status
-
setStatus
-
equals
-
hashCode
public int hashCode() -
toString
-