From 4b34a22312d280a9e2b125610a9ec9b8216f7f3d Mon Sep 17 00:00:00 2001 From: Vignesh Kennadi Date: Mon, 28 Oct 2024 17:27:42 +0530 Subject: [PATCH] Replaced byte by Binary (#560) * Replaced byte by Binary * consume the IO Stream directly instead of considering as byte[] --------- Co-authored-by: Vignesh Kennadi --- Xero.NetStandard.OAuth2/Api/AccountingApi.cs | 176 +++++++++---------- Xero.NetStandard.OAuth2/Client/ApiClient.cs | 3 +- docs/accounting/index.html | 110 +++++------- 3 files changed, 133 insertions(+), 156 deletions(-) diff --git a/Xero.NetStandard.OAuth2/Api/AccountingApi.cs b/Xero.NetStandard.OAuth2/Api/AccountingApi.cs index 0f5664f0..e5c98bc3 100644 --- a/Xero.NetStandard.OAuth2/Api/AccountingApi.cs +++ b/Xero.NetStandard.OAuth2/Api/AccountingApi.cs @@ -74,7 +74,7 @@ public interface IAccountingApiAsync : IApiAccessor /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of Attachments - System.Threading.Tasks.Task CreateAccountAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid accountID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default); + System.Threading.Tasks.Task CreateAccountAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid accountID, string fileName, System.IO.Stream body, string idempotencyKey = null, CancellationToken cancellationToken = default); /// /// Creates an attachment on a specific account @@ -91,7 +91,7 @@ public interface IAccountingApiAsync : IApiAccessor /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of ApiResponse (Attachments) - System.Threading.Tasks.Task> CreateAccountAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid accountID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default); + System.Threading.Tasks.Task> CreateAccountAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid accountID, string fileName, System.IO.Stream body, string idempotencyKey = null, CancellationToken cancellationToken = default); /// /// Creates an attachment for a specific bank transaction by filename /// @@ -107,7 +107,7 @@ public interface IAccountingApiAsync : IApiAccessor /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of Attachments - System.Threading.Tasks.Task CreateBankTransactionAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid bankTransactionID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default); + System.Threading.Tasks.Task CreateBankTransactionAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid bankTransactionID, string fileName, System.IO.Stream body, string idempotencyKey = null, CancellationToken cancellationToken = default); /// /// Creates an attachment for a specific bank transaction by filename @@ -124,7 +124,7 @@ public interface IAccountingApiAsync : IApiAccessor /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of ApiResponse (Attachments) - System.Threading.Tasks.Task> CreateBankTransactionAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid bankTransactionID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default); + System.Threading.Tasks.Task> CreateBankTransactionAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid bankTransactionID, string fileName, System.IO.Stream body, string idempotencyKey = null, CancellationToken cancellationToken = default); /// /// Creates a history record for a specific bank transactions /// @@ -233,7 +233,7 @@ public interface IAccountingApiAsync : IApiAccessor /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of Attachments - System.Threading.Tasks.Task CreateBankTransferAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid bankTransferID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default); + System.Threading.Tasks.Task CreateBankTransferAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid bankTransferID, string fileName, System.IO.Stream body, string idempotencyKey = null, CancellationToken cancellationToken = default); /// /// @@ -250,7 +250,7 @@ public interface IAccountingApiAsync : IApiAccessor /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of ApiResponse (Attachments) - System.Threading.Tasks.Task> CreateBankTransferAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid bankTransferID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default); + System.Threading.Tasks.Task> CreateBankTransferAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid bankTransferID, string fileName, System.IO.Stream body, string idempotencyKey = null, CancellationToken cancellationToken = default); /// /// Creates a history record for a specific bank transfer /// @@ -390,7 +390,7 @@ public interface IAccountingApiAsync : IApiAccessor /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of Attachments - System.Threading.Tasks.Task CreateContactAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid contactID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default); + System.Threading.Tasks.Task CreateContactAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid contactID, string fileName, System.IO.Stream body, string idempotencyKey = null, CancellationToken cancellationToken = default); /// /// @@ -407,7 +407,7 @@ public interface IAccountingApiAsync : IApiAccessor /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of ApiResponse (Attachments) - System.Threading.Tasks.Task> CreateContactAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid contactID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default); + System.Threading.Tasks.Task> CreateContactAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid contactID, string fileName, System.IO.Stream body, string idempotencyKey = null, CancellationToken cancellationToken = default); /// /// Creates a contact group /// @@ -579,7 +579,7 @@ public interface IAccountingApiAsync : IApiAccessor /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of Attachments - System.Threading.Tasks.Task CreateCreditNoteAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid creditNoteID, string fileName, byte[] body, bool? includeOnline = null, string idempotencyKey = null, CancellationToken cancellationToken = default); + System.Threading.Tasks.Task CreateCreditNoteAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid creditNoteID, string fileName, System.IO.Stream body, bool? includeOnline = null, string idempotencyKey = null, CancellationToken cancellationToken = default); /// /// Creates an attachment for a specific credit note @@ -597,7 +597,7 @@ public interface IAccountingApiAsync : IApiAccessor /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of ApiResponse (Attachments) - System.Threading.Tasks.Task> CreateCreditNoteAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid creditNoteID, string fileName, byte[] body, bool? includeOnline = null, string idempotencyKey = null, CancellationToken cancellationToken = default); + System.Threading.Tasks.Task> CreateCreditNoteAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid creditNoteID, string fileName, System.IO.Stream body, bool? includeOnline = null, string idempotencyKey = null, CancellationToken cancellationToken = default); /// /// Retrieves history records of a specific credit note /// @@ -798,7 +798,7 @@ public interface IAccountingApiAsync : IApiAccessor /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of Attachments - System.Threading.Tasks.Task CreateInvoiceAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid invoiceID, string fileName, byte[] body, bool? includeOnline = null, string idempotencyKey = null, CancellationToken cancellationToken = default); + System.Threading.Tasks.Task CreateInvoiceAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid invoiceID, string fileName, System.IO.Stream body, bool? includeOnline = null, string idempotencyKey = null, CancellationToken cancellationToken = default); /// /// Creates an attachment for a specific invoice or purchase bill by filename @@ -816,7 +816,7 @@ public interface IAccountingApiAsync : IApiAccessor /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of ApiResponse (Attachments) - System.Threading.Tasks.Task> CreateInvoiceAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid invoiceID, string fileName, byte[] body, bool? includeOnline = null, string idempotencyKey = null, CancellationToken cancellationToken = default); + System.Threading.Tasks.Task> CreateInvoiceAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid invoiceID, string fileName, System.IO.Stream body, bool? includeOnline = null, string idempotencyKey = null, CancellationToken cancellationToken = default); /// /// Creates a history record for a specific invoice /// @@ -989,7 +989,7 @@ public interface IAccountingApiAsync : IApiAccessor /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of Attachments - System.Threading.Tasks.Task CreateManualJournalAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid manualJournalID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default); + System.Threading.Tasks.Task CreateManualJournalAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid manualJournalID, string fileName, System.IO.Stream body, string idempotencyKey = null, CancellationToken cancellationToken = default); /// /// Creates a specific attachment for a specific manual journal by file name @@ -1006,7 +1006,7 @@ public interface IAccountingApiAsync : IApiAccessor /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of ApiResponse (Attachments) - System.Threading.Tasks.Task> CreateManualJournalAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid manualJournalID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default); + System.Threading.Tasks.Task> CreateManualJournalAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid manualJournalID, string fileName, System.IO.Stream body, string idempotencyKey = null, CancellationToken cancellationToken = default); /// /// Creates a history record for a specific manual journal /// @@ -1332,7 +1332,7 @@ public interface IAccountingApiAsync : IApiAccessor /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of Attachments - System.Threading.Tasks.Task CreatePurchaseOrderAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid purchaseOrderID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default); + System.Threading.Tasks.Task CreatePurchaseOrderAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid purchaseOrderID, string fileName, System.IO.Stream body, string idempotencyKey = null, CancellationToken cancellationToken = default); /// /// Creates attachment for a specific purchase order @@ -1349,7 +1349,7 @@ public interface IAccountingApiAsync : IApiAccessor /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of ApiResponse (Attachments) - System.Threading.Tasks.Task> CreatePurchaseOrderAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid purchaseOrderID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default); + System.Threading.Tasks.Task> CreatePurchaseOrderAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid purchaseOrderID, string fileName, System.IO.Stream body, string idempotencyKey = null, CancellationToken cancellationToken = default); /// /// Creates a history record for a specific purchase orders /// @@ -1427,7 +1427,7 @@ public interface IAccountingApiAsync : IApiAccessor /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of Attachments - System.Threading.Tasks.Task CreateQuoteAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid quoteID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default); + System.Threading.Tasks.Task CreateQuoteAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid quoteID, string fileName, System.IO.Stream body, string idempotencyKey = null, CancellationToken cancellationToken = default); /// /// Creates attachment for a specific quote @@ -1444,7 +1444,7 @@ public interface IAccountingApiAsync : IApiAccessor /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of ApiResponse (Attachments) - System.Threading.Tasks.Task> CreateQuoteAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid quoteID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default); + System.Threading.Tasks.Task> CreateQuoteAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid quoteID, string fileName, System.IO.Stream body, string idempotencyKey = null, CancellationToken cancellationToken = default); /// /// Creates a history record for a specific quote /// @@ -1553,7 +1553,7 @@ public interface IAccountingApiAsync : IApiAccessor /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of Attachments - System.Threading.Tasks.Task CreateReceiptAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid receiptID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default); + System.Threading.Tasks.Task CreateReceiptAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid receiptID, string fileName, System.IO.Stream body, string idempotencyKey = null, CancellationToken cancellationToken = default); /// /// Creates an attachment on a specific expense claim receipts by file name @@ -1570,7 +1570,7 @@ public interface IAccountingApiAsync : IApiAccessor /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of ApiResponse (Attachments) - System.Threading.Tasks.Task> CreateReceiptAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid receiptID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default); + System.Threading.Tasks.Task> CreateReceiptAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid receiptID, string fileName, System.IO.Stream body, string idempotencyKey = null, CancellationToken cancellationToken = default); /// /// Creates a history record for a specific receipt /// @@ -1617,7 +1617,7 @@ public interface IAccountingApiAsync : IApiAccessor /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of Attachments - System.Threading.Tasks.Task CreateRepeatingInvoiceAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid repeatingInvoiceID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default); + System.Threading.Tasks.Task CreateRepeatingInvoiceAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid repeatingInvoiceID, string fileName, System.IO.Stream body, string idempotencyKey = null, CancellationToken cancellationToken = default); /// /// Creates an attachment from a specific repeating invoices by file name @@ -1634,7 +1634,7 @@ public interface IAccountingApiAsync : IApiAccessor /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of ApiResponse (Attachments) - System.Threading.Tasks.Task> CreateRepeatingInvoiceAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid repeatingInvoiceID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default); + System.Threading.Tasks.Task> CreateRepeatingInvoiceAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid repeatingInvoiceID, string fileName, System.IO.Stream body, string idempotencyKey = null, CancellationToken cancellationToken = default); /// /// Creates a history record for a specific repeating invoice /// @@ -6053,7 +6053,7 @@ public interface IAccountingApiAsync : IApiAccessor /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of Attachments - System.Threading.Tasks.Task UpdateAccountAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid accountID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default); + System.Threading.Tasks.Task UpdateAccountAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid accountID, string fileName, System.IO.Stream body, string idempotencyKey = null, CancellationToken cancellationToken = default); /// /// Updates attachment on a specific account by filename @@ -6070,7 +6070,7 @@ public interface IAccountingApiAsync : IApiAccessor /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of ApiResponse (Attachments) - System.Threading.Tasks.Task> UpdateAccountAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid accountID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default); + System.Threading.Tasks.Task> UpdateAccountAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid accountID, string fileName, System.IO.Stream body, string idempotencyKey = null, CancellationToken cancellationToken = default); /// /// Updates a single spent or received money transaction /// @@ -6119,7 +6119,7 @@ public interface IAccountingApiAsync : IApiAccessor /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of Attachments - System.Threading.Tasks.Task UpdateBankTransactionAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid bankTransactionID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default); + System.Threading.Tasks.Task UpdateBankTransactionAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid bankTransactionID, string fileName, System.IO.Stream body, string idempotencyKey = null, CancellationToken cancellationToken = default); /// /// Updates a specific attachment from a specific bank transaction by filename @@ -6136,7 +6136,7 @@ public interface IAccountingApiAsync : IApiAccessor /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of ApiResponse (Attachments) - System.Threading.Tasks.Task> UpdateBankTransactionAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid bankTransactionID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default); + System.Threading.Tasks.Task> UpdateBankTransactionAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid bankTransactionID, string fileName, System.IO.Stream body, string idempotencyKey = null, CancellationToken cancellationToken = default); /// /// /// @@ -6152,7 +6152,7 @@ public interface IAccountingApiAsync : IApiAccessor /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of Attachments - System.Threading.Tasks.Task UpdateBankTransferAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid bankTransferID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default); + System.Threading.Tasks.Task UpdateBankTransferAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid bankTransferID, string fileName, System.IO.Stream body, string idempotencyKey = null, CancellationToken cancellationToken = default); /// /// @@ -6169,7 +6169,7 @@ public interface IAccountingApiAsync : IApiAccessor /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of ApiResponse (Attachments) - System.Threading.Tasks.Task> UpdateBankTransferAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid bankTransferID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default); + System.Threading.Tasks.Task> UpdateBankTransferAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid bankTransferID, string fileName, System.IO.Stream body, string idempotencyKey = null, CancellationToken cancellationToken = default); /// /// Updates a specific contact in a Xero organisation /// @@ -6216,7 +6216,7 @@ public interface IAccountingApiAsync : IApiAccessor /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of Attachments - System.Threading.Tasks.Task UpdateContactAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid contactID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default); + System.Threading.Tasks.Task UpdateContactAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid contactID, string fileName, System.IO.Stream body, string idempotencyKey = null, CancellationToken cancellationToken = default); /// /// @@ -6233,7 +6233,7 @@ public interface IAccountingApiAsync : IApiAccessor /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of ApiResponse (Attachments) - System.Threading.Tasks.Task> UpdateContactAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid contactID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default); + System.Threading.Tasks.Task> UpdateContactAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid contactID, string fileName, System.IO.Stream body, string idempotencyKey = null, CancellationToken cancellationToken = default); /// /// Updates a specific contact group /// @@ -6313,7 +6313,7 @@ public interface IAccountingApiAsync : IApiAccessor /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of Attachments - System.Threading.Tasks.Task UpdateCreditNoteAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid creditNoteID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default); + System.Threading.Tasks.Task UpdateCreditNoteAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid creditNoteID, string fileName, System.IO.Stream body, string idempotencyKey = null, CancellationToken cancellationToken = default); /// /// Updates attachments on a specific credit note by file name @@ -6330,7 +6330,7 @@ public interface IAccountingApiAsync : IApiAccessor /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of ApiResponse (Attachments) - System.Threading.Tasks.Task> UpdateCreditNoteAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid creditNoteID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default); + System.Threading.Tasks.Task> UpdateCreditNoteAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid creditNoteID, string fileName, System.IO.Stream body, string idempotencyKey = null, CancellationToken cancellationToken = default); /// /// Updates a specific expense claims /// @@ -6410,7 +6410,7 @@ public interface IAccountingApiAsync : IApiAccessor /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of Attachments - System.Threading.Tasks.Task UpdateInvoiceAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid invoiceID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default); + System.Threading.Tasks.Task UpdateInvoiceAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid invoiceID, string fileName, System.IO.Stream body, string idempotencyKey = null, CancellationToken cancellationToken = default); /// /// Updates an attachment from a specific invoices or purchase bill by filename @@ -6427,7 +6427,7 @@ public interface IAccountingApiAsync : IApiAccessor /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of ApiResponse (Attachments) - System.Threading.Tasks.Task> UpdateInvoiceAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid invoiceID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default); + System.Threading.Tasks.Task> UpdateInvoiceAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid invoiceID, string fileName, System.IO.Stream body, string idempotencyKey = null, CancellationToken cancellationToken = default); /// /// Updates a specific item /// @@ -6538,7 +6538,7 @@ public interface IAccountingApiAsync : IApiAccessor /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of Attachments - System.Threading.Tasks.Task UpdateManualJournalAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid manualJournalID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default); + System.Threading.Tasks.Task UpdateManualJournalAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid manualJournalID, string fileName, System.IO.Stream body, string idempotencyKey = null, CancellationToken cancellationToken = default); /// /// Updates a specific attachment from a specific manual journal by file name @@ -6555,7 +6555,7 @@ public interface IAccountingApiAsync : IApiAccessor /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of ApiResponse (Attachments) - System.Threading.Tasks.Task> UpdateManualJournalAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid manualJournalID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default); + System.Threading.Tasks.Task> UpdateManualJournalAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid manualJournalID, string fileName, System.IO.Stream body, string idempotencyKey = null, CancellationToken cancellationToken = default); /// /// Updates or creates one or more spent or received money transaction /// @@ -6920,7 +6920,7 @@ public interface IAccountingApiAsync : IApiAccessor /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of Attachments - System.Threading.Tasks.Task UpdatePurchaseOrderAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid purchaseOrderID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default); + System.Threading.Tasks.Task UpdatePurchaseOrderAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid purchaseOrderID, string fileName, System.IO.Stream body, string idempotencyKey = null, CancellationToken cancellationToken = default); /// /// Updates a specific attachment for a specific purchase order by filename @@ -6937,7 +6937,7 @@ public interface IAccountingApiAsync : IApiAccessor /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of ApiResponse (Attachments) - System.Threading.Tasks.Task> UpdatePurchaseOrderAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid purchaseOrderID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default); + System.Threading.Tasks.Task> UpdatePurchaseOrderAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid purchaseOrderID, string fileName, System.IO.Stream body, string idempotencyKey = null, CancellationToken cancellationToken = default); /// /// Updates a specific quote /// @@ -6984,7 +6984,7 @@ public interface IAccountingApiAsync : IApiAccessor /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of Attachments - System.Threading.Tasks.Task UpdateQuoteAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid quoteID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default); + System.Threading.Tasks.Task UpdateQuoteAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid quoteID, string fileName, System.IO.Stream body, string idempotencyKey = null, CancellationToken cancellationToken = default); /// /// Updates a specific attachment from a specific quote by filename @@ -7001,7 +7001,7 @@ public interface IAccountingApiAsync : IApiAccessor /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of ApiResponse (Attachments) - System.Threading.Tasks.Task> UpdateQuoteAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid quoteID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default); + System.Threading.Tasks.Task> UpdateQuoteAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid quoteID, string fileName, System.IO.Stream body, string idempotencyKey = null, CancellationToken cancellationToken = default); /// /// Updates a specific draft expense claim receipts /// @@ -7050,7 +7050,7 @@ public interface IAccountingApiAsync : IApiAccessor /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of Attachments - System.Threading.Tasks.Task UpdateReceiptAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid receiptID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default); + System.Threading.Tasks.Task UpdateReceiptAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid receiptID, string fileName, System.IO.Stream body, string idempotencyKey = null, CancellationToken cancellationToken = default); /// /// Updates a specific attachment on a specific expense claim receipts by file name @@ -7067,7 +7067,7 @@ public interface IAccountingApiAsync : IApiAccessor /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of ApiResponse (Attachments) - System.Threading.Tasks.Task> UpdateReceiptAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid receiptID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default); + System.Threading.Tasks.Task> UpdateReceiptAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid receiptID, string fileName, System.IO.Stream body, string idempotencyKey = null, CancellationToken cancellationToken = default); /// /// Deletes a specific repeating invoice template /// @@ -7114,7 +7114,7 @@ public interface IAccountingApiAsync : IApiAccessor /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of Attachments - System.Threading.Tasks.Task UpdateRepeatingInvoiceAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid repeatingInvoiceID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default); + System.Threading.Tasks.Task UpdateRepeatingInvoiceAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid repeatingInvoiceID, string fileName, System.IO.Stream body, string idempotencyKey = null, CancellationToken cancellationToken = default); /// /// Updates a specific attachment from a specific repeating invoices by file name @@ -7131,7 +7131,7 @@ public interface IAccountingApiAsync : IApiAccessor /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of ApiResponse (Attachments) - System.Threading.Tasks.Task> UpdateRepeatingInvoiceAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid repeatingInvoiceID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default); + System.Threading.Tasks.Task> UpdateRepeatingInvoiceAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid repeatingInvoiceID, string fileName, System.IO.Stream body, string idempotencyKey = null, CancellationToken cancellationToken = default); /// /// Updates tax rates /// @@ -7440,7 +7440,7 @@ public async System.Threading.Tasks.Task CreateAccountAsync (string ac /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of Attachments - public async System.Threading.Tasks.Task CreateAccountAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid accountID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task CreateAccountAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid accountID, string fileName, System.IO.Stream body, string idempotencyKey = null, CancellationToken cancellationToken = default) { Xero.NetStandard.OAuth2.Client.ApiResponse localVarResponse = await CreateAccountAttachmentByFileNameAsyncWithHttpInfo(accessToken, xeroTenantId, accountID, fileName, body, idempotencyKey, cancellationToken); return localVarResponse.Data; @@ -7459,7 +7459,7 @@ public async System.Threading.Tasks.Task CreateAccountAttachmentByF /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of ApiResponse (Attachments) - public async System.Threading.Tasks.Task> CreateAccountAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid accountID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task> CreateAccountAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid accountID, string fileName, System.IO.Stream body, string idempotencyKey = null, CancellationToken cancellationToken = default) { // verify the required parameter 'xeroTenantId' is set if (xeroTenantId == null) @@ -7539,7 +7539,7 @@ public async System.Threading.Tasks.Task CreateAccountAttachmentByF /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of Attachments - public async System.Threading.Tasks.Task CreateBankTransactionAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid bankTransactionID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task CreateBankTransactionAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid bankTransactionID, string fileName, System.IO.Stream body, string idempotencyKey = null, CancellationToken cancellationToken = default) { Xero.NetStandard.OAuth2.Client.ApiResponse localVarResponse = await CreateBankTransactionAttachmentByFileNameAsyncWithHttpInfo(accessToken, xeroTenantId, bankTransactionID, fileName, body, idempotencyKey, cancellationToken); return localVarResponse.Data; @@ -7558,7 +7558,7 @@ public async System.Threading.Tasks.Task CreateBankTransactionAttac /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of ApiResponse (Attachments) - public async System.Threading.Tasks.Task> CreateBankTransactionAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid bankTransactionID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task> CreateBankTransactionAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid bankTransactionID, string fileName, System.IO.Stream body, string idempotencyKey = null, CancellationToken cancellationToken = default) { // verify the required parameter 'xeroTenantId' is set if (xeroTenantId == null) @@ -7916,7 +7916,7 @@ public async System.Threading.Tasks.Task CreateBankTransferAsync /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of Attachments - public async System.Threading.Tasks.Task CreateBankTransferAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid bankTransferID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task CreateBankTransferAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid bankTransferID, string fileName, System.IO.Stream body, string idempotencyKey = null, CancellationToken cancellationToken = default) { Xero.NetStandard.OAuth2.Client.ApiResponse localVarResponse = await CreateBankTransferAttachmentByFileNameAsyncWithHttpInfo(accessToken, xeroTenantId, bankTransferID, fileName, body, idempotencyKey, cancellationToken); return localVarResponse.Data; @@ -7935,7 +7935,7 @@ public async System.Threading.Tasks.Task CreateBankTransferAttachme /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of ApiResponse (Attachments) - public async System.Threading.Tasks.Task> CreateBankTransferAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid bankTransferID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task> CreateBankTransferAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid bankTransferID, string fileName, System.IO.Stream body, string idempotencyKey = null, CancellationToken cancellationToken = default) { // verify the required parameter 'xeroTenantId' is set if (xeroTenantId == null) @@ -8379,7 +8379,7 @@ public async System.Threading.Tasks.Task CreateBrandingThemePay /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of Attachments - public async System.Threading.Tasks.Task CreateContactAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid contactID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task CreateContactAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid contactID, string fileName, System.IO.Stream body, string idempotencyKey = null, CancellationToken cancellationToken = default) { Xero.NetStandard.OAuth2.Client.ApiResponse localVarResponse = await CreateContactAttachmentByFileNameAsyncWithHttpInfo(accessToken, xeroTenantId, contactID, fileName, body, idempotencyKey, cancellationToken); return localVarResponse.Data; @@ -8398,7 +8398,7 @@ public async System.Threading.Tasks.Task CreateContactAttachmentByF /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of ApiResponse (Attachments) - public async System.Threading.Tasks.Task> CreateContactAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid contactID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task> CreateContactAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid contactID, string fileName, System.IO.Stream body, string idempotencyKey = null, CancellationToken cancellationToken = default) { // verify the required parameter 'xeroTenantId' is set if (xeroTenantId == null) @@ -8934,7 +8934,7 @@ public async System.Threading.Tasks.Task CreateCreditNoteAllocation /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of Attachments - public async System.Threading.Tasks.Task CreateCreditNoteAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid creditNoteID, string fileName, byte[] body, bool? includeOnline = null, string idempotencyKey = null, CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task CreateCreditNoteAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid creditNoteID, string fileName, System.IO.Stream body, bool? includeOnline = null, string idempotencyKey = null, CancellationToken cancellationToken = default) { Xero.NetStandard.OAuth2.Client.ApiResponse localVarResponse = await CreateCreditNoteAttachmentByFileNameAsyncWithHttpInfo(accessToken, xeroTenantId, creditNoteID, fileName, body, includeOnline, idempotencyKey, cancellationToken); return localVarResponse.Data; @@ -8954,7 +8954,7 @@ public async System.Threading.Tasks.Task CreateCreditNoteAttachment /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of ApiResponse (Attachments) - public async System.Threading.Tasks.Task> CreateCreditNoteAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid creditNoteID, string fileName, byte[] body, bool? includeOnline = null, string idempotencyKey = null, CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task> CreateCreditNoteAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid creditNoteID, string fileName, System.IO.Stream body, bool? includeOnline = null, string idempotencyKey = null, CancellationToken cancellationToken = default) { // verify the required parameter 'xeroTenantId' is set if (xeroTenantId == null) @@ -9584,7 +9584,7 @@ public async System.Threading.Tasks.Task CreateExpenseClaimsAsync /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of Attachments - public async System.Threading.Tasks.Task CreateInvoiceAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid invoiceID, string fileName, byte[] body, bool? includeOnline = null, string idempotencyKey = null, CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task CreateInvoiceAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid invoiceID, string fileName, System.IO.Stream body, bool? includeOnline = null, string idempotencyKey = null, CancellationToken cancellationToken = default) { Xero.NetStandard.OAuth2.Client.ApiResponse localVarResponse = await CreateInvoiceAttachmentByFileNameAsyncWithHttpInfo(accessToken, xeroTenantId, invoiceID, fileName, body, includeOnline, idempotencyKey, cancellationToken); return localVarResponse.Data; @@ -9604,7 +9604,7 @@ public async System.Threading.Tasks.Task CreateInvoiceAttachmentByF /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of ApiResponse (Attachments) - public async System.Threading.Tasks.Task> CreateInvoiceAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid invoiceID, string fileName, byte[] body, bool? includeOnline = null, string idempotencyKey = null, CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task> CreateInvoiceAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid invoiceID, string fileName, System.IO.Stream body, bool? includeOnline = null, string idempotencyKey = null, CancellationToken cancellationToken = default) { // verify the required parameter 'xeroTenantId' is set if (xeroTenantId == null) @@ -10163,7 +10163,7 @@ public async System.Threading.Tasks.Task CreateLinkedTransac /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of Attachments - public async System.Threading.Tasks.Task CreateManualJournalAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid manualJournalID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task CreateManualJournalAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid manualJournalID, string fileName, System.IO.Stream body, string idempotencyKey = null, CancellationToken cancellationToken = default) { Xero.NetStandard.OAuth2.Client.ApiResponse localVarResponse = await CreateManualJournalAttachmentByFileNameAsyncWithHttpInfo(accessToken, xeroTenantId, manualJournalID, fileName, body, idempotencyKey, cancellationToken); return localVarResponse.Data; @@ -10182,7 +10182,7 @@ public async System.Threading.Tasks.Task CreateManualJournalAttachm /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of ApiResponse (Attachments) - public async System.Threading.Tasks.Task> CreateManualJournalAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid manualJournalID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task> CreateManualJournalAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid manualJournalID, string fileName, System.IO.Stream body, string idempotencyKey = null, CancellationToken cancellationToken = default) { // verify the required parameter 'xeroTenantId' is set if (xeroTenantId == null) @@ -11172,7 +11172,7 @@ public async System.Threading.Tasks.Task CreatePrepaymentHistory /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of Attachments - public async System.Threading.Tasks.Task CreatePurchaseOrderAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid purchaseOrderID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task CreatePurchaseOrderAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid purchaseOrderID, string fileName, System.IO.Stream body, string idempotencyKey = null, CancellationToken cancellationToken = default) { Xero.NetStandard.OAuth2.Client.ApiResponse localVarResponse = await CreatePurchaseOrderAttachmentByFileNameAsyncWithHttpInfo(accessToken, xeroTenantId, purchaseOrderID, fileName, body, idempotencyKey, cancellationToken); return localVarResponse.Data; @@ -11191,7 +11191,7 @@ public async System.Threading.Tasks.Task CreatePurchaseOrderAttachm /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of ApiResponse (Attachments) - public async System.Threading.Tasks.Task> CreatePurchaseOrderAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid purchaseOrderID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task> CreatePurchaseOrderAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid purchaseOrderID, string fileName, System.IO.Stream body, string idempotencyKey = null, CancellationToken cancellationToken = default) { // verify the required parameter 'xeroTenantId' is set if (xeroTenantId == null) @@ -11453,7 +11453,7 @@ public async System.Threading.Tasks.Task CreatePurchaseOrdersAsy /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of Attachments - public async System.Threading.Tasks.Task CreateQuoteAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid quoteID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task CreateQuoteAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid quoteID, string fileName, System.IO.Stream body, string idempotencyKey = null, CancellationToken cancellationToken = default) { Xero.NetStandard.OAuth2.Client.ApiResponse localVarResponse = await CreateQuoteAttachmentByFileNameAsyncWithHttpInfo(accessToken, xeroTenantId, quoteID, fileName, body, idempotencyKey, cancellationToken); return localVarResponse.Data; @@ -11472,7 +11472,7 @@ public async System.Threading.Tasks.Task CreateQuoteAttachmentByFil /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of ApiResponse (Attachments) - public async System.Threading.Tasks.Task> CreateQuoteAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid quoteID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task> CreateQuoteAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid quoteID, string fileName, System.IO.Stream body, string idempotencyKey = null, CancellationToken cancellationToken = default) { // verify the required parameter 'xeroTenantId' is set if (xeroTenantId == null) @@ -11830,7 +11830,7 @@ public async System.Threading.Tasks.Task CreateReceiptAsync (string ac /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of Attachments - public async System.Threading.Tasks.Task CreateReceiptAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid receiptID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task CreateReceiptAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid receiptID, string fileName, System.IO.Stream body, string idempotencyKey = null, CancellationToken cancellationToken = default) { Xero.NetStandard.OAuth2.Client.ApiResponse localVarResponse = await CreateReceiptAttachmentByFileNameAsyncWithHttpInfo(accessToken, xeroTenantId, receiptID, fileName, body, idempotencyKey, cancellationToken); return localVarResponse.Data; @@ -11849,7 +11849,7 @@ public async System.Threading.Tasks.Task CreateReceiptAttachmentByF /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of ApiResponse (Attachments) - public async System.Threading.Tasks.Task> CreateReceiptAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid receiptID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task> CreateReceiptAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid receiptID, string fileName, System.IO.Stream body, string idempotencyKey = null, CancellationToken cancellationToken = default) { // verify the required parameter 'xeroTenantId' is set if (xeroTenantId == null) @@ -12020,7 +12020,7 @@ public async System.Threading.Tasks.Task CreateReceiptHistoryAsy /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of Attachments - public async System.Threading.Tasks.Task CreateRepeatingInvoiceAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid repeatingInvoiceID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task CreateRepeatingInvoiceAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid repeatingInvoiceID, string fileName, System.IO.Stream body, string idempotencyKey = null, CancellationToken cancellationToken = default) { Xero.NetStandard.OAuth2.Client.ApiResponse localVarResponse = await CreateRepeatingInvoiceAttachmentByFileNameAsyncWithHttpInfo(accessToken, xeroTenantId, repeatingInvoiceID, fileName, body, idempotencyKey, cancellationToken); return localVarResponse.Data; @@ -12039,7 +12039,7 @@ public async System.Threading.Tasks.Task CreateRepeatingInvoiceAtta /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of ApiResponse (Attachments) - public async System.Threading.Tasks.Task> CreateRepeatingInvoiceAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid repeatingInvoiceID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task> CreateRepeatingInvoiceAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid repeatingInvoiceID, string fileName, System.IO.Stream body, string idempotencyKey = null, CancellationToken cancellationToken = default) { // verify the required parameter 'xeroTenantId' is set if (xeroTenantId == null) @@ -25957,7 +25957,7 @@ public async System.Threading.Tasks.Task UpdateAccountAsync (string ac /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of Attachments - public async System.Threading.Tasks.Task UpdateAccountAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid accountID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task UpdateAccountAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid accountID, string fileName, System.IO.Stream body, string idempotencyKey = null, CancellationToken cancellationToken = default) { Xero.NetStandard.OAuth2.Client.ApiResponse localVarResponse = await UpdateAccountAttachmentByFileNameAsyncWithHttpInfo(accessToken, xeroTenantId, accountID, fileName, body, idempotencyKey, cancellationToken); return localVarResponse.Data; @@ -25976,7 +25976,7 @@ public async System.Threading.Tasks.Task UpdateAccountAttachmentByF /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of ApiResponse (Attachments) - public async System.Threading.Tasks.Task> UpdateAccountAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid accountID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task> UpdateAccountAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid accountID, string fileName, System.IO.Stream body, string idempotencyKey = null, CancellationToken cancellationToken = default) { // verify the required parameter 'xeroTenantId' is set if (xeroTenantId == null) @@ -26160,7 +26160,7 @@ public async System.Threading.Tasks.Task UpdateBankTransaction /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of Attachments - public async System.Threading.Tasks.Task UpdateBankTransactionAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid bankTransactionID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task UpdateBankTransactionAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid bankTransactionID, string fileName, System.IO.Stream body, string idempotencyKey = null, CancellationToken cancellationToken = default) { Xero.NetStandard.OAuth2.Client.ApiResponse localVarResponse = await UpdateBankTransactionAttachmentByFileNameAsyncWithHttpInfo(accessToken, xeroTenantId, bankTransactionID, fileName, body, idempotencyKey, cancellationToken); return localVarResponse.Data; @@ -26179,7 +26179,7 @@ public async System.Threading.Tasks.Task UpdateBankTransactionAttac /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of ApiResponse (Attachments) - public async System.Threading.Tasks.Task> UpdateBankTransactionAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid bankTransactionID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task> UpdateBankTransactionAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid bankTransactionID, string fileName, System.IO.Stream body, string idempotencyKey = null, CancellationToken cancellationToken = default) { // verify the required parameter 'xeroTenantId' is set if (xeroTenantId == null) @@ -26259,7 +26259,7 @@ public async System.Threading.Tasks.Task UpdateBankTransactionAttac /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of Attachments - public async System.Threading.Tasks.Task UpdateBankTransferAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid bankTransferID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task UpdateBankTransferAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid bankTransferID, string fileName, System.IO.Stream body, string idempotencyKey = null, CancellationToken cancellationToken = default) { Xero.NetStandard.OAuth2.Client.ApiResponse localVarResponse = await UpdateBankTransferAttachmentByFileNameAsyncWithHttpInfo(accessToken, xeroTenantId, bankTransferID, fileName, body, idempotencyKey, cancellationToken); return localVarResponse.Data; @@ -26278,7 +26278,7 @@ public async System.Threading.Tasks.Task UpdateBankTransferAttachme /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of ApiResponse (Attachments) - public async System.Threading.Tasks.Task> UpdateBankTransferAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid bankTransferID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task> UpdateBankTransferAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid bankTransferID, string fileName, System.IO.Stream body, string idempotencyKey = null, CancellationToken cancellationToken = default) { // verify the required parameter 'xeroTenantId' is set if (xeroTenantId == null) @@ -26449,7 +26449,7 @@ public async System.Threading.Tasks.Task UpdateContactAsync (string ac /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of Attachments - public async System.Threading.Tasks.Task UpdateContactAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid contactID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task UpdateContactAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid contactID, string fileName, System.IO.Stream body, string idempotencyKey = null, CancellationToken cancellationToken = default) { Xero.NetStandard.OAuth2.Client.ApiResponse localVarResponse = await UpdateContactAttachmentByFileNameAsyncWithHttpInfo(accessToken, xeroTenantId, contactID, fileName, body, idempotencyKey, cancellationToken); return localVarResponse.Data; @@ -26468,7 +26468,7 @@ public async System.Threading.Tasks.Task UpdateContactAttachmentByF /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of ApiResponse (Attachments) - public async System.Threading.Tasks.Task> UpdateContactAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid contactID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task> UpdateContactAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid contactID, string fileName, System.IO.Stream body, string idempotencyKey = null, CancellationToken cancellationToken = default) { // verify the required parameter 'xeroTenantId' is set if (xeroTenantId == null) @@ -26743,7 +26743,7 @@ public async System.Threading.Tasks.Task UpdateCreditNoteAsync (str /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of Attachments - public async System.Threading.Tasks.Task UpdateCreditNoteAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid creditNoteID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task UpdateCreditNoteAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid creditNoteID, string fileName, System.IO.Stream body, string idempotencyKey = null, CancellationToken cancellationToken = default) { Xero.NetStandard.OAuth2.Client.ApiResponse localVarResponse = await UpdateCreditNoteAttachmentByFileNameAsyncWithHttpInfo(accessToken, xeroTenantId, creditNoteID, fileName, body, idempotencyKey, cancellationToken); return localVarResponse.Data; @@ -26762,7 +26762,7 @@ public async System.Threading.Tasks.Task UpdateCreditNoteAttachment /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of ApiResponse (Attachments) - public async System.Threading.Tasks.Task> UpdateCreditNoteAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid creditNoteID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task> UpdateCreditNoteAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid creditNoteID, string fileName, System.IO.Stream body, string idempotencyKey = null, CancellationToken cancellationToken = default) { // verify the required parameter 'xeroTenantId' is set if (xeroTenantId == null) @@ -27037,7 +27037,7 @@ public async System.Threading.Tasks.Task UpdateInvoiceAsync (string ac /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of Attachments - public async System.Threading.Tasks.Task UpdateInvoiceAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid invoiceID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task UpdateInvoiceAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid invoiceID, string fileName, System.IO.Stream body, string idempotencyKey = null, CancellationToken cancellationToken = default) { Xero.NetStandard.OAuth2.Client.ApiResponse localVarResponse = await UpdateInvoiceAttachmentByFileNameAsyncWithHttpInfo(accessToken, xeroTenantId, invoiceID, fileName, body, idempotencyKey, cancellationToken); return localVarResponse.Data; @@ -27056,7 +27056,7 @@ public async System.Threading.Tasks.Task UpdateInvoiceAttachmentByF /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of ApiResponse (Attachments) - public async System.Threading.Tasks.Task> UpdateInvoiceAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid invoiceID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task> UpdateInvoiceAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid invoiceID, string fileName, System.IO.Stream body, string idempotencyKey = null, CancellationToken cancellationToken = default) { // verify the required parameter 'xeroTenantId' is set if (xeroTenantId == null) @@ -27422,7 +27422,7 @@ public async System.Threading.Tasks.Task UpdateManualJournalAsyn /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of Attachments - public async System.Threading.Tasks.Task UpdateManualJournalAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid manualJournalID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task UpdateManualJournalAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid manualJournalID, string fileName, System.IO.Stream body, string idempotencyKey = null, CancellationToken cancellationToken = default) { Xero.NetStandard.OAuth2.Client.ApiResponse localVarResponse = await UpdateManualJournalAttachmentByFileNameAsyncWithHttpInfo(accessToken, xeroTenantId, manualJournalID, fileName, body, idempotencyKey, cancellationToken); return localVarResponse.Data; @@ -27441,7 +27441,7 @@ public async System.Threading.Tasks.Task UpdateManualJournalAttachm /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of ApiResponse (Attachments) - public async System.Threading.Tasks.Task> UpdateManualJournalAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid manualJournalID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task> UpdateManualJournalAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid manualJournalID, string fileName, System.IO.Stream body, string idempotencyKey = null, CancellationToken cancellationToken = default) { // verify the required parameter 'xeroTenantId' is set if (xeroTenantId == null) @@ -28574,7 +28574,7 @@ public async System.Threading.Tasks.Task UpdatePurchaseOrderAsyn /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of Attachments - public async System.Threading.Tasks.Task UpdatePurchaseOrderAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid purchaseOrderID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task UpdatePurchaseOrderAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid purchaseOrderID, string fileName, System.IO.Stream body, string idempotencyKey = null, CancellationToken cancellationToken = default) { Xero.NetStandard.OAuth2.Client.ApiResponse localVarResponse = await UpdatePurchaseOrderAttachmentByFileNameAsyncWithHttpInfo(accessToken, xeroTenantId, purchaseOrderID, fileName, body, idempotencyKey, cancellationToken); return localVarResponse.Data; @@ -28593,7 +28593,7 @@ public async System.Threading.Tasks.Task UpdatePurchaseOrderAttachm /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of ApiResponse (Attachments) - public async System.Threading.Tasks.Task> UpdatePurchaseOrderAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid purchaseOrderID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task> UpdatePurchaseOrderAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid purchaseOrderID, string fileName, System.IO.Stream body, string idempotencyKey = null, CancellationToken cancellationToken = default) { // verify the required parameter 'xeroTenantId' is set if (xeroTenantId == null) @@ -28764,7 +28764,7 @@ public async System.Threading.Tasks.Task UpdateQuoteAsync (string access /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of Attachments - public async System.Threading.Tasks.Task UpdateQuoteAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid quoteID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task UpdateQuoteAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid quoteID, string fileName, System.IO.Stream body, string idempotencyKey = null, CancellationToken cancellationToken = default) { Xero.NetStandard.OAuth2.Client.ApiResponse localVarResponse = await UpdateQuoteAttachmentByFileNameAsyncWithHttpInfo(accessToken, xeroTenantId, quoteID, fileName, body, idempotencyKey, cancellationToken); return localVarResponse.Data; @@ -28783,7 +28783,7 @@ public async System.Threading.Tasks.Task UpdateQuoteAttachmentByFil /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of ApiResponse (Attachments) - public async System.Threading.Tasks.Task> UpdateQuoteAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid quoteID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task> UpdateQuoteAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid quoteID, string fileName, System.IO.Stream body, string idempotencyKey = null, CancellationToken cancellationToken = default) { // verify the required parameter 'xeroTenantId' is set if (xeroTenantId == null) @@ -28967,7 +28967,7 @@ public async System.Threading.Tasks.Task UpdateReceiptAsync (string ac /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of Attachments - public async System.Threading.Tasks.Task UpdateReceiptAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid receiptID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task UpdateReceiptAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid receiptID, string fileName, System.IO.Stream body, string idempotencyKey = null, CancellationToken cancellationToken = default) { Xero.NetStandard.OAuth2.Client.ApiResponse localVarResponse = await UpdateReceiptAttachmentByFileNameAsyncWithHttpInfo(accessToken, xeroTenantId, receiptID, fileName, body, idempotencyKey, cancellationToken); return localVarResponse.Data; @@ -28986,7 +28986,7 @@ public async System.Threading.Tasks.Task UpdateReceiptAttachmentByF /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of ApiResponse (Attachments) - public async System.Threading.Tasks.Task> UpdateReceiptAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid receiptID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task> UpdateReceiptAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid receiptID, string fileName, System.IO.Stream body, string idempotencyKey = null, CancellationToken cancellationToken = default) { // verify the required parameter 'xeroTenantId' is set if (xeroTenantId == null) @@ -29157,7 +29157,7 @@ public async System.Threading.Tasks.Task UpdateRepeatingInvoi /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of Attachments - public async System.Threading.Tasks.Task UpdateRepeatingInvoiceAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid repeatingInvoiceID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task UpdateRepeatingInvoiceAttachmentByFileNameAsync (string accessToken, string xeroTenantId, Guid repeatingInvoiceID, string fileName, System.IO.Stream body, string idempotencyKey = null, CancellationToken cancellationToken = default) { Xero.NetStandard.OAuth2.Client.ApiResponse localVarResponse = await UpdateRepeatingInvoiceAttachmentByFileNameAsyncWithHttpInfo(accessToken, xeroTenantId, repeatingInvoiceID, fileName, body, idempotencyKey, cancellationToken); return localVarResponse.Data; @@ -29176,7 +29176,7 @@ public async System.Threading.Tasks.Task UpdateRepeatingInvoiceAtta /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of ApiResponse (Attachments) - public async System.Threading.Tasks.Task> UpdateRepeatingInvoiceAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid repeatingInvoiceID, string fileName, byte[] body, string idempotencyKey = null, CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task> UpdateRepeatingInvoiceAttachmentByFileNameAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid repeatingInvoiceID, string fileName, System.IO.Stream body, string idempotencyKey = null, CancellationToken cancellationToken = default) { // verify the required parameter 'xeroTenantId' is set if (xeroTenantId == null) diff --git a/Xero.NetStandard.OAuth2/Client/ApiClient.cs b/Xero.NetStandard.OAuth2/Client/ApiClient.cs index 5237fe3d..5146a75a 100644 --- a/Xero.NetStandard.OAuth2/Client/ApiClient.cs +++ b/Xero.NetStandard.OAuth2/Client/ApiClient.cs @@ -401,8 +401,7 @@ private HttpRequestMessage NewRequest( if (options.PathParameters.ContainsKey("FileName")) { contentType = contentType ?? "application/octet-stream"; - var stream = new MemoryStream(options.Data as byte[]); - var streamContent = new StreamContent(stream); + var streamContent = new StreamContent(options.Data as Stream); streamContent.Headers.ContentType = new MediaTypeHeaderValue(contentType); request.Content = streamContent; } diff --git a/docs/accounting/index.html b/docs/accounting/index.html index 8f635769..96e20f43 100644 --- a/docs/accounting/index.html +++ b/docs/accounting/index.html @@ -7276,7 +7276,6 @@

Usage and SDK Samples

var accountID = Guid.Parse("00000000-0000-0000-0000-000000000000"); var fileName = "xero-dev.jpg"; var idempotencyKey = "KEY_VALUE"; - byte[] body = System.IO.File.ReadAllBytes(fileName); try { var result = await apiInstance.CreateAccountAttachmentByFileNameAsync(accessToken, xeroTenantId, accountID, fileName, body, idempotencyKey); @@ -7419,7 +7418,7 @@

Parameters

- byte[] + File
Byte array of file in body of request @@ -7436,7 +7435,7 @@

Parameters

"application/octet-stream" : { "schema" : { "type" : "string", - "format" : "byte" + "format" : "binary" } } }, @@ -7488,7 +7487,6 @@

Usage and SDK Samples

var bankTransactionID = Guid.Parse("00000000-0000-0000-0000-000000000000"); var fileName = "xero-dev.jpg"; var idempotencyKey = "KEY_VALUE"; - byte[] body = System.IO.File.ReadAllBytes(fileName); try { var result = await apiInstance.CreateBankTransactionAttachmentByFileNameAsync(accessToken, xeroTenantId, bankTransactionID, fileName, body, idempotencyKey); @@ -7631,7 +7629,7 @@

Parameters

- byte[] + File
Byte array of file in body of request @@ -7648,7 +7646,7 @@

Parameters

"application/octet-stream" : { "schema" : { "type" : "string", - "format" : "byte" + "format" : "binary" } } }, @@ -8354,7 +8352,6 @@

Usage and SDK Samples

var bankTransferID = Guid.Parse("00000000-0000-0000-0000-000000000000"); var fileName = "xero-dev.jpg"; var idempotencyKey = "KEY_VALUE"; - byte[] body = System.IO.File.ReadAllBytes(fileName); try { var result = await apiInstance.CreateBankTransferAttachmentByFileNameAsync(accessToken, xeroTenantId, bankTransferID, fileName, body, idempotencyKey); @@ -8497,7 +8494,7 @@

Parameters

- byte[] + File
Byte array of file in body of request @@ -8514,7 +8511,7 @@

Parameters

"application/octet-stream" : { "schema" : { "type" : "string", - "format" : "byte" + "format" : "binary" } } }, @@ -9401,7 +9398,6 @@

Usage and SDK Samples

var contactID = Guid.Parse("00000000-0000-0000-0000-000000000000"); var fileName = "xero-dev.jpg"; var idempotencyKey = "KEY_VALUE"; - byte[] body = System.IO.File.ReadAllBytes(fileName); try { var result = await apiInstance.CreateContactAttachmentByFileNameAsync(accessToken, xeroTenantId, contactID, fileName, body, idempotencyKey); @@ -9544,7 +9540,7 @@

Parameters

- byte[] + File
Byte array of file in body of request @@ -9561,7 +9557,7 @@

Parameters

"application/octet-stream" : { "schema" : { "type" : "string", - "format" : "byte" + "format" : "binary" } } }, @@ -10673,7 +10669,6 @@

Usage and SDK Samples

var fileName = "xero-dev.jpg"; var includeOnline = true; var idempotencyKey = "KEY_VALUE"; - byte[] body = System.IO.File.ReadAllBytes(fileName); try { var result = await apiInstance.CreateCreditNoteAttachmentByFileNameAsync(accessToken, xeroTenantId, creditNoteID, fileName, body, includeOnline, idempotencyKey); @@ -10816,7 +10811,7 @@

Parameters

- byte[] + File
Byte array of file in body of request @@ -10833,7 +10828,7 @@

Parameters

"application/octet-stream" : { "schema" : { "type" : "string", - "format" : "byte" + "format" : "binary" } } }, @@ -12092,7 +12087,6 @@

Usage and SDK Samples

var fileName = "xero-dev.jpg"; var includeOnline = true; var idempotencyKey = "KEY_VALUE"; - byte[] body = System.IO.File.ReadAllBytes(fileName); try { var result = await apiInstance.CreateInvoiceAttachmentByFileNameAsync(accessToken, xeroTenantId, invoiceID, fileName, body, includeOnline, idempotencyKey); @@ -12235,7 +12229,7 @@

Parameters

- byte[] + File
Byte array of file in body of request @@ -12252,7 +12246,7 @@

Parameters

"application/octet-stream" : { "schema" : { "type" : "string", - "format" : "byte" + "format" : "binary" } } }, @@ -13373,7 +13367,6 @@

Usage and SDK Samples

var manualJournalID = Guid.Parse("00000000-0000-0000-0000-000000000000"); var fileName = "xero-dev.jpg"; var idempotencyKey = "KEY_VALUE"; - byte[] body = System.IO.File.ReadAllBytes(fileName); try { var result = await apiInstance.CreateManualJournalAttachmentByFileNameAsync(accessToken, xeroTenantId, manualJournalID, fileName, body, idempotencyKey); @@ -13516,7 +13509,7 @@

Parameters

- byte[] + File
Byte array of file in body of request @@ -13533,7 +13526,7 @@

Parameters

"application/octet-stream" : { "schema" : { "type" : "string", - "format" : "byte" + "format" : "binary" } } }, @@ -15645,7 +15638,6 @@

Usage and SDK Samples

var purchaseOrderID = Guid.Parse("00000000-0000-0000-0000-000000000000"); var fileName = "xero-dev.jpg"; var idempotencyKey = "KEY_VALUE"; - byte[] body = System.IO.File.ReadAllBytes(fileName); try { var result = await apiInstance.CreatePurchaseOrderAttachmentByFileNameAsync(accessToken, xeroTenantId, purchaseOrderID, fileName, body, idempotencyKey); @@ -15788,7 +15780,7 @@

Parameters

- byte[] + File
Byte array of file in body of request @@ -15805,7 +15797,7 @@

Parameters

"application/octet-stream" : { "schema" : { "type" : "string", - "format" : "byte" + "format" : "binary" } } }, @@ -16272,7 +16264,6 @@

Usage and SDK Samples

var quoteID = Guid.Parse("00000000-0000-0000-0000-000000000000"); var fileName = "xero-dev.jpg"; var idempotencyKey = "KEY_VALUE"; - byte[] body = System.IO.File.ReadAllBytes(fileName); try { var result = await apiInstance.CreateQuoteAttachmentByFileNameAsync(accessToken, xeroTenantId, quoteID, fileName, body, idempotencyKey); @@ -16415,7 +16406,7 @@

Parameters

- byte[] + File
Byte array of file in body of request @@ -16432,7 +16423,7 @@

Parameters

"application/octet-stream" : { "schema" : { "type" : "string", - "format" : "byte" + "format" : "binary" } } }, @@ -17125,7 +17116,6 @@

Usage and SDK Samples

var receiptID = Guid.Parse("00000000-0000-0000-0000-000000000000"); var fileName = "xero-dev.jpg"; var idempotencyKey = "KEY_VALUE"; - byte[] body = System.IO.File.ReadAllBytes(fileName); try { var result = await apiInstance.CreateReceiptAttachmentByFileNameAsync(accessToken, xeroTenantId, receiptID, fileName, body, idempotencyKey); @@ -17268,7 +17258,7 @@

Parameters

- byte[] + File
Byte array of file in body of request @@ -17285,7 +17275,7 @@

Parameters

"application/octet-stream" : { "schema" : { "type" : "string", - "format" : "byte" + "format" : "binary" } } }, @@ -17536,7 +17526,6 @@

Usage and SDK Samples

var repeatingInvoiceID = Guid.Parse("00000000-0000-0000-0000-000000000000"); var fileName = "xero-dev.jpg"; var idempotencyKey = "KEY_VALUE"; - byte[] body = System.IO.File.ReadAllBytes(fileName); try { var result = await apiInstance.CreateRepeatingInvoiceAttachmentByFileNameAsync(accessToken, xeroTenantId, repeatingInvoiceID, fileName, body, idempotencyKey); @@ -17679,7 +17668,7 @@

Parameters

- byte[] + File
Byte array of file in body of request @@ -17696,7 +17685,7 @@

Parameters

"application/octet-stream" : { "schema" : { "type" : "string", - "format" : "byte" + "format" : "binary" } } }, @@ -41887,7 +41876,6 @@

Usage and SDK Samples

var accountID = Guid.Parse("00000000-0000-0000-0000-000000000000"); var fileName = "xero-dev.jpg"; var idempotencyKey = "KEY_VALUE"; - byte[] body = System.IO.File.ReadAllBytes(fileName); try { var result = await apiInstance.UpdateAccountAttachmentByFileNameAsync(accessToken, xeroTenantId, accountID, fileName, body, idempotencyKey); @@ -42030,7 +42018,7 @@

Parameters

- byte[] + File
Byte array of file in body of request @@ -42047,7 +42035,7 @@

Parameters

"application/octet-stream" : { "schema" : { "type" : "string", - "format" : "byte" + "format" : "binary" } } }, @@ -42409,7 +42397,6 @@

Usage and SDK Samples

var bankTransactionID = Guid.Parse("00000000-0000-0000-0000-000000000000"); var fileName = "xero-dev.jpg"; var idempotencyKey = "KEY_VALUE"; - byte[] body = System.IO.File.ReadAllBytes(fileName); try { var result = await apiInstance.UpdateBankTransactionAttachmentByFileNameAsync(accessToken, xeroTenantId, bankTransactionID, fileName, body, idempotencyKey); @@ -42552,7 +42539,7 @@

Parameters

- byte[] + File
Byte array of file in body of request @@ -42569,7 +42556,7 @@

Parameters

"application/octet-stream" : { "schema" : { "type" : "string", - "format" : "byte" + "format" : "binary" } } }, @@ -42621,7 +42608,6 @@

Usage and SDK Samples

var bankTransferID = Guid.Parse("00000000-0000-0000-0000-000000000000"); var fileName = "xero-dev.jpg"; var idempotencyKey = "KEY_VALUE"; - byte[] body = System.IO.File.ReadAllBytes(fileName); try { var result = await apiInstance.UpdateBankTransferAttachmentByFileNameAsync(accessToken, xeroTenantId, bankTransferID, fileName, body, idempotencyKey); @@ -42764,7 +42750,7 @@

Parameters

- byte[] + File
Byte array of file in body of request @@ -42781,7 +42767,7 @@

Parameters

"application/octet-stream" : { "schema" : { "type" : "string", - "format" : "byte" + "format" : "binary" } } }, @@ -43034,7 +43020,6 @@

Usage and SDK Samples

var contactID = Guid.Parse("00000000-0000-0000-0000-000000000000"); var fileName = "xero-dev.jpg"; var idempotencyKey = "KEY_VALUE"; - byte[] body = System.IO.File.ReadAllBytes(fileName); try { var result = await apiInstance.UpdateContactAttachmentByFileNameAsync(accessToken, xeroTenantId, contactID, fileName, body, idempotencyKey); @@ -43177,7 +43162,7 @@

Parameters

- byte[] + File
Byte array of file in body of request @@ -43194,7 +43179,7 @@

Parameters

"application/octet-stream" : { "schema" : { "type" : "string", - "format" : "byte" + "format" : "binary" } } }, @@ -43702,7 +43687,6 @@

Usage and SDK Samples

var creditNoteID = Guid.Parse("00000000-0000-0000-0000-000000000000"); var fileName = "xero-dev.jpg"; var idempotencyKey = "KEY_VALUE"; - byte[] body = System.IO.File.ReadAllBytes(fileName); try { var result = await apiInstance.UpdateCreditNoteAttachmentByFileNameAsync(accessToken, xeroTenantId, creditNoteID, fileName, body, idempotencyKey); @@ -43845,7 +43829,7 @@

Parameters

- byte[] + File
Byte array of file in body of request @@ -43862,7 +43846,7 @@

Parameters

"application/octet-stream" : { "schema" : { "type" : "string", - "format" : "byte" + "format" : "binary" } } }, @@ -44361,7 +44345,6 @@

Usage and SDK Samples

var invoiceID = Guid.Parse("00000000-0000-0000-0000-000000000000"); var fileName = "xero-dev.jpg"; var idempotencyKey = "KEY_VALUE"; - byte[] body = System.IO.File.ReadAllBytes(fileName); try { var result = await apiInstance.UpdateInvoiceAttachmentByFileNameAsync(accessToken, xeroTenantId, invoiceID, fileName, body, idempotencyKey); @@ -44504,7 +44487,7 @@

Parameters

- byte[] + File
Byte array of file in body of request @@ -44521,7 +44504,7 @@

Parameters

"application/octet-stream" : { "schema" : { "type" : "string", - "format" : "byte" + "format" : "binary" } } }, @@ -45217,7 +45200,6 @@

Usage and SDK Samples

var manualJournalID = Guid.Parse("00000000-0000-0000-0000-000000000000"); var fileName = "xero-dev.jpg"; var idempotencyKey = "KEY_VALUE"; - byte[] body = System.IO.File.ReadAllBytes(fileName); try { var result = await apiInstance.UpdateManualJournalAttachmentByFileNameAsync(accessToken, xeroTenantId, manualJournalID, fileName, body, idempotencyKey); @@ -45360,7 +45342,7 @@

Parameters

- byte[] + File
Byte array of file in body of request @@ -45377,7 +45359,7 @@

Parameters

"application/octet-stream" : { "schema" : { "type" : "string", - "format" : "byte" + "format" : "binary" } } }, @@ -47859,7 +47841,6 @@

Usage and SDK Samples

var purchaseOrderID = Guid.Parse("00000000-0000-0000-0000-000000000000"); var fileName = "xero-dev.jpg"; var idempotencyKey = "KEY_VALUE"; - byte[] body = System.IO.File.ReadAllBytes(fileName); try { var result = await apiInstance.UpdatePurchaseOrderAttachmentByFileNameAsync(accessToken, xeroTenantId, purchaseOrderID, fileName, body, idempotencyKey); @@ -48002,7 +47983,7 @@

Parameters

- byte[] + File
Byte array of file in body of request @@ -48019,7 +48000,7 @@

Parameters

"application/octet-stream" : { "schema" : { "type" : "string", - "format" : "byte" + "format" : "binary" } } }, @@ -48279,7 +48260,6 @@

Usage and SDK Samples

var quoteID = Guid.Parse("00000000-0000-0000-0000-000000000000"); var fileName = "xero-dev.jpg"; var idempotencyKey = "KEY_VALUE"; - byte[] body = System.IO.File.ReadAllBytes(fileName); try { var result = await apiInstance.UpdateQuoteAttachmentByFileNameAsync(accessToken, xeroTenantId, quoteID, fileName, body, idempotencyKey); @@ -48422,7 +48402,7 @@

Parameters

- byte[] + File
Byte array of file in body of request @@ -48439,7 +48419,7 @@

Parameters

"application/octet-stream" : { "schema" : { "type" : "string", - "format" : "byte" + "format" : "binary" } } }, @@ -48727,7 +48707,6 @@

Usage and SDK Samples

var receiptID = Guid.Parse("00000000-0000-0000-0000-000000000000"); var fileName = "xero-dev.jpg"; var idempotencyKey = "KEY_VALUE"; - byte[] body = System.IO.File.ReadAllBytes(fileName); try { var result = await apiInstance.UpdateReceiptAttachmentByFileNameAsync(accessToken, xeroTenantId, receiptID, fileName, body, idempotencyKey); @@ -48870,7 +48849,7 @@

Parameters

- byte[] + File
Byte array of file in body of request @@ -48887,7 +48866,7 @@

Parameters

"application/octet-stream" : { "schema" : { "type" : "string", - "format" : "byte" + "format" : "binary" } } }, @@ -49171,7 +49150,6 @@

Usage and SDK Samples

var repeatingInvoiceID = Guid.Parse("00000000-0000-0000-0000-000000000000"); var fileName = "xero-dev.jpg"; var idempotencyKey = "KEY_VALUE"; - byte[] body = System.IO.File.ReadAllBytes(fileName); try { var result = await apiInstance.UpdateRepeatingInvoiceAttachmentByFileNameAsync(accessToken, xeroTenantId, repeatingInvoiceID, fileName, body, idempotencyKey); @@ -49314,7 +49292,7 @@

Parameters

- byte[] + File
Byte array of file in body of request @@ -49331,7 +49309,7 @@

Parameters

"application/octet-stream" : { "schema" : { "type" : "string", - "format" : "byte" + "format" : "binary" } } },