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