-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
631-added the logic to accept buffer type
- Loading branch information
1 parent
77648d1
commit 372f937
Showing
12 changed files
with
226 additions
and
122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
* Xero AppStore API | ||
* These endpoints are for Xero Partners to interact with the App Store Billing platform | ||
* | ||
* The version of the OpenAPI document: 3.0.0 | ||
* The version of the OpenAPI document: 3.0.1 | ||
* Contact: [email protected] | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
* Xero Assets API | ||
* The Assets API exposes fixed asset related functions of the Xero Accounting application and can be used for a variety of purposes such as creating assets, retrieving asset valuations etc. | ||
* | ||
* The version of the OpenAPI document: 3.0.0 | ||
* The version of the OpenAPI document: 3.0.1 | ||
* Contact: [email protected] | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
* Xero Bank Feeds API | ||
* The Bank Feeds API is a closed API that is only available to financial institutions that have an established financial services partnership with Xero. If you\'re an existing financial services partner that wants access, contact your local Partner Manager. If you\'re a financial institution who wants to provide bank feeds to your business customers, contact us to become a financial services partner. | ||
* | ||
* The version of the OpenAPI document: 3.0.0 | ||
* The version of the OpenAPI document: 3.0.1 | ||
* Contact: [email protected] | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
* Xero Files API | ||
* These endpoints are specific to Xero Files API | ||
* | ||
* The version of the OpenAPI document: 3.0.0 | ||
* The version of the OpenAPI document: 3.0.1 | ||
* Contact: [email protected] | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
|
@@ -1327,7 +1327,7 @@ export class FilesApi { | |
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max. | ||
* @param mimeType | ||
*/ | ||
public async uploadFile (xeroTenantId: string, body: fs.ReadStream | Readable, name: string, filename: string, idempotencyKey?: string, mimeType?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: AxiosResponse; body: FileObject; }> { | ||
public async uploadFile (xeroTenantId: string, body: fs.ReadStream | Readable | Buffer , name: string, filename: string, idempotencyKey?: string, mimeType?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: AxiosResponse; body: FileObject; }> { | ||
const localVarPath = this.basePath + '/Files'; | ||
let localVarQueryParameters: any = {}; | ||
let localVarHeaderParams: any = (<any>Object).assign({}, this.defaultHeaders); | ||
|
@@ -1433,7 +1433,7 @@ export class FilesApi { | |
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max. | ||
* @param mimeType | ||
*/ | ||
public async uploadFileToFolder (xeroTenantId: string, folderId: string, body: fs.ReadStream | Readable, name: string, filename: string, idempotencyKey?: string, mimeType?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: AxiosResponse; body: FileObject; }> { | ||
public async uploadFileToFolder (xeroTenantId: string, folderId: string, body: fs.ReadStream | Readable | Buffer , name: string, filename: string, idempotencyKey?: string, mimeType?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: AxiosResponse; body: FileObject; }> { | ||
const localVarPath = this.basePath + '/Files/{FolderId}' | ||
.replace('{' + 'FolderId' + '}', encodeURIComponent(String(folderId))); | ||
let localVarQueryParameters: any = {}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
* Xero Finance API | ||
* The Finance API is a collection of endpoints which customers can use in the course of a loan application, which may assist lenders to gain the confidence they need to provide capital. | ||
* | ||
* The version of the OpenAPI document: 3.0.0 | ||
* The version of the OpenAPI document: 3.0.1 | ||
* Contact: [email protected] | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
* Xero Payroll AU API | ||
* This is the Xero Payroll API for orgs in Australia region. | ||
* | ||
* The version of the OpenAPI document: 3.0.0 | ||
* The version of the OpenAPI document: 3.0.1 | ||
* Contact: [email protected] | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
* Xero Payroll NZ | ||
* This is the Xero Payroll API for orgs in the NZ region. | ||
* | ||
* The version of the OpenAPI document: 3.0.0 | ||
* The version of the OpenAPI document: 3.0.1 | ||
* Contact: [email protected] | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
* Xero Payroll UK | ||
* This is the Xero Payroll API for orgs in the UK region. | ||
* | ||
* The version of the OpenAPI document: 3.0.0 | ||
* The version of the OpenAPI document: 3.0.1 | ||
* Contact: [email protected] | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
* Xero Projects API | ||
* This is the Xero Projects API | ||
* | ||
* The version of the OpenAPI document: 3.0.0 | ||
* The version of the OpenAPI document: 3.0.1 | ||
* Contact: [email protected] | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters