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.
- package/dist/XeroClient.js +2 -2
- package/dist/XeroClient.js.map +1 -1
- package/dist/gen/api/accountingApi.d.ts +0 -3
- package/dist/gen/api/accountingApi.js +474 -474
- package/dist/gen/api/accountingApi.js.map +1 -1
- package/dist/gen/api/appStoreApi.js +8 -8
- package/dist/gen/api/appStoreApi.js.map +1 -1
- package/dist/gen/api/assetApi.js +12 -12
- package/dist/gen/api/assetApi.js.map +1 -1
- package/dist/gen/api/bankfeedsApi.js +14 -14
- package/dist/gen/api/bankfeedsApi.js.map +1 -1
- package/dist/gen/api/filesApi.d.ts +0 -3
- package/dist/gen/api/filesApi.js +36 -36
- package/dist/gen/api/filesApi.js.map +1 -1
- package/dist/gen/api/financeApi.js +24 -24
- package/dist/gen/api/financeApi.js.map +1 -1
- package/dist/gen/api/payrollAUApi.js +64 -64
- package/dist/gen/api/payrollAUApi.js.map +1 -1
- package/dist/gen/api/payrollNZApi.js +144 -144
- package/dist/gen/api/payrollNZApi.js.map +1 -1
- package/dist/gen/api/payrollUKApi.js +140 -140
- package/dist/gen/api/payrollUKApi.js.map +1 -1
- package/dist/gen/api/projectApi.js +32 -32
- package/dist/gen/api/projectApi.js.map +1 -1
- package/package.json +6 -6
|
@@ -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(
|
|
85
|
-
return __awaiter(this,
|
|
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 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(
|
|
159
|
-
return __awaiter(this,
|
|
158
|
+
createDeduction(xeroTenantId_1, deduction_1, idempotencyKey_1) {
|
|
159
|
+
return __awaiter(this, arguments, void 0, function* (xeroTenantId, deduction, idempotencyKey, options = { headers: {} }) {
|
|
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(
|
|
232
|
-
return __awaiter(this,
|
|
231
|
+
createEarningsRate(xeroTenantId_1, earningsRate_1, idempotencyKey_1) {
|
|
232
|
+
return __awaiter(this, arguments, void 0, function* (xeroTenantId, earningsRate, idempotencyKey, options = { headers: {} }) {
|
|
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(
|
|
305
|
-
return __awaiter(this,
|
|
304
|
+
createEmployee(xeroTenantId_1, employee_1, idempotencyKey_1) {
|
|
305
|
+
return __awaiter(this, arguments, void 0, function* (xeroTenantId, employee, idempotencyKey, options = { headers: {} }) {
|
|
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(
|
|
379
|
-
return __awaiter(this,
|
|
378
|
+
createEmployeeEarningsTemplate(xeroTenantId_1, employeeID_1, earningsTemplate_1, idempotencyKey_1) {
|
|
379
|
+
return __awaiter(this, arguments, void 0, function* (xeroTenantId, employeeID, earningsTemplate, idempotencyKey, options = { headers: {} }) {
|
|
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(
|
|
458
|
-
return __awaiter(this,
|
|
457
|
+
createEmployeeLeave(xeroTenantId_1, employeeID_1, employeeLeave_1, idempotencyKey_1) {
|
|
458
|
+
return __awaiter(this, arguments, void 0, function* (xeroTenantId, employeeID, employeeLeave, idempotencyKey, options = { headers: {} }) {
|
|
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(
|
|
537
|
-
return __awaiter(this,
|
|
536
|
+
createEmployeeLeaveSetup(xeroTenantId_1, employeeID_1, employeeLeaveSetup_1, idempotencyKey_1) {
|
|
537
|
+
return __awaiter(this, arguments, void 0, function* (xeroTenantId, employeeID, employeeLeaveSetup, idempotencyKey, options = { headers: {} }) {
|
|
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(
|
|
616
|
-
return __awaiter(this,
|
|
615
|
+
createEmployeeLeaveType(xeroTenantId_1, employeeID_1, employeeLeaveType_1, idempotencyKey_1) {
|
|
616
|
+
return __awaiter(this, arguments, void 0, function* (xeroTenantId, employeeID, employeeLeaveType, idempotencyKey, options = { headers: {} }) {
|
|
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(
|
|
695
|
-
return __awaiter(this,
|
|
694
|
+
createEmployeeOpeningBalances(xeroTenantId_1, employeeID_1, employeeOpeningBalance_1, idempotencyKey_1) {
|
|
695
|
+
return __awaiter(this, arguments, void 0, function* (xeroTenantId, employeeID, employeeOpeningBalance, idempotencyKey, options = { headers: {} }) {
|
|
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(
|
|
774
|
-
return __awaiter(this,
|
|
773
|
+
createEmployeePaymentMethod(xeroTenantId_1, employeeID_1, paymentMethod_1, idempotencyKey_1) {
|
|
774
|
+
return __awaiter(this, arguments, void 0, function* (xeroTenantId, employeeID, paymentMethod, idempotencyKey, options = { headers: {} }) {
|
|
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(
|
|
853
|
-
return __awaiter(this,
|
|
852
|
+
createEmployeeSalaryAndWage(xeroTenantId_1, employeeID_1, salaryAndWage_1, idempotencyKey_1) {
|
|
853
|
+
return __awaiter(this, arguments, void 0, function* (xeroTenantId, employeeID, salaryAndWage, idempotencyKey, options = { headers: {} }) {
|
|
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(
|
|
932
|
-
return __awaiter(this,
|
|
931
|
+
createEmployeeWorkingPattern(xeroTenantId_1, employeeID_1, employeeWorkingPatternWithWorkingWeeksRequest_1, idempotencyKey_1) {
|
|
932
|
+
return __awaiter(this, arguments, void 0, function* (xeroTenantId, employeeID, employeeWorkingPatternWithWorkingWeeksRequest, idempotencyKey, options = { headers: {} }) {
|
|
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(
|
|
1011
|
-
return __awaiter(this,
|
|
1010
|
+
createEmployment(xeroTenantId_1, employeeID_1, employment_1, idempotencyKey_1) {
|
|
1011
|
+
return __awaiter(this, arguments, void 0, function* (xeroTenantId, employeeID, employment, idempotencyKey, options = { headers: {} }) {
|
|
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(
|
|
1089
|
-
return __awaiter(this,
|
|
1088
|
+
createLeaveType(xeroTenantId_1, leaveType_1, idempotencyKey_1) {
|
|
1089
|
+
return __awaiter(this, arguments, void 0, function* (xeroTenantId, leaveType, idempotencyKey, options = { headers: {} }) {
|
|
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(
|
|
1163
|
-
return __awaiter(this,
|
|
1162
|
+
createMultipleEmployeeEarningsTemplate(xeroTenantId_1, employeeID_1, earningsTemplate_1, idempotencyKey_1) {
|
|
1163
|
+
return __awaiter(this, arguments, void 0, function* (xeroTenantId, employeeID, earningsTemplate, idempotencyKey, options = { headers: {} }) {
|
|
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(
|
|
1241
|
-
return __awaiter(this,
|
|
1240
|
+
createPayRun(xeroTenantId_1, payRun_1, idempotencyKey_1) {
|
|
1241
|
+
return __awaiter(this, arguments, void 0, function* (xeroTenantId, payRun, idempotencyKey, options = { headers: {} }) {
|
|
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(
|
|
1314
|
-
return __awaiter(this,
|
|
1313
|
+
createPayRunCalendar(xeroTenantId_1, payRunCalendar_1, idempotencyKey_1) {
|
|
1314
|
+
return __awaiter(this, arguments, void 0, function* (xeroTenantId, payRunCalendar, idempotencyKey, options = { headers: {} }) {
|
|
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(
|
|
1387
|
-
return __awaiter(this,
|
|
1386
|
+
createReimbursement(xeroTenantId_1, reimbursement_1, idempotencyKey_1) {
|
|
1387
|
+
return __awaiter(this, arguments, void 0, function* (xeroTenantId, reimbursement, idempotencyKey, options = { headers: {} }) {
|
|
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(
|
|
1460
|
-
return __awaiter(this,
|
|
1459
|
+
createSuperannuation(xeroTenantId_1, benefit_1, idempotencyKey_1) {
|
|
1460
|
+
return __awaiter(this, arguments, void 0, function* (xeroTenantId, benefit, idempotencyKey, options = { headers: {} }) {
|
|
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(
|
|
1533
|
-
return __awaiter(this,
|
|
1532
|
+
createTimesheet(xeroTenantId_1, timesheet_1, idempotencyKey_1) {
|
|
1533
|
+
return __awaiter(this, arguments, void 0, function* (xeroTenantId, timesheet, idempotencyKey, options = { headers: {} }) {
|
|
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(
|
|
1607
|
-
return __awaiter(this,
|
|
1606
|
+
createTimesheetLine(xeroTenantId_1, timesheetID_1, timesheetLine_1, idempotencyKey_1) {
|
|
1607
|
+
return __awaiter(this, arguments, void 0, function* (xeroTenantId, timesheetID, timesheetLine, idempotencyKey, options = { headers: {} }) {
|
|
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(
|
|
1685
|
-
return __awaiter(this,
|
|
1684
|
+
deleteEmployeeEarningsTemplate(xeroTenantId_1, employeeID_1, payTemplateEarningID_1) {
|
|
1685
|
+
return __awaiter(this, arguments, void 0, function* (xeroTenantId, employeeID, payTemplateEarningID, options = { headers: {} }) {
|
|
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(
|
|
1763
|
-
return __awaiter(this,
|
|
1762
|
+
deleteEmployeeLeave(xeroTenantId_1, employeeID_1, leaveID_1) {
|
|
1763
|
+
return __awaiter(this, arguments, void 0, function* (xeroTenantId, employeeID, leaveID, options = { headers: {} }) {
|
|
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(
|
|
1841
|
-
return __awaiter(this,
|
|
1840
|
+
deleteEmployeeSalaryAndWage(xeroTenantId_1, employeeID_1, salaryAndWagesID_1) {
|
|
1841
|
+
return __awaiter(this, arguments, void 0, function* (xeroTenantId, employeeID, salaryAndWagesID, options = { headers: {} }) {
|
|
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(
|
|
1919
|
-
return __awaiter(this,
|
|
1918
|
+
deleteEmployeeWorkingPattern(xeroTenantId_1, employeeID_1, employeeWorkingPatternID_1) {
|
|
1919
|
+
return __awaiter(this, arguments, void 0, function* (xeroTenantId, employeeID, employeeWorkingPatternID, options = { headers: {} }) {
|
|
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(
|
|
1996
|
-
return __awaiter(this,
|
|
1995
|
+
deleteTimesheet(xeroTenantId_1, timesheetID_1) {
|
|
1996
|
+
return __awaiter(this, arguments, void 0, function* (xeroTenantId, timesheetID, options = { headers: {} }) {
|
|
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(
|
|
2069
|
-
return __awaiter(this,
|
|
2068
|
+
deleteTimesheetLine(xeroTenantId_1, timesheetID_1, timesheetLineID_1) {
|
|
2069
|
+
return __awaiter(this, arguments, void 0, function* (xeroTenantId, timesheetID, timesheetLineID, options = { headers: {} }) {
|
|
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(
|
|
2146
|
-
return __awaiter(this,
|
|
2145
|
+
getDeduction(xeroTenantId_1, deductionId_1) {
|
|
2146
|
+
return __awaiter(this, arguments, void 0, function* (xeroTenantId, deductionId, options = { headers: {} }) {
|
|
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(
|
|
2218
|
-
return __awaiter(this,
|
|
2217
|
+
getDeductions(xeroTenantId_1, page_1) {
|
|
2218
|
+
return __awaiter(this, arguments, void 0, function* (xeroTenantId, page, options = { headers: {} }) {
|
|
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(
|
|
2288
|
-
return __awaiter(this,
|
|
2287
|
+
getEarningsRate(xeroTenantId_1, earningsRateID_1) {
|
|
2288
|
+
return __awaiter(this, arguments, void 0, function* (xeroTenantId, earningsRateID, options = { headers: {} }) {
|
|
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(
|
|
2360
|
-
return __awaiter(this,
|
|
2359
|
+
getEarningsRates(xeroTenantId_1, page_1) {
|
|
2360
|
+
return __awaiter(this, arguments, void 0, function* (xeroTenantId, page, options = { headers: {} }) {
|
|
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(
|
|
2430
|
-
return __awaiter(this,
|
|
2429
|
+
getEmployee(xeroTenantId_1, employeeID_1) {
|
|
2430
|
+
return __awaiter(this, arguments, void 0, function* (xeroTenantId, employeeID, options = { headers: {} }) {
|
|
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(
|
|
2502
|
-
return __awaiter(this,
|
|
2501
|
+
getEmployeeLeaveBalances(xeroTenantId_1, employeeID_1) {
|
|
2502
|
+
return __awaiter(this, arguments, void 0, function* (xeroTenantId, employeeID, options = { headers: {} }) {
|
|
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(
|
|
2576
|
-
return __awaiter(this,
|
|
2575
|
+
getEmployeeLeavePeriods(xeroTenantId_1, employeeID_1, startDate_1, endDate_1) {
|
|
2576
|
+
return __awaiter(this, arguments, void 0, function* (xeroTenantId, employeeID, startDate, endDate, options = { headers: {} }) {
|
|
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(
|
|
2654
|
-
return __awaiter(this,
|
|
2653
|
+
getEmployeeLeaveTypes(xeroTenantId_1, employeeID_1) {
|
|
2654
|
+
return __awaiter(this, arguments, void 0, function* (xeroTenantId, employeeID, options = { headers: {} }) {
|
|
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(
|
|
2726
|
-
return __awaiter(this,
|
|
2725
|
+
getEmployeeLeaves(xeroTenantId_1, employeeID_1) {
|
|
2726
|
+
return __awaiter(this, arguments, void 0, function* (xeroTenantId, employeeID, options = { headers: {} }) {
|
|
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(
|
|
2798
|
-
return __awaiter(this,
|
|
2797
|
+
getEmployeeOpeningBalances(xeroTenantId_1, employeeID_1) {
|
|
2798
|
+
return __awaiter(this, arguments, void 0, function* (xeroTenantId, employeeID, options = { headers: {} }) {
|
|
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(
|
|
2870
|
-
return __awaiter(this,
|
|
2869
|
+
getEmployeePayTemplates(xeroTenantId_1, employeeID_1) {
|
|
2870
|
+
return __awaiter(this, arguments, void 0, function* (xeroTenantId, employeeID, options = { headers: {} }) {
|
|
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(
|
|
2942
|
-
return __awaiter(this,
|
|
2941
|
+
getEmployeePaymentMethod(xeroTenantId_1, employeeID_1) {
|
|
2942
|
+
return __awaiter(this, arguments, void 0, function* (xeroTenantId, employeeID, options = { headers: {} }) {
|
|
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(
|
|
3015
|
-
return __awaiter(this,
|
|
3014
|
+
getEmployeeSalaryAndWage(xeroTenantId_1, employeeID_1, salaryAndWagesID_1) {
|
|
3015
|
+
return __awaiter(this, arguments, void 0, function* (xeroTenantId, employeeID, salaryAndWagesID, options = { headers: {} }) {
|
|
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(
|
|
3093
|
-
return __awaiter(this,
|
|
3092
|
+
getEmployeeSalaryAndWages(xeroTenantId_1, employeeID_1, page_1) {
|
|
3093
|
+
return __awaiter(this, arguments, void 0, function* (xeroTenantId, employeeID, page, options = { headers: {} }) {
|
|
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(
|
|
3168
|
-
return __awaiter(this,
|
|
3167
|
+
getEmployeeTax(xeroTenantId_1, employeeID_1) {
|
|
3168
|
+
return __awaiter(this, arguments, void 0, function* (xeroTenantId, employeeID, options = { headers: {} }) {
|
|
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(
|
|
3241
|
-
return __awaiter(this,
|
|
3240
|
+
getEmployeeWorkingPattern(xeroTenantId_1, employeeID_1, employeeWorkingPatternID_1) {
|
|
3241
|
+
return __awaiter(this, arguments, void 0, function* (xeroTenantId, employeeID, employeeWorkingPatternID, options = { headers: {} }) {
|
|
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(
|
|
3318
|
-
return __awaiter(this,
|
|
3317
|
+
getEmployeeWorkingPatterns(xeroTenantId_1, employeeID_1) {
|
|
3318
|
+
return __awaiter(this, arguments, void 0, function* (xeroTenantId, employeeID, options = { headers: {} }) {
|
|
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(
|
|
3391
|
-
return __awaiter(this,
|
|
3390
|
+
getEmployees(xeroTenantId_1, filter_1, page_1) {
|
|
3391
|
+
return __awaiter(this, arguments, void 0, function* (xeroTenantId, filter, page, options = { headers: {} }) {
|
|
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(
|
|
3464
|
-
return __awaiter(this,
|
|
3463
|
+
getLeaveType(xeroTenantId_1, leaveTypeID_1) {
|
|
3464
|
+
return __awaiter(this, arguments, void 0, function* (xeroTenantId, leaveTypeID, options = { headers: {} }) {
|
|
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(
|
|
3537
|
-
return __awaiter(this,
|
|
3536
|
+
getLeaveTypes(xeroTenantId_1, page_1, activeOnly_1) {
|
|
3537
|
+
return __awaiter(this, arguments, void 0, function* (xeroTenantId, page, activeOnly, options = { headers: {} }) {
|
|
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(
|
|
3610
|
-
return __awaiter(this,
|
|
3609
|
+
getPayRun(xeroTenantId_1, payRunID_1) {
|
|
3610
|
+
return __awaiter(this, arguments, void 0, function* (xeroTenantId, payRunID, options = { headers: {} }) {
|
|
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(
|
|
3682
|
-
return __awaiter(this,
|
|
3681
|
+
getPayRunCalendar(xeroTenantId_1, payrollCalendarID_1) {
|
|
3682
|
+
return __awaiter(this, arguments, void 0, function* (xeroTenantId, payrollCalendarID, options = { headers: {} }) {
|
|
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(
|
|
3754
|
-
return __awaiter(this,
|
|
3753
|
+
getPayRunCalendars(xeroTenantId_1, page_1) {
|
|
3754
|
+
return __awaiter(this, arguments, void 0, function* (xeroTenantId, page, options = { headers: {} }) {
|
|
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(
|
|
3825
|
-
return __awaiter(this,
|
|
3824
|
+
getPayRuns(xeroTenantId_1, page_1, status_1) {
|
|
3825
|
+
return __awaiter(this, arguments, void 0, function* (xeroTenantId, page, status, options = { headers: {} }) {
|
|
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(
|
|
3898
|
-
return __awaiter(this,
|
|
3897
|
+
getPaySlip(xeroTenantId_1, paySlipID_1) {
|
|
3898
|
+
return __awaiter(this, arguments, void 0, function* (xeroTenantId, paySlipID, options = { headers: {} }) {
|
|
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(
|
|
3971
|
-
return __awaiter(this,
|
|
3970
|
+
getPaySlips(xeroTenantId_1, payRunID_1, page_1) {
|
|
3971
|
+
return __awaiter(this, arguments, void 0, function* (xeroTenantId, payRunID, page, options = { headers: {} }) {
|
|
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(
|
|
4048
|
-
return __awaiter(this,
|
|
4047
|
+
getReimbursement(xeroTenantId_1, reimbursementID_1) {
|
|
4048
|
+
return __awaiter(this, arguments, void 0, function* (xeroTenantId, reimbursementID, options = { headers: {} }) {
|
|
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(
|
|
4120
|
-
return __awaiter(this,
|
|
4119
|
+
getReimbursements(xeroTenantId_1, page_1) {
|
|
4120
|
+
return __awaiter(this, arguments, void 0, function* (xeroTenantId, page, options = { headers: {} }) {
|
|
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(
|
|
4189
|
-
return __awaiter(this,
|
|
4188
|
+
getSettings(xeroTenantId_1) {
|
|
4189
|
+
return __awaiter(this, arguments, void 0, function* (xeroTenantId, options = { headers: {} }) {
|
|
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(
|
|
4256
|
-
return __awaiter(this,
|
|
4255
|
+
getStatutoryDeduction(xeroTenantId_1, id_1) {
|
|
4256
|
+
return __awaiter(this, arguments, void 0, function* (xeroTenantId, id, options = { headers: {} }) {
|
|
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(
|
|
4328
|
-
return __awaiter(this,
|
|
4327
|
+
getStatutoryDeductions(xeroTenantId_1, page_1) {
|
|
4328
|
+
return __awaiter(this, arguments, void 0, function* (xeroTenantId, page, options = { headers: {} }) {
|
|
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(
|
|
4398
|
-
return __awaiter(this,
|
|
4397
|
+
getSuperannuation(xeroTenantId_1, superannuationID_1) {
|
|
4398
|
+
return __awaiter(this, arguments, void 0, function* (xeroTenantId, superannuationID, options = { headers: {} }) {
|
|
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(
|
|
4470
|
-
return __awaiter(this,
|
|
4469
|
+
getSuperannuations(xeroTenantId_1, page_1) {
|
|
4470
|
+
return __awaiter(this, arguments, void 0, function* (xeroTenantId, page, options = { headers: {} }) {
|
|
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(
|
|
4540
|
-
return __awaiter(this,
|
|
4539
|
+
getTimesheet(xeroTenantId_1, timesheetID_1) {
|
|
4540
|
+
return __awaiter(this, arguments, void 0, function* (xeroTenantId, timesheetID, options = { headers: {} }) {
|
|
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(
|
|
4617
|
-
return __awaiter(this,
|
|
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: {} }) {
|
|
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(
|
|
4701
|
-
return __awaiter(this,
|
|
4700
|
+
getTrackingCategories(xeroTenantId_1) {
|
|
4701
|
+
return __awaiter(this, arguments, void 0, function* (xeroTenantId, options = { headers: {} }) {
|
|
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(
|
|
4769
|
-
return __awaiter(this,
|
|
4768
|
+
revertTimesheet(xeroTenantId_1, timesheetID_1, idempotencyKey_1) {
|
|
4769
|
+
return __awaiter(this, arguments, void 0, function* (xeroTenantId, timesheetID, idempotencyKey, options = { headers: {} }) {
|
|
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(
|
|
4844
|
-
return __awaiter(this,
|
|
4843
|
+
updateEmployee(xeroTenantId_1, employeeID_1, employee_1, idempotencyKey_1) {
|
|
4844
|
+
return __awaiter(this, arguments, void 0, function* (xeroTenantId, employeeID, employee, idempotencyKey, options = { headers: {} }) {
|
|
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(
|
|
4924
|
-
return __awaiter(this,
|
|
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: {} }) {
|
|
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(
|
|
5009
|
-
return __awaiter(this,
|
|
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: {} }) {
|
|
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(
|
|
5094
|
-
return __awaiter(this,
|
|
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: {} }) {
|
|
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(
|
|
5178
|
-
return __awaiter(this,
|
|
5177
|
+
updateEmployeeTax(xeroTenantId_1, employeeID_1, employeeTax_1, idempotencyKey_1) {
|
|
5178
|
+
return __awaiter(this, arguments, void 0, function* (xeroTenantId, employeeID, employeeTax, idempotencyKey, options = { headers: {} }) {
|
|
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(
|
|
5257
|
-
return __awaiter(this,
|
|
5256
|
+
updatePayRun(xeroTenantId_1, payRunID_1, payRun_1, idempotencyKey_1) {
|
|
5257
|
+
return __awaiter(this, arguments, void 0, function* (xeroTenantId, payRunID, payRun, idempotencyKey, options = { headers: {} }) {
|
|
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(
|
|
5336
|
-
return __awaiter(this,
|
|
5335
|
+
updatePaySlipLineItems(xeroTenantId_1, paySlipID_1, paySlip_1, idempotencyKey_1) {
|
|
5336
|
+
return __awaiter(this, arguments, void 0, function* (xeroTenantId, paySlipID, paySlip, idempotencyKey, options = { headers: {} }) {
|
|
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(
|
|
5416
|
-
return __awaiter(this,
|
|
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: {} }) {
|
|
5417
5417
|
const localVarPath = this.basePath + '/Timesheets/{TimesheetID}/Lines/{TimesheetLineID}'
|
|
5418
5418
|
.replace('{' + 'TimesheetID' + '}', encodeURIComponent(String(timesheetID)))
|
|
5419
5419
|
.replace('{' + 'TimesheetLineID' + '}', encodeURIComponent(String(timesheetLineID)));
|