xero-node 4.35.0 → 4.37.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 (53) 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 +18 -8
  14. package/dist/gen/api/filesApi.js +37 -9
  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/taxType.d.ts +25 -1
  42. package/dist/gen/model/accounting/taxType.js +24 -0
  43. package/dist/gen/model/accounting/taxType.js.map +1 -1
  44. package/dist/gen/model/accounting/tenNinetyNineContact.d.ts +23 -0
  45. package/dist/gen/model/accounting/tenNinetyNineContact.js +28 -0
  46. package/dist/gen/model/accounting/tenNinetyNineContact.js.map +1 -1
  47. package/dist/gen/model/finance/problemType.d.ts +2 -1
  48. package/dist/gen/model/finance/problemType.js +1 -0
  49. package/dist/gen/model/finance/problemType.js.map +1 -1
  50. package/dist/gen/model/payroll-au/leavePeriodStatus.d.ts +3 -1
  51. package/dist/gen/model/payroll-au/leavePeriodStatus.js +2 -0
  52. package/dist/gen/model/payroll-au/leavePeriodStatus.js.map +1 -1
  53. package/package.json +1 -1
@@ -2,7 +2,7 @@
2
2
  * Xero Payroll NZ
3
3
  * This is the Xero Payroll API for orgs in the NZ region.
4
4
  *
