- byte[]
+ File
@@ -45838,7 +45640,7 @@
Parameters
"application/octet-stream" : {
"schema" : {
"type" : "string",
- "format" : "byte"
+ "format" : "binary"
}
}
},
diff --git a/src/gen/api/accountingApi.ts b/src/gen/api/accountingApi.ts
index 596f0ea1..950ba781 100644
--- a/src/gen/api/accountingApi.ts
+++ b/src/gen/api/accountingApi.ts
@@ -215,7 +215,7 @@ export class AccountingApi {
* @param body Byte array of file in body of request
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
*/
- public async createAccountAttachmentByFileName (xeroTenantId: string, accountID: string, fileName: string, body: fs.ReadStream | Readable | Buffer , idempotencyKey?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: AxiosResponse; body: Attachments; }> {
+ public async createAccountAttachmentByFileName (xeroTenantId: string, accountID: string, fileName: string, body: RequestFile, idempotencyKey?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: AxiosResponse; body: Attachments; }> {
const localVarPath = this.basePath + '/Accounts/{AccountID}/Attachments/{FileName}'
.replace('{' + 'AccountID' + '}', encodeURIComponent(String(accountID)))
.replace('{' + 'FileName' + '}', encodeURIComponent(String(fileName)));
@@ -260,7 +260,7 @@ export class AccountingApi {
headers: localVarHeaderParams,
url: localVarPath,
responseType: responseTypeOption,
- data: ObjectSerializer.serialize(body, "string"),
+ data: ObjectSerializer.serialize(body, "RequestFile"),
};
let authenticationPromise = Promise.resolve();
@@ -304,7 +304,7 @@ export class AccountingApi {
* @param body Byte array of file in body of request
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
*/
- public async createBankTransactionAttachmentByFileName (xeroTenantId: string, bankTransactionID: string, fileName: string, body: fs.ReadStream | Readable | Buffer , idempotencyKey?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: AxiosResponse; body: Attachments; }> {
+ public async createBankTransactionAttachmentByFileName (xeroTenantId: string, bankTransactionID: string, fileName: string, body: RequestFile, idempotencyKey?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: AxiosResponse; body: Attachments; }> {
const localVarPath = this.basePath + '/BankTransactions/{BankTransactionID}/Attachments/{FileName}'
.replace('{' + 'BankTransactionID' + '}', encodeURIComponent(String(bankTransactionID)))
.replace('{' + 'FileName' + '}', encodeURIComponent(String(fileName)));
@@ -349,7 +349,7 @@ export class AccountingApi {
headers: localVarHeaderParams,
url: localVarPath,
responseType: responseTypeOption,
- data: ObjectSerializer.serialize(body, "string"),
+ data: ObjectSerializer.serialize(body, "RequestFile"),
};
let authenticationPromise = Promise.resolve();
@@ -634,7 +634,7 @@ export class AccountingApi {
* @param body Byte array of file in body of request
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
*/
- public async createBankTransferAttachmentByFileName (xeroTenantId: string, bankTransferID: string, fileName: string, body: fs.ReadStream | Readable | Buffer , idempotencyKey?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: AxiosResponse; body: Attachments; }> {
+ public async createBankTransferAttachmentByFileName (xeroTenantId: string, bankTransferID: string, fileName: string, body: RequestFile, idempotencyKey?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: AxiosResponse; body: Attachments; }> {
const localVarPath = this.basePath + '/BankTransfers/{BankTransferID}/Attachments/{FileName}'
.replace('{' + 'BankTransferID' + '}', encodeURIComponent(String(bankTransferID)))
.replace('{' + 'FileName' + '}', encodeURIComponent(String(fileName)));
@@ -679,7 +679,7 @@ export class AccountingApi {
headers: localVarHeaderParams,
url: localVarPath,
responseType: responseTypeOption,
- data: ObjectSerializer.serialize(body, "string"),
+ data: ObjectSerializer.serialize(body, "RequestFile"),
};
let authenticationPromise = Promise.resolve();
@@ -1048,7 +1048,7 @@ export class AccountingApi {
* @param body Byte array of file in body of request
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
*/
- public async createContactAttachmentByFileName (xeroTenantId: string, contactID: string, fileName: string, body: fs.ReadStream | Readable | Buffer , idempotencyKey?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: AxiosResponse; body: Attachments; }> {
+ public async createContactAttachmentByFileName (xeroTenantId: string, contactID: string, fileName: string, body: RequestFile, idempotencyKey?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: AxiosResponse; body: Attachments; }> {
const localVarPath = this.basePath + '/Contacts/{ContactID}/Attachments/{FileName}'
.replace('{' + 'ContactID' + '}', encodeURIComponent(String(contactID)))
.replace('{' + 'FileName' + '}', encodeURIComponent(String(fileName)));
@@ -1093,7 +1093,7 @@ export class AccountingApi {
headers: localVarHeaderParams,
url: localVarPath,
responseType: responseTypeOption,
- data: ObjectSerializer.serialize(body, "string"),
+ data: ObjectSerializer.serialize(body, "RequestFile"),
};
let authenticationPromise = Promise.resolve();
@@ -1544,7 +1544,7 @@ export class AccountingApi {
* @param includeOnline Allows an attachment to be seen by the end customer within their online invoice
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
*/
- public async createCreditNoteAttachmentByFileName (xeroTenantId: string, creditNoteID: string, fileName: string, body: fs.ReadStream | Readable | Buffer , includeOnline?: boolean, idempotencyKey?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: AxiosResponse; body: Attachments; }> {
+ public async createCreditNoteAttachmentByFileName (xeroTenantId: string, creditNoteID: string, fileName: string, body: RequestFile, includeOnline?: boolean, idempotencyKey?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: AxiosResponse; body: Attachments; }> {
const localVarPath = this.basePath + '/CreditNotes/{CreditNoteID}/Attachments/{FileName}'
.replace('{' + 'CreditNoteID' + '}', encodeURIComponent(String(creditNoteID)))
.replace('{' + 'FileName' + '}', encodeURIComponent(String(fileName)));
@@ -1593,7 +1593,7 @@ export class AccountingApi {
headers: localVarHeaderParams,
url: localVarPath,
responseType: responseTypeOption,
- data: ObjectSerializer.serialize(body, "string"),
+ data: ObjectSerializer.serialize(body, "RequestFile"),
};
let authenticationPromise = Promise.resolve();
@@ -2117,7 +2117,7 @@ export class AccountingApi {
* @param includeOnline Allows an attachment to be seen by the end customer within their online invoice
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
*/
- public async createInvoiceAttachmentByFileName (xeroTenantId: string, invoiceID: string, fileName: string, body: fs.ReadStream | Readable | Buffer , includeOnline?: boolean, idempotencyKey?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: AxiosResponse; body: Attachments; }> {
+ public async createInvoiceAttachmentByFileName (xeroTenantId: string, invoiceID: string, fileName: string, body: RequestFile, includeOnline?: boolean, idempotencyKey?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: AxiosResponse; body: Attachments; }> {
const localVarPath = this.basePath + '/Invoices/{InvoiceID}/Attachments/{FileName}'
.replace('{' + 'InvoiceID' + '}', encodeURIComponent(String(invoiceID)))
.replace('{' + 'FileName' + '}', encodeURIComponent(String(fileName)));
@@ -2166,7 +2166,7 @@ export class AccountingApi {
headers: localVarHeaderParams,
url: localVarPath,
responseType: responseTypeOption,
- data: ObjectSerializer.serialize(body, "string"),
+ data: ObjectSerializer.serialize(body, "RequestFile"),
};
let authenticationPromise = Promise.resolve();
@@ -2619,7 +2619,7 @@ export class AccountingApi {
* @param body Byte array of file in body of request
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
*/
- public async createManualJournalAttachmentByFileName (xeroTenantId: string, manualJournalID: string, fileName: string, body: fs.ReadStream | Readable | Buffer , idempotencyKey?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: AxiosResponse; body: Attachments; }> {
+ public async createManualJournalAttachmentByFileName (xeroTenantId: string, manualJournalID: string, fileName: string, body: RequestFile, idempotencyKey?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: AxiosResponse; body: Attachments; }> {
const localVarPath = this.basePath + '/ManualJournals/{ManualJournalID}/Attachments/{FileName}'
.replace('{' + 'ManualJournalID' + '}', encodeURIComponent(String(manualJournalID)))
.replace('{' + 'FileName' + '}', encodeURIComponent(String(fileName)));
@@ -2664,7 +2664,7 @@ export class AccountingApi {
headers: localVarHeaderParams,
url: localVarPath,
responseType: responseTypeOption,
- data: ObjectSerializer.serialize(body, "string"),
+ data: ObjectSerializer.serialize(body, "RequestFile"),
};
let authenticationPromise = Promise.resolve();
@@ -3520,7 +3520,7 @@ export class AccountingApi {
* @param body Byte array of file in body of request
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
*/
- public async createPurchaseOrderAttachmentByFileName (xeroTenantId: string, purchaseOrderID: string, fileName: string, body: fs.ReadStream | Readable | Buffer , idempotencyKey?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: AxiosResponse; body: Attachments; }> {
+ public async createPurchaseOrderAttachmentByFileName (xeroTenantId: string, purchaseOrderID: string, fileName: string, body: RequestFile, idempotencyKey?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: AxiosResponse; body: Attachments; }> {
const localVarPath = this.basePath + '/PurchaseOrders/{PurchaseOrderID}/Attachments/{FileName}'
.replace('{' + 'PurchaseOrderID' + '}', encodeURIComponent(String(purchaseOrderID)))
.replace('{' + 'FileName' + '}', encodeURIComponent(String(fileName)));
@@ -3565,7 +3565,7 @@ export class AccountingApi {
headers: localVarHeaderParams,
url: localVarPath,
responseType: responseTypeOption,
- data: ObjectSerializer.serialize(body, "string"),
+ data: ObjectSerializer.serialize(body, "RequestFile"),
};
let authenticationPromise = Promise.resolve();
@@ -3771,7 +3771,7 @@ export class AccountingApi {
* @param body Byte array of file in body of request
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
*/
- public async createQuoteAttachmentByFileName (xeroTenantId: string, quoteID: string, fileName: string, body: fs.ReadStream | Readable | Buffer , idempotencyKey?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: AxiosResponse; body: Attachments; }> {
+ public async createQuoteAttachmentByFileName (xeroTenantId: string, quoteID: string, fileName: string, body: RequestFile, idempotencyKey?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: AxiosResponse; body: Attachments; }> {
const localVarPath = this.basePath + '/Quotes/{QuoteID}/Attachments/{FileName}'
.replace('{' + 'QuoteID' + '}', encodeURIComponent(String(quoteID)))
.replace('{' + 'FileName' + '}', encodeURIComponent(String(fileName)));
@@ -3816,7 +3816,7 @@ export class AccountingApi {
headers: localVarHeaderParams,
url: localVarPath,
responseType: responseTypeOption,
- data: ObjectSerializer.serialize(body, "string"),
+ data: ObjectSerializer.serialize(body, "RequestFile"),
};
let authenticationPromise = Promise.resolve();
@@ -4102,7 +4102,7 @@ export class AccountingApi {
* @param body Byte array of file in body of request
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
*/
- public async createReceiptAttachmentByFileName (xeroTenantId: string, receiptID: string, fileName: string, body: fs.ReadStream | Readable | Buffer , idempotencyKey?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: AxiosResponse; body: Attachments; }> {
+ public async createReceiptAttachmentByFileName (xeroTenantId: string, receiptID: string, fileName: string, body: RequestFile, idempotencyKey?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: AxiosResponse; body: Attachments; }> {
const localVarPath = this.basePath + '/Receipts/{ReceiptID}/Attachments/{FileName}'
.replace('{' + 'ReceiptID' + '}', encodeURIComponent(String(receiptID)))
.replace('{' + 'FileName' + '}', encodeURIComponent(String(fileName)));
@@ -4147,7 +4147,7 @@ export class AccountingApi {
headers: localVarHeaderParams,
url: localVarPath,
responseType: responseTypeOption,
- data: ObjectSerializer.serialize(body, "string"),
+ data: ObjectSerializer.serialize(body, "RequestFile"),
};
let authenticationPromise = Promise.resolve();
@@ -4273,7 +4273,7 @@ export class AccountingApi {
* @param body Byte array of file in body of request
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
*/
- public async createRepeatingInvoiceAttachmentByFileName (xeroTenantId: string, repeatingInvoiceID: string, fileName: string, body: fs.ReadStream | Readable | Buffer , idempotencyKey?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: AxiosResponse; body: Attachments; }> {
+ public async createRepeatingInvoiceAttachmentByFileName (xeroTenantId: string, repeatingInvoiceID: string, fileName: string, body: RequestFile, idempotencyKey?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: AxiosResponse; body: Attachments; }> {
const localVarPath = this.basePath + '/RepeatingInvoices/{RepeatingInvoiceID}/Attachments/{FileName}'
.replace('{' + 'RepeatingInvoiceID' + '}', encodeURIComponent(String(repeatingInvoiceID)))
.replace('{' + 'FileName' + '}', encodeURIComponent(String(fileName)));
@@ -4318,7 +4318,7 @@ export class AccountingApi {
headers: localVarHeaderParams,
url: localVarPath,
responseType: responseTypeOption,
- data: ObjectSerializer.serialize(body, "string"),
+ data: ObjectSerializer.serialize(body, "RequestFile"),
};
let authenticationPromise = Promise.resolve();
@@ -16274,7 +16274,7 @@ export class AccountingApi {
* @param body Byte array of file in body of request
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
*/
- public async updateAccountAttachmentByFileName (xeroTenantId: string, accountID: string, fileName: string, body: fs.ReadStream | Readable | Buffer , idempotencyKey?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: AxiosResponse; body: Attachments; }> {
+ public async updateAccountAttachmentByFileName (xeroTenantId: string, accountID: string, fileName: string, body: RequestFile, idempotencyKey?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: AxiosResponse; body: Attachments; }> {
const localVarPath = this.basePath + '/Accounts/{AccountID}/Attachments/{FileName}'
.replace('{' + 'AccountID' + '}', encodeURIComponent(String(accountID)))
.replace('{' + 'FileName' + '}', encodeURIComponent(String(fileName)));
@@ -16319,7 +16319,7 @@ export class AccountingApi {
headers: localVarHeaderParams,
url: localVarPath,
responseType: responseTypeOption,
- data: ObjectSerializer.serialize(body, "string"),
+ data: ObjectSerializer.serialize(body, "RequestFile"),
};
let authenticationPromise = Promise.resolve();
@@ -16450,7 +16450,7 @@ export class AccountingApi {
* @param body Byte array of file in body of request
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
*/
- public async updateBankTransactionAttachmentByFileName (xeroTenantId: string, bankTransactionID: string, fileName: string, body: fs.ReadStream | Readable | Buffer , idempotencyKey?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: AxiosResponse; body: Attachments; }> {
+ public async updateBankTransactionAttachmentByFileName (xeroTenantId: string, bankTransactionID: string, fileName: string, body: RequestFile, idempotencyKey?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: AxiosResponse; body: Attachments; }> {
const localVarPath = this.basePath + '/BankTransactions/{BankTransactionID}/Attachments/{FileName}'
.replace('{' + 'BankTransactionID' + '}', encodeURIComponent(String(bankTransactionID)))
.replace('{' + 'FileName' + '}', encodeURIComponent(String(fileName)));
@@ -16495,7 +16495,7 @@ export class AccountingApi {
headers: localVarHeaderParams,
url: localVarPath,
responseType: responseTypeOption,
- data: ObjectSerializer.serialize(body, "string"),
+ data: ObjectSerializer.serialize(body, "RequestFile"),
};
let authenticationPromise = Promise.resolve();
@@ -16538,7 +16538,7 @@ export class AccountingApi {
* @param body Byte array of file in body of request
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
*/
- public async updateBankTransferAttachmentByFileName (xeroTenantId: string, bankTransferID: string, fileName: string, body: fs.ReadStream | Readable | Buffer , idempotencyKey?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: AxiosResponse; body: Attachments; }> {
+ public async updateBankTransferAttachmentByFileName (xeroTenantId: string, bankTransferID: string, fileName: string, body: RequestFile, idempotencyKey?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: AxiosResponse; body: Attachments; }> {
const localVarPath = this.basePath + '/BankTransfers/{BankTransferID}/Attachments/{FileName}'
.replace('{' + 'BankTransferID' + '}', encodeURIComponent(String(bankTransferID)))
.replace('{' + 'FileName' + '}', encodeURIComponent(String(fileName)));
@@ -16583,7 +16583,7 @@ export class AccountingApi {
headers: localVarHeaderParams,
url: localVarPath,
responseType: responseTypeOption,
- data: ObjectSerializer.serialize(body, "string"),
+ data: ObjectSerializer.serialize(body, "RequestFile"),
};
let authenticationPromise = Promise.resolve();
@@ -16708,7 +16708,7 @@ export class AccountingApi {
* @param body Byte array of file in body of request
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
*/
- public async updateContactAttachmentByFileName (xeroTenantId: string, contactID: string, fileName: string, body: fs.ReadStream | Readable | Buffer , idempotencyKey?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: AxiosResponse; body: Attachments; }> {
+ public async updateContactAttachmentByFileName (xeroTenantId: string, contactID: string, fileName: string, body: RequestFile, idempotencyKey?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: AxiosResponse; body: Attachments; }> {
const localVarPath = this.basePath + '/Contacts/{ContactID}/Attachments/{FileName}'
.replace('{' + 'ContactID' + '}', encodeURIComponent(String(contactID)))
.replace('{' + 'FileName' + '}', encodeURIComponent(String(fileName)));
@@ -16753,7 +16753,7 @@ export class AccountingApi {
headers: localVarHeaderParams,
url: localVarPath,
responseType: responseTypeOption,
- data: ObjectSerializer.serialize(body, "string"),
+ data: ObjectSerializer.serialize(body, "RequestFile"),
};
let authenticationPromise = Promise.resolve();
@@ -16966,7 +16966,7 @@ export class AccountingApi {
* @param body Byte array of file in body of request
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
*/
- public async updateCreditNoteAttachmentByFileName (xeroTenantId: string, creditNoteID: string, fileName: string, body: fs.ReadStream | Readable | Buffer , idempotencyKey?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: AxiosResponse; body: Attachments; }> {
+ public async updateCreditNoteAttachmentByFileName (xeroTenantId: string, creditNoteID: string, fileName: string, body: RequestFile, idempotencyKey?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: AxiosResponse; body: Attachments; }> {
const localVarPath = this.basePath + '/CreditNotes/{CreditNoteID}/Attachments/{FileName}'
.replace('{' + 'CreditNoteID' + '}', encodeURIComponent(String(creditNoteID)))
.replace('{' + 'FileName' + '}', encodeURIComponent(String(fileName)));
@@ -17011,7 +17011,7 @@ export class AccountingApi {
headers: localVarHeaderParams,
url: localVarPath,
responseType: responseTypeOption,
- data: ObjectSerializer.serialize(body, "string"),
+ data: ObjectSerializer.serialize(body, "RequestFile"),
};
let authenticationPromise = Promise.resolve();
@@ -17224,7 +17224,7 @@ export class AccountingApi {
* @param body Byte array of file in body of request
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
*/
- public async updateInvoiceAttachmentByFileName (xeroTenantId: string, invoiceID: string, fileName: string, body: fs.ReadStream | Readable | Buffer , idempotencyKey?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: AxiosResponse; body: Attachments; }> {
+ public async updateInvoiceAttachmentByFileName (xeroTenantId: string, invoiceID: string, fileName: string, body: RequestFile, idempotencyKey?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: AxiosResponse; body: Attachments; }> {
const localVarPath = this.basePath + '/Invoices/{InvoiceID}/Attachments/{FileName}'
.replace('{' + 'InvoiceID' + '}', encodeURIComponent(String(invoiceID)))
.replace('{' + 'FileName' + '}', encodeURIComponent(String(fileName)));
@@ -17269,7 +17269,7 @@ export class AccountingApi {
headers: localVarHeaderParams,
url: localVarPath,
responseType: responseTypeOption,
- data: ObjectSerializer.serialize(body, "string"),
+ data: ObjectSerializer.serialize(body, "RequestFile"),
};
let authenticationPromise = Promise.resolve();
@@ -17564,7 +17564,7 @@ export class AccountingApi {
* @param body Byte array of file in body of request
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
*/
- public async updateManualJournalAttachmentByFileName (xeroTenantId: string, manualJournalID: string, fileName: string, body: fs.ReadStream | Readable | Buffer , idempotencyKey?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: AxiosResponse; body: Attachments; }> {
+ public async updateManualJournalAttachmentByFileName (xeroTenantId: string, manualJournalID: string, fileName: string, body: RequestFile, idempotencyKey?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: AxiosResponse; body: Attachments; }> {
const localVarPath = this.basePath + '/ManualJournals/{ManualJournalID}/Attachments/{FileName}'
.replace('{' + 'ManualJournalID' + '}', encodeURIComponent(String(manualJournalID)))
.replace('{' + 'FileName' + '}', encodeURIComponent(String(fileName)));
@@ -17609,7 +17609,7 @@ export class AccountingApi {
headers: localVarHeaderParams,
url: localVarPath,
responseType: responseTypeOption,
- data: ObjectSerializer.serialize(body, "string"),
+ data: ObjectSerializer.serialize(body, "RequestFile"),
};
let authenticationPromise = Promise.resolve();
@@ -18555,7 +18555,7 @@ export class AccountingApi {
* @param body Byte array of file in body of request
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
*/
- public async updatePurchaseOrderAttachmentByFileName (xeroTenantId: string, purchaseOrderID: string, fileName: string, body: fs.ReadStream | Readable | Buffer , idempotencyKey?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: AxiosResponse; body: Attachments; }> {
+ public async updatePurchaseOrderAttachmentByFileName (xeroTenantId: string, purchaseOrderID: string, fileName: string, body: RequestFile, idempotencyKey?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: AxiosResponse; body: Attachments; }> {
const localVarPath = this.basePath + '/PurchaseOrders/{PurchaseOrderID}/Attachments/{FileName}'
.replace('{' + 'PurchaseOrderID' + '}', encodeURIComponent(String(purchaseOrderID)))
.replace('{' + 'FileName' + '}', encodeURIComponent(String(fileName)));
@@ -18600,7 +18600,7 @@ export class AccountingApi {
headers: localVarHeaderParams,
url: localVarPath,
responseType: responseTypeOption,
- data: ObjectSerializer.serialize(body, "string"),
+ data: ObjectSerializer.serialize(body, "RequestFile"),
};
let authenticationPromise = Promise.resolve();
@@ -18726,7 +18726,7 @@ export class AccountingApi {
* @param body Byte array of file in body of request
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
*/
- public async updateQuoteAttachmentByFileName (xeroTenantId: string, quoteID: string, fileName: string, body: fs.ReadStream | Readable | Buffer , idempotencyKey?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: AxiosResponse; body: Attachments; }> {
+ public async updateQuoteAttachmentByFileName (xeroTenantId: string, quoteID: string, fileName: string, body: RequestFile, idempotencyKey?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: AxiosResponse; body: Attachments; }> {
const localVarPath = this.basePath + '/Quotes/{QuoteID}/Attachments/{FileName}'
.replace('{' + 'QuoteID' + '}', encodeURIComponent(String(quoteID)))
.replace('{' + 'FileName' + '}', encodeURIComponent(String(fileName)));
@@ -18771,7 +18771,7 @@ export class AccountingApi {
headers: localVarHeaderParams,
url: localVarPath,
responseType: responseTypeOption,
- data: ObjectSerializer.serialize(body, "string"),
+ data: ObjectSerializer.serialize(body, "RequestFile"),
};
let authenticationPromise = Promise.resolve();
@@ -18902,7 +18902,7 @@ export class AccountingApi {
* @param body Byte array of file in body of request
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
*/
- public async updateReceiptAttachmentByFileName (xeroTenantId: string, receiptID: string, fileName: string, body: fs.ReadStream | Readable | Buffer , idempotencyKey?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: AxiosResponse; body: Attachments; }> {
+ public async updateReceiptAttachmentByFileName (xeroTenantId: string, receiptID: string, fileName: string, body: RequestFile, idempotencyKey?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: AxiosResponse; body: Attachments; }> {
const localVarPath = this.basePath + '/Receipts/{ReceiptID}/Attachments/{FileName}'
.replace('{' + 'ReceiptID' + '}', encodeURIComponent(String(receiptID)))
.replace('{' + 'FileName' + '}', encodeURIComponent(String(fileName)));
@@ -18947,7 +18947,7 @@ export class AccountingApi {
headers: localVarHeaderParams,
url: localVarPath,
responseType: responseTypeOption,
- data: ObjectSerializer.serialize(body, "string"),
+ data: ObjectSerializer.serialize(body, "RequestFile"),
};
let authenticationPromise = Promise.resolve();
@@ -19073,7 +19073,7 @@ export class AccountingApi {
* @param body Byte array of file in body of request
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
*/
- public async updateRepeatingInvoiceAttachmentByFileName (xeroTenantId: string, repeatingInvoiceID: string, fileName: string, body: fs.ReadStream | Readable | Buffer , idempotencyKey?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: AxiosResponse; body: Attachments; }> {
+ public async updateRepeatingInvoiceAttachmentByFileName (xeroTenantId: string, repeatingInvoiceID: string, fileName: string, body: RequestFile, idempotencyKey?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: AxiosResponse; body: Attachments; }> {
const localVarPath = this.basePath + '/RepeatingInvoices/{RepeatingInvoiceID}/Attachments/{FileName}'
.replace('{' + 'RepeatingInvoiceID' + '}', encodeURIComponent(String(repeatingInvoiceID)))
.replace('{' + 'FileName' + '}', encodeURIComponent(String(fileName)));
@@ -19118,7 +19118,7 @@ export class AccountingApi {
headers: localVarHeaderParams,
url: localVarPath,
responseType: responseTypeOption,
- data: ObjectSerializer.serialize(body, "string"),
+ data: ObjectSerializer.serialize(body, "RequestFile"),
};
let authenticationPromise = Promise.resolve();