Class PayrollAuApi
public class PayrollAuApi extends Object
-
Constructor Summary
Constructors Constructor Description PayrollAuApi()PayrollAuApi(ApiClient apiClient) -
Method Summary
Modifier and Type Method Description ByteArrayInputStreamconvertInputToByteArray(InputStream is)EmployeescreateEmployee(String accessToken, String xeroTenantId, List<Employee> employee)Use this method to create a payroll employeecom.google.api.client.http.HttpResponsecreateEmployeeForHttpResponse(String accessToken, String xeroTenantId, List<Employee> employee)LeaveApplicationscreateLeaveApplication(String accessToken, String xeroTenantId, List<LeaveApplication> leaveApplication)Use this method to create a Leave Applicationcom.google.api.client.http.HttpResponsecreateLeaveApplicationForHttpResponse(String accessToken, String xeroTenantId, List<LeaveApplication> leaveApplication)PayItemscreatePayItem(String accessToken, String xeroTenantId, PayItem payItem)Use this method to create a Pay Itemcom.google.api.client.http.HttpResponsecreatePayItemForHttpResponse(String accessToken, String xeroTenantId, PayItem payItem)PayrollCalendarscreatePayrollCalendar(String accessToken, String xeroTenantId, List<PayrollCalendar> payrollCalendar)Use this method to create a Payroll Calendarscom.google.api.client.http.HttpResponsecreatePayrollCalendarForHttpResponse(String accessToken, String xeroTenantId, List<PayrollCalendar> payrollCalendar)PayRunscreatePayRun(String accessToken, String xeroTenantId, List<PayRun> payRun)Use this method to create a PayRuncom.google.api.client.http.HttpResponsecreatePayRunForHttpResponse(String accessToken, String xeroTenantId, List<PayRun> payRun)SuperFundscreateSuperfund(String accessToken, String xeroTenantId, List<SuperFund> superFund)Use this method to create a super fundcom.google.api.client.http.HttpResponsecreateSuperfundForHttpResponse(String accessToken, String xeroTenantId, List<SuperFund> superFund)TimesheetscreateTimesheet(String accessToken, String xeroTenantId, List<Timesheet> timesheet)Use this method to create a timesheetcom.google.api.client.http.HttpResponsecreateTimesheetForHttpResponse(String accessToken, String xeroTenantId, List<Timesheet> timesheet)ApiClientgetApiClient()EmployeesgetEmployee(String accessToken, String xeroTenantId, UUID employeeId)searches for an employee by unique idcom.google.api.client.http.HttpResponsegetEmployeeForHttpResponse(String accessToken, String xeroTenantId, UUID employeeId)EmployeesgetEmployees(String accessToken, String xeroTenantId, String ifModifiedSince, String where, String order, Integer page)searches employeescom.google.api.client.http.HttpResponsegetEmployeesForHttpResponse(String accessToken, String xeroTenantId, String ifModifiedSince, String where, String order, Integer page)static PayrollAuApigetInstance(ApiClient apiClient)LeaveApplicationsgetLeaveApplication(String accessToken, String xeroTenantId, UUID leaveApplicationId)searches for an Leave Application by unique idcom.google.api.client.http.HttpResponsegetLeaveApplicationForHttpResponse(String accessToken, String xeroTenantId, UUID leaveApplicationId)LeaveApplicationsgetLeaveApplications(String accessToken, String xeroTenantId, String ifModifiedSince, String where, String order, Integer page)searches Leave Applicationscom.google.api.client.http.HttpResponsegetLeaveApplicationsForHttpResponse(String accessToken, String xeroTenantId, String ifModifiedSince, String where, String order, Integer page)PayItemsgetPayItems(String accessToken, String xeroTenantId, String ifModifiedSince, String where, String order, Integer page)searches Pay Itemscom.google.api.client.http.HttpResponsegetPayItemsForHttpResponse(String accessToken, String xeroTenantId, String ifModifiedSince, String where, String order, Integer page)PayrollCalendarsgetPayrollCalendar(String accessToken, String xeroTenantId, UUID payrollCalendarID)searches Payroll Calendarscom.google.api.client.http.HttpResponsegetPayrollCalendarForHttpResponse(String accessToken, String xeroTenantId, UUID payrollCalendarID)PayrollCalendarsgetPayrollCalendars(String accessToken, String xeroTenantId, String ifModifiedSince, String where, String order, Integer page)searches Payroll Calendarscom.google.api.client.http.HttpResponsegetPayrollCalendarsForHttpResponse(String accessToken, String xeroTenantId, String ifModifiedSince, String where, String order, Integer page)PayRunsgetPayRun(String accessToken, String xeroTenantId, UUID payRunID)searches for an payrun by unique idcom.google.api.client.http.HttpResponsegetPayRunForHttpResponse(String accessToken, String xeroTenantId, UUID payRunID)PayRunsgetPayRuns(String accessToken, String xeroTenantId, String ifModifiedSince, String where, String order, Integer page)searches PayRunscom.google.api.client.http.HttpResponsegetPayRunsForHttpResponse(String accessToken, String xeroTenantId, String ifModifiedSince, String where, String order, Integer page)PayslipObjectgetPayslip(String accessToken, String xeroTenantId, UUID payslipID)searches for an payslip by unique idcom.google.api.client.http.HttpResponsegetPayslipForHttpResponse(String accessToken, String xeroTenantId, UUID payslipID)SettingsObjectgetSettings(String accessToken, String xeroTenantId)retrieve settingscom.google.api.client.http.HttpResponsegetSettingsForHttpResponse(String accessToken, String xeroTenantId)SuperFundsgetSuperfund(String accessToken, String xeroTenantId, UUID superFundID)searches for an Superfund by unique idcom.google.api.client.http.HttpResponsegetSuperfundForHttpResponse(String accessToken, String xeroTenantId, UUID superFundID)SuperFundProductsgetSuperfundProducts(String accessToken, String xeroTenantId, String ABN, String USI)searches SuperfundProductscom.google.api.client.http.HttpResponsegetSuperfundProductsForHttpResponse(String accessToken, String xeroTenantId, String ABN, String USI)SuperFundsgetSuperfunds(String accessToken, String xeroTenantId, String ifModifiedSince, String where, String order, Integer page)searches SuperFundscom.google.api.client.http.HttpResponsegetSuperfundsForHttpResponse(String accessToken, String xeroTenantId, String ifModifiedSince, String where, String order, Integer page)TimesheetObjectgetTimesheet(String accessToken, String xeroTenantId, UUID timesheetID)searches for an timesheet by unique idcom.google.api.client.http.HttpResponsegetTimesheetForHttpResponse(String accessToken, String xeroTenantId, UUID timesheetID)TimesheetsgetTimesheets(String accessToken, String xeroTenantId, String ifModifiedSince, String where, String order, Integer page)searches timesheetscom.google.api.client.http.HttpResponsegetTimesheetsForHttpResponse(String accessToken, String xeroTenantId, String ifModifiedSince, String where, String order, Integer page)StringgetUserAgent()voidsetApiClient(ApiClient apiClient)voidsetUserAgent(String userAgent)EmployeesupdateEmployee(String accessToken, String xeroTenantId, UUID employeeId, List<Employee> employee)Update an Employee Update properties on a single employeecom.google.api.client.http.HttpResponseupdateEmployeeForHttpResponse(String accessToken, String xeroTenantId, UUID employeeId, List<Employee> employee)LeaveApplicationsupdateLeaveApplication(String accessToken, String xeroTenantId, UUID leaveApplicationId, List<LeaveApplication> leaveApplication)Use this method to update a Leave Applicationcom.google.api.client.http.HttpResponseupdateLeaveApplicationForHttpResponse(String accessToken, String xeroTenantId, UUID leaveApplicationId, List<LeaveApplication> leaveApplication)PayRunsupdatePayRun(String accessToken, String xeroTenantId, UUID payRunID, List<PayRun> payRun)Update a PayRun Update properties on a single PayRuncom.google.api.client.http.HttpResponseupdatePayRunForHttpResponse(String accessToken, String xeroTenantId, UUID payRunID, List<PayRun> payRun)PayslipsupdatePayslip(String accessToken, String xeroTenantId, UUID payslipID, List<PayslipLines> payslipLines)Update a Payslip Update lines on a single payslipscom.google.api.client.http.HttpResponseupdatePayslipForHttpResponse(String accessToken, String xeroTenantId, UUID payslipID, List<PayslipLines> payslipLines)SuperFundsupdateSuperfund(String accessToken, String xeroTenantId, UUID superFundID, List<SuperFund> superFund)Update a Superfund Update properties on a single Superfundcom.google.api.client.http.HttpResponseupdateSuperfundForHttpResponse(String accessToken, String xeroTenantId, UUID superFundID, List<SuperFund> superFund)TimesheetsupdateTimesheet(String accessToken, String xeroTenantId, UUID timesheetID, List<Timesheet> timesheet)Update a Timesheet Update properties on a single timesheetcom.google.api.client.http.HttpResponseupdateTimesheetForHttpResponse(String accessToken, String xeroTenantId, UUID timesheetID, List<Timesheet> timesheet)
-
Constructor Details
-
PayrollAuApi
public PayrollAuApi() -
PayrollAuApi
-
-
Method Details
-
getInstance
-
getApiClient
-
setApiClient
-
setUserAgent
-
getUserAgent
-
createEmployee
public Employees createEmployee(String accessToken, String xeroTenantId, List<Employee> employee) throws IOExceptionUse this method to create 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- Throws:
IOException
-
createLeaveApplication
public LeaveApplications createLeaveApplication(String accessToken, String xeroTenantId, List<LeaveApplication> leaveApplication) throws IOExceptionUse this method to create 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- Throws:
IOException
-
createPayItem
public PayItems createPayItem(String accessToken, String xeroTenantId, PayItem payItem) throws IOExceptionUse this method to create 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- Throws:
IOException
-
createPayRun
public PayRuns createPayRun(String accessToken, String xeroTenantId, List<PayRun> payRun) throws IOExceptionUse this method to create a PayRun200 - 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- Throws:
IOException
-
createPayrollCalendar
public PayrollCalendars createPayrollCalendar(String accessToken, String xeroTenantId, List<PayrollCalendar> payrollCalendar) throws IOExceptionUse this method to create a Payroll Calendars200 - 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- Throws:
IOException
-
createSuperfund
public SuperFunds createSuperfund(String accessToken, String xeroTenantId, List<SuperFund> superFund) throws IOExceptionUse this method to create a super fund200 - 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- Throws:
IOException
-
createTimesheet
public Timesheets createTimesheet(String accessToken, String xeroTenantId, List<Timesheet> timesheet) throws IOExceptionUse this method to create 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- Throws:
IOException
-
getEmployee
public Employees getEmployee(String accessToken, String xeroTenantId, UUID employeeId) throws IOExceptionsearches for an employee by unique 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- Throws:
IOException
-
getEmployees
public Employees getEmployees(String accessToken, String xeroTenantId, String ifModifiedSince, String where, String order, Integer page) throws IOExceptionsearches 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- Throws:
IOException
-
getLeaveApplication
public LeaveApplications getLeaveApplication(String accessToken, String xeroTenantId, UUID leaveApplicationId) throws IOExceptionsearches for an Leave Application by unique 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- Throws:
IOException
-
getLeaveApplications
public LeaveApplications getLeaveApplications(String accessToken, String xeroTenantId, String ifModifiedSince, String where, String order, Integer page) throws IOExceptionsearches 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- Throws:
IOException
-
getPayItems
public PayItems getPayItems(String accessToken, String xeroTenantId, String ifModifiedSince, String where, String order, Integer page) throws IOExceptionsearches 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- Throws:
IOException
-
getPayRun
public PayRuns getPayRun(String accessToken, String xeroTenantId, UUID payRunID) throws IOExceptionsearches for an payrun by unique 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- Throws:
IOException
-
getPayRuns
public PayRuns getPayRuns(String accessToken, String xeroTenantId, String ifModifiedSince, String where, String order, Integer page) throws IOExceptionsearches PayRuns200 - 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- Throws:
IOException
-
getPayrollCalendar
public PayrollCalendars getPayrollCalendar(String accessToken, String xeroTenantId, UUID payrollCalendarID) throws IOExceptionsearches Payroll Calendars200 - 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- Throws:
IOException
-
getPayrollCalendars
public PayrollCalendars getPayrollCalendars(String accessToken, String xeroTenantId, String ifModifiedSince, String where, String order, Integer page) throws IOExceptionsearches 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- Throws:
IOException
-
getPayslip
public PayslipObject getPayslip(String accessToken, String xeroTenantId, UUID payslipID) throws IOExceptionsearches for an payslip by unique 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- Throws:
IOException
-
getSettings
retrieve 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- Throws:
IOException
-
getSuperfund
public SuperFunds getSuperfund(String accessToken, String xeroTenantId, UUID superFundID) throws IOExceptionsearches for an Superfund by unique 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- Throws:
IOException
-
getSuperfundProducts
public SuperFundProducts getSuperfundProducts(String accessToken, String xeroTenantId, String ABN, String USI) throws IOExceptionsearches SuperfundProducts200 - 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- Throws:
IOException
-
getSuperfunds
public SuperFunds getSuperfunds(String accessToken, String xeroTenantId, String ifModifiedSince, String where, String order, Integer page) throws IOExceptionsearches 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- Throws:
IOException
-
getTimesheet
public TimesheetObject getTimesheet(String accessToken, String xeroTenantId, UUID timesheetID) throws IOExceptionsearches for an timesheet by unique 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- Throws:
IOException
-
getTimesheets
public Timesheets getTimesheets(String accessToken, String xeroTenantId, String ifModifiedSince, String where, String order, Integer page) throws IOExceptionsearches 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- Throws:
IOException
-
updateEmployee
public Employees updateEmployee(String accessToken, String xeroTenantId, UUID employeeId, List<Employee> employee) throws IOExceptionUpdate an Employee 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- Throws:
IOException
-
updateLeaveApplication
public LeaveApplications updateLeaveApplication(String accessToken, String xeroTenantId, UUID leaveApplicationId, List<LeaveApplication> leaveApplication) throws IOExceptionUse this method to update a 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- Throws:
IOException
-
updatePayRun
public PayRuns updatePayRun(String accessToken, String xeroTenantId, UUID payRunID, List<PayRun> payRun) throws IOExceptionUpdate a PayRun 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- Throws:
IOException
-
updatePayslip
public Payslips updatePayslip(String accessToken, String xeroTenantId, UUID payslipID, List<PayslipLines> payslipLines) throws IOExceptionUpdate 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- Throws:
IOException
-
updateSuperfund
public SuperFunds updateSuperfund(String accessToken, String xeroTenantId, UUID superFundID, List<SuperFund> superFund) throws IOExceptionUpdate 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- Throws:
IOException
-
updateTimesheet
public Timesheets updateTimesheet(String accessToken, String xeroTenantId, UUID timesheetID, List<Timesheet> timesheet) throws IOExceptionUpdate 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- Throws:
IOException
-
convertInputToByteArray
- Throws:
IOException
-