xero-node 9.3.0-alpha.5 → 10.0.0

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.
Files changed (49) hide show
  1. package/dist/XeroClient.js +2 -2
  2. package/dist/XeroClient.js.map +1 -1
  3. package/dist/gen/api/accountingApi.d.ts +4 -1
  4. package/dist/gen/api/accountingApi.js +476 -476
  5. package/dist/gen/api/accountingApi.js.map +1 -1
  6. package/dist/gen/api/appStoreApi.d.ts +1 -1
  7. package/dist/gen/api/appStoreApi.js +10 -10
  8. package/dist/gen/api/appStoreApi.js.map +1 -1
  9. package/dist/gen/api/assetApi.d.ts +1 -1
  10. package/dist/gen/api/assetApi.js +14 -14
  11. package/dist/gen/api/assetApi.js.map +1 -1
  12. package/dist/gen/api/bankfeedsApi.d.ts +1 -1
  13. package/dist/gen/api/bankfeedsApi.js +16 -16
  14. package/dist/gen/api/bankfeedsApi.js.map +1 -1
  15. package/dist/gen/api/filesApi.d.ts +4 -1
  16. package/dist/gen/api/filesApi.js +38 -38
  17. package/dist/gen/api/filesApi.js.map +1 -1
  18. package/dist/gen/api/financeApi.d.ts +1 -1
  19. package/dist/gen/api/financeApi.js +26 -26
  20. package/dist/gen/api/financeApi.js.map +1 -1
  21. package/dist/gen/api/payrollAUApi.d.ts +1 -1
  22. package/dist/gen/api/payrollAUApi.js +66 -66
  23. package/dist/gen/api/payrollAUApi.js.map +1 -1
  24. package/dist/gen/api/payrollNZApi.d.ts +1 -1
  25. package/dist/gen/api/payrollNZApi.js +146 -146
  26. package/dist/gen/api/payrollNZApi.js.map +1 -1
  27. package/dist/gen/api/payrollUKApi.d.ts +1 -1
  28. package/dist/gen/api/payrollUKApi.js +142 -142
  29. package/dist/gen/api/payrollUKApi.js.map +1 -1
  30. package/dist/gen/api/projectApi.d.ts +1 -1
  31. package/dist/gen/api/projectApi.js +34 -34
  32. package/dist/gen/api/projectApi.js.map +1 -1
  33. package/dist/gen/model/finance/currentStatementResponse.d.ts +1 -1
  34. package/dist/gen/model/finance/dataSourceResponse.d.ts +0 -12
  35. package/dist/gen/model/finance/dataSourceResponse.js +0 -15
  36. package/dist/gen/model/finance/dataSourceResponse.js.map +1 -1
  37. package/dist/gen/model/payroll-nz/employeeLeaveSetup.d.ts +15 -3
  38. package/dist/gen/model/payroll-nz/employeeLeaveSetup.js +15 -0
  39. package/dist/gen/model/payroll-nz/employeeLeaveSetup.js.map +1 -1
  40. package/dist/gen/model/payroll-nz/employeeLeaveType.d.ts +15 -3
  41. package/dist/gen/model/payroll-nz/employeeLeaveType.js +15 -0
  42. package/dist/gen/model/payroll-nz/employeeLeaveType.js.map +1 -1
  43. package/dist/gen/model/payroll-nz/leavePeriod.d.ts +15 -2
  44. package/dist/gen/model/payroll-nz/leavePeriod.js +16 -0
  45. package/dist/gen/model/payroll-nz/leavePeriod.js.map +1 -1
  46. package/dist/gen/model/payroll-nz/leaveType.d.ts +8 -0
  47. package/dist/gen/model/payroll-nz/leaveType.js +10 -0
  48. package/dist/gen/model/payroll-nz/leaveType.js.map +1 -1
  49. package/package.json +6 -6
@@ -3,7 +3,7 @@
3
3
  * Xero Payroll NZ
4
4
  * This is the Xero Payroll API for orgs in the NZ region.
5
5
  *
6
- * The version of the OpenAPI document: 6.3.0
6
+ * The version of the OpenAPI document: 7.0.0
7
7
  * Contact: api@xero.com
8
8
  *
