From cf2617ccbcd062e9a8089cb8298906fcc3d5bc1f Mon Sep 17 00:00:00 2001 From: Jamie Hoffmann Date: Thu, 11 Feb 2021 16:31:32 +1100 Subject: [PATCH] Generate against OpenAPI spec v2.9.2 Xero NetStandard SDK version 3.14.1 generated against OpenAPI Spec version 2.9.2 ## Accounting Add BatchPaymentID to Payment ## Files **Note**: if you are using named parameters the following may be a breaking change FileId renamed to FileID --- Xero.NetStandard.OAuth2/Api/AccountingApi.cs | 2 +- Xero.NetStandard.OAuth2/Api/AssetApi.cs | 2 +- Xero.NetStandard.OAuth2/Api/BankFeedsApi.cs | 2 +- Xero.NetStandard.OAuth2/Api/FilesApi.cs | 198 +++++++++--------- Xero.NetStandard.OAuth2/Api/IdentityApi.cs | 2 +- Xero.NetStandard.OAuth2/Api/PayrollAUApi.cs | 2 +- Xero.NetStandard.OAuth2/Api/PayrollNZApi.cs | 2 +- Xero.NetStandard.OAuth2/Api/PayrollUkApi.cs | 2 +- Xero.NetStandard.OAuth2/Api/ProjectApi.cs | 2 +- .../Client/Configuration.cs | 8 +- .../Model/Accounting/Payment.cs | 15 ++ .../Xero.NetStandard.OAuth2.csproj | 4 +- 12 files changed, 128 insertions(+), 113 deletions(-) diff --git a/Xero.NetStandard.OAuth2/Api/AccountingApi.cs b/Xero.NetStandard.OAuth2/Api/AccountingApi.cs index 79b3e524..7fb92756 100644 --- a/Xero.NetStandard.OAuth2/Api/AccountingApi.cs +++ b/Xero.NetStandard.OAuth2/Api/AccountingApi.cs @@ -7,7 +7,7 @@ * Generated by: https://github.com/openapitools/openapi-generator.git */ -// The version of the OpenAPI document: 2.9.0 +// The version of the OpenAPI document: 2.9.2 using System; diff --git a/Xero.NetStandard.OAuth2/Api/AssetApi.cs b/Xero.NetStandard.OAuth2/Api/AssetApi.cs index 0770bb70..5fa1bcca 100644 --- a/Xero.NetStandard.OAuth2/Api/AssetApi.cs +++ b/Xero.NetStandard.OAuth2/Api/AssetApi.cs @@ -7,7 +7,7 @@ * Generated by: https://github.com/openapitools/openapi-generator.git */ -// The version of the OpenAPI document: 2.9.0 +// The version of the OpenAPI document: 2.9.2 using System; diff --git a/Xero.NetStandard.OAuth2/Api/BankFeedsApi.cs b/Xero.NetStandard.OAuth2/Api/BankFeedsApi.cs index b2ca8e09..af4c2d2c 100644 --- a/Xero.NetStandard.OAuth2/Api/BankFeedsApi.cs +++ b/Xero.NetStandard.OAuth2/Api/BankFeedsApi.cs @@ -7,7 +7,7 @@ * Generated by: https://github.com/openapitools/openapi-generator.git */ -// The version of the OpenAPI document: 2.9.0 +// The version of the OpenAPI document: 2.9.2 using System; diff --git a/Xero.NetStandard.OAuth2/Api/FilesApi.cs b/Xero.NetStandard.OAuth2/Api/FilesApi.cs index 7a6d86eb..ccb68c3a 100644 --- a/Xero.NetStandard.OAuth2/Api/FilesApi.cs +++ b/Xero.NetStandard.OAuth2/Api/FilesApi.cs @@ -7,7 +7,7 @@ * Generated by: https://github.com/openapitools/openapi-generator.git */ -// The version of the OpenAPI document: 2.9.0 +// The version of the OpenAPI document: 2.9.2 using System; @@ -38,10 +38,10 @@ public interface IFilesApiAsync : IApiAccessor /// Thrown when fails to make API call /// Xero API OAuth 2.0 accessToken /// Xero identifier for Tenant - /// File id for single object + /// File id for single object /// (optional) /// Task of Association - System.Threading.Tasks.Task CreateFileAssociationAsync (string accessToken, string xeroTenantId, Guid fileId, Association association = null); + System.Threading.Tasks.Task CreateFileAssociationAsync (string accessToken, string xeroTenantId, Guid fileID, Association association = null); /// /// Creates a new file association @@ -52,10 +52,10 @@ public interface IFilesApiAsync : IApiAccessor /// Thrown when fails to make API call /// Xero API OAuth 2.0 accessToken /// Xero identifier for Tenant - /// File id for single object + /// File id for single object /// (optional) /// Task of ApiResponse (Association) - System.Threading.Tasks.Task> CreateFileAssociationAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid fileId, Association association = null); + System.Threading.Tasks.Task> CreateFileAssociationAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid fileID, Association association = null); /// /// Creates a new folder /// @@ -90,9 +90,9 @@ public interface IFilesApiAsync : IApiAccessor /// Thrown when fails to make API call /// Xero API OAuth 2.0 accessToken /// Xero identifier for Tenant - /// File id for single object + /// File id for single object /// Task of FileResponse204 - System.Threading.Tasks.Task DeleteFileAsync (string accessToken, string xeroTenantId, Guid fileId); + System.Threading.Tasks.Task DeleteFileAsync (string accessToken, string xeroTenantId, Guid fileID); /// /// Deletes a specific file @@ -103,9 +103,9 @@ public interface IFilesApiAsync : IApiAccessor /// Thrown when fails to make API call /// Xero API OAuth 2.0 accessToken /// Xero identifier for Tenant - /// File id for single object + /// File id for single object /// Task of ApiResponse (FileResponse204) - System.Threading.Tasks.Task> DeleteFileAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid fileId); + System.Threading.Tasks.Task> DeleteFileAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid fileID); /// /// Deletes an existing file association /// @@ -115,10 +115,10 @@ public interface IFilesApiAsync : IApiAccessor /// Thrown when fails to make API call /// Xero API OAuth 2.0 accessToken /// Xero identifier for Tenant - /// File id for single object + /// File id for single object /// Object id for single object /// Task of FileResponse204 - System.Threading.Tasks.Task DeleteFileAssociationAsync (string accessToken, string xeroTenantId, Guid fileId, Guid objectId); + System.Threading.Tasks.Task DeleteFileAssociationAsync (string accessToken, string xeroTenantId, Guid fileID, Guid objectId); /// /// Deletes an existing file association @@ -129,10 +129,10 @@ public interface IFilesApiAsync : IApiAccessor /// Thrown when fails to make API call /// Xero API OAuth 2.0 accessToken /// Xero identifier for Tenant - /// File id for single object + /// File id for single object /// Object id for single object /// Task of ApiResponse (FileResponse204) - System.Threading.Tasks.Task> DeleteFileAssociationAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid fileId, Guid objectId); + System.Threading.Tasks.Task> DeleteFileAssociationAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid fileID, Guid objectId); /// /// Deletes a folder /// @@ -192,9 +192,9 @@ public interface IFilesApiAsync : IApiAccessor /// Thrown when fails to make API call /// Xero API OAuth 2.0 accessToken /// Xero identifier for Tenant - /// File id for single object + /// File id for single object /// Task of FileObject - System.Threading.Tasks.Task GetFileAsync (string accessToken, string xeroTenantId, Guid fileId); + System.Threading.Tasks.Task GetFileAsync (string accessToken, string xeroTenantId, Guid fileID); /// /// Retrieves a file by a unique file ID @@ -205,9 +205,9 @@ public interface IFilesApiAsync : IApiAccessor /// Thrown when fails to make API call /// Xero API OAuth 2.0 accessToken /// Xero identifier for Tenant - /// File id for single object + /// File id for single object /// Task of ApiResponse (FileObject) - System.Threading.Tasks.Task> GetFileAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid fileId); + System.Threading.Tasks.Task> GetFileAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid fileID); /// /// Retrieves a specific file associations /// @@ -217,9 +217,9 @@ public interface IFilesApiAsync : IApiAccessor /// Thrown when fails to make API call /// Xero API OAuth 2.0 accessToken /// Xero identifier for Tenant - /// File id for single object + /// File id for single object /// Task of List<Association> - System.Threading.Tasks.Task> GetFileAssociationsAsync (string accessToken, string xeroTenantId, Guid fileId); + System.Threading.Tasks.Task> GetFileAssociationsAsync (string accessToken, string xeroTenantId, Guid fileID); /// /// Retrieves a specific file associations @@ -230,9 +230,9 @@ public interface IFilesApiAsync : IApiAccessor /// Thrown when fails to make API call /// Xero API OAuth 2.0 accessToken /// Xero identifier for Tenant - /// File id for single object + /// File id for single object /// Task of ApiResponse (List<Association>) - System.Threading.Tasks.Task>> GetFileAssociationsAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid fileId); + System.Threading.Tasks.Task>> GetFileAssociationsAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid fileID); /// /// Retrieves the content of a specific file /// @@ -242,9 +242,9 @@ public interface IFilesApiAsync : IApiAccessor /// Thrown when fails to make API call /// Xero API OAuth 2.0 accessToken /// Xero identifier for Tenant - /// File id for single object + /// File id for single object /// Task of System.IO.Stream - System.Threading.Tasks.Task GetFileContentAsync (string accessToken, string xeroTenantId, Guid fileId); + System.Threading.Tasks.Task GetFileContentAsync (string accessToken, string xeroTenantId, Guid fileID); /// /// Retrieves the content of a specific file @@ -255,9 +255,9 @@ public interface IFilesApiAsync : IApiAccessor /// Thrown when fails to make API call /// Xero API OAuth 2.0 accessToken /// Xero identifier for Tenant - /// File id for single object + /// File id for single object /// Task of ApiResponse (System.IO.Stream) - System.Threading.Tasks.Task> GetFileContentAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid fileId); + System.Threading.Tasks.Task> GetFileContentAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid fileID); /// /// Retrieves files /// @@ -369,10 +369,10 @@ public interface IFilesApiAsync : IApiAccessor /// Thrown when fails to make API call /// Xero API OAuth 2.0 accessToken /// Xero identifier for Tenant - /// File id for single object + /// File id for single object /// (optional) /// Task of FileObject - System.Threading.Tasks.Task UpdateFileAsync (string accessToken, string xeroTenantId, Guid fileId, FileObject fileObject = null); + System.Threading.Tasks.Task UpdateFileAsync (string accessToken, string xeroTenantId, Guid fileID, FileObject fileObject = null); /// /// Update a file @@ -383,10 +383,10 @@ public interface IFilesApiAsync : IApiAccessor /// Thrown when fails to make API call /// Xero API OAuth 2.0 accessToken /// Xero identifier for Tenant - /// File id for single object + /// File id for single object /// (optional) /// Task of ApiResponse (FileObject) - System.Threading.Tasks.Task> UpdateFileAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid fileId, FileObject fileObject = null); + System.Threading.Tasks.Task> UpdateFileAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid fileID, FileObject fileObject = null); /// /// Updates an existing folder /// @@ -573,12 +573,12 @@ public Xero.NetStandard.OAuth2.Client.ExceptionFactory ExceptionFactory /// Thrown when fails to make API call /// Xero API OAuth 2.0 accessToken /// Xero identifier for Tenant - /// File id for single object + /// File id for single object /// (optional) /// Task of Association - public async System.Threading.Tasks.Task CreateFileAssociationAsync (string accessToken, string xeroTenantId, Guid fileId, Association association = null) + public async System.Threading.Tasks.Task CreateFileAssociationAsync (string accessToken, string xeroTenantId, Guid fileID, Association association = null) { - Xero.NetStandard.OAuth2.Client.ApiResponse localVarResponse = await CreateFileAssociationAsyncWithHttpInfo(accessToken, xeroTenantId, fileId, association); + Xero.NetStandard.OAuth2.Client.ApiResponse localVarResponse = await CreateFileAssociationAsyncWithHttpInfo(accessToken, xeroTenantId, fileID, association); return localVarResponse.Data; } @@ -589,18 +589,18 @@ public async System.Threading.Tasks.Task CreateFileAssociationAsync /// Thrown when fails to make API call /// Xero API OAuth 2.0 accessToken /// Xero identifier for Tenant - /// File id for single object + /// File id for single object /// (optional) /// Task of ApiResponse (Association) - public async System.Threading.Tasks.Task> CreateFileAssociationAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid fileId, Association association = null) + public async System.Threading.Tasks.Task> CreateFileAssociationAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid fileID, Association association = null) { // verify the required parameter 'xeroTenantId' is set if (xeroTenantId == null) throw new Xero.NetStandard.OAuth2.Client.ApiException(400, "Missing required parameter 'xeroTenantId' when calling FilesApi->CreateFileAssociation"); - // verify the required parameter 'fileId' is set - if (fileId == null) - throw new Xero.NetStandard.OAuth2.Client.ApiException(400, "Missing required parameter 'fileId' when calling FilesApi->CreateFileAssociation"); + // verify the required parameter 'fileID' is set + if (fileID == null) + throw new Xero.NetStandard.OAuth2.Client.ApiException(400, "Missing required parameter 'fileID' when calling FilesApi->CreateFileAssociation"); Xero.NetStandard.OAuth2.Client.RequestOptions requestOptions = new Xero.NetStandard.OAuth2.Client.RequestOptions(); @@ -620,8 +620,8 @@ public async System.Threading.Tasks.Task CreateFileAssociationAsync foreach (var accept in @accepts) requestOptions.HeaderParameters.Add("Accept", accept); - if (fileId != null) - requestOptions.PathParameters.Add("FileId", Xero.NetStandard.OAuth2.Client.ClientUtils.ParameterToString(fileId)); // path parameter + if (fileID != null) + requestOptions.PathParameters.Add("FileID", Xero.NetStandard.OAuth2.Client.ClientUtils.ParameterToString(fileID)); // path parameter if (xeroTenantId != null) requestOptions.HeaderParameters.Add("xero-tenant-id", Xero.NetStandard.OAuth2.Client.ClientUtils.ParameterToString(xeroTenantId)); // header parameter requestOptions.Data = association; @@ -727,11 +727,11 @@ public async System.Threading.Tasks.Task CreateFolderAsync (string acces /// Thrown when fails to make API call /// Xero API OAuth 2.0 accessToken /// Xero identifier for Tenant - /// File id for single object + /// File id for single object /// Task of FileResponse204 - public async System.Threading.Tasks.Task DeleteFileAsync (string accessToken, string xeroTenantId, Guid fileId) + public async System.Threading.Tasks.Task DeleteFileAsync (string accessToken, string xeroTenantId, Guid fileID) { - Xero.NetStandard.OAuth2.Client.ApiResponse localVarResponse = await DeleteFileAsyncWithHttpInfo(accessToken, xeroTenantId, fileId); + Xero.NetStandard.OAuth2.Client.ApiResponse localVarResponse = await DeleteFileAsyncWithHttpInfo(accessToken, xeroTenantId, fileID); return localVarResponse.Data; } @@ -742,17 +742,17 @@ public async System.Threading.Tasks.Task DeleteFileAsync (strin /// Thrown when fails to make API call /// Xero API OAuth 2.0 accessToken /// Xero identifier for Tenant - /// File id for single object + /// File id for single object /// Task of ApiResponse (FileResponse204) - public async System.Threading.Tasks.Task> DeleteFileAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid fileId) + public async System.Threading.Tasks.Task> DeleteFileAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid fileID) { // verify the required parameter 'xeroTenantId' is set if (xeroTenantId == null) throw new Xero.NetStandard.OAuth2.Client.ApiException(400, "Missing required parameter 'xeroTenantId' when calling FilesApi->DeleteFile"); - // verify the required parameter 'fileId' is set - if (fileId == null) - throw new Xero.NetStandard.OAuth2.Client.ApiException(400, "Missing required parameter 'fileId' when calling FilesApi->DeleteFile"); + // verify the required parameter 'fileID' is set + if (fileID == null) + throw new Xero.NetStandard.OAuth2.Client.ApiException(400, "Missing required parameter 'fileID' when calling FilesApi->DeleteFile"); Xero.NetStandard.OAuth2.Client.RequestOptions requestOptions = new Xero.NetStandard.OAuth2.Client.RequestOptions(); @@ -771,8 +771,8 @@ public async System.Threading.Tasks.Task DeleteFileAsync (strin foreach (var accept in @accepts) requestOptions.HeaderParameters.Add("Accept", accept); - if (fileId != null) - requestOptions.PathParameters.Add("FileId", Xero.NetStandard.OAuth2.Client.ClientUtils.ParameterToString(fileId)); // path parameter + if (fileID != null) + requestOptions.PathParameters.Add("FileID", Xero.NetStandard.OAuth2.Client.ClientUtils.ParameterToString(fileID)); // path parameter if (xeroTenantId != null) requestOptions.HeaderParameters.Add("xero-tenant-id", Xero.NetStandard.OAuth2.Client.ClientUtils.ParameterToString(xeroTenantId)); // header parameter @@ -804,12 +804,12 @@ public async System.Threading.Tasks.Task DeleteFileAsync (strin /// Thrown when fails to make API call /// Xero API OAuth 2.0 accessToken /// Xero identifier for Tenant - /// File id for single object + /// File id for single object /// Object id for single object /// Task of FileResponse204 - public async System.Threading.Tasks.Task DeleteFileAssociationAsync (string accessToken, string xeroTenantId, Guid fileId, Guid objectId) + public async System.Threading.Tasks.Task DeleteFileAssociationAsync (string accessToken, string xeroTenantId, Guid fileID, Guid objectId) { - Xero.NetStandard.OAuth2.Client.ApiResponse localVarResponse = await DeleteFileAssociationAsyncWithHttpInfo(accessToken, xeroTenantId, fileId, objectId); + Xero.NetStandard.OAuth2.Client.ApiResponse localVarResponse = await DeleteFileAssociationAsyncWithHttpInfo(accessToken, xeroTenantId, fileID, objectId); return localVarResponse.Data; } @@ -820,18 +820,18 @@ public async System.Threading.Tasks.Task DeleteFileAssociationA /// Thrown when fails to make API call /// Xero API OAuth 2.0 accessToken /// Xero identifier for Tenant - /// File id for single object + /// File id for single object /// Object id for single object /// Task of ApiResponse (FileResponse204) - public async System.Threading.Tasks.Task> DeleteFileAssociationAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid fileId, Guid objectId) + public async System.Threading.Tasks.Task> DeleteFileAssociationAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid fileID, Guid objectId) { // verify the required parameter 'xeroTenantId' is set if (xeroTenantId == null) throw new Xero.NetStandard.OAuth2.Client.ApiException(400, "Missing required parameter 'xeroTenantId' when calling FilesApi->DeleteFileAssociation"); - // verify the required parameter 'fileId' is set - if (fileId == null) - throw new Xero.NetStandard.OAuth2.Client.ApiException(400, "Missing required parameter 'fileId' when calling FilesApi->DeleteFileAssociation"); + // verify the required parameter 'fileID' is set + if (fileID == null) + throw new Xero.NetStandard.OAuth2.Client.ApiException(400, "Missing required parameter 'fileID' when calling FilesApi->DeleteFileAssociation"); // verify the required parameter 'objectId' is set if (objectId == null) @@ -854,8 +854,8 @@ public async System.Threading.Tasks.Task DeleteFileAssociationA foreach (var accept in @accepts) requestOptions.HeaderParameters.Add("Accept", accept); - if (fileId != null) - requestOptions.PathParameters.Add("FileId", Xero.NetStandard.OAuth2.Client.ClientUtils.ParameterToString(fileId)); // path parameter + if (fileID != null) + requestOptions.PathParameters.Add("FileID", Xero.NetStandard.OAuth2.Client.ClientUtils.ParameterToString(fileID)); // path parameter if (objectId != null) requestOptions.PathParameters.Add("ObjectId", Xero.NetStandard.OAuth2.Client.ClientUtils.ParameterToString(objectId)); // path parameter if (xeroTenantId != null) @@ -1043,11 +1043,11 @@ public async System.Threading.Tasks.Task> GetAssociationsByObj /// Thrown when fails to make API call /// Xero API OAuth 2.0 accessToken /// Xero identifier for Tenant - /// File id for single object + /// File id for single object /// Task of FileObject - public async System.Threading.Tasks.Task GetFileAsync (string accessToken, string xeroTenantId, Guid fileId) + public async System.Threading.Tasks.Task GetFileAsync (string accessToken, string xeroTenantId, Guid fileID) { - Xero.NetStandard.OAuth2.Client.ApiResponse localVarResponse = await GetFileAsyncWithHttpInfo(accessToken, xeroTenantId, fileId); + Xero.NetStandard.OAuth2.Client.ApiResponse localVarResponse = await GetFileAsyncWithHttpInfo(accessToken, xeroTenantId, fileID); return localVarResponse.Data; } @@ -1058,17 +1058,17 @@ public async System.Threading.Tasks.Task GetFileAsync (string access /// Thrown when fails to make API call /// Xero API OAuth 2.0 accessToken /// Xero identifier for Tenant - /// File id for single object + /// File id for single object /// Task of ApiResponse (FileObject) - public async System.Threading.Tasks.Task> GetFileAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid fileId) + public async System.Threading.Tasks.Task> GetFileAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid fileID) { // verify the required parameter 'xeroTenantId' is set if (xeroTenantId == null) throw new Xero.NetStandard.OAuth2.Client.ApiException(400, "Missing required parameter 'xeroTenantId' when calling FilesApi->GetFile"); - // verify the required parameter 'fileId' is set - if (fileId == null) - throw new Xero.NetStandard.OAuth2.Client.ApiException(400, "Missing required parameter 'fileId' when calling FilesApi->GetFile"); + // verify the required parameter 'fileID' is set + if (fileID == null) + throw new Xero.NetStandard.OAuth2.Client.ApiException(400, "Missing required parameter 'fileID' when calling FilesApi->GetFile"); Xero.NetStandard.OAuth2.Client.RequestOptions requestOptions = new Xero.NetStandard.OAuth2.Client.RequestOptions(); @@ -1087,8 +1087,8 @@ public async System.Threading.Tasks.Task GetFileAsync (string access foreach (var accept in @accepts) requestOptions.HeaderParameters.Add("Accept", accept); - if (fileId != null) - requestOptions.PathParameters.Add("FileId", Xero.NetStandard.OAuth2.Client.ClientUtils.ParameterToString(fileId)); // path parameter + if (fileID != null) + requestOptions.PathParameters.Add("FileID", Xero.NetStandard.OAuth2.Client.ClientUtils.ParameterToString(fileID)); // path parameter if (xeroTenantId != null) requestOptions.HeaderParameters.Add("xero-tenant-id", Xero.NetStandard.OAuth2.Client.ClientUtils.ParameterToString(xeroTenantId)); // header parameter @@ -1120,11 +1120,11 @@ public async System.Threading.Tasks.Task GetFileAsync (string access /// Thrown when fails to make API call /// Xero API OAuth 2.0 accessToken /// Xero identifier for Tenant - /// File id for single object + /// File id for single object /// Task of List<Association> - public async System.Threading.Tasks.Task> GetFileAssociationsAsync (string accessToken, string xeroTenantId, Guid fileId) + public async System.Threading.Tasks.Task> GetFileAssociationsAsync (string accessToken, string xeroTenantId, Guid fileID) { - Xero.NetStandard.OAuth2.Client.ApiResponse> localVarResponse = await GetFileAssociationsAsyncWithHttpInfo(accessToken, xeroTenantId, fileId); + Xero.NetStandard.OAuth2.Client.ApiResponse> localVarResponse = await GetFileAssociationsAsyncWithHttpInfo(accessToken, xeroTenantId, fileID); return localVarResponse.Data; } @@ -1135,17 +1135,17 @@ public async System.Threading.Tasks.Task> GetFileAssociationsA /// Thrown when fails to make API call /// Xero API OAuth 2.0 accessToken /// Xero identifier for Tenant - /// File id for single object + /// File id for single object /// Task of ApiResponse (List<Association>) - public async System.Threading.Tasks.Task>> GetFileAssociationsAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid fileId) + public async System.Threading.Tasks.Task>> GetFileAssociationsAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid fileID) { // verify the required parameter 'xeroTenantId' is set if (xeroTenantId == null) throw new Xero.NetStandard.OAuth2.Client.ApiException(400, "Missing required parameter 'xeroTenantId' when calling FilesApi->GetFileAssociations"); - // verify the required parameter 'fileId' is set - if (fileId == null) - throw new Xero.NetStandard.OAuth2.Client.ApiException(400, "Missing required parameter 'fileId' when calling FilesApi->GetFileAssociations"); + // verify the required parameter 'fileID' is set + if (fileID == null) + throw new Xero.NetStandard.OAuth2.Client.ApiException(400, "Missing required parameter 'fileID' when calling FilesApi->GetFileAssociations"); Xero.NetStandard.OAuth2.Client.RequestOptions requestOptions = new Xero.NetStandard.OAuth2.Client.RequestOptions(); @@ -1164,8 +1164,8 @@ public async System.Threading.Tasks.Task> GetFileAssociationsA foreach (var accept in @accepts) requestOptions.HeaderParameters.Add("Accept", accept); - if (fileId != null) - requestOptions.PathParameters.Add("FileId", Xero.NetStandard.OAuth2.Client.ClientUtils.ParameterToString(fileId)); // path parameter + if (fileID != null) + requestOptions.PathParameters.Add("FileID", Xero.NetStandard.OAuth2.Client.ClientUtils.ParameterToString(fileID)); // path parameter if (xeroTenantId != null) requestOptions.HeaderParameters.Add("xero-tenant-id", Xero.NetStandard.OAuth2.Client.ClientUtils.ParameterToString(xeroTenantId)); // header parameter @@ -1197,11 +1197,11 @@ public async System.Threading.Tasks.Task> GetFileAssociationsA /// Thrown when fails to make API call /// Xero API OAuth 2.0 accessToken /// Xero identifier for Tenant - /// File id for single object + /// File id for single object /// Task of System.IO.Stream - public async System.Threading.Tasks.Task GetFileContentAsync (string accessToken, string xeroTenantId, Guid fileId) + public async System.Threading.Tasks.Task GetFileContentAsync (string accessToken, string xeroTenantId, Guid fileID) { - Xero.NetStandard.OAuth2.Client.ApiResponse localVarResponse = await GetFileContentAsyncWithHttpInfo(accessToken, xeroTenantId, fileId); + Xero.NetStandard.OAuth2.Client.ApiResponse localVarResponse = await GetFileContentAsyncWithHttpInfo(accessToken, xeroTenantId, fileID); return localVarResponse.Data; } @@ -1212,17 +1212,17 @@ public async System.Threading.Tasks.Task> GetFileAssociationsA /// Thrown when fails to make API call /// Xero API OAuth 2.0 accessToken /// Xero identifier for Tenant - /// File id for single object + /// File id for single object /// Task of ApiResponse (System.IO.Stream) - public async System.Threading.Tasks.Task> GetFileContentAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid fileId) + public async System.Threading.Tasks.Task> GetFileContentAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid fileID) { // verify the required parameter 'xeroTenantId' is set if (xeroTenantId == null) throw new Xero.NetStandard.OAuth2.Client.ApiException(400, "Missing required parameter 'xeroTenantId' when calling FilesApi->GetFileContent"); - // verify the required parameter 'fileId' is set - if (fileId == null) - throw new Xero.NetStandard.OAuth2.Client.ApiException(400, "Missing required parameter 'fileId' when calling FilesApi->GetFileContent"); + // verify the required parameter 'fileID' is set + if (fileID == null) + throw new Xero.NetStandard.OAuth2.Client.ApiException(400, "Missing required parameter 'fileID' when calling FilesApi->GetFileContent"); Xero.NetStandard.OAuth2.Client.RequestOptions requestOptions = new Xero.NetStandard.OAuth2.Client.RequestOptions(); @@ -1241,8 +1241,8 @@ public async System.Threading.Tasks.Task> GetFileAssociationsA foreach (var accept in @accepts) requestOptions.HeaderParameters.Add("Accept", accept); - if (fileId != null) - requestOptions.PathParameters.Add("FileId", Xero.NetStandard.OAuth2.Client.ClientUtils.ParameterToString(fileId)); // path parameter + if (fileID != null) + requestOptions.PathParameters.Add("FileID", Xero.NetStandard.OAuth2.Client.ClientUtils.ParameterToString(fileID)); // path parameter if (xeroTenantId != null) requestOptions.HeaderParameters.Add("xero-tenant-id", Xero.NetStandard.OAuth2.Client.ClientUtils.ParameterToString(xeroTenantId)); // header parameter @@ -1610,12 +1610,12 @@ public async System.Threading.Tasks.Task GetInboxAsync (string accessTok /// Thrown when fails to make API call /// Xero API OAuth 2.0 accessToken /// Xero identifier for Tenant - /// File id for single object + /// File id for single object /// (optional) /// Task of FileObject - public async System.Threading.Tasks.Task UpdateFileAsync (string accessToken, string xeroTenantId, Guid fileId, FileObject fileObject = null) + public async System.Threading.Tasks.Task UpdateFileAsync (string accessToken, string xeroTenantId, Guid fileID, FileObject fileObject = null) { - Xero.NetStandard.OAuth2.Client.ApiResponse localVarResponse = await UpdateFileAsyncWithHttpInfo(accessToken, xeroTenantId, fileId, fileObject); + Xero.NetStandard.OAuth2.Client.ApiResponse localVarResponse = await UpdateFileAsyncWithHttpInfo(accessToken, xeroTenantId, fileID, fileObject); return localVarResponse.Data; } @@ -1626,18 +1626,18 @@ public async System.Threading.Tasks.Task UpdateFileAsync (string acc /// Thrown when fails to make API call /// Xero API OAuth 2.0 accessToken /// Xero identifier for Tenant - /// File id for single object + /// File id for single object /// (optional) /// Task of ApiResponse (FileObject) - public async System.Threading.Tasks.Task> UpdateFileAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid fileId, FileObject fileObject = null) + public async System.Threading.Tasks.Task> UpdateFileAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid fileID, FileObject fileObject = null) { // verify the required parameter 'xeroTenantId' is set if (xeroTenantId == null) throw new Xero.NetStandard.OAuth2.Client.ApiException(400, "Missing required parameter 'xeroTenantId' when calling FilesApi->UpdateFile"); - // verify the required parameter 'fileId' is set - if (fileId == null) - throw new Xero.NetStandard.OAuth2.Client.ApiException(400, "Missing required parameter 'fileId' when calling FilesApi->UpdateFile"); + // verify the required parameter 'fileID' is set + if (fileID == null) + throw new Xero.NetStandard.OAuth2.Client.ApiException(400, "Missing required parameter 'fileID' when calling FilesApi->UpdateFile"); Xero.NetStandard.OAuth2.Client.RequestOptions requestOptions = new Xero.NetStandard.OAuth2.Client.RequestOptions(); @@ -1657,8 +1657,8 @@ public async System.Threading.Tasks.Task UpdateFileAsync (string acc foreach (var accept in @accepts) requestOptions.HeaderParameters.Add("Accept", accept); - if (fileId != null) - requestOptions.PathParameters.Add("FileId", Xero.NetStandard.OAuth2.Client.ClientUtils.ParameterToString(fileId)); // path parameter + if (fileID != null) + requestOptions.PathParameters.Add("FileID", Xero.NetStandard.OAuth2.Client.ClientUtils.ParameterToString(fileID)); // path parameter if (xeroTenantId != null) requestOptions.HeaderParameters.Add("xero-tenant-id", Xero.NetStandard.OAuth2.Client.ClientUtils.ParameterToString(xeroTenantId)); // header parameter requestOptions.Data = fileObject; diff --git a/Xero.NetStandard.OAuth2/Api/IdentityApi.cs b/Xero.NetStandard.OAuth2/Api/IdentityApi.cs index 401ca2b8..4dc16dcf 100644 --- a/Xero.NetStandard.OAuth2/Api/IdentityApi.cs +++ b/Xero.NetStandard.OAuth2/Api/IdentityApi.cs @@ -7,7 +7,7 @@ * Generated by: https://github.com/openapitools/openapi-generator.git */ -// The version of the OpenAPI document: 2.9.0 +// The version of the OpenAPI document: 2.9.2 using System; diff --git a/Xero.NetStandard.OAuth2/Api/PayrollAUApi.cs b/Xero.NetStandard.OAuth2/Api/PayrollAUApi.cs index 2192d5dc..e65adae1 100644 --- a/Xero.NetStandard.OAuth2/Api/PayrollAUApi.cs +++ b/Xero.NetStandard.OAuth2/Api/PayrollAUApi.cs @@ -7,7 +7,7 @@ * Generated by: https://github.com/openapitools/openapi-generator.git */ -// The version of the OpenAPI document: 2.9.0 +// The version of the OpenAPI document: 2.9.2 using System; diff --git a/Xero.NetStandard.OAuth2/Api/PayrollNZApi.cs b/Xero.NetStandard.OAuth2/Api/PayrollNZApi.cs index 3a886fc6..f3880bf6 100644 --- a/Xero.NetStandard.OAuth2/Api/PayrollNZApi.cs +++ b/Xero.NetStandard.OAuth2/Api/PayrollNZApi.cs @@ -7,7 +7,7 @@ * Generated by: https://github.com/openapitools/openapi-generator.git */ -// The version of the OpenAPI document: 2.9.0 +// The version of the OpenAPI document: 2.9.2 using System; diff --git a/Xero.NetStandard.OAuth2/Api/PayrollUkApi.cs b/Xero.NetStandard.OAuth2/Api/PayrollUkApi.cs index 3c2e5318..f17cc033 100644 --- a/Xero.NetStandard.OAuth2/Api/PayrollUkApi.cs +++ b/Xero.NetStandard.OAuth2/Api/PayrollUkApi.cs @@ -7,7 +7,7 @@ * Generated by: https://github.com/openapitools/openapi-generator.git */ -// The version of the OpenAPI document: 2.9.0 +// The version of the OpenAPI document: 2.9.2 using System; diff --git a/Xero.NetStandard.OAuth2/Api/ProjectApi.cs b/Xero.NetStandard.OAuth2/Api/ProjectApi.cs index 788cab68..e712afcf 100644 --- a/Xero.NetStandard.OAuth2/Api/ProjectApi.cs +++ b/Xero.NetStandard.OAuth2/Api/ProjectApi.cs @@ -7,7 +7,7 @@ * Generated by: https://github.com/openapitools/openapi-generator.git */ -// The version of the OpenAPI document: 2.9.0 +// The version of the OpenAPI document: 2.9.2 using System; diff --git a/Xero.NetStandard.OAuth2/Client/Configuration.cs b/Xero.NetStandard.OAuth2/Client/Configuration.cs index fbf66621..f08a8a77 100644 --- a/Xero.NetStandard.OAuth2/Client/Configuration.cs +++ b/Xero.NetStandard.OAuth2/Client/Configuration.cs @@ -30,7 +30,7 @@ public class Configuration : IReadableConfiguration /// Version of the package. /// /// Version of the package. - public const string Version = "3.14.0"; + public const string Version = "3.14.1"; /// /// Identifier for ISO 8601 DateTime Format @@ -99,7 +99,7 @@ public class Configuration : IReadableConfiguration [System.Diagnostics.CodeAnalysis.SuppressMessage("ReSharper", "VirtualMemberCallInConstructor")] public Configuration() { - UserAgent = "xero-netstandard-3.14.0"; + UserAgent = "xero-netstandard-3.14.1"; BasePath = "https://api.xero.com/api.xro/2.0"; DefaultHeader = new ConcurrentDictionary(); ApiKey = new ConcurrentDictionary(); @@ -331,8 +331,8 @@ public static String ToDebugReport() { String report = "C# SDK (Xero.NetStandard.OAuth2) Debug Report:\n"; report += " OS: " + System.Runtime.InteropServices.RuntimeInformation.OSDescription + "\n"; - report += " Version of the API: 2.9.0\n"; - report += " SDK Package Version: 3.14.0\n"; + report += " Version of the API: 2.9.2\n"; + report += " SDK Package Version: 3.14.1\n"; return report; } diff --git a/Xero.NetStandard.OAuth2/Model/Accounting/Payment.cs b/Xero.NetStandard.OAuth2/Model/Accounting/Payment.cs index ed543dfc..5eaa23f5 100644 --- a/Xero.NetStandard.OAuth2/Model/Accounting/Payment.cs +++ b/Xero.NetStandard.OAuth2/Model/Accounting/Payment.cs @@ -221,6 +221,13 @@ public enum PaymentTypeEnum [DataMember(Name="PaymentID", EmitDefaultValue=false)] public Guid? PaymentID { get; set; } + /// + /// Present if the payment was created as part of a batch. + /// + /// Present if the payment was created as part of a batch. + [DataMember(Name="BatchPaymentID", EmitDefaultValue=false)] + public Guid? BatchPaymentID { get; set; } + /// /// The suppliers bank account number the payment is being made to /// @@ -295,6 +302,7 @@ public override string ToString() sb.Append(" PaymentType: ").Append(PaymentType).Append("\n"); sb.Append(" UpdatedDateUTC: ").Append(UpdatedDateUTC).Append("\n"); sb.Append(" PaymentID: ").Append(PaymentID).Append("\n"); + sb.Append(" BatchPaymentID: ").Append(BatchPaymentID).Append("\n"); sb.Append(" BankAccountNumber: ").Append(BankAccountNumber).Append("\n"); sb.Append(" Particulars: ").Append(Particulars).Append("\n"); sb.Append(" Details: ").Append(Details).Append("\n"); @@ -419,6 +427,11 @@ public bool Equals(Payment input) (this.PaymentID != null && this.PaymentID.Equals(input.PaymentID)) ) && + ( + this.BatchPaymentID == input.BatchPaymentID || + (this.BatchPaymentID != null && + this.BatchPaymentID.Equals(input.BatchPaymentID)) + ) && ( this.BankAccountNumber == input.BankAccountNumber || (this.BankAccountNumber != null && @@ -498,6 +511,8 @@ public override int GetHashCode() hashCode = hashCode * 59 + this.UpdatedDateUTC.GetHashCode(); if (this.PaymentID != null) hashCode = hashCode * 59 + this.PaymentID.GetHashCode(); + if (this.BatchPaymentID != null) + hashCode = hashCode * 59 + this.BatchPaymentID.GetHashCode(); if (this.BankAccountNumber != null) hashCode = hashCode * 59 + this.BankAccountNumber.GetHashCode(); if (this.Particulars != null) diff --git a/Xero.NetStandard.OAuth2/Xero.NetStandard.OAuth2.csproj b/Xero.NetStandard.OAuth2/Xero.NetStandard.OAuth2.csproj index f39e714d..dc4f4298 100644 --- a/Xero.NetStandard.OAuth2/Xero.NetStandard.OAuth2.csproj +++ b/Xero.NetStandard.OAuth2/Xero.NetStandard.OAuth2.csproj @@ -11,12 +11,12 @@ Xero API Xero OpenAPI Library - A library generated from a OpenAPI doc + This is a .NETStandard SDK library, used to communicate with the Xero API using OAuth2.0. See https://github.com/XeroAPI/Xero-NetStandard for more information true true true Xero.NetStandard.OAuth2 - 3.14.0 + 3.14.1 bin\$(Configuration)\$(TargetFramework)\Xero.NetStandard.OAuth2.xml https://github.com/XeroAPI/Xero-NetStandard/ https://en.gravatar.com/userimage/180557955/74b3a957d886bc921b0d1455beed9dab.png