xero-node 4.22.0 → 4.25.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/gen/api/accountingApi.d.ts +32 -1
- package/dist/gen/api/accountingApi.js +134 -2
- package/dist/gen/api/accountingApi.js.map +1 -1
- package/dist/gen/api/appStoreApi.d.ts +1 -1
- package/dist/gen/api/appStoreApi.js +2 -2
- package/dist/gen/api/assetApi.d.ts +1 -1
- package/dist/gen/api/assetApi.js +2 -2
- package/dist/gen/api/bankfeedsApi.d.ts +1 -1
- package/dist/gen/api/bankfeedsApi.js +2 -2
- package/dist/gen/api/filesApi.d.ts +1 -1
- package/dist/gen/api/filesApi.js +2 -2
- package/dist/gen/api/financeApi.d.ts +1 -1
- package/dist/gen/api/financeApi.js +2 -2
- package/dist/gen/api/payrollAUApi.d.ts +1 -1
- package/dist/gen/api/payrollAUApi.js +2 -2
- package/dist/gen/api/payrollNZApi.d.ts +1 -1
- package/dist/gen/api/payrollNZApi.js +2 -2
- package/dist/gen/api/payrollUKApi.d.ts +1 -1
- package/dist/gen/api/payrollUKApi.js +2 -2
- package/dist/gen/api/projectApi.d.ts +1 -1
- package/dist/gen/api/projectApi.js +2 -2
- package/dist/gen/model/{files/inlineObject.d.ts → accounting/batchPaymentDelete.d.ts} +7 -6
- package/dist/gen/model/accounting/batchPaymentDelete.js +23 -0
- package/dist/gen/model/accounting/batchPaymentDelete.js.map +1 -0
- package/dist/gen/model/{files/fileResponse204.d.ts → accounting/batchPaymentDeleteByUrlParam.d.ts} +3 -3
- package/dist/gen/model/accounting/batchPaymentDeleteByUrlParam.js +18 -0
- package/dist/gen/model/accounting/batchPaymentDeleteByUrlParam.js.map +1 -0
- package/dist/gen/model/accounting/models.d.ts +2 -0
- package/dist/gen/model/accounting/models.js +12 -10
- package/dist/gen/model/accounting/models.js.map +1 -1
- package/dist/gen/model/accounting/organisation.d.ts +2 -1
- package/dist/gen/model/accounting/organisation.js +1 -0
- package/dist/gen/model/accounting/organisation.js.map +1 -1
- package/dist/gen/model/appstore/models.js +6 -10
- package/dist/gen/model/appstore/models.js.map +1 -1
- package/dist/gen/model/assets/models.js +6 -10
- package/dist/gen/model/assets/models.js.map +1 -1
- package/dist/gen/model/bankfeeds/models.js +6 -10
- package/dist/gen/model/bankfeeds/models.js.map +1 -1
- package/dist/gen/model/files/models.js +6 -10
- package/dist/gen/model/files/models.js.map +1 -1
- package/dist/gen/model/finance/models.js +6 -10
- package/dist/gen/model/finance/models.js.map +1 -1
- package/dist/gen/model/payroll-au/employee.d.ts +1 -1
- package/dist/gen/model/payroll-au/leaveCategoryCode.d.ts +17 -0
- package/dist/gen/model/payroll-au/leaveCategoryCode.js +22 -0
- package/dist/gen/model/payroll-au/leaveCategoryCode.js.map +1 -0
- package/dist/gen/model/payroll-au/leaveType.d.ts +6 -0
- package/dist/gen/model/payroll-au/leaveType.js +10 -0
- package/dist/gen/model/payroll-au/leaveType.js.map +1 -1
- package/dist/gen/model/payroll-au/models.d.ts +1 -0
- package/dist/gen/model/payroll-au/models.js +9 -10
- package/dist/gen/model/payroll-au/models.js.map +1 -1
- package/dist/gen/model/payroll-au/taxDeclaration.d.ts +4 -0
- package/dist/gen/model/payroll-au/taxDeclaration.js +5 -0
- package/dist/gen/model/payroll-au/taxDeclaration.js.map +1 -1
- package/dist/gen/model/payroll-nz/models.js +6 -10
- package/dist/gen/model/payroll-nz/models.js.map +1 -1
- package/dist/gen/model/payroll-uk/models.js +6 -10
- package/dist/gen/model/payroll-uk/models.js.map +1 -1
- package/dist/gen/model/projects/models.js +6 -10
- package/dist/gen/model/projects/models.js.map +1 -1
- package/package.json +4 -4
- package/dist/gen/model/accounting/budgetLines.d.ts +0 -29
- package/dist/gen/model/accounting/budgetLines.js +0 -33
- package/dist/gen/model/accounting/budgetLines.js.map +0 -1
- package/dist/gen/model/accounting/tenNinteyNineContact.d.ts +0 -112
- package/dist/gen/model/accounting/tenNinteyNineContact.js +0 -133
- package/dist/gen/model/accounting/tenNinteyNineContact.js.map +0 -1
- package/dist/gen/model/files/fileResponse204.js +0 -18
- package/dist/gen/model/files/fileResponse204.js.map +0 -1
- package/dist/gen/model/files/inlineObject.js +0 -33
- package/dist/gen/model/files/inlineObject.js.map +0 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Xero Accounting API
|
|
3
3
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 2.
|
|
5
|
+
* The version of the OpenAPI document: 2.27.0
|
|
6
6
|
* Contact: api@xero.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -19,6 +19,8 @@ import { Allocations } from '../model/accounting/allocations';
|
|
|
19
19
|
import { Attachments } from '../model/accounting/attachments';
|
|
20
20
|
import { BankTransactions } from '../model/accounting/bankTransactions';
|
|
21
21
|
import { BankTransfers } from '../model/accounting/bankTransfers';
|
|
22
|
+
import { BatchPaymentDelete } from '../model/accounting/batchPaymentDelete';
|
|
23
|
+
import { BatchPaymentDeleteByUrlParam } from '../model/accounting/batchPaymentDeleteByUrlParam';
|
|
22
24
|
import { BatchPayments } from '../model/accounting/batchPayments';
|
|
23
25
|
import { BrandingThemes } from '../model/accounting/brandingThemes';
|
|
24
26
|
import { Budgets } from '../model/accounting/budgets';
|
|
@@ -945,6 +947,35 @@ export declare class AccountingApi {
|
|
|
945
947
|
response: http.IncomingMessage;
|
|
946
948
|
body: Accounts;
|
|
947
949
|
}>;
|
|
950
|
+
/**
|
|
951
|
+
*
|
|
952
|
+
* @summary Updates a specific batch payment for invoices and credit notes
|
|
953
|
+
* @param xeroTenantId Xero identifier for Tenant
|
|
954
|
+
* @param batchPaymentDelete
|
|
955
|
+
*/
|
|
956
|
+
deleteBatchPayment(xeroTenantId: string, batchPaymentDelete: BatchPaymentDelete, options?: {
|
|
957
|
+
headers: {
|
|
958
|
+
[name: string]: string;
|
|
959
|
+
};
|
|
960
|
+
}): Promise<{
|
|
961
|
+
response: http.IncomingMessage;
|
|
962
|
+
body: BatchPayments;
|
|
963
|
+
}>;
|
|
964
|
+
/**
|
|
965
|
+
*
|
|
966
|
+
* @summary Updates a specific batch payment for invoices and credit notes
|
|
967
|
+
* @param xeroTenantId Xero identifier for Tenant
|
|
968
|
+
* @param batchPaymentID Unique identifier for BatchPayment
|
|
969
|
+
* @param batchPaymentDeleteByUrlParam
|
|
970
|
+
*/
|
|
971
|
+
deleteBatchPaymentByUrlParam(xeroTenantId: string, batchPaymentID: string, batchPaymentDeleteByUrlParam: BatchPaymentDeleteByUrlParam, options?: {
|
|
972
|
+
headers: {
|
|
973
|
+
[name: string]: string;
|
|
974
|
+
};
|
|
975
|
+
}): Promise<{
|
|
976
|
+
response: http.IncomingMessage;
|
|
977
|
+
body: BatchPayments;
|
|
978
|
+
}>;
|
|
948
979
|
/**
|
|
949
980
|
*
|
|
950
981
|
* @summary Deletes a specific contact from a contact group using a unique contact Id
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Xero Accounting API
|
|
4
4
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
5
5
|
*
|
|
6
|
-
* The version of the OpenAPI document: 2.
|
|
6
|
+
* The version of the OpenAPI document: 2.27.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 AccountingApiApiKeys;
|
|
|
34
34
|
class AccountingApi {
|
|
35
35
|
constructor(basePathOrUsername, password, basePath) {
|
|
36
36
|
this._basePath = defaultBasePath;
|
|
37
|
-
this.defaultHeaders = { 'user-agent': 'xero-node-4.
|
|
37
|
+
this.defaultHeaders = { 'user-agent': 'xero-node-4.25.0' };
|
|
38
38
|
this._useQuerystring = false;
|
|
39
39
|
this.binaryHeaders = {};
|
|
40
40
|
this.authentications = {
|
|
@@ -4275,6 +4275,138 @@ class AccountingApi {
|
|
|
4275
4275
|
});
|
|
4276
4276
|
});
|
|
4277
4277
|
}
|
|
4278
|
+
/**
|
|
4279
|
+
*
|
|
4280
|
+
* @summary Updates a specific batch payment for invoices and credit notes
|
|
4281
|
+
* @param xeroTenantId Xero identifier for Tenant
|
|
4282
|
+
* @param batchPaymentDelete
|
|
4283
|
+
*/
|
|
4284
|
+
deleteBatchPayment(xeroTenantId, batchPaymentDelete, options = { headers: {} }) {
|
|
4285
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4286
|
+
const localVarPath = this.basePath + '/BatchPayments';
|
|
4287
|
+
let localVarQueryParameters = {};
|
|
4288
|
+
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
4289
|
+
let localVarFormParams = {};
|
|
4290
|
+
// verify required parameter 'xeroTenantId' is not null or undefined
|
|
4291
|
+
if (xeroTenantId === null || xeroTenantId === undefined) {
|
|
4292
|
+
throw new Error('Required parameter xeroTenantId was null or undefined when calling deleteBatchPayment.');
|
|
4293
|
+
}
|
|
4294
|
+
// verify required parameter 'batchPaymentDelete' is not null or undefined
|
|
4295
|
+
if (batchPaymentDelete === null || batchPaymentDelete === undefined) {
|
|
4296
|
+
throw new Error('Required parameter batchPaymentDelete was null or undefined when calling deleteBatchPayment.');
|
|
4297
|
+
}
|
|
4298
|
+
localVarHeaderParams['xero-tenant-id'] = models_1.ObjectSerializer.serialize(xeroTenantId, "string");
|
|
4299
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
4300
|
+
let localVarUseFormData = false;
|
|
4301
|
+
let localVarRequestOptions = {
|
|
4302
|
+
method: 'POST',
|
|
4303
|
+
qs: localVarQueryParameters,
|
|
4304
|
+
headers: localVarHeaderParams,
|
|
4305
|
+
uri: localVarPath,
|
|
4306
|
+
useQuerystring: this._useQuerystring,
|
|
4307
|
+
json: true,
|
|
4308
|
+
body: models_1.ObjectSerializer.serialize(batchPaymentDelete, "BatchPaymentDelete")
|
|
4309
|
+
};
|
|
4310
|
+
let authenticationPromise = Promise.resolve();
|
|
4311
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
4312
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
4313
|
+
return authenticationPromise.then(() => {
|
|
4314
|
+
if (Object.keys(localVarFormParams).length) {
|
|
4315
|
+
if (localVarUseFormData) {
|
|
4316
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
4317
|
+
}
|
|
4318
|
+
else {
|
|
4319
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
4320
|
+
}
|
|
4321
|
+
}
|
|
4322
|
+
return new Promise((resolve, reject) => {
|
|
4323
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
4324
|
+
if (error) {
|
|
4325
|
+
reject(error);
|
|
4326
|
+
}
|
|
4327
|
+
else {
|
|
4328
|
+
body = models_1.ObjectSerializer.deserialize(body, "BatchPayments");
|
|
4329
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
4330
|
+
resolve({ response: response, body: body });
|
|
4331
|
+
}
|
|
4332
|
+
else {
|
|
4333
|
+
reject({ response: response, body: body });
|
|
4334
|
+
}
|
|
4335
|
+
}
|
|
4336
|
+
});
|
|
4337
|
+
});
|
|
4338
|
+
});
|
|
4339
|
+
});
|
|
4340
|
+
}
|
|
4341
|
+
/**
|
|
4342
|
+
*
|
|
4343
|
+
* @summary Updates a specific batch payment for invoices and credit notes
|
|
4344
|
+
* @param xeroTenantId Xero identifier for Tenant
|
|
4345
|
+
* @param batchPaymentID Unique identifier for BatchPayment
|
|
4346
|
+
* @param batchPaymentDeleteByUrlParam
|
|
4347
|
+
*/
|
|
4348
|
+
deleteBatchPaymentByUrlParam(xeroTenantId, batchPaymentID, batchPaymentDeleteByUrlParam, options = { headers: {} }) {
|
|
4349
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4350
|
+
const localVarPath = this.basePath + '/BatchPayments/{BatchPaymentID}'
|
|
4351
|
+
.replace('{' + 'BatchPaymentID' + '}', encodeURIComponent(String(batchPaymentID)));
|
|
4352
|
+
let localVarQueryParameters = {};
|
|
4353
|
+
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
4354
|
+
let localVarFormParams = {};
|
|
4355
|
+
// verify required parameter 'xeroTenantId' is not null or undefined
|
|
4356
|
+
if (xeroTenantId === null || xeroTenantId === undefined) {
|
|
4357
|
+
throw new Error('Required parameter xeroTenantId was null or undefined when calling deleteBatchPaymentByUrlParam.');
|
|
4358
|
+
}
|
|
4359
|
+
// verify required parameter 'batchPaymentID' is not null or undefined
|
|
4360
|
+
if (batchPaymentID === null || batchPaymentID === undefined) {
|
|
4361
|
+
throw new Error('Required parameter batchPaymentID was null or undefined when calling deleteBatchPaymentByUrlParam.');
|
|
4362
|
+
}
|
|
4363
|
+
// verify required parameter 'batchPaymentDeleteByUrlParam' is not null or undefined
|
|
4364
|
+
if (batchPaymentDeleteByUrlParam === null || batchPaymentDeleteByUrlParam === undefined) {
|
|
4365
|
+
throw new Error('Required parameter batchPaymentDeleteByUrlParam was null or undefined when calling deleteBatchPaymentByUrlParam.');
|
|
4366
|
+
}
|
|
4367
|
+
localVarHeaderParams['xero-tenant-id'] = models_1.ObjectSerializer.serialize(xeroTenantId, "string");
|
|
4368
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
4369
|
+
let localVarUseFormData = false;
|
|
4370
|
+
let localVarRequestOptions = {
|
|
4371
|
+
method: 'POST',
|
|
4372
|
+
qs: localVarQueryParameters,
|
|
4373
|
+
headers: localVarHeaderParams,
|
|
4374
|
+
uri: localVarPath,
|
|
4375
|
+
useQuerystring: this._useQuerystring,
|
|
4376
|
+
json: true,
|
|
4377
|
+
body: models_1.ObjectSerializer.serialize(batchPaymentDeleteByUrlParam, "BatchPaymentDeleteByUrlParam")
|
|
4378
|
+
};
|
|
4379
|
+
let authenticationPromise = Promise.resolve();
|
|
4380
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
4381
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
4382
|
+
return authenticationPromise.then(() => {
|
|
4383
|
+
if (Object.keys(localVarFormParams).length) {
|
|
4384
|
+
if (localVarUseFormData) {
|
|
4385
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
4386
|
+
}
|
|
4387
|
+
else {
|
|
4388
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
4389
|
+
}
|
|
4390
|
+
}
|
|
4391
|
+
return new Promise((resolve, reject) => {
|
|
4392
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
4393
|
+
if (error) {
|
|
4394
|
+
reject(error);
|
|
4395
|
+
}
|
|
4396
|
+
else {
|
|
4397
|
+
body = models_1.ObjectSerializer.deserialize(body, "BatchPayments");
|
|
4398
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
4399
|
+
resolve({ response: response, body: body });
|
|
4400
|
+
}
|
|
4401
|
+
else {
|
|
4402
|
+
reject({ response: response, body: body });
|
|
4403
|
+
}
|
|
4404
|
+
}
|
|
4405
|
+
});
|
|
4406
|
+
});
|
|
4407
|
+
});
|
|
4408
|
+
});
|
|
4409
|
+
}
|
|
4278
4410
|
/**
|
|
4279
4411
|
*
|
|
4280
4412
|
* @summary Deletes a specific contact from a contact group using a unique contact Id
|