xero-node 5.0.1 → 6.0.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 (44) hide show
  1. package/README.md +10 -10
  2. package/dist/gen/api/accountingApi.d.ts +40 -25
  3. package/dist/gen/api/accountingApi.js +186 -73
  4. package/dist/gen/api/accountingApi.js.map +1 -1
  5. package/dist/gen/api/appStoreApi.d.ts +1 -1
  6. package/dist/gen/api/appStoreApi.js +2 -2
  7. package/dist/gen/api/appStoreApi.js.map +1 -1
  8. package/dist/gen/api/assetApi.d.ts +1 -1
  9. package/dist/gen/api/assetApi.js +2 -2
  10. package/dist/gen/api/assetApi.js.map +1 -1
  11. package/dist/gen/api/bankfeedsApi.d.ts +1 -1
  12. package/dist/gen/api/bankfeedsApi.js +2 -2
  13. package/dist/gen/api/bankfeedsApi.js.map +1 -1
  14. package/dist/gen/api/filesApi.d.ts +5 -3
  15. package/dist/gen/api/filesApi.js +2 -2
  16. package/dist/gen/api/filesApi.js.map +1 -1
  17. package/dist/gen/api/financeApi.d.ts +1 -1
  18. package/dist/gen/api/financeApi.js +2 -2
  19. package/dist/gen/api/financeApi.js.map +1 -1
  20. package/dist/gen/api/payrollAUApi.d.ts +1 -1
  21. package/dist/gen/api/payrollAUApi.js +2 -2
  22. package/dist/gen/api/payrollAUApi.js.map +1 -1
  23. package/dist/gen/api/payrollNZApi.d.ts +1 -1
  24. package/dist/gen/api/payrollNZApi.js +2 -2
  25. package/dist/gen/api/payrollNZApi.js.map +1 -1
  26. package/dist/gen/api/payrollUKApi.d.ts +1 -1
  27. package/dist/gen/api/payrollUKApi.js +2 -2
  28. package/dist/gen/api/payrollUKApi.js.map +1 -1
  29. package/dist/gen/api/projectApi.d.ts +1 -1
  30. package/dist/gen/api/projectApi.js +2 -2
  31. package/dist/gen/api/projectApi.js.map +1 -1
  32. package/dist/gen/model/accounting/payment.d.ts +4 -0
  33. package/dist/gen/model/accounting/payment.js +5 -0
  34. package/dist/gen/model/accounting/payment.js.map +1 -1
  35. package/dist/gen/model/accounting/taxRate.d.ts +2 -1
  36. package/dist/gen/model/accounting/taxRate.js +1 -0
  37. package/dist/gen/model/accounting/taxRate.js.map +1 -1
  38. package/dist/gen/model/accounting/taxType.d.ts +4 -1
  39. package/dist/gen/model/accounting/taxType.js +3 -0
  40. package/dist/gen/model/accounting/taxType.js.map +1 -1
  41. package/dist/gen/model/payroll-au/allowanceType.d.ts +0 -1
  42. package/dist/gen/model/payroll-au/allowanceType.js +0 -1
  43. package/dist/gen/model/payroll-au/allowanceType.js.map +1 -1
  44. package/package.json +1 -1
