Skip to content

Commit 372f937

Browse files
631-added the logic to accept buffer type
1 parent 77648d1 commit 372f937

File tree

12 files changed

+226
-122
lines changed

12 files changed

+226
-122
lines changed

docs/accounting/index.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4377,6 +4377,13 @@
43774377
"items" : {
43784378
"$ref" : "#/components/schemas/ValidationError"
43794379
}
4380+
},
4381+
"Warnings" : {
4382+
"type" : "array",
4383+
"description" : "Displays array of warning messages from the API",
4384+
"items" : {
4385+
"$ref" : "#/components/schemas/ValidationError"
4386+
}
43804387
}
43814388
},
43824389
"description" : "",

src/gen/api/accountingApi.ts

Lines changed: 199 additions & 111 deletions
Large diffs are not rendered by default.

src/gen/api/appStoreApi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Xero AppStore API
33
* These endpoints are for Xero Partners to interact with the App Store Billing platform
44
*
5-
* The version of the OpenAPI document: 3.0.0
5+
* The version of the OpenAPI document: 3.0.1
66
* Contact: api@xero.com
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

src/gen/api/assetApi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Xero Assets API
33
* 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.
44
*
5-
* The version of the OpenAPI document: 3.0.0
5+
* The version of the OpenAPI document: 3.0.1
66
* Contact: api@xero.com
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

src/gen/api/bankfeedsApi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Xero Bank Feeds API
33
* 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.
44
*
5-
* The version of the OpenAPI document: 3.0.0
5+
* The version of the OpenAPI document: 3.0.1
66
* Contact: api@xero.com
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

src/gen/api/filesApi.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Xero Files API
33
* These endpoints are specific to Xero Files API
44
*
5-
* The version of the OpenAPI document: 3.0.0
5+
* The version of the OpenAPI document: 3.0.1
66
* Contact: api@xero.com
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1327,7 +1327,7 @@ export class FilesApi {
13271327
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
13281328
* @param mimeType
13291329
*/
1330-
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; }> {
1330+
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; }> {
13311331
const localVarPath = this.basePath + '/Files';
13321332
let localVarQueryParameters: any = {};
13331333
let localVarHeaderParams: any = (<any>Object).assign({}, this.defaultHeaders);
@@ -1433,7 +1433,7 @@ export class FilesApi {
14331433
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
14341434
* @param mimeType
14351435
*/
1436-
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; }> {
1436+
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; }> {
14371437
const localVarPath = this.basePath + '/Files/{FolderId}'
14381438
.replace('{' + 'FolderId' + '}', encodeURIComponent(String(folderId)));
14391439
let localVarQueryParameters: any = {};

src/gen/api/financeApi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Xero Finance API
33
* 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.
44
*
5-
* The version of the OpenAPI document: 3.0.0
5+
* The version of the OpenAPI document: 3.0.1
66
* Contact: api@xero.com
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

src/gen/api/payrollAUApi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Xero Payroll AU API
33
* This is the Xero Payroll API for orgs in Australia region.
44
*
5-
* The version of the OpenAPI document: 3.0.0
5+
* The version of the OpenAPI document: 3.0.1
66
* Contact: api@xero.com
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

src/gen/api/payrollNZApi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Xero Payroll NZ
33
* This is the Xero Payroll API for orgs in the NZ region.
44
*
5-
* The version of the OpenAPI document: 3.0.0
5+
* The version of the OpenAPI document: 3.0.1
66
* Contact: api@xero.com
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

src/gen/api/payrollUKApi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Xero Payroll UK
33
* This is the Xero Payroll API for orgs in the UK region.
44
*
5-
* The version of the OpenAPI document: 3.0.0
5+
* The version of the OpenAPI document: 3.0.1
66
* Contact: api@xero.com
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

src/gen/api/projectApi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Xero Projects API
33
* This is the Xero Projects API
44
*
5-
* The version of the OpenAPI document: 3.0.0
5+
* The version of the OpenAPI document: 3.0.1
66
* Contact: api@xero.com
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

src/gen/model/accounting/payment.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,10 @@ export class Payment {
9797
* Displays array of validation error messages from the API
9898
*/
9999
'validationErrors'?: Array<ValidationError>;
100+
/**
101+
* Displays array of warning messages from the API
102+
*/
103+
'warnings'?: Array<ValidationError>;
100104

101105
static discriminator: string | undefined = undefined;
102106

@@ -235,6 +239,11 @@ export class Payment {
235239
"name": "validationErrors",
236240
"baseName": "ValidationErrors",
237241
"type": "Array<ValidationError>"
242+
},
243+
{
244+
"name": "warnings",
245+
"baseName": "Warnings",
246+
"type": "Array<ValidationError>"
238247
} ];
239248

240249
static getAttributeTypeMap() {

0 commit comments

Comments
 (0)