9
9
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -38,7 +38,7 @@ var PayrollNzApiApiKeys;
38
38
  class PayrollNzApi {
39
39
  constructor(basePathOrUsername, password, basePath) {
40
40
  this._basePath = defaultBasePath;
41
- this.defaultHeaders = { 'user-agent': 'xero-node-9.3.0' };
41
+ this.defaultHeaders = { 'user-agent': 'xero-node-10.0.0' };
42
42
  this._useQuerystring = false;
43
43
  this.binaryHeaders = {};
44
44
  this.authentications = {
@@ -81,8 +81,8 @@ class PayrollNzApi {
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_1, timesheetID_1, idempotencyKey_1) {
85
- return __awaiter(this, arguments, void 0, function* (xeroTenantId, timesheetID, idempotencyKey, options = { headers: {} }) {
84
+ approveTimesheet(xeroTenantId, timesheetID, idempotencyKey, options = { headers: {} }) {
85
+ return __awaiter(this, void 0, void 0, function* () {
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 PayrollNzApi {
155
155
  * @param deduction
156
156
  * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
157
157
  */
158
- createDeduction(xeroTenantId_1, deduction_1, idempotencyKey_1) {
159
- return __awaiter(this, arguments, void 0, function* (xeroTenantId, deduction, idempotencyKey, options = { headers: {} }) {
158
+ createDeduction(xeroTenantId, deduction, idempotencyKey, options = { headers: {} }) {
159
+ return __awaiter(this, void 0, void 0, function* () {
160
160
  const localVarPath = this.basePath + '/Deductions';
161
161
  let localVarQueryParameters = {};
162
162
  let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
@@ -228,8 +228,8 @@ class PayrollNzApi {
228
228
  * @param earningsRate
229
229
  * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
230
230
  */
231
- createEarningsRate(xeroTenantId_1, earningsRate_1, idempotencyKey_1) {
232
- return __awaiter(this, arguments, void 0, function* (xeroTenantId, earningsRate, idempotencyKey, options = { headers: {} }) {
231
+ createEarningsRate(xeroTenantId, earningsRate, idempotencyKey, options = { headers: {} }) {
232
+ return __awaiter(this, void 0, void 0, function* () {
233
233
  const localVarPath = this.basePath + '/EarningsRates';
234
234
  let localVarQueryParameters = {};
235
235
  let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
@@ -301,8 +301,8 @@ class PayrollNzApi {
301
301
  * @param employee
302
302
  * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
303
303
  */
304
- createEmployee(xeroTenantId_1, employee_1, idempotencyKey_1) {
305
- return __awaiter(this, arguments, void 0, function* (xeroTenantId, employee, idempotencyKey, options = { headers: {} }) {
304
+ createEmployee(xeroTenantId, employee, idempotencyKey, options = { headers: {} }) {
305
+ return __awaiter(this, void 0, void 0, function* () {
306
306
  const localVarPath = this.basePath + '/Employees';
307
307
  let localVarQueryParameters = {};
308
308
  let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
@@ -375,8 +375,8 @@ class PayrollNzApi {
375
375
  * @param earningsTemplate
376
376
  * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
377
377
  */
378
- createEmployeeEarningsTemplate(xeroTenantId_1, employeeID_1, earningsTemplate_1, idempotencyKey_1) {
379
- return __awaiter(this, arguments, void 0, function* (xeroTenantId, employeeID, earningsTemplate, idempotencyKey, options = { headers: {} }) {
378
+ createEmployeeEarningsTemplate(xeroTenantId, employeeID, earningsTemplate, idempotencyKey, options = { headers: {} }) {
379
+ return __awaiter(this, void 0, void 0, function* () {
380
380
  const localVarPath = this.basePath + '/Employees/{EmployeeID}/PayTemplates/Earnings'
381
381
  .replace('{' + 'EmployeeID' + '}', encodeURIComponent(String(employeeID)));
382
382
  let localVarQueryParameters = {};
@@ -454,8 +454,8 @@ class PayrollNzApi {
454
454
  * @param employeeLeave
455
455
  * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
456
456
  */
457
- createEmployeeLeave(xeroTenantId_1, employeeID_1, employeeLeave_1, idempotencyKey_1) {
458
- return __awaiter(this, arguments, void 0, function* (xeroTenantId, employeeID, employeeLeave, idempotencyKey, options = { headers: {} }) {
457
+ createEmployeeLeave(xeroTenantId, employeeID, employeeLeave, idempotencyKey, options = { headers: {} }) {
458
+ return __awaiter(this, void 0, void 0, function* () {
459
459
  const localVarPath = this.basePath + '/Employees/{EmployeeID}/Leave'
460
460
  .replace('{' + 'EmployeeID' + '}', encodeURIComponent(String(employeeID)));
461
461
  let localVarQueryParameters = {};
@@ -533,8 +533,8 @@ class PayrollNzApi {
533
533
  * @param employeeLeaveSetup
534
534
  * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
535
535
  */
536
- createEmployeeLeaveSetup(xeroTenantId_1, employeeID_1, employeeLeaveSetup_1, idempotencyKey_1) {
537
- return __awaiter(this, arguments, void 0, function* (xeroTenantId, employeeID, employeeLeaveSetup, idempotencyKey, options = { headers: {} }) {
536
+ createEmployeeLeaveSetup(xeroTenantId, employeeID, employeeLeaveSetup, idempotencyKey, options = { headers: {} }) {
537
+ return __awaiter(this, void 0, void 0, function* () {
538
538
  const localVarPath = this.basePath + '/Employees/{EmployeeID}/LeaveSetup'
539
539
  .replace('{' + 'EmployeeID' + '}', encodeURIComponent(String(employeeID)));
540
540
  let localVarQueryParameters = {};
@@ -612,8 +612,8 @@ class PayrollNzApi {
612
612
  * @param employeeLeaveType
613
613
  * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
614
614
  */
615
- createEmployeeLeaveType(xeroTenantId_1, employeeID_1, employeeLeaveType_1, idempotencyKey_1) {
616
- return __awaiter(this, arguments, void 0, function* (xeroTenantId, employeeID, employeeLeaveType, idempotencyKey, options = { headers: {} }) {
615
+ createEmployeeLeaveType(xeroTenantId, employeeID, employeeLeaveType, idempotencyKey, options = { headers: {} }) {
616
+ return __awaiter(this, void 0, void 0, function* () {
617
617
  const localVarPath = this.basePath + '/Employees/{EmployeeID}/LeaveTypes'
618
618
  .replace('{' + 'EmployeeID' + '}', encodeURIComponent(String(employeeID)));
619
619
  let localVarQueryParameters = {};
@@ -691,8 +691,8 @@ class PayrollNzApi {
691
691
  * @param employeeOpeningBalance
692
692
  * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
693
693
  */
694
- createEmployeeOpeningBalances(xeroTenantId_1, employeeID_1, employeeOpeningBalance_1, idempotencyKey_1) {
695
- return __awaiter(this, arguments, void 0, function* (xeroTenantId, employeeID, employeeOpeningBalance, idempotencyKey, options = { headers: {} }) {
694
+ createEmployeeOpeningBalances(xeroTenantId, employeeID, employeeOpeningBalance, idempotencyKey, options = { headers: {} }) {
695
+ return __awaiter(this, void 0, void 0, function* () {
696
696
  const localVarPath = this.basePath + '/Employees/{EmployeeID}/OpeningBalances'
697
697
  .replace('{' + 'EmployeeID' + '}', encodeURIComponent(String(employeeID)));
698
698
  let localVarQueryParameters = {};
@@ -770,8 +770,8 @@ class PayrollNzApi {
770
770
  * @param paymentMethod
771
771
  * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
772
772
  */
773
- createEmployeePaymentMethod(xeroTenantId_1, employeeID_1, paymentMethod_1, idempotencyKey_1) {
774
- return __awaiter(this, arguments, void 0, function* (xeroTenantId, employeeID, paymentMethod, idempotencyKey, options = { headers: {} }) {
773
+ createEmployeePaymentMethod(xeroTenantId, employeeID, paymentMethod, idempotencyKey, options = { headers: {} }) {
774
+ return __awaiter(this, void 0, void 0, function* () {
775
775
  const localVarPath = this.basePath + '/Employees/{EmployeeID}/PaymentMethods'
776
776
  .replace('{' + 'EmployeeID' + '}', encodeURIComponent(String(employeeID)));
777
777
  let localVarQueryParameters = {};
@@ -849,8 +849,8 @@ class PayrollNzApi {
849
849
  * @param salaryAndWage
850
850
  * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
851
851
  */
852
- createEmployeeSalaryAndWage(xeroTenantId_1, employeeID_1, salaryAndWage_1, idempotencyKey_1) {
853
- return __awaiter(this, arguments, void 0, function* (xeroTenantId, employeeID, salaryAndWage, idempotencyKey, options = { headers: {} }) {
852
+ createEmployeeSalaryAndWage(xeroTenantId, employeeID, salaryAndWage, idempotencyKey, options = { headers: {} }) {
853
+ return __awaiter(this, void 0, void 0, function* () {
854
854
  const localVarPath = this.basePath + '/Employees/{EmployeeID}/SalaryAndWages'
855
855
  .replace('{' + 'EmployeeID' + '}', encodeURIComponent(String(employeeID)));
856
856
  let localVarQueryParameters = {};
@@ -928,8 +928,8 @@ class PayrollNzApi {
928
928
  * @param employeeWorkingPatternWithWorkingWeeksRequest
929
929
  * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
930
930
  */
931
- createEmployeeWorkingPattern(xeroTenantId_1, employeeID_1, employeeWorkingPatternWithWorkingWeeksRequest_1, idempotencyKey_1) {
932
- return __awaiter(this, arguments, void 0, function* (xeroTenantId, employeeID, employeeWorkingPatternWithWorkingWeeksRequest, idempotencyKey, options = { headers: {} }) {
931
+ createEmployeeWorkingPattern(xeroTenantId, employeeID, employeeWorkingPatternWithWorkingWeeksRequest, idempotencyKey, options = { headers: {} }) {
932
+ return __awaiter(this, void 0, void 0, function* () {
933
933
  const localVarPath = this.basePath + '/Employees/{EmployeeID}/Working-Patterns'
934
934
  .replace('{' + 'EmployeeID' + '}', encodeURIComponent(String(employeeID)));
935
935
  let localVarQueryParameters = {};
@@ -1007,8 +1007,8 @@ class PayrollNzApi {
1007
1007
  * @param employment
1008
1008
  * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
1009
1009
  */
1010
- createEmployment(xeroTenantId_1, employeeID_1, employment_1, idempotencyKey_1) {
1011
- return __awaiter(this, arguments, void 0, function* (xeroTenantId, employeeID, employment, idempotencyKey, options = { headers: {} }) {
1010
+ createEmployment(xeroTenantId, employeeID, employment, idempotencyKey, options = { headers: {} }) {
1011
+ return __awaiter(this, void 0, void 0, function* () {
1012
1012
  const localVarPath = this.basePath + '/Employees/{EmployeeID}/Employment'
1013
1013
  .replace('{' + 'EmployeeID' + '}', encodeURIComponent(String(employeeID)));
1014
1014
  let localVarQueryParameters = {};
@@ -1085,8 +1085,8 @@ class PayrollNzApi {
1085
1085
  * @param leaveType
1086
1086
  * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
1087
1087
  */
1088
- createLeaveType(xeroTenantId_1, leaveType_1, idempotencyKey_1) {
1089
- return __awaiter(this, arguments, void 0, function* (xeroTenantId, leaveType, idempotencyKey, options = { headers: {} }) {
1088
+ createLeaveType(xeroTenantId, leaveType, idempotencyKey, options = { headers: {} }) {
1089
+ return __awaiter(this, void 0, void 0, function* () {
1090
1090
  const localVarPath = this.basePath + '/LeaveTypes';
1091
1091
  let localVarQueryParameters = {};
1092
1092
  let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
@@ -1159,8 +1159,8 @@ class PayrollNzApi {
1159
1159
  * @param earningsTemplate
1160
1160
  * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
1161
1161
  */
1162
- createMultipleEmployeeEarningsTemplate(xeroTenantId_1, employeeID_1, earningsTemplate_1, idempotencyKey_1) {
1163
- return __awaiter(this, arguments, void 0, function* (xeroTenantId, employeeID, earningsTemplate, idempotencyKey, options = { headers: {} }) {
1162
+ createMultipleEmployeeEarningsTemplate(xeroTenantId, employeeID, earningsTemplate, idempotencyKey, options = { headers: {} }) {
1163
+ return __awaiter(this, void 0, void 0, function* () {
1164
1164
  const localVarPath = this.basePath + '/Employees/{EmployeeID}/PayTemplateEarnings'
1165
1165
  .replace('{' + 'EmployeeID' + '}', encodeURIComponent(String(employeeID)));
1166
1166
  let localVarQueryParameters = {};
@@ -1237,8 +1237,8 @@ class PayrollNzApi {
1237
1237
  * @param payRun
1238
1238
  * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
1239
1239
  */
1240
- createPayRun(xeroTenantId_1, payRun_1, idempotencyKey_1) {
1241
- return __awaiter(this, arguments, void 0, function* (xeroTenantId, payRun, idempotencyKey, options = { headers: {} }) {
1240
+ createPayRun(xeroTenantId, payRun, idempotencyKey, options = { headers: {} }) {
1241
+ return __awaiter(this, void 0, void 0, function* () {
1242
1242
  const localVarPath = this.basePath + '/PayRuns';
1243
1243
  let localVarQueryParameters = {};
1244
1244
  let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
@@ -1310,8 +1310,8 @@ class PayrollNzApi {
1310
1310
  * @param payRunCalendar
1311
1311
  * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
1312
1312
  */
1313
- createPayRunCalendar(xeroTenantId_1, payRunCalendar_1, idempotencyKey_1) {
1314
- return __awaiter(this, arguments, void 0, function* (xeroTenantId, payRunCalendar, idempotencyKey, options = { headers: {} }) {
1313
+ createPayRunCalendar(xeroTenantId, payRunCalendar, idempotencyKey, options = { headers: {} }) {
1314
+ return __awaiter(this, void 0, void 0, function* () {
1315
1315
  const localVarPath = this.basePath + '/PayRunCalendars';
1316
1316
  let localVarQueryParameters = {};
1317
1317
  let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
@@ -1383,8 +1383,8 @@ class PayrollNzApi {
1383
1383
  * @param reimbursement
1384
1384
  * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
1385
1385
  */
1386
- createReimbursement(xeroTenantId_1, reimbursement_1, idempotencyKey_1) {
1387
- return __awaiter(this, arguments, void 0, function* (xeroTenantId, reimbursement, idempotencyKey, options = { headers: {} }) {
1386
+ createReimbursement(xeroTenantId, reimbursement, idempotencyKey, options = { headers: {} }) {
1387
+ return __awaiter(this, void 0, void 0, function* () {
1388
1388
  const localVarPath = this.basePath + '/Reimbursements';
1389
1389
  let localVarQueryParameters = {};
1390
1390
  let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
@@ -1456,8 +1456,8 @@ class PayrollNzApi {
1456
1456
  * @param benefit
1457
1457
  * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
1458
1458
  */
1459
- createSuperannuation(xeroTenantId_1, benefit_1, idempotencyKey_1) {
1460
- return __awaiter(this, arguments, void 0, function* (xeroTenantId, benefit, idempotencyKey, options = { headers: {} }) {
1459
+ createSuperannuation(xeroTenantId, benefit, idempotencyKey, options = { headers: {} }) {
1460
+ return __awaiter(this, void 0, void 0, function* () {
1461
1461
  const localVarPath = this.basePath + '/Superannuations';
1462
1462
  let localVarQueryParameters = {};
1463
1463
  let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
@@ -1529,8 +1529,8 @@ class PayrollNzApi {
1529
1529
  * @param timesheet
1530
1530
  * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
1531
1531
  */
1532
- createTimesheet(xeroTenantId_1, timesheet_1, idempotencyKey_1) {
1533
- return __awaiter(this, arguments, void 0, function* (xeroTenantId, timesheet, idempotencyKey, options = { headers: {} }) {
1532
+ createTimesheet(xeroTenantId, timesheet, idempotencyKey, options = { headers: {} }) {
1533
+ return __awaiter(this, void 0, void 0, function* () {
1534
1534
  const localVarPath = this.basePath + '/Timesheets';
1535
1535
  let localVarQueryParameters = {};
1536
1536
  let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
@@ -1603,8 +1603,8 @@ class PayrollNzApi {
1603
1603
  * @param timesheetLine
1604
1604
  * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
1605
1605
  */
1606
- createTimesheetLine(xeroTenantId_1, timesheetID_1, timesheetLine_1, idempotencyKey_1) {
1607
- return __awaiter(this, arguments, void 0, function* (xeroTenantId, timesheetID, timesheetLine, idempotencyKey, options = { headers: {} }) {
1606
+ createTimesheetLine(xeroTenantId, timesheetID, timesheetLine, idempotencyKey, options = { headers: {} }) {
1607
+ return __awaiter(this, void 0, void 0, function* () {
1608
1608
  const localVarPath = this.basePath + '/Timesheets/{TimesheetID}/Lines'
1609
1609
  .replace('{' + 'TimesheetID' + '}', encodeURIComponent(String(timesheetID)));
1610
1610
  let localVarQueryParameters = {};
@@ -1681,8 +1681,8 @@ class PayrollNzApi {
1681
1681
  * @param employeeID Employee id for single object
1682
1682
  * @param payTemplateEarningID Id for single pay template earnings object
1683
1683
  */
1684
- deleteEmployeeEarningsTemplate(xeroTenantId_1, employeeID_1, payTemplateEarningID_1) {
1685
- return __awaiter(this, arguments, void 0, function* (xeroTenantId, employeeID, payTemplateEarningID, options = { headers: {} }) {
1684
+ deleteEmployeeEarningsTemplate(xeroTenantId, employeeID, payTemplateEarningID, options = { headers: {} }) {
1685
+ return __awaiter(this, void 0, void 0, function* () {
1686
1686
  const localVarPath = this.basePath + '/Employees/{EmployeeID}/PayTemplates/Earnings/{PayTemplateEarningID}'
1687
1687
  .replace('{' + 'EmployeeID' + '}', encodeURIComponent(String(employeeID)))
1688
1688
  .replace('{' + 'PayTemplateEarningID' + '}', encodeURIComponent(String(payTemplateEarningID)));
@@ -1759,8 +1759,8 @@ class PayrollNzApi {
1759
1759
  * @param employeeID Employee id for single object
1760
1760
  * @param leaveID Leave id for single object
1761
1761
  */
1762
- deleteEmployeeLeave(xeroTenantId_1, employeeID_1, leaveID_1) {
1763
- return __awaiter(this, arguments, void 0, function* (xeroTenantId, employeeID, leaveID, options = { headers: {} }) {
1762
+ deleteEmployeeLeave(xeroTenantId, employeeID, leaveID, options = { headers: {} }) {
1763
+ return __awaiter(this, void 0, void 0, function* () {
1764
1764
  const localVarPath = this.basePath + '/Employees/{EmployeeID}/Leave/{LeaveID}'
1765
1765
  .replace('{' + 'EmployeeID' + '}', encodeURIComponent(String(employeeID)))
1766
1766
  .replace('{' + 'LeaveID' + '}', encodeURIComponent(String(leaveID)));
@@ -1837,8 +1837,8 @@ class PayrollNzApi {
1837
1837
  * @param employeeID Employee id for single object
1838
1838
  * @param salaryAndWagesID Id for single salary and wages object
1839
1839
  */
1840
- deleteEmployeeSalaryAndWage(xeroTenantId_1, employeeID_1, salaryAndWagesID_1) {
1841
- return __awaiter(this, arguments, void 0, function* (xeroTenantId, employeeID, salaryAndWagesID, options = { headers: {} }) {
1840
+ deleteEmployeeSalaryAndWage(xeroTenantId, employeeID, salaryAndWagesID, options = { headers: {} }) {
1841
+ return __awaiter(this, void 0, void 0, function* () {
1842
1842
  const localVarPath = this.basePath + '/Employees/{EmployeeID}/SalaryAndWages/{SalaryAndWagesID}'
1843
1843
  .replace('{' + 'EmployeeID' + '}', encodeURIComponent(String(employeeID)))
1844
1844
  .replace('{' + 'SalaryAndWagesID' + '}', encodeURIComponent(String(salaryAndWagesID)));
@@ -1915,8 +1915,8 @@ class PayrollNzApi {
1915
1915
  * @param employeeID Employee id for single object
1916
1916
  * @param employeeWorkingPatternID Employee working pattern id for single object
1917
1917
  */
1918
- deleteEmployeeWorkingPattern(xeroTenantId_1, employeeID_1, employeeWorkingPatternID_1) {
1919
- return __awaiter(this, arguments, void 0, function* (xeroTenantId, employeeID, employeeWorkingPatternID, options = { headers: {} }) {
1918
+ deleteEmployeeWorkingPattern(xeroTenantId, employeeID, employeeWorkingPatternID, options = { headers: {} }) {
1919
+ return __awaiter(this, void 0, void 0, function* () {
1920
1920
  const localVarPath = this.basePath + '/Employees/{EmployeeID}/Working-Patterns/{EmployeeWorkingPatternID}'
1921
1921
  .replace('{' + 'EmployeeID' + '}', encodeURIComponent(String(employeeID)))
1922
1922
  .replace('{' + 'EmployeeWorkingPatternID' + '}', encodeURIComponent(String(employeeWorkingPatternID)));
@@ -1992,8 +1992,8 @@ class PayrollNzApi {
1992
1992
  * @param xeroTenantId Xero identifier for Tenant
1993
1993
  * @param timesheetID Identifier for the timesheet
1994
1994
  */
1995
- deleteTimesheet(xeroTenantId_1, timesheetID_1) {
1996
- return __awaiter(this, arguments, void 0, function* (xeroTenantId, timesheetID, options = { headers: {} }) {
1995
+ deleteTimesheet(xeroTenantId, timesheetID, options = { headers: {} }) {
1996
+ return __awaiter(this, void 0, void 0, function* () {
1997
1997
  const localVarPath = this.basePath + '/Timesheets/{TimesheetID}'
1998
1998
  .replace('{' + 'TimesheetID' + '}', encodeURIComponent(String(timesheetID)));
1999
1999
  let localVarQueryParameters = {};
@@ -2065,8 +2065,8 @@ class PayrollNzApi {
2065
2065
  * @param timesheetID Identifier for the timesheet
2066
2066
  * @param timesheetLineID Identifier for the timesheet line
2067
2067
  */
2068
- deleteTimesheetLine(xeroTenantId_1, timesheetID_1, timesheetLineID_1) {
2069
- return __awaiter(this, arguments, void 0, function* (xeroTenantId, timesheetID, timesheetLineID, options = { headers: {} }) {
2068
+ deleteTimesheetLine(xeroTenantId, timesheetID, timesheetLineID, options = { headers: {} }) {
2069
+ return __awaiter(this, void 0, void 0, function* () {
2070
2070
  const localVarPath = this.basePath + '/Timesheets/{TimesheetID}/Lines/{TimesheetLineID}'
2071
2071
  .replace('{' + 'TimesheetID' + '}', encodeURIComponent(String(timesheetID)))
2072
2072
  .replace('{' + 'TimesheetLineID' + '}', encodeURIComponent(String(timesheetLineID)));
@@ -2142,8 +2142,8 @@ class PayrollNzApi {
2142
2142
  * @param xeroTenantId Xero identifier for Tenant
2143
2143
  * @param deductionId Identifier for the deduction
2144
2144
  */
2145
- getDeduction(xeroTenantId_1, deductionId_1) {
2146
- return __awaiter(this, arguments, void 0, function* (xeroTenantId, deductionId, options = { headers: {} }) {
2145
+ getDeduction(xeroTenantId, deductionId, options = { headers: {} }) {
2146
+ return __awaiter(this, void 0, void 0, function* () {
2147
2147
  const localVarPath = this.basePath + '/Deductions/{deductionId}'
2148
2148
  .replace('{' + 'deductionId' + '}', encodeURIComponent(String(deductionId)));
2149
2149
  let localVarQueryParameters = {};
@@ -2214,8 +2214,8 @@ class PayrollNzApi {
2214
2214
  * @param xeroTenantId Xero identifier for Tenant
2215
2215
  * @param page Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.
2216
2216
  */
2217
- getDeductions(xeroTenantId_1, page_1) {
2218
- return __awaiter(this, arguments, void 0, function* (xeroTenantId, page, options = { headers: {} }) {
2217
+ getDeductions(xeroTenantId, page, options = { headers: {} }) {
2218
+ return __awaiter(this, void 0, void 0, function* () {
2219
2219
  const localVarPath = this.basePath + '/Deductions';
2220
2220
  let localVarQueryParameters = {};
2221
2221
  let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
@@ -2284,8 +2284,8 @@ class PayrollNzApi {
2284
2284
  * @param xeroTenantId Xero identifier for Tenant
2285
2285
  * @param earningsRateID Identifier for the earnings rate
2286
2286
  */
2287
- getEarningsRate(xeroTenantId_1, earningsRateID_1) {
2288
- return __awaiter(this, arguments, void 0, function* (xeroTenantId, earningsRateID, options = { headers: {} }) {
2287
+ getEarningsRate(xeroTenantId, earningsRateID, options = { headers: {} }) {
2288
+ return __awaiter(this, void 0, void 0, function* () {
2289
2289
  const localVarPath = this.basePath + '/EarningsRates/{EarningsRateID}'
2290
2290
  .replace('{' + 'EarningsRateID' + '}', encodeURIComponent(String(earningsRateID)));
2291
2291
  let localVarQueryParameters = {};
@@ -2356,8 +2356,8 @@ class PayrollNzApi {
2356
2356
  * @param xeroTenantId Xero identifier for Tenant
2357
2357
  * @param page Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.
2358
2358
  */
2359
- getEarningsRates(xeroTenantId_1, page_1) {
2360
- return __awaiter(this, arguments, void 0, function* (xeroTenantId, page, options = { headers: {} }) {
2359
+ getEarningsRates(xeroTenantId, page, options = { headers: {} }) {
2360
+ return __awaiter(this, void 0, void 0, function* () {
2361
2361
  const localVarPath = this.basePath + '/EarningsRates';
2362
2362
  let localVarQueryParameters = {};
2363
2363
  let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
@@ -2426,8 +2426,8 @@ class PayrollNzApi {
2426
2426
  * @param xeroTenantId Xero identifier for Tenant
2427
2427
  * @param employeeID Employee id for single object
2428
2428
  */
2429
- getEmployee(xeroTenantId_1, employeeID_1) {
2430
- return __awaiter(this, arguments, void 0, function* (xeroTenantId, employeeID, options = { headers: {} }) {
2429
+ getEmployee(xeroTenantId, employeeID, options = { headers: {} }) {
2430
+ return __awaiter(this, void 0, void 0, function* () {
2431
2431
  const localVarPath = this.basePath + '/Employees/{EmployeeID}'
2432
2432
  .replace('{' + 'EmployeeID' + '}', encodeURIComponent(String(employeeID)));
2433
2433
  let localVarQueryParameters = {};
@@ -2498,8 +2498,8 @@ class PayrollNzApi {
2498
2498
  * @param xeroTenantId Xero identifier for Tenant
2499
2499
  * @param employeeID Employee id for single object
2500
2500
  */
2501
- getEmployeeLeaveBalances(xeroTenantId_1, employeeID_1) {
2502
- return __awaiter(this, arguments, void 0, function* (xeroTenantId, employeeID, options = { headers: {} }) {
2501
+ getEmployeeLeaveBalances(xeroTenantId, employeeID, options = { headers: {} }) {
2502
+ return __awaiter(this, void 0, void 0, function* () {
2503
2503
  const localVarPath = this.basePath + '/Employees/{EmployeeID}/LeaveBalances'
2504
2504
  .replace('{' + 'EmployeeID' + '}', encodeURIComponent(String(employeeID)));
2505
2505
  let localVarQueryParameters = {};
@@ -2572,8 +2572,8 @@ class PayrollNzApi {
2572
2572
  * @param startDate Filter by start date
2573
2573
  * @param endDate Filter by end date
2574
2574
  */
2575
- getEmployeeLeavePeriods(xeroTenantId_1, employeeID_1, startDate_1, endDate_1) {
2576
- return __awaiter(this, arguments, void 0, function* (xeroTenantId, employeeID, startDate, endDate, options = { headers: {} }) {
2575
+ getEmployeeLeavePeriods(xeroTenantId, employeeID, startDate, endDate, options = { headers: {} }) {
2576
+ return __awaiter(this, void 0, void 0, function* () {
2577
2577
  const localVarPath = this.basePath + '/Employees/{EmployeeID}/LeavePeriods'
2578
2578
  .replace('{' + 'EmployeeID' + '}', encodeURIComponent(String(employeeID)));
2579
2579
  let localVarQueryParameters = {};
@@ -2650,8 +2650,8 @@ class PayrollNzApi {
2650
2650
  * @param xeroTenantId Xero identifier for Tenant
2651
2651
  * @param employeeID Employee id for single object
2652
2652
  */
2653
- getEmployeeLeaveTypes(xeroTenantId_1, employeeID_1) {
2654
- return __awaiter(this, arguments, void 0, function* (xeroTenantId, employeeID, options = { headers: {} }) {
2653
+ getEmployeeLeaveTypes(xeroTenantId, employeeID, options = { headers: {} }) {
2654
+ return __awaiter(this, void 0, void 0, function* () {
2655
2655
  const localVarPath = this.basePath + '/Employees/{EmployeeID}/LeaveTypes'
2656
2656
  .replace('{' + 'EmployeeID' + '}', encodeURIComponent(String(employeeID)));
2657
2657
  let localVarQueryParameters = {};
@@ -2722,8 +2722,8 @@ class PayrollNzApi {
2722
2722
  * @param xeroTenantId Xero identifier for Tenant
2723
2723
  * @param employeeID Employee id for single object
2724
2724
  */
2725
- getEmployeeLeaves(xeroTenantId_1, employeeID_1) {
2726
- return __awaiter(this, arguments, void 0, function* (xeroTenantId, employeeID, options = { headers: {} }) {
2725
+ getEmployeeLeaves(xeroTenantId, employeeID, options = { headers: {} }) {
2726
+ return __awaiter(this, void 0, void 0, function* () {
2727
2727
  const localVarPath = this.basePath + '/Employees/{EmployeeID}/Leave'
2728
2728
  .replace('{' + 'EmployeeID' + '}', encodeURIComponent(String(employeeID)));
2729
2729
  let localVarQueryParameters = {};
@@ -2794,8 +2794,8 @@ class PayrollNzApi {
2794
2794
  * @param xeroTenantId Xero identifier for Tenant
2795
2795
  * @param employeeID Employee id for single object
2796
2796
  */
2797
- getEmployeeOpeningBalances(xeroTenantId_1, employeeID_1) {
2798
- return __awaiter(this, arguments, void 0, function* (xeroTenantId, employeeID, options = { headers: {} }) {
2797
+ getEmployeeOpeningBalances(xeroTenantId, employeeID, options = { headers: {} }) {
2798
+ return __awaiter(this, void 0, void 0, function* () {
2799
2799
  const localVarPath = this.basePath + '/Employees/{EmployeeID}/OpeningBalances'
2800
2800
  .replace('{' + 'EmployeeID' + '}', encodeURIComponent(String(employeeID)));
2801
2801
  let localVarQueryParameters = {};
@@ -2866,8 +2866,8 @@ class PayrollNzApi {
2866
2866
  * @param xeroTenantId Xero identifier for Tenant
2867
2867
  * @param employeeID Employee id for single object
2868
2868
  */
2869
- getEmployeePayTemplates(xeroTenantId_1, employeeID_1) {
2870
- return __awaiter(this, arguments, void 0, function* (xeroTenantId, employeeID, options = { headers: {} }) {
2869
+ getEmployeePayTemplates(xeroTenantId, employeeID, options = { headers: {} }) {
2870
+ return __awaiter(this, void 0, void 0, function* () {
2871
2871
  const localVarPath = this.basePath + '/Employees/{EmployeeID}/PayTemplates'
2872
2872
  .replace('{' + 'EmployeeID' + '}', encodeURIComponent(String(employeeID)));
2873
2873
  let localVarQueryParameters = {};
@@ -2938,8 +2938,8 @@ class PayrollNzApi {
2938
2938
  * @param xeroTenantId Xero identifier for Tenant
2939
2939
  * @param employeeID Employee id for single object
2940
2940
  */
2941
- getEmployeePaymentMethod(xeroTenantId_1, employeeID_1) {
2942
- return __awaiter(this, arguments, void 0, function* (xeroTenantId, employeeID, options = { headers: {} }) {
2941
+ getEmployeePaymentMethod(xeroTenantId, employeeID, options = { headers: {} }) {
2942
+ return __awaiter(this, void 0, void 0, function* () {
2943
2943
  const localVarPath = this.basePath + '/Employees/{EmployeeID}/PaymentMethods'
2944
2944
  .replace('{' + 'EmployeeID' + '}', encodeURIComponent(String(employeeID)));
2945
2945
  let localVarQueryParameters = {};
@@ -3011,8 +3011,8 @@ class PayrollNzApi {
3011
3011
  * @param employeeID Employee id for single object
3012
3012
  * @param salaryAndWagesID Id for single pay template earnings object
3013
3013
  */
3014
- getEmployeeSalaryAndWage(xeroTenantId_1, employeeID_1, salaryAndWagesID_1) {
3015
- return __awaiter(this, arguments, void 0, function* (xeroTenantId, employeeID, salaryAndWagesID, options = { headers: {} }) {
3014
+ getEmployeeSalaryAndWage(xeroTenantId, employeeID, salaryAndWagesID, options = { headers: {} }) {
3015
+ return __awaiter(this, void 0, void 0, function* () {
3016
3016
  const localVarPath = this.basePath + '/Employees/{EmployeeID}/SalaryAndWages/{SalaryAndWagesID}'
3017
3017
  .replace('{' + 'EmployeeID' + '}', encodeURIComponent(String(employeeID)))
3018
3018
  .replace('{' + 'SalaryAndWagesID' + '}', encodeURIComponent(String(salaryAndWagesID)));
@@ -3089,8 +3089,8 @@ class PayrollNzApi {
3089
3089
  * @param employeeID Employee id for single object
3090
3090
  * @param page Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.
3091
3091
  */
3092
- getEmployeeSalaryAndWages(xeroTenantId_1, employeeID_1, page_1) {
3093
- return __awaiter(this, arguments, void 0, function* (xeroTenantId, employeeID, page, options = { headers: {} }) {
3092
+ getEmployeeSalaryAndWages(xeroTenantId, employeeID, page, options = { headers: {} }) {
3093
+ return __awaiter(this, void 0, void 0, function* () {
3094
3094
  const localVarPath = this.basePath + '/Employees/{EmployeeID}/SalaryAndWages'
3095
3095
  .replace('{' + 'EmployeeID' + '}', encodeURIComponent(String(employeeID)));
3096
3096
  let localVarQueryParameters = {};
@@ -3164,8 +3164,8 @@ class PayrollNzApi {
3164
3164
  * @param xeroTenantId Xero identifier for Tenant
3165
3165
  * @param employeeID Employee id for single object
3166
3166
  */
3167
- getEmployeeTax(xeroTenantId_1, employeeID_1) {
3168
- return __awaiter(this, arguments, void 0, function* (xeroTenantId, employeeID, options = { headers: {} }) {
3167
+ getEmployeeTax(xeroTenantId, employeeID, options = { headers: {} }) {
3168
+ return __awaiter(this, void 0, void 0, function* () {
3169
3169
  const localVarPath = this.basePath + '/Employees/{EmployeeID}/Tax'
3170
3170
  .replace('{' + 'EmployeeID' + '}', encodeURIComponent(String(employeeID)));
3171
3171
  let localVarQueryParameters = {};
@@ -3237,8 +3237,8 @@ class PayrollNzApi {
3237
3237
  * @param employeeID Employee id for single object
3238
3238
  * @param employeeWorkingPatternID Employee working pattern id for single object
3239
3239
  */
3240
- getEmployeeWorkingPattern(xeroTenantId_1, employeeID_1, employeeWorkingPatternID_1) {
3241
- return __awaiter(this, arguments, void 0, function* (xeroTenantId, employeeID, employeeWorkingPatternID, options = { headers: {} }) {
3240
+ getEmployeeWorkingPattern(xeroTenantId, employeeID, employeeWorkingPatternID, options = { headers: {} }) {
3241
+ return __awaiter(this, void 0, void 0, function* () {
3242
3242
  const localVarPath = this.basePath + '/Employees/{EmployeeID}/Working-Patterns/{EmployeeWorkingPatternID}'
3243
3243
  .replace('{' + 'EmployeeID' + '}', encodeURIComponent(String(employeeID)))
3244
3244
  .replace('{' + 'EmployeeWorkingPatternID' + '}', encodeURIComponent(String(employeeWorkingPatternID)));
@@ -3314,8 +3314,8 @@ class PayrollNzApi {
3314
3314
  * @param xeroTenantId Xero identifier for Tenant
3315
3315
  * @param employeeID Employee id for single object
3316
3316
  */
3317
- getEmployeeWorkingPatterns(xeroTenantId_1, employeeID_1) {
3318
- return __awaiter(this, arguments, void 0, function* (xeroTenantId, employeeID, options = { headers: {} }) {
3317
+ getEmployeeWorkingPatterns(xeroTenantId, employeeID, options = { headers: {} }) {
3318
+ return __awaiter(this, void 0, void 0, function* () {
3319
3319
  const localVarPath = this.basePath + '/Employees/{EmployeeID}/Working-Patterns'
3320
3320
  .replace('{' + 'EmployeeID' + '}', encodeURIComponent(String(employeeID)));
3321
3321
  let localVarQueryParameters = {};
@@ -3387,8 +3387,8 @@ class PayrollNzApi {
3387
3387
  * @param filter Filter by first name and/or lastname
3388
3388
  * @param page Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.
3389
3389
  */
3390
- getEmployees(xeroTenantId_1, filter_1, page_1) {
3391
- return __awaiter(this, arguments, void 0, function* (xeroTenantId, filter, page, options = { headers: {} }) {
3390
+ getEmployees(xeroTenantId, filter, page, options = { headers: {} }) {
3391
+ return __awaiter(this, void 0, void 0, function* () {
3392
3392
  const localVarPath = this.basePath + '/Employees';
3393
3393
  let localVarQueryParameters = {};
3394
3394
  let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
@@ -3460,8 +3460,8 @@ class PayrollNzApi {
3460
3460
  * @param xeroTenantId Xero identifier for Tenant
3461
3461
  * @param leaveTypeID Identifier for the leave type
3462
3462
  */
3463
- getLeaveType(xeroTenantId_1, leaveTypeID_1) {
3464
- return __awaiter(this, arguments, void 0, function* (xeroTenantId, leaveTypeID, options = { headers: {} }) {
3463
+ getLeaveType(xeroTenantId, leaveTypeID, options = { headers: {} }) {
3464
+ return __awaiter(this, void 0, void 0, function* () {
3465
3465
  const localVarPath = this.basePath + '/LeaveTypes/{LeaveTypeID}'
3466
3466
  .replace('{' + 'LeaveTypeID' + '}', encodeURIComponent(String(leaveTypeID)));
3467
3467
  let localVarQueryParameters = {};
@@ -3533,8 +3533,8 @@ class PayrollNzApi {
3533
3533
  * @param page Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.
3534
3534
  * @param activeOnly Filters leave types by active status. By default the API returns all leave types.
3535
3535
  */
3536
- getLeaveTypes(xeroTenantId_1, page_1, activeOnly_1) {
3537
- return __awaiter(this, arguments, void 0, function* (xeroTenantId, page, activeOnly, options = { headers: {} }) {
3536
+ getLeaveTypes(xeroTenantId, page, activeOnly, options = { headers: {} }) {
3537
+ return __awaiter(this, void 0, void 0, function* () {
3538
3538
  const localVarPath = this.basePath + '/LeaveTypes';
3539
3539
  let localVarQueryParameters = {};
3540
3540
  let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
@@ -3606,8 +3606,8 @@ class PayrollNzApi {
3606
3606
  * @param xeroTenantId Xero identifier for Tenant
3607
3607
  * @param payRunID Identifier for the pay run
3608
3608
  */
3609
- getPayRun(xeroTenantId_1, payRunID_1) {
3610
- return __awaiter(this, arguments, void 0, function* (xeroTenantId, payRunID, options = { headers: {} }) {
3609
+ getPayRun(xeroTenantId, payRunID, options = { headers: {} }) {
3610
+ return __awaiter(this, void 0, void 0, function* () {
3611
3611
  const localVarPath = this.basePath + '/PayRuns/{PayRunID}'
3612
3612
  .replace('{' + 'PayRunID' + '}', encodeURIComponent(String(payRunID)));
3613
3613
  let localVarQueryParameters = {};
@@ -3678,8 +3678,8 @@ class PayrollNzApi {
3678
3678
  * @param xeroTenantId Xero identifier for Tenant
3679
3679
  * @param payrollCalendarID Identifier for the payrun calendars
3680
3680
  */
3681
- getPayRunCalendar(xeroTenantId_1, payrollCalendarID_1) {
3682
- return __awaiter(this, arguments, void 0, function* (xeroTenantId, payrollCalendarID, options = { headers: {} }) {
3681
+ getPayRunCalendar(xeroTenantId, payrollCalendarID, options = { headers: {} }) {
3682
+ return __awaiter(this, void 0, void 0, function* () {
3683
3683
  const localVarPath = this.basePath + '/PayRunCalendars/{PayrollCalendarID}'
3684
3684
  .replace('{' + 'PayrollCalendarID' + '}', encodeURIComponent(String(payrollCalendarID)));
3685
3685
  let localVarQueryParameters = {};
@@ -3750,8 +3750,8 @@ class PayrollNzApi {
3750
3750
  * @param xeroTenantId Xero identifier for Tenant
3751
3751
  * @param page Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.
3752
3752
  */
3753
- getPayRunCalendars(xeroTenantId_1, page_1) {
3754
- return __awaiter(this, arguments, void 0, function* (xeroTenantId, page, options = { headers: {} }) {
3753
+ getPayRunCalendars(xeroTenantId, page, options = { headers: {} }) {
3754
+ return __awaiter(this, void 0, void 0, function* () {
3755
3755
  const localVarPath = this.basePath + '/PayRunCalendars';
3756
3756
  let localVarQueryParameters = {};
3757
3757
  let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
@@ -3821,8 +3821,8 @@ class PayrollNzApi {
3821
3821
  * @param page Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.
3822
3822
  * @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.
3823
3823
  */
3824
- getPayRuns(xeroTenantId_1, page_1, status_1) {
3825
- return __awaiter(this, arguments, void 0, function* (xeroTenantId, page, status, options = { headers: {} }) {
3824
+ getPayRuns(xeroTenantId, page, status, options = { headers: {} }) {
3825
+ return __awaiter(this, void 0, void 0, function* () {
3826
3826
  const localVarPath = this.basePath + '/PayRuns';
3827
3827
  let localVarQueryParameters = {};
3828
3828
  let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
@@ -3894,8 +3894,8 @@ class PayrollNzApi {
3894
3894
  * @param xeroTenantId Xero identifier for Tenant
3895
3895
  * @param paySlipID Identifier for the payslip
3896
3896
  */
3897
- getPaySlip(xeroTenantId_1, paySlipID_1) {
3898
- return __awaiter(this, arguments, void 0, function* (xeroTenantId, paySlipID, options = { headers: {} }) {
3897
+ getPaySlip(xeroTenantId, paySlipID, options = { headers: {} }) {
3898
+ return __awaiter(this, void 0, void 0, function* () {
3899
3899
  const localVarPath = this.basePath + '/PaySlips/{PaySlipID}'
3900
3900
  .replace('{' + 'PaySlipID' + '}', encodeURIComponent(String(paySlipID)));
3901
3901
  let localVarQueryParameters = {};
@@ -3967,8 +3967,8 @@ class PayrollNzApi {
3967
3967
  * @param payRunID PayrunID which specifies the containing payrun of payslips to retrieve. By default, the API does not group payslips by payrun.
3968
3968
  * @param page Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.
3969
3969
  */
3970
- getPaySlips(xeroTenantId_1, payRunID_1, page_1) {
3971
- return __awaiter(this, arguments, void 0, function* (xeroTenantId, payRunID, page, options = { headers: {} }) {
3970
+ getPaySlips(xeroTenantId, payRunID, page, options = { headers: {} }) {
3971
+ return __awaiter(this, void 0, void 0, function* () {
3972
3972
  const localVarPath = this.basePath + '/PaySlips';
3973
3973
  let localVarQueryParameters = {};
3974
3974
  let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
@@ -4044,8 +4044,8 @@ class PayrollNzApi {
4044
4044
  * @param xeroTenantId Xero identifier for Tenant
4045
4045
  * @param reimbursementID Identifier for the reimbursement
4046
4046
  */
4047
- getReimbursement(xeroTenantId_1, reimbursementID_1) {
4048
- return __awaiter(this, arguments, void 0, function* (xeroTenantId, reimbursementID, options = { headers: {} }) {
4047
+ getReimbursement(xeroTenantId, reimbursementID, options = { headers: {} }) {
4048
+ return __awaiter(this, void 0, void 0, function* () {
4049
4049
  const localVarPath = this.basePath + '/Reimbursements/{ReimbursementID}'
4050
4050
  .replace('{' + 'ReimbursementID' + '}', encodeURIComponent(String(reimbursementID)));
4051
4051
  let localVarQueryParameters = {};
@@ -4116,8 +4116,8 @@ class PayrollNzApi {
4116
4116
  * @param xeroTenantId Xero identifier for Tenant
4117
4117
  * @param page Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.
4118
4118
  */
4119
- getReimbursements(xeroTenantId_1, page_1) {
4120
- return __awaiter(this, arguments, void 0, function* (xeroTenantId, page, options = { headers: {} }) {
4119
+ getReimbursements(xeroTenantId, page, options = { headers: {} }) {
4120
+ return __awaiter(this, void 0, void 0, function* () {
4121
4121
  const localVarPath = this.basePath + '/Reimbursements';
4122
4122
  let localVarQueryParameters = {};
4123
4123
  let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
@@ -4185,8 +4185,8 @@ class PayrollNzApi {
4185
4185
  * @summary Retrieves settings
4186
4186
  * @param xeroTenantId Xero identifier for Tenant
4187
4187
  */
4188
- getSettings(xeroTenantId_1) {
4189
- return __awaiter(this, arguments, void 0, function* (xeroTenantId, options = { headers: {} }) {
4188
+ getSettings(xeroTenantId, options = { headers: {} }) {
4189
+ return __awaiter(this, void 0, void 0, function* () {
4190
4190
  const localVarPath = this.basePath + '/Settings';
4191
4191
  let localVarQueryParameters = {};
4192
4192
  let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
@@ -4252,8 +4252,8 @@ class PayrollNzApi {
4252
4252
  * @param xeroTenantId Xero identifier for Tenant
4253
4253
  * @param id Identifier for the statutory deduction
4254
4254
  */
4255
- getStatutoryDeduction(xeroTenantId_1, id_1) {
4256
- return __awaiter(this, arguments, void 0, function* (xeroTenantId, id, options = { headers: {} }) {
4255
+ getStatutoryDeduction(xeroTenantId, id, options = { headers: {} }) {
4256
+ return __awaiter(this, void 0, void 0, function* () {
4257
4257
  const localVarPath = this.basePath + '/StatutoryDeductions/{id}'
4258
4258
  .replace('{' + 'id' + '}', encodeURIComponent(String(id)));
4259
4259
  let localVarQueryParameters = {};
@@ -4324,8 +4324,8 @@ class PayrollNzApi {
4324
4324
  * @param xeroTenantId Xero identifier for Tenant
4325
4325
  * @param page Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.
4326
4326
  */
4327
- getStatutoryDeductions(xeroTenantId_1, page_1) {
4328
- return __awaiter(this, arguments, void 0, function* (xeroTenantId, page, options = { headers: {} }) {
4327
+ getStatutoryDeductions(xeroTenantId, page, options = { headers: {} }) {
4328
+ return __awaiter(this, void 0, void 0, function* () {
4329
4329
  const localVarPath = this.basePath + '/StatutoryDeductions';
4330
4330
  let localVarQueryParameters = {};
4331
4331
  let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
@@ -4394,8 +4394,8 @@ class PayrollNzApi {
4394
4394
  * @param xeroTenantId Xero identifier for Tenant
4395
4395
  * @param superannuationID Identifier for the superannuation
4396
4396
  */
4397
- getSuperannuation(xeroTenantId_1, superannuationID_1) {
4398
- return __awaiter(this, arguments, void 0, function* (xeroTenantId, superannuationID, options = { headers: {} }) {
4397
+ getSuperannuation(xeroTenantId, superannuationID, options = { headers: {} }) {
4398
+ return __awaiter(this, void 0, void 0, function* () {
4399
4399
  const localVarPath = this.basePath + '/Superannuations/{SuperannuationID}'
4400
4400
  .replace('{' + 'SuperannuationID' + '}', encodeURIComponent(String(superannuationID)));
4401
4401
  let localVarQueryParameters = {};
@@ -4466,8 +4466,8 @@ class PayrollNzApi {
4466
4466
  * @param xeroTenantId Xero identifier for Tenant
4467
4467
  * @param page Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.
4468
4468
  */
4469
- getSuperannuations(xeroTenantId_1, page_1) {
4470
- return __awaiter(this, arguments, void 0, function* (xeroTenantId, page, options = { headers: {} }) {
4469
+ getSuperannuations(xeroTenantId, page, options = { headers: {} }) {
4470
+ return __awaiter(this, void 0, void 0, function* () {
4471
4471
  const localVarPath = this.basePath + '/Superannuations';
4472
4472
  let localVarQueryParameters = {};
4473
4473
  let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
@@ -4536,8 +4536,8 @@ class PayrollNzApi {
4536
4536
  * @param xeroTenantId Xero identifier for Tenant
4537
4537
  * @param timesheetID Identifier for the timesheet
4538
4538
  */
4539
- getTimesheet(xeroTenantId_1, timesheetID_1) {
4540
- return __awaiter(this, arguments, void 0, function* (xeroTenantId, timesheetID, options = { headers: {} }) {
4539
+ getTimesheet(xeroTenantId, timesheetID, options = { headers: {} }) {
4540
+ return __awaiter(this, void 0, void 0, function* () {
4541
4541
  const localVarPath = this.basePath + '/Timesheets/{TimesheetID}'
4542
4542
  .replace('{' + 'TimesheetID' + '}', encodeURIComponent(String(timesheetID)));
4543
4543
  let localVarQueryParameters = {};
@@ -4613,8 +4613,8 @@ class PayrollNzApi {
4613
4613
  * @param endDate filter results by any timesheets with a endDate on or before the provided date
4614
4614
  * @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.
4615
4615
  */
4616
- getTimesheets(xeroTenantId_1, page_1, filter_1, status_1, startDate_1, endDate_1, sort_1) {
4617
- return __awaiter(this, arguments, void 0, function* (xeroTenantId, page, filter, status, startDate, endDate, sort, options = { headers: {} }) {
4616
+ getTimesheets(xeroTenantId, page, filter, status, startDate, endDate, sort, options = { headers: {} }) {
4617
+ return __awaiter(this, void 0, void 0, function* () {
4618
4618
  const localVarPath = this.basePath + '/Timesheets';
4619
4619
  let localVarQueryParameters = {};
4620
4620
  let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
@@ -4697,8 +4697,8 @@ class PayrollNzApi {
4697
4697
  * @summary Retrieves tracking categories
4698
4698
  * @param xeroTenantId Xero identifier for Tenant
4699
4699
  */
4700
- getTrackingCategories(xeroTenantId_1) {
4701
- return __awaiter(this, arguments, void 0, function* (xeroTenantId, options = { headers: {} }) {
4700
+ getTrackingCategories(xeroTenantId, options = { headers: {} }) {
4701
+ return __awaiter(this, void 0, void 0, function* () {
4702
4702
  const localVarPath = this.basePath + '/Settings/TrackingCategories';
4703
4703
  let localVarQueryParameters = {};
4704
4704
  let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
@@ -4765,8 +4765,8 @@ class PayrollNzApi {
4765
4765
  * @param timesheetID Identifier for the timesheet
4766
4766
  * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
4767
4767
  */
4768
- revertTimesheet(xeroTenantId_1, timesheetID_1, idempotencyKey_1) {
4769
- return __awaiter(this, arguments, void 0, function* (xeroTenantId, timesheetID, idempotencyKey, options = { headers: {} }) {
4768
+ revertTimesheet(xeroTenantId, timesheetID, idempotencyKey, options = { headers: {} }) {
4769
+ return __awaiter(this, void 0, void 0, function* () {
4770
4770
  const localVarPath = this.basePath + '/Timesheets/{TimesheetID}/RevertToDraft'
4771
4771
  .replace('{' + 'TimesheetID' + '}', encodeURIComponent(String(timesheetID)));
4772
4772
  let localVarQueryParameters = {};
@@ -4840,8 +4840,8 @@ class PayrollNzApi {
4840
4840
  * @param employee
4841
4841
  * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
4842
4842
  */
4843
- updateEmployee(xeroTenantId_1, employeeID_1, employee_1, idempotencyKey_1) {
4844
- return __awaiter(this, arguments, void 0, function* (xeroTenantId, employeeID, employee, idempotencyKey, options = { headers: {} }) {
4843
+ updateEmployee(xeroTenantId, employeeID, employee, idempotencyKey, options = { headers: {} }) {
4844
+ return __awaiter(this, void 0, void 0, function* () {
4845
4845
  const localVarPath = this.basePath + '/Employees/{EmployeeID}'
4846
4846
  .replace('{' + 'EmployeeID' + '}', encodeURIComponent(String(employeeID)));
4847
4847
  let localVarQueryParameters = {};
@@ -4920,8 +4920,8 @@ class PayrollNzApi {
4920
4920
  * @param earningsTemplate
4921
4921
  * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
4922
4922
  */
4923
- updateEmployeeEarningsTemplate(xeroTenantId_1, employeeID_1, payTemplateEarningID_1, earningsTemplate_1, idempotencyKey_1) {
4924
- return __awaiter(this, arguments, void 0, function* (xeroTenantId, employeeID, payTemplateEarningID, earningsTemplate, idempotencyKey, options = { headers: {} }) {
4923
+ updateEmployeeEarningsTemplate(xeroTenantId, employeeID, payTemplateEarningID, earningsTemplate, idempotencyKey, options = { headers: {} }) {
4924
+ return __awaiter(this, void 0, void 0, function* () {
4925
4925
  const localVarPath = this.basePath + '/Employees/{EmployeeID}/PayTemplates/Earnings/{PayTemplateEarningID}'
4926
4926
  .replace('{' + 'EmployeeID' + '}', encodeURIComponent(String(employeeID)))
4927
4927
  .replace('{' + 'PayTemplateEarningID' + '}', encodeURIComponent(String(payTemplateEarningID)));
@@ -5005,8 +5005,8 @@ class PayrollNzApi {
5005
5005
  * @param employeeLeave
5006
5006
  * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
5007
5007
  */
5008
- updateEmployeeLeave(xeroTenantId_1, employeeID_1, leaveID_1, employeeLeave_1, idempotencyKey_1) {
5009
- return __awaiter(this, arguments, void 0, function* (xeroTenantId, employeeID, leaveID, employeeLeave, idempotencyKey, options = { headers: {} }) {
5008
+ updateEmployeeLeave(xeroTenantId, employeeID, leaveID, employeeLeave, idempotencyKey, options = { headers: {} }) {
5009
+ return __awaiter(this, void 0, void 0, function* () {
5010
5010
  const localVarPath = this.basePath + '/Employees/{EmployeeID}/Leave/{LeaveID}'
5011
5011
  .replace('{' + 'EmployeeID' + '}', encodeURIComponent(String(employeeID)))
5012
5012
  .replace('{' + 'LeaveID' + '}', encodeURIComponent(String(leaveID)));
@@ -5090,8 +5090,8 @@ class PayrollNzApi {
5090
5090
  * @param salaryAndWage
5091
5091
  * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
5092
5092
  */
5093
- updateEmployeeSalaryAndWage(xeroTenantId_1, employeeID_1, salaryAndWagesID_1, salaryAndWage_1, idempotencyKey_1) {
5094
- return __awaiter(this, arguments, void 0, function* (xeroTenantId, employeeID, salaryAndWagesID, salaryAndWage, idempotencyKey, options = { headers: {} }) {
5093
+ updateEmployeeSalaryAndWage(xeroTenantId, employeeID, salaryAndWagesID, salaryAndWage, idempotencyKey, options = { headers: {} }) {
5094
+ return __awaiter(this, void 0, void 0, function* () {
5095
5095
  const localVarPath = this.basePath + '/Employees/{EmployeeID}/SalaryAndWages/{SalaryAndWagesID}'
5096
5096
  .replace('{' + 'EmployeeID' + '}', encodeURIComponent(String(employeeID)))
5097
5097
  .replace('{' + 'SalaryAndWagesID' + '}', encodeURIComponent(String(salaryAndWagesID)));
@@ -5174,8 +5174,8 @@ class PayrollNzApi {
5174
5174
  * @param employeeTax
5175
5175
  * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
5176
5176
  */
5177
- updateEmployeeTax(xeroTenantId_1, employeeID_1, employeeTax_1, idempotencyKey_1) {
5178
- return __awaiter(this, arguments, void 0, function* (xeroTenantId, employeeID, employeeTax, idempotencyKey, options = { headers: {} }) {
5177
+ updateEmployeeTax(xeroTenantId, employeeID, employeeTax, idempotencyKey, options = { headers: {} }) {
5178
+ return __awaiter(this, void 0, void 0, function* () {
5179
5179
  const localVarPath = this.basePath + '/Employees/{EmployeeID}/Tax'
5180
5180
  .replace('{' + 'EmployeeID' + '}', encodeURIComponent(String(employeeID)));
5181
5181
  let localVarQueryParameters = {};
@@ -5253,8 +5253,8 @@ class PayrollNzApi {
5253
5253
  * @param payRun
5254
5254
  * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
5255
5255
  */
5256
- updatePayRun(xeroTenantId_1, payRunID_1, payRun_1, idempotencyKey_1) {
5257
- return __awaiter(this, arguments, void 0, function* (xeroTenantId, payRunID, payRun, idempotencyKey, options = { headers: {} }) {
5256
+ updatePayRun(xeroTenantId, payRunID, payRun, idempotencyKey, options = { headers: {} }) {
5257
+ return __awaiter(this, void 0, void 0, function* () {
5258
5258
  const localVarPath = this.basePath + '/PayRuns/{PayRunID}'
5259
5259
  .replace('{' + 'PayRunID' + '}', encodeURIComponent(String(payRunID)));
5260
5260
  let localVarQueryParameters = {};
@@ -5332,8 +5332,8 @@ class PayrollNzApi {
5332
5332
  * @param paySlip
5333
5333
  * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
5334
5334
  */
5335
- updatePaySlipLineItems(xeroTenantId_1, paySlipID_1, paySlip_1, idempotencyKey_1) {
5336
- return __awaiter(this, arguments, void 0, function* (xeroTenantId, paySlipID, paySlip, idempotencyKey, options = { headers: {} }) {
5335
+ updatePaySlipLineItems(xeroTenantId, paySlipID, paySlip, idempotencyKey, options = { headers: {} }) {
5336
+ return __awaiter(this, void 0, void 0, function* () {
5337
5337
  const localVarPath = this.basePath + '/PaySlips/{PaySlipID}'
5338
5338
  .replace('{' + 'PaySlipID' + '}', encodeURIComponent(String(paySlipID)));
5339
5339
  let localVarQueryParameters = {};
@@ -5412,8 +5412,8 @@ class PayrollNzApi {
5412
5412
  * @param timesheetLine
5413
5413
  * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
5414
5414
  */
5415
- updateTimesheetLine(xeroTenantId_1, timesheetID_1, timesheetLineID_1, timesheetLine_1, idempotencyKey_1) {
5416
- return __awaiter(this, arguments, void 0, function* (xeroTenantId, timesheetID, timesheetLineID, timesheetLine, idempotencyKey, options = { headers: {} }) {
5415
+ updateTimesheetLine(xeroTenantId, timesheetID, timesheetLineID, timesheetLine, idempotencyKey, options = { headers: {} }) {
5416
+ return __awaiter(this, void 0, void 0, function* () {
5417
5417
  const localVarPath = this.basePath + '/Timesheets/{TimesheetID}/Lines/{TimesheetLineID}'
5418
5418
  .replace('{' + 'TimesheetID' + '}', encodeURIComponent(String(timesheetID)))
5419
5419
  .replace('{' + 'TimesheetLineID' + '}', encodeURIComponent(String(timesheetLineID)));