xero-node 4.28.1 → 4.30.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 +3 -4
- package/dist/gen/api/accountingApi.js +8 -8
- package/dist/gen/api/accountingApi.js.map +1 -1
- package/dist/gen/api/appStoreApi.d.ts +49 -1
- package/dist/gen/api/appStoreApi.js +203 -2
- package/dist/gen/api/appStoreApi.js.map +1 -1
- 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 +2 -2
- package/dist/gen/api/projectApi.js +3 -3
- package/dist/gen/model/accounting/batchPayment.d.ts +2 -2
- package/dist/gen/model/accounting/batchPayment.js +2 -2
- package/dist/gen/model/accounting/batchPayment.js.map +1 -1
- package/dist/gen/model/accounting/lineItem.d.ts +2 -2
- package/dist/gen/model/accounting/payment.d.ts +2 -0
- package/dist/gen/model/accounting/payment.js +5 -0
- package/dist/gen/model/accounting/payment.js.map +1 -1
- package/dist/gen/model/accounting/taxRate.d.ts +4 -1
- package/dist/gen/model/accounting/taxRate.js +3 -0
- package/dist/gen/model/accounting/taxRate.js.map +1 -1
- package/dist/gen/model/accounting/taxType.d.ts +16 -1
- package/dist/gen/model/accounting/taxType.js +15 -0
- package/dist/gen/model/accounting/taxType.js.map +1 -1
- package/dist/gen/model/appstore/createUsageRecord.d.ts +24 -0
- package/dist/gen/model/appstore/createUsageRecord.js +26 -0
- package/dist/gen/model/appstore/createUsageRecord.js.map +1 -0
- package/dist/gen/model/appstore/models.d.ts +4 -0
- package/dist/gen/model/appstore/models.js +12 -0
- package/dist/gen/model/appstore/models.js.map +1 -1
- package/dist/gen/model/appstore/updateUsageRecord.d.ts +20 -0
- package/dist/gen/model/appstore/updateUsageRecord.js +21 -0
- package/dist/gen/model/appstore/updateUsageRecord.js.map +1 -0
- package/dist/gen/model/appstore/usageRecord.d.ts +45 -0
- package/dist/gen/model/appstore/usageRecord.js +53 -0
- package/dist/gen/model/appstore/usageRecord.js.map +1 -0
- package/dist/gen/model/appstore/usageRecordsList.d.ts +21 -0
- package/dist/gen/model/appstore/usageRecordsList.js +21 -0
- package/dist/gen/model/appstore/usageRecordsList.js.map +1 -0
- package/package.json +1 -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.33.1
|
|
6
6
|
* Contact: api@xero.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -47,7 +47,6 @@ import { Organisations } from '../model/accounting/organisations';
|
|
|
47
47
|
import { Overpayments } from '../model/accounting/overpayments';
|
|
48
48
|
import { Payment } from '../model/accounting/payment';
|
|
49
49
|
import { PaymentDelete } from '../model/accounting/paymentDelete';
|
|
50
|
-
import { PaymentService } from '../model/accounting/paymentService';
|
|
51
50
|
import { PaymentServices } from '../model/accounting/paymentServices';
|
|
52
51
|
import { Payments } from '../model/accounting/payments';
|
|
53
52
|
import { Prepayments } from '../model/accounting/prepayments';
|
|
@@ -241,9 +240,9 @@ export declare class AccountingApi {
|
|
|
241
240
|
* @summary Creates a new custom payment service for a specific branding theme
|
|
242
241
|
* @param xeroTenantId Xero identifier for Tenant
|
|
243
242
|
* @param brandingThemeID Unique identifier for a Branding Theme
|
|
244
|
-
* @param
|
|
243
|
+
* @param paymentServices PaymentServices array with PaymentService object in body of request
|
|
245
244
|
*/
|
|
246
|
-
createBrandingThemePaymentServices(xeroTenantId: string, brandingThemeID: string,
|
|
245
|
+
createBrandingThemePaymentServices(xeroTenantId: string, brandingThemeID: string, paymentServices: PaymentServices, options?: {
|
|
247
246
|
headers: {
|
|
248
247
|
[name: string]: string;
|
|
249
248
|
};
|
|
@@ -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.33.1
|
|
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.30.0' };
|
|
38
38
|
this._useQuerystring = false;
|
|
39
39
|
this.binaryHeaders = {};
|
|
40
40
|
this.authentications = {
|
|
@@ -842,9 +842,9 @@ class AccountingApi {
|
|
|
842
842
|
* @summary Creates a new custom payment service for a specific branding theme
|
|
843
843
|
* @param xeroTenantId Xero identifier for Tenant
|
|
844
844
|
* @param brandingThemeID Unique identifier for a Branding Theme
|
|
845
|
-
* @param
|
|
845
|
+
* @param paymentServices PaymentServices array with PaymentService object in body of request
|
|
846
846
|
*/
|
|
847
|
-
createBrandingThemePaymentServices(xeroTenantId, brandingThemeID,
|
|
847
|
+
createBrandingThemePaymentServices(xeroTenantId, brandingThemeID, paymentServices, options = { headers: {} }) {
|
|
848
848
|
return __awaiter(this, void 0, void 0, function* () {
|
|
849
849
|
const localVarPath = this.basePath + '/BrandingThemes/{BrandingThemeID}/PaymentServices'
|
|
850
850
|
.replace('{' + 'BrandingThemeID' + '}', encodeURIComponent(String(brandingThemeID)));
|
|
@@ -859,9 +859,9 @@ class AccountingApi {
|
|
|
859
859
|
if (brandingThemeID === null || brandingThemeID === undefined) {
|
|
860
860
|
throw new Error('Required parameter brandingThemeID was null or undefined when calling createBrandingThemePaymentServices.');
|
|
861
861
|
}
|
|
862
|
-
// verify required parameter '
|
|
863
|
-
if (
|
|
864
|
-
throw new Error('Required parameter
|
|
862
|
+
// verify required parameter 'paymentServices' is not null or undefined
|
|
863
|
+
if (paymentServices === null || paymentServices === undefined) {
|
|
864
|
+
throw new Error('Required parameter paymentServices was null or undefined when calling createBrandingThemePaymentServices.');
|
|
865
865
|
}
|
|
866
866
|
localVarHeaderParams['xero-tenant-id'] = models_1.ObjectSerializer.serialize(xeroTenantId, "string");
|
|
867
867
|
Object.assign(localVarHeaderParams, options.headers);
|
|
@@ -873,7 +873,7 @@ class AccountingApi {
|
|
|
873
873
|
uri: localVarPath,
|
|
874
874
|
useQuerystring: this._useQuerystring,
|
|
875
875
|
json: true,
|
|
876
|
-
body: models_1.ObjectSerializer.serialize(
|
|
876
|
+
body: models_1.ObjectSerializer.serialize(paymentServices, "PaymentServices")
|
|
877
877
|
};
|
|
878
878
|
let authenticationPromise = Promise.resolve();
|
|
879
879
|
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|