/** * Xero Payroll AU API * This is the Xero Payroll API for orgs in Australia region. * * The version of the OpenAPI document: 9.0.0 * Contact: api@xero.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { Employee } from '../model/payroll-au/employee'; import { Employees } from '../model/payroll-au/employees'; import { LeaveApplication } from '../model/payroll-au/leaveApplication'; import { LeaveApplications } from '../model/payroll-au/leaveApplications'; import { PayItem } from '../model/payroll-au/payItem'; import { PayItems } from '../model/payroll-au/payItems'; import { PayRun } from '../model/payroll-au/payRun'; import { PayRuns } from '../model/payroll-au/payRuns'; import { PayrollCalendar } from '../model/payroll-au/payrollCalendar'; import { PayrollCalendars } from '../model/payroll-au/payrollCalendars'; import { PayslipLines } from '../model/payroll-au/payslipLines'; import { PayslipObject } from '../model/payroll-au/payslipObject'; import { Payslips } from '../model/payroll-au/payslips'; import { SettingsObject } from '../model/payroll-au/settingsObject'; import { SuperFund } from '../model/payroll-au/superFund'; import { SuperFundProducts } from '../model/payroll-au/superFundProducts'; import { SuperFunds } from '../model/payroll-au/superFunds'; import { Timesheet } from '../model/payroll-au/timesheet'; import { TimesheetObject } from '../model/payroll-au/timesheetObject'; import { Timesheets } from '../model/payroll-au/timesheets'; import { Authentication } from '../model/payroll-au/models'; import { AxiosResponse } from 'axios'; import { OAuth } from '../model/payroll-au/models'; export declare enum PayrollAuApiApiKeys { } export declare class PayrollAuApi { protected _basePath: string; protected defaultHeaders: any; protected _useQuerystring: boolean; protected binaryHeaders: any; protected authentications: { default: Authentication; OAuth2: OAuth; }; constructor(basePath?: string); set useQuerystring(value: boolean); set basePath(basePath: string); get basePath(): string; setDefaultAuthentication(auth: Authentication): void; setApiKey(key: PayrollAuApiApiKeys, value: string): void; set accessToken(token: string); /** * * @summary Approve a requested leave application by a unique leave application id * @param xeroTenantId Xero identifier for Tenant * @param leaveApplicationID Leave Application id for single object * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max. */ approveLeaveApplication(xeroTenantId: string, leaveApplicationID: string, idempotencyKey?: string, options?: { headers: { [name: string]: string; }; }): Promise<{ response: AxiosResponse; body: LeaveApplications; }>; /** * * @summary Creates a payroll employee * @param xeroTenantId Xero identifier for Tenant * @param employee * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max. */ createEmployee(xeroTenantId: string, employee: Array, idempotencyKey?: string, options?: { headers: { [name: string]: string; }; }): Promise<{ response: AxiosResponse; body: Employees; }>; /** * * @summary Creates a leave application * @param xeroTenantId Xero identifier for Tenant * @param leaveApplication * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max. */ createLeaveApplication(xeroTenantId: string, leaveApplication: Array, idempotencyKey?: string, options?: { headers: { [name: string]: string; }; }): Promise<{ response: AxiosResponse; body: LeaveApplications; }>; /** * * @summary Creates a pay item * @param xeroTenantId Xero identifier for Tenant * @param payItem * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max. */ createPayItem(xeroTenantId: string, payItem: PayItem, idempotencyKey?: string, options?: { headers: { [name: string]: string; }; }): Promise<{ response: AxiosResponse; body: PayItems; }>; /** * * @summary Creates a pay run * @param xeroTenantId Xero identifier for Tenant * @param payRun * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max. */ createPayRun(xeroTenantId: string, payRun: Array, idempotencyKey?: string, options?: { headers: { [name: string]: string; }; }): Promise<{ response: AxiosResponse; body: PayRuns; }>; /** * * @summary Creates a Payroll Calendar * @param xeroTenantId Xero identifier for Tenant * @param payrollCalendar * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max. */ createPayrollCalendar(xeroTenantId: string, payrollCalendar: Array, idempotencyKey?: string, options?: { headers: { [name: string]: string; }; }): Promise<{ response: AxiosResponse; body: PayrollCalendars; }>; /** * * @summary Creates a superfund * @param xeroTenantId Xero identifier for Tenant * @param superFund * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max. */ createSuperfund(xeroTenantId: string, superFund: Array, idempotencyKey?: string, options?: { headers: { [name: string]: string; }; }): Promise<{ response: AxiosResponse; body: SuperFunds; }>; /** * * @summary Creates a timesheet * @param xeroTenantId Xero identifier for Tenant * @param timesheet * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max. */ createTimesheet(xeroTenantId: string, timesheet: Array, idempotencyKey?: string, options?: { headers: { [name: string]: string; }; }): Promise<{ response: AxiosResponse; body: Timesheets; }>; /** * * @summary Retrieves an employee\'s detail by unique employee id * @param xeroTenantId Xero identifier for Tenant * @param employeeID Employee id for single object */ getEmployee(xeroTenantId: string, employeeID: string, options?: { headers: { [name: string]: string; }; }): Promise<{ response: AxiosResponse; body: Employees; }>; /** * * @summary Searches payroll employees * @param xeroTenantId Xero identifier for Tenant * @param ifModifiedSince Only records created or modified since this timestamp will be returned * @param where Filter by an any element * @param order Order by an any element * @param page e.g. page=1 – Up to 100 employees will be returned in a single API call */ getEmployees(xeroTenantId: string, ifModifiedSince?: Date, where?: string, order?: string, page?: number, options?: { headers: { [name: string]: string; }; }): Promise<{ response: AxiosResponse; body: Employees; }>; /** * * @summary Retrieves a leave application by a unique leave application id * @param xeroTenantId Xero identifier for Tenant * @param leaveApplicationID Leave Application id for single object */ getLeaveApplication(xeroTenantId: string, leaveApplicationID: string, options?: { headers: { [name: string]: string; }; }): Promise<{ response: AxiosResponse; body: LeaveApplications; }>; /** * * @summary Retrieves leave applications * @param xeroTenantId Xero identifier for Tenant * @param ifModifiedSince Only records created or modified since this timestamp will be returned * @param where Filter by an any element * @param order Order by an any element * @param page e.g. page=1 – Up to 100 objects will be returned in a single API call */ getLeaveApplications(xeroTenantId: string, ifModifiedSince?: Date, where?: string, order?: string, page?: number, options?: { headers: { [name: string]: string; }; }): Promise<{ response: AxiosResponse; body: LeaveApplications; }>; /** * * @summary Retrieves leave applications including leave requests * @param xeroTenantId Xero identifier for Tenant * @param ifModifiedSince Only records created or modified since this timestamp will be returned * @param where Filter by an any element * @param order Order by an any element * @param page e.g. page=1 – Up to 100 objects will be returned in a single API call */ getLeaveApplicationsV2(xeroTenantId: string, ifModifiedSince?: Date, where?: string, order?: string, page?: number, options?: { headers: { [name: string]: string; }; }): Promise<{ response: AxiosResponse; body: LeaveApplications; }>; /** * * @summary Retrieves pay items * @param xeroTenantId Xero identifier for Tenant * @param ifModifiedSince Only records created or modified since this timestamp will be returned * @param where Filter by an any element * @param order Order by an any element * @param page e.g. page=1 – Up to 100 objects will be returned in a single API call */ getPayItems(xeroTenantId: string, ifModifiedSince?: Date, where?: string, order?: string, page?: number, options?: { headers: { [name: string]: string; }; }): Promise<{ response: AxiosResponse; body: PayItems; }>; /** * * @summary Retrieves a pay run by using a unique pay run id * @param xeroTenantId Xero identifier for Tenant * @param payRunID PayRun id for single object */ getPayRun(xeroTenantId: string, payRunID: string, options?: { headers: { [name: string]: string; }; }): Promise<{ response: AxiosResponse; body: PayRuns; }>; /** * * @summary Retrieves pay runs * @param xeroTenantId Xero identifier for Tenant * @param ifModifiedSince Only records created or modified since this timestamp will be returned * @param where Filter by an any element * @param order Order by an any element * @param page e.g. page=1 – Up to 100 PayRuns will be returned in a single API call */ getPayRuns(xeroTenantId: string, ifModifiedSince?: Date, where?: string, order?: string, page?: number, options?: { headers: { [name: string]: string; }; }): Promise<{ response: AxiosResponse; body: PayRuns; }>; /** * * @summary Retrieves payroll calendar by using a unique payroll calendar ID * @param xeroTenantId Xero identifier for Tenant * @param payrollCalendarID Payroll Calendar id for single object */ getPayrollCalendar(xeroTenantId: string, payrollCalendarID: string, options?: { headers: { [name: string]: string; }; }): Promise<{ response: AxiosResponse; body: PayrollCalendars; }>; /** * * @summary Retrieves payroll calendars * @param xeroTenantId Xero identifier for Tenant * @param ifModifiedSince Only records created or modified since this timestamp will be returned * @param where Filter by an any element * @param order Order by an any element * @param page e.g. page=1 – Up to 100 objects will be returned in a single API call */ getPayrollCalendars(xeroTenantId: string, ifModifiedSince?: Date, where?: string, order?: string, page?: number, options?: { headers: { [name: string]: string; }; }): Promise<{ response: AxiosResponse; body: PayrollCalendars; }>; /** * * @summary Retrieves for a payslip by a unique payslip id * @param xeroTenantId Xero identifier for Tenant * @param payslipID Payslip id for single object */ getPayslip(xeroTenantId: string, payslipID: string, options?: { headers: { [name: string]: string; }; }): Promise<{ response: AxiosResponse; body: PayslipObject; }>; /** * * @summary Retrieves payroll settings * @param xeroTenantId Xero identifier for Tenant */ getSettings(xeroTenantId: string, options?: { headers: { [name: string]: string; }; }): Promise<{ response: AxiosResponse; body: SettingsObject; }>; /** * * @summary Retrieves a superfund by using a unique superfund ID * @param xeroTenantId Xero identifier for Tenant * @param superFundID Superfund id for single object */ getSuperfund(xeroTenantId: string, superFundID: string, options?: { headers: { [name: string]: string; }; }): Promise<{ response: AxiosResponse; body: SuperFunds; }>; /** * * @summary Retrieves superfund products * @param xeroTenantId Xero identifier for Tenant * @param aBN The ABN of the Regulated SuperFund * @param uSI The USI of the Regulated SuperFund */ getSuperfundProducts(xeroTenantId: string, aBN?: string, uSI?: string, options?: { headers: { [name: string]: string; }; }): Promise<{ response: AxiosResponse; body: SuperFundProducts; }>; /** * * @summary Retrieves superfunds * @param xeroTenantId Xero identifier for Tenant * @param ifModifiedSince Only records created or modified since this timestamp will be returned * @param where Filter by an any element * @param order Order by an any element * @param page e.g. page=1 – Up to 100 SuperFunds will be returned in a single API call */ getSuperfunds(xeroTenantId: string, ifModifiedSince?: Date, where?: string, order?: string, page?: number, options?: { headers: { [name: string]: string; }; }): Promise<{ response: AxiosResponse; body: SuperFunds; }>; /** * * @summary Retrieves a timesheet by using a unique timesheet id * @param xeroTenantId Xero identifier for Tenant * @param timesheetID Timesheet id for single object */ getTimesheet(xeroTenantId: string, timesheetID: string, options?: { headers: { [name: string]: string; }; }): Promise<{ response: AxiosResponse; body: TimesheetObject; }>; /** * * @summary Retrieves timesheets * @param xeroTenantId Xero identifier for Tenant * @param ifModifiedSince Only records created or modified since this timestamp will be returned * @param where Filter by an any element * @param order Order by an any element * @param page e.g. page=1 – Up to 100 timesheets will be returned in a single API call */ getTimesheets(xeroTenantId: string, ifModifiedSince?: Date, where?: string, order?: string, page?: number, options?: { headers: { [name: string]: string; }; }): Promise<{ response: AxiosResponse; body: Timesheets; }>; /** * * @summary Reject a leave application by a unique leave application id * @param xeroTenantId Xero identifier for Tenant * @param leaveApplicationID Leave Application id for single object * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max. */ rejectLeaveApplication(xeroTenantId: string, leaveApplicationID: string, idempotencyKey?: string, options?: { headers: { [name: string]: string; }; }): Promise<{ response: AxiosResponse; body: LeaveApplications; }>; /** * Update properties on a single employee * @summary Updates an employee\'s detail * @param xeroTenantId Xero identifier for Tenant * @param employeeID Employee id for single object * @param employee * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max. */ updateEmployee(xeroTenantId: string, employeeID: string, employee: Array, idempotencyKey?: string, options?: { headers: { [name: string]: string; }; }): Promise<{ response: AxiosResponse; body: Employees; }>; /** * * @summary Updates a specific leave application * @param xeroTenantId Xero identifier for Tenant * @param leaveApplicationID Leave Application id for single object * @param leaveApplication * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max. */ updateLeaveApplication(xeroTenantId: string, leaveApplicationID: string, leaveApplication: Array, idempotencyKey?: string, options?: { headers: { [name: string]: string; }; }): Promise<{ response: AxiosResponse; body: LeaveApplications; }>; /** * Update properties on a single PayRun * @summary Updates a pay run * @param xeroTenantId Xero identifier for Tenant * @param payRunID PayRun id for single object * @param payRun * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max. */ updatePayRun(xeroTenantId: string, payRunID: string, payRun: Array, idempotencyKey?: string, options?: { headers: { [name: string]: string; }; }): Promise<{ response: AxiosResponse; body: PayRuns; }>; /** * Update lines on a single payslips * @summary Updates a payslip * @param xeroTenantId Xero identifier for Tenant * @param payslipID Payslip id for single object * @param payslipLines * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max. */ updatePayslip(xeroTenantId: string, payslipID: string, payslipLines: Array, idempotencyKey?: string, options?: { headers: { [name: string]: string; }; }): Promise<{ response: AxiosResponse; body: Payslips; }>; /** * Update properties on a single Superfund * @summary Updates a superfund * @param xeroTenantId Xero identifier for Tenant * @param superFundID Superfund id for single object * @param superFund * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max. */ updateSuperfund(xeroTenantId: string, superFundID: string, superFund: Array, idempotencyKey?: string, options?: { headers: { [name: string]: string; }; }): Promise<{ response: AxiosResponse; body: SuperFunds; }>; /** * Update properties on a single timesheet * @summary Updates a timesheet * @param xeroTenantId Xero identifier for Tenant * @param timesheetID Timesheet id for single object * @param timesheet * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max. */ updateTimesheet(xeroTenantId: string, timesheetID: string, timesheet: Array, idempotencyKey?: string, options?: { headers: { [name: string]: string; }; }): Promise<{ response: AxiosResponse; body: Timesheets; }>; }