Package com.xero.models.project
Class Task
java.lang.Object
com.xero.models.project.Task
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionamountInvoiced(Amount amountInvoiced) amountInvoicedamountToBeInvoiced(Amount amountToBeInvoiced) amountToBeInvoicedchargeType(ChargeType chargeType) chargeTypebooleanestimateMinutes(Integer estimateMinutes) An estimated time to perform the taskfixedMinutes(Integer fixedMinutes) Minutes logged against this task if its charge type is `FIXED`.Get amountInvoicedGet amountToBeInvoicedGet chargeTypeAn estimated time to perform the taskMinutes logged against this task if its charge type is `FIXED`.Minutes on this task which have been invoiced.Minutes on this task which have not been invoiced.getName()Name of the task.Minutes logged against this task if its charge type is `NON_CHARGEABLE`.Identifier of the project task belongs to.getRate()Get rateStatus of the task.Identifier of the task.Get totalAmountTotal minutes which have been logged against the task.inthashCode()minutesInvoiced(Integer minutesInvoiced) Minutes on this task which have been invoiced.minutesToBeInvoiced(Integer minutesToBeInvoiced) Minutes on this task which have not been invoiced.Name of the task.nonChargeableMinutes(Integer nonChargeableMinutes) Minutes logged against this task if its charge type is `NON_CHARGEABLE`.Identifier of the project task belongs to.ratevoidsetAmountInvoiced(Amount amountInvoiced) amountInvoicedvoidsetAmountToBeInvoiced(Amount amountToBeInvoiced) amountToBeInvoicedvoidsetChargeType(ChargeType chargeType) chargeTypevoidsetEstimateMinutes(Integer estimateMinutes) An estimated time to perform the taskvoidsetFixedMinutes(Integer fixedMinutes) Minutes logged against this task if its charge type is `FIXED`.voidsetMinutesInvoiced(Integer minutesInvoiced) Minutes on this task which have been invoiced.voidsetMinutesToBeInvoiced(Integer minutesToBeInvoiced) Minutes on this task which have not been invoiced.voidName of the task.voidsetNonChargeableMinutes(Integer nonChargeableMinutes) Minutes logged against this task if its charge type is `NON_CHARGEABLE`.voidsetProjectId(UUID projectId) Identifier of the project task belongs to.voidratevoidsetStatus(Task.StatusEnum status) Status of the task.voidIdentifier of the task.voidsetTotalAmount(Amount totalAmount) totalAmountvoidsetTotalMinutes(Integer totalMinutes) Total minutes which have been logged against the task.status(Task.StatusEnum status) Status of the task.Identifier of the task.toString()totalAmount(Amount totalAmount) totalAmounttotalMinutes(Integer totalMinutes) Total minutes which have been logged against the task.
-
Constructor Details
-
Task
public Task()
-
-
Method Details
-
taskId
-
getTaskId
-
setTaskId
-
name
-
getName
-
setName
-
rate
-
getRate
-
setRate
-
chargeType
chargeType- Parameters:
chargeType- ChargeType- Returns:
- Task
-
getChargeType
-
setChargeType
-
estimateMinutes
-
getEstimateMinutes
-
setEstimateMinutes
An estimated time to perform the task- Parameters:
estimateMinutes- Integer
-
projectId
-
getProjectId
-
setProjectId
Identifier of the project task belongs to.- Parameters:
projectId- UUID
-
totalMinutes
-
getTotalMinutes
Total minutes which have been logged against the task. Logged by assigning a time entry to a task- Returns:
- totalMinutes
-
setTotalMinutes
Total minutes which have been logged against the task. Logged by assigning a time entry to a task- Parameters:
totalMinutes- Integer
-
totalAmount
-
getTotalAmount
-
setTotalAmount
-
minutesInvoiced
-
getMinutesInvoiced
Minutes on this task which have been invoiced.- Returns:
- minutesInvoiced
-
setMinutesInvoiced
Minutes on this task which have been invoiced.- Parameters:
minutesInvoiced- Integer
-
minutesToBeInvoiced
-
getMinutesToBeInvoiced
Minutes on this task which have not been invoiced.- Returns:
- minutesToBeInvoiced
-
setMinutesToBeInvoiced
Minutes on this task which have not been invoiced.- Parameters:
minutesToBeInvoiced- Integer
-
fixedMinutes
-
getFixedMinutes
Minutes logged against this task if its charge type is `FIXED`.- Returns:
- fixedMinutes
-
setFixedMinutes
Minutes logged against this task if its charge type is `FIXED`.- Parameters:
fixedMinutes- Integer
-
nonChargeableMinutes
-
getNonChargeableMinutes
Minutes logged against this task if its charge type is `NON_CHARGEABLE`.- Returns:
- nonChargeableMinutes
-
setNonChargeableMinutes
Minutes logged against this task if its charge type is `NON_CHARGEABLE`.- Parameters:
nonChargeableMinutes- Integer
-
amountToBeInvoiced
-
getAmountToBeInvoiced
-
setAmountToBeInvoiced
amountToBeInvoiced- Parameters:
amountToBeInvoiced- Amount
-
amountInvoiced
-
getAmountInvoiced
-
setAmountInvoiced
amountInvoiced- Parameters:
amountInvoiced- Amount
-
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
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
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
-
equals
-
hashCode
-
toString
-