import org.openapitools.client.api.*;
-import org.openapitools.client.api.client.PayrollNzApi;
-import org.openapitools.client.models.payrollNz.*;
+import org.openapitools.client.api.client.ProjectApi;
+import org.openapitools.client.models.project.*;
import java.io.File;
import java.util.*;
-public class PayrollNzApiExample {
- private PayrollNzApi apiInstance;
+public class ProjectApiExample {
+ private ProjectApi apiInstance;
public static void main(String[] args) {
String accessToken = "YOUR_ACCESS_TOKEN";
@@ -11779,13 +2092,15 @@ Usage and SDK Samples
apiInstance = AccountingApi.getInstance(defaultClient);
String xeroTenantId = 'xeroTenantId_example';
- Integer page = 56;
+ UUID projectId = UUID.fromString("38400000-8cf0-11bd-b23e-10b96e4ef00d");
+ UUID projectId = '38400000-8cf0-11bd-b23e-10b96e4ef00d';
+ UUID taskId = UUID.fromString("38400000-8cf0-11bd-b23e-10b96e4ef00d");
+ UUID taskId = '38400000-8cf0-11bd-b23e-10b96e4ef00d';
try {
- StatutoryDeductions result = apiInstance.getStatutoryDeductions(accessToken, xeroTenantId, page);
- System.out.println(result);
+ result = apiInstance.deleteTask(accessToken, xeroTenantId, projectId, taskId);
} catch (XeroException e) {
- System.err.println("Exception when calling PayrollNzApi#getStatutoryDeductions");
+ System.err.println("Exception when calling ProjectApi#deleteTask");
e.printStackTrace();
}
}
@@ -11796,36 +2111,60 @@ Scopes
- | payroll.settings.read |
- Grant read-only access to payroll settings |
-
-
-
- | payroll.settings |
- Grant read-write access to payroll settings |
+ projects |
+ Grant read-write access to projects |
Parameters
- Header parameters
+ Path parameters
| Name |
Description |
- | Xero-Tenant-Id* |
+
| projectId* |
-
+
- String
+ UUID
+
+ (uuid)
+
-Xero identifier for Tenant
+You can specify an individual project by appending the projectId to the endpoint
+
+
+
+ Required
+
+
+
+ |
+
+
+ | taskId* |
+
+
+
+
+
+
+
+ UUID
+
+
+ (uuid)
+
+
+
+You can specify an individual task by appending the id to the endpoint
@@ -11837,27 +2176,30 @@ Parameters
|
- Query parameters
+ Header parameters
| Name |
Description |
- | page |
+
| Xero-Tenant-Id* |
-
+
- Integer
+ String
-Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.
+Xero identifier for Tenant
+
+ Required
+
|
@@ -11867,38 +2209,36 @@ Parameters
-
-
+
+
-
getSuperannuation
-
Retrieves a specific superannuation using a unique superannuation ID
+
deleteTimeEntry
+
Deletes a time entry for a specific project
-
+ Allows you to delete a specific time entry
- /Superannuations/{SuperannuationID}
+ /Projects/{projectId}/Time/{timeEntryId}
Usage and SDK Samples
-
-
+
import org.openapitools.client.api.*;
-import org.openapitools.client.api.client.PayrollNzApi;
-import org.openapitools.client.models.payrollNz.*;
+import org.openapitools.client.api.client.ProjectApi;
+import org.openapitools.client.models.project.*;
import java.io.File;
import java.util.*;
-public class PayrollNzApiExample {
- private PayrollNzApi apiInstance;
+public class ProjectApiExample {
+ private ProjectApi apiInstance;
public static void main(String[] args) {
String accessToken = "YOUR_ACCESS_TOKEN";
@@ -11906,13 +2246,15 @@ Usage and SDK Samples
apiInstance = AccountingApi.getInstance(defaultClient);
String xeroTenantId = 'xeroTenantId_example';
- UUID superannuationID = UUID.fromString("38400000-8cf0-11bd-b23e-10b96e4ef00d");
+ UUID projectId = UUID.fromString("38400000-8cf0-11bd-b23e-10b96e4ef00d");
+ UUID projectId = '38400000-8cf0-11bd-b23e-10b96e4ef00d';
+ UUID timeEntryId = UUID.fromString("38400000-8cf0-11bd-b23e-10b96e4ef00d");
+ UUID timeEntryId = '38400000-8cf0-11bd-b23e-10b96e4ef00d';
try {
- SuperannuationObject result = apiInstance.getSuperannuation(accessToken, xeroTenantId, superannuationID);
- System.out.println(result);
+ result = apiInstance.deleteTimeEntry(accessToken, xeroTenantId, projectId, timeEntryId);
} catch (XeroException e) {
- System.err.println("Exception when calling PayrollNzApi#getSuperannuation");
+ System.err.println("Exception when calling ProjectApi#deleteTimeEntry");
e.printStackTrace();
}
}
@@ -11923,13 +2265,8 @@ Scopes
- | payroll.settings.read |
- Grant read-only access to payroll settings |
-
-
-
- | payroll.settings |
- Grant read-write access to payroll settings |
+ projects |
+ Grant read-write access to projects |
@@ -11940,11 +2277,37 @@ Parameters
Name |
Description |
- | SuperannuationID* |
+
| projectId* |
+
+
+
+
+
+
+
+ UUID
+
+
+ (uuid)
+
+
+
+You can specify an individual project by appending the projectId to the endpoint
+
+
+
+ Required
+
+
+
+ |
+
+
+ | timeEntryId* |
-
+
@@ -11955,7 +2318,7 @@ Parameters
-Identifier for the superannuation
+You can specify an individual task by appending the id to the endpoint
@@ -11977,7 +2340,7 @@ Parameters
-
+
@@ -12000,38 +2363,36 @@ Parameters
-
-
+
+
- getSuperannuations
- Retrieves superannuations
+ getProject
+ Retrieves a single project
-
+ Allows you to retrieve a specific project using the projectId
- /Superannuations
+ /Projects/{projectId}
Usage and SDK Samples
-
-
+
import org.openapitools.client.api.*;
-import org.openapitools.client.api.client.PayrollNzApi;
-import org.openapitools.client.models.payrollNz.*;
+import org.openapitools.client.api.client.ProjectApi;
+import org.openapitools.client.models.project.*;
import java.io.File;
import java.util.*;
-public class PayrollNzApiExample {
- private PayrollNzApi apiInstance;
+public class ProjectApiExample {
+ private ProjectApi apiInstance;
public static void main(String[] args) {
String accessToken = "YOUR_ACCESS_TOKEN";
@@ -12039,13 +2400,14 @@ Usage and SDK Samples
apiInstance = AccountingApi.getInstance(defaultClient);
String xeroTenantId = 'xeroTenantId_example';
- Integer page = 56;
+ UUID projectId = UUID.fromString("38400000-8cf0-11bd-b23e-10b96e4ef00d");
+ UUID projectId = '38400000-8cf0-11bd-b23e-10b96e4ef00d';
try {
- Superannuations result = apiInstance.getSuperannuations(accessToken, xeroTenantId, page);
+ Project result = apiInstance.getProject(accessToken, xeroTenantId, projectId);
System.out.println(result);
} catch (XeroException e) {
- System.err.println("Exception when calling PayrollNzApi#getSuperannuations");
+ System.err.println("Exception when calling ProjectApi#getProject");
e.printStackTrace();
}
}
@@ -12056,36 +2418,39 @@ Scopes
- | payroll.settings.read |
- Grant read-only access to payroll settings |
+ projects |
+ Grant read-write access to projects |
- | payroll.settings |
- Grant read-write access to payroll settings |
+ projects.read |
+ Grant read-only access to projects |
Parameters
- Header parameters
+ Path parameters
| Name |
Description |
- | Xero-Tenant-Id* |
+ | projectId* |
-
+
- String
+ UUID
+
+ (uuid)
+
-Xero identifier for Tenant
+You can specify an individual project by appending the projectId to the endpoint
@@ -12097,27 +2462,30 @@ Parameters
|
- Query parameters
+ Header parameters
| Name |
Description |
- | page |
+ | Xero-Tenant-Id* |
-
+
- Integer
+ String
-Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.
+Xero identifier for Tenant
+
+ Required
+
|
@@ -12127,38 +2495,36 @@ Parameters
-
-
+
+
- getTimesheet
- Retrieves a specific timesheet by using a unique timesheet ID
+ getProjectUsers
+ Retrieves a list of all project users
-
+ Allows you to retrieve the users on a projects.
- /Timesheets/{TimesheetID}
+ /ProjectsUsers
Usage and SDK Samples
-
-
+
import org.openapitools.client.api.*;
-import org.openapitools.client.api.client.PayrollNzApi;
-import org.openapitools.client.models.payrollNz.*;
+import org.openapitools.client.api.client.ProjectApi;
+import org.openapitools.client.models.project.*;
import java.io.File;
import java.util.*;
-public class PayrollNzApiExample {
- private PayrollNzApi apiInstance;
+public class ProjectApiExample {
+ private ProjectApi apiInstance;
public static void main(String[] args) {
String accessToken = "YOUR_ACCESS_TOKEN";
@@ -12166,13 +2532,14 @@ Usage and SDK Samples
apiInstance = AccountingApi.getInstance(defaultClient);
String xeroTenantId = 'xeroTenantId_example';
- UUID timesheetID = UUID.fromString("38400000-8cf0-11bd-b23e-10b96e4ef00d");
+ Integer page = 1;
+ Integer pageSize = 100;
try {
- TimesheetObject result = apiInstance.getTimesheet(accessToken, xeroTenantId, timesheetID);
+ ProjectUsers result = apiInstance.getProjectUsers(accessToken, xeroTenantId, page, pageSize);
System.out.println(result);
} catch (XeroException e) {
- System.err.println("Exception when calling PayrollNzApi#getTimesheet");
+ System.err.println("Exception when calling ProjectApi#getProjectUsers");
e.printStackTrace();
}
}
@@ -12183,39 +2550,36 @@ Scopes
- | payroll.timesheets.read |
- Grant read-only access to payroll timesheets |
+ projects |
+ Grant read-write access to projects |
- | timesheets.settings |
- |
+ projects.read |
+ Grant read-only access to projects |
Parameters
- Path parameters
+ Header parameters
| Name |
Description |
- | TimesheetID* |
+ | Xero-Tenant-Id* |
-
+
- UUID
+ String
-
- (uuid)
-
-Identifier for the timesheet
+Xero identifier for Tenant
@@ -12227,30 +2591,47 @@ Parameters
|
- Header parameters
+ Query parameters
| Name |
Description |
- | Xero-Tenant-Id* |
+ | page |
-
+
- String
+ Integer
-Xero identifier for Tenant
+set to 1 by default. The requested number of the page in paged response - Must be a number greater than 0.
+
+
+
+
+ |
+
+
+ | pageSize |
+
+
+
+
+
+
+
+ Integer
+
+
+
+Optional, it is set to 50 by default. The number of items to return per page in a paged response - Must be a number between 1 and 500.
-
- Required
-
|
@@ -12260,38 +2641,36 @@ Parameters
-
-
+
+
- getTimesheets
- Retrieves timesheets
+ getProjects
+ Retrieves all projects
-
+ Allows you to retrieve, create and update projects.
- /Timesheets
+ /Projects
Usage and SDK Samples
-
-
+
import org.openapitools.client.api.*;
-import org.openapitools.client.api.client.PayrollNzApi;
-import org.openapitools.client.models.payrollNz.*;
+import org.openapitools.client.api.client.ProjectApi;
+import org.openapitools.client.models.project.*;
import java.io.File;
import java.util.*;
-public class PayrollNzApiExample {
- private PayrollNzApi apiInstance;
+public class ProjectApiExample {
+ private ProjectApi apiInstance;
public static void main(String[] args) {
String accessToken = "YOUR_ACCESS_TOKEN";
@@ -12299,15 +2678,18 @@ Usage and SDK Samples
apiInstance = AccountingApi.getInstance(defaultClient);
String xeroTenantId = 'xeroTenantId_example';
- Integer page = 56;
- UUID employeeId = UUID.fromString("38400000-8cf0-11bd-b23e-10b96e4ef00d");
- UUID payrollCalendarId = UUID.fromString("38400000-8cf0-11bd-b23e-10b96e4ef00d");
+ array[UUID] projectIds = ;
+ UUID contactID = UUID.fromString("38400000-8cf0-11bd-b23e-10b96e4ef00d");
+ UUID contactID = '38400000-8cf0-11bd-b23e-10b96e4ef00d';
+ String states = 'states_example';
+ Integer page = 1;
+ Integer pageSize = 100;
try {
- Timesheets result = apiInstance.getTimesheets(accessToken, xeroTenantId, page, employeeId, payrollCalendarId);
+ Projects result = apiInstance.getProjects(accessToken, xeroTenantId, projectIds, contactID, states, page, pageSize);
System.out.println(result);
} catch (XeroException e) {
- System.err.println("Exception when calling PayrollNzApi#getTimesheets");
+ System.err.println("Exception when calling ProjectApi#getProjects");
e.printStackTrace();
}
}
@@ -12318,13 +2700,13 @@ Scopes
- | payroll.timesheets.read |
- Grant read-only access to payroll timesheets |
+ projects |
+ Grant read-write access to projects |
- | payroll.timesheets |
- Grant read-write access to payroll timesheets |
+ projects.read |
+ Grant read-only access to projects |
@@ -12339,7 +2721,7 @@ Parameters
-
+
@@ -12365,19 +2747,22 @@ Parameters
Name |
Description |
|
- | page |
+ | projectIds |
-
+
- Integer
+ array[UUID]
+
+ (uuid)
+
-Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.
+Search for all projects that match a comma separated list of projectIds
@@ -12385,11 +2770,11 @@ Parameters
|
- | employeeId |
+ | contactID |
- |
- | payrollCalendarId |
+ | states |
-
+
- UUID
+ String
-
- (uuid)
-
-By default get Timesheets will return all the timesheets for an organization. You can add GET https://…/timesheets?filter=payrollCalendarId=={PayrollCalendarID} to filter the timesheets by payroll calendar id
+Filter for projects in a particular state (INPROGRESS or CLOSED)
@@ -12431,100 +2813,41 @@ Parameters
|
-
-
-
-
-
-
-
- getTrackingCategories
- Retrieves tracking categories
-
-
-
-
-
-
-
- /Settings/TrackingCategories
-
- Usage and SDK Samples
-
-
-
-
-
- import org.openapitools.client.api.*;
-import org.openapitools.client.api.client.PayrollNzApi;
-import org.openapitools.client.models.payrollNz.*;
-
-import java.io.File;
-import java.util.*;
+ | page |
+
-public class PayrollNzApiExample {
- private PayrollNzApi apiInstance;
-
- public static void main(String[] args) {
- String accessToken = "YOUR_ACCESS_TOKEN";
- ApiClient defaultClient = new ApiClient();
- apiInstance = AccountingApi.getInstance(defaultClient);
- String xeroTenantId = 'xeroTenantId_example';
+
+
+
+
+ Integer
+
- try {
- TrackingCategories result = apiInstance.getTrackingCategories(accessToken, xeroTenantId);
- System.out.println(result);
- } catch (XeroException e) {
- System.err.println("Exception when calling PayrollNzApi#getTrackingCategories");
- e.printStackTrace();
- }
- }
-}
+
+set to 1 by default. The requested number of the page in paged response - Must be a number greater than 0.
-
- Scopes
-
-
-
- | payroll.settings.read |
- Grant read-only access to payroll settings |
-
-
-
- | settings.payslip |
- |
-
-
-
- Parameters
- Header parameters
-
-
- | Name |
- Description |
-
- | Xero-Tenant-Id* |
+
+
+
+
+
+
+ | pageSize |
-
+
- String
+ Integer
-Xero identifier for Tenant
+Optional, it is set to 50 by default. The number of items to return per page in a paged response - Must be a number between 1 and 500.
-
- Required
-
|
@@ -12534,38 +2857,36 @@ Parameters
-
-
+
+
- revertTimesheet
- Reverts a timesheet to draft
+ getTask
+ Retrieves a single project task
-
+ Allows you to retrieve a specific project
- /Timesheets/{TimesheetID}/RevertToDraft
+ /Projects/{projectId}/Tasks/{taskId}
Usage and SDK Samples
-
-
+
import org.openapitools.client.api.*;
-import org.openapitools.client.api.client.PayrollNzApi;
-import org.openapitools.client.models.payrollNz.*;
+import org.openapitools.client.api.client.ProjectApi;
+import org.openapitools.client.models.project.*;
import java.io.File;
import java.util.*;
-public class PayrollNzApiExample {
- private PayrollNzApi apiInstance;
+public class ProjectApiExample {
+ private ProjectApi apiInstance;
public static void main(String[] args) {
String accessToken = "YOUR_ACCESS_TOKEN";
@@ -12573,13 +2894,16 @@ Usage and SDK Samples
apiInstance = AccountingApi.getInstance(defaultClient);
String xeroTenantId = 'xeroTenantId_example';
- UUID timesheetID = UUID.fromString("38400000-8cf0-11bd-b23e-10b96e4ef00d");
+ UUID projectId = UUID.fromString("38400000-8cf0-11bd-b23e-10b96e4ef00d");
+ UUID projectId = '38400000-8cf0-11bd-b23e-10b96e4ef00d';
+ UUID taskId = UUID.fromString("38400000-8cf0-11bd-b23e-10b96e4ef00d");
+ UUID taskId = '38400000-8cf0-11bd-b23e-10b96e4ef00d';
try {
- TimesheetObject result = apiInstance.revertTimesheet(accessToken, xeroTenantId, timesheetID);
+ Task result = apiInstance.getTask(accessToken, xeroTenantId, projectId, taskId);
System.out.println(result);
} catch (XeroException e) {
- System.err.println("Exception when calling PayrollNzApi#revertTimesheet");
+ System.err.println("Exception when calling ProjectApi#getTask");
e.printStackTrace();
}
}
@@ -12590,8 +2914,13 @@ Scopes
- | payroll.timesheets |
- Grant read-write access to payroll timesheets |
+ projects |
+ Grant read-write access to projects |
+
+
+
+ | projects.read |
+ Grant read-only access to projects |
@@ -12602,11 +2931,37 @@ Parameters
Name |
Description |
- | TimesheetID* |
+ | projectId* |
+
+
+
+
+
+
+
+ UUID
+
+
+ (uuid)
+
+
+
+You can specify an individual project by appending the projectId to the endpoint
+
+
+
+ Required
+
+
+
+ |
+
+
+ | taskId* |
-
+
@@ -12617,7 +2972,7 @@ Parameters
-Identifier for the timesheet
+You can specify an individual task by appending the taskId to the endpoint, i.e. GET https://.../tasks/{taskID}
@@ -12639,7 +2994,7 @@ Parameters
-
+
@@ -12662,38 +3017,36 @@ Parameters
-
-
+
+
- updateEmployee
- Updates an existing employee
+ getTasks
+ Retrieves all project tasks
-
+ Allows you to retrieve a specific project
- /Employees/{EmployeeID}
+ /Projects/{projectId}/Tasks
Usage and SDK Samples
-
-
+
import org.openapitools.client.api.*;
-import org.openapitools.client.api.client.PayrollNzApi;
-import org.openapitools.client.models.payrollNz.*;
+import org.openapitools.client.api.client.ProjectApi;
+import org.openapitools.client.models.project.*;
import java.io.File;
import java.util.*;
-public class PayrollNzApiExample {
- private PayrollNzApi apiInstance;
+public class ProjectApiExample {
+ private ProjectApi apiInstance;
public static void main(String[] args) {
String accessToken = "YOUR_ACCESS_TOKEN";
@@ -12701,26 +3054,18 @@ Usage and SDK Samples
apiInstance = AccountingApi.getInstance(defaultClient);
String xeroTenantId = 'xeroTenantId_example';
- UUID employeeID = UUID.fromString("4ff1e5cc-9835-40d5-bb18-09fdb118db9c");
- LocalDate dateOfBirth = LocalDate.of(2000, Month.OCTOBER, 28);
-
- Address address = new Address();
- address.setAddressLine1("123 Test st");
- address.setCity("Rangiora");
- address.setPostCode("7400");
- address.setCountryName("NEW ZEALAND");
-
- Employee employee = new Employee();
- employee.setFirstName("Adam");
- employee.setLastName("Adamson");
- employee.setDateOfBirth(dateOfBirth);
- employee.setAddress(address);
+ UUID projectId = UUID.fromString("38400000-8cf0-11bd-b23e-10b96e4ef00d");
+ UUID projectId = '38400000-8cf0-11bd-b23e-10b96e4ef00d';
+ Integer page = 1;
+ Integer pageSize = 10;
+ String taskIds = 'taskIds_example';
+ ChargeType chargeType = ;
try {
- EmployeeObject result = apiInstance.updateEmployee(accessToken, xeroTenantId, employeeID, employee);
+ Tasks result = apiInstance.getTasks(accessToken, xeroTenantId, projectId, page, pageSize, taskIds, chargeType);
System.out.println(result);
} catch (XeroException e) {
- System.err.println("Exception when calling PayrollNzApi#updateEmployee");
+ System.err.println("Exception when calling ProjectApi#getTasks");
e.printStackTrace();
}
}
@@ -12731,8 +3076,13 @@ Scopes
- | payroll.employees |
- Grant read-write access to payroll employees |
+ projects |
+ Grant read-write access to projects |
+
+
+
+ | projects.read |
+ Grant read-only access to projects |
@@ -12743,11 +3093,11 @@ Parameters
Name |
Description |
| |
- | EmployeeID* |
+ | projectId* |
-
+
@@ -12758,7 +3108,7 @@ Parameters
-Employee id for single object
+You can specify an individual project by appending the projectId to the endpoint
@@ -12780,7 +3130,7 @@ Parameters
-
+
@@ -12800,77 +3150,126 @@ Parameters
| |
- Body parameters
+ Query parameters
| Name |
Description |
-
- | employee * |
-
-
-
-
- Employee
-
-
-
+ | page |
+
+
+
+
+
+
+
+ Integer
+
+
+
+Set to 1 by default. The requested number of the page in paged response - Must be a number greater than 0.
+
+
-
-
- Required
-
-
+ |
+
+
+ | pageSize |
+
+
+
+
+
+
+
+ Integer
+
+
+
+Optional, it is set to 50 by default. The number of items to return per page in a paged response - Must be a number between 1 and 500.
+
+
+
+
+ |
+
+
+ | taskIds |
+
+
+
+
+
+
+
+ String
+
+
+
+Search for all tasks that match a comma separated list of taskIds, i.e. GET https://.../tasks?taskIds={taskID},{taskID}
+
+
+
+
+ |
+
+
+ | chargeType |
+
+
+
+
+
+
+
+ ChargeType
+
+
+
+
+
+
+
+
+ |
+
+
|
-
-
+
+
- updateEmployeeEarningsTemplate
- Updates an earnings template records for an employee
+ getTimeEntries
+ Retrieves all time entries associated with a specific project
-
+ Allows you to retrieve the time entries associated with a specific project
- /Employees/{EmployeeID}/PayTemplates/earnings/{PayTemplateEarningID}
+ /Projects/{projectId}/Time
Usage and SDK Samples
-
-
+
import org.openapitools.client.api.*;
-import org.openapitools.client.api.client.PayrollNzApi;
-import org.openapitools.client.models.payrollNz.*;
+import org.openapitools.client.api.client.ProjectApi;
+import org.openapitools.client.models.project.*;
import java.io.File;
import java.util.*;
-public class PayrollNzApiExample {
- private PayrollNzApi apiInstance;
+public class ProjectApiExample {
+ private ProjectApi apiInstance;
public static void main(String[] args) {
String accessToken = "YOUR_ACCESS_TOKEN";
@@ -12878,25 +3277,30 @@ Usage and SDK Samples
apiInstance = AccountingApi.getInstance(defaultClient);
String xeroTenantId = 'xeroTenantId_example';
- UUID employeeID = UUID.fromString("4ff1e5cc-9835-40d5-bb18-09fdb118db9c");
- UUID payTemplateEarningID = UUID.fromString("3fa85f64-5717-4562-b3fc-2c963f66afa6");
-
- EarningsTemplate earningsTemplate = new EarningsTemplate();
- earningsTemplate.setPayTemplateEarningID(UUID.fromString("00000000-0000-0000-0000-000000000000"));
- earningsTemplate.setRatePerUnit(14.25);
- earningsTemplate.setNumberOfUnits(35.5);
- earningsTemplate.setFixedAmount(50);
- earningsTemplate.setEarningsRateID(UUID.fromString("00000000-0000-0000-0000-000000000000"));
- earningsTemplate.setName("Overtime Hours");
-
- List<EarningsTemplate> earningsTemplates = new ArrayList<EarningsTemplate>();
- earningsTemplates.add(earningsTemplate);
+ UUID projectId = UUID.fromString("38400000-8cf0-11bd-b23e-10b96e4ef00d");
+ UUID projectId = '38400000-8cf0-11bd-b23e-10b96e4ef00d';
+ UUID userId = UUID.fromString("38400000-8cf0-11bd-b23e-10b96e4ef00d");
+ UUID userId = '38400000-8cf0-11bd-b23e-10b96e4ef00d';
+ UUID taskId = UUID.fromString("38400000-8cf0-11bd-b23e-10b96e4ef00d");
+ UUID taskId = '38400000-8cf0-11bd-b23e-10b96e4ef00d';
+ UUID invoiceId = UUID.fromString("38400000-8cf0-11bd-b23e-10b96e4ef00d");
+ UUID invoiceId = '38400000-8cf0-11bd-b23e-10b96e4ef00d';
+ UUID contactId = UUID.fromString("38400000-8cf0-11bd-b23e-10b96e4ef00d");
+ UUID contactId = '38400000-8cf0-11bd-b23e-10b96e4ef00d';
+ Integer page = 1;
+ Integer pageSize = 10;
+ array[String] states = ;
+ Boolean isChargeable = true;
+
+ OffsetDateTime dateAfterUtc = OffsetDateTime.parse("2013-10-20T19:20:30+01:00");
+
+ OffsetDateTime dateBeforeUtc = OffsetDateTime.parse("2013-10-20T19:20:30+01:00");
try {
- EarningsTemplateObject result = apiInstance.updateEmployeeEarningsTemplate(accessToken, xeroTenantId, employeeID, payTemplateEarningID, earningsTemplate);
+ TimeEntries result = apiInstance.getTimeEntries(accessToken, xeroTenantId, projectId, userId, taskId, invoiceId, contactId, page, pageSize, states, isChargeable, dateAfterUtc, dateBeforeUtc);
System.out.println(result);
} catch (XeroException e) {
- System.err.println("Exception when calling PayrollNzApi#updateEmployeeEarningsTemplate");
+ System.err.println("Exception when calling ProjectApi#getTimeEntries");
e.printStackTrace();
}
}
@@ -12907,8 +3311,13 @@ Scopes
- | payroll.employees |
- Grant read-write access to payroll employees |
+ projects |
+ Grant read-write access to projects |
+
+
+
+ | projects.read |
+ Grant read-only access to projects |
@@ -12919,11 +3328,11 @@ Parameters
Name |
Description |
|
- | EmployeeID* |
+ | projectId* |
-
+
@@ -12934,7 +3343,7 @@ Parameters
-Employee id for single object
+Identifier of the project, that the task (which the time entry is logged against) belongs to.
@@ -12945,22 +3354,26 @@ Parameters
|
- | PayTemplateEarningID* |
+
+ Header parameters
+
+
+ | Name |
+ Description |
+
+ | Xero-Tenant-Id* |
-
+
- UUID
+ String
-
- (uuid)
-
-Id for single pay template earnings object
+Xero identifier for Tenant
@@ -12972,305 +3385,264 @@ Parameters
|
- Header parameters
+ Query parameters
| Name |
Description |
- | Xero-Tenant-Id* |
+ | userId |
-
+
- String
+ UUID
+
+ (uuid)
+
-Xero identifier for Tenant
+The xero user identifier of the person who logged time.
-
- Required
-
|
-
- Body parameters
-
-
- | Name |
- Description |
-
-
- | earningsTemplate * |
-
-
-
-
- EarningsTemplate
-
-
-
+ | taskId |
+
+
+
+
+
+
+
+ UUID
+
+
+ (uuid)
+
+
+
+Identifier of the task that time entry is logged against.
+
+
-
-
- Required
-
-
- | |
-
-
-
-
-
-
- updateEmployeeLeave
- Updates leave records for a specific employee
-
-
-
-
-
-
-
- /Employees/{EmployeeID}/Leave/{LeaveID}
-
- Usage and SDK Samples
-
-
-
-
-
- import org.openapitools.client.api.*;
-import org.openapitools.client.api.client.PayrollNzApi;
-import org.openapitools.client.models.payrollNz.*;
+
|
+ |
+
+ | invoiceId |
+
+
+
+
+
+
+
+ UUID
+
+
+ (uuid)
+
+
+
+Finds all time entries for this invoice.
+
+
+
+
+ |
+
+
+ | contactId |
+
+
+
+
+ |
+
+
+ | page |
+
+
+
+
+
+
+
+ Integer
+
+
+
+Set to 1 by default. The requested number of the page in paged response - Must be a number greater than 0.
+
+
+
+
+ |
+
+
+ | pageSize |
+
-import java.io.File;
-import java.util.*;
-public class PayrollNzApiExample {
- private PayrollNzApi apiInstance;
-
- public static void main(String[] args) {
- String accessToken = "YOUR_ACCESS_TOKEN";
- ApiClient defaultClient = new ApiClient();
+
+
+
+
+ Integer
+
- apiInstance = AccountingApi.getInstance(defaultClient);
- String xeroTenantId = 'xeroTenantId_example';
- UUID employeeID = UUID.fromString("4ff1e5cc-9835-40d5-bb18-09fdb118db9c");
- UUID leaveID = UUID.fromString("c4be24e5-e840-4c92-9eaa-2d86cd596314");
- LocalDate startDate = LocalDate.of(2020, Month.OCTOBER, 28);
- LocalDate endDate = LocalDate.of(2020, Month.OCTOBER, 30);
-
- EmployeeLeave employeeLeave = new EmployeeLeave();
- employeeLeave.setLeaveTypeID(UUID.fromString("00000000-0000-0000-0000-000000000000"));
- employeeLeave.setStartDate(startDate);
- employeeLeave.setEndDate(endDate);
+
+Optional, it is set to 50 by default. The number of items to return per page in a paged response - Must be a number between 1 and 500.
+
+
+
+
+ |
+
- try {
- EmployeeLeaveObject result = apiInstance.updateEmployeeLeave(accessToken, xeroTenantId, employeeID, leaveID, employeeLeave);
- System.out.println(result);
- } catch (XeroException e) {
- System.err.println("Exception when calling PayrollNzApi#updateEmployeeLeave");
- e.printStackTrace();
- }
- }
-}
+ | states |
+
+
+
+
+
+
+
+ array[String]
+
+
+
+Comma-separated list of states to find. Will find all time entries that are in the status of whatever is specified.
-
- Scopes
-
-
-
- | payroll.employees |
- Grant read-write access to payroll employees |
-
-
-
- Parameters
- Path parameters
-
-
- | Name |
- Description |
-
- | EmployeeID* |
+
+
+
+
+
+
+ | isChargeable |
-
+
- UUID
+ Boolean
-
- (uuid)
-
-Employee id for single object
+Finds all time entries which relate to tasks with the charge type TIME or FIXED.
-
- Required
-
|
- | LeaveID* |
+ | dateAfterUtc |
-
+
- UUID
+ Date
- (uuid)
+ (date-time)
-Leave id for single object
+ISO 8601 UTC date. Finds all time entries on or after this date filtered on the dateUtc field.
-
- Required
-
|
-
- Header parameters
-
-
- | Name |
- Description |
-
- | Xero-Tenant-Id* |
+ | dateBeforeUtc |
-
+
- String
+ Date
+
+ (date-time)
+
-Xero identifier for Tenant
+ISO 8601 UTC date. Finds all time entries on or before this date filtered on the dateUtc field.
-
- Required
-
|
- Body parameters
-
-
- | Name |
- Description |
-
-
- | employeeLeave * |
-
-
-
-
- EmployeeLeave
-
-
-
-
-
-
- Required
-
-
-
- |
-
-
+
+
- updateEmployeeSalaryAndWage
- Updates an employee's salary and wages record
+ getTimeEntry
+ Retrieves a single time entry for a specific project
-
+ Allows you to get a single time entry in a project
- /Employees/{EmployeeID}/SalaryAndWages/{SalaryAndWagesID}
+ /Projects/{projectId}/Time/{timeEntryId}
Usage and SDK Samples
-
-
+
import org.openapitools.client.api.*;
-import org.openapitools.client.api.client.PayrollNzApi;
-import org.openapitools.client.models.payrollNz.*;
+import org.openapitools.client.api.client.ProjectApi;
+import org.openapitools.client.models.project.*;
import java.io.File;
import java.util.*;
-public class PayrollNzApiExample {
- private PayrollNzApi apiInstance;
+public class ProjectApiExample {
+ private ProjectApi apiInstance;
public static void main(String[] args) {
String accessToken = "YOUR_ACCESS_TOKEN";
@@ -13278,20 +3650,16 @@ Usage and SDK Samples
apiInstance = AccountingApi.getInstance(defaultClient);
String xeroTenantId = 'xeroTenantId_example';
- UUID employeeID = UUID.fromString("4ff1e5cc-9835-40d5-bb18-09fdb118db9c");
- UUID salaryAndWagesID = UUID.fromString("3fa85f64-5717-4562-b3fc-2c963f66afa6");
-
- SalaryAndWage salaryAndWage = new SalaryAndWage();
- salaryAndWage.setEarningsRateID(UUID.fromString("00000000-0000-0000-0000-000000000000"));
- salaryAndWage.setNumberOfUnitsPerDay(0);
- salaryAndWage.setDaysPerWeek(0);
- salaryAndWage.setPaymentType(com.xero.models.payrollnz.SalaryAndWage.PaymentTypeEnum.HOURLY);
+ UUID projectId = UUID.fromString("38400000-8cf0-11bd-b23e-10b96e4ef00d");
+ UUID projectId = '38400000-8cf0-11bd-b23e-10b96e4ef00d';
+ UUID timeEntryId = UUID.fromString("38400000-8cf0-11bd-b23e-10b96e4ef00d");
+ UUID timeEntryId = '38400000-8cf0-11bd-b23e-10b96e4ef00d';
try {
- SalaryAndWageObject result = apiInstance.updateEmployeeSalaryAndWage(accessToken, xeroTenantId, employeeID, salaryAndWagesID, salaryAndWage);
+ TimeEntry result = apiInstance.getTimeEntry(accessToken, xeroTenantId, projectId, timeEntryId);
System.out.println(result);
} catch (XeroException e) {
- System.err.println("Exception when calling PayrollNzApi#updateEmployeeSalaryAndWage");
+ System.err.println("Exception when calling ProjectApi#getTimeEntry");
e.printStackTrace();
}
}
@@ -13302,8 +3670,13 @@ Scopes
- | payroll.employees |
- Grant read-write access to payroll employees |
+ projects |
+ Grant read-write access to projects |
+
+
+
+ | projects.read |
+ Grant read-only access to projects |
@@ -13314,11 +3687,11 @@ Parameters
Name |
Description |
|
- | EmployeeID* |
+
| projectId* |
-
+
@@ -13329,7 +3702,7 @@ Parameters
-Employee id for single object
+You can specify an individual project by appending the projectId to the endpoint
@@ -13340,11 +3713,11 @@ Parameters
|
- | SalaryAndWagesID* |
+
| timeEntryId* |
-
+
@@ -13355,7 +3728,7 @@ Parameters
-Id for single pay template earnings object
+You can specify an individual time entry by appending the id to the endpoint
@@ -13377,7 +3750,7 @@ Parameters
-
+
@@ -13397,77 +3770,39 @@ Parameters
| |
- Body parameters
-
-
- | Name |
- Description |
-
-
- | salaryAndWage * |
-
-
-
-
- SalaryAndWage
-
-
-
-
-
-
- Required
-
-
-
- |