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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TaskamountInvoiced(Amount amountInvoiced)amountInvoicedTaskamountToBeInvoiced(Amount amountToBeInvoiced)amountToBeInvoicedTaskchargeType(ChargeType chargeType)chargeTypebooleanequals(Object o)TaskestimateMinutes(Double estimateMinutes)An estimated time to perform the taskTaskfixedMinutes(Double fixedMinutes)Minutes logged against this task if its charge type is `FIXED`.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)Minutes on this task which have been invoiced.TaskminutesToBeInvoiced(Double minutesToBeInvoiced)Minutes on this task which have not been invoiced.Taskname(String name)Name of the task.TasknonChargeableMinutes(Double nonChargeableMinutes)Minutes logged against this task if its charge type is `NON_CHARGEABLE`.TaskprojectId(UUID projectId)Identifier of the project task belongs to.Taskrate(Amount rate)ratevoidsetAmountInvoiced(Amount amountInvoiced)amountInvoicedvoidsetAmountToBeInvoiced(Amount amountToBeInvoiced)amountToBeInvoicedvoidsetChargeType(ChargeType chargeType)chargeTypevoidsetEstimateMinutes(Double estimateMinutes)An estimated time to perform the taskvoidsetFixedMinutes(Double fixedMinutes)Minutes logged against this task if its charge type is `FIXED`.voidsetMinutesInvoiced(Double minutesInvoiced)Minutes on this task which have been invoiced.voidsetMinutesToBeInvoiced(Double minutesToBeInvoiced)Minutes on this task which have not been invoiced.voidsetName(String name)Name of the task.voidsetNonChargeableMinutes(Double nonChargeableMinutes)Minutes logged against this task if its charge type is `NON_CHARGEABLE`.voidsetProjectId(UUID projectId)Identifier of the project task belongs to.voidsetRate(Amount rate)ratevoidsetStatus(Task.StatusEnum status)Status of the task.voidsetTaskId(UUID taskId)Identifier of the task.voidsetTotalAmount(Amount totalAmount)totalAmountvoidsetTotalMinutes(Double totalMinutes)Total minutes which have been logged against the task.Taskstatus(Task.StatusEnum status)Status of the task.TasktaskId(UUID taskId)Identifier of the task.StringtoString()TasktotalAmount(Amount totalAmount)totalAmountTasktotalMinutes(Double totalMinutes)Total minutes which have been logged against the task.
-
-
-
Method Detail
-
taskId
public Task taskId(UUID taskId)
Identifier of the task.- Parameters:
taskId- UUID- Returns:
- Task
-
getTaskId
public UUID getTaskId()
Identifier of the task.- Returns:
- taskId
-
setTaskId
public void setTaskId(UUID taskId)
Identifier of the task.- Parameters:
taskId- UUID
-
getName
public String getName()
Name of the task.- Returns:
- name
-
setName
public void setName(String name)
Name of the task.- Parameters:
name- String
-
getRate
public Amount getRate()
Get rate- Returns:
- rate
-
setRate
public void setRate(Amount rate)
rate- Parameters:
rate- Amount
-
chargeType
public Task chargeType(ChargeType chargeType)
chargeType- Parameters:
chargeType- ChargeType- Returns:
- Task
-
getChargeType
public ChargeType getChargeType()
Get chargeType- Returns:
- chargeType
-
setChargeType
public void setChargeType(ChargeType chargeType)
chargeType- Parameters:
chargeType- ChargeType
-
estimateMinutes
public Task estimateMinutes(Double estimateMinutes)
An estimated time to perform the task- Parameters:
estimateMinutes- Double- Returns:
- Task
-
getEstimateMinutes
public Double getEstimateMinutes()
An estimated time to perform the task- Returns:
- estimateMinutes
-
setEstimateMinutes
public void setEstimateMinutes(Double estimateMinutes)
An estimated time to perform the task- Parameters:
estimateMinutes- Double
-
projectId
public Task projectId(UUID projectId)
Identifier of the project task belongs to.- Parameters:
projectId- UUID- Returns:
- Task
-
getProjectId
public UUID getProjectId()
Identifier of the project task belongs to.- Returns:
- projectId
-
setProjectId
public void setProjectId(UUID projectId)
Identifier of the project task belongs to.- Parameters:
projectId- UUID
-
totalMinutes
public Task totalMinutes(Double totalMinutes)
Total minutes which have been logged against the task. Logged by assigning a time entry to a task- Parameters:
totalMinutes- Double- Returns:
- Task
-
getTotalMinutes
public Double getTotalMinutes()
Total minutes which have been logged against the task. Logged by assigning a time entry to a task- Returns:
- totalMinutes
-
setTotalMinutes
public void setTotalMinutes(Double totalMinutes)
Total minutes which have been logged against the task. Logged by assigning a time entry to a task- Parameters:
totalMinutes- Double
-
totalAmount
public Task totalAmount(Amount totalAmount)
totalAmount- Parameters:
totalAmount- Amount- Returns:
- Task
-
getTotalAmount
public Amount getTotalAmount()
Get totalAmount- Returns:
- totalAmount
-
setTotalAmount
public void setTotalAmount(Amount totalAmount)
totalAmount- Parameters:
totalAmount- Amount
-
minutesInvoiced
public Task minutesInvoiced(Double minutesInvoiced)
Minutes on this task which have been invoiced.- Parameters:
minutesInvoiced- Double- Returns:
- Task
-
getMinutesInvoiced
public Double getMinutesInvoiced()
Minutes on this task which have been invoiced.- Returns:
- minutesInvoiced
-
setMinutesInvoiced
public void setMinutesInvoiced(Double minutesInvoiced)
Minutes on this task which have been invoiced.- Parameters:
minutesInvoiced- Double
-
minutesToBeInvoiced
public Task minutesToBeInvoiced(Double minutesToBeInvoiced)
Minutes on this task which have not been invoiced.- Parameters:
minutesToBeInvoiced- Double- Returns:
- Task
-
getMinutesToBeInvoiced
public Double getMinutesToBeInvoiced()
Minutes on this task which have not been invoiced.- Returns:
- minutesToBeInvoiced
-
setMinutesToBeInvoiced
public void setMinutesToBeInvoiced(Double minutesToBeInvoiced)
Minutes on this task which have not been invoiced.- Parameters:
minutesToBeInvoiced- Double
-
fixedMinutes
public Task fixedMinutes(Double fixedMinutes)
Minutes logged against this task if its charge type is `FIXED`.- Parameters:
fixedMinutes- Double- Returns:
- Task
-
getFixedMinutes
public Double getFixedMinutes()
Minutes logged against this task if its charge type is `FIXED`.- Returns:
- fixedMinutes
-
setFixedMinutes
public void setFixedMinutes(Double fixedMinutes)
Minutes logged against this task if its charge type is `FIXED`.- Parameters:
fixedMinutes- Double
-
nonChargeableMinutes
public Task nonChargeableMinutes(Double nonChargeableMinutes)
Minutes logged against this task if its charge type is `NON_CHARGEABLE`.- Parameters:
nonChargeableMinutes- Double- Returns:
- Task
-
getNonChargeableMinutes
public Double getNonChargeableMinutes()
Minutes logged against this task if its charge type is `NON_CHARGEABLE`.- Returns:
- nonChargeableMinutes
-
setNonChargeableMinutes
public void setNonChargeableMinutes(Double nonChargeableMinutes)
Minutes logged against this task if its charge type is `NON_CHARGEABLE`.- Parameters:
nonChargeableMinutes- Double
-
amountToBeInvoiced
public Task amountToBeInvoiced(Amount amountToBeInvoiced)
amountToBeInvoiced- Parameters:
amountToBeInvoiced- Amount- Returns:
- Task
-
getAmountToBeInvoiced
public Amount getAmountToBeInvoiced()
Get amountToBeInvoiced- Returns:
- amountToBeInvoiced
-
setAmountToBeInvoiced
public void setAmountToBeInvoiced(Amount amountToBeInvoiced)
amountToBeInvoiced- Parameters:
amountToBeInvoiced- Amount
-
amountInvoiced
public Task amountInvoiced(Amount amountInvoiced)
amountInvoiced- Parameters:
amountInvoiced- Amount- Returns:
- Task
-
getAmountInvoiced
public Amount getAmountInvoiced()
Get amountInvoiced- Returns:
- amountInvoiced
-
setAmountInvoiced
public void setAmountInvoiced(Amount amountInvoiced)
amountInvoiced- Parameters:
amountInvoiced- Amount
-
status
public Task status(Task.StatusEnum status)
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.- Parameters:
status- StatusEnum- Returns:
- Task
-
getStatus
public Task.StatusEnum 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
public void setStatus(Task.StatusEnum status)
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.- Parameters:
status- StatusEnum
-
-