package/README.md CHANGED
@@ -51,7 +51,7 @@ Sample apps can get you started quickly with simple auth flows and advanced usag
51
51
  | [`custom-connections-starter`](https://github.com/XeroAPI/xero-node-custom-connections-starter) | Basic app showing Custom Connections - a Xero [premium option](https://developer.xero.com/documentation/guides/oauth2/custom-connections) for building M2M integrations to a single org | <img src="https://i.imgur.com/HoQHLuq.png" alt="drawing" width="300"/>
52
52
  | [`xero-node-sso-app`](https://github.com/XeroAPI/xero-node-sso-app) | App showing Xero Single Sign On - as well as basic setup and usage of the Xero App Store `appStoreApi.getSubscription` endpoint | <img src="https://i.imgur.com/4NGowZz.png" alt="drawing" width="300"/>
53
53
  | [`xero-node-sso-form`](https://github.com/XeroAPI/xero-node-sso-form) | App showing Sign up with Xero to Lead | <img src="https://raw.githubusercontent.com/XeroAPI/xero-node-sso-form/main/public/images/ssu-demo-screenshot.png" alt="drawing" width="300"/>
54
-
54
+
55
55
  <hr>
56
56
 
57
57
  ## Xero Account Requirements
@@ -128,7 +128,7 @@ Example Token Set JSON:
128
128
  ```
129
129
 
130
130
  ---
131
- ## Custom Connections
131
+ ## Custom Connections
132
132
 
133
133
  Custom Connections are a Xero [premium option](https://developer.xero.com/documentation/oauth2/custom-connections) used for building M2M integrations to a single organisation. A custom connection uses OAuth2.0's [`client_credentials`](https://www.oauth.com/oauth2-servers/access-tokens/client-credentials/) grant which eliminates the step of exchanging the temporary code for a token set.
134
134
 
@@ -154,9 +154,9 @@ Because Custom Connections are only valid for a single organisation you don't ne
154
154
 
155
155
  ---
156
156
 
157
- ## App Store Subscriptions
157
+ ## App Store Subscriptions
158
158
 
159
- If you are implementing subscriptions to participate in Xero's App Store you will need to setup [App Store subscriptions](https://developer.xero.com/documentation/guides/how-to-guides/xero-app-store-referrals/) endpoints.
159
+ If you are implementing subscriptions to participate in Xero's App Store you will need to setup [App Store subscriptions](https://developer.xero.com/documentation/xero-app-store/app-partner-guides/xero-app-store-subscriptions) endpoints.
160
160
 
161
161
  When a plan is successfully purchased, the user is redirected back to the URL specified in the setup process. The Xero App Store appends the subscription Id to this URL so you can immediately determine what plan the user has subscribed to through the subscriptions API.
162
162
 
@@ -187,7 +187,7 @@ console.log(subscriptionRequest.body)
187
187
  id: '03bc74f2-1237-4477-b782-2dfb1a6d8b21',
188
188
  organisationId: '79e8b2e5-c63d-4dce-888f-e0f3e9eac647',
189
189
  plans: [
190
- Plan {
190
+ {
191
191
  id: '6abc26f3-9390-4194-8b25-ce8b9942fda9',
192
192
  name: 'Small',
193
193
  status: 'ACTIVE',
@@ -203,7 +203,7 @@ console.log(subscriptionRequest.body)
203
203
  id: '9586421f-7325-4493-bac9-d93be06a6a38',
204
204
  name: '',
205
205
  type: 'FIXED'
206
- },
206
+ },
207
207
  startDate: 2021-08-02T20:08:58.772Z,
208
208
  testMode: true
209
209
 
@@ -418,7 +418,7 @@ Note that you should set the query param to undefined instead of null if you wis
418
418
  const purchaseOrders = xero.accountingApi.getPurchaseOrders(tenant.tenantId, null, null, '2021-01-01', '2021-04-25', null, 1);
419
419
 
420
420
  // http://api-oauth2.xero.com/api.xro/2.0/PurchaseOrders?Status=&DateFrom=2008-01-01&DateTo=2021-04-25&order=&page=1
421
- // "Status=&" is breaking the above query
421
+ // "Status=&" is breaking the above query
422
422
  // purchaseOrders will be an empty array
423
423
 
424
424
  const purchaseOrders = xero.accountingApi.getPurchaseOrders(tenant.tenantId, undefined, undefined, '2021-01-01', '2021-04-25', undefined, 1);
@@ -438,7 +438,7 @@ When xero.buildConsentUrl is called we call openid-client authorizationUrl metho
438
438
  RPError: state mismatch, expected user=1234, got: user=666
439
439
  ```
440
440
  ### JWT Verification Using Xero-Node
441
- JWT verification of both the `access_token` and `id_token` are baked into the openid-client library we leverage. When `xero.apiCallback` is called, openid-client `validateJARM` is triggered which also invokes `validateJWT`. If openid-client fails to validate the JWT signature it will throw an error.
441
+ JWT verification of both the `access_token` and `id_token` are baked into the openid-client library we leverage. When `xero.apiCallback` is called, openid-client `validateJARM` is triggered which also invokes `validateJWT`. If openid-client fails to validate the JWT signature it will throw an error.
442
442
 
443
443
  ---
444
444
  ## Contributing
@@ -455,11 +455,11 @@ We do our best to keep OS industry `semver` standards, but we can make mistakes!
455
455
 
456
456
  ## Participating in Xero’s developer community
457
457
 
458
- This SDK is one of a number of SDK’s that the Xero Developer team builds and maintains. We are grateful for all the contributions that the community makes.
458
+ This SDK is one of a number of SDK’s that the Xero Developer team builds and maintains. We are grateful for all the contributions that the community makes.
459
459
 
460
460
  Here are a few things you should be aware of as a contributor:
461
461
  * Xero has adopted the Contributor Covenant [Code of Conduct](https://github.com/XeroAPI/xero-node/blob/master/CODE_OF_CONDUCT.md), we expect all contributors in our community to adhere to it
462
- * If you raise an issue then please make sure to fill out the github issue template, doing so helps us help you
462
+ * If you raise an issue then please make sure to fill out the github issue template, doing so helps us help you
463
463
  * You’re welcome to raise PRs. As our SDKs are generated we may use your code in the core SDK build instead of merging your code
464
464
  * We have a [contribution guide](https://github.com/XeroAPI/xero-node/blob/master/CONTRIBUTING.md) for you to follow when contributing to this SDK
465
465
  * Curious about how we generate our SDK’s? Have a [read of our process](https://devblog.xero.com/building-sdks-for-the-future-b79ff726dfd6) and have a look at our [OpenAPISpec](https://github.com/XeroAPI/Xero-OpenAPI)
@@ -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: 3.0.0
5
+ * The version of the OpenAPI document: 3.0.3
6
6
  * Contact: api@xero.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -11,6 +11,7 @@
11
11
  */
12
12
  /// <reference types="node" />
13
13
  /// <reference types="node" />
14
+ /// <reference types="node" />
14
15
  import fs = require('fs');
15
16
  import { Account } from '../model/accounting/account';
16
17
  import { Accounts } from '../model/accounting/accounts';
@@ -67,6 +68,7 @@ import { TrackingOptions } from '../model/accounting/trackingOptions';
67
68
  import { Users } from '../model/accounting/users';
68
69
  import { Authentication } from '../model/accounting/models';
69
70
  import { AxiosResponse } from 'axios';
71
+ import { Readable } from "stream";
70
72
  import { OAuth } from '../model/accounting/models';
71
73
  export declare enum AccountingApiApiKeys {
72
74
  }
@@ -110,7 +112,7 @@ export declare class AccountingApi {
110
112
  * @param body Byte array of file in body of request
111
113
  * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
112
114
  */
113
- createAccountAttachmentByFileName(xeroTenantId: string, accountID: string, fileName: string, body: fs.ReadStream, idempotencyKey?: string, options?: {
115
+ createAccountAttachmentByFileName(xeroTenantId: string, accountID: string, fileName: string, body: fs.ReadStream | Readable | Buffer, idempotencyKey?: string, options?: {
114
116
  headers: {
115
117
  [name: string]: string;
116
118
  };
@@ -127,7 +129,7 @@ export declare class AccountingApi {
127
129
  * @param body Byte array of file in body of request
128
130
  * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
129
131
  */
130
- createBankTransactionAttachmentByFileName(xeroTenantId: string, bankTransactionID: string, fileName: string, body: fs.ReadStream, idempotencyKey?: string, options?: {
132
+ createBankTransactionAttachmentByFileName(xeroTenantId: string, bankTransactionID: string, fileName: string, body: fs.ReadStream | Readable | Buffer, idempotencyKey?: string, options?: {
131
133
  headers: {
132
134
  [name: string]: string;
133
135
  };
@@ -191,7 +193,7 @@ export declare class AccountingApi {
191
193
  * @param body Byte array of file in body of request
192
194
  * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
193
195
  */
194
- createBankTransferAttachmentByFileName(xeroTenantId: string, bankTransferID: string, fileName: string, body: fs.ReadStream, idempotencyKey?: string, options?: {
196
+ createBankTransferAttachmentByFileName(xeroTenantId: string, bankTransferID: string, fileName: string, body: fs.ReadStream | Readable | Buffer, idempotencyKey?: string, options?: {
195
197
  headers: {
196
198
  [name: string]: string;
197
199
  };
@@ -271,7 +273,7 @@ export declare class AccountingApi {
271
273
  * @param body Byte array of file in body of request
272
274
  * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
273
275
  */
274
- createContactAttachmentByFileName(xeroTenantId: string, contactID: string, fileName: string, body: fs.ReadStream, idempotencyKey?: string, options?: {
276
+ createContactAttachmentByFileName(xeroTenantId: string, contactID: string, fileName: string, body: fs.ReadStream | Readable | Buffer, idempotencyKey?: string, options?: {
275
277
  headers: {
276
278
  [name: string]: string;
277
279
  };
@@ -369,7 +371,7 @@ export declare class AccountingApi {
369
371
  * @param includeOnline Allows an attachment to be seen by the end customer within their online invoice
370
372
  * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
371
373
  */
372
- createCreditNoteAttachmentByFileName(xeroTenantId: string, creditNoteID: string, fileName: string, body: fs.ReadStream, includeOnline?: boolean, idempotencyKey?: string, options?: {
374
+ createCreditNoteAttachmentByFileName(xeroTenantId: string, creditNoteID: string, fileName: string, body: fs.ReadStream | Readable | Buffer, includeOnline?: boolean, idempotencyKey?: string, options?: {
373
375
  headers: {
374
376
  [name: string]: string;
375
377
  };
@@ -482,7 +484,7 @@ export declare class AccountingApi {
482
484
  * @param includeOnline Allows an attachment to be seen by the end customer within their online invoice
483
485
  * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
484
486
  */
485
- createInvoiceAttachmentByFileName(xeroTenantId: string, invoiceID: string, fileName: string, body: fs.ReadStream, includeOnline?: boolean, idempotencyKey?: string, options?: {
487
+ createInvoiceAttachmentByFileName(xeroTenantId: string, invoiceID: string, fileName: string, body: fs.ReadStream | Readable | Buffer, includeOnline?: boolean, idempotencyKey?: string, options?: {
486
488
  headers: {
487
489
  [name: string]: string;
488
490
  };
@@ -580,7 +582,7 @@ export declare class AccountingApi {
580
582
  * @param body Byte array of file in body of request
581
583
  * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
582
584
  */
583
- createManualJournalAttachmentByFileName(xeroTenantId: string, manualJournalID: string, fileName: string, body: fs.ReadStream, idempotencyKey?: string, options?: {
585
+ createManualJournalAttachmentByFileName(xeroTenantId: string, manualJournalID: string, fileName: string, body: fs.ReadStream | Readable | Buffer, idempotencyKey?: string, options?: {
584
586
  headers: {
585
587
  [name: string]: string;
586
588
  };
@@ -757,7 +759,7 @@ export declare class AccountingApi {
757
759
  * @param body Byte array of file in body of request
758
760
  * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
759
761
  */
760
- createPurchaseOrderAttachmentByFileName(xeroTenantId: string, purchaseOrderID: string, fileName: string, body: fs.ReadStream, idempotencyKey?: string, options?: {
762
+ createPurchaseOrderAttachmentByFileName(xeroTenantId: string, purchaseOrderID: string, fileName: string, body: fs.ReadStream | Readable | Buffer, idempotencyKey?: string, options?: {
761
763
  headers: {
762
764
  [name: string]: string;
763
765
  };
@@ -806,7 +808,7 @@ export declare class AccountingApi {
806
808
  * @param body Byte array of file in body of request
807
809
  * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
808
810
  */
809
- createQuoteAttachmentByFileName(xeroTenantId: string, quoteID: string, fileName: string, body: fs.ReadStream, idempotencyKey?: string, options?: {
811
+ createQuoteAttachmentByFileName(xeroTenantId: string, quoteID: string, fileName: string, body: fs.ReadStream | Readable | Buffer, idempotencyKey?: string, options?: {
810
812
  headers: {
811
813
  [name: string]: string;
812
814
  };
@@ -871,7 +873,7 @@ export declare class AccountingApi {
871
873
  * @param body Byte array of file in body of request
872
874
  * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
873
875
  */
874
- createReceiptAttachmentByFileName(xeroTenantId: string, receiptID: string, fileName: string, body: fs.ReadStream, idempotencyKey?: string, options?: {
876
+ createReceiptAttachmentByFileName(xeroTenantId: string, receiptID: string, fileName: string, body: fs.ReadStream | Readable | Buffer, idempotencyKey?: string, options?: {
875
877
  headers: {
876
878
  [name: string]: string;
877
879
  };
@@ -904,7 +906,7 @@ export declare class AccountingApi {
904
906
  * @param body Byte array of file in body of request
905
907
  * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
906
908
  */
907
- createRepeatingInvoiceAttachmentByFileName(xeroTenantId: string, repeatingInvoiceID: string, fileName: string, body: fs.ReadStream, idempotencyKey?: string, options?: {
909
+ createRepeatingInvoiceAttachmentByFileName(xeroTenantId: string, repeatingInvoiceID: string, fileName: string, body: fs.ReadStream | Readable | Buffer, idempotencyKey?: string, options?: {
908
910
  headers: {
909
911
  [name: string]: string;
910
912
  };
@@ -3058,15 +3060,28 @@ export declare class AccountingApi {
3058
3060
  response: AxiosResponse;
3059
3061
  body: ReportWithRows;
3060
3062
  }>;
3063
+ /**
3064
+ *
3065
+ * @summary Retrieves a specific tax rate according to given TaxType code
3066
+ * @param xeroTenantId Xero identifier for Tenant
3067
+ * @param taxType A valid TaxType code
3068
+ */
3069
+ getTaxRateByTaxType(xeroTenantId: string, taxType: string, options?: {
3070
+ headers: {
3071
+ [name: string]: string;
3072
+ };
3073
+ }): Promise<{
3074
+ response: AxiosResponse;
3075
+ body: TaxRates;
3076
+ }>;
3061
3077
  /**
3062
3078
  *
3063
3079
  * @summary Retrieves tax rates
3064
3080
  * @param xeroTenantId Xero identifier for Tenant
3065
3081
  * @param where Filter by an any element
3066
3082
  * @param order Order by an any element
3067
- * @param taxType Filter by tax type
3068
3083
  */
3069
- getTaxRates(xeroTenantId: string, where?: string, order?: string, taxType?: string, options?: {
3084
+ getTaxRates(xeroTenantId: string, where?: string, order?: string, options?: {
3070
3085
  headers: {
3071
3086
  [name: string]: string;
3072
3087
  };
@@ -3174,7 +3189,7 @@ export declare class AccountingApi {
3174
3189
  * @param body Byte array of file in body of request
3175
3190
  * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
3176
3191
  */
3177
- updateAccountAttachmentByFileName(xeroTenantId: string, accountID: string, fileName: string, body: fs.ReadStream, idempotencyKey?: string, options?: {
3192
+ updateAccountAttachmentByFileName(xeroTenantId: string, accountID: string, fileName: string, body: fs.ReadStream | Readable | Buffer, idempotencyKey?: string, options?: {
3178
3193
  headers: {
3179
3194
  [name: string]: string;
3180
3195
  };
@@ -3208,7 +3223,7 @@ export declare class AccountingApi {
3208
3223
  * @param body Byte array of file in body of request
3209
3224
  * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
3210
3225
  */
3211
- updateBankTransactionAttachmentByFileName(xeroTenantId: string, bankTransactionID: string, fileName: string, body: fs.ReadStream, idempotencyKey?: string, options?: {
3226
+ updateBankTransactionAttachmentByFileName(xeroTenantId: string, bankTransactionID: string, fileName: string, body: fs.ReadStream | Readable | Buffer, idempotencyKey?: string, options?: {
3212
3227
  headers: {
3213
3228
  [name: string]: string;
3214
3229
  };
@@ -3224,7 +3239,7 @@ export declare class AccountingApi {
3224
3239
  * @param body Byte array of file in body of request
3225
3240
  * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
3226
3241
  */
3227
- updateBankTransferAttachmentByFileName(xeroTenantId: string, bankTransferID: string, fileName: string, body: fs.ReadStream, idempotencyKey?: string, options?: {
3242
+ updateBankTransferAttachmentByFileName(xeroTenantId: string, bankTransferID: string, fileName: string, body: fs.ReadStream | Readable | Buffer, idempotencyKey?: string, options?: {
3228
3243
  headers: {
3229
3244
  [name: string]: string;
3230
3245
  };
@@ -3256,7 +3271,7 @@ export declare class AccountingApi {
3256
3271
  * @param body Byte array of file in body of request
3257
3272
  * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
3258
3273
  */
3259
- updateContactAttachmentByFileName(xeroTenantId: string, contactID: string, fileName: string, body: fs.ReadStream, idempotencyKey?: string, options?: {
3274
+ updateContactAttachmentByFileName(xeroTenantId: string, contactID: string, fileName: string, body: fs.ReadStream | Readable | Buffer, idempotencyKey?: string, options?: {
3260
3275
  headers: {
3261
3276
  [name: string]: string;
3262
3277
  };
@@ -3306,7 +3321,7 @@ export declare class AccountingApi {
3306
3321
  * @param body Byte array of file in body of request
3307
3322
  * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
3308
3323
  */
3309
- updateCreditNoteAttachmentByFileName(xeroTenantId: string, creditNoteID: string, fileName: string, body: fs.ReadStream, idempotencyKey?: string, options?: {
3324
+ updateCreditNoteAttachmentByFileName(xeroTenantId: string, creditNoteID: string, fileName: string, body: fs.ReadStream | Readable | Buffer, idempotencyKey?: string, options?: {
3310
3325
  headers: {
3311
3326
  [name: string]: string;
3312
3327
  };
@@ -3356,7 +3371,7 @@ export declare class AccountingApi {
3356
3371
  * @param body Byte array of file in body of request
3357
3372
  * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
3358
3373
  */
3359
- updateInvoiceAttachmentByFileName(xeroTenantId: string, invoiceID: string, fileName: string, body: fs.ReadStream, idempotencyKey?: string, options?: {
3374
+ updateInvoiceAttachmentByFileName(xeroTenantId: string, invoiceID: string, fileName: string, body: fs.ReadStream | Readable | Buffer, idempotencyKey?: string, options?: {
3360
3375
  headers: {
3361
3376
  [name: string]: string;
3362
3377
  };
@@ -3422,7 +3437,7 @@ export declare class AccountingApi {
3422
3437
  * @param body Byte array of file in body of request
3423
3438
  * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
3424
3439
  */
3425
- updateManualJournalAttachmentByFileName(xeroTenantId: string, manualJournalID: string, fileName: string, body: fs.ReadStream, idempotencyKey?: string, options?: {
3440
+ updateManualJournalAttachmentByFileName(xeroTenantId: string, manualJournalID: string, fileName: string, body: fs.ReadStream | Readable | Buffer, idempotencyKey?: string, options?: {
3426
3441
  headers: {
3427
3442
  [name: string]: string;
3428
3443
  };
@@ -3619,7 +3634,7 @@ export declare class AccountingApi {
3619
3634
  * @param body Byte array of file in body of request
3620
3635
  * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
3621
3636
  */
3622
- updatePurchaseOrderAttachmentByFileName(xeroTenantId: string, purchaseOrderID: string, fileName: string, body: fs.ReadStream, idempotencyKey?: string, options?: {
3637
+ updatePurchaseOrderAttachmentByFileName(xeroTenantId: string, purchaseOrderID: string, fileName: string, body: fs.ReadStream | Readable | Buffer, idempotencyKey?: string, options?: {
3623
3638
  headers: {
3624
3639
  [name: string]: string;
3625
3640
  };
@@ -3652,7 +3667,7 @@ export declare class AccountingApi {
3652
3667
  * @param body Byte array of file in body of request
3653
3668
  * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
3654
3669
  */
3655
- updateQuoteAttachmentByFileName(xeroTenantId: string, quoteID: string, fileName: string, body: fs.ReadStream, idempotencyKey?: string, options?: {
3670
+ updateQuoteAttachmentByFileName(xeroTenantId: string, quoteID: string, fileName: string, body: fs.ReadStream | Readable | Buffer, idempotencyKey?: string, options?: {
3656
3671
  headers: {
3657
3672
  [name: string]: string;
3658
3673
  };
@@ -3686,7 +3701,7 @@ export declare class AccountingApi {
3686
3701
  * @param body Byte array of file in body of request
3687
3702
  * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
3688
3703
  */
3689
- updateReceiptAttachmentByFileName(xeroTenantId: string, receiptID: string, fileName: string, body: fs.ReadStream, idempotencyKey?: string, options?: {
3704
+ updateReceiptAttachmentByFileName(xeroTenantId: string, receiptID: string, fileName: string, body: fs.ReadStream | Readable | Buffer, idempotencyKey?: string, options?: {
3690
3705
  headers: {
3691
3706
  [name: string]: string;
3692
3707
  };
@@ -3719,7 +3734,7 @@ export declare class AccountingApi {
3719
3734
  * @param body Byte array of file in body of request
3720
3735
  * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
3721
3736
  */
3722
- updateRepeatingInvoiceAttachmentByFileName(xeroTenantId: string, repeatingInvoiceID: string, fileName: string, body: fs.ReadStream, idempotencyKey?: string, options?: {
3737
+ updateRepeatingInvoiceAttachmentByFileName(xeroTenantId: string, repeatingInvoiceID: string, fileName: string, body: fs.ReadStream | Readable | Buffer, idempotencyKey?: string, options?: {
3723
3738
  headers: {
3724
3739
  [name: string]: string;
3725
3740
  };