Class PayrollAuApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapproveLeaveApplication(String accessToken, String xeroTenantId, UUID leaveApplicationID, String idempotencyKey) Approve a requested leave application by a unique leave application idcom.google.api.client.http.HttpResponseapproveLeaveApplicationForHttpResponse(String accessToken, String xeroTenantId, UUID leaveApplicationID, String idempotencyKey) Approve a requested leave application by a unique leave application idconvert intput to byte arraycreateEmployee(String accessToken, String xeroTenantId, List<Employee> employee, String idempotencyKey) Creates a payroll employeecom.google.api.client.http.HttpResponsecreateEmployeeForHttpResponse(String accessToken, String xeroTenantId, List<Employee> employee, String idempotencyKey) Creates a payroll employeecreateLeaveApplication(String accessToken, String xeroTenantId, List<LeaveApplication> leaveApplication, String idempotencyKey) Creates a leave applicationcom.google.api.client.http.HttpResponsecreateLeaveApplicationForHttpResponse(String accessToken, String xeroTenantId, List<LeaveApplication> leaveApplication, String idempotencyKey) Creates a leave applicationcreatePayItem(String accessToken, String xeroTenantId, PayItem payItem, String idempotencyKey) Creates a pay itemcom.google.api.client.http.HttpResponsecreatePayItemForHttpResponse(String accessToken, String xeroTenantId, PayItem payItem, String idempotencyKey) Creates a pay itemcreatePayrollCalendar(String accessToken, String xeroTenantId, List<PayrollCalendar> payrollCalendar, String idempotencyKey) Creates a Payroll Calendarcom.google.api.client.http.HttpResponsecreatePayrollCalendarForHttpResponse(String accessToken, String xeroTenantId, List<PayrollCalendar> payrollCalendar, String idempotencyKey) Creates a Payroll CalendarCreates a pay runcom.google.api.client.http.HttpResponsecreatePayRunForHttpResponse(String accessToken, String xeroTenantId, List<PayRun> payRun, String idempotencyKey) Creates a pay runcreateSuperfund(String accessToken, String xeroTenantId, List<SuperFund> superFund, String idempotencyKey) Creates a superfundcom.google.api.client.http.HttpResponsecreateSuperfundForHttpResponse(String accessToken, String xeroTenantId, List<SuperFund> superFund, String idempotencyKey) Creates a superfundcreateTimesheet(String accessToken, String xeroTenantId, List<Timesheet> timesheet, String idempotencyKey) Creates a timesheetcom.google.api.client.http.HttpResponsecreateTimesheetForHttpResponse(String accessToken, String xeroTenantId, List<Timesheet> timesheet, String idempotencyKey) Creates a timesheetget ApiClientgetEmployee(String accessToken, String xeroTenantId, UUID employeeID) Retrieves an employee's detail by unique employee idcom.google.api.client.http.HttpResponsegetEmployeeForHttpResponse(String accessToken, String xeroTenantId, UUID employeeID) Retrieves an employee's detail by unique employee idgetEmployees(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order, Integer page) Searches payroll employeescom.google.api.client.http.HttpResponsegetEmployeesForHttpResponse(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order, Integer page) Searches payroll employeesstatic PayrollAuApigetInstance(ApiClient apiClient) PayrollAuApi getInstancegetLeaveApplication(String accessToken, String xeroTenantId, UUID leaveApplicationID) Retrieves a leave application by a unique leave application idcom.google.api.client.http.HttpResponsegetLeaveApplicationForHttpResponse(String accessToken, String xeroTenantId, UUID leaveApplicationID) Retrieves a leave application by a unique leave application idgetLeaveApplications(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order, Integer page) Retrieves leave applicationscom.google.api.client.http.HttpResponsegetLeaveApplicationsForHttpResponse(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order, Integer page) Retrieves leave applicationsgetLeaveApplicationsV2(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order, Integer page) Retrieves leave applications including leave requestscom.google.api.client.http.HttpResponsegetLeaveApplicationsV2ForHttpResponse(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order, Integer page) Retrieves leave applications including leave requestsgetPayItems(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order, Integer page) Retrieves pay itemscom.google.api.client.http.HttpResponsegetPayItemsForHttpResponse(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order, Integer page) Retrieves pay itemsgetPayrollCalendar(String accessToken, String xeroTenantId, UUID payrollCalendarID) Retrieves payroll calendar by using a unique payroll calendar IDcom.google.api.client.http.HttpResponsegetPayrollCalendarForHttpResponse(String accessToken, String xeroTenantId, UUID payrollCalendarID) Retrieves payroll calendar by using a unique payroll calendar IDgetPayrollCalendars(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order, Integer page) Retrieves payroll calendarscom.google.api.client.http.HttpResponsegetPayrollCalendarsForHttpResponse(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order, Integer page) Retrieves payroll calendarsRetrieves a pay run by using a unique pay run idcom.google.api.client.http.HttpResponsegetPayRunForHttpResponse(String accessToken, String xeroTenantId, UUID payRunID) Retrieves a pay run by using a unique pay run idgetPayRuns(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order, Integer page) Retrieves pay runscom.google.api.client.http.HttpResponsegetPayRunsForHttpResponse(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order, Integer page) Retrieves pay runsgetPayslip(String accessToken, String xeroTenantId, UUID payslipID) Retrieves for a payslip by a unique payslip idcom.google.api.client.http.HttpResponsegetPayslipForHttpResponse(String accessToken, String xeroTenantId, UUID payslipID) Retrieves for a payslip by a unique payslip idgetSettings(String accessToken, String xeroTenantId) Retrieves payroll settingscom.google.api.client.http.HttpResponsegetSettingsForHttpResponse(String accessToken, String xeroTenantId) Retrieves payroll settingsgetSuperfund(String accessToken, String xeroTenantId, UUID superFundID) Retrieves a superfund by using a unique superfund IDcom.google.api.client.http.HttpResponsegetSuperfundForHttpResponse(String accessToken, String xeroTenantId, UUID superFundID) Retrieves a superfund by using a unique superfund IDgetSuperfundProducts(String accessToken, String xeroTenantId, String ABN, String USI) Retrieves superfund productscom.google.api.client.http.HttpResponsegetSuperfundProductsForHttpResponse(String accessToken, String xeroTenantId, String ABN, String USI) Retrieves superfund productsgetSuperfunds(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order, Integer page) Retrieves superfundscom.google.api.client.http.HttpResponsegetSuperfundsForHttpResponse(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order, Integer page) Retrieves superfundsgetTimesheet(String accessToken, String xeroTenantId, UUID timesheetID) Retrieves a timesheet by using a unique timesheet idcom.google.api.client.http.HttpResponsegetTimesheetForHttpResponse(String accessToken, String xeroTenantId, UUID timesheetID) Retrieves a timesheet by using a unique timesheet idgetTimesheets(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order, Integer page) Retrieves timesheetscom.google.api.client.http.HttpResponsegetTimesheetsForHttpResponse(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order, Integer page) Retrieves timesheetsget user agentrejectLeaveApplication(String accessToken, String xeroTenantId, UUID leaveApplicationID, String idempotencyKey) Reject a leave application by a unique leave application idcom.google.api.client.http.HttpResponserejectLeaveApplicationForHttpResponse(String accessToken, String xeroTenantId, UUID leaveApplicationID, String idempotencyKey) Reject a leave application by a unique leave application idvoidsetApiClient(ApiClient apiClient) set ApiClientvoidsetUserAgent(String userAgent) set user agentupdateEmployee(String accessToken, String xeroTenantId, UUID employeeID, List<Employee> employee, String idempotencyKey) Updates an employee's detail Update properties on a single employeecom.google.api.client.http.HttpResponseupdateEmployeeForHttpResponse(String accessToken, String xeroTenantId, UUID employeeID, List<Employee> employee, String idempotencyKey) Updates an employee's detail Update properties on a single employeeupdateLeaveApplication(String accessToken, String xeroTenantId, UUID leaveApplicationID, List<LeaveApplication> leaveApplication, String idempotencyKey) Updates a specific leave applicationcom.google.api.client.http.HttpResponseupdateLeaveApplicationForHttpResponse(String accessToken, String xeroTenantId, UUID leaveApplicationID, List<LeaveApplication> leaveApplication, String idempotencyKey) Updates a specific leave applicationupdatePayRun(String accessToken, String xeroTenantId, UUID payRunID, List<PayRun> payRun, String idempotencyKey) Updates a pay run Update properties on a single PayRuncom.google.api.client.http.HttpResponseupdatePayRunForHttpResponse(String accessToken, String xeroTenantId, UUID payRunID, List<PayRun> payRun, String idempotencyKey) Updates a pay run Update properties on a single PayRunupdatePayslip(String accessToken, String xeroTenantId, UUID payslipID, List<PayslipLines> payslipLines, String idempotencyKey) Updates a payslip Update lines on a single payslipscom.google.api.client.http.HttpResponseupdatePayslipForHttpResponse(String accessToken, String xeroTenantId, UUID payslipID, List<PayslipLines> payslipLines, String idempotencyKey) Updates a payslip Update lines on a single payslipsupdateSuperfund(String accessToken, String xeroTenantId, UUID superFundID, List<SuperFund> superFund, String idempotencyKey) Updates a superfund Update properties on a single Superfundcom.google.api.client.http.HttpResponseupdateSuperfundForHttpResponse(String accessToken, String xeroTenantId, UUID superFundID, List<SuperFund> superFund, String idempotencyKey) Updates a superfund Update properties on a single SuperfundupdateTimesheet(String accessToken, String xeroTenantId, UUID timesheetID, List<Timesheet> timesheet, String idempotencyKey) Updates a timesheet Update properties on a single timesheetcom.google.api.client.http.HttpResponseupdateTimesheetForHttpResponse(String accessToken, String xeroTenantId, UUID timesheetID, List<Timesheet> timesheet, String idempotencyKey) Updates a timesheet Update properties on a single timesheet
-
Constructor Details
-
PayrollAuApi
public PayrollAuApi()PayrollAuApi -
PayrollAuApi
PayrollAuApi- Parameters:
apiClient- ApiClient pass into the new instance of this class
-
-
Method Details
-
getInstance
PayrollAuApi getInstance- Parameters:
apiClient- ApiClient pass into the new instance of this class- Returns:
- instance of this class
-
getApiClient
-
setApiClient
set ApiClient- Parameters:
apiClient- ApiClient pass into the new instance of this class
-
setUserAgent
set user agent- Parameters:
userAgent- string to override the user agent
-
getUserAgent
-
approveLeaveApplication
public LeaveApplications approveLeaveApplication(String accessToken, String xeroTenantId, UUID leaveApplicationID, String idempotencyKey) throws IOException Approve a requested leave application by a unique leave application id200 - Application successfully approved
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantleaveApplicationID- Leave Application id for single objectidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- LeaveApplications
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
approveLeaveApplicationForHttpResponse
public com.google.api.client.http.HttpResponse approveLeaveApplicationForHttpResponse(String accessToken, String xeroTenantId, UUID leaveApplicationID, String idempotencyKey) throws IOException Approve a requested leave application by a unique leave application id200 - Application successfully approved
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantleaveApplicationID- Leave Application id for single objectidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createEmployee
public Employees createEmployee(String accessToken, String xeroTenantId, List<Employee> employee, String idempotencyKey) throws IOException Creates a payroll employee200 - A successful request
400 - invalid input, object invalid - TODO
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for Tenantemployee- The employee parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- Employees
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
createEmployeeForHttpResponse
public com.google.api.client.http.HttpResponse createEmployeeForHttpResponse(String accessToken, String xeroTenantId, List<Employee> employee, String idempotencyKey) throws IOException Creates a payroll employee200 - A successful request
400 - invalid input, object invalid - TODO
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for Tenantemployee- The employee parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createLeaveApplication
public LeaveApplications createLeaveApplication(String accessToken, String xeroTenantId, List<LeaveApplication> leaveApplication, String idempotencyKey) throws IOException Creates a leave application200 - A successful request
400 - invalid input, object invalid - TODO
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantleaveApplication- The leaveApplication parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- LeaveApplications
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
createLeaveApplicationForHttpResponse
public com.google.api.client.http.HttpResponse createLeaveApplicationForHttpResponse(String accessToken, String xeroTenantId, List<LeaveApplication> leaveApplication, String idempotencyKey) throws IOException Creates a leave application200 - A successful request
400 - invalid input, object invalid - TODO
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantleaveApplication- The leaveApplication parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createPayItem
public PayItems createPayItem(String accessToken, String xeroTenantId, PayItem payItem, String idempotencyKey) throws IOException Creates a pay item200 - A successful request - currently returns empty array for JSON
400 - invalid input, object invalid - TODO
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantpayItem- The payItem parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- PayItems
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
createPayItemForHttpResponse
public com.google.api.client.http.HttpResponse createPayItemForHttpResponse(String accessToken, String xeroTenantId, PayItem payItem, String idempotencyKey) throws IOException Creates a pay item200 - A successful request - currently returns empty array for JSON
400 - invalid input, object invalid - TODO
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantpayItem- The payItem parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createPayRun
public PayRuns createPayRun(String accessToken, String xeroTenantId, List<PayRun> payRun, String idempotencyKey) throws IOException Creates a pay run200 - A successful request
400 - invalid input, object invalid - TODO
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantpayRun- The payRun parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- PayRuns
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
createPayRunForHttpResponse
public com.google.api.client.http.HttpResponse createPayRunForHttpResponse(String accessToken, String xeroTenantId, List<PayRun> payRun, String idempotencyKey) throws IOException Creates a pay run200 - A successful request
400 - invalid input, object invalid - TODO
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantpayRun- The payRun parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createPayrollCalendar
public PayrollCalendars createPayrollCalendar(String accessToken, String xeroTenantId, List<PayrollCalendar> payrollCalendar, String idempotencyKey) throws IOException Creates a Payroll Calendar200 - A successful request
400 - invalid input, object invalid - TODO
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantpayrollCalendar- The payrollCalendar parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- PayrollCalendars
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
createPayrollCalendarForHttpResponse
public com.google.api.client.http.HttpResponse createPayrollCalendarForHttpResponse(String accessToken, String xeroTenantId, List<PayrollCalendar> payrollCalendar, String idempotencyKey) throws IOException Creates a Payroll Calendar200 - A successful request
400 - invalid input, object invalid - TODO
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantpayrollCalendar- The payrollCalendar parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createSuperfund
public SuperFunds createSuperfund(String accessToken, String xeroTenantId, List<SuperFund> superFund, String idempotencyKey) throws IOException Creates a superfund200 - A successful request
400 - invalid input, object invalid - TODO
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantsuperFund- The superFund parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- SuperFunds
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
createSuperfundForHttpResponse
public com.google.api.client.http.HttpResponse createSuperfundForHttpResponse(String accessToken, String xeroTenantId, List<SuperFund> superFund, String idempotencyKey) throws IOException Creates a superfund200 - A successful request
400 - invalid input, object invalid - TODO
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantsuperFund- The superFund parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createTimesheet
public Timesheets createTimesheet(String accessToken, String xeroTenantId, List<Timesheet> timesheet, String idempotencyKey) throws IOException Creates a timesheet200 - A successful request
400 - invalid input, object invalid - TODO
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for Tenanttimesheet- The timesheet parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- Timesheets
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
createTimesheetForHttpResponse
public com.google.api.client.http.HttpResponse createTimesheetForHttpResponse(String accessToken, String xeroTenantId, List<Timesheet> timesheet, String idempotencyKey) throws IOException Creates a timesheet200 - A successful request
400 - invalid input, object invalid - TODO
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for Tenanttimesheet- The timesheet parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getEmployee
public Employees getEmployee(String accessToken, String xeroTenantId, UUID employeeID) throws IOException Retrieves an employee's detail by unique employee id200 - search results matching criteria
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantemployeeID- Employee id for single object- Returns:
- Employees
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getEmployeeForHttpResponse
public com.google.api.client.http.HttpResponse getEmployeeForHttpResponse(String accessToken, String xeroTenantId, UUID employeeID) throws IOException Retrieves an employee's detail by unique employee id200 - search results matching criteria
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantemployeeID- Employee id for single object- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getEmployees
public Employees getEmployees(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order, Integer page) throws IOException Searches payroll employees200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantifModifiedSince- Only records created or modified since this timestamp will be returnedwhere- Filter by an any elementorder- Order by an any elementpage- e.g. page=1 – Up to 100 employees will be returned in a single API call- Returns:
- Employees
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getEmployeesForHttpResponse
public com.google.api.client.http.HttpResponse getEmployeesForHttpResponse(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order, Integer page) throws IOException Searches payroll employees200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantifModifiedSince- Only records created or modified since this timestamp will be returnedwhere- Filter by an any elementorder- Order by an any elementpage- e.g. page=1 – Up to 100 employees will be returned in a single API call- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getLeaveApplication
public LeaveApplications getLeaveApplication(String accessToken, String xeroTenantId, UUID leaveApplicationID) throws IOException Retrieves a leave application by a unique leave application id200 - search results matching criteria
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantleaveApplicationID- Leave Application id for single object- Returns:
- LeaveApplications
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getLeaveApplicationForHttpResponse
public com.google.api.client.http.HttpResponse getLeaveApplicationForHttpResponse(String accessToken, String xeroTenantId, UUID leaveApplicationID) throws IOException Retrieves a leave application by a unique leave application id200 - search results matching criteria
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantleaveApplicationID- Leave Application id for single object- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getLeaveApplications
public LeaveApplications getLeaveApplications(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order, Integer page) throws IOException Retrieves leave applications200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantifModifiedSince- Only records created or modified since this timestamp will be returnedwhere- Filter by an any elementorder- Order by an any elementpage- e.g. page=1 – Up to 100 objects will be returned in a single API call- Returns:
- LeaveApplications
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getLeaveApplicationsForHttpResponse
public com.google.api.client.http.HttpResponse getLeaveApplicationsForHttpResponse(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order, Integer page) throws IOException Retrieves leave applications200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantifModifiedSince- Only records created or modified since this timestamp will be returnedwhere- Filter by an any elementorder- Order by an any elementpage- e.g. page=1 – Up to 100 objects will be returned in a single API call- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getLeaveApplicationsV2
public LeaveApplications getLeaveApplicationsV2(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order, Integer page) throws IOException Retrieves leave applications including leave requests200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantifModifiedSince- Only records created or modified since this timestamp will be returnedwhere- Filter by an any elementorder- Order by an any elementpage- e.g. page=1 – Up to 100 objects will be returned in a single API call- Returns:
- LeaveApplications
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getLeaveApplicationsV2ForHttpResponse
public com.google.api.client.http.HttpResponse getLeaveApplicationsV2ForHttpResponse(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order, Integer page) throws IOException Retrieves leave applications including leave requests200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantifModifiedSince- Only records created or modified since this timestamp will be returnedwhere- Filter by an any elementorder- Order by an any elementpage- e.g. page=1 – Up to 100 objects will be returned in a single API call- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getPayItems
public PayItems getPayItems(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order, Integer page) throws IOException Retrieves pay items200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantifModifiedSince- Only records created or modified since this timestamp will be returnedwhere- Filter by an any elementorder- Order by an any elementpage- e.g. page=1 – Up to 100 objects will be returned in a single API call- Returns:
- PayItems
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getPayItemsForHttpResponse
public com.google.api.client.http.HttpResponse getPayItemsForHttpResponse(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order, Integer page) throws IOException Retrieves pay items200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantifModifiedSince- Only records created or modified since this timestamp will be returnedwhere- Filter by an any elementorder- Order by an any elementpage- e.g. page=1 – Up to 100 objects will be returned in a single API call- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getPayRun
Retrieves a pay run by using a unique pay run id200 - search results matching criteria
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantpayRunID- PayRun id for single object- Returns:
- PayRuns
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getPayRunForHttpResponse
public com.google.api.client.http.HttpResponse getPayRunForHttpResponse(String accessToken, String xeroTenantId, UUID payRunID) throws IOException Retrieves a pay run by using a unique pay run id200 - search results matching criteria
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantpayRunID- PayRun id for single object- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getPayRuns
public PayRuns getPayRuns(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order, Integer page) throws IOException Retrieves pay runs200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantifModifiedSince- Only records created or modified since this timestamp will be returnedwhere- Filter by an any elementorder- Order by an any elementpage- e.g. page=1 – Up to 100 PayRuns will be returned in a single API call- Returns:
- PayRuns
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getPayRunsForHttpResponse
public com.google.api.client.http.HttpResponse getPayRunsForHttpResponse(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order, Integer page) throws IOException Retrieves pay runs200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantifModifiedSince- Only records created or modified since this timestamp will be returnedwhere- Filter by an any elementorder- Order by an any elementpage- e.g. page=1 – Up to 100 PayRuns will be returned in a single API call- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getPayrollCalendar
public PayrollCalendars getPayrollCalendar(String accessToken, String xeroTenantId, UUID payrollCalendarID) throws IOException Retrieves payroll calendar by using a unique payroll calendar ID200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantpayrollCalendarID- Payroll Calendar id for single object- Returns:
- PayrollCalendars
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getPayrollCalendarForHttpResponse
public com.google.api.client.http.HttpResponse getPayrollCalendarForHttpResponse(String accessToken, String xeroTenantId, UUID payrollCalendarID) throws IOException Retrieves payroll calendar by using a unique payroll calendar ID200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantpayrollCalendarID- Payroll Calendar id for single object- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getPayrollCalendars
public PayrollCalendars getPayrollCalendars(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order, Integer page) throws IOException Retrieves payroll calendars200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantifModifiedSince- Only records created or modified since this timestamp will be returnedwhere- Filter by an any elementorder- Order by an any elementpage- e.g. page=1 – Up to 100 objects will be returned in a single API call- Returns:
- PayrollCalendars
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getPayrollCalendarsForHttpResponse
public com.google.api.client.http.HttpResponse getPayrollCalendarsForHttpResponse(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order, Integer page) throws IOException Retrieves payroll calendars200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantifModifiedSince- Only records created or modified since this timestamp will be returnedwhere- Filter by an any elementorder- Order by an any elementpage- e.g. page=1 – Up to 100 objects will be returned in a single API call- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getPayslip
public PayslipObject getPayslip(String accessToken, String xeroTenantId, UUID payslipID) throws IOException Retrieves for a payslip by a unique payslip id200 - search results matching criteria
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantpayslipID- Payslip id for single object- Returns:
- PayslipObject
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getPayslipForHttpResponse
public com.google.api.client.http.HttpResponse getPayslipForHttpResponse(String accessToken, String xeroTenantId, UUID payslipID) throws IOException Retrieves for a payslip by a unique payslip id200 - search results matching criteria
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantpayslipID- Payslip id for single object- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getSettings
Retrieves payroll settings200 - payroll settings
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for Tenant- Returns:
- SettingsObject
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getSettingsForHttpResponse
public com.google.api.client.http.HttpResponse getSettingsForHttpResponse(String accessToken, String xeroTenantId) throws IOException Retrieves payroll settings200 - payroll settings
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for Tenant- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getSuperfund
public SuperFunds getSuperfund(String accessToken, String xeroTenantId, UUID superFundID) throws IOException Retrieves a superfund by using a unique superfund ID200 - search results matching criteria
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantsuperFundID- Superfund id for single object- Returns:
- SuperFunds
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getSuperfundForHttpResponse
public com.google.api.client.http.HttpResponse getSuperfundForHttpResponse(String accessToken, String xeroTenantId, UUID superFundID) throws IOException Retrieves a superfund by using a unique superfund ID200 - search results matching criteria
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantsuperFundID- Superfund id for single object- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getSuperfundProducts
public SuperFundProducts getSuperfundProducts(String accessToken, String xeroTenantId, String ABN, String USI) throws IOException Retrieves superfund products200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantABN- The ABN of the Regulated SuperFundUSI- The USI of the Regulated SuperFund- Returns:
- SuperFundProducts
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getSuperfundProductsForHttpResponse
public com.google.api.client.http.HttpResponse getSuperfundProductsForHttpResponse(String accessToken, String xeroTenantId, String ABN, String USI) throws IOException Retrieves superfund products200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantABN- The ABN of the Regulated SuperFundUSI- The USI of the Regulated SuperFund- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getSuperfunds
public SuperFunds getSuperfunds(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order, Integer page) throws IOException Retrieves superfunds200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantifModifiedSince- Only records created or modified since this timestamp will be returnedwhere- Filter by an any elementorder- Order by an any elementpage- e.g. page=1 – Up to 100 SuperFunds will be returned in a single API call- Returns:
- SuperFunds
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getSuperfundsForHttpResponse
public com.google.api.client.http.HttpResponse getSuperfundsForHttpResponse(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order, Integer page) throws IOException Retrieves superfunds200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantifModifiedSince- Only records created or modified since this timestamp will be returnedwhere- Filter by an any elementorder- Order by an any elementpage- e.g. page=1 – Up to 100 SuperFunds will be returned in a single API call- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getTimesheet
public TimesheetObject getTimesheet(String accessToken, String xeroTenantId, UUID timesheetID) throws IOException Retrieves a timesheet by using a unique timesheet id200 - search results matching criteria
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenanttimesheetID- Timesheet id for single object- Returns:
- TimesheetObject
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getTimesheetForHttpResponse
public com.google.api.client.http.HttpResponse getTimesheetForHttpResponse(String accessToken, String xeroTenantId, UUID timesheetID) throws IOException Retrieves a timesheet by using a unique timesheet id200 - search results matching criteria
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenanttimesheetID- Timesheet id for single object- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getTimesheets
public Timesheets getTimesheets(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order, Integer page) throws IOException Retrieves timesheets200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantifModifiedSince- Only records created or modified since this timestamp will be returnedwhere- Filter by an any elementorder- Order by an any elementpage- e.g. page=1 – Up to 100 timesheets will be returned in a single API call- Returns:
- Timesheets
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
getTimesheetsForHttpResponse
public com.google.api.client.http.HttpResponse getTimesheetsForHttpResponse(String accessToken, String xeroTenantId, org.threeten.bp.OffsetDateTime ifModifiedSince, String where, String order, Integer page) throws IOException Retrieves timesheets200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantifModifiedSince- Only records created or modified since this timestamp will be returnedwhere- Filter by an any elementorder- Order by an any elementpage- e.g. page=1 – Up to 100 timesheets will be returned in a single API call- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
rejectLeaveApplication
public LeaveApplications rejectLeaveApplication(String accessToken, String xeroTenantId, UUID leaveApplicationID, String idempotencyKey) throws IOException Reject a leave application by a unique leave application id200 - Application successfully rejected
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantleaveApplicationID- Leave Application id for single objectidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- LeaveApplications
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
rejectLeaveApplicationForHttpResponse
public com.google.api.client.http.HttpResponse rejectLeaveApplicationForHttpResponse(String accessToken, String xeroTenantId, UUID leaveApplicationID, String idempotencyKey) throws IOException Reject a leave application by a unique leave application id200 - Application successfully rejected
400 - validation error for a bad request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantleaveApplicationID- Leave Application id for single objectidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
updateEmployee
public Employees updateEmployee(String accessToken, String xeroTenantId, UUID employeeID, List<Employee> employee, String idempotencyKey) throws IOException Updates an employee's detail Update properties on a single employee200 - A successful request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantemployeeID- Employee id for single objectemployee- The employee parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- Employees
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
updateEmployeeForHttpResponse
public com.google.api.client.http.HttpResponse updateEmployeeForHttpResponse(String accessToken, String xeroTenantId, UUID employeeID, List<Employee> employee, String idempotencyKey) throws IOException Updates an employee's detail Update properties on a single employee200 - A successful request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantemployeeID- Employee id for single objectemployee- The employee parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
updateLeaveApplication
public LeaveApplications updateLeaveApplication(String accessToken, String xeroTenantId, UUID leaveApplicationID, List<LeaveApplication> leaveApplication, String idempotencyKey) throws IOException Updates a specific leave application200 - A successful request
400 - invalid input, object invalid - TODO
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantleaveApplicationID- Leave Application id for single objectleaveApplication- The leaveApplication parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- LeaveApplications
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
updateLeaveApplicationForHttpResponse
public com.google.api.client.http.HttpResponse updateLeaveApplicationForHttpResponse(String accessToken, String xeroTenantId, UUID leaveApplicationID, List<LeaveApplication> leaveApplication, String idempotencyKey) throws IOException Updates a specific leave application200 - A successful request
400 - invalid input, object invalid - TODO
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantleaveApplicationID- Leave Application id for single objectleaveApplication- The leaveApplication parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
updatePayRun
public PayRuns updatePayRun(String accessToken, String xeroTenantId, UUID payRunID, List<PayRun> payRun, String idempotencyKey) throws IOException Updates a pay run Update properties on a single PayRun200 - A successful request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantpayRunID- PayRun id for single objectpayRun- The payRun parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- PayRuns
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
updatePayRunForHttpResponse
public com.google.api.client.http.HttpResponse updatePayRunForHttpResponse(String accessToken, String xeroTenantId, UUID payRunID, List<PayRun> payRun, String idempotencyKey) throws IOException Updates a pay run Update properties on a single PayRun200 - A successful request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantpayRunID- PayRun id for single objectpayRun- The payRun parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
updatePayslip
public Payslips updatePayslip(String accessToken, String xeroTenantId, UUID payslipID, List<PayslipLines> payslipLines, String idempotencyKey) throws IOException Updates a payslip Update lines on a single payslips200 - A successful request - currently returns empty array for JSON
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantpayslipID- Payslip id for single objectpayslipLines- The payslipLines parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- Payslips
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
updatePayslipForHttpResponse
public com.google.api.client.http.HttpResponse updatePayslipForHttpResponse(String accessToken, String xeroTenantId, UUID payslipID, List<PayslipLines> payslipLines, String idempotencyKey) throws IOException Updates a payslip Update lines on a single payslips200 - A successful request - currently returns empty array for JSON
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantpayslipID- Payslip id for single objectpayslipLines- The payslipLines parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
updateSuperfund
public SuperFunds updateSuperfund(String accessToken, String xeroTenantId, UUID superFundID, List<SuperFund> superFund, String idempotencyKey) throws IOException Updates a superfund Update properties on a single Superfund200 - A successful request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantsuperFundID- Superfund id for single objectsuperFund- The superFund parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- SuperFunds
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
updateSuperfundForHttpResponse
public com.google.api.client.http.HttpResponse updateSuperfundForHttpResponse(String accessToken, String xeroTenantId, UUID superFundID, List<SuperFund> superFund, String idempotencyKey) throws IOException Updates a superfund Update properties on a single Superfund200 - A successful request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantsuperFundID- Superfund id for single objectsuperFund- The superFund parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
updateTimesheet
public Timesheets updateTimesheet(String accessToken, String xeroTenantId, UUID timesheetID, List<Timesheet> timesheet, String idempotencyKey) throws IOException Updates a timesheet Update properties on a single timesheet200 - A successful request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenanttimesheetID- Timesheet id for single objecttimesheet- The timesheet parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- Timesheets
- Throws:
IOException- if an error occurs while attempting to invoke the API *
-
updateTimesheetForHttpResponse
public com.google.api.client.http.HttpResponse updateTimesheetForHttpResponse(String accessToken, String xeroTenantId, UUID timesheetID, List<Timesheet> timesheet, String idempotencyKey) throws IOException Updates a timesheet Update properties on a single timesheet200 - A successful request
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenanttimesheetID- Timesheet id for single objecttimesheet- The timesheet parameteridempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
convertInputToByteArray
convert intput to byte array- Parameters:
is- InputStream the server status code returned- Returns:
- byteArrayInputStream a ByteArrayInputStream
- Throws:
IOException- for failed or interrupted I/O operations
-