xero-node
Version:
Xero NodeJS OAuth 2.0 client for xero-node
68 lines (67 loc) • 1.97 kB
TypeScript
import { Amount } from '././amount';
import { ChargeType } from '././chargeType';
export declare class Task {
/**
* Identifier of the task.
*/
'taskId'?: string;
/**
* Name of the task.
*/
'name'?: string;
'rate'?: Amount;
'chargeType'?: ChargeType;
/**
* An estimated time to perform the task
*/
'estimateMinutes'?: number;
/**
* Identifier of the project task belongs to.
*/
'projectId'?: string;
/**
* Total minutes which have been logged against the task. Logged by assigning a time entry to a task
*/
'totalMinutes'?: number;
'totalAmount'?: Amount;
/**
* Minutes on this task which have been invoiced.
*/
'minutesInvoiced'?: number;
/**
* Minutes on this task which have not been invoiced.
*/
'minutesToBeInvoiced'?: number;
/**
* Minutes logged against this task if its charge type is `FIXED`.
*/
'fixedMinutes'?: number;
/**
* Minutes logged against this task if its charge type is `NON_CHARGEABLE`.
*/
'nonChargeableMinutes'?: number;
'amountToBeInvoiced'?: Amount;
'amountInvoiced'?: Amount;
/**
* 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.
*/
'status'?: Task.StatusEnum;
static discriminator: string | undefined;
static attributeTypeMap: Array<{
name: string;
baseName: string;
type: string;
}>;
static getAttributeTypeMap(): {
name: string;
baseName: string;
type: string;
}[];
}
export declare namespace Task {
enum StatusEnum {
ACTIVE,
INVOICED,
LOCKED
}
}