Class PayrollAuApi
- java.lang.Object
-
- com.xero.api.client.PayrollAuApi
-
public class PayrollAuApi extends Object
PayrollAuApi has methods for interacting with all endpoints in the API set
-
-
Constructor Summary
Constructors Constructor Description PayrollAuApi()PayrollAuApiPayrollAuApi(ApiClient apiClient)PayrollAuApi
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ByteArrayInputStreamconvertInputToByteArray(InputStream is)convert intput to byte arrayEmployeescreateEmployee(String accessToken, String xeroTenantId, List<Employee> employee)Creates a payroll employeecom.google.api.client.http.HttpResponsecreateEmployeeForHttpResponse(String accessToken, String xeroTenantId, List<Employee> employee)Creates a payroll employeeLeaveApplicationscreateLeaveApplication(String accessToken, String xeroTenantId, List<LeaveApplication> leaveApplication)Creates a leave applicationcom.google.api.client.http.HttpResponsecreateLeaveApplicationForHttpResponse(String accessToken, String xeroTenantId, List<LeaveApplication> leaveApplication)Creates a leave applicationPayItemscreatePayItem(String accessToken, String xeroTenantId, PayItem payItem)Creates a pay itemcom.google.api.client.http.HttpResponsecreatePayItemForHttpResponse(String accessToken, String xeroTenantId, PayItem payItem)Creates a pay itemPayrollCalendarscreatePayrollCalendar(String accessToken, String xeroTenantId, List<PayrollCalendar> payrollCalendar)Creates a Payroll Calendarcom.google.api.client.http.HttpResponsecreatePayrollCalendarForHttpResponse(String accessToken, String xeroTenantId, List<PayrollCalendar> payrollCalendar)Creates a Payroll CalendarPayRunscreatePayRun(String accessToken, String xeroTenantId, List<PayRun> payRun)Creates a pay runcom.google.api.client.http.HttpResponsecreatePayRunForHttpResponse(String accessToken, String xeroTenantId, List<PayRun> payRun)Creates a pay runSuperFundscreateSuperfund(String accessToken, String xeroTenantId, List<SuperFund> superFund)Creates a superfundcom.google.api.client.http.HttpResponsecreateSuperfundForHttpResponse(String accessToken, String xeroTenantId, List<SuperFund> superFund)Creates a superfundTimesheetscreateTimesheet(String accessToken, String xeroTenantId, List<Timesheet> timesheet)Creates a timesheetcom.google.api.client.http.HttpResponsecreateTimesheetForHttpResponse(String accessToken, String xeroTenantId, List<Timesheet> timesheet)Creates a timesheetApiClientgetApiClient()get ApiClientEmployeesgetEmployee(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 idEmployeesgetEmployees(String accessToken, String xeroTenantId, String ifModifiedSince, String where, String order, Integer page)Searches payroll employeescom.google.api.client.http.HttpResponsegetEmployeesForHttpResponse(String accessToken, String xeroTenantId, String ifModifiedSince, String where, String order, Integer page)Searches payroll employeesstatic PayrollAuApigetInstance(ApiClient apiClient)PayrollAuApi getInstanceLeaveApplicationsgetLeaveApplication(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 idLeaveApplicationsgetLeaveApplications(String accessToken, String xeroTenantId, String ifModifiedSince, String where, String order, Integer page)Retrieves leave applicationscom.google.api.client.http.HttpResponsegetLeaveApplicationsForHttpResponse(String accessToken, String xeroTenantId, String ifModifiedSince, String where, String order, Integer page)Retrieves leave applicationsPayItemsgetPayItems(String accessToken, String xeroTenantId, String ifModifiedSince, String where, String order, Integer page)Retrieves pay itemscom.google.api.client.http.HttpResponsegetPayItemsForHttpResponse(String accessToken, String xeroTenantId, String ifModifiedSince, String where, String order, Integer page)Retrieves pay itemsPayrollCalendarsgetPayrollCalendar(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 IDPayrollCalendarsgetPayrollCalendars(String accessToken, String xeroTenantId, String ifModifiedSince, String where, String order, Integer page)Retrieves payroll calendarscom.google.api.client.http.HttpResponsegetPayrollCalendarsForHttpResponse(String accessToken, String xeroTenantId, String ifModifiedSince, String where, String order, Integer page)Retrieves payroll calendarsPayRunsgetPayRun(String accessToken, String xeroTenantId, UUID payRunID)Retrieves 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 idPayRunsgetPayRuns(String accessToken, String xeroTenantId, String ifModifiedSince, String where, String order, Integer page)Retrieves pay runscom.google.api.client.http.HttpResponsegetPayRunsForHttpResponse(String accessToken, String xeroTenantId, String ifModifiedSince, String where, String order, Integer page)Retrieves pay runsPayslipObjectgetPayslip(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 idSettingsObjectgetSettings(String accessToken, String xeroTenantId)Retrieves payroll settingscom.google.api.client.http.HttpResponsegetSettingsForHttpResponse(String accessToken, String xeroTenantId)Retrieves payroll settingsSuperFundsgetSuperfund(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 IDSuperFundProductsgetSuperfundProducts(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 productsSuperFundsgetSuperfunds(String accessToken, String xeroTenantId, String ifModifiedSince, String where, String order, Integer page)Retrieves superfundscom.google.api.client.http.HttpResponsegetSuperfundsForHttpResponse(String accessToken, String xeroTenantId, String ifModifiedSince, String where, String order, Integer page)Retrieves superfundsTimesheetObjectgetTimesheet(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 idTimesheetsgetTimesheets(String accessToken, String xeroTenantId, String ifModifiedSince, String where, String order, Integer page)Retrieves timesheetscom.google.api.client.http.HttpResponsegetTimesheetsForHttpResponse(String accessToken, String xeroTenantId, String ifModifiedSince, String where, String order, Integer page)Retrieves timesheetsStringgetUserAgent()get user agentvoidsetApiClient(ApiClient apiClient)set ApiClientvoidsetUserAgent(String userAgent)set user agentEmployeesupdateEmployee(String accessToken, String xeroTenantId, UUID employeeID, List<Employee> employee)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)Updates an employee's detail Update properties on a single employeeLeaveApplicationsupdateLeaveApplication(String accessToken, String xeroTenantId, UUID leaveApplicationID, List<LeaveApplication> leaveApplication)Updates a specific leave applicationcom.google.api.client.http.HttpResponseupdateLeaveApplicationForHttpResponse(String accessToken, String xeroTenantId, UUID leaveApplicationID, List<LeaveApplication> leaveApplication)Updates a specific leave applicationPayRunsupdatePayRun(String accessToken, String xeroTenantId, UUID payRunID, List<PayRun> payRun)Updates a pay run Update properties on a single PayRuncom.google.api.client.http.HttpResponseupdatePayRunForHttpResponse(String accessToken, String xeroTenantId, UUID payRunID, List<PayRun> payRun)Updates a pay run Update properties on a single PayRunPayslipsupdatePayslip(String accessToken, String xeroTenantId, UUID payslipID, List<PayslipLines> payslipLines)Updates a payslip Update lines on a single payslipscom.google.api.client.http.HttpResponseupdatePayslipForHttpResponse(String accessToken, String xeroTenantId, UUID payslipID, List<PayslipLines> payslipLines)Updates a payslip Update lines on a single payslipsSuperFundsupdateSuperfund(String accessToken, String xeroTenantId, UUID superFundID, List<SuperFund> superFund)Updates a superfund Update properties on a single Superfundcom.google.api.client.http.HttpResponseupdateSuperfundForHttpResponse(String accessToken, String xeroTenantId, UUID superFundID, List<SuperFund> superFund)Updates a superfund Update properties on a single SuperfundTimesheetsupdateTimesheet(String accessToken, String xeroTenantId, UUID timesheetID, List<Timesheet> timesheet)Updates a timesheet Update properties on a single timesheetcom.google.api.client.http.HttpResponseupdateTimesheetForHttpResponse(String accessToken, String xeroTenantId, UUID timesheetID, List<Timesheet> timesheet)Updates a timesheet Update properties on a single timesheet
-
-
-
Constructor Detail
-
PayrollAuApi
public PayrollAuApi()
PayrollAuApi
-
PayrollAuApi
public PayrollAuApi(ApiClient apiClient)
PayrollAuApi- Parameters:
apiClient- ApiClient pass into the new instance of this class
-
-
Method Detail
-
getInstance
public static PayrollAuApi getInstance(ApiClient apiClient)
PayrollAuApi getInstance- Parameters:
apiClient- ApiClient pass into the new instance of this class- Returns:
- instance of this class
-
getApiClient
public ApiClient getApiClient()
get ApiClient- Returns:
- apiClient the current ApiClient
-
setApiClient
public void setApiClient(ApiClient apiClient)
set ApiClient- Parameters:
apiClient- ApiClient pass into the new instance of this class
-
setUserAgent
public void setUserAgent(String userAgent)
set user agent- Parameters:
userAgent- string to override the user agent
-
getUserAgent
public String getUserAgent()
get user agent- Returns:
- String of user agent
-
createEmployee
public Employees createEmployee(String accessToken, String xeroTenantId, List<Employee> employee) throws IOException
Creates a payroll employee200 - A successful request
400 - invalid input, object invalid - TODO
- Parameters:
xeroTenantId- Xero identifier for Tenantemployee- The employee parameteraccessToken- Authorization token for user set in header of each request- 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) throws IOException
Creates a payroll employee200 - A successful request
400 - invalid input, object invalid - TODO
- Parameters:
xeroTenantId- Xero identifier for Tenantemployee- The employee parameteraccessToken- Authorization token for user set in header of each request- 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) throws IOException
Creates a leave application200 - A successful request
400 - invalid input, object invalid - TODO
- Parameters:
xeroTenantId- Xero identifier for TenantleaveApplication- The leaveApplication parameteraccessToken- Authorization token for user set in header of each request- 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) throws IOException
Creates a leave application200 - A successful request
400 - invalid input, object invalid - TODO
- Parameters:
xeroTenantId- Xero identifier for TenantleaveApplication- The leaveApplication parameteraccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createPayItem
public PayItems createPayItem(String accessToken, String xeroTenantId, PayItem payItem) throws IOException
Creates a pay item200 - A successful request - currently returns empty array for JSON
400 - invalid input, object invalid - TODO
- Parameters:
xeroTenantId- Xero identifier for TenantpayItem- The payItem parameteraccessToken- Authorization token for user set in header of each request- 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) throws IOException
Creates a pay item200 - A successful request - currently returns empty array for JSON
400 - invalid input, object invalid - TODO
- Parameters:
xeroTenantId- Xero identifier for TenantpayItem- The payItem parameteraccessToken- Authorization token for user set in header of each request- 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) throws IOException
Creates a pay run200 - A successful request
400 - invalid input, object invalid - TODO
- Parameters:
xeroTenantId- Xero identifier for TenantpayRun- The payRun parameteraccessToken- Authorization token for user set in header of each request- 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) throws IOException
Creates a pay run200 - A successful request
400 - invalid input, object invalid - TODO
- Parameters:
xeroTenantId- Xero identifier for TenantpayRun- The payRun parameteraccessToken- Authorization token for user set in header of each request- 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) throws IOException
Creates a Payroll Calendar200 - A successful request
400 - invalid input, object invalid - TODO
- Parameters:
xeroTenantId- Xero identifier for TenantpayrollCalendar- The payrollCalendar parameteraccessToken- Authorization token for user set in header of each request- 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) throws IOException
Creates a Payroll Calendar200 - A successful request
400 - invalid input, object invalid - TODO
- Parameters:
xeroTenantId- Xero identifier for TenantpayrollCalendar- The payrollCalendar parameteraccessToken- Authorization token for user set in header of each request- 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) throws IOException
Creates a superfund200 - A successful request
400 - invalid input, object invalid - TODO
- Parameters:
xeroTenantId- Xero identifier for TenantsuperFund- The superFund parameteraccessToken- Authorization token for user set in header of each request- 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) throws IOException
Creates a superfund200 - A successful request
400 - invalid input, object invalid - TODO
- Parameters:
xeroTenantId- Xero identifier for TenantsuperFund- The superFund parameteraccessToken- Authorization token for user set in header of each request- 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) throws IOException
Creates a timesheet200 - A successful request
400 - invalid input, object invalid - TODO
- Parameters:
xeroTenantId- Xero identifier for Tenanttimesheet- The timesheet parameteraccessToken- Authorization token for user set in header of each request- 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) throws IOException
Creates a timesheet200 - A successful request
400 - invalid input, object invalid - TODO
- Parameters:
xeroTenantId- Xero identifier for Tenanttimesheet- The timesheet parameteraccessToken- Authorization token for user set in header of each request- 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:
xeroTenantId- Xero identifier for TenantemployeeID- Employee id for single objectaccessToken- Authorization token for user set in header of each request- 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:
xeroTenantId- Xero identifier for TenantemployeeID- Employee id for single objectaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getEmployees
public Employees getEmployees(String accessToken, String xeroTenantId, String ifModifiedSince, String where, String order, Integer page) throws IOException
Searches payroll employees200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
xeroTenantId- 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 callaccessToken- Authorization token for user set in header of each request- 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, String ifModifiedSince, String where, String order, Integer page) throws IOException
Searches payroll employees200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
xeroTenantId- 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 callaccessToken- Authorization token for user set in header of each request- 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:
xeroTenantId- Xero identifier for TenantleaveApplicationID- Leave Application id for single objectaccessToken- Authorization token for user set in header of each request- 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:
xeroTenantId- Xero identifier for TenantleaveApplicationID- Leave Application id for single objectaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getLeaveApplications
public LeaveApplications getLeaveApplications(String accessToken, String xeroTenantId, String ifModifiedSince, String where, String order, Integer page) throws IOException
Retrieves leave applications200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
xeroTenantId- 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 callaccessToken- Authorization token for user set in header of each request- 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, String ifModifiedSince, String where, String order, Integer page) throws IOException
Retrieves leave applications200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
xeroTenantId- 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 callaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getPayItems
public PayItems getPayItems(String accessToken, String xeroTenantId, String ifModifiedSince, String where, String order, Integer page) throws IOException
Retrieves pay items200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
xeroTenantId- 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 callaccessToken- Authorization token for user set in header of each request- 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, String ifModifiedSince, String where, String order, Integer page) throws IOException
Retrieves pay items200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
xeroTenantId- 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 callaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getPayRun
public PayRuns getPayRun(String accessToken, String xeroTenantId, UUID payRunID) throws IOException
Retrieves a pay run by using a unique pay run id200 - search results matching criteria
- Parameters:
xeroTenantId- Xero identifier for TenantpayRunID- PayRun id for single objectaccessToken- Authorization token for user set in header of each request- 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:
xeroTenantId- Xero identifier for TenantpayRunID- PayRun id for single objectaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getPayRuns
public PayRuns getPayRuns(String accessToken, String xeroTenantId, String ifModifiedSince, String where, String order, Integer page) throws IOException
Retrieves pay runs200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
xeroTenantId- 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 callaccessToken- Authorization token for user set in header of each request- 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, String ifModifiedSince, String where, String order, Integer page) throws IOException
Retrieves pay runs200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
xeroTenantId- 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 callaccessToken- Authorization token for user set in header of each request- 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:
xeroTenantId- Xero identifier for TenantpayrollCalendarID- Payroll Calendar id for single objectaccessToken- Authorization token for user set in header of each request- 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:
xeroTenantId- Xero identifier for TenantpayrollCalendarID- Payroll Calendar id for single objectaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getPayrollCalendars
public PayrollCalendars getPayrollCalendars(String accessToken, String xeroTenantId, String ifModifiedSince, String where, String order, Integer page) throws IOException
Retrieves payroll calendars200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
xeroTenantId- 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 callaccessToken- Authorization token for user set in header of each request- 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, String ifModifiedSince, String where, String order, Integer page) throws IOException
Retrieves payroll calendars200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
xeroTenantId- 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 callaccessToken- Authorization token for user set in header of each request- 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:
xeroTenantId- Xero identifier for TenantpayslipID- Payslip id for single objectaccessToken- Authorization token for user set in header of each request- 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:
xeroTenantId- Xero identifier for TenantpayslipID- Payslip id for single objectaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getSettings
public SettingsObject getSettings(String accessToken, String xeroTenantId) throws IOException
Retrieves payroll settings200 - payroll settings
- Parameters:
xeroTenantId- Xero identifier for TenantaccessToken- Authorization token for user set in header of each request- 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:
xeroTenantId- Xero identifier for TenantaccessToken- Authorization token for user set in header of each request- 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:
xeroTenantId- Xero identifier for TenantsuperFundID- Superfund id for single objectaccessToken- Authorization token for user set in header of each request- 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:
xeroTenantId- Xero identifier for TenantsuperFundID- Superfund id for single objectaccessToken- Authorization token for user set in header of each request- 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:
xeroTenantId- Xero identifier for TenantABN- The ABN of the Regulated SuperFundUSI- The USI of the Regulated SuperFundaccessToken- Authorization token for user set in header of each request- 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:
xeroTenantId- Xero identifier for TenantABN- The ABN of the Regulated SuperFundUSI- The USI of the Regulated SuperFundaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getSuperfunds
public SuperFunds getSuperfunds(String accessToken, String xeroTenantId, String ifModifiedSince, String where, String order, Integer page) throws IOException
Retrieves superfunds200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
xeroTenantId- 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 callaccessToken- Authorization token for user set in header of each request- 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, String ifModifiedSince, String where, String order, Integer page) throws IOException
Retrieves superfunds200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
xeroTenantId- 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 callaccessToken- Authorization token for user set in header of each request- 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:
xeroTenantId- Xero identifier for TenanttimesheetID- Timesheet id for single objectaccessToken- Authorization token for user set in header of each request- 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:
xeroTenantId- Xero identifier for TenanttimesheetID- Timesheet id for single objectaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getTimesheets
public Timesheets getTimesheets(String accessToken, String xeroTenantId, String ifModifiedSince, String where, String order, Integer page) throws IOException
Retrieves timesheets200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
xeroTenantId- 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 callaccessToken- Authorization token for user set in header of each request- 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, String ifModifiedSince, String where, String order, Integer page) throws IOException
Retrieves timesheets200 - search results matching criteria
400 - validation error for a bad request
- Parameters:
xeroTenantId- 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 callaccessToken- Authorization token for user set in header of each request- 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) throws IOException
Updates an employee's detail Update properties on a single employee200 - A successful request
- Parameters:
xeroTenantId- Xero identifier for TenantemployeeID- Employee id for single objectemployee- The employee parameteraccessToken- Authorization token for user set in header of each request- 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) throws IOException
Updates an employee's detail Update properties on a single employee200 - A successful request
- Parameters:
xeroTenantId- Xero identifier for TenantemployeeID- Employee id for single objectemployee- The employee parameteraccessToken- Authorization token for user set in header of each request- 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) throws IOException
Updates a specific leave application200 - A successful request
400 - invalid input, object invalid - TODO
- Parameters:
xeroTenantId- Xero identifier for TenantleaveApplicationID- Leave Application id for single objectleaveApplication- The leaveApplication parameteraccessToken- Authorization token for user set in header of each request- 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) throws IOException
Updates a specific leave application200 - A successful request
400 - invalid input, object invalid - TODO
- Parameters:
xeroTenantId- Xero identifier for TenantleaveApplicationID- Leave Application id for single objectleaveApplication- The leaveApplication parameteraccessToken- Authorization token for user set in header of each request- 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) throws IOException
Updates a pay run Update properties on a single PayRun200 - A successful request
- Parameters:
xeroTenantId- Xero identifier for TenantpayRunID- PayRun id for single objectpayRun- The payRun parameteraccessToken- Authorization token for user set in header of each request- 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) throws IOException
Updates a pay run Update properties on a single PayRun200 - A successful request
- Parameters:
xeroTenantId- Xero identifier for TenantpayRunID- PayRun id for single objectpayRun- The payRun parameteraccessToken- Authorization token for user set in header of each request- 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) throws IOException
Updates a payslip Update lines on a single payslips200 - A successful request - currently returns empty array for JSON
- Parameters:
xeroTenantId- Xero identifier for TenantpayslipID- Payslip id for single objectpayslipLines- The payslipLines parameteraccessToken- Authorization token for user set in header of each request- 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) throws IOException
Updates a payslip Update lines on a single payslips200 - A successful request - currently returns empty array for JSON
- Parameters:
xeroTenantId- Xero identifier for TenantpayslipID- Payslip id for single objectpayslipLines- The payslipLines parameteraccessToken- Authorization token for user set in header of each request- 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) throws IOException
Updates a superfund Update properties on a single Superfund200 - A successful request
- Parameters:
xeroTenantId- Xero identifier for TenantsuperFundID- Superfund id for single objectsuperFund- The superFund parameteraccessToken- Authorization token for user set in header of each request- 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) throws IOException
Updates a superfund Update properties on a single Superfund200 - A successful request
- Parameters:
xeroTenantId- Xero identifier for TenantsuperFundID- Superfund id for single objectsuperFund- The superFund parameteraccessToken- Authorization token for user set in header of each request- 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) throws IOException
Updates a timesheet Update properties on a single timesheet200 - A successful request
- Parameters:
xeroTenantId- Xero identifier for TenanttimesheetID- Timesheet id for single objecttimesheet- The timesheet parameteraccessToken- Authorization token for user set in header of each request- 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) throws IOException
Updates a timesheet Update properties on a single timesheet200 - A successful request
- Parameters:
xeroTenantId- Xero identifier for TenanttimesheetID- Timesheet id for single objecttimesheet- The timesheet parameteraccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
convertInputToByteArray
public ByteArrayInputStream convertInputToByteArray(InputStream is) throws IOException
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
-
-