xero-node 9.3.0-alpha.3 → 9.3.0-alpha.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -81,8 +81,8 @@ class PayrollUkApi {
81
81
  * @param timesheetID Identifier for the timesheet
82
82
  * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
83
83
  */
84
- approveTimesheet(xeroTenantId, timesheetID, idempotencyKey, options = { headers: {} }) {
85
- return __awaiter(this, void 0, void 0, function* () {
84
+ approveTimesheet(xeroTenantId_1, timesheetID_1, idempotencyKey_1) {
85
+ return __awaiter(this, arguments, void 0, function* (xeroTenantId, timesheetID, idempotencyKey, options = { headers: {} }) {
86
86
  const localVarPath = this.basePath + '/Timesheets/{TimesheetID}/Approve'
87
87
  .replace('{' + 'TimesheetID' + '}', encodeURIComponent(String(timesheetID)));
88
88
  let localVarQueryParameters = {};
@@ -155,8 +155,8 @@ class PayrollUkApi {
155
155
  * @param benefit
156
156
  * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
157
157
  */
158
- createBenefit(xeroTenantId, benefit, idempotencyKey, options = { headers: {} }) {
159
- return __awaiter(this, void 0, void 0, function* () {
158
+ createBenefit(xeroTenantId_1, benefit_1, idempotencyKey_1) {
159
+ return __awaiter(this, arguments, void 0, function* (xeroTenantId, benefit, idempotencyKey, options = { headers: {} }) {
160
160
  const localVarPath = this.basePath + '/Benefits';
161
161
  let localVarQueryParameters = {};
162
162
  let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
@@ -228,8 +228,8 @@ class PayrollUkApi {
228
228
  * @param deduction
229
229
  * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
230
230
  */
231
- createDeduction(xeroTenantId, deduction, idempotencyKey, options = { headers: {} }) {
232
- return __awaiter(this, void 0, void 0, function* () {
231
+ createDeduction(xeroTenantId_1, deduction_1, idempotencyKey_1) {
232
+ return __awaiter(this, arguments, void 0, function* (xeroTenantId, deduction, idempotencyKey, options = { headers: {} }) {
233
233
  const localVarPath = this.basePath + '/Deductions';
234
234
  let localVarQueryParameters = {};
235
235
  let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
@@ -301,8 +301,8 @@ class PayrollUkApi {
301
301
  * @param earningsRate
302
302
  * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
303
303
  */
304
- createEarningsRate(xeroTenantId, earningsRate, idempotencyKey, options = { headers: {} }) {
305
- return __awaiter(this, void 0, void 0, function* () {
304
+ createEarningsRate(xeroTenantId_1, earningsRate_1, idempotencyKey_1) {
305
+ return __awaiter(this, arguments, void 0, function* (xeroTenantId, earningsRate, idempotencyKey, options = { headers: {} }) {
306
306
  const localVarPath = this.basePath + '/EarningsRates';
307
307
  let localVarQueryParameters = {};
308
308
  let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
@@ -374,8 +374,8 @@ class PayrollUkApi {
374
374
  * @param employee
375
375
  * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
376
376
  */
377
- createEmployee(xeroTenantId, employee, idempotencyKey, options = { headers: {} }) {
378
- return __awaiter(this, void 0, void 0, function* () {
377
+ createEmployee(xeroTenantId_1, employee_1, idempotencyKey_1) {
378
+ return __awaiter(this, arguments, void 0, function* (xeroTenantId, employee, idempotencyKey, options = { headers: {} }) {
379
379
  const localVarPath = this.basePath + '/Employees';
380
380
  let localVarQueryParameters = {};
381
381
  let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
@@ -448,8 +448,8 @@ class PayrollUkApi {
448
448
  * @param earningsTemplate
449
449
  * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
450
450
  */
451
- createEmployeeEarningsTemplate(xeroTenantId, employeeID, earningsTemplate, idempotencyKey, options = { headers: {} }) {
452
- return __awaiter(this, void 0, void 0, function* () {
451
+ createEmployeeEarningsTemplate(xeroTenantId_1, employeeID_1, earningsTemplate_1, idempotencyKey_1) {
452
+ return __awaiter(this, arguments, void 0, function* (xeroTenantId, employeeID, earningsTemplate, idempotencyKey, options = { headers: {} }) {
453
453
  const localVarPath = this.basePath + '/Employees/{EmployeeID}/PayTemplates/earnings'
454
454
  .replace('{' + 'EmployeeID' + '}', encodeURIComponent(String(employeeID)));
455
455
  let localVarQueryParameters = {};
@@ -527,8 +527,8 @@ class PayrollUkApi {
527
527
  * @param employeeLeave
528
528
  * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
529
529
  */
530
- createEmployeeLeave(xeroTenantId, employeeID, employeeLeave, idempotencyKey, options = { headers: {} }) {
531
- return __awaiter(this, void 0, void 0, function* () {
530
+ createEmployeeLeave(xeroTenantId_1, employeeID_1, employeeLeave_1, idempotencyKey_1) {
531
+ return __awaiter(this, arguments, void 0, function* (xeroTenantId, employeeID, employeeLeave, idempotencyKey, options = { headers: {} }) {
532
532
  const localVarPath = this.basePath + '/Employees/{EmployeeID}/Leave'
533
533
  .replace('{' + 'EmployeeID' + '}', encodeURIComponent(String(employeeID)));
534
534
  let localVarQueryParameters = {};
@@ -606,8 +606,8 @@ class PayrollUkApi {
606
606
  * @param employeeLeaveType
607
607
  * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
608
608
  */
609
- createEmployeeLeaveType(xeroTenantId, employeeID, employeeLeaveType, idempotencyKey, options = { headers: {} }) {
610
- return __awaiter(this, void 0, void 0, function* () {
609
+ createEmployeeLeaveType(xeroTenantId_1, employeeID_1, employeeLeaveType_1, idempotencyKey_1) {
610
+ return __awaiter(this, arguments, void 0, function* (xeroTenantId, employeeID, employeeLeaveType, idempotencyKey, options = { headers: {} }) {
611
611
  const localVarPath = this.basePath + '/Employees/{EmployeeID}/LeaveTypes'
612
612
  .replace('{' + 'EmployeeID' + '}', encodeURIComponent(String(employeeID)));
613
613
  let localVarQueryParameters = {};
@@ -685,8 +685,8 @@ class PayrollUkApi {
685
685
  * @param employeeOpeningBalances
686
686
  * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
687
687
  */
688
- createEmployeeOpeningBalances(xeroTenantId, employeeID, employeeOpeningBalances, idempotencyKey, options = { headers: {} }) {
689
- return __awaiter(this, void 0, void 0, function* () {
688
+ createEmployeeOpeningBalances(xeroTenantId_1, employeeID_1, employeeOpeningBalances_1, idempotencyKey_1) {
689
+ return __awaiter(this, arguments, void 0, function* (xeroTenantId, employeeID, employeeOpeningBalances, idempotencyKey, options = { headers: {} }) {
690
690
  const localVarPath = this.basePath + '/Employees/{EmployeeID}/ukopeningbalances'
691
691
  .replace('{' + 'EmployeeID' + '}', encodeURIComponent(String(employeeID)));
692
692
  let localVarQueryParameters = {};
@@ -764,8 +764,8 @@ class PayrollUkApi {
764
764
  * @param paymentMethod
765
765
  * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
766
766
  */
767
- createEmployeePaymentMethod(xeroTenantId, employeeID, paymentMethod, idempotencyKey, options = { headers: {} }) {
768
- return __awaiter(this, void 0, void 0, function* () {
767
+ createEmployeePaymentMethod(xeroTenantId_1, employeeID_1, paymentMethod_1, idempotencyKey_1) {
768
+ return __awaiter(this, arguments, void 0, function* (xeroTenantId, employeeID, paymentMethod, idempotencyKey, options = { headers: {} }) {
769
769
  const localVarPath = this.basePath + '/Employees/{EmployeeID}/PaymentMethods'
770
770
  .replace('{' + 'EmployeeID' + '}', encodeURIComponent(String(employeeID)));
771
771
  let localVarQueryParameters = {};
@@ -843,8 +843,8 @@ class PayrollUkApi {
843
843
  * @param salaryAndWage
844
844
  * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
845
845
  */
846
- createEmployeeSalaryAndWage(xeroTenantId, employeeID, salaryAndWage, idempotencyKey, options = { headers: {} }) {
847
- return __awaiter(this, void 0, void 0, function* () {
846
+ createEmployeeSalaryAndWage(xeroTenantId_1, employeeID_1, salaryAndWage_1, idempotencyKey_1) {
847
+ return __awaiter(this, arguments, void 0, function* (xeroTenantId, employeeID, salaryAndWage, idempotencyKey, options = { headers: {} }) {
848
848
  const localVarPath = this.basePath + '/Employees/{EmployeeID}/SalaryAndWages'
849
849
  .replace('{' + 'EmployeeID' + '}', encodeURIComponent(String(employeeID)));
850
850
  let localVarQueryParameters = {};
@@ -921,8 +921,8 @@ class PayrollUkApi {
921
921
  * @param employeeStatutorySickLeave
922
922
  * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
923
923
  */
924
- createEmployeeStatutorySickLeave(xeroTenantId, employeeStatutorySickLeave, idempotencyKey, options = { headers: {} }) {
925
- return __awaiter(this, void 0, void 0, function* () {
924
+ createEmployeeStatutorySickLeave(xeroTenantId_1, employeeStatutorySickLeave_1, idempotencyKey_1) {
925
+ return __awaiter(this, arguments, void 0, function* (xeroTenantId, employeeStatutorySickLeave, idempotencyKey, options = { headers: {} }) {
926
926
  const localVarPath = this.basePath + '/StatutoryLeaves/Sick';
927
927
  let localVarQueryParameters = {};
928
928
  let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
@@ -995,8 +995,8 @@ class PayrollUkApi {
995
995
  * @param employment
996
996
  * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
997
997
  */
998
- createEmployment(xeroTenantId, employeeID, employment, idempotencyKey, options = { headers: {} }) {
999
- return __awaiter(this, void 0, void 0, function* () {
998
+ createEmployment(xeroTenantId_1, employeeID_1, employment_1, idempotencyKey_1) {
999
+ return __awaiter(this, arguments, void 0, function* (xeroTenantId, employeeID, employment, idempotencyKey, options = { headers: {} }) {
1000
1000
  const localVarPath = this.basePath + '/Employees/{EmployeeID}/Employment'
1001
1001
  .replace('{' + 'EmployeeID' + '}', encodeURIComponent(String(employeeID)));
1002
1002
  let localVarQueryParameters = {};
@@ -1073,8 +1073,8 @@ class PayrollUkApi {
1073
1073
  * @param leaveType
1074
1074
  * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
1075
1075
  */
1076
- createLeaveType(xeroTenantId, leaveType, idempotencyKey, options = { headers: {} }) {
1077
- return __awaiter(this, void 0, void 0, function* () {
1076
+ createLeaveType(xeroTenantId_1, leaveType_1, idempotencyKey_1) {
1077
+ return __awaiter(this, arguments, void 0, function* (xeroTenantId, leaveType, idempotencyKey, options = { headers: {} }) {
1078
1078
  const localVarPath = this.basePath + '/LeaveTypes';
1079
1079
  let localVarQueryParameters = {};
1080
1080
  let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
@@ -1147,8 +1147,8 @@ class PayrollUkApi {
1147
1147
  * @param earningsTemplate
1148
1148
  * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
1149
1149
  */
1150
- createMultipleEmployeeEarningsTemplate(xeroTenantId, employeeID, earningsTemplate, idempotencyKey, options = { headers: {} }) {
1151
- return __awaiter(this, void 0, void 0, function* () {
1150
+ createMultipleEmployeeEarningsTemplate(xeroTenantId_1, employeeID_1, earningsTemplate_1, idempotencyKey_1) {
1151
+ return __awaiter(this, arguments, void 0, function* (xeroTenantId, employeeID, earningsTemplate, idempotencyKey, options = { headers: {} }) {
1152
1152
  const localVarPath = this.basePath + '/Employees/{EmployeeID}/paytemplateearnings'
1153
1153
  .replace('{' + 'EmployeeID' + '}', encodeURIComponent(String(employeeID)));
1154
1154
  let localVarQueryParameters = {};
@@ -1225,8 +1225,8 @@ class PayrollUkApi {
1225
1225
  * @param payRunCalendar
1226
1226
  * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
1227
1227
  */
1228
- createPayRunCalendar(xeroTenantId, payRunCalendar, idempotencyKey, options = { headers: {} }) {
1229
- return __awaiter(this, void 0, void 0, function* () {
1228
+ createPayRunCalendar(xeroTenantId_1, payRunCalendar_1, idempotencyKey_1) {
1229
+ return __awaiter(this, arguments, void 0, function* (xeroTenantId, payRunCalendar, idempotencyKey, options = { headers: {} }) {
1230
1230
  const localVarPath = this.basePath + '/PayRunCalendars';
1231
1231
  let localVarQueryParameters = {};
1232
1232
  let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
@@ -1298,8 +1298,8 @@ class PayrollUkApi {
1298
1298
  * @param reimbursement
1299
1299
  * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
1300
1300
  */
1301
- createReimbursement(xeroTenantId, reimbursement, idempotencyKey, options = { headers: {} }) {
1302
- return __awaiter(this, void 0, void 0, function* () {
1301
+ createReimbursement(xeroTenantId_1, reimbursement_1, idempotencyKey_1) {
1302
+ return __awaiter(this, arguments, void 0, function* (xeroTenantId, reimbursement, idempotencyKey, options = { headers: {} }) {
1303
1303
  const localVarPath = this.basePath + '/Reimbursements';
1304
1304
  let localVarQueryParameters = {};
1305
1305
  let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
@@ -1371,8 +1371,8 @@ class PayrollUkApi {
1371
1371
  * @param timesheet
1372
1372
  * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
1373
1373
  */
1374
- createTimesheet(xeroTenantId, timesheet, idempotencyKey, options = { headers: {} }) {
1375
- return __awaiter(this, void 0, void 0, function* () {
1374
+ createTimesheet(xeroTenantId_1, timesheet_1, idempotencyKey_1) {
1375
+ return __awaiter(this, arguments, void 0, function* (xeroTenantId, timesheet, idempotencyKey, options = { headers: {} }) {
1376
1376
  const localVarPath = this.basePath + '/Timesheets';
1377
1377
  let localVarQueryParameters = {};
1378
1378
  let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
@@ -1445,8 +1445,8 @@ class PayrollUkApi {
1445
1445
  * @param timesheetLine
1446
1446
  * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
1447
1447
  */
1448
- createTimesheetLine(xeroTenantId, timesheetID, timesheetLine, idempotencyKey, options = { headers: {} }) {
1449
- return __awaiter(this, void 0, void 0, function* () {
1448
+ createTimesheetLine(xeroTenantId_1, timesheetID_1, timesheetLine_1, idempotencyKey_1) {
1449
+ return __awaiter(this, arguments, void 0, function* (xeroTenantId, timesheetID, timesheetLine, idempotencyKey, options = { headers: {} }) {
1450
1450
  const localVarPath = this.basePath + '/Timesheets/{TimesheetID}/Lines'
1451
1451
  .replace('{' + 'TimesheetID' + '}', encodeURIComponent(String(timesheetID)));
1452
1452
  let localVarQueryParameters = {};
@@ -1523,8 +1523,8 @@ class PayrollUkApi {
1523
1523
  * @param employeeID Employee id for single object
1524
1524
  * @param payTemplateEarningID Id for single pay template earnings object
1525
1525
  */
1526
- deleteEmployeeEarningsTemplate(xeroTenantId, employeeID, payTemplateEarningID, options = { headers: {} }) {
1527
- return __awaiter(this, void 0, void 0, function* () {
1526
+ deleteEmployeeEarningsTemplate(xeroTenantId_1, employeeID_1, payTemplateEarningID_1) {
1527
+ return __awaiter(this, arguments, void 0, function* (xeroTenantId, employeeID, payTemplateEarningID, options = { headers: {} }) {
1528
1528
  const localVarPath = this.basePath + '/Employees/{EmployeeID}/PayTemplates/earnings/{PayTemplateEarningID}'
1529
1529
  .replace('{' + 'EmployeeID' + '}', encodeURIComponent(String(employeeID)))
1530
1530
  .replace('{' + 'PayTemplateEarningID' + '}', encodeURIComponent(String(payTemplateEarningID)));
@@ -1598,8 +1598,8 @@ class PayrollUkApi {
1598
1598
  * @param employeeID Employee id for single object
1599
1599
  * @param leaveID Leave id for single object
1600
1600
  */
1601
- deleteEmployeeLeave(xeroTenantId, employeeID, leaveID, options = { headers: {} }) {
1602
- return __awaiter(this, void 0, void 0, function* () {
1601
+ deleteEmployeeLeave(xeroTenantId_1, employeeID_1, leaveID_1) {
1602
+ return __awaiter(this, arguments, void 0, function* (xeroTenantId, employeeID, leaveID, options = { headers: {} }) {
1603
1603
  const localVarPath = this.basePath + '/Employees/{EmployeeID}/Leave/{LeaveID}'
1604
1604
  .replace('{' + 'EmployeeID' + '}', encodeURIComponent(String(employeeID)))
1605
1605
  .replace('{' + 'LeaveID' + '}', encodeURIComponent(String(leaveID)));
@@ -1676,8 +1676,8 @@ class PayrollUkApi {
1676
1676
  * @param employeeID Employee id for single object
1677
1677
  * @param salaryAndWagesID Id for single salary and wages object
1678
1678
  */
1679
- deleteEmployeeSalaryAndWage(xeroTenantId, employeeID, salaryAndWagesID, options = { headers: {} }) {
1680
- return __awaiter(this, void 0, void 0, function* () {
1679
+ deleteEmployeeSalaryAndWage(xeroTenantId_1, employeeID_1, salaryAndWagesID_1) {
1680
+ return __awaiter(this, arguments, void 0, function* (xeroTenantId, employeeID, salaryAndWagesID, options = { headers: {} }) {
1681
1681
  const localVarPath = this.basePath + '/Employees/{EmployeeID}/SalaryAndWages/{SalaryAndWagesID}'
1682
1682
  .replace('{' + 'EmployeeID' + '}', encodeURIComponent(String(employeeID)))
1683
1683
  .replace('{' + 'SalaryAndWagesID' + '}', encodeURIComponent(String(salaryAndWagesID)));
@@ -1750,8 +1750,8 @@ class PayrollUkApi {
1750
1750
  * @param xeroTenantId Xero identifier for Tenant
1751
1751
  * @param timesheetID Identifier for the timesheet
1752
1752
  */
1753
- deleteTimesheet(xeroTenantId, timesheetID, options = { headers: {} }) {
1754
- return __awaiter(this, void 0, void 0, function* () {
1753
+ deleteTimesheet(xeroTenantId_1, timesheetID_1) {
1754
+ return __awaiter(this, arguments, void 0, function* (xeroTenantId, timesheetID, options = { headers: {} }) {
1755
1755
  const localVarPath = this.basePath + '/Timesheets/{TimesheetID}'
1756
1756
  .replace('{' + 'TimesheetID' + '}', encodeURIComponent(String(timesheetID)));
1757
1757
  let localVarQueryParameters = {};
@@ -1823,8 +1823,8 @@ class PayrollUkApi {
1823
1823
  * @param timesheetID Identifier for the timesheet
1824
1824
  * @param timesheetLineID Identifier for the timesheet line
1825
1825
  */
1826
- deleteTimesheetLine(xeroTenantId, timesheetID, timesheetLineID, options = { headers: {} }) {
1827
- return __awaiter(this, void 0, void 0, function* () {
1826
+ deleteTimesheetLine(xeroTenantId_1, timesheetID_1, timesheetLineID_1) {
1827
+ return __awaiter(this, arguments, void 0, function* (xeroTenantId, timesheetID, timesheetLineID, options = { headers: {} }) {
1828
1828
  const localVarPath = this.basePath + '/Timesheets/{TimesheetID}/Lines/{TimesheetLineID}'
1829
1829
  .replace('{' + 'TimesheetID' + '}', encodeURIComponent(String(timesheetID)))
1830
1830
  .replace('{' + 'TimesheetLineID' + '}', encodeURIComponent(String(timesheetLineID)));
@@ -1900,8 +1900,8 @@ class PayrollUkApi {
1900
1900
  * @param xeroTenantId Xero identifier for Tenant
1901
1901
  * @param id Identifier for the benefit
1902
1902
  */
1903
- getBenefit(xeroTenantId, id, options = { headers: {} }) {
1904
- return __awaiter(this, void 0, void 0, function* () {
1903
+ getBenefit(xeroTenantId_1, id_1) {
1904
+ return __awaiter(this, arguments, void 0, function* (xeroTenantId, id, options = { headers: {} }) {
1905
1905
  const localVarPath = this.basePath + '/Benefits/{id}'
1906
1906
  .replace('{' + 'id' + '}', encodeURIComponent(String(id)));
1907
1907
  let localVarQueryParameters = {};
@@ -1972,8 +1972,8 @@ class PayrollUkApi {
1972
1972
  * @param xeroTenantId Xero identifier for Tenant
1973
1973
  * @param page Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.
1974
1974
  */
1975
- getBenefits(xeroTenantId, page, options = { headers: {} }) {
1976
- return __awaiter(this, void 0, void 0, function* () {
1975
+ getBenefits(xeroTenantId_1, page_1) {
1976
+ return __awaiter(this, arguments, void 0, function* (xeroTenantId, page, options = { headers: {} }) {
1977
1977
  const localVarPath = this.basePath + '/Benefits';
1978
1978
  let localVarQueryParameters = {};
1979
1979
  let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
@@ -2042,8 +2042,8 @@ class PayrollUkApi {
2042
2042
  * @param xeroTenantId Xero identifier for Tenant
2043
2043
  * @param deductionId Identifier for the deduction
2044
2044
  */
2045
- getDeduction(xeroTenantId, deductionId, options = { headers: {} }) {
2046
- return __awaiter(this, void 0, void 0, function* () {
2045
+ getDeduction(xeroTenantId_1, deductionId_1) {
2046
+ return __awaiter(this, arguments, void 0, function* (xeroTenantId, deductionId, options = { headers: {} }) {
2047
2047
  const localVarPath = this.basePath + '/Deductions/{deductionId}'
2048
2048
  .replace('{' + 'deductionId' + '}', encodeURIComponent(String(deductionId)));
2049
2049
  let localVarQueryParameters = {};
@@ -2114,8 +2114,8 @@ class PayrollUkApi {
2114
2114
  * @param xeroTenantId Xero identifier for Tenant
2115
2115
  * @param page Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.
2116
2116
  */
2117
- getDeductions(xeroTenantId, page, options = { headers: {} }) {
2118
- return __awaiter(this, void 0, void 0, function* () {
2117
+ getDeductions(xeroTenantId_1, page_1) {
2118
+ return __awaiter(this, arguments, void 0, function* (xeroTenantId, page, options = { headers: {} }) {
2119
2119
  const localVarPath = this.basePath + '/Deductions';
2120
2120
  let localVarQueryParameters = {};
2121
2121
  let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
@@ -2184,8 +2184,8 @@ class PayrollUkApi {
2184
2184
  * @param xeroTenantId Xero identifier for Tenant
2185
2185
  * @param id Identifier for the deduction
2186
2186
  */
2187
- getEarningsOrder(xeroTenantId, id, options = { headers: {} }) {
2188
- return __awaiter(this, void 0, void 0, function* () {
2187
+ getEarningsOrder(xeroTenantId_1, id_1) {
2188
+ return __awaiter(this, arguments, void 0, function* (xeroTenantId, id, options = { headers: {} }) {
2189
2189
  const localVarPath = this.basePath + '/EarningsOrders/{id}'
2190
2190
  .replace('{' + 'id' + '}', encodeURIComponent(String(id)));
2191
2191
  let localVarQueryParameters = {};
@@ -2256,8 +2256,8 @@ class PayrollUkApi {
2256
2256
  * @param xeroTenantId Xero identifier for Tenant
2257
2257
  * @param page Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.
2258
2258
  */
2259
- getEarningsOrders(xeroTenantId, page, options = { headers: {} }) {
2260
- return __awaiter(this, void 0, void 0, function* () {
2259
+ getEarningsOrders(xeroTenantId_1, page_1) {
2260
+ return __awaiter(this, arguments, void 0, function* (xeroTenantId, page, options = { headers: {} }) {
2261
2261
  const localVarPath = this.basePath + '/EarningsOrders';
2262
2262
  let localVarQueryParameters = {};
2263
2263
  let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
@@ -2326,8 +2326,8 @@ class PayrollUkApi {
2326
2326
  * @param xeroTenantId Xero identifier for Tenant
2327
2327
  * @param earningsRateID Identifier for the earnings rate
2328
2328
  */
2329
- getEarningsRate(xeroTenantId, earningsRateID, options = { headers: {} }) {
2330
- return __awaiter(this, void 0, void 0, function* () {
2329
+ getEarningsRate(xeroTenantId_1, earningsRateID_1) {
2330
+ return __awaiter(this, arguments, void 0, function* (xeroTenantId, earningsRateID, options = { headers: {} }) {
2331
2331
  const localVarPath = this.basePath + '/EarningsRates/{EarningsRateID}'
2332
2332
  .replace('{' + 'EarningsRateID' + '}', encodeURIComponent(String(earningsRateID)));
2333
2333
  let localVarQueryParameters = {};
@@ -2398,8 +2398,8 @@ class PayrollUkApi {
2398
2398
  * @param xeroTenantId Xero identifier for Tenant
2399
2399
  * @param page Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.
2400
2400
  */
2401
- getEarningsRates(xeroTenantId, page, options = { headers: {} }) {
2402
- return __awaiter(this, void 0, void 0, function* () {
2401
+ getEarningsRates(xeroTenantId_1, page_1) {
2402
+ return __awaiter(this, arguments, void 0, function* (xeroTenantId, page, options = { headers: {} }) {
2403
2403
  const localVarPath = this.basePath + '/EarningsRates';
2404
2404
  let localVarQueryParameters = {};
2405
2405
  let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
@@ -2468,8 +2468,8 @@ class PayrollUkApi {
2468
2468
  * @param xeroTenantId Xero identifier for Tenant
2469
2469
  * @param employeeID Employee id for single object
2470
2470
  */
2471
- getEmployee(xeroTenantId, employeeID, options = { headers: {} }) {
2472
- return __awaiter(this, void 0, void 0, function* () {
2471
+ getEmployee(xeroTenantId_1, employeeID_1) {
2472
+ return __awaiter(this, arguments, void 0, function* (xeroTenantId, employeeID, options = { headers: {} }) {
2473
2473
  const localVarPath = this.basePath + '/Employees/{EmployeeID}'
2474
2474
  .replace('{' + 'EmployeeID' + '}', encodeURIComponent(String(employeeID)));
2475
2475
  let localVarQueryParameters = {};
@@ -2541,8 +2541,8 @@ class PayrollUkApi {
2541
2541
  * @param employeeID Employee id for single object
2542
2542
  * @param leaveID Leave id for single object
2543
2543
  */
2544
- getEmployeeLeave(xeroTenantId, employeeID, leaveID, options = { headers: {} }) {
2545
- return __awaiter(this, void 0, void 0, function* () {
2544
+ getEmployeeLeave(xeroTenantId_1, employeeID_1, leaveID_1) {
2545
+ return __awaiter(this, arguments, void 0, function* (xeroTenantId, employeeID, leaveID, options = { headers: {} }) {
2546
2546
  const localVarPath = this.basePath + '/Employees/{EmployeeID}/Leave/{LeaveID}'
2547
2547
  .replace('{' + 'EmployeeID' + '}', encodeURIComponent(String(employeeID)))
2548
2548
  .replace('{' + 'LeaveID' + '}', encodeURIComponent(String(leaveID)));
@@ -2618,8 +2618,8 @@ class PayrollUkApi {
2618
2618
  * @param xeroTenantId Xero identifier for Tenant
2619
2619
  * @param employeeID Employee id for single object
2620
2620
  */
2621
- getEmployeeLeaveBalances(xeroTenantId, employeeID, options = { headers: {} }) {
2622
- return __awaiter(this, void 0, void 0, function* () {
2621
+ getEmployeeLeaveBalances(xeroTenantId_1, employeeID_1) {
2622
+ return __awaiter(this, arguments, void 0, function* (xeroTenantId, employeeID, options = { headers: {} }) {
2623
2623
  const localVarPath = this.basePath + '/Employees/{EmployeeID}/LeaveBalances'
2624
2624
  .replace('{' + 'EmployeeID' + '}', encodeURIComponent(String(employeeID)));
2625
2625
  let localVarQueryParameters = {};
@@ -2692,8 +2692,8 @@ class PayrollUkApi {
2692
2692
  * @param startDate Filter by start date
2693
2693
  * @param endDate Filter by end date
2694
2694
  */
2695
- getEmployeeLeavePeriods(xeroTenantId, employeeID, startDate, endDate, options = { headers: {} }) {
2696
- return __awaiter(this, void 0, void 0, function* () {
2695
+ getEmployeeLeavePeriods(xeroTenantId_1, employeeID_1, startDate_1, endDate_1) {
2696
+ return __awaiter(this, arguments, void 0, function* (xeroTenantId, employeeID, startDate, endDate, options = { headers: {} }) {
2697
2697
  const localVarPath = this.basePath + '/Employees/{EmployeeID}/LeavePeriods'
2698
2698
  .replace('{' + 'EmployeeID' + '}', encodeURIComponent(String(employeeID)));
2699
2699
  let localVarQueryParameters = {};
@@ -2770,8 +2770,8 @@ class PayrollUkApi {
2770
2770
  * @param xeroTenantId Xero identifier for Tenant
2771
2771
  * @param employeeID Employee id for single object
2772
2772
  */
2773
- getEmployeeLeaveTypes(xeroTenantId, employeeID, options = { headers: {} }) {
2774
- return __awaiter(this, void 0, void 0, function* () {
2773
+ getEmployeeLeaveTypes(xeroTenantId_1, employeeID_1) {
2774
+ return __awaiter(this, arguments, void 0, function* (xeroTenantId, employeeID, options = { headers: {} }) {
2775
2775
  const localVarPath = this.basePath + '/Employees/{EmployeeID}/LeaveTypes'
2776
2776
  .replace('{' + 'EmployeeID' + '}', encodeURIComponent(String(employeeID)));
2777
2777
  let localVarQueryParameters = {};
@@ -2842,8 +2842,8 @@ class PayrollUkApi {
2842
2842
  * @param xeroTenantId Xero identifier for Tenant
2843
2843
  * @param employeeID Employee id for single object
2844
2844
  */
2845
- getEmployeeLeaves(xeroTenantId, employeeID, options = { headers: {} }) {
2846
- return __awaiter(this, void 0, void 0, function* () {
2845
+ getEmployeeLeaves(xeroTenantId_1, employeeID_1) {
2846
+ return __awaiter(this, arguments, void 0, function* (xeroTenantId, employeeID, options = { headers: {} }) {
2847
2847
  const localVarPath = this.basePath + '/Employees/{EmployeeID}/Leave'
2848
2848
  .replace('{' + 'EmployeeID' + '}', encodeURIComponent(String(employeeID)));
2849
2849
  let localVarQueryParameters = {};
@@ -2914,8 +2914,8 @@ class PayrollUkApi {
2914
2914
  * @param xeroTenantId Xero identifier for Tenant
2915
2915
  * @param employeeID Employee id for single object
2916
2916
  */
2917
- getEmployeeOpeningBalances(xeroTenantId, employeeID, options = { headers: {} }) {
2918
- return __awaiter(this, void 0, void 0, function* () {
2917
+ getEmployeeOpeningBalances(xeroTenantId_1, employeeID_1) {
2918
+ return __awaiter(this, arguments, void 0, function* (xeroTenantId, employeeID, options = { headers: {} }) {
2919
2919
  const localVarPath = this.basePath + '/Employees/{EmployeeID}/ukopeningbalances'
2920
2920
  .replace('{' + 'EmployeeID' + '}', encodeURIComponent(String(employeeID)));
2921
2921
  let localVarQueryParameters = {};
@@ -2986,8 +2986,8 @@ class PayrollUkApi {
2986
2986
  * @param xeroTenantId Xero identifier for Tenant
2987
2987
  * @param employeeID Employee id for single object
2988
2988
  */
2989
- getEmployeePayTemplate(xeroTenantId, employeeID, options = { headers: {} }) {
2990
- return __awaiter(this, void 0, void 0, function* () {
2989
+ getEmployeePayTemplate(xeroTenantId_1, employeeID_1) {
2990
+ return __awaiter(this, arguments, void 0, function* (xeroTenantId, employeeID, options = { headers: {} }) {
2991
2991
  const localVarPath = this.basePath + '/Employees/{EmployeeID}/PayTemplates'
2992
2992
  .replace('{' + 'EmployeeID' + '}', encodeURIComponent(String(employeeID)));
2993
2993
  let localVarQueryParameters = {};
@@ -3058,8 +3058,8 @@ class PayrollUkApi {
3058
3058
  * @param xeroTenantId Xero identifier for Tenant
3059
3059
  * @param employeeID Employee id for single object
3060
3060
  */
3061
- getEmployeePaymentMethod(xeroTenantId, employeeID, options = { headers: {} }) {
3062
- return __awaiter(this, void 0, void 0, function* () {
3061
+ getEmployeePaymentMethod(xeroTenantId_1, employeeID_1) {
3062
+ return __awaiter(this, arguments, void 0, function* (xeroTenantId, employeeID, options = { headers: {} }) {
3063
3063
  const localVarPath = this.basePath + '/Employees/{EmployeeID}/PaymentMethods'
3064
3064
  .replace('{' + 'EmployeeID' + '}', encodeURIComponent(String(employeeID)));
3065
3065
  let localVarQueryParameters = {};
@@ -3131,8 +3131,8 @@ class PayrollUkApi {
3131
3131
  * @param employeeID Employee id for single object
3132
3132
  * @param salaryAndWagesID Id for single pay template earnings object
3133
3133
  */
3134
- getEmployeeSalaryAndWage(xeroTenantId, employeeID, salaryAndWagesID, options = { headers: {} }) {
3135
- return __awaiter(this, void 0, void 0, function* () {
3134
+ getEmployeeSalaryAndWage(xeroTenantId_1, employeeID_1, salaryAndWagesID_1) {
3135
+ return __awaiter(this, arguments, void 0, function* (xeroTenantId, employeeID, salaryAndWagesID, options = { headers: {} }) {
3136
3136
  const localVarPath = this.basePath + '/Employees/{EmployeeID}/SalaryAndWages/{SalaryAndWagesID}'
3137
3137
  .replace('{' + 'EmployeeID' + '}', encodeURIComponent(String(employeeID)))
3138
3138
  .replace('{' + 'SalaryAndWagesID' + '}', encodeURIComponent(String(salaryAndWagesID)));
@@ -3209,8 +3209,8 @@ class PayrollUkApi {
3209
3209
  * @param employeeID Employee id for single object
3210
3210
  * @param page Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.
3211
3211
  */
3212
- getEmployeeSalaryAndWages(xeroTenantId, employeeID, page, options = { headers: {} }) {
3213
- return __awaiter(this, void 0, void 0, function* () {
3212
+ getEmployeeSalaryAndWages(xeroTenantId_1, employeeID_1, page_1) {
3213
+ return __awaiter(this, arguments, void 0, function* (xeroTenantId, employeeID, page, options = { headers: {} }) {
3214
3214
  const localVarPath = this.basePath + '/Employees/{EmployeeID}/SalaryAndWages'
3215
3215
  .replace('{' + 'EmployeeID' + '}', encodeURIComponent(String(employeeID)));
3216
3216
  let localVarQueryParameters = {};
@@ -3286,8 +3286,8 @@ class PayrollUkApi {
3286
3286
  * @param leaveType Filter by the type of statutory leave
3287
3287
  * @param asOfDate The date from which to calculate balance remaining. If not specified, current date UTC is used.
3288
3288
  */
3289
- getEmployeeStatutoryLeaveBalances(xeroTenantId, employeeID, leaveType, asOfDate, options = { headers: {} }) {
3290
- return __awaiter(this, void 0, void 0, function* () {
3289
+ getEmployeeStatutoryLeaveBalances(xeroTenantId_1, employeeID_1, leaveType_1, asOfDate_1) {
3290
+ return __awaiter(this, arguments, void 0, function* (xeroTenantId, employeeID, leaveType, asOfDate, options = { headers: {} }) {
3291
3291
  const localVarPath = this.basePath + '/Employees/{EmployeeID}/StatutoryLeaveBalance'
3292
3292
  .replace('{' + 'EmployeeID' + '}', encodeURIComponent(String(employeeID)));
3293
3293
  let localVarQueryParameters = {};
@@ -3364,8 +3364,8 @@ class PayrollUkApi {
3364
3364
  * @param xeroTenantId Xero identifier for Tenant
3365
3365
  * @param statutorySickLeaveID Statutory sick leave id for single object
3366
3366
  */
3367
- getEmployeeStatutorySickLeave(xeroTenantId, statutorySickLeaveID, options = { headers: {} }) {
3368
- return __awaiter(this, void 0, void 0, function* () {
3367
+ getEmployeeStatutorySickLeave(xeroTenantId_1, statutorySickLeaveID_1) {
3368
+ return __awaiter(this, arguments, void 0, function* (xeroTenantId, statutorySickLeaveID, options = { headers: {} }) {
3369
3369
  const localVarPath = this.basePath + '/StatutoryLeaves/Sick/{StatutorySickLeaveID}'
3370
3370
  .replace('{' + 'StatutorySickLeaveID' + '}', encodeURIComponent(String(statutorySickLeaveID)));
3371
3371
  let localVarQueryParameters = {};
@@ -3436,8 +3436,8 @@ class PayrollUkApi {
3436
3436
  * @param xeroTenantId Xero identifier for Tenant
3437
3437
  * @param employeeID Employee id for single object
3438
3438
  */
3439
- getEmployeeTax(xeroTenantId, employeeID, options = { headers: {} }) {
3440
- return __awaiter(this, void 0, void 0, function* () {
3439
+ getEmployeeTax(xeroTenantId_1, employeeID_1) {
3440
+ return __awaiter(this, arguments, void 0, function* (xeroTenantId, employeeID, options = { headers: {} }) {
3441
3441
  const localVarPath = this.basePath + '/Employees/{EmployeeID}/Tax'
3442
3442
  .replace('{' + 'EmployeeID' + '}', encodeURIComponent(String(employeeID)));
3443
3443
  let localVarQueryParameters = {};
@@ -3509,8 +3509,8 @@ class PayrollUkApi {
3509
3509
  * @param filter Filter by first name, lastname, and/or whether they are an off-payroll worker
3510
3510
  * @param page Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.
3511
3511
  */
3512
- getEmployees(xeroTenantId, filter, page, options = { headers: {} }) {
3513
- return __awaiter(this, void 0, void 0, function* () {
3512
+ getEmployees(xeroTenantId_1, filter_1, page_1) {
3513
+ return __awaiter(this, arguments, void 0, function* (xeroTenantId, filter, page, options = { headers: {} }) {
3514
3514
  const localVarPath = this.basePath + '/Employees';
3515
3515
  let localVarQueryParameters = {};
3516
3516
  let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
@@ -3582,8 +3582,8 @@ class PayrollUkApi {
3582
3582
  * @param xeroTenantId Xero identifier for Tenant
3583
3583
  * @param leaveTypeID Identifier for the leave type
3584
3584
  */
3585
- getLeaveType(xeroTenantId, leaveTypeID, options = { headers: {} }) {
3586
- return __awaiter(this, void 0, void 0, function* () {
3585
+ getLeaveType(xeroTenantId_1, leaveTypeID_1) {
3586
+ return __awaiter(this, arguments, void 0, function* (xeroTenantId, leaveTypeID, options = { headers: {} }) {
3587
3587
  const localVarPath = this.basePath + '/LeaveTypes/{LeaveTypeID}'
3588
3588
  .replace('{' + 'LeaveTypeID' + '}', encodeURIComponent(String(leaveTypeID)));
3589
3589
  let localVarQueryParameters = {};
@@ -3655,8 +3655,8 @@ class PayrollUkApi {
3655
3655
  * @param page Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.
3656
3656
  * @param activeOnly Filters leave types by active status. By default the API returns all leave types.
3657
3657
  */
3658
- getLeaveTypes(xeroTenantId, page, activeOnly, options = { headers: {} }) {
3659
- return __awaiter(this, void 0, void 0, function* () {
3658
+ getLeaveTypes(xeroTenantId_1, page_1, activeOnly_1) {
3659
+ return __awaiter(this, arguments, void 0, function* (xeroTenantId, page, activeOnly, options = { headers: {} }) {
3660
3660
  const localVarPath = this.basePath + '/LeaveTypes';
3661
3661
  let localVarQueryParameters = {};
3662
3662
  let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
@@ -3728,8 +3728,8 @@ class PayrollUkApi {
3728
3728
  * @param xeroTenantId Xero identifier for Tenant
3729
3729
  * @param payRunID Identifier for the pay run
3730
3730
  */
3731
- getPayRun(xeroTenantId, payRunID, options = { headers: {} }) {
3732
- return __awaiter(this, void 0, void 0, function* () {
3731
+ getPayRun(xeroTenantId_1, payRunID_1) {
3732
+ return __awaiter(this, arguments, void 0, function* (xeroTenantId, payRunID, options = { headers: {} }) {
3733
3733
  const localVarPath = this.basePath + '/PayRuns/{PayRunID}'
3734
3734
  .replace('{' + 'PayRunID' + '}', encodeURIComponent(String(payRunID)));
3735
3735
  let localVarQueryParameters = {};
@@ -3800,8 +3800,8 @@ class PayrollUkApi {
3800
3800
  * @param xeroTenantId Xero identifier for Tenant
3801
3801
  * @param payRunCalendarID Identifier for the payrun calendars
3802
3802
  */
3803
- getPayRunCalendar(xeroTenantId, payRunCalendarID, options = { headers: {} }) {
3804
- return __awaiter(this, void 0, void 0, function* () {
3803
+ getPayRunCalendar(xeroTenantId_1, payRunCalendarID_1) {
3804
+ return __awaiter(this, arguments, void 0, function* (xeroTenantId, payRunCalendarID, options = { headers: {} }) {
3805
3805
  const localVarPath = this.basePath + '/PayRunCalendars/{PayRunCalendarID}'
3806
3806
  .replace('{' + 'PayRunCalendarID' + '}', encodeURIComponent(String(payRunCalendarID)));
3807
3807
  let localVarQueryParameters = {};
@@ -3872,8 +3872,8 @@ class PayrollUkApi {
3872
3872
  * @param xeroTenantId Xero identifier for Tenant
3873
3873
  * @param page Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.
3874
3874
  */
3875
- getPayRunCalendars(xeroTenantId, page, options = { headers: {} }) {
3876
- return __awaiter(this, void 0, void 0, function* () {
3875
+ getPayRunCalendars(xeroTenantId_1, page_1) {
3876
+ return __awaiter(this, arguments, void 0, function* (xeroTenantId, page, options = { headers: {} }) {
3877
3877
  const localVarPath = this.basePath + '/PayRunCalendars';
3878
3878
  let localVarQueryParameters = {};
3879
3879
  let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
@@ -3943,8 +3943,8 @@ class PayrollUkApi {
3943
3943
  * @param page Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.
3944
3944
  * @param 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.
3945
3945
  */
3946
- getPayRuns(xeroTenantId, page, status, options = { headers: {} }) {
3947
- return __awaiter(this, void 0, void 0, function* () {
3946
+ getPayRuns(xeroTenantId_1, page_1, status_1) {
3947
+ return __awaiter(this, arguments, void 0, function* (xeroTenantId, page, status, options = { headers: {} }) {
3948
3948
  const localVarPath = this.basePath + '/PayRuns';
3949
3949
  let localVarQueryParameters = {};
3950
3950
  let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
@@ -4016,8 +4016,8 @@ class PayrollUkApi {
4016
4016
  * @param xeroTenantId Xero identifier for Tenant
4017
4017
  * @param payslipID Identifier for the payslip
4018
4018
  */
4019
- getPaySlip(xeroTenantId, payslipID, options = { headers: {} }) {
4020
- return __awaiter(this, void 0, void 0, function* () {
4019
+ getPaySlip(xeroTenantId_1, payslipID_1) {
4020
+ return __awaiter(this, arguments, void 0, function* (xeroTenantId, payslipID, options = { headers: {} }) {
4021
4021
  const localVarPath = this.basePath + '/Payslips/{PayslipID}'
4022
4022
  .replace('{' + 'PayslipID' + '}', encodeURIComponent(String(payslipID)));
4023
4023
  let localVarQueryParameters = {};
@@ -4089,8 +4089,8 @@ class PayrollUkApi {
4089
4089
  * @param payRunID PayrunID which specifies the containing payrun of payslips to retrieve. By default, the API does not group payslips by payrun.
4090
4090
  * @param page Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.
4091
4091
  */
4092
- getPaySlips(xeroTenantId, payRunID, page, options = { headers: {} }) {
4093
- return __awaiter(this, void 0, void 0, function* () {
4092
+ getPaySlips(xeroTenantId_1, payRunID_1, page_1) {
4093
+ return __awaiter(this, arguments, void 0, function* (xeroTenantId, payRunID, page, options = { headers: {} }) {
4094
4094
  const localVarPath = this.basePath + '/Payslips';
4095
4095
  let localVarQueryParameters = {};
4096
4096
  let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
@@ -4166,8 +4166,8 @@ class PayrollUkApi {
4166
4166
  * @param xeroTenantId Xero identifier for Tenant
4167
4167
  * @param reimbursementID Identifier for the reimbursement
4168
4168
  */
4169
- getReimbursement(xeroTenantId, reimbursementID, options = { headers: {} }) {
4170
- return __awaiter(this, void 0, void 0, function* () {
4169
+ getReimbursement(xeroTenantId_1, reimbursementID_1) {
4170
+ return __awaiter(this, arguments, void 0, function* (xeroTenantId, reimbursementID, options = { headers: {} }) {
4171
4171
  const localVarPath = this.basePath + '/Reimbursements/{ReimbursementID}'
4172
4172
  .replace('{' + 'ReimbursementID' + '}', encodeURIComponent(String(reimbursementID)));
4173
4173
  let localVarQueryParameters = {};
@@ -4238,8 +4238,8 @@ class PayrollUkApi {
4238
4238
  * @param xeroTenantId Xero identifier for Tenant
4239
4239
  * @param page Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.
4240
4240
  */
4241
- getReimbursements(xeroTenantId, page, options = { headers: {} }) {
4242
- return __awaiter(this, void 0, void 0, function* () {
4241
+ getReimbursements(xeroTenantId_1, page_1) {
4242
+ return __awaiter(this, arguments, void 0, function* (xeroTenantId, page, options = { headers: {} }) {
4243
4243
  const localVarPath = this.basePath + '/Reimbursements';
4244
4244
  let localVarQueryParameters = {};
4245
4245
  let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
@@ -4307,8 +4307,8 @@ class PayrollUkApi {
4307
4307
  * @summary Retrieves payroll settings
4308
4308
  * @param xeroTenantId Xero identifier for Tenant
4309
4309
  */
4310
- getSettings(xeroTenantId, options = { headers: {} }) {
4311
- return __awaiter(this, void 0, void 0, function* () {
4310
+ getSettings(xeroTenantId_1) {
4311
+ return __awaiter(this, arguments, void 0, function* (xeroTenantId, options = { headers: {} }) {
4312
4312
  const localVarPath = this.basePath + '/Settings';
4313
4313
  let localVarQueryParameters = {};
4314
4314
  let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
@@ -4375,8 +4375,8 @@ class PayrollUkApi {
4375
4375
  * @param employeeID Employee id for single object
4376
4376
  * @param activeOnly Filter response with leaves that are currently active or yet to be taken. If not specified, all leaves (past, current, and future scheduled) are returned
4377
4377
  */
4378
- getStatutoryLeaveSummary(xeroTenantId, employeeID, activeOnly, options = { headers: {} }) {
4379
- return __awaiter(this, void 0, void 0, function* () {
4378
+ getStatutoryLeaveSummary(xeroTenantId_1, employeeID_1, activeOnly_1) {
4379
+ return __awaiter(this, arguments, void 0, function* (xeroTenantId, employeeID, activeOnly, options = { headers: {} }) {
4380
4380
  const localVarPath = this.basePath + '/StatutoryLeaves/Summary/{EmployeeID}'
4381
4381
  .replace('{' + 'EmployeeID' + '}', encodeURIComponent(String(employeeID)));
4382
4382
  let localVarQueryParameters = {};
@@ -4450,8 +4450,8 @@ class PayrollUkApi {
4450
4450
  * @param xeroTenantId Xero identifier for Tenant
4451
4451
  * @param timesheetID Identifier for the timesheet
4452
4452
  */
4453
- getTimesheet(xeroTenantId, timesheetID, options = { headers: {} }) {
4454
- return __awaiter(this, void 0, void 0, function* () {
4453
+ getTimesheet(xeroTenantId_1, timesheetID_1) {
4454
+ return __awaiter(this, arguments, void 0, function* (xeroTenantId, timesheetID, options = { headers: {} }) {
4455
4455
  const localVarPath = this.basePath + '/Timesheets/{TimesheetID}'
4456
4456
  .replace('{' + 'TimesheetID' + '}', encodeURIComponent(String(timesheetID)));
4457
4457
  let localVarQueryParameters = {};
@@ -4527,8 +4527,8 @@ class PayrollUkApi {
4527
4527
  * @param endDate filter results by any timesheets with a endDate on or before the provided date
4528
4528
  * @param sort sort the order of timesheets returned. The default is based on the timesheets createdDate, sorted oldest to newest. Currently, the only other option is to reverse the order based on the timesheets startDate, sorted newest to oldest.
4529
4529
  */
4530
- getTimesheets(xeroTenantId, page, filter, status, startDate, endDate, sort, options = { headers: {} }) {
4531
- return __awaiter(this, void 0, void 0, function* () {
4530
+ getTimesheets(xeroTenantId_1, page_1, filter_1, status_1, startDate_1, endDate_1, sort_1) {
4531
+ return __awaiter(this, arguments, void 0, function* (xeroTenantId, page, filter, status, startDate, endDate, sort, options = { headers: {} }) {
4532
4532
  const localVarPath = this.basePath + '/Timesheets';
4533
4533
  let localVarQueryParameters = {};
4534
4534
  let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
@@ -4611,8 +4611,8 @@ class PayrollUkApi {
4611
4611
  * @summary Retrieves tracking categories
4612
4612
  * @param xeroTenantId Xero identifier for Tenant
4613
4613
  */
4614
- getTrackingCategories(xeroTenantId, options = { headers: {} }) {
4615
- return __awaiter(this, void 0, void 0, function* () {
4614
+ getTrackingCategories(xeroTenantId_1) {
4615
+ return __awaiter(this, arguments, void 0, function* (xeroTenantId, options = { headers: {} }) {
4616
4616
  const localVarPath = this.basePath + '/Settings/trackingCategories';
4617
4617
  let localVarQueryParameters = {};
4618
4618
  let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
@@ -4679,8 +4679,8 @@ class PayrollUkApi {
4679
4679
  * @param timesheetID Identifier for the timesheet
4680
4680
  * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
4681
4681
  */
4682
- revertTimesheet(xeroTenantId, timesheetID, idempotencyKey, options = { headers: {} }) {
4683
- return __awaiter(this, void 0, void 0, function* () {
4682
+ revertTimesheet(xeroTenantId_1, timesheetID_1, idempotencyKey_1) {
4683
+ return __awaiter(this, arguments, void 0, function* (xeroTenantId, timesheetID, idempotencyKey, options = { headers: {} }) {
4684
4684
  const localVarPath = this.basePath + '/Timesheets/{TimesheetID}/RevertToDraft'
4685
4685
  .replace('{' + 'TimesheetID' + '}', encodeURIComponent(String(timesheetID)));
4686
4686
  let localVarQueryParameters = {};
@@ -4754,8 +4754,8 @@ class PayrollUkApi {
4754
4754
  * @param employee
4755
4755
  * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
4756
4756
  */
4757
- updateEmployee(xeroTenantId, employeeID, employee, idempotencyKey, options = { headers: {} }) {
4758
- return __awaiter(this, void 0, void 0, function* () {
4757
+ updateEmployee(xeroTenantId_1, employeeID_1, employee_1, idempotencyKey_1) {
4758
+ return __awaiter(this, arguments, void 0, function* (xeroTenantId, employeeID, employee, idempotencyKey, options = { headers: {} }) {
4759
4759
  const localVarPath = this.basePath + '/Employees/{EmployeeID}'
4760
4760
  .replace('{' + 'EmployeeID' + '}', encodeURIComponent(String(employeeID)));
4761
4761
  let localVarQueryParameters = {};
@@ -4834,8 +4834,8 @@ class PayrollUkApi {
4834
4834
  * @param earningsTemplate
4835
4835
  * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
4836
4836
  */
4837
- updateEmployeeEarningsTemplate(xeroTenantId, employeeID, payTemplateEarningID, earningsTemplate, idempotencyKey, options = { headers: {} }) {
4838
- return __awaiter(this, void 0, void 0, function* () {
4837
+ updateEmployeeEarningsTemplate(xeroTenantId_1, employeeID_1, payTemplateEarningID_1, earningsTemplate_1, idempotencyKey_1) {
4838
+ return __awaiter(this, arguments, void 0, function* (xeroTenantId, employeeID, payTemplateEarningID, earningsTemplate, idempotencyKey, options = { headers: {} }) {
4839
4839
  const localVarPath = this.basePath + '/Employees/{EmployeeID}/PayTemplates/earnings/{PayTemplateEarningID}'
4840
4840
  .replace('{' + 'EmployeeID' + '}', encodeURIComponent(String(employeeID)))
4841
4841
  .replace('{' + 'PayTemplateEarningID' + '}', encodeURIComponent(String(payTemplateEarningID)));
@@ -4919,8 +4919,8 @@ class PayrollUkApi {
4919
4919
  * @param employeeLeave
4920
4920
  * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
4921
4921
  */
4922
- updateEmployeeLeave(xeroTenantId, employeeID, leaveID, employeeLeave, idempotencyKey, options = { headers: {} }) {
4923
- return __awaiter(this, void 0, void 0, function* () {
4922
+ updateEmployeeLeave(xeroTenantId_1, employeeID_1, leaveID_1, employeeLeave_1, idempotencyKey_1) {
4923
+ return __awaiter(this, arguments, void 0, function* (xeroTenantId, employeeID, leaveID, employeeLeave, idempotencyKey, options = { headers: {} }) {
4924
4924
  const localVarPath = this.basePath + '/Employees/{EmployeeID}/Leave/{LeaveID}'
4925
4925
  .replace('{' + 'EmployeeID' + '}', encodeURIComponent(String(employeeID)))
4926
4926
  .replace('{' + 'LeaveID' + '}', encodeURIComponent(String(leaveID)));
@@ -5003,8 +5003,8 @@ class PayrollUkApi {
5003
5003
  * @param employeeOpeningBalances
5004
5004
  * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
5005
5005
  */
5006
- updateEmployeeOpeningBalances(xeroTenantId, employeeID, employeeOpeningBalances, idempotencyKey, options = { headers: {} }) {
5007
- return __awaiter(this, void 0, void 0, function* () {
5006
+ updateEmployeeOpeningBalances(xeroTenantId_1, employeeID_1, employeeOpeningBalances_1, idempotencyKey_1) {
5007
+ return __awaiter(this, arguments, void 0, function* (xeroTenantId, employeeID, employeeOpeningBalances, idempotencyKey, options = { headers: {} }) {
5008
5008
  const localVarPath = this.basePath + '/Employees/{EmployeeID}/ukopeningbalances'
5009
5009
  .replace('{' + 'EmployeeID' + '}', encodeURIComponent(String(employeeID)));
5010
5010
  let localVarQueryParameters = {};
@@ -5083,8 +5083,8 @@ class PayrollUkApi {
5083
5083
  * @param salaryAndWage
5084
5084
  * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
5085
5085
  */
5086
- updateEmployeeSalaryAndWage(xeroTenantId, employeeID, salaryAndWagesID, salaryAndWage, idempotencyKey, options = { headers: {} }) {
5087
- return __awaiter(this, void 0, void 0, function* () {
5086
+ updateEmployeeSalaryAndWage(xeroTenantId_1, employeeID_1, salaryAndWagesID_1, salaryAndWage_1, idempotencyKey_1) {
5087
+ return __awaiter(this, arguments, void 0, function* (xeroTenantId, employeeID, salaryAndWagesID, salaryAndWage, idempotencyKey, options = { headers: {} }) {
5088
5088
  const localVarPath = this.basePath + '/Employees/{EmployeeID}/SalaryAndWages/{SalaryAndWagesID}'
5089
5089
  .replace('{' + 'EmployeeID' + '}', encodeURIComponent(String(employeeID)))
5090
5090
  .replace('{' + 'SalaryAndWagesID' + '}', encodeURIComponent(String(salaryAndWagesID)));
@@ -5167,8 +5167,8 @@ class PayrollUkApi {
5167
5167
  * @param payRun
5168
5168
  * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
5169
5169
  */
5170
- updatePayRun(xeroTenantId, payRunID, payRun, idempotencyKey, options = { headers: {} }) {
5171
- return __awaiter(this, void 0, void 0, function* () {
5170
+ updatePayRun(xeroTenantId_1, payRunID_1, payRun_1, idempotencyKey_1) {
5171
+ return __awaiter(this, arguments, void 0, function* (xeroTenantId, payRunID, payRun, idempotencyKey, options = { headers: {} }) {
5172
5172
  const localVarPath = this.basePath + '/PayRuns/{PayRunID}'
5173
5173
  .replace('{' + 'PayRunID' + '}', encodeURIComponent(String(payRunID)));
5174
5174
  let localVarQueryParameters = {};
@@ -5247,8 +5247,8 @@ class PayrollUkApi {
5247
5247
  * @param timesheetLine
5248
5248
  * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
5249
5249
  */
5250
- updateTimesheetLine(xeroTenantId, timesheetID, timesheetLineID, timesheetLine, idempotencyKey, options = { headers: {} }) {
5251
- return __awaiter(this, void 0, void 0, function* () {
5250
+ updateTimesheetLine(xeroTenantId_1, timesheetID_1, timesheetLineID_1, timesheetLine_1, idempotencyKey_1) {
5251
+ return __awaiter(this, arguments, void 0, function* (xeroTenantId, timesheetID, timesheetLineID, timesheetLine, idempotencyKey, options = { headers: {} }) {
5252
5252
  const localVarPath = this.basePath + '/Timesheets/{TimesheetID}/Lines/{TimesheetLineID}'
5253
5253
  .replace('{' + 'TimesheetID' + '}', encodeURIComponent(String(timesheetID)))
5254
5254
  .replace('{' + 'TimesheetLineID' + '}', encodeURIComponent(String(timesheetLineID)));