xero-node 4.35.0 → 4.36.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/dist/gen/api/accountingApi.d.ts +245 -100
  2. package/dist/gen/api/accountingApi.js +506 -101
  3. package/dist/gen/api/accountingApi.js.map +1 -1
  4. package/dist/gen/api/appStoreApi.d.ts +5 -3
  5. package/dist/gen/api/appStoreApi.js +8 -4
  6. package/dist/gen/api/appStoreApi.js.map +1 -1
  7. package/dist/gen/api/assetApi.d.ts +5 -3
  8. package/dist/gen/api/assetApi.js +8 -4
  9. package/dist/gen/api/assetApi.js.map +1 -1
  10. package/dist/gen/api/bankfeedsApi.d.ts +7 -4
  11. package/dist/gen/api/bankfeedsApi.js +11 -5
  12. package/dist/gen/api/bankfeedsApi.js.map +1 -1
  13. package/dist/gen/api/filesApi.d.ts +13 -7
  14. package/dist/gen/api/filesApi.js +20 -8
  15. package/dist/gen/api/filesApi.js.map +1 -1
  16. package/dist/gen/api/financeApi.d.ts +1 -1
  17. package/dist/gen/api/financeApi.js +2 -2
  18. package/dist/gen/api/payrollAUApi.d.ts +31 -16
  19. package/dist/gen/api/payrollAUApi.js +47 -17
  20. package/dist/gen/api/payrollAUApi.js.map +1 -1
  21. package/dist/gen/api/payrollNZApi.d.ts +59 -30
  22. package/dist/gen/api/payrollNZApi.js +89 -31
  23. package/dist/gen/api/payrollNZApi.js.map +1 -1
  24. package/dist/gen/api/payrollUKApi.d.ts +55 -28
  25. package/dist/gen/api/payrollUKApi.js +83 -29
  26. package/dist/gen/api/payrollUKApi.js.map +1 -1
  27. package/dist/gen/api/projectApi.d.ts +15 -8
  28. package/dist/gen/api/projectApi.js +23 -9
  29. package/dist/gen/api/projectApi.js.map +1 -1
  30. package/dist/gen/model/accounting/accountType.d.ts +1 -5
  31. package/dist/gen/model/accounting/accountType.js +0 -4
  32. package/dist/gen/model/accounting/accountType.js.map +1 -1
  33. package/dist/gen/model/accounting/allocation.d.ts +8 -0
  34. package/dist/gen/model/accounting/allocation.js +10 -0
  35. package/dist/gen/model/accounting/allocation.js.map +1 -1
  36. package/dist/gen/model/accounting/contact.d.ts +0 -4
  37. package/dist/gen/model/accounting/contact.js +0 -5
  38. package/dist/gen/model/accounting/contact.js.map +1 -1
  39. package/dist/gen/model/accounting/models.js +1 -0
  40. package/dist/gen/model/accounting/models.js.map +1 -1
  41. package/dist/gen/model/accounting/tenNinetyNineContact.d.ts +23 -0
  42. package/dist/gen/model/accounting/tenNinetyNineContact.js +28 -0
  43. package/dist/gen/model/accounting/tenNinetyNineContact.js.map +1 -1
  44. package/dist/gen/model/finance/problemType.d.ts +2 -1
  45. package/dist/gen/model/finance/problemType.js +1 -0
  46. package/dist/gen/model/finance/problemType.js.map +1 -1
  47. package/dist/gen/model/payroll-au/leavePeriodStatus.d.ts +3 -1
  48. package/dist/gen/model/payroll-au/leavePeriodStatus.js +2 -0
  49. package/dist/gen/model/payroll-au/leavePeriodStatus.js.map +1 -1
  50. package/package.json +1 -1
@@ -3,7 +3,7 @@
3
3
  * Xero Payroll AU API
4
4
  * This is the Xero Payroll API for orgs in Australia region.
5
5
  *
6
- * The version of the OpenAPI document: 2.38.0
6
+ * The version of the OpenAPI document: 2.40.0
7
7
  * Contact: api@xero.com
8
8
  *
