xero-node 4.29.0 → 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.
Files changed (34) hide show
  1. package/dist/gen/api/accountingApi.d.ts +3 -4
  2. package/dist/gen/api/accountingApi.js +8 -8
  3. package/dist/gen/api/accountingApi.js.map +1 -1
  4. package/dist/gen/api/appStoreApi.d.ts +1 -1
  5. package/dist/gen/api/appStoreApi.js +2 -2
  6. package/dist/gen/api/assetApi.d.ts +1 -1
  7. package/dist/gen/api/assetApi.js +2 -2
  8. package/dist/gen/api/bankfeedsApi.d.ts +1 -1
  9. package/dist/gen/api/bankfeedsApi.js +2 -2
  10. package/dist/gen/api/filesApi.d.ts +1 -1
  11. package/dist/gen/api/filesApi.js +2 -2
  12. package/dist/gen/api/financeApi.d.ts +1 -1
  13. package/dist/gen/api/financeApi.js +2 -2
  14. package/dist/gen/api/payrollAUApi.d.ts +1 -1
  15. package/dist/gen/api/payrollAUApi.js +2 -2
  16. package/dist/gen/api/payrollNZApi.d.ts +1 -1
  17. package/dist/gen/api/payrollNZApi.js +2 -2
  18. package/dist/gen/api/payrollUKApi.d.ts +1 -1
  19. package/dist/gen/api/payrollUKApi.js +2 -2
  20. package/dist/gen/api/projectApi.d.ts +2 -2
  21. package/dist/gen/api/projectApi.js +3 -3
  22. package/dist/gen/model/accounting/batchPayment.d.ts +2 -2
  23. package/dist/gen/model/accounting/batchPayment.js +2 -2
  24. package/dist/gen/model/accounting/batchPayment.js.map +1 -1
  25. package/dist/gen/model/accounting/payment.d.ts +2 -0
  26. package/dist/gen/model/accounting/payment.js +5 -0
  27. package/dist/gen/model/accounting/payment.js.map +1 -1
  28. package/dist/gen/model/accounting/taxRate.d.ts +4 -1
  29. package/dist/gen/model/accounting/taxRate.js +3 -0
  30. package/dist/gen/model/accounting/taxRate.js.map +1 -1
  31. package/dist/gen/model/accounting/taxType.d.ts +16 -1
  32. package/dist/gen/model/accounting/taxType.js +15 -0
  33. package/dist/gen/model/accounting/taxType.js.map +1 -1
  34. 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.31.0
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 paymentService PaymentService object in body of request
243
+ * @param paymentServices PaymentServices array with PaymentService object in body of request
245
244
  */
246
- createBrandingThemePaymentServices(xeroTenantId: string, brandingThemeID: string, paymentService: PaymentService, options?: {
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.31.0
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.29.0' };
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 paymentService PaymentService object in body of request
845
+ * @param paymentServices PaymentServices array with PaymentService object in body of request
846
846
  */
847
- createBrandingThemePaymentServices(xeroTenantId, brandingThemeID, paymentService, options = { headers: {} }) {
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 'paymentService' is not null or undefined
863
- if (paymentService === null || paymentService === undefined) {
864
- throw new Error('Required parameter paymentService was null or undefined when calling createBrandingThemePaymentServices.');
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(paymentService, "PaymentService")
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));