xero-node 5.0.1 → 5.1.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 (35) hide show
  1. package/README.md +10 -10
  2. package/dist/gen/api/accountingApi.d.ts +25 -23
  3. package/dist/gen/api/accountingApi.js +113 -68
  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/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.1
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
  };
@@ -3174,7 +3176,7 @@ export declare class AccountingApi {
3174
3176
  * @param body Byte array of file in body of request
3175
3177
  * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
3176
3178
  */
3177
- updateAccountAttachmentByFileName(xeroTenantId: string, accountID: string, fileName: string, body: fs.ReadStream, idempotencyKey?: string, options?: {
3179
+ updateAccountAttachmentByFileName(xeroTenantId: string, accountID: string, fileName: string, body: fs.ReadStream | Readable | Buffer, idempotencyKey?: string, options?: {
3178
3180
  headers: {
3179
3181
  [name: string]: string;
3180
3182
  };
@@ -3208,7 +3210,7 @@ export declare class AccountingApi {
3208
3210
  * @param body Byte array of file in body of request
3209
3211
  * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
3210
3212
  */
3211
- updateBankTransactionAttachmentByFileName(xeroTenantId: string, bankTransactionID: string, fileName: string, body: fs.ReadStream, idempotencyKey?: string, options?: {
3213
+ updateBankTransactionAttachmentByFileName(xeroTenantId: string, bankTransactionID: string, fileName: string, body: fs.ReadStream | Readable | Buffer, idempotencyKey?: string, options?: {
3212
3214
  headers: {
3213
3215
  [name: string]: string;
3214
3216
  };
@@ -3224,7 +3226,7 @@ export declare class AccountingApi {
3224
3226
  * @param body Byte array of file in body of request
3225
3227
  * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
3226
3228
  */
3227
- updateBankTransferAttachmentByFileName(xeroTenantId: string, bankTransferID: string, fileName: string, body: fs.ReadStream, idempotencyKey?: string, options?: {
3229
+ updateBankTransferAttachmentByFileName(xeroTenantId: string, bankTransferID: string, fileName: string, body: fs.ReadStream | Readable | Buffer, idempotencyKey?: string, options?: {
3228
3230
  headers: {
3229
3231
  [name: string]: string;
3230
3232
  };
@@ -3256,7 +3258,7 @@ export declare class AccountingApi {
3256
3258
  * @param body Byte array of file in body of request
3257
3259
  * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
3258
3260
  */
3259
- updateContactAttachmentByFileName(xeroTenantId: string, contactID: string, fileName: string, body: fs.ReadStream, idempotencyKey?: string, options?: {
3261
+ updateContactAttachmentByFileName(xeroTenantId: string, contactID: string, fileName: string, body: fs.ReadStream | Readable | Buffer, idempotencyKey?: string, options?: {
3260
3262
  headers: {
3261
3263
  [name: string]: string;
3262
3264
  };
@@ -3306,7 +3308,7 @@ export declare class AccountingApi {
3306
3308
  * @param body Byte array of file in body of request
3307
3309
  * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
3308
3310
  */
3309
- updateCreditNoteAttachmentByFileName(xeroTenantId: string, creditNoteID: string, fileName: string, body: fs.ReadStream, idempotencyKey?: string, options?: {
3311
+ updateCreditNoteAttachmentByFileName(xeroTenantId: string, creditNoteID: string, fileName: string, body: fs.ReadStream | Readable | Buffer, idempotencyKey?: string, options?: {
3310
3312
  headers: {
3311
3313
  [name: string]: string;
3312
3314
  };
@@ -3356,7 +3358,7 @@ export declare class AccountingApi {
3356
3358
  * @param body Byte array of file in body of request
3357
3359
  * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
3358
3360
  */
3359
- updateInvoiceAttachmentByFileName(xeroTenantId: string, invoiceID: string, fileName: string, body: fs.ReadStream, idempotencyKey?: string, options?: {
3361
+ updateInvoiceAttachmentByFileName(xeroTenantId: string, invoiceID: string, fileName: string, body: fs.ReadStream | Readable | Buffer, idempotencyKey?: string, options?: {
3360
3362
  headers: {
3361
3363
  [name: string]: string;
3362
3364
  };
@@ -3422,7 +3424,7 @@ export declare class AccountingApi {
3422
3424
  * @param body Byte array of file in body of request
3423
3425
  * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
3424
3426
  */
3425
- updateManualJournalAttachmentByFileName(xeroTenantId: string, manualJournalID: string, fileName: string, body: fs.ReadStream, idempotencyKey?: string, options?: {
3427
+ updateManualJournalAttachmentByFileName(xeroTenantId: string, manualJournalID: string, fileName: string, body: fs.ReadStream | Readable | Buffer, idempotencyKey?: string, options?: {
3426
3428
  headers: {
3427
3429
  [name: string]: string;
3428
3430
  };
@@ -3619,7 +3621,7 @@ export declare class AccountingApi {
3619
3621
  * @param body Byte array of file in body of request
3620
3622
  * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
3621
3623
  */
3622
- updatePurchaseOrderAttachmentByFileName(xeroTenantId: string, purchaseOrderID: string, fileName: string, body: fs.ReadStream, idempotencyKey?: string, options?: {
3624
+ updatePurchaseOrderAttachmentByFileName(xeroTenantId: string, purchaseOrderID: string, fileName: string, body: fs.ReadStream | Readable | Buffer, idempotencyKey?: string, options?: {
3623
3625
  headers: {
3624
3626
  [name: string]: string;
3625
3627
  };
@@ -3652,7 +3654,7 @@ export declare class AccountingApi {
3652
3654
  * @param body Byte array of file in body of request
3653
3655
  * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
3654
3656
  */
3655
- updateQuoteAttachmentByFileName(xeroTenantId: string, quoteID: string, fileName: string, body: fs.ReadStream, idempotencyKey?: string, options?: {
3657
+ updateQuoteAttachmentByFileName(xeroTenantId: string, quoteID: string, fileName: string, body: fs.ReadStream | Readable | Buffer, idempotencyKey?: string, options?: {
3656
3658
  headers: {
3657
3659
  [name: string]: string;
3658
3660
  };
@@ -3686,7 +3688,7 @@ export declare class AccountingApi {
3686
3688
  * @param body Byte array of file in body of request
3687
3689
  * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
3688
3690
  */
3689
- updateReceiptAttachmentByFileName(xeroTenantId: string, receiptID: string, fileName: string, body: fs.ReadStream, idempotencyKey?: string, options?: {
3691
+ updateReceiptAttachmentByFileName(xeroTenantId: string, receiptID: string, fileName: string, body: fs.ReadStream | Readable | Buffer, idempotencyKey?: string, options?: {
3690
3692
  headers: {
3691
3693
  [name: string]: string;
3692
3694
  };
@@ -3719,7 +3721,7 @@ export declare class AccountingApi {
3719
3721
  * @param body Byte array of file in body of request
3720
3722
  * @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
3721
3723
  */
3722
- updateRepeatingInvoiceAttachmentByFileName(xeroTenantId: string, repeatingInvoiceID: string, fileName: string, body: fs.ReadStream, idempotencyKey?: string, options?: {
3724
+ updateRepeatingInvoiceAttachmentByFileName(xeroTenantId: string, repeatingInvoiceID: string, fileName: string, body: fs.ReadStream | Readable | Buffer, idempotencyKey?: string, options?: {
3723
3725
  headers: {
3724
3726
  [name: string]: string;
3725
3727
  };