9
9
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -34,7 +34,7 @@ var PayrollAuApiApiKeys;
34
34
  class PayrollAuApi {
35
35
  constructor(basePathOrUsername, password, basePath) {
36
36
  this._basePath = defaultBasePath;
37
- this.defaultHeaders = { 'user-agent': 'xero-node-4.35.0' };
37
+ this.defaultHeaders = { 'user-agent': 'xero-node-4.36.0' };
38
38
  this._useQuerystring = false;
39
39
  this.binaryHeaders = {};
40
40
  this.authentications = {
@@ -75,8 +75,9 @@ class PayrollAuApi {
75
75
  * @summary Approve a requested leave application by a unique leave application id
76
76
  * @param xeroTenantId Xero identifier for Tenant
77
77
  * @param leaveApplicationID Leave Application id for single object
78
+ * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
78
79
  */
79
- approveLeaveApplication(xeroTenantId, leaveApplicationID, options = { headers: {} }) {
80
+ approveLeaveApplication(xeroTenantId, leaveApplicationID, idempotencyKey, options = { headers: {} }) {
80
81
  return __awaiter(this, void 0, void 0, function* () {
81
82
  const localVarPath = this.basePath + '/LeaveApplications/{LeaveApplicationID}/approve'
82
83
  .replace('{' + 'LeaveApplicationID' + '}', encodeURIComponent(String(leaveApplicationID)));
@@ -92,6 +93,7 @@ class PayrollAuApi {
92
93
  throw new Error('Required parameter leaveApplicationID was null or undefined when calling approveLeaveApplication.');
93
94
  }
94
95
  localVarHeaderParams['Xero-Tenant-Id'] = models_1.ObjectSerializer.serialize(xeroTenantId, "string");
96
+ localVarHeaderParams['Idempotency-Key'] = models_1.ObjectSerializer.serialize(idempotencyKey, "string");
95
97
  Object.assign(localVarHeaderParams, options.headers);
96
98
  let localVarUseFormData = false;
97
99
  let localVarRequestOptions = {
@@ -138,8 +140,9 @@ class PayrollAuApi {
138
140
  * @summary Creates a payroll employee
139
141
  * @param xeroTenantId Xero identifier for Tenant
140
142
  * @param employee
143
+ * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
141
144
  */
142
- createEmployee(xeroTenantId, employee, options = { headers: {} }) {
145
+ createEmployee(xeroTenantId, employee, idempotencyKey, options = { headers: {} }) {
143
146
  return __awaiter(this, void 0, void 0, function* () {
144
147
  const localVarPath = this.basePath + '/Employees';
145
148
  let localVarQueryParameters = {};
@@ -154,6 +157,7 @@ class PayrollAuApi {
154
157
  throw new Error('Required parameter employee was null or undefined when calling createEmployee.');
155
158
  }
156
159
  localVarHeaderParams['Xero-Tenant-Id'] = models_1.ObjectSerializer.serialize(xeroTenantId, "string");
160
+ localVarHeaderParams['Idempotency-Key'] = models_1.ObjectSerializer.serialize(idempotencyKey, "string");
157
161
  Object.assign(localVarHeaderParams, options.headers);
158
162
  let localVarUseFormData = false;
159
163
  let localVarRequestOptions = {
@@ -201,8 +205,9 @@ class PayrollAuApi {
201
205
  * @summary Creates a leave application
202
206
  * @param xeroTenantId Xero identifier for Tenant
203
207
  * @param leaveApplication
208
+ * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
204
209
  */
205
- createLeaveApplication(xeroTenantId, leaveApplication, options = { headers: {} }) {
210
+ createLeaveApplication(xeroTenantId, leaveApplication, idempotencyKey, options = { headers: {} }) {
206
211
  return __awaiter(this, void 0, void 0, function* () {
207
212
  const localVarPath = this.basePath + '/LeaveApplications';
208
213
  let localVarQueryParameters = {};
@@ -217,6 +222,7 @@ class PayrollAuApi {
217
222
  throw new Error('Required parameter leaveApplication was null or undefined when calling createLeaveApplication.');
218
223
  }
219
224
  localVarHeaderParams['Xero-Tenant-Id'] = models_1.ObjectSerializer.serialize(xeroTenantId, "string");
225
+ localVarHeaderParams['Idempotency-Key'] = models_1.ObjectSerializer.serialize(idempotencyKey, "string");
220
226
  Object.assign(localVarHeaderParams, options.headers);
221
227
  let localVarUseFormData = false;
222
228
  let localVarRequestOptions = {
@@ -264,8 +270,9 @@ class PayrollAuApi {
264
270
  * @summary Creates a pay item
265
271
  * @param xeroTenantId Xero identifier for Tenant
266
272
  * @param payItem
273
+ * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
267
274
  */
268
- createPayItem(xeroTenantId, payItem, options = { headers: {} }) {
275
+ createPayItem(xeroTenantId, payItem, idempotencyKey, options = { headers: {} }) {
269
276
  return __awaiter(this, void 0, void 0, function* () {
270
277
  const localVarPath = this.basePath + '/PayItems';
271
278
  let localVarQueryParameters = {};
@@ -280,6 +287,7 @@ class PayrollAuApi {
280
287
  throw new Error('Required parameter payItem was null or undefined when calling createPayItem.');
281
288
  }
282
289
  localVarHeaderParams['Xero-Tenant-Id'] = models_1.ObjectSerializer.serialize(xeroTenantId, "string");
290
+ localVarHeaderParams['Idempotency-Key'] = models_1.ObjectSerializer.serialize(idempotencyKey, "string");
283
291
  Object.assign(localVarHeaderParams, options.headers);
284
292
  let localVarUseFormData = false;
285
293
  let localVarRequestOptions = {
@@ -327,8 +335,9 @@ class PayrollAuApi {
327
335
  * @summary Creates a pay run
328
336
  * @param xeroTenantId Xero identifier for Tenant
329
337
  * @param payRun
338
+ * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
330
339
  */
331
- createPayRun(xeroTenantId, payRun, options = { headers: {} }) {
340
+ createPayRun(xeroTenantId, payRun, idempotencyKey, options = { headers: {} }) {
332
341
  return __awaiter(this, void 0, void 0, function* () {
333
342
  const localVarPath = this.basePath + '/PayRuns';
334
343
  let localVarQueryParameters = {};
@@ -343,6 +352,7 @@ class PayrollAuApi {
343
352
  throw new Error('Required parameter payRun was null or undefined when calling createPayRun.');
344
353
  }
345
354
  localVarHeaderParams['Xero-Tenant-Id'] = models_1.ObjectSerializer.serialize(xeroTenantId, "string");
355
+ localVarHeaderParams['Idempotency-Key'] = models_1.ObjectSerializer.serialize(idempotencyKey, "string");
346
356
  Object.assign(localVarHeaderParams, options.headers);
347
357
  let localVarUseFormData = false;
348
358
  let localVarRequestOptions = {
@@ -390,8 +400,9 @@ class PayrollAuApi {
390
400
  * @summary Creates a Payroll Calendar
391
401
  * @param xeroTenantId Xero identifier for Tenant
392
402
  * @param payrollCalendar
403
+ * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
393
404
  */
394
- createPayrollCalendar(xeroTenantId, payrollCalendar, options = { headers: {} }) {
405
+ createPayrollCalendar(xeroTenantId, payrollCalendar, idempotencyKey, options = { headers: {} }) {
395
406
  return __awaiter(this, void 0, void 0, function* () {
396
407
  const localVarPath = this.basePath + '/PayrollCalendars';
397
408
  let localVarQueryParameters = {};
@@ -406,6 +417,7 @@ class PayrollAuApi {
406
417
  throw new Error('Required parameter payrollCalendar was null or undefined when calling createPayrollCalendar.');
407
418
  }
408
419
  localVarHeaderParams['Xero-Tenant-Id'] = models_1.ObjectSerializer.serialize(xeroTenantId, "string");
420
+ localVarHeaderParams['Idempotency-Key'] = models_1.ObjectSerializer.serialize(idempotencyKey, "string");
409
421
  Object.assign(localVarHeaderParams, options.headers);
410
422
  let localVarUseFormData = false;
411
423
  let localVarRequestOptions = {
@@ -453,8 +465,9 @@ class PayrollAuApi {
453
465
  * @summary Creates a superfund
454
466
  * @param xeroTenantId Xero identifier for Tenant
455
467
  * @param superFund
468
+ * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
456
469
  */
457
- createSuperfund(xeroTenantId, superFund, options = { headers: {} }) {
470
+ createSuperfund(xeroTenantId, superFund, idempotencyKey, options = { headers: {} }) {
458
471
  return __awaiter(this, void 0, void 0, function* () {
459
472
  const localVarPath = this.basePath + '/Superfunds';
460
473
  let localVarQueryParameters = {};
@@ -469,6 +482,7 @@ class PayrollAuApi {
469
482
  throw new Error('Required parameter superFund was null or undefined when calling createSuperfund.');
470
483
  }
471
484
  localVarHeaderParams['Xero-Tenant-Id'] = models_1.ObjectSerializer.serialize(xeroTenantId, "string");
485
+ localVarHeaderParams['Idempotency-Key'] = models_1.ObjectSerializer.serialize(idempotencyKey, "string");
472
486
  Object.assign(localVarHeaderParams, options.headers);
473
487
  let localVarUseFormData = false;
474
488
  let localVarRequestOptions = {
@@ -516,8 +530,9 @@ class PayrollAuApi {
516
530
  * @summary Creates a timesheet
517
531
  * @param xeroTenantId Xero identifier for Tenant
518
532
  * @param timesheet
533
+ * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
519
534
  */
520
- createTimesheet(xeroTenantId, timesheet, options = { headers: {} }) {
535
+ createTimesheet(xeroTenantId, timesheet, idempotencyKey, options = { headers: {} }) {
521
536
  return __awaiter(this, void 0, void 0, function* () {
522
537
  const localVarPath = this.basePath + '/Timesheets';
523
538
  let localVarQueryParameters = {};
@@ -532,6 +547,7 @@ class PayrollAuApi {
532
547
  throw new Error('Required parameter timesheet was null or undefined when calling createTimesheet.');
533
548
  }
534
549
  localVarHeaderParams['Xero-Tenant-Id'] = models_1.ObjectSerializer.serialize(xeroTenantId, "string");
550
+ localVarHeaderParams['Idempotency-Key'] = models_1.ObjectSerializer.serialize(idempotencyKey, "string");
535
551
  Object.assign(localVarHeaderParams, options.headers);
536
552
  let localVarUseFormData = false;
537
553
  let localVarRequestOptions = {
@@ -1710,8 +1726,9 @@ class PayrollAuApi {
1710
1726
  * @summary Reject a leave application by a unique leave application id
1711
1727
  * @param xeroTenantId Xero identifier for Tenant
1712
1728
  * @param leaveApplicationID Leave Application id for single object
1729
+ * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
1713
1730
  */
1714
- rejectLeaveApplication(xeroTenantId, leaveApplicationID, options = { headers: {} }) {
1731
+ rejectLeaveApplication(xeroTenantId, leaveApplicationID, idempotencyKey, options = { headers: {} }) {
1715
1732
  return __awaiter(this, void 0, void 0, function* () {
1716
1733
  const localVarPath = this.basePath + '/LeaveApplications/{LeaveApplicationID}/reject'
1717
1734
  .replace('{' + 'LeaveApplicationID' + '}', encodeURIComponent(String(leaveApplicationID)));
@@ -1727,6 +1744,7 @@ class PayrollAuApi {
1727
1744
  throw new Error('Required parameter leaveApplicationID was null or undefined when calling rejectLeaveApplication.');
1728
1745
  }
1729
1746
  localVarHeaderParams['Xero-Tenant-Id'] = models_1.ObjectSerializer.serialize(xeroTenantId, "string");
1747
+ localVarHeaderParams['Idempotency-Key'] = models_1.ObjectSerializer.serialize(idempotencyKey, "string");
1730
1748
  Object.assign(localVarHeaderParams, options.headers);
1731
1749
  let localVarUseFormData = false;
1732
1750
  let localVarRequestOptions = {
@@ -1773,9 +1791,10 @@ class PayrollAuApi {
1773
1791
  * @summary Updates an employee\'s detail
1774
1792
  * @param xeroTenantId Xero identifier for Tenant
1775
1793
  * @param employeeID Employee id for single object
1794
+ * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
1776
1795
  * @param employee
1777
1796
  */
1778
- updateEmployee(xeroTenantId, employeeID, employee, options = { headers: {} }) {
1797
+ updateEmployee(xeroTenantId, employeeID, idempotencyKey, employee, options = { headers: {} }) {
1779
1798
  return __awaiter(this, void 0, void 0, function* () {
1780
1799
  const localVarPath = this.basePath + '/Employees/{EmployeeID}'
1781
1800
  .replace('{' + 'EmployeeID' + '}', encodeURIComponent(String(employeeID)));
@@ -1791,6 +1810,7 @@ class PayrollAuApi {
1791
1810
  throw new Error('Required parameter employeeID was null or undefined when calling updateEmployee.');
1792
1811
  }
1793
1812
  localVarHeaderParams['Xero-Tenant-Id'] = models_1.ObjectSerializer.serialize(xeroTenantId, "string");
1813
+ localVarHeaderParams['Idempotency-Key'] = models_1.ObjectSerializer.serialize(idempotencyKey, "string");
1794
1814
  Object.assign(localVarHeaderParams, options.headers);
1795
1815
  let localVarUseFormData = false;
1796
1816
  let localVarRequestOptions = {
@@ -1839,8 +1859,9 @@ class PayrollAuApi {
1839
1859
  * @param xeroTenantId Xero identifier for Tenant
1840
1860
  * @param leaveApplicationID Leave Application id for single object
1841
1861
  * @param leaveApplication
1862
+ * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
1842
1863
  */
1843
- updateLeaveApplication(xeroTenantId, leaveApplicationID, leaveApplication, options = { headers: {} }) {
1864
+ updateLeaveApplication(xeroTenantId, leaveApplicationID, leaveApplication, idempotencyKey, options = { headers: {} }) {
1844
1865
  return __awaiter(this, void 0, void 0, function* () {
1845
1866
  const localVarPath = this.basePath + '/LeaveApplications/{LeaveApplicationID}'
1846
1867
  .replace('{' + 'LeaveApplicationID' + '}', encodeURIComponent(String(leaveApplicationID)));
@@ -1860,6 +1881,7 @@ class PayrollAuApi {
1860
1881
  throw new Error('Required parameter leaveApplication was null or undefined when calling updateLeaveApplication.');
1861
1882
  }
1862
1883
  localVarHeaderParams['Xero-Tenant-Id'] = models_1.ObjectSerializer.serialize(xeroTenantId, "string");
1884
+ localVarHeaderParams['Idempotency-Key'] = models_1.ObjectSerializer.serialize(idempotencyKey, "string");
1863
1885
  Object.assign(localVarHeaderParams, options.headers);
1864
1886
  let localVarUseFormData = false;
1865
1887
  let localVarRequestOptions = {
@@ -1907,9 +1929,10 @@ class PayrollAuApi {
1907
1929
  * @summary Updates a pay run
1908
1930
  * @param xeroTenantId Xero identifier for Tenant
1909
1931
  * @param payRunID PayRun id for single object
1932
+ * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
1910
1933
  * @param payRun
1911
1934
  */
1912
- updatePayRun(xeroTenantId, payRunID, payRun, options = { headers: {} }) {
1935
+ updatePayRun(xeroTenantId, payRunID, idempotencyKey, payRun, options = { headers: {} }) {
1913
1936
  return __awaiter(this, void 0, void 0, function* () {
1914
1937
  const localVarPath = this.basePath + '/PayRuns/{PayRunID}'
1915
1938
  .replace('{' + 'PayRunID' + '}', encodeURIComponent(String(payRunID)));
@@ -1925,6 +1948,7 @@ class PayrollAuApi {
1925
1948
  throw new Error('Required parameter payRunID was null or undefined when calling updatePayRun.');
1926
1949
  }
1927
1950
  localVarHeaderParams['Xero-Tenant-Id'] = models_1.ObjectSerializer.serialize(xeroTenantId, "string");
1951
+ localVarHeaderParams['Idempotency-Key'] = models_1.ObjectSerializer.serialize(idempotencyKey, "string");
1928
1952
  Object.assign(localVarHeaderParams, options.headers);
1929
1953
  let localVarUseFormData = false;
1930
1954
  let localVarRequestOptions = {
@@ -1972,9 +1996,10 @@ class PayrollAuApi {
1972
1996
  * @summary Updates a payslip
1973
1997
  * @param xeroTenantId Xero identifier for Tenant
1974
1998
  * @param payslipID Payslip id for single object
1999
+ * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
1975
2000
  * @param payslipLines
1976
2001
  */
1977
- updatePayslip(xeroTenantId, payslipID, payslipLines, options = { headers: {} }) {
2002
+ updatePayslip(xeroTenantId, payslipID, idempotencyKey, payslipLines, options = { headers: {} }) {
1978
2003
  return __awaiter(this, void 0, void 0, function* () {
1979
2004
  const localVarPath = this.basePath + '/Payslip/{PayslipID}'
1980
2005
  .replace('{' + 'PayslipID' + '}', encodeURIComponent(String(payslipID)));
@@ -1990,6 +2015,7 @@ class PayrollAuApi {
1990
2015
  throw new Error('Required parameter payslipID was null or undefined when calling updatePayslip.');
1991
2016
  }
1992
2017
  localVarHeaderParams['Xero-Tenant-Id'] = models_1.ObjectSerializer.serialize(xeroTenantId, "string");
2018
+ localVarHeaderParams['Idempotency-Key'] = models_1.ObjectSerializer.serialize(idempotencyKey, "string");
1993
2019
  Object.assign(localVarHeaderParams, options.headers);
1994
2020
  let localVarUseFormData = false;
1995
2021
  let localVarRequestOptions = {
@@ -2037,9 +2063,10 @@ class PayrollAuApi {
2037
2063
  * @summary Updates a superfund
2038
2064
  * @param xeroTenantId Xero identifier for Tenant
2039
2065
  * @param superFundID Superfund id for single object
2066
+ * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
2040
2067
  * @param superFund
2041
2068
  */
2042
- updateSuperfund(xeroTenantId, superFundID, superFund, options = { headers: {} }) {
2069
+ updateSuperfund(xeroTenantId, superFundID, idempotencyKey, superFund, options = { headers: {} }) {
2043
2070
  return __awaiter(this, void 0, void 0, function* () {
2044
2071
  const localVarPath = this.basePath + '/Superfunds/{SuperFundID}'
2045
2072
  .replace('{' + 'SuperFundID' + '}', encodeURIComponent(String(superFundID)));
@@ -2055,6 +2082,7 @@ class PayrollAuApi {
2055
2082
  throw new Error('Required parameter superFundID was null or undefined when calling updateSuperfund.');
2056
2083
  }
2057
2084
  localVarHeaderParams['Xero-Tenant-Id'] = models_1.ObjectSerializer.serialize(xeroTenantId, "string");
2085
+ localVarHeaderParams['Idempotency-Key'] = models_1.ObjectSerializer.serialize(idempotencyKey, "string");
2058
2086
  Object.assign(localVarHeaderParams, options.headers);
2059
2087
  let localVarUseFormData = false;
2060
2088
  let localVarRequestOptions = {
@@ -2102,9 +2130,10 @@ class PayrollAuApi {
2102
2130
  * @summary Updates a timesheet
2103
2131
  * @param xeroTenantId Xero identifier for Tenant
2104
2132
  * @param timesheetID Timesheet id for single object
2133
+ * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
2105
2134
  * @param timesheet
2106
2135
  */
2107
- updateTimesheet(xeroTenantId, timesheetID, timesheet, options = { headers: {} }) {
2136
+ updateTimesheet(xeroTenantId, timesheetID, idempotencyKey, timesheet, options = { headers: {} }) {
2108
2137
  return __awaiter(this, void 0, void 0, function* () {
2109
2138
  const localVarPath = this.basePath + '/Timesheets/{TimesheetID}'
2110
2139
  .replace('{' + 'TimesheetID' + '}', encodeURIComponent(String(timesheetID)));
@@ -2120,6 +2149,7 @@ class PayrollAuApi {
2120
2149
  throw new Error('Required parameter timesheetID was null or undefined when calling updateTimesheet.');
2121
2150
  }
2122
2151
  localVarHeaderParams['Xero-Tenant-Id'] = models_1.ObjectSerializer.serialize(xeroTenantId, "string");
2152
+ localVarHeaderParams['Idempotency-Key'] = models_1.ObjectSerializer.serialize(idempotencyKey, "string");
2123
2153
  Object.assign(localVarHeaderParams, options.headers);
2124
2154
  let localVarUseFormData = false;
2125
2155
  let localVarRequestOptions = {