public class PayrollUkApi extends Object
| Constructor and Description |
|---|
PayrollUkApi() |
PayrollUkApi(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
TimesheetObject |
approveTimesheet(String accessToken,
String xeroTenantId,
UUID timesheetID)
approve a timesheet
|
com.google.api.client.http.HttpResponse |
approveTimesheetForHttpResponse(String accessToken,
String xeroTenantId,
UUID timesheetID) |
ByteArrayInputStream |
convertInputToByteArray(InputStream is) |
BenefitObject |
createBenefit(String accessToken,
String xeroTenantId,
Benefit benefit)
create a new benefit
|
com.google.api.client.http.HttpResponse |
createBenefitForHttpResponse(String accessToken,
String xeroTenantId,
Benefit benefit) |
DeductionObject |
createDeduction(String accessToken,
String xeroTenantId,
Deduction deduction)
create a new deduction
|
com.google.api.client.http.HttpResponse |
createDeductionForHttpResponse(String accessToken,
String xeroTenantId,
Deduction deduction) |
EarningsRateObject |
createEarningsRate(String accessToken,
String xeroTenantId,
EarningsRate earningsRate)
create a new earnings rate
|
com.google.api.client.http.HttpResponse |
createEarningsRateForHttpResponse(String accessToken,
String xeroTenantId,
EarningsRate earningsRate) |
EmployeeObject |
createEmployee(String accessToken,
String xeroTenantId,
Employee employee)
creates employees
|
EarningsTemplateObject |
createEmployeeEarningsTemplate(String accessToken,
String xeroTenantId,
UUID employeeId,
EarningsTemplate earningsTemplate)
creates employee earnings template records
|
com.google.api.client.http.HttpResponse |
createEmployeeEarningsTemplateForHttpResponse(String accessToken,
String xeroTenantId,
UUID employeeId,
EarningsTemplate earningsTemplate) |
com.google.api.client.http.HttpResponse |
createEmployeeForHttpResponse(String accessToken,
String xeroTenantId,
Employee employee) |
EmployeeLeaveObject |
createEmployeeLeave(String accessToken,
String xeroTenantId,
UUID employeeId,
EmployeeLeave employeeLeave)
creates employee leave records
|
com.google.api.client.http.HttpResponse |
createEmployeeLeaveForHttpResponse(String accessToken,
String xeroTenantId,
UUID employeeId,
EmployeeLeave employeeLeave) |
EmployeeLeaveTypeObject |
createEmployeeLeaveType(String accessToken,
String xeroTenantId,
UUID employeeId,
EmployeeLeaveType employeeLeaveType)
creates employee leave type records
|
com.google.api.client.http.HttpResponse |
createEmployeeLeaveTypeForHttpResponse(String accessToken,
String xeroTenantId,
UUID employeeId,
EmployeeLeaveType employeeLeaveType) |
EmployeeOpeningBalancesObject |
createEmployeeOpeningBalances(String accessToken,
String xeroTenantId,
UUID employeeId,
EmployeeOpeningBalances employeeOpeningBalances)
creates employee opening balances
|
com.google.api.client.http.HttpResponse |
createEmployeeOpeningBalancesForHttpResponse(String accessToken,
String xeroTenantId,
UUID employeeId,
EmployeeOpeningBalances employeeOpeningBalances) |
PaymentMethodObject |
createEmployeePaymentMethod(String accessToken,
String xeroTenantId,
UUID employeeId,
PaymentMethod paymentMethod)
creates employee payment method
|
com.google.api.client.http.HttpResponse |
createEmployeePaymentMethodForHttpResponse(String accessToken,
String xeroTenantId,
UUID employeeId,
PaymentMethod paymentMethod) |
SalaryAndWageObject |
createEmployeeSalaryAndWage(String accessToken,
String xeroTenantId,
UUID employeeId,
SalaryAndWage salaryAndWage)
creates employee salary and wage record
|
com.google.api.client.http.HttpResponse |
createEmployeeSalaryAndWageForHttpResponse(String accessToken,
String xeroTenantId,
UUID employeeId,
SalaryAndWage salaryAndWage) |
EmployeeStatutorySickLeaveObject |
createEmployeeStatutorySickLeave(String accessToken,
String xeroTenantId,
EmployeeStatutorySickLeave employeeStatutorySickLeave)
creates employee statutory sick leave records
|
com.google.api.client.http.HttpResponse |
createEmployeeStatutorySickLeaveForHttpResponse(String accessToken,
String xeroTenantId,
EmployeeStatutorySickLeave employeeStatutorySickLeave) |
EmploymentObject |
createEmployment(String accessToken,
String xeroTenantId,
UUID employeeId,
Employment employment)
creates employment
|
com.google.api.client.http.HttpResponse |
createEmploymentForHttpResponse(String accessToken,
String xeroTenantId,
UUID employeeId,
Employment employment) |
LeaveTypeObject |
createLeaveType(String accessToken,
String xeroTenantId,
LeaveType leaveType)
create a new leave type
|
com.google.api.client.http.HttpResponse |
createLeaveTypeForHttpResponse(String accessToken,
String xeroTenantId,
LeaveType leaveType) |
EmployeePayTemplates |
createMultipleEmployeeEarningsTemplate(String accessToken,
String xeroTenantId,
UUID employeeId,
List<EarningsTemplate> earningsTemplate)
creates multiple employee earnings template records
|
com.google.api.client.http.HttpResponse |
createMultipleEmployeeEarningsTemplateForHttpResponse(String accessToken,
String xeroTenantId,
UUID employeeId,
List<EarningsTemplate> earningsTemplate) |
PayRunCalendarObject |
createPayRunCalendar(String accessToken,
String xeroTenantId,
PayRunCalendar payRunCalendar)
create a new payrun calendar
|
com.google.api.client.http.HttpResponse |
createPayRunCalendarForHttpResponse(String accessToken,
String xeroTenantId,
PayRunCalendar payRunCalendar) |
ReimbursementObject |
createReimbursement(String accessToken,
String xeroTenantId,
Reimbursement reimbursement)
create a new reimbursement
|
com.google.api.client.http.HttpResponse |
createReimbursementForHttpResponse(String accessToken,
String xeroTenantId,
Reimbursement reimbursement) |
TimesheetObject |
createTimesheet(String accessToken,
String xeroTenantId,
Timesheet timesheet)
create a new timesheet
|
com.google.api.client.http.HttpResponse |
createTimesheetForHttpResponse(String accessToken,
String xeroTenantId,
Timesheet timesheet) |
TimesheetLineObject |
createTimesheetLine(String accessToken,
String xeroTenantId,
UUID timesheetID,
TimesheetLine timesheetLine)
create a new timesheet line
|
com.google.api.client.http.HttpResponse |
createTimesheetLineForHttpResponse(String accessToken,
String xeroTenantId,
UUID timesheetID,
TimesheetLine timesheetLine) |
void |
deleteEmployeeEarningsTemplate(String accessToken,
String xeroTenantId,
UUID employeeId,
UUID payTemplateEarningID)
deletes an employee earnings template record
|
com.google.api.client.http.HttpResponse |
deleteEmployeeEarningsTemplateForHttpResponse(String accessToken,
String xeroTenantId,
UUID employeeId,
UUID payTemplateEarningID) |
EmployeeLeaveObject |
deleteEmployeeLeave(String accessToken,
String xeroTenantId,
UUID employeeId,
UUID leaveID)
deletes an employee leave record
|
com.google.api.client.http.HttpResponse |
deleteEmployeeLeaveForHttpResponse(String accessToken,
String xeroTenantId,
UUID employeeId,
UUID leaveID) |
void |
deleteEmployeeSalaryAndWage(String accessToken,
String xeroTenantId,
UUID employeeId,
UUID salaryAndWagesID)
deletes an employee salary and wages record
|
com.google.api.client.http.HttpResponse |
deleteEmployeeSalaryAndWageForHttpResponse(String accessToken,
String xeroTenantId,
UUID employeeId,
UUID salaryAndWagesID) |
TimesheetLine |
deleteTimesheet(String accessToken,
String xeroTenantId,
UUID timesheetID)
delete a timesheet
|
com.google.api.client.http.HttpResponse |
deleteTimesheetForHttpResponse(String accessToken,
String xeroTenantId,
UUID timesheetID) |
TimesheetLine |
deleteTimesheetLine(String accessToken,
String xeroTenantId,
UUID timesheetID,
UUID timesheetLineID)
delete a timesheet line
|
com.google.api.client.http.HttpResponse |
deleteTimesheetLineForHttpResponse(String accessToken,
String xeroTenantId,
UUID timesheetID,
UUID timesheetLineID) |
ApiClient |
getApiClient() |
BenefitObject |
getBenefit(String accessToken,
String xeroTenantId,
UUID id)
retrieve a single benefit by id
|
com.google.api.client.http.HttpResponse |
getBenefitForHttpResponse(String accessToken,
String xeroTenantId,
UUID id) |
Benefits |
getBenefits(String accessToken,
String xeroTenantId,
Integer page)
searches benefits
|
com.google.api.client.http.HttpResponse |
getBenefitsForHttpResponse(String accessToken,
String xeroTenantId,
Integer page) |
DeductionObject |
getDeduction(String accessToken,
String xeroTenantId,
UUID deductionId)
retrieve a single deduction by id
|
com.google.api.client.http.HttpResponse |
getDeductionForHttpResponse(String accessToken,
String xeroTenantId,
UUID deductionId) |
Deductions |
getDeductions(String accessToken,
String xeroTenantId,
Integer page)
searches deductions
|
com.google.api.client.http.HttpResponse |
getDeductionsForHttpResponse(String accessToken,
String xeroTenantId,
Integer page) |
EarningsOrderObject |
getEarningsOrder(String accessToken,
String xeroTenantId,
UUID id)
retrieve a single deduction by id
|
com.google.api.client.http.HttpResponse |
getEarningsOrderForHttpResponse(String accessToken,
String xeroTenantId,
UUID id) |
EarningsOrders |
getEarningsOrders(String accessToken,
String xeroTenantId,
Integer page)
searches earnings orders
|
com.google.api.client.http.HttpResponse |
getEarningsOrdersForHttpResponse(String accessToken,
String xeroTenantId,
Integer page) |
EarningsRateObject |
getEarningsRate(String accessToken,
String xeroTenantId,
UUID earningsRateID)
retrieve a single earnings rates by id
|
com.google.api.client.http.HttpResponse |
getEarningsRateForHttpResponse(String accessToken,
String xeroTenantId,
UUID earningsRateID) |
EarningsRates |
getEarningsRates(String accessToken,
String xeroTenantId,
Integer page)
searches earnings rates
|
com.google.api.client.http.HttpResponse |
getEarningsRatesForHttpResponse(String accessToken,
String xeroTenantId,
Integer page) |
EmployeeObject |
getEmployee(String accessToken,
String xeroTenantId,
UUID employeeId)
searches employees
|
com.google.api.client.http.HttpResponse |
getEmployeeForHttpResponse(String accessToken,
String xeroTenantId,
UUID employeeId) |
EmployeeLeaveObject |
getEmployeeLeave(String accessToken,
String xeroTenantId,
UUID employeeId,
UUID leaveID)
retrieve a single employee leave record
|
EmployeeLeaveBalances |
getEmployeeLeaveBalances(String accessToken,
String xeroTenantId,
UUID employeeId)
search employee leave balances
|
com.google.api.client.http.HttpResponse |
getEmployeeLeaveBalancesForHttpResponse(String accessToken,
String xeroTenantId,
UUID employeeId) |
com.google.api.client.http.HttpResponse |
getEmployeeLeaveForHttpResponse(String accessToken,
String xeroTenantId,
UUID employeeId,
UUID leaveID) |
LeavePeriods |
getEmployeeLeavePeriods(String accessToken,
String xeroTenantId,
UUID employeeId,
org.threeten.bp.LocalDate startDate,
org.threeten.bp.LocalDate endDate)
searches employee leave periods
|
com.google.api.client.http.HttpResponse |
getEmployeeLeavePeriodsForHttpResponse(String accessToken,
String xeroTenantId,
UUID employeeId,
org.threeten.bp.LocalDate startDate,
org.threeten.bp.LocalDate endDate) |
EmployeeLeaves |
getEmployeeLeaves(String accessToken,
String xeroTenantId,
UUID employeeId)
search employee leave records
|
com.google.api.client.http.HttpResponse |
getEmployeeLeavesForHttpResponse(String accessToken,
String xeroTenantId,
UUID employeeId) |
EmployeeLeaveTypes |
getEmployeeLeaveTypes(String accessToken,
String xeroTenantId,
UUID employeeId)
searches employee leave types
|
com.google.api.client.http.HttpResponse |
getEmployeeLeaveTypesForHttpResponse(String accessToken,
String xeroTenantId,
UUID employeeId) |
EmployeeOpeningBalancesObject |
getEmployeeOpeningBalances(String accessToken,
String xeroTenantId,
UUID employeeId)
retrieve employee openingbalances
|
com.google.api.client.http.HttpResponse |
getEmployeeOpeningBalancesForHttpResponse(String accessToken,
String xeroTenantId,
UUID employeeId) |
PaymentMethodObject |
getEmployeePaymentMethod(String accessToken,
String xeroTenantId,
UUID employeeId)
retrieves an employee's payment method
|
com.google.api.client.http.HttpResponse |
getEmployeePaymentMethodForHttpResponse(String accessToken,
String xeroTenantId,
UUID employeeId) |
EmployeePayTemplateObject |
getEmployeePayTemplate(String accessToken,
String xeroTenantId,
UUID employeeId)
searches employee pay templates
|
com.google.api.client.http.HttpResponse |
getEmployeePayTemplateForHttpResponse(String accessToken,
String xeroTenantId,
UUID employeeId) |
Employees |
getEmployees(String accessToken,
String xeroTenantId,
String firstName,
String lastName,
Integer page)
searches employees
|
SalaryAndWages |
getEmployeeSalaryAndWage(String accessToken,
String xeroTenantId,
UUID employeeId,
UUID salaryAndWagesID)
get employee salary and wages record by id
|
com.google.api.client.http.HttpResponse |
getEmployeeSalaryAndWageForHttpResponse(String accessToken,
String xeroTenantId,
UUID employeeId,
UUID salaryAndWagesID) |
SalaryAndWages |
getEmployeeSalaryAndWages(String accessToken,
String xeroTenantId,
UUID employeeId,
Integer page)
retrieves an employee's salary and wages
|
com.google.api.client.http.HttpResponse |
getEmployeeSalaryAndWagesForHttpResponse(String accessToken,
String xeroTenantId,
UUID employeeId,
Integer page) |
com.google.api.client.http.HttpResponse |
getEmployeesForHttpResponse(String accessToken,
String xeroTenantId,
String firstName,
String lastName,
Integer page) |
EmployeeStatutoryLeaveBalanceObject |
getEmployeeStatutoryLeaveBalances(String accessToken,
String xeroTenantId,
UUID employeeId,
String leaveType,
org.threeten.bp.LocalDate asOfDate)
search employee leave balances
|
com.google.api.client.http.HttpResponse |
getEmployeeStatutoryLeaveBalancesForHttpResponse(String accessToken,
String xeroTenantId,
UUID employeeId,
String leaveType,
org.threeten.bp.LocalDate asOfDate) |
EmployeeStatutorySickLeaveObject |
getEmployeeStatutorySickLeave(String accessToken,
String xeroTenantId,
UUID statutorySickLeaveID)
retrieve a statutory sick leave for an employee
|
com.google.api.client.http.HttpResponse |
getEmployeeStatutorySickLeaveForHttpResponse(String accessToken,
String xeroTenantId,
UUID statutorySickLeaveID) |
EmployeeTaxObject |
getEmployeeTax(String accessToken,
String xeroTenantId,
UUID employeeId)
searches tax records for an employee
|
com.google.api.client.http.HttpResponse |
getEmployeeTaxForHttpResponse(String accessToken,
String xeroTenantId,
UUID employeeId) |
static PayrollUkApi |
getInstance(ApiClient apiClient) |
LeaveTypeObject |
getLeaveType(String accessToken,
String xeroTenantId,
UUID leaveTypeID)
retrieve a single leave type by id
|
com.google.api.client.http.HttpResponse |
getLeaveTypeForHttpResponse(String accessToken,
String xeroTenantId,
UUID leaveTypeID) |
LeaveTypes |
getLeaveTypes(String accessToken,
String xeroTenantId,
Integer page,
Boolean activeOnly)
searches leave types
|
com.google.api.client.http.HttpResponse |
getLeaveTypesForHttpResponse(String accessToken,
String xeroTenantId,
Integer page,
Boolean activeOnly) |
PayRunObject |
getPayRun(String accessToken,
String xeroTenantId,
UUID payRunID)
retrieve a single pay run by id
|
PayRunCalendarObject |
getPayRunCalendar(String accessToken,
String xeroTenantId,
UUID payRunCalendarID)
retrieve a single payrun calendar by id
|
com.google.api.client.http.HttpResponse |
getPayRunCalendarForHttpResponse(String accessToken,
String xeroTenantId,
UUID payRunCalendarID) |
PayRunCalendars |
getPayRunCalendars(String accessToken,
String xeroTenantId,
Integer page)
searches payrun calendars
|
com.google.api.client.http.HttpResponse |
getPayRunCalendarsForHttpResponse(String accessToken,
String xeroTenantId,
Integer page) |
com.google.api.client.http.HttpResponse |
getPayRunForHttpResponse(String accessToken,
String xeroTenantId,
UUID payRunID) |
PayRuns |
getPayRuns(String accessToken,
String xeroTenantId,
Integer page,
String status)
searches pay runs
|
com.google.api.client.http.HttpResponse |
getPayRunsForHttpResponse(String accessToken,
String xeroTenantId,
Integer page,
String status) |
PayslipObject |
getPaySlip(String accessToken,
String xeroTenantId,
UUID payslipID)
retrieve a single payslip by id
|
com.google.api.client.http.HttpResponse |
getPaySlipForHttpResponse(String accessToken,
String xeroTenantId,
UUID payslipID) |
Payslips |
getPayslips(String accessToken,
String xeroTenantId,
UUID payRunID,
Integer page)
searches payslips
|
com.google.api.client.http.HttpResponse |
getPayslipsForHttpResponse(String accessToken,
String xeroTenantId,
UUID payRunID,
Integer page) |
ReimbursementObject |
getReimbursement(String accessToken,
String xeroTenantId,
UUID reimbursementID)
retrieve a single reimbursement by id
|
com.google.api.client.http.HttpResponse |
getReimbursementForHttpResponse(String accessToken,
String xeroTenantId,
UUID reimbursementID) |
Reimbursements |
getReimbursements(String accessToken,
String xeroTenantId,
Integer page)
searches reimbursements
|
com.google.api.client.http.HttpResponse |
getReimbursementsForHttpResponse(String accessToken,
String xeroTenantId,
Integer page) |
Settings |
getSettings(String accessToken,
String xeroTenantId)
searches settings
|
com.google.api.client.http.HttpResponse |
getSettingsForHttpResponse(String accessToken,
String xeroTenantId) |
EmployeeStatutoryLeavesSummaries |
getStatutoryLeaveSummary(String accessToken,
String xeroTenantId,
UUID employeeId,
Boolean activeOnly)
retrieve a summary of statutory leaves for an employee
|
com.google.api.client.http.HttpResponse |
getStatutoryLeaveSummaryForHttpResponse(String accessToken,
String xeroTenantId,
UUID employeeId,
Boolean activeOnly) |
TimesheetObject |
getTimesheet(String accessToken,
String xeroTenantId,
UUID timesheetID)
retrieve a single timesheet by id
|
com.google.api.client.http.HttpResponse |
getTimesheetForHttpResponse(String accessToken,
String xeroTenantId,
UUID timesheetID) |
Timesheets |
getTimesheets(String accessToken,
String xeroTenantId,
Integer page,
UUID employeeId,
UUID payrollCalendarId)
searches timesheets
|
com.google.api.client.http.HttpResponse |
getTimesheetsForHttpResponse(String accessToken,
String xeroTenantId,
Integer page,
UUID employeeId,
UUID payrollCalendarId) |
TrackingCategories |
getTrackingCategories(String accessToken,
String xeroTenantId)
searches tracking categories
|
com.google.api.client.http.HttpResponse |
getTrackingCategoriesForHttpResponse(String accessToken,
String xeroTenantId) |
String |
getUserAgent() |
TimesheetObject |
revertTimesheet(String accessToken,
String xeroTenantId,
UUID timesheetID)
revert a timesheet to draft
|
com.google.api.client.http.HttpResponse |
revertTimesheetForHttpResponse(String accessToken,
String xeroTenantId,
UUID timesheetID) |
void |
setApiClient(ApiClient apiClient) |
void |
setUserAgent(String userAgent) |
EmployeeObject |
updateEmployee(String accessToken,
String xeroTenantId,
UUID employeeId,
Employee employee)
updates employee
|
EarningsTemplateObject |
updateEmployeeEarningsTemplate(String accessToken,
String xeroTenantId,
UUID employeeId,
UUID payTemplateEarningID,
EarningsTemplate earningsTemplate)
updates employee earnings template records
|
com.google.api.client.http.HttpResponse |
updateEmployeeEarningsTemplateForHttpResponse(String accessToken,
String xeroTenantId,
UUID employeeId,
UUID payTemplateEarningID,
EarningsTemplate earningsTemplate) |
com.google.api.client.http.HttpResponse |
updateEmployeeForHttpResponse(String accessToken,
String xeroTenantId,
UUID employeeId,
Employee employee) |
EmployeeLeaveObject |
updateEmployeeLeave(String accessToken,
String xeroTenantId,
UUID employeeId,
UUID leaveID,
EmployeeLeave employeeLeave)
updates employee leave records
|
com.google.api.client.http.HttpResponse |
updateEmployeeLeaveForHttpResponse(String accessToken,
String xeroTenantId,
UUID employeeId,
UUID leaveID,
EmployeeLeave employeeLeave) |
EmployeeOpeningBalancesObject |
updateEmployeeOpeningBalances(String accessToken,
String xeroTenantId,
UUID employeeId,
EmployeeOpeningBalances employeeOpeningBalances)
updates employee opening balances
|
com.google.api.client.http.HttpResponse |
updateEmployeeOpeningBalancesForHttpResponse(String accessToken,
String xeroTenantId,
UUID employeeId,
EmployeeOpeningBalances employeeOpeningBalances) |
SalaryAndWageObject |
updateEmployeeSalaryAndWage(String accessToken,
String xeroTenantId,
UUID employeeId,
UUID salaryAndWagesID,
SalaryAndWage salaryAndWage)
updates employee salary and wages record
|
com.google.api.client.http.HttpResponse |
updateEmployeeSalaryAndWageForHttpResponse(String accessToken,
String xeroTenantId,
UUID employeeId,
UUID salaryAndWagesID,
SalaryAndWage salaryAndWage) |
PayRunObject |
updatePayRun(String accessToken,
String xeroTenantId,
UUID payRunID,
PayRun payRun)
update a pay run
|
com.google.api.client.http.HttpResponse |
updatePayRunForHttpResponse(String accessToken,
String xeroTenantId,
UUID payRunID,
PayRun payRun) |
TimesheetLineObject |
updateTimesheetLine(String accessToken,
String xeroTenantId,
UUID timesheetID,
UUID timesheetLineID,
TimesheetLine timesheetLine)
update a timesheet line
|
com.google.api.client.http.HttpResponse |
updateTimesheetLineForHttpResponse(String accessToken,
String xeroTenantId,
UUID timesheetID,
UUID timesheetLineID,
TimesheetLine timesheetLine) |
public PayrollUkApi()
public PayrollUkApi(ApiClient apiClient)
public static PayrollUkApi getInstance(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public void setUserAgent(String userAgent)
public String getUserAgent()
public TimesheetObject approveTimesheet(String accessToken, String xeroTenantId, UUID timesheetID) throws IOException
200 - search results matching criteria
400 - validation error for a bad request
xeroTenantId - Xero identifier for TenanttimesheetID - Identifier for the timesheetaccessToken - Authorization token for user set in header of each requestIOException - if an error occurs while attempting to invoke the APIpublic com.google.api.client.http.HttpResponse approveTimesheetForHttpResponse(String accessToken, String xeroTenantId, UUID timesheetID) throws IOException
IOExceptionpublic BenefitObject createBenefit(String accessToken, String xeroTenantId, Benefit benefit) throws IOException
200 - search results matching criteria
400 - validation error for a bad request
xeroTenantId - Xero identifier for Tenantbenefit - The benefit parameteraccessToken - Authorization token for user set in header of each requestIOException - if an error occurs while attempting to invoke the APIpublic com.google.api.client.http.HttpResponse createBenefitForHttpResponse(String accessToken, String xeroTenantId, Benefit benefit) throws IOException
IOExceptionpublic DeductionObject createDeduction(String accessToken, String xeroTenantId, Deduction deduction) throws IOException
200 - search results matching criteria
400 - validation error for a bad request
xeroTenantId - Xero identifier for Tenantdeduction - The deduction parameteraccessToken - Authorization token for user set in header of each requestIOException - if an error occurs while attempting to invoke the APIpublic com.google.api.client.http.HttpResponse createDeductionForHttpResponse(String accessToken, String xeroTenantId, Deduction deduction) throws IOException
IOExceptionpublic EarningsRateObject createEarningsRate(String accessToken, String xeroTenantId, EarningsRate earningsRate) throws IOException
200 - search results matching criteria
400 - validation error for a bad request
xeroTenantId - Xero identifier for TenantearningsRate - The earningsRate parameteraccessToken - Authorization token for user set in header of each requestIOException - if an error occurs while attempting to invoke the APIpublic com.google.api.client.http.HttpResponse createEarningsRateForHttpResponse(String accessToken, String xeroTenantId, EarningsRate earningsRate) throws IOException
IOExceptionpublic EmployeeObject createEmployee(String accessToken, String xeroTenantId, Employee employee) throws IOException
200 - search results matching criteria
400 - validation error for a bad request
xeroTenantId - Xero identifier for Tenantemployee - The employee parameteraccessToken - Authorization token for user set in header of each requestIOException - if an error occurs while attempting to invoke the APIpublic com.google.api.client.http.HttpResponse createEmployeeForHttpResponse(String accessToken, String xeroTenantId, Employee employee) throws IOException
IOExceptionpublic EarningsTemplateObject createEmployeeEarningsTemplate(String accessToken, String xeroTenantId, UUID employeeId, EarningsTemplate earningsTemplate) throws IOException
200 - search results matching criteria
400 - validation error for a bad request
xeroTenantId - Xero identifier for TenantemployeeId - Employee id for single objectearningsTemplate - The earningsTemplate parameteraccessToken - Authorization token for user set in header of each requestIOException - if an error occurs while attempting to invoke the APIpublic com.google.api.client.http.HttpResponse createEmployeeEarningsTemplateForHttpResponse(String accessToken, String xeroTenantId, UUID employeeId, EarningsTemplate earningsTemplate) throws IOException
IOExceptionpublic EmployeeLeaveObject createEmployeeLeave(String accessToken, String xeroTenantId, UUID employeeId, EmployeeLeave employeeLeave) throws IOException
200 - search results matching criteria
400 - validation error for a bad request
xeroTenantId - Xero identifier for TenantemployeeId - Employee id for single objectemployeeLeave - The employeeLeave parameteraccessToken - Authorization token for user set in header of each requestIOException - if an error occurs while attempting to invoke the APIpublic com.google.api.client.http.HttpResponse createEmployeeLeaveForHttpResponse(String accessToken, String xeroTenantId, UUID employeeId, EmployeeLeave employeeLeave) throws IOException
IOExceptionpublic EmployeeLeaveTypeObject createEmployeeLeaveType(String accessToken, String xeroTenantId, UUID employeeId, EmployeeLeaveType employeeLeaveType) throws IOException
200 - search results matching criteria
400 - validation error for a bad request
xeroTenantId - Xero identifier for TenantemployeeId - Employee id for single objectemployeeLeaveType - The employeeLeaveType parameteraccessToken - Authorization token for user set in header of each requestIOException - if an error occurs while attempting to invoke the APIpublic com.google.api.client.http.HttpResponse createEmployeeLeaveTypeForHttpResponse(String accessToken, String xeroTenantId, UUID employeeId, EmployeeLeaveType employeeLeaveType) throws IOException
IOExceptionpublic EmployeeOpeningBalancesObject createEmployeeOpeningBalances(String accessToken, String xeroTenantId, UUID employeeId, EmployeeOpeningBalances employeeOpeningBalances) throws IOException
200 - search results matching criteria
400 - validation error for a bad request
xeroTenantId - Xero identifier for TenantemployeeId - Employee id for single objectemployeeOpeningBalances - The employeeOpeningBalances parameteraccessToken - Authorization token for user set in header of each requestIOException - if an error occurs while attempting to invoke the APIpublic com.google.api.client.http.HttpResponse createEmployeeOpeningBalancesForHttpResponse(String accessToken, String xeroTenantId, UUID employeeId, EmployeeOpeningBalances employeeOpeningBalances) throws IOException
IOExceptionpublic PaymentMethodObject createEmployeePaymentMethod(String accessToken, String xeroTenantId, UUID employeeId, PaymentMethod paymentMethod) throws IOException
200 - search results matching criteria
400 - validation error for a bad request
xeroTenantId - Xero identifier for TenantemployeeId - Employee id for single objectpaymentMethod - The paymentMethod parameteraccessToken - Authorization token for user set in header of each requestIOException - if an error occurs while attempting to invoke the APIpublic com.google.api.client.http.HttpResponse createEmployeePaymentMethodForHttpResponse(String accessToken, String xeroTenantId, UUID employeeId, PaymentMethod paymentMethod) throws IOException
IOExceptionpublic SalaryAndWageObject createEmployeeSalaryAndWage(String accessToken, String xeroTenantId, UUID employeeId, SalaryAndWage salaryAndWage) throws IOException
200 - search results matching criteria
400 - validation error for a bad request
xeroTenantId - Xero identifier for TenantemployeeId - Employee id for single objectsalaryAndWage - The salaryAndWage parameteraccessToken - Authorization token for user set in header of each requestIOException - if an error occurs while attempting to invoke the APIpublic com.google.api.client.http.HttpResponse createEmployeeSalaryAndWageForHttpResponse(String accessToken, String xeroTenantId, UUID employeeId, SalaryAndWage salaryAndWage) throws IOException
IOExceptionpublic EmployeeStatutorySickLeaveObject createEmployeeStatutorySickLeave(String accessToken, String xeroTenantId, EmployeeStatutorySickLeave employeeStatutorySickLeave) throws IOException
200 - search results matching criteria
400 - validation error for a bad request
xeroTenantId - Xero identifier for TenantemployeeStatutorySickLeave - The employeeStatutorySickLeave parameteraccessToken - Authorization token for user set in header of each requestIOException - if an error occurs while attempting to invoke the APIpublic com.google.api.client.http.HttpResponse createEmployeeStatutorySickLeaveForHttpResponse(String accessToken, String xeroTenantId, EmployeeStatutorySickLeave employeeStatutorySickLeave) throws IOException
IOExceptionpublic EmploymentObject createEmployment(String accessToken, String xeroTenantId, UUID employeeId, Employment employment) throws IOException
200 - search results matching criteria
400 - validation error for a bad request
xeroTenantId - Xero identifier for TenantemployeeId - Employee id for single objectemployment - The employment parameteraccessToken - Authorization token for user set in header of each requestIOException - if an error occurs while attempting to invoke the APIpublic com.google.api.client.http.HttpResponse createEmploymentForHttpResponse(String accessToken, String xeroTenantId, UUID employeeId, Employment employment) throws IOException
IOExceptionpublic LeaveTypeObject createLeaveType(String accessToken, String xeroTenantId, LeaveType leaveType) throws IOException
200 - search results matching criteria
400 - validation error for a bad request
xeroTenantId - Xero identifier for TenantleaveType - The leaveType parameteraccessToken - Authorization token for user set in header of each requestIOException - if an error occurs while attempting to invoke the APIpublic com.google.api.client.http.HttpResponse createLeaveTypeForHttpResponse(String accessToken, String xeroTenantId, LeaveType leaveType) throws IOException
IOExceptionpublic EmployeePayTemplates createMultipleEmployeeEarningsTemplate(String accessToken, String xeroTenantId, UUID employeeId, List<EarningsTemplate> earningsTemplate) throws IOException
200 - search results matching criteria
400 - validation error for a bad request
xeroTenantId - Xero identifier for TenantemployeeId - Employee id for single objectearningsTemplate - The earningsTemplate parameteraccessToken - Authorization token for user set in header of each requestIOException - if an error occurs while attempting to invoke the APIpublic com.google.api.client.http.HttpResponse createMultipleEmployeeEarningsTemplateForHttpResponse(String accessToken, String xeroTenantId, UUID employeeId, List<EarningsTemplate> earningsTemplate) throws IOException
IOExceptionpublic PayRunCalendarObject createPayRunCalendar(String accessToken, String xeroTenantId, PayRunCalendar payRunCalendar) throws IOException
200 - search results matching criteria
400 - validation error for a bad request
xeroTenantId - Xero identifier for TenantpayRunCalendar - The payRunCalendar parameteraccessToken - Authorization token for user set in header of each requestIOException - if an error occurs while attempting to invoke the APIpublic com.google.api.client.http.HttpResponse createPayRunCalendarForHttpResponse(String accessToken, String xeroTenantId, PayRunCalendar payRunCalendar) throws IOException
IOExceptionpublic ReimbursementObject createReimbursement(String accessToken, String xeroTenantId, Reimbursement reimbursement) throws IOException
200 - search results matching criteria
400 - validation error for a bad request
xeroTenantId - Xero identifier for Tenantreimbursement - The reimbursement parameteraccessToken - Authorization token for user set in header of each requestIOException - if an error occurs while attempting to invoke the APIpublic com.google.api.client.http.HttpResponse createReimbursementForHttpResponse(String accessToken, String xeroTenantId, Reimbursement reimbursement) throws IOException
IOExceptionpublic TimesheetObject createTimesheet(String accessToken, String xeroTenantId, Timesheet timesheet) throws IOException
200 - search results matching criteria
400 - validation error for a bad request
xeroTenantId - Xero identifier for Tenanttimesheet - The timesheet parameteraccessToken - Authorization token for user set in header of each requestIOException - if an error occurs while attempting to invoke the APIpublic com.google.api.client.http.HttpResponse createTimesheetForHttpResponse(String accessToken, String xeroTenantId, Timesheet timesheet) throws IOException
IOExceptionpublic TimesheetLineObject createTimesheetLine(String accessToken, String xeroTenantId, UUID timesheetID, TimesheetLine timesheetLine) throws IOException
200 - search results matching criteria
400 - validation error for a bad request
xeroTenantId - Xero identifier for TenanttimesheetID - Identifier for the timesheettimesheetLine - The timesheetLine parameteraccessToken - Authorization token for user set in header of each requestIOException - if an error occurs while attempting to invoke the APIpublic com.google.api.client.http.HttpResponse createTimesheetLineForHttpResponse(String accessToken, String xeroTenantId, UUID timesheetID, TimesheetLine timesheetLine) throws IOException
IOExceptionpublic void deleteEmployeeEarningsTemplate(String accessToken, String xeroTenantId, UUID employeeId, UUID payTemplateEarningID) throws IOException
200 - deletion successful
xeroTenantId - Xero identifier for TenantemployeeId - Employee id for single objectpayTemplateEarningID - Id for single pay template earnings objectaccessToken - Authorization token for user set in header of each requestIOException - if an error occurs while attempting to invoke the APIpublic com.google.api.client.http.HttpResponse deleteEmployeeEarningsTemplateForHttpResponse(String accessToken, String xeroTenantId, UUID employeeId, UUID payTemplateEarningID) throws IOException
IOExceptionpublic EmployeeLeaveObject deleteEmployeeLeave(String accessToken, String xeroTenantId, UUID employeeId, UUID leaveID) throws IOException
200 - successful response
xeroTenantId - Xero identifier for TenantemployeeId - Employee id for single objectleaveID - Leave id for single objectaccessToken - Authorization token for user set in header of each requestIOException - if an error occurs while attempting to invoke the APIpublic com.google.api.client.http.HttpResponse deleteEmployeeLeaveForHttpResponse(String accessToken, String xeroTenantId, UUID employeeId, UUID leaveID) throws IOException
IOExceptionpublic void deleteEmployeeSalaryAndWage(String accessToken, String xeroTenantId, UUID employeeId, UUID salaryAndWagesID) throws IOException
200 - deletion successful
xeroTenantId - Xero identifier for TenantemployeeId - Employee id for single objectsalaryAndWagesID - Id for single salary and wages objectaccessToken - Authorization token for user set in header of each requestIOException - if an error occurs while attempting to invoke the APIpublic com.google.api.client.http.HttpResponse deleteEmployeeSalaryAndWageForHttpResponse(String accessToken, String xeroTenantId, UUID employeeId, UUID salaryAndWagesID) throws IOException
IOExceptionpublic TimesheetLine deleteTimesheet(String accessToken, String xeroTenantId, UUID timesheetID) throws IOException
200 - search results matching criteria
400 - validation error for a bad request
xeroTenantId - Xero identifier for TenanttimesheetID - Identifier for the timesheetaccessToken - Authorization token for user set in header of each requestIOException - if an error occurs while attempting to invoke the APIpublic com.google.api.client.http.HttpResponse deleteTimesheetForHttpResponse(String accessToken, String xeroTenantId, UUID timesheetID) throws IOException
IOExceptionpublic TimesheetLine deleteTimesheetLine(String accessToken, String xeroTenantId, UUID timesheetID, UUID timesheetLineID) throws IOException
200 - search results matching criteria
400 - validation error for a bad request
xeroTenantId - Xero identifier for TenanttimesheetID - Identifier for the timesheettimesheetLineID - Identifier for the timesheet lineaccessToken - Authorization token for user set in header of each requestIOException - if an error occurs while attempting to invoke the APIpublic com.google.api.client.http.HttpResponse deleteTimesheetLineForHttpResponse(String accessToken, String xeroTenantId, UUID timesheetID, UUID timesheetLineID) throws IOException
IOExceptionpublic BenefitObject getBenefit(String accessToken, String xeroTenantId, UUID id) throws IOException
200 - search results matching criteria
xeroTenantId - Xero identifier for Tenantid - Identifier for the benefitaccessToken - Authorization token for user set in header of each requestIOException - if an error occurs while attempting to invoke the APIpublic com.google.api.client.http.HttpResponse getBenefitForHttpResponse(String accessToken, String xeroTenantId, UUID id) throws IOException
IOExceptionpublic Benefits getBenefits(String accessToken, String xeroTenantId, Integer page) throws IOException
200 - search results matching criteria
xeroTenantId - Xero identifier for Tenantpage - Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.accessToken - Authorization token for user set in header of each requestIOException - if an error occurs while attempting to invoke the APIpublic com.google.api.client.http.HttpResponse getBenefitsForHttpResponse(String accessToken, String xeroTenantId, Integer page) throws IOException
IOExceptionpublic DeductionObject getDeduction(String accessToken, String xeroTenantId, UUID deductionId) throws IOException
200 - search results matching criteria
xeroTenantId - Xero identifier for TenantdeductionId - Identifier for the deductionaccessToken - Authorization token for user set in header of each requestIOException - if an error occurs while attempting to invoke the APIpublic com.google.api.client.http.HttpResponse getDeductionForHttpResponse(String accessToken, String xeroTenantId, UUID deductionId) throws IOException
IOExceptionpublic Deductions getDeductions(String accessToken, String xeroTenantId, Integer page) throws IOException
200 - search results matching criteria
xeroTenantId - Xero identifier for Tenantpage - Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.accessToken - Authorization token for user set in header of each requestIOException - if an error occurs while attempting to invoke the APIpublic com.google.api.client.http.HttpResponse getDeductionsForHttpResponse(String accessToken, String xeroTenantId, Integer page) throws IOException
IOExceptionpublic EarningsOrderObject getEarningsOrder(String accessToken, String xeroTenantId, UUID id) throws IOException
200 - search results matching criteria
xeroTenantId - Xero identifier for Tenantid - Identifier for the deductionaccessToken - Authorization token for user set in header of each requestIOException - if an error occurs while attempting to invoke the APIpublic com.google.api.client.http.HttpResponse getEarningsOrderForHttpResponse(String accessToken, String xeroTenantId, UUID id) throws IOException
IOExceptionpublic EarningsOrders getEarningsOrders(String accessToken, String xeroTenantId, Integer page) throws IOException
200 - search results matching criteria
xeroTenantId - Xero identifier for Tenantpage - Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.accessToken - Authorization token for user set in header of each requestIOException - if an error occurs while attempting to invoke the APIpublic com.google.api.client.http.HttpResponse getEarningsOrdersForHttpResponse(String accessToken, String xeroTenantId, Integer page) throws IOException
IOExceptionpublic EarningsRateObject getEarningsRate(String accessToken, String xeroTenantId, UUID earningsRateID) throws IOException
200 - search results matching criteria
xeroTenantId - Xero identifier for TenantearningsRateID - Identifier for the earnings rateaccessToken - Authorization token for user set in header of each requestIOException - if an error occurs while attempting to invoke the APIpublic com.google.api.client.http.HttpResponse getEarningsRateForHttpResponse(String accessToken, String xeroTenantId, UUID earningsRateID) throws IOException
IOExceptionpublic EarningsRates getEarningsRates(String accessToken, String xeroTenantId, Integer page) throws IOException
200 - search results matching criteria
xeroTenantId - Xero identifier for Tenantpage - Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.accessToken - Authorization token for user set in header of each requestIOException - if an error occurs while attempting to invoke the APIpublic com.google.api.client.http.HttpResponse getEarningsRatesForHttpResponse(String accessToken, String xeroTenantId, Integer page) throws IOException
IOExceptionpublic EmployeeObject getEmployee(String accessToken, String xeroTenantId, UUID employeeId) throws IOException
200 - search results matching criteria
xeroTenantId - Xero identifier for TenantemployeeId - Employee id for single objectaccessToken - Authorization token for user set in header of each requestIOException - if an error occurs while attempting to invoke the APIpublic com.google.api.client.http.HttpResponse getEmployeeForHttpResponse(String accessToken, String xeroTenantId, UUID employeeId) throws IOException
IOExceptionpublic EmployeeLeaveObject getEmployeeLeave(String accessToken, String xeroTenantId, UUID employeeId, UUID leaveID) throws IOException
200 - search results matching criteria
xeroTenantId - Xero identifier for TenantemployeeId - Employee id for single objectleaveID - Leave id for single objectaccessToken - Authorization token for user set in header of each requestIOException - if an error occurs while attempting to invoke the APIpublic com.google.api.client.http.HttpResponse getEmployeeLeaveForHttpResponse(String accessToken, String xeroTenantId, UUID employeeId, UUID leaveID) throws IOException
IOExceptionpublic EmployeeLeaveBalances getEmployeeLeaveBalances(String accessToken, String xeroTenantId, UUID employeeId) throws IOException
200 - search results matching criteria
xeroTenantId - Xero identifier for TenantemployeeId - Employee id for single objectaccessToken - Authorization token for user set in header of each requestIOException - if an error occurs while attempting to invoke the APIpublic com.google.api.client.http.HttpResponse getEmployeeLeaveBalancesForHttpResponse(String accessToken, String xeroTenantId, UUID employeeId) throws IOException
IOExceptionpublic LeavePeriods getEmployeeLeavePeriods(String accessToken, String xeroTenantId, UUID employeeId, org.threeten.bp.LocalDate startDate, org.threeten.bp.LocalDate endDate) throws IOException
200 - search results matching criteria
400 - validation error for a bad request
xeroTenantId - Xero identifier for TenantemployeeId - Employee id for single objectstartDate - Filter by start dateendDate - Filter by end dateaccessToken - Authorization token for user set in header of each requestIOException - if an error occurs while attempting to invoke the APIpublic com.google.api.client.http.HttpResponse getEmployeeLeavePeriodsForHttpResponse(String accessToken, String xeroTenantId, UUID employeeId, org.threeten.bp.LocalDate startDate, org.threeten.bp.LocalDate endDate) throws IOException
IOExceptionpublic EmployeeLeaveTypes getEmployeeLeaveTypes(String accessToken, String xeroTenantId, UUID employeeId) throws IOException
200 - search results matching criteria
400 - validation error for a bad request
xeroTenantId - Xero identifier for TenantemployeeId - Employee id for single objectaccessToken - Authorization token for user set in header of each requestIOException - if an error occurs while attempting to invoke the APIpublic com.google.api.client.http.HttpResponse getEmployeeLeaveTypesForHttpResponse(String accessToken, String xeroTenantId, UUID employeeId) throws IOException
IOExceptionpublic EmployeeLeaves getEmployeeLeaves(String accessToken, String xeroTenantId, UUID employeeId) throws IOException
200 - search results matching criteria
xeroTenantId - Xero identifier for TenantemployeeId - Employee id for single objectaccessToken - Authorization token for user set in header of each requestIOException - if an error occurs while attempting to invoke the APIpublic com.google.api.client.http.HttpResponse getEmployeeLeavesForHttpResponse(String accessToken, String xeroTenantId, UUID employeeId) throws IOException
IOExceptionpublic EmployeeOpeningBalancesObject getEmployeeOpeningBalances(String accessToken, String xeroTenantId, UUID employeeId) throws IOException
200 - search results matching criteria
xeroTenantId - Xero identifier for TenantemployeeId - Employee id for single objectaccessToken - Authorization token for user set in header of each requestIOException - if an error occurs while attempting to invoke the APIpublic com.google.api.client.http.HttpResponse getEmployeeOpeningBalancesForHttpResponse(String accessToken, String xeroTenantId, UUID employeeId) throws IOException
IOExceptionpublic EmployeePayTemplateObject getEmployeePayTemplate(String accessToken, String xeroTenantId, UUID employeeId) throws IOException
200 - search results matching criteria
400 - validation error for a bad request
xeroTenantId - Xero identifier for TenantemployeeId - Employee id for single objectaccessToken - Authorization token for user set in header of each requestIOException - if an error occurs while attempting to invoke the APIpublic com.google.api.client.http.HttpResponse getEmployeePayTemplateForHttpResponse(String accessToken, String xeroTenantId, UUID employeeId) throws IOException
IOExceptionpublic PaymentMethodObject getEmployeePaymentMethod(String accessToken, String xeroTenantId, UUID employeeId) throws IOException
200 - search results matching criteria
400 - validation error for a bad request
xeroTenantId - Xero identifier for TenantemployeeId - Employee id for single objectaccessToken - Authorization token for user set in header of each requestIOException - if an error occurs while attempting to invoke the APIpublic com.google.api.client.http.HttpResponse getEmployeePaymentMethodForHttpResponse(String accessToken, String xeroTenantId, UUID employeeId) throws IOException
IOExceptionpublic SalaryAndWages getEmployeeSalaryAndWage(String accessToken, String xeroTenantId, UUID employeeId, UUID salaryAndWagesID) throws IOException
200 - search results matching criteria
xeroTenantId - Xero identifier for TenantemployeeId - Employee id for single objectsalaryAndWagesID - Id for single pay template earnings objectaccessToken - Authorization token for user set in header of each requestIOException - if an error occurs while attempting to invoke the APIpublic com.google.api.client.http.HttpResponse getEmployeeSalaryAndWageForHttpResponse(String accessToken, String xeroTenantId, UUID employeeId, UUID salaryAndWagesID) throws IOException
IOExceptionpublic SalaryAndWages getEmployeeSalaryAndWages(String accessToken, String xeroTenantId, UUID employeeId, Integer page) throws IOException
200 - search results matching criteria
400 - validation error for a bad request
xeroTenantId - Xero identifier for TenantemployeeId - Employee id for single objectpage - Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.accessToken - Authorization token for user set in header of each requestIOException - if an error occurs while attempting to invoke the APIpublic com.google.api.client.http.HttpResponse getEmployeeSalaryAndWagesForHttpResponse(String accessToken, String xeroTenantId, UUID employeeId, Integer page) throws IOException
IOExceptionpublic EmployeeStatutoryLeaveBalanceObject getEmployeeStatutoryLeaveBalances(String accessToken, String xeroTenantId, UUID employeeId, String leaveType, org.threeten.bp.LocalDate asOfDate) throws IOException
200 - search results matching criteria
xeroTenantId - Xero identifier for TenantemployeeId - Employee id for single objectleaveType - Filter by the type of statutory leaveasOfDate - The date from which to calculate balance remaining. If not specified, current date UTC is used.accessToken - Authorization token for user set in header of each requestIOException - if an error occurs while attempting to invoke the APIpublic com.google.api.client.http.HttpResponse getEmployeeStatutoryLeaveBalancesForHttpResponse(String accessToken, String xeroTenantId, UUID employeeId, String leaveType, org.threeten.bp.LocalDate asOfDate) throws IOException
IOExceptionpublic EmployeeStatutorySickLeaveObject getEmployeeStatutorySickLeave(String accessToken, String xeroTenantId, UUID statutorySickLeaveID) throws IOException
200 - search results matching criteria
xeroTenantId - Xero identifier for TenantstatutorySickLeaveID - Statutory sick leave id for single objectaccessToken - Authorization token for user set in header of each requestIOException - if an error occurs while attempting to invoke the APIpublic com.google.api.client.http.HttpResponse getEmployeeStatutorySickLeaveForHttpResponse(String accessToken, String xeroTenantId, UUID statutorySickLeaveID) throws IOException
IOExceptionpublic EmployeeTaxObject getEmployeeTax(String accessToken, String xeroTenantId, UUID employeeId) throws IOException
200 - search results matching criteria
xeroTenantId - Xero identifier for TenantemployeeId - Employee id for single objectaccessToken - Authorization token for user set in header of each requestIOException - if an error occurs while attempting to invoke the APIpublic com.google.api.client.http.HttpResponse getEmployeeTaxForHttpResponse(String accessToken, String xeroTenantId, UUID employeeId) throws IOException
IOExceptionpublic Employees getEmployees(String accessToken, String xeroTenantId, String firstName, String lastName, Integer page) throws IOException
200 - search results matching criteria
400 - validation error for a bad request
xeroTenantId - Xero identifier for TenantfirstName - Filter by first namelastName - Filter by last namepage - Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.accessToken - Authorization token for user set in header of each requestIOException - if an error occurs while attempting to invoke the APIpublic com.google.api.client.http.HttpResponse getEmployeesForHttpResponse(String accessToken, String xeroTenantId, String firstName, String lastName, Integer page) throws IOException
IOExceptionpublic LeaveTypeObject getLeaveType(String accessToken, String xeroTenantId, UUID leaveTypeID) throws IOException
200 - search results matching criteria
xeroTenantId - Xero identifier for TenantleaveTypeID - Identifier for the leave typeaccessToken - Authorization token for user set in header of each requestIOException - if an error occurs while attempting to invoke the APIpublic com.google.api.client.http.HttpResponse getLeaveTypeForHttpResponse(String accessToken, String xeroTenantId, UUID leaveTypeID) throws IOException
IOExceptionpublic LeaveTypes getLeaveTypes(String accessToken, String xeroTenantId, Integer page, Boolean activeOnly) throws IOException
200 - search results matching criteria
xeroTenantId - Xero identifier for Tenantpage - Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.activeOnly - Filters leave types by active status. By default the API returns all leave types.accessToken - Authorization token for user set in header of each requestIOException - if an error occurs while attempting to invoke the APIpublic com.google.api.client.http.HttpResponse getLeaveTypesForHttpResponse(String accessToken, String xeroTenantId, Integer page, Boolean activeOnly) throws IOException
IOExceptionpublic PayRunObject getPayRun(String accessToken, String xeroTenantId, UUID payRunID) throws IOException
200 - search results matching criteria
xeroTenantId - Xero identifier for TenantpayRunID - Identifier for the pay runaccessToken - Authorization token for user set in header of each requestIOException - if an error occurs while attempting to invoke the APIpublic com.google.api.client.http.HttpResponse getPayRunForHttpResponse(String accessToken, String xeroTenantId, UUID payRunID) throws IOException
IOExceptionpublic PayRunCalendarObject getPayRunCalendar(String accessToken, String xeroTenantId, UUID payRunCalendarID) throws IOException
200 - search results matching criteria
xeroTenantId - Xero identifier for TenantpayRunCalendarID - Identifier for the payrun calendarsaccessToken - Authorization token for user set in header of each requestIOException - if an error occurs while attempting to invoke the APIpublic com.google.api.client.http.HttpResponse getPayRunCalendarForHttpResponse(String accessToken, String xeroTenantId, UUID payRunCalendarID) throws IOException
IOExceptionpublic PayRunCalendars getPayRunCalendars(String accessToken, String xeroTenantId, Integer page) throws IOException
200 - search results matching criteria
xeroTenantId - Xero identifier for Tenantpage - Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.accessToken - Authorization token for user set in header of each requestIOException - if an error occurs while attempting to invoke the APIpublic com.google.api.client.http.HttpResponse getPayRunCalendarsForHttpResponse(String accessToken, String xeroTenantId, Integer page) throws IOException
IOExceptionpublic PayRuns getPayRuns(String accessToken, String xeroTenantId, Integer page, String status) throws IOException
200 - search results matching criteria
xeroTenantId - Xero identifier for Tenantpage - Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.status - By default get payruns will return all the payruns for an organization. You can add GET https://api.xero.com/payroll.xro/2.0/payRuns?statu={PayRunStatus} to filter the payruns by status.accessToken - Authorization token for user set in header of each requestIOException - if an error occurs while attempting to invoke the APIpublic com.google.api.client.http.HttpResponse getPayRunsForHttpResponse(String accessToken, String xeroTenantId, Integer page, String status) throws IOException
IOExceptionpublic PayslipObject getPaySlip(String accessToken, String xeroTenantId, UUID payslipID) throws IOException
200 - search results matching criteria
xeroTenantId - Xero identifier for TenantpayslipID - Identifier for the payslipaccessToken - Authorization token for user set in header of each requestIOException - if an error occurs while attempting to invoke the APIpublic com.google.api.client.http.HttpResponse getPaySlipForHttpResponse(String accessToken, String xeroTenantId, UUID payslipID) throws IOException
IOExceptionpublic Payslips getPayslips(String accessToken, String xeroTenantId, UUID payRunID, Integer page) throws IOException
200 - search results matching criteria
xeroTenantId - Xero identifier for TenantpayRunID - PayrunID which specifies the containing payrun of payslips to retrieve. By default, the API does not group payslips by payrun.page - Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.accessToken - Authorization token for user set in header of each requestIOException - if an error occurs while attempting to invoke the APIpublic com.google.api.client.http.HttpResponse getPayslipsForHttpResponse(String accessToken, String xeroTenantId, UUID payRunID, Integer page) throws IOException
IOExceptionpublic ReimbursementObject getReimbursement(String accessToken, String xeroTenantId, UUID reimbursementID) throws IOException
200 - search results matching criteria
xeroTenantId - Xero identifier for TenantreimbursementID - Identifier for the reimbursementaccessToken - Authorization token for user set in header of each requestIOException - if an error occurs while attempting to invoke the APIpublic com.google.api.client.http.HttpResponse getReimbursementForHttpResponse(String accessToken, String xeroTenantId, UUID reimbursementID) throws IOException
IOExceptionpublic Reimbursements getReimbursements(String accessToken, String xeroTenantId, Integer page) throws IOException
200 - search results matching criteria
xeroTenantId - Xero identifier for Tenantpage - Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.accessToken - Authorization token for user set in header of each requestIOException - if an error occurs while attempting to invoke the APIpublic com.google.api.client.http.HttpResponse getReimbursementsForHttpResponse(String accessToken, String xeroTenantId, Integer page) throws IOException
IOExceptionpublic Settings getSettings(String accessToken, String xeroTenantId) throws IOException
200 - search results matching criteria
xeroTenantId - Xero identifier for TenantaccessToken - Authorization token for user set in header of each requestIOException - if an error occurs while attempting to invoke the APIpublic com.google.api.client.http.HttpResponse getSettingsForHttpResponse(String accessToken, String xeroTenantId) throws IOException
IOExceptionpublic EmployeeStatutoryLeavesSummaries getStatutoryLeaveSummary(String accessToken, String xeroTenantId, UUID employeeId, Boolean activeOnly) throws IOException
200 - search results matching criteria
xeroTenantId - Xero identifier for TenantemployeeId - Employee id for single objectactiveOnly - Filter response with leaves that are currently active or yet to be taken. If not specified, all leaves (past, current, and future scheduled) are returnedaccessToken - Authorization token for user set in header of each requestIOException - if an error occurs while attempting to invoke the APIpublic com.google.api.client.http.HttpResponse getStatutoryLeaveSummaryForHttpResponse(String accessToken, String xeroTenantId, UUID employeeId, Boolean activeOnly) throws IOException
IOExceptionpublic TimesheetObject getTimesheet(String accessToken, String xeroTenantId, UUID timesheetID) throws IOException
200 - search results matching criteria
xeroTenantId - Xero identifier for TenanttimesheetID - Identifier for the timesheetaccessToken - Authorization token for user set in header of each requestIOException - if an error occurs while attempting to invoke the APIpublic com.google.api.client.http.HttpResponse getTimesheetForHttpResponse(String accessToken, String xeroTenantId, UUID timesheetID) throws IOException
IOExceptionpublic Timesheets getTimesheets(String accessToken, String xeroTenantId, Integer page, UUID employeeId, UUID payrollCalendarId) throws IOException
200 - search results matching criteria
xeroTenantId - Xero identifier for Tenantpage - Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.employeeId - By default get Timesheets will return the timesheets for all employees in an organization. You can add GET https://…/timesheets?filter=employeeId=={EmployeeId} to get only the timesheets of a particular employee.payrollCalendarId - By default get Timesheets will return all the timesheets for an organization. You can add GET https://…/timesheets?filter=payrollCalendarId=={PayrollCalendarID} to filter the timesheets by payroll calendar idaccessToken - Authorization token for user set in header of each requestIOException - if an error occurs while attempting to invoke the APIpublic com.google.api.client.http.HttpResponse getTimesheetsForHttpResponse(String accessToken, String xeroTenantId, Integer page, UUID employeeId, UUID payrollCalendarId) throws IOException
IOExceptionpublic TrackingCategories getTrackingCategories(String accessToken, String xeroTenantId) throws IOException
200 - search results matching criteria
xeroTenantId - Xero identifier for TenantaccessToken - Authorization token for user set in header of each requestIOException - if an error occurs while attempting to invoke the APIpublic com.google.api.client.http.HttpResponse getTrackingCategoriesForHttpResponse(String accessToken, String xeroTenantId) throws IOException
IOExceptionpublic TimesheetObject revertTimesheet(String accessToken, String xeroTenantId, UUID timesheetID) throws IOException
200 - search results matching criteria
400 - validation error for a bad request
xeroTenantId - Xero identifier for TenanttimesheetID - Identifier for the timesheetaccessToken - Authorization token for user set in header of each requestIOException - if an error occurs while attempting to invoke the APIpublic com.google.api.client.http.HttpResponse revertTimesheetForHttpResponse(String accessToken, String xeroTenantId, UUID timesheetID) throws IOException
IOExceptionpublic EmployeeObject updateEmployee(String accessToken, String xeroTenantId, UUID employeeId, Employee employee) throws IOException
200 - successful response
400 - validation error for a bad request
xeroTenantId - Xero identifier for TenantemployeeId - Employee id for single objectemployee - The employee parameteraccessToken - Authorization token for user set in header of each requestIOException - if an error occurs while attempting to invoke the APIpublic com.google.api.client.http.HttpResponse updateEmployeeForHttpResponse(String accessToken, String xeroTenantId, UUID employeeId, Employee employee) throws IOException
IOExceptionpublic EarningsTemplateObject updateEmployeeEarningsTemplate(String accessToken, String xeroTenantId, UUID employeeId, UUID payTemplateEarningID, EarningsTemplate earningsTemplate) throws IOException
200 - search results matching criteria
400 - validation error for a bad request
xeroTenantId - Xero identifier for TenantemployeeId - Employee id for single objectpayTemplateEarningID - Id for single pay template earnings objectearningsTemplate - The earningsTemplate parameteraccessToken - Authorization token for user set in header of each requestIOException - if an error occurs while attempting to invoke the APIpublic com.google.api.client.http.HttpResponse updateEmployeeEarningsTemplateForHttpResponse(String accessToken, String xeroTenantId, UUID employeeId, UUID payTemplateEarningID, EarningsTemplate earningsTemplate) throws IOException
IOExceptionpublic EmployeeLeaveObject updateEmployeeLeave(String accessToken, String xeroTenantId, UUID employeeId, UUID leaveID, EmployeeLeave employeeLeave) throws IOException
200 - successful response
400 - validation error for a bad request
xeroTenantId - Xero identifier for TenantemployeeId - Employee id for single objectleaveID - Leave id for single objectemployeeLeave - The employeeLeave parameteraccessToken - Authorization token for user set in header of each requestIOException - if an error occurs while attempting to invoke the APIpublic com.google.api.client.http.HttpResponse updateEmployeeLeaveForHttpResponse(String accessToken, String xeroTenantId, UUID employeeId, UUID leaveID, EmployeeLeave employeeLeave) throws IOException
IOExceptionpublic EmployeeOpeningBalancesObject updateEmployeeOpeningBalances(String accessToken, String xeroTenantId, UUID employeeId, EmployeeOpeningBalances employeeOpeningBalances) throws IOException
200 - successful response
400 - validation error for a bad request
xeroTenantId - Xero identifier for TenantemployeeId - Employee id for single objectemployeeOpeningBalances - The employeeOpeningBalances parameteraccessToken - Authorization token for user set in header of each requestIOException - if an error occurs while attempting to invoke the APIpublic com.google.api.client.http.HttpResponse updateEmployeeOpeningBalancesForHttpResponse(String accessToken, String xeroTenantId, UUID employeeId, EmployeeOpeningBalances employeeOpeningBalances) throws IOException
IOExceptionpublic SalaryAndWageObject updateEmployeeSalaryAndWage(String accessToken, String xeroTenantId, UUID employeeId, UUID salaryAndWagesID, SalaryAndWage salaryAndWage) throws IOException
200 - search results matching criteria
400 - validation error for a bad request
xeroTenantId - Xero identifier for TenantemployeeId - Employee id for single objectsalaryAndWagesID - Id for single pay template earnings objectsalaryAndWage - The salaryAndWage parameteraccessToken - Authorization token for user set in header of each requestIOException - if an error occurs while attempting to invoke the APIpublic com.google.api.client.http.HttpResponse updateEmployeeSalaryAndWageForHttpResponse(String accessToken, String xeroTenantId, UUID employeeId, UUID salaryAndWagesID, SalaryAndWage salaryAndWage) throws IOException
IOExceptionpublic PayRunObject updatePayRun(String accessToken, String xeroTenantId, UUID payRunID, PayRun payRun) throws IOException
200 - search results matching criteria
400 - validation error for a bad request
xeroTenantId - Xero identifier for TenantpayRunID - Identifier for the pay runpayRun - The payRun parameteraccessToken - Authorization token for user set in header of each requestIOException - if an error occurs while attempting to invoke the APIpublic com.google.api.client.http.HttpResponse updatePayRunForHttpResponse(String accessToken, String xeroTenantId, UUID payRunID, PayRun payRun) throws IOException
IOExceptionpublic TimesheetLineObject updateTimesheetLine(String accessToken, String xeroTenantId, UUID timesheetID, UUID timesheetLineID, TimesheetLine timesheetLine) throws IOException
200 - search results matching criteria
400 - validation error for a bad request
xeroTenantId - Xero identifier for TenanttimesheetID - Identifier for the timesheettimesheetLineID - Identifier for the timesheet linetimesheetLine - The timesheetLine parameteraccessToken - Authorization token for user set in header of each requestIOException - if an error occurs while attempting to invoke the APIpublic com.google.api.client.http.HttpResponse updateTimesheetLineForHttpResponse(String accessToken, String xeroTenantId, UUID timesheetID, UUID timesheetLineID, TimesheetLine timesheetLine) throws IOException
IOExceptionpublic ByteArrayInputStream convertInputToByteArray(InputStream is) throws IOException
IOExceptionCopyright © 2020. All rights reserved.