5
- * The version of the OpenAPI document: 2.38.0
5
+ * The version of the OpenAPI document: 2.40.1
6
6
  * Contact: api@xero.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -97,8 +97,9 @@ export declare class PayrollNzApi {
97
97
  * @summary Approves a timesheet
98
98
  * @param xeroTenantId Xero identifier for Tenant
99
99
  * @param timesheetID Identifier for the timesheet
100
+ * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
100
101
  */
101
- approveTimesheet(xeroTenantId: string, timesheetID: string, options?: {
102
+ approveTimesheet(xeroTenantId: string, timesheetID: string, idempotencyKey?: string, options?: {
102
103
  headers: {
103
104
  [name: string]: string;
104
105
  };
@@ -111,8 +112,9 @@ export declare class PayrollNzApi {
111
112
  * @summary Creates a new deduction for a specific employee
112
113
  * @param xeroTenantId Xero identifier for Tenant
113
114
  * @param deduction
115
+ * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
114
116
  */
115
- createDeduction(xeroTenantId: string, deduction: Deduction, options?: {
117
+ createDeduction(xeroTenantId: string, deduction: Deduction, idempotencyKey?: string, options?: {
116
118
  headers: {
117
119
  [name: string]: string;
118
120
  };
@@ -125,8 +127,9 @@ export declare class PayrollNzApi {
125
127
  * @summary Creates a new earnings rate
126
128
  * @param xeroTenantId Xero identifier for Tenant
127
129
  * @param earningsRate
130
+ * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
128
131
  */
129
- createEarningsRate(xeroTenantId: string, earningsRate: EarningsRate, options?: {
132
+ createEarningsRate(xeroTenantId: string, earningsRate: EarningsRate, idempotencyKey?: string, options?: {
130
133
  headers: {
131
134
  [name: string]: string;
132
135
  };
@@ -139,8 +142,9 @@ export declare class PayrollNzApi {
139
142
  * @summary Creates an employees
140
143
  * @param xeroTenantId Xero identifier for Tenant
141
144
  * @param employee
145
+ * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
142
146
  */
143
- createEmployee(xeroTenantId: string, employee: Employee, options?: {
147
+ createEmployee(xeroTenantId: string, employee: Employee, idempotencyKey?: string, options?: {
144
148
  headers: {
145
149
  [name: string]: string;
146
150
  };
@@ -154,8 +158,9 @@ export declare class PayrollNzApi {
154
158
  * @param xeroTenantId Xero identifier for Tenant
155
159
  * @param employeeID Employee id for single object
156
160
  * @param earningsTemplate
161
+ * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
157
162
  */
158
- createEmployeeEarningsTemplate(xeroTenantId: string, employeeID: string, earningsTemplate: EarningsTemplate, options?: {
163
+ createEmployeeEarningsTemplate(xeroTenantId: string, employeeID: string, earningsTemplate: EarningsTemplate, idempotencyKey?: string, options?: {
159
164
  headers: {
160
165
  [name: string]: string;
161
166
  };
@@ -169,8 +174,9 @@ export declare class PayrollNzApi {
169
174
  * @param xeroTenantId Xero identifier for Tenant
170
175
  * @param employeeID Employee id for single object
171
176
  * @param employeeLeave
177
+ * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
172
178
  */
173
- createEmployeeLeave(xeroTenantId: string, employeeID: string, employeeLeave: EmployeeLeave, options?: {
179
+ createEmployeeLeave(xeroTenantId: string, employeeID: string, employeeLeave: EmployeeLeave, idempotencyKey?: string, options?: {
174
180
  headers: {
175
181
  [name: string]: string;
176
182
  };
@@ -184,8 +190,9 @@ export declare class PayrollNzApi {
184
190
  * @param xeroTenantId Xero identifier for Tenant
185
191
  * @param employeeID Employee id for single object
186
192
  * @param employeeLeaveSetup
193
+ * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
187
194
  */
188
- createEmployeeLeaveSetup(xeroTenantId: string, employeeID: string, employeeLeaveSetup: EmployeeLeaveSetup, options?: {
195
+ createEmployeeLeaveSetup(xeroTenantId: string, employeeID: string, employeeLeaveSetup: EmployeeLeaveSetup, idempotencyKey?: string, options?: {
189
196
  headers: {
190
197
  [name: string]: string;
191
198
  };
@@ -199,8 +206,9 @@ export declare class PayrollNzApi {
199
206
  * @param xeroTenantId Xero identifier for Tenant
200
207
  * @param employeeID Employee id for single object
201
208
  * @param employeeLeaveType
209
+ * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
202
210
  */
203
- createEmployeeLeaveType(xeroTenantId: string, employeeID: string, employeeLeaveType: EmployeeLeaveType, options?: {
211
+ createEmployeeLeaveType(xeroTenantId: string, employeeID: string, employeeLeaveType: EmployeeLeaveType, idempotencyKey?: string, options?: {
204
212
  headers: {
205
213
  [name: string]: string;
206
214
  };
@@ -214,8 +222,9 @@ export declare class PayrollNzApi {
214
222
  * @param xeroTenantId Xero identifier for Tenant
215
223
  * @param employeeID Employee id for single object
216
224
  * @param employeeOpeningBalance
225
+ * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
217
226
  */
218
- createEmployeeOpeningBalances(xeroTenantId: string, employeeID: string, employeeOpeningBalance: Array<EmployeeOpeningBalance>, options?: {
227
+ createEmployeeOpeningBalances(xeroTenantId: string, employeeID: string, employeeOpeningBalance: Array<EmployeeOpeningBalance>, idempotencyKey?: string, options?: {
219
228
  headers: {
220
229
  [name: string]: string;
221
230
  };
@@ -229,8 +238,9 @@ export declare class PayrollNzApi {
229
238
  * @param xeroTenantId Xero identifier for Tenant
230
239
  * @param employeeID Employee id for single object
231
240
  * @param paymentMethod
241
+ * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
232
242
  */
233
- createEmployeePaymentMethod(xeroTenantId: string, employeeID: string, paymentMethod: PaymentMethod, options?: {
243
+ createEmployeePaymentMethod(xeroTenantId: string, employeeID: string, paymentMethod: PaymentMethod, idempotencyKey?: string, options?: {
234
244
  headers: {
235
245
  [name: string]: string;
236
246
  };
@@ -244,8 +254,9 @@ export declare class PayrollNzApi {
244
254
  * @param xeroTenantId Xero identifier for Tenant
245
255
  * @param employeeID Employee id for single object
246
256
  * @param salaryAndWage
257
+ * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
247
258
  */
248
- createEmployeeSalaryAndWage(xeroTenantId: string, employeeID: string, salaryAndWage: SalaryAndWage, options?: {
259
+ createEmployeeSalaryAndWage(xeroTenantId: string, employeeID: string, salaryAndWage: SalaryAndWage, idempotencyKey?: string, options?: {
249
260
  headers: {
250
261
  [name: string]: string;
251
262
  };
@@ -259,8 +270,9 @@ export declare class PayrollNzApi {
259
270
  * @param xeroTenantId Xero identifier for Tenant
260
271
  * @param employeeID Employee id for single object
261
272
  * @param employment
273
+ * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
262
274
  */
263
- createEmployment(xeroTenantId: string, employeeID: string, employment: Employment, options?: {
275
+ createEmployment(xeroTenantId: string, employeeID: string, employment: Employment, idempotencyKey?: string, options?: {
264
276
  headers: {
265
277
  [name: string]: string;
266
278
  };
@@ -273,8 +285,9 @@ export declare class PayrollNzApi {
273
285
  * @summary Creates a new leave type
274
286
  * @param xeroTenantId Xero identifier for Tenant
275
287
  * @param leaveType
288
+ * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
276
289
  */
277
- createLeaveType(xeroTenantId: string, leaveType: LeaveType, options?: {
290
+ createLeaveType(xeroTenantId: string, leaveType: LeaveType, idempotencyKey?: string, options?: {
278
291
  headers: {
279
292
  [name: string]: string;
280
293
  };
@@ -288,8 +301,9 @@ export declare class PayrollNzApi {
288
301
  * @param xeroTenantId Xero identifier for Tenant
289
302
  * @param employeeID Employee id for single object
290
303
  * @param earningsTemplate
304
+ * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
291
305
  */
292
- createMultipleEmployeeEarningsTemplate(xeroTenantId: string, employeeID: string, earningsTemplate: Array<EarningsTemplate>, options?: {
306
+ createMultipleEmployeeEarningsTemplate(xeroTenantId: string, employeeID: string, earningsTemplate: Array<EarningsTemplate>, idempotencyKey?: string, options?: {
293
307
  headers: {
294
308
  [name: string]: string;
295
309
  };
@@ -302,8 +316,9 @@ export declare class PayrollNzApi {
302
316
  * @summary Creates a pay run
303
317
  * @param xeroTenantId Xero identifier for Tenant
304
318
  * @param payRun
319
+ * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
305
320
  */
306
- createPayRun(xeroTenantId: string, payRun: PayRun, options?: {
321
+ createPayRun(xeroTenantId: string, payRun: PayRun, idempotencyKey?: string, options?: {
307
322
  headers: {
308
323
  [name: string]: string;
309
324
  };
@@ -316,8 +331,9 @@ export declare class PayrollNzApi {
316
331
  * @summary Creates a new payrun calendar
317
332
  * @param xeroTenantId Xero identifier for Tenant
318
333
  * @param payRunCalendar
334
+ * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
319
335
  */
320
- createPayRunCalendar(xeroTenantId: string, payRunCalendar: PayRunCalendar, options?: {
336
+ createPayRunCalendar(xeroTenantId: string, payRunCalendar: PayRunCalendar, idempotencyKey?: string, options?: {
321
337
  headers: {
322
338
  [name: string]: string;
323
339
  };
@@ -330,8 +346,9 @@ export declare class PayrollNzApi {
330
346
  * @summary Creates a new reimbursement
331
347
  * @param xeroTenantId Xero identifier for Tenant
332
348
  * @param reimbursement
349
+ * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
333
350
  */
334
- createReimbursement(xeroTenantId: string, reimbursement: Reimbursement, options?: {
351
+ createReimbursement(xeroTenantId: string, reimbursement: Reimbursement, idempotencyKey?: string, options?: {
335
352
  headers: {
336
353
  [name: string]: string;
337
354
  };
@@ -344,8 +361,9 @@ export declare class PayrollNzApi {
344
361
  * @summary Creates a new superannuation
345
362
  * @param xeroTenantId Xero identifier for Tenant
346
363
  * @param benefit
364
+ * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
347
365
  */
348
- createSuperannuation(xeroTenantId: string, benefit: Benefit, options?: {
366
+ createSuperannuation(xeroTenantId: string, benefit: Benefit, idempotencyKey?: string, options?: {
349
367
  headers: {
350
368
  [name: string]: string;
351
369
  };
@@ -358,8 +376,9 @@ export declare class PayrollNzApi {
358
376
  * @summary Creates a new timesheet
359
377
  * @param xeroTenantId Xero identifier for Tenant
360
378
  * @param timesheet
379
+ * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
361
380
  */
362
- createTimesheet(xeroTenantId: string, timesheet: Timesheet, options?: {
381
+ createTimesheet(xeroTenantId: string, timesheet: Timesheet, idempotencyKey?: string, options?: {
363
382
  headers: {
364
383
  [name: string]: string;
365
384
  };
@@ -373,8 +392,9 @@ export declare class PayrollNzApi {
373
392
  * @param xeroTenantId Xero identifier for Tenant
374
393
  * @param timesheetID Identifier for the timesheet
375
394
  * @param timesheetLine
395
+ * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
376
396
  */
377
- createTimesheetLine(xeroTenantId: string, timesheetID: string, timesheetLine: TimesheetLine, options?: {
397
+ createTimesheetLine(xeroTenantId: string, timesheetID: string, timesheetLine: TimesheetLine, idempotencyKey?: string, options?: {
378
398
  headers: {
379
399
  [name: string]: string;
380
400
  };
@@ -948,8 +968,9 @@ export declare class PayrollNzApi {
948
968
  * @summary Reverts a timesheet to draft
949
969
  * @param xeroTenantId Xero identifier for Tenant
950
970
  * @param timesheetID Identifier for the timesheet
971
+ * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
951
972
  */
952
- revertTimesheet(xeroTenantId: string, timesheetID: string, options?: {
973
+ revertTimesheet(xeroTenantId: string, timesheetID: string, idempotencyKey?: string, options?: {
953
974
  headers: {
954
975
  [name: string]: string;
955
976
  };
@@ -963,8 +984,9 @@ export declare class PayrollNzApi {
963
984
  * @param xeroTenantId Xero identifier for Tenant
964
985
  * @param employeeID Employee id for single object
965
986
  * @param employee
987
+ * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
966
988
  */
967
- updateEmployee(xeroTenantId: string, employeeID: string, employee: Employee, options?: {
989
+ updateEmployee(xeroTenantId: string, employeeID: string, employee: Employee, idempotencyKey?: string, options?: {
968
990
  headers: {
969
991
  [name: string]: string;
970
992
  };
@@ -979,8 +1001,9 @@ export declare class PayrollNzApi {
979
1001
  * @param employeeID Employee id for single object
980
1002
  * @param payTemplateEarningID Id for single pay template earnings object
981
1003
  * @param earningsTemplate
1004
+ * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
982
1005
  */
983
- updateEmployeeEarningsTemplate(xeroTenantId: string, employeeID: string, payTemplateEarningID: string, earningsTemplate: EarningsTemplate, options?: {
1006
+ updateEmployeeEarningsTemplate(xeroTenantId: string, employeeID: string, payTemplateEarningID: string, earningsTemplate: EarningsTemplate, idempotencyKey?: string, options?: {
984
1007
  headers: {
985
1008
  [name: string]: string;
986
1009
  };
@@ -995,8 +1018,9 @@ export declare class PayrollNzApi {
995
1018
  * @param employeeID Employee id for single object
996
1019
  * @param leaveID Leave id for single object
997
1020
  * @param employeeLeave
1021
+ * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
998
1022
  */
999
- updateEmployeeLeave(xeroTenantId: string, employeeID: string, leaveID: string, employeeLeave: EmployeeLeave, options?: {
1023
+ updateEmployeeLeave(xeroTenantId: string, employeeID: string, leaveID: string, employeeLeave: EmployeeLeave, idempotencyKey?: string, options?: {
1000
1024
  headers: {
1001
1025
  [name: string]: string;
1002
1026
  };
@@ -1011,8 +1035,9 @@ export declare class PayrollNzApi {
1011
1035
  * @param employeeID Employee id for single object
1012
1036
  * @param salaryAndWagesID Id for single pay template earnings object
1013
1037
  * @param salaryAndWage
1038
+ * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
1014
1039
  */
1015
- updateEmployeeSalaryAndWage(xeroTenantId: string, employeeID: string, salaryAndWagesID: string, salaryAndWage: SalaryAndWage, options?: {
1040
+ updateEmployeeSalaryAndWage(xeroTenantId: string, employeeID: string, salaryAndWagesID: string, salaryAndWage: SalaryAndWage, idempotencyKey?: string, options?: {
1016
1041
  headers: {
1017
1042
  [name: string]: string;
1018
1043
  };
@@ -1026,8 +1051,9 @@ export declare class PayrollNzApi {
1026
1051
  * @param xeroTenantId Xero identifier for Tenant
1027
1052
  * @param employeeID Employee id for single object
1028
1053
  * @param employeeTax
1054
+ * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
1029
1055
  */
1030
- updateEmployeeTax(xeroTenantId: string, employeeID: string, employeeTax: EmployeeTax, options?: {
1056
+ updateEmployeeTax(xeroTenantId: string, employeeID: string, employeeTax: EmployeeTax, idempotencyKey?: string, options?: {
1031
1057
  headers: {
1032
1058
  [name: string]: string;
1033
1059
  };
@@ -1041,8 +1067,9 @@ export declare class PayrollNzApi {
1041
1067
  * @param xeroTenantId Xero identifier for Tenant
1042
1068
  * @param payRunID Identifier for the pay run
1043
1069
  * @param payRun
1070
+ * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
1044
1071
  */
1045
- updatePayRun(xeroTenantId: string, payRunID: string, payRun: PayRun, options?: {
1072
+ updatePayRun(xeroTenantId: string, payRunID: string, payRun: PayRun, idempotencyKey?: string, options?: {
1046
1073
  headers: {
1047
1074
  [name: string]: string;
1048
1075
  };
@@ -1056,8 +1083,9 @@ export declare class PayrollNzApi {
1056
1083
  * @param xeroTenantId Xero identifier for Tenant
1057
1084
  * @param paySlipID Identifier for the payslip
1058
1085
  * @param paySlip
1086
+ * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
1059
1087
  */
1060
- updatePaySlipLineItems(xeroTenantId: string, paySlipID: string, paySlip: PaySlip, options?: {
1088
+ updatePaySlipLineItems(xeroTenantId: string, paySlipID: string, paySlip: PaySlip, idempotencyKey?: string, options?: {
1061
1089
  headers: {
1062
1090
  [name: string]: string;
1063
1091
  };
@@ -1072,8 +1100,9 @@ export declare class PayrollNzApi {
1072
1100
  * @param timesheetID Identifier for the timesheet
1073
1101
  * @param timesheetLineID Identifier for the timesheet line
1074
1102
  * @param timesheetLine
1103
+ * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
1075
1104
  */
1076
- updateTimesheetLine(xeroTenantId: string, timesheetID: string, timesheetLineID: string, timesheetLine: TimesheetLine, options?: {
1105
+ updateTimesheetLine(xeroTenantId: string, timesheetID: string, timesheetLineID: string, timesheetLine: TimesheetLine, idempotencyKey?: string, options?: {
1077
1106
  headers: {
1078
1107
  [name: string]: string;
1079
1108
  };