From d4334a593c0385527eef33dd7877a2abc3892948 Mon Sep 17 00:00:00 2001 From: Github Actions Date: Tue, 14 Jul 2026 00:03:15 +0000 Subject: [PATCH] Releasing 18.0.0 (OAS: 16.1.0) --- Xero.NetStandard.OAuth2/Api/AccountingApi.cs | 266 ++++++++- Xero.NetStandard.OAuth2/Api/AppStoreApi.cs | 2 +- Xero.NetStandard.OAuth2/Api/AssetApi.cs | 2 +- Xero.NetStandard.OAuth2/Api/BankFeedsApi.cs | 2 +- Xero.NetStandard.OAuth2/Api/FilesApi.cs | 2 +- Xero.NetStandard.OAuth2/Api/FinanceApi.cs | 2 +- Xero.NetStandard.OAuth2/Api/IdentityApi.cs | 2 +- Xero.NetStandard.OAuth2/Api/PayrollAUApi.cs | 2 +- Xero.NetStandard.OAuth2/Api/PayrollAUV2Api.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/BankTransfer.cs | 67 +++ .../Model/Accounting/BankTransferDelete.cs | 139 +++++ .../BankTransferDeleteByUrlParam.cs | 124 ++++ .../Model/Accounting/BankTransfersDelete.cs | 117 ++++ .../Model/Accounting/CreditNote.cs | 15 + .../Model/Accounting/Invoice.cs | 19 +- .../Model/Accounting/Overpayment.cs | 15 + .../Model/Accounting/Payment.cs | 15 + .../Model/Accounting/Prepayment.cs | 15 + .../Model/Accounting/TrackingReference.cs | 175 ++++++ .../Xero.NetStandard.OAuth2.csproj | 2 +- docs/accounting/index.html | 565 +++++++++++++++++- docs/appstore/index.html | 2 +- docs/assets/index.html | 2 +- docs/bankfeeds/index.html | 2 +- docs/files/index.html | 2 +- docs/finance/index.html | 2 +- docs/payroll-au-v2/index.html | 2 +- docs/payroll-au/index.html | 2 +- docs/payroll-nz/index.html | 2 +- docs/payroll-uk/index.html | 2 +- docs/projects/index.html | 2 +- 35 files changed, 1546 insertions(+), 38 deletions(-) create mode 100644 Xero.NetStandard.OAuth2/Model/Accounting/BankTransferDelete.cs create mode 100644 Xero.NetStandard.OAuth2/Model/Accounting/BankTransferDeleteByUrlParam.cs create mode 100644 Xero.NetStandard.OAuth2/Model/Accounting/BankTransfersDelete.cs create mode 100644 Xero.NetStandard.OAuth2/Model/Accounting/TrackingReference.cs diff --git a/Xero.NetStandard.OAuth2/Api/AccountingApi.cs b/Xero.NetStandard.OAuth2/Api/AccountingApi.cs index a48369d8..472fd9ee 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: 16.0.0 +// The version of the OpenAPI document: 16.1.0 using System; @@ -1783,6 +1783,68 @@ public interface IAccountingApiAsync : IApiAccessor /// Task of ApiResponse (Accounts) System.Threading.Tasks.Task> DeleteAccountAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid accountID, CancellationToken cancellationToken = default); /// + /// Deletes a specific bank transfer + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Xero API OAuth 2.0 accessToken + /// Xero identifier for Tenant + /// Xero generated unique identifier for a bank transfer + /// + /// 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 BankTransfers + System.Threading.Tasks.Task DeleteBankTransferAsync (string accessToken, string xeroTenantId, Guid bankTransferID, BankTransferDeleteByUrlParam bankTransferDeleteByUrlParam, string idempotencyKey = null, CancellationToken cancellationToken = default); + + /// + /// Deletes a specific bank transfer + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Xero API OAuth 2.0 accessToken + /// Xero identifier for Tenant + /// Xero generated unique identifier for a bank transfer + /// + /// 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 (BankTransfers) + System.Threading.Tasks.Task> DeleteBankTransferAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid bankTransferID, BankTransferDeleteByUrlParam bankTransferDeleteByUrlParam, string idempotencyKey = null, CancellationToken cancellationToken = default); + /// + /// Deletes one or more bank transfers + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Xero API OAuth 2.0 accessToken + /// Xero identifier for Tenant + /// BankTransfers with array of BankTransfer objects in request body + /// If false return 200 OK and mix of successfully created objects and any with validation errors (optional, default to false) + /// 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 BankTransfers + System.Threading.Tasks.Task DeleteBankTransfersAsync (string accessToken, string xeroTenantId, BankTransfersDelete bankTransfersDelete, bool? summarizeErrors = null, string idempotencyKey = null, CancellationToken cancellationToken = default); + + /// + /// Deletes one or more bank transfers + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Xero API OAuth 2.0 accessToken + /// Xero identifier for Tenant + /// BankTransfers with array of BankTransfer objects in request body + /// If false return 200 OK and mix of successfully created objects and any with validation errors (optional, default to false) + /// 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 (BankTransfers) + System.Threading.Tasks.Task> DeleteBankTransfersAsyncWithHttpInfo (string accessToken, string xeroTenantId, BankTransfersDelete bankTransfersDelete, bool? summarizeErrors = null, string idempotencyKey = null, CancellationToken cancellationToken = default); + /// /// Updates a specific batch payment for invoices and credit notes /// /// @@ -2641,9 +2703,10 @@ public interface IAccountingApiAsync : IApiAccessor /// Only records created or modified since this timestamp will be returned (optional) /// Filter by an any element (optional) /// Order by an any element (optional) + /// e.g. includeDeleted=true - Bank transfers with a status of DELETED will be included in the response (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of BankTransfers - System.Threading.Tasks.Task GetBankTransfersAsync (string accessToken, string xeroTenantId, DateTime? ifModifiedSince = null, string where = null, string order = null, CancellationToken cancellationToken = default); + System.Threading.Tasks.Task GetBankTransfersAsync (string accessToken, string xeroTenantId, DateTime? ifModifiedSince = null, string where = null, string order = null, bool? includeDeleted = null, CancellationToken cancellationToken = default); /// /// Retrieves all bank transfers @@ -2657,9 +2720,10 @@ public interface IAccountingApiAsync : IApiAccessor /// Only records created or modified since this timestamp will be returned (optional) /// Filter by an any element (optional) /// Order by an any element (optional) + /// e.g. includeDeleted=true - Bank transfers with a status of DELETED will be included in the response (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of ApiResponse (BankTransfers) - System.Threading.Tasks.Task> GetBankTransfersAsyncWithHttpInfo (string accessToken, string xeroTenantId, DateTime? ifModifiedSince = null, string where = null, string order = null, CancellationToken cancellationToken = default); + System.Threading.Tasks.Task> GetBankTransfersAsyncWithHttpInfo (string accessToken, string xeroTenantId, DateTime? ifModifiedSince = null, string where = null, string order = null, bool? includeDeleted = null, CancellationToken cancellationToken = default); /// /// Retrieves a specific batch payment using a unique batch payment Id /// @@ -12418,6 +12482,188 @@ public async System.Threading.Tasks.Task DeleteAccountAsync (string ac } + /// + /// Deletes a specific bank transfer + /// + /// Thrown when fails to make API call + /// Xero API OAuth 2.0 accessToken + /// Xero identifier for Tenant + /// Xero generated unique identifier for a bank transfer + /// + /// 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 BankTransfers + public async System.Threading.Tasks.Task DeleteBankTransferAsync (string accessToken, string xeroTenantId, Guid bankTransferID, BankTransferDeleteByUrlParam bankTransferDeleteByUrlParam, string idempotencyKey = null, CancellationToken cancellationToken = default) + { + Xero.NetStandard.OAuth2.Client.ApiResponse localVarResponse = await DeleteBankTransferAsyncWithHttpInfo(accessToken, xeroTenantId, bankTransferID, bankTransferDeleteByUrlParam, idempotencyKey, cancellationToken); + return localVarResponse.Data; + + } + + /// + /// Deletes a specific bank transfer + /// + /// Thrown when fails to make API call + /// Xero API OAuth 2.0 accessToken + /// Xero identifier for Tenant + /// Xero generated unique identifier for a bank transfer + /// + /// 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 (BankTransfers) + public async System.Threading.Tasks.Task> DeleteBankTransferAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid bankTransferID, BankTransferDeleteByUrlParam bankTransferDeleteByUrlParam, string idempotencyKey = null, CancellationToken cancellationToken = default) + { + // verify the required parameter 'xeroTenantId' is set + if (xeroTenantId == null) + throw new Xero.NetStandard.OAuth2.Client.ApiException(400, "Missing required parameter 'xeroTenantId' when calling AccountingApi->DeleteBankTransfer"); + + // verify the required parameter 'bankTransferID' is set + if (bankTransferID == null) + throw new Xero.NetStandard.OAuth2.Client.ApiException(400, "Missing required parameter 'bankTransferID' when calling AccountingApi->DeleteBankTransfer"); + + // verify the required parameter 'bankTransferDeleteByUrlParam' is set + if (bankTransferDeleteByUrlParam == null) + throw new Xero.NetStandard.OAuth2.Client.ApiException(400, "Missing required parameter 'bankTransferDeleteByUrlParam' when calling AccountingApi->DeleteBankTransfer"); + + + Xero.NetStandard.OAuth2.Client.RequestOptions requestOptions = new Xero.NetStandard.OAuth2.Client.RequestOptions(); + + String[] @contentTypes = new String[] { + "application/json" + }; + + // to determine the Accept header + String[] @accepts = new String[] { + "application/json" + }; + + foreach (var cType in @contentTypes) + requestOptions.HeaderParameters.Add("Content-Type", cType); + + foreach (var accept in @accepts) + requestOptions.HeaderParameters.Add("Accept", accept); + + if (bankTransferID != null) + requestOptions.PathParameters.Add("BankTransferID", Xero.NetStandard.OAuth2.Client.ClientUtils.ParameterToString(bankTransferID)); // path parameter + if (xeroTenantId != null) + requestOptions.HeaderParameters.Add("xero-tenant-id", Xero.NetStandard.OAuth2.Client.ClientUtils.ParameterToString(xeroTenantId)); // header parameter + if (idempotencyKey != null) + requestOptions.HeaderParameters.Add("Idempotency-Key", Xero.NetStandard.OAuth2.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter + requestOptions.Data = bankTransferDeleteByUrlParam; + + // authentication (OAuth2) required + // oauth required + if (!String.IsNullOrEmpty(accessToken)) + { + requestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + // make the HTTP request + + + + var response = await this.AsynchronousClient.PostAsync("/BankTransfers/{BankTransferID}", requestOptions, this.Configuration, cancellationToken); + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("DeleteBankTransfer", response); + if (exception != null) throw exception; + } + + return response; + } + + + /// + /// Deletes one or more bank transfers + /// + /// Thrown when fails to make API call + /// Xero API OAuth 2.0 accessToken + /// Xero identifier for Tenant + /// BankTransfers with array of BankTransfer objects in request body + /// If false return 200 OK and mix of successfully created objects and any with validation errors (optional, default to false) + /// 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 BankTransfers + public async System.Threading.Tasks.Task DeleteBankTransfersAsync (string accessToken, string xeroTenantId, BankTransfersDelete bankTransfersDelete, bool? summarizeErrors = null, string idempotencyKey = null, CancellationToken cancellationToken = default) + { + Xero.NetStandard.OAuth2.Client.ApiResponse localVarResponse = await DeleteBankTransfersAsyncWithHttpInfo(accessToken, xeroTenantId, bankTransfersDelete, summarizeErrors, idempotencyKey, cancellationToken); + return localVarResponse.Data; + + } + + /// + /// Deletes one or more bank transfers + /// + /// Thrown when fails to make API call + /// Xero API OAuth 2.0 accessToken + /// Xero identifier for Tenant + /// BankTransfers with array of BankTransfer objects in request body + /// If false return 200 OK and mix of successfully created objects and any with validation errors (optional, default to false) + /// 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 (BankTransfers) + public async System.Threading.Tasks.Task> DeleteBankTransfersAsyncWithHttpInfo (string accessToken, string xeroTenantId, BankTransfersDelete bankTransfersDelete, bool? summarizeErrors = null, string idempotencyKey = null, CancellationToken cancellationToken = default) + { + // verify the required parameter 'xeroTenantId' is set + if (xeroTenantId == null) + throw new Xero.NetStandard.OAuth2.Client.ApiException(400, "Missing required parameter 'xeroTenantId' when calling AccountingApi->DeleteBankTransfers"); + + // verify the required parameter 'bankTransfersDelete' is set + if (bankTransfersDelete == null) + throw new Xero.NetStandard.OAuth2.Client.ApiException(400, "Missing required parameter 'bankTransfersDelete' when calling AccountingApi->DeleteBankTransfers"); + + + Xero.NetStandard.OAuth2.Client.RequestOptions requestOptions = new Xero.NetStandard.OAuth2.Client.RequestOptions(); + + String[] @contentTypes = new String[] { + "application/json" + }; + + // to determine the Accept header + String[] @accepts = new String[] { + "application/json" + }; + + foreach (var cType in @contentTypes) + requestOptions.HeaderParameters.Add("Content-Type", cType); + + foreach (var accept in @accepts) + requestOptions.HeaderParameters.Add("Accept", accept); + + + if (summarizeErrors != null) + { + requestOptions.QueryParameters.Add("summarizeErrors", summarizeErrors.ToString().ToLower()); + } + + if (xeroTenantId != null) + requestOptions.HeaderParameters.Add("xero-tenant-id", Xero.NetStandard.OAuth2.Client.ClientUtils.ParameterToString(xeroTenantId)); // header parameter + if (idempotencyKey != null) + requestOptions.HeaderParameters.Add("Idempotency-Key", Xero.NetStandard.OAuth2.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter + requestOptions.Data = bankTransfersDelete; + + // authentication (OAuth2) required + // oauth required + if (!String.IsNullOrEmpty(accessToken)) + { + requestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + // make the HTTP request + + + + var response = await this.AsynchronousClient.PostAsync("/BankTransfers", requestOptions, this.Configuration, cancellationToken); + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("DeleteBankTransfers", response); + if (exception != null) throw exception; + } + + return response; + } + + /// /// Updates a specific batch payment for invoices and credit notes /// @@ -14984,11 +15230,12 @@ public async System.Threading.Tasks.Task GetBankTransferHistoryA /// Only records created or modified since this timestamp will be returned (optional) /// Filter by an any element (optional) /// Order by an any element (optional) + /// e.g. includeDeleted=true - Bank transfers with a status of DELETED will be included in the response (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of BankTransfers - public async System.Threading.Tasks.Task GetBankTransfersAsync (string accessToken, string xeroTenantId, DateTime? ifModifiedSince = null, string where = null, string order = null, CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task GetBankTransfersAsync (string accessToken, string xeroTenantId, DateTime? ifModifiedSince = null, string where = null, string order = null, bool? includeDeleted = null, CancellationToken cancellationToken = default) { - Xero.NetStandard.OAuth2.Client.ApiResponse localVarResponse = await GetBankTransfersAsyncWithHttpInfo(accessToken, xeroTenantId, ifModifiedSince, where, order, cancellationToken); + Xero.NetStandard.OAuth2.Client.ApiResponse localVarResponse = await GetBankTransfersAsyncWithHttpInfo(accessToken, xeroTenantId, ifModifiedSince, where, order, includeDeleted, cancellationToken); return localVarResponse.Data; } @@ -15002,9 +15249,10 @@ public async System.Threading.Tasks.Task GetBankTransfersAsync (s /// Only records created or modified since this timestamp will be returned (optional) /// Filter by an any element (optional) /// Order by an any element (optional) + /// e.g. includeDeleted=true - Bank transfers with a status of DELETED will be included in the response (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of ApiResponse (BankTransfers) - public async System.Threading.Tasks.Task> GetBankTransfersAsyncWithHttpInfo (string accessToken, string xeroTenantId, DateTime? ifModifiedSince = null, string where = null, string order = null, CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task> GetBankTransfersAsyncWithHttpInfo (string accessToken, string xeroTenantId, DateTime? ifModifiedSince = null, string where = null, string order = null, bool? includeDeleted = null, CancellationToken cancellationToken = default) { // verify the required parameter 'xeroTenantId' is set if (xeroTenantId == null) @@ -15049,6 +15297,12 @@ public async System.Threading.Tasks.Task GetBankTransfersAsync (s } } } + + if (includeDeleted != null) + { + requestOptions.QueryParameters.Add("includeDeleted", includeDeleted.ToString().ToLower()); + } + if (xeroTenantId != null) requestOptions.HeaderParameters.Add("xero-tenant-id", Xero.NetStandard.OAuth2.Client.ClientUtils.ParameterToString(xeroTenantId)); // header parameter if (ifModifiedSince != null) diff --git a/Xero.NetStandard.OAuth2/Api/AppStoreApi.cs b/Xero.NetStandard.OAuth2/Api/AppStoreApi.cs index 567f77af..14906695 100644 --- a/Xero.NetStandard.OAuth2/Api/AppStoreApi.cs +++ b/Xero.NetStandard.OAuth2/Api/AppStoreApi.cs @@ -7,7 +7,7 @@ * Generated by: https://github.com/openapitools/openapi-generator.git */ -// The version of the OpenAPI document: 16.0.0 +// The version of the OpenAPI document: 16.1.0 using System; diff --git a/Xero.NetStandard.OAuth2/Api/AssetApi.cs b/Xero.NetStandard.OAuth2/Api/AssetApi.cs index 7734f500..2596e82f 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: 16.0.0 +// The version of the OpenAPI document: 16.1.0 using System; diff --git a/Xero.NetStandard.OAuth2/Api/BankFeedsApi.cs b/Xero.NetStandard.OAuth2/Api/BankFeedsApi.cs index 227399da..1e332625 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: 16.0.0 +// The version of the OpenAPI document: 16.1.0 using System; diff --git a/Xero.NetStandard.OAuth2/Api/FilesApi.cs b/Xero.NetStandard.OAuth2/Api/FilesApi.cs index 522c0746..a4ee97ae 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: 16.0.0 +// The version of the OpenAPI document: 16.1.0 using System; diff --git a/Xero.NetStandard.OAuth2/Api/FinanceApi.cs b/Xero.NetStandard.OAuth2/Api/FinanceApi.cs index c88d0e3d..d85014e6 100644 --- a/Xero.NetStandard.OAuth2/Api/FinanceApi.cs +++ b/Xero.NetStandard.OAuth2/Api/FinanceApi.cs @@ -7,7 +7,7 @@ * Generated by: https://github.com/openapitools/openapi-generator.git */ -// The version of the OpenAPI document: 16.0.0 +// The version of the OpenAPI document: 16.1.0 using System; diff --git a/Xero.NetStandard.OAuth2/Api/IdentityApi.cs b/Xero.NetStandard.OAuth2/Api/IdentityApi.cs index e905a675..b35f7db8 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: 16.0.0 +// The version of the OpenAPI document: 16.1.0 using System; diff --git a/Xero.NetStandard.OAuth2/Api/PayrollAUApi.cs b/Xero.NetStandard.OAuth2/Api/PayrollAUApi.cs index 44507198..3432a067 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: 16.0.0 +// The version of the OpenAPI document: 16.1.0 using System; diff --git a/Xero.NetStandard.OAuth2/Api/PayrollAUV2Api.cs b/Xero.NetStandard.OAuth2/Api/PayrollAUV2Api.cs index fa7ec21d..7fba2aaf 100644 --- a/Xero.NetStandard.OAuth2/Api/PayrollAUV2Api.cs +++ b/Xero.NetStandard.OAuth2/Api/PayrollAUV2Api.cs @@ -7,7 +7,7 @@ * Generated by: https://github.com/openapitools/openapi-generator.git */ -// The version of the OpenAPI document: 16.0.0 +// The version of the OpenAPI document: 16.1.0 using System; diff --git a/Xero.NetStandard.OAuth2/Api/PayrollNZApi.cs b/Xero.NetStandard.OAuth2/Api/PayrollNZApi.cs index 53b261b6..f8d7326e 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: 16.0.0 +// The version of the OpenAPI document: 16.1.0 using System; diff --git a/Xero.NetStandard.OAuth2/Api/PayrollUkApi.cs b/Xero.NetStandard.OAuth2/Api/PayrollUkApi.cs index 87138647..9a04afc2 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: 16.0.0 +// The version of the OpenAPI document: 16.1.0 using System; diff --git a/Xero.NetStandard.OAuth2/Api/ProjectApi.cs b/Xero.NetStandard.OAuth2/Api/ProjectApi.cs index 778972ee..938c3201 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: 16.0.0 +// The version of the OpenAPI document: 16.1.0 using System; diff --git a/Xero.NetStandard.OAuth2/Client/Configuration.cs b/Xero.NetStandard.OAuth2/Client/Configuration.cs index 5c7fdf23..6f54bed2 100644 --- a/Xero.NetStandard.OAuth2/Client/Configuration.cs +++ b/Xero.NetStandard.OAuth2/Client/Configuration.cs @@ -31,7 +31,7 @@ public class Configuration : IReadableConfiguration /// Version of the package. /// /// Version of the package. - public const string Version = "17.0.0"; + public const string Version = "18.0.0"; /// /// Identifier for ISO 8601 DateTime Format @@ -103,7 +103,7 @@ public class Configuration : IReadableConfiguration [System.Diagnostics.CodeAnalysis.SuppressMessage("ReSharper", "VirtualMemberCallInConstructor")] public Configuration() { - UserAgent = "xero-netstandard-17.0.0"; + UserAgent = "xero-netstandard-18.0.0"; BasePath = "https://api.xero.com/api.xro/2.0"; DefaultHeader = new ConcurrentDictionary(); ApiKey = new ConcurrentDictionary(); @@ -341,8 +341,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: 16.0.0\n"; - report += " SDK Package Version: 17.0.0\n"; + report += " Version of the API: 16.1.0\n"; + report += " SDK Package Version: 18.0.0\n"; return report; } diff --git a/Xero.NetStandard.OAuth2/Model/Accounting/BankTransfer.cs b/Xero.NetStandard.OAuth2/Model/Accounting/BankTransfer.cs index 3288e60d..9b25d596 100644 --- a/Xero.NetStandard.OAuth2/Model/Accounting/BankTransfer.cs +++ b/Xero.NetStandard.OAuth2/Model/Accounting/BankTransfer.cs @@ -30,12 +30,41 @@ namespace Xero.NetStandard.OAuth2.Model.Accounting [DataContract] public partial class BankTransfer : IEquatable, IValidatableObject { + /// + /// AUTHORISED or DELETED (read-only). New bank transfers will have a status of AUTHORISED. + /// + /// AUTHORISED or DELETED (read-only). New bank transfers will have a status of AUTHORISED. + [JsonConverter(typeof(Client.CustomStringEnumConverter))] + public enum StatusEnum + { + /// + /// Enum AUTHORISED for value: AUTHORISED + /// + [EnumMember(Value = "AUTHORISED")] + AUTHORISED = 1, + + /// + /// Enum DELETED for value: DELETED + /// + [EnumMember(Value = "DELETED")] + DELETED = 2 + + } + + /// + /// AUTHORISED or DELETED (read-only). New bank transfers will have a status of AUTHORISED. + /// + /// AUTHORISED or DELETED (read-only). New bank transfers will have a status of AUTHORISED. + [DataMember(Name="Status", EmitDefaultValue=false)] + public StatusEnum Status { get; set; } /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] public BankTransfer() { + FromTracking = new List(); + ToTracking = new List(); ValidationErrors = new List(); } @@ -128,6 +157,20 @@ public BankTransfer() [DataMember(Name="CreatedDateUTC", EmitDefaultValue=false)] public DateTime? CreatedDateUTC { get; private set; } + /// + /// Optional Tracking Category for the source account – see Tracking. A bank transfer can have a maximum of 2 tracking categories per account. + /// + /// Optional Tracking Category for the source account – see Tracking. A bank transfer can have a maximum of 2 tracking categories per account. + [DataMember(Name="FromTracking", EmitDefaultValue=false)] + public List FromTracking { get; set; } + + /// + /// Optional Tracking Category for the destination account – see Tracking. A bank transfer can have a maximum of 2 tracking categories per account. + /// + /// Optional Tracking Category for the destination account – see Tracking. A bank transfer can have a maximum of 2 tracking categories per account. + [DataMember(Name="ToTracking", EmitDefaultValue=false)] + public List ToTracking { get; set; } + /// /// Displays array of validation error messages from the API /// @@ -156,6 +199,9 @@ public override string ToString() sb.Append(" Reference: ").Append(Reference).Append("\n"); sb.Append(" HasAttachments: ").Append(HasAttachments).Append("\n"); sb.Append(" CreatedDateUTC: ").Append(CreatedDateUTC).Append("\n"); + sb.Append(" Status: ").Append(Status).Append("\n"); + sb.Append(" FromTracking: ").Append(FromTracking).Append("\n"); + sb.Append(" ToTracking: ").Append(ToTracking).Append("\n"); sb.Append(" ValidationErrors: ").Append(ValidationErrors).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -256,6 +302,22 @@ public bool Equals(BankTransfer input) (this.CreatedDateUTC != null && this.CreatedDateUTC.Equals(input.CreatedDateUTC)) ) && + ( + this.Status == input.Status || + this.Status.Equals(input.Status) + ) && + ( + this.FromTracking == input.FromTracking || + this.FromTracking != null && + input.FromTracking != null && + this.FromTracking.SequenceEqual(input.FromTracking) + ) && + ( + this.ToTracking == input.ToTracking || + this.ToTracking != null && + input.ToTracking != null && + this.ToTracking.SequenceEqual(input.ToTracking) + ) && ( this.ValidationErrors == input.ValidationErrors || this.ValidationErrors != null && @@ -299,6 +361,11 @@ public override int GetHashCode() hashCode = hashCode * 59 + this.HasAttachments.GetHashCode(); if (this.CreatedDateUTC != null) hashCode = hashCode * 59 + this.CreatedDateUTC.GetHashCode(); + hashCode = hashCode * 59 + this.Status.GetHashCode(); + if (this.FromTracking != null) + hashCode = hashCode * 59 + this.FromTracking.GetHashCode(); + if (this.ToTracking != null) + hashCode = hashCode * 59 + this.ToTracking.GetHashCode(); if (this.ValidationErrors != null) hashCode = hashCode * 59 + this.ValidationErrors.GetHashCode(); return hashCode; diff --git a/Xero.NetStandard.OAuth2/Model/Accounting/BankTransferDelete.cs b/Xero.NetStandard.OAuth2/Model/Accounting/BankTransferDelete.cs new file mode 100644 index 00000000..a336804f --- /dev/null +++ b/Xero.NetStandard.OAuth2/Model/Accounting/BankTransferDelete.cs @@ -0,0 +1,139 @@ +/* + * Xero Accounting API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * Contact: api@xero.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Text.RegularExpressions; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Xero.NetStandard.OAuth2.Client.OpenAPIDateConverter; + +namespace Xero.NetStandard.OAuth2.Model.Accounting +{ + /// + /// BankTransferDelete + /// + [DataContract] + public partial class BankTransferDelete : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + public BankTransferDelete() + { + } + + /// + /// The Xero identifier for a bank transfer + /// + /// The Xero identifier for a bank transfer + [DataMember(Name="BankTransferID", EmitDefaultValue=false)] + public Guid? BankTransferID { get; set; } + + /// + /// The status of the bank transfer. + /// + /// The status of the bank transfer. + [DataMember(Name="Status", EmitDefaultValue=false)] + public string Status { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class BankTransferDelete {\n"); + sb.Append(" BankTransferID: ").Append(BankTransferID).Append("\n"); + sb.Append(" Status: ").Append(Status).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as BankTransferDelete); + } + + /// + /// Returns true if BankTransferDelete instances are equal + /// + /// Instance of BankTransferDelete to be compared + /// Boolean + public bool Equals(BankTransferDelete input) + { + if (input == null) + return false; + + return + ( + this.BankTransferID == input.BankTransferID || + (this.BankTransferID != null && + this.BankTransferID.Equals(input.BankTransferID)) + ) && + ( + this.Status == input.Status || + (this.Status != null && + this.Status.Equals(input.Status)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.BankTransferID != null) + hashCode = hashCode * 59 + this.BankTransferID.GetHashCode(); + if (this.Status != null) + hashCode = hashCode * 59 + this.Status.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Xero.NetStandard.OAuth2/Model/Accounting/BankTransferDeleteByUrlParam.cs b/Xero.NetStandard.OAuth2/Model/Accounting/BankTransferDeleteByUrlParam.cs new file mode 100644 index 00000000..81837b0d --- /dev/null +++ b/Xero.NetStandard.OAuth2/Model/Accounting/BankTransferDeleteByUrlParam.cs @@ -0,0 +1,124 @@ +/* + * Xero Accounting API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * Contact: api@xero.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Text.RegularExpressions; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Xero.NetStandard.OAuth2.Client.OpenAPIDateConverter; + +namespace Xero.NetStandard.OAuth2.Model.Accounting +{ + /// + /// BankTransferDeleteByUrlParam + /// + [DataContract] + public partial class BankTransferDeleteByUrlParam : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + public BankTransferDeleteByUrlParam() + { + } + + /// + /// The status of the bank transfer. + /// + /// The status of the bank transfer. + [DataMember(Name="Status", EmitDefaultValue=false)] + public string Status { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class BankTransferDeleteByUrlParam {\n"); + sb.Append(" Status: ").Append(Status).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as BankTransferDeleteByUrlParam); + } + + /// + /// Returns true if BankTransferDeleteByUrlParam instances are equal + /// + /// Instance of BankTransferDeleteByUrlParam to be compared + /// Boolean + public bool Equals(BankTransferDeleteByUrlParam input) + { + if (input == null) + return false; + + return + ( + this.Status == input.Status || + (this.Status != null && + this.Status.Equals(input.Status)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Status != null) + hashCode = hashCode * 59 + this.Status.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Xero.NetStandard.OAuth2/Model/Accounting/BankTransfersDelete.cs b/Xero.NetStandard.OAuth2/Model/Accounting/BankTransfersDelete.cs new file mode 100644 index 00000000..341def70 --- /dev/null +++ b/Xero.NetStandard.OAuth2/Model/Accounting/BankTransfersDelete.cs @@ -0,0 +1,117 @@ +/* + * Xero Accounting API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * Contact: api@xero.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Text.RegularExpressions; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Xero.NetStandard.OAuth2.Client.OpenAPIDateConverter; + +namespace Xero.NetStandard.OAuth2.Model.Accounting +{ + /// + /// BankTransfersDelete + /// + [DataContract] + public partial class BankTransfersDelete : IEquatable, IValidatableObject + { + + /// + /// Gets or Sets BankTransfers + /// + [DataMember(Name="BankTransfers", EmitDefaultValue=false)] + public List BankTransfers { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class BankTransfersDelete {\n"); + sb.Append(" BankTransfers: ").Append(BankTransfers).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as BankTransfersDelete); + } + + /// + /// Returns true if BankTransfersDelete instances are equal + /// + /// Instance of BankTransfersDelete to be compared + /// Boolean + public bool Equals(BankTransfersDelete input) + { + if (input == null) + return false; + + return + ( + this.BankTransfers == input.BankTransfers || + this.BankTransfers != null && + input.BankTransfers != null && + this.BankTransfers.SequenceEqual(input.BankTransfers) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.BankTransfers != null) + hashCode = hashCode * 59 + this.BankTransfers.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Xero.NetStandard.OAuth2/Model/Accounting/CreditNote.cs b/Xero.NetStandard.OAuth2/Model/Accounting/CreditNote.cs index 3424ce11..ae79fc62 100644 --- a/Xero.NetStandard.OAuth2/Model/Accounting/CreditNote.cs +++ b/Xero.NetStandard.OAuth2/Model/Accounting/CreditNote.cs @@ -188,6 +188,13 @@ public enum StatusEnum [DataMember(Name="UpdatedDateUTC", EmitDefaultValue=false)] public DateTime? UpdatedDateUTC { get; private set; } + /// + /// UTC ISO-8601 formatted timestamp of last update to the credit note + /// + /// UTC ISO-8601 formatted timestamp of last update to the credit note + [DataMember(Name="UpdatedDateUTCString", EmitDefaultValue=false)] + public string UpdatedDateUTCString { get; private set; } + /// /// Date when credit note was fully paid(UTC format) /// @@ -328,6 +335,7 @@ public override string ToString() sb.Append(" CISDeduction: ").Append(CISDeduction).Append("\n"); sb.Append(" CISRate: ").Append(CISRate).Append("\n"); sb.Append(" UpdatedDateUTC: ").Append(UpdatedDateUTC).Append("\n"); + sb.Append(" UpdatedDateUTCString: ").Append(UpdatedDateUTCString).Append("\n"); sb.Append(" CurrencyCode: ").Append(CurrencyCode).Append("\n"); sb.Append(" FullyPaidOnDate: ").Append(FullyPaidOnDate).Append("\n"); sb.Append(" CreditNoteID: ").Append(CreditNoteID).Append("\n"); @@ -443,6 +451,11 @@ public bool Equals(CreditNote input) (this.UpdatedDateUTC != null && this.UpdatedDateUTC.Equals(input.UpdatedDateUTC)) ) && + ( + this.UpdatedDateUTCString == input.UpdatedDateUTCString || + (this.UpdatedDateUTCString != null && + this.UpdatedDateUTCString.Equals(input.UpdatedDateUTCString)) + ) && ( this.CurrencyCode == input.CurrencyCode || this.CurrencyCode.Equals(input.CurrencyCode) @@ -571,6 +584,8 @@ public override int GetHashCode() hashCode = hashCode * 59 + this.CISRate.GetHashCode(); if (this.UpdatedDateUTC != null) hashCode = hashCode * 59 + this.UpdatedDateUTC.GetHashCode(); + if (this.UpdatedDateUTCString != null) + hashCode = hashCode * 59 + this.UpdatedDateUTCString.GetHashCode(); hashCode = hashCode * 59 + this.CurrencyCode.GetHashCode(); if (this.FullyPaidOnDate != null) hashCode = hashCode * 59 + this.FullyPaidOnDate.GetHashCode(); diff --git a/Xero.NetStandard.OAuth2/Model/Accounting/Invoice.cs b/Xero.NetStandard.OAuth2/Model/Accounting/Invoice.cs index a3ae7f37..6262b512 100644 --- a/Xero.NetStandard.OAuth2/Model/Accounting/Invoice.cs +++ b/Xero.NetStandard.OAuth2/Model/Accounting/Invoice.cs @@ -358,12 +358,19 @@ public enum StatusEnum public decimal? AmountCredited { get; private set; } /// - /// Last modified date UTC format + /// UTC timestamp of last update to the invoice /// - /// Last modified date UTC format + /// UTC timestamp of last update to the invoice [DataMember(Name="UpdatedDateUTC", EmitDefaultValue=false)] public DateTime? UpdatedDateUTC { get; private set; } + /// + /// UTC ISO-8601 formatted timestamp of last update to the invoice + /// + /// UTC ISO-8601 formatted timestamp of last update to the invoice + [DataMember(Name="UpdatedDateUTCString", EmitDefaultValue=false)] + public string UpdatedDateUTCString { get; private set; } + /// /// Details of credit notes that have been applied to an invoice /// @@ -455,6 +462,7 @@ public override string ToString() sb.Append(" FullyPaidOnDate: ").Append(FullyPaidOnDate).Append("\n"); sb.Append(" AmountCredited: ").Append(AmountCredited).Append("\n"); sb.Append(" UpdatedDateUTC: ").Append(UpdatedDateUTC).Append("\n"); + sb.Append(" UpdatedDateUTCString: ").Append(UpdatedDateUTCString).Append("\n"); sb.Append(" CreditNotes: ").Append(CreditNotes).Append("\n"); sb.Append(" Attachments: ").Append(Attachments).Append("\n"); sb.Append(" HasErrors: ").Append(HasErrors).Append("\n"); @@ -666,6 +674,11 @@ public bool Equals(Invoice input) (this.UpdatedDateUTC != null && this.UpdatedDateUTC.Equals(input.UpdatedDateUTC)) ) && + ( + this.UpdatedDateUTCString == input.UpdatedDateUTCString || + (this.UpdatedDateUTCString != null && + this.UpdatedDateUTCString.Equals(input.UpdatedDateUTCString)) + ) && ( this.CreditNotes == input.CreditNotes || this.CreditNotes != null && @@ -781,6 +794,8 @@ public override int GetHashCode() hashCode = hashCode * 59 + this.AmountCredited.GetHashCode(); if (this.UpdatedDateUTC != null) hashCode = hashCode * 59 + this.UpdatedDateUTC.GetHashCode(); + if (this.UpdatedDateUTCString != null) + hashCode = hashCode * 59 + this.UpdatedDateUTCString.GetHashCode(); if (this.CreditNotes != null) hashCode = hashCode * 59 + this.CreditNotes.GetHashCode(); if (this.Attachments != null) diff --git a/Xero.NetStandard.OAuth2/Model/Accounting/Overpayment.cs b/Xero.NetStandard.OAuth2/Model/Accounting/Overpayment.cs index 95881c21..9fac5906 100644 --- a/Xero.NetStandard.OAuth2/Model/Accounting/Overpayment.cs +++ b/Xero.NetStandard.OAuth2/Model/Accounting/Overpayment.cs @@ -155,6 +155,13 @@ public enum StatusEnum [DataMember(Name="UpdatedDateUTC", EmitDefaultValue=false)] public DateTime? UpdatedDateUTC { get; private set; } + /// + /// UTC ISO-8601 formatted timestamp of last update to the overpayment + /// + /// UTC ISO-8601 formatted timestamp of last update to the overpayment + [DataMember(Name="UpdatedDateUTCString", EmitDefaultValue=false)] + public string UpdatedDateUTCString { get; private set; } + /// /// Xero generated unique identifier /// @@ -236,6 +243,7 @@ public override string ToString() sb.Append(" TotalTax: ").Append(TotalTax).Append("\n"); sb.Append(" Total: ").Append(Total).Append("\n"); sb.Append(" UpdatedDateUTC: ").Append(UpdatedDateUTC).Append("\n"); + sb.Append(" UpdatedDateUTCString: ").Append(UpdatedDateUTCString).Append("\n"); sb.Append(" CurrencyCode: ").Append(CurrencyCode).Append("\n"); sb.Append(" OverpaymentID: ").Append(OverpaymentID).Append("\n"); sb.Append(" CurrencyRate: ").Append(CurrencyRate).Append("\n"); @@ -328,6 +336,11 @@ public bool Equals(Overpayment input) (this.UpdatedDateUTC != null && this.UpdatedDateUTC.Equals(input.UpdatedDateUTC)) ) && + ( + this.UpdatedDateUTCString == input.UpdatedDateUTCString || + (this.UpdatedDateUTCString != null && + this.UpdatedDateUTCString.Equals(input.UpdatedDateUTCString)) + ) && ( this.CurrencyCode == input.CurrencyCode || this.CurrencyCode.Equals(input.CurrencyCode) @@ -408,6 +421,8 @@ public override int GetHashCode() hashCode = hashCode * 59 + this.Total.GetHashCode(); if (this.UpdatedDateUTC != null) hashCode = hashCode * 59 + this.UpdatedDateUTC.GetHashCode(); + if (this.UpdatedDateUTCString != null) + hashCode = hashCode * 59 + this.UpdatedDateUTCString.GetHashCode(); hashCode = hashCode * 59 + this.CurrencyCode.GetHashCode(); if (this.OverpaymentID != null) hashCode = hashCode * 59 + this.OverpaymentID.GetHashCode(); diff --git a/Xero.NetStandard.OAuth2/Model/Accounting/Payment.cs b/Xero.NetStandard.OAuth2/Model/Accounting/Payment.cs index 49faf622..a27f49a3 100644 --- a/Xero.NetStandard.OAuth2/Model/Accounting/Payment.cs +++ b/Xero.NetStandard.OAuth2/Model/Accounting/Payment.cs @@ -227,6 +227,13 @@ public enum PaymentTypeEnum [DataMember(Name="UpdatedDateUTC", EmitDefaultValue=false)] public DateTime? UpdatedDateUTC { get; private set; } + /// + /// UTC ISO-8601 formatted timestamp of last update to the payment + /// + /// UTC ISO-8601 formatted timestamp of last update to the payment + [DataMember(Name="UpdatedDateUTCString", EmitDefaultValue=false)] + public string UpdatedDateUTCString { get; private set; } + /// /// The Xero identifier for an Payment e.g. 297c2dc5-cc47-4afd-8ec8-74990b8761e9 /// @@ -323,6 +330,7 @@ public override string ToString() sb.Append(" Status: ").Append(Status).Append("\n"); sb.Append(" PaymentType: ").Append(PaymentType).Append("\n"); sb.Append(" UpdatedDateUTC: ").Append(UpdatedDateUTC).Append("\n"); + sb.Append(" UpdatedDateUTCString: ").Append(UpdatedDateUTCString).Append("\n"); sb.Append(" PaymentID: ").Append(PaymentID).Append("\n"); sb.Append(" BatchPaymentID: ").Append(BatchPaymentID).Append("\n"); sb.Append(" BankAccountNumber: ").Append(BankAccountNumber).Append("\n"); @@ -455,6 +463,11 @@ public bool Equals(Payment input) (this.UpdatedDateUTC != null && this.UpdatedDateUTC.Equals(input.UpdatedDateUTC)) ) && + ( + this.UpdatedDateUTCString == input.UpdatedDateUTCString || + (this.UpdatedDateUTCString != null && + this.UpdatedDateUTCString.Equals(input.UpdatedDateUTCString)) + ) && ( this.PaymentID == input.PaymentID || (this.PaymentID != null && @@ -552,6 +565,8 @@ public override int GetHashCode() hashCode = hashCode * 59 + this.PaymentType.GetHashCode(); if (this.UpdatedDateUTC != null) hashCode = hashCode * 59 + this.UpdatedDateUTC.GetHashCode(); + if (this.UpdatedDateUTCString != null) + hashCode = hashCode * 59 + this.UpdatedDateUTCString.GetHashCode(); if (this.PaymentID != null) hashCode = hashCode * 59 + this.PaymentID.GetHashCode(); if (this.BatchPaymentID != null) diff --git a/Xero.NetStandard.OAuth2/Model/Accounting/Prepayment.cs b/Xero.NetStandard.OAuth2/Model/Accounting/Prepayment.cs index f5e72cf1..784b6ca8 100644 --- a/Xero.NetStandard.OAuth2/Model/Accounting/Prepayment.cs +++ b/Xero.NetStandard.OAuth2/Model/Accounting/Prepayment.cs @@ -175,6 +175,13 @@ public enum StatusEnum [DataMember(Name="UpdatedDateUTC", EmitDefaultValue=false)] public DateTime? UpdatedDateUTC { get; private set; } + /// + /// UTC ISO-8601 formatted timestamp of last update to the prepayment + /// + /// UTC ISO-8601 formatted timestamp of last update to the prepayment + [DataMember(Name="UpdatedDateUTCString", EmitDefaultValue=false)] + public string UpdatedDateUTCString { get; private set; } + /// /// Xero generated unique identifier /// @@ -258,6 +265,7 @@ public override string ToString() sb.Append(" Reference: ").Append(Reference).Append("\n"); sb.Append(" InvoiceNumber: ").Append(InvoiceNumber).Append("\n"); sb.Append(" UpdatedDateUTC: ").Append(UpdatedDateUTC).Append("\n"); + sb.Append(" UpdatedDateUTCString: ").Append(UpdatedDateUTCString).Append("\n"); sb.Append(" CurrencyCode: ").Append(CurrencyCode).Append("\n"); sb.Append(" PrepaymentID: ").Append(PrepaymentID).Append("\n"); sb.Append(" BrandingThemeID: ").Append(BrandingThemeID).Append("\n"); @@ -360,6 +368,11 @@ public bool Equals(Prepayment input) (this.UpdatedDateUTC != null && this.UpdatedDateUTC.Equals(input.UpdatedDateUTC)) ) && + ( + this.UpdatedDateUTCString == input.UpdatedDateUTCString || + (this.UpdatedDateUTCString != null && + this.UpdatedDateUTCString.Equals(input.UpdatedDateUTCString)) + ) && ( this.CurrencyCode == input.CurrencyCode || this.CurrencyCode.Equals(input.CurrencyCode) @@ -444,6 +457,8 @@ public override int GetHashCode() hashCode = hashCode * 59 + this.InvoiceNumber.GetHashCode(); if (this.UpdatedDateUTC != null) hashCode = hashCode * 59 + this.UpdatedDateUTC.GetHashCode(); + if (this.UpdatedDateUTCString != null) + hashCode = hashCode * 59 + this.UpdatedDateUTCString.GetHashCode(); hashCode = hashCode * 59 + this.CurrencyCode.GetHashCode(); if (this.PrepaymentID != null) hashCode = hashCode * 59 + this.PrepaymentID.GetHashCode(); diff --git a/Xero.NetStandard.OAuth2/Model/Accounting/TrackingReference.cs b/Xero.NetStandard.OAuth2/Model/Accounting/TrackingReference.cs new file mode 100644 index 00000000..a75ee445 --- /dev/null +++ b/Xero.NetStandard.OAuth2/Model/Accounting/TrackingReference.cs @@ -0,0 +1,175 @@ +/* + * Xero Accounting API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * Contact: api@xero.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Text.RegularExpressions; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Xero.NetStandard.OAuth2.Client.OpenAPIDateConverter; + +namespace Xero.NetStandard.OAuth2.Model.Accounting +{ + /// + /// TrackingReference + /// + [DataContract] + public partial class TrackingReference : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + public TrackingReference() + { + } + + /// + /// The Xero identifier for a tracking category + /// + /// The Xero identifier for a tracking category + [DataMember(Name="TrackingCategoryID", EmitDefaultValue=false)] + public Guid? TrackingCategoryID { get; set; } + + /// + /// The Xero identifier for a tracking category option + /// + /// The Xero identifier for a tracking category option + [DataMember(Name="TrackingOptionID", EmitDefaultValue=false)] + public Guid? TrackingOptionID { get; set; } + + /// + /// The name of the tracking category + /// + /// The name of the tracking category + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; private set; } + + /// + /// See Tracking Options + /// + /// See Tracking Options + [DataMember(Name="Option", EmitDefaultValue=false)] + public string Option { get; private set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class TrackingReference {\n"); + sb.Append(" TrackingCategoryID: ").Append(TrackingCategoryID).Append("\n"); + sb.Append(" TrackingOptionID: ").Append(TrackingOptionID).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Option: ").Append(Option).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as TrackingReference); + } + + /// + /// Returns true if TrackingReference instances are equal + /// + /// Instance of TrackingReference to be compared + /// Boolean + public bool Equals(TrackingReference input) + { + if (input == null) + return false; + + return + ( + this.TrackingCategoryID == input.TrackingCategoryID || + (this.TrackingCategoryID != null && + this.TrackingCategoryID.Equals(input.TrackingCategoryID)) + ) && + ( + this.TrackingOptionID == input.TrackingOptionID || + (this.TrackingOptionID != null && + this.TrackingOptionID.Equals(input.TrackingOptionID)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Option == input.Option || + (this.Option != null && + this.Option.Equals(input.Option)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.TrackingCategoryID != null) + hashCode = hashCode * 59 + this.TrackingCategoryID.GetHashCode(); + if (this.TrackingOptionID != null) + hashCode = hashCode * 59 + this.TrackingOptionID.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Option != null) + hashCode = hashCode * 59 + this.Option.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + // Name (string) maxLength + if(this.Name != null && this.Name.Length > 100) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Name, length must be less than 100.", new [] { "Name" }); + } + + yield break; + } + } + +} diff --git a/Xero.NetStandard.OAuth2/Xero.NetStandard.OAuth2.csproj b/Xero.NetStandard.OAuth2/Xero.NetStandard.OAuth2.csproj index 8cc0706d..439e5fbb 100644 --- a/Xero.NetStandard.OAuth2/Xero.NetStandard.OAuth2.csproj +++ b/Xero.NetStandard.OAuth2/Xero.NetStandard.OAuth2.csproj @@ -16,7 +16,7 @@ true true Xero.NetStandard.OAuth2 - 17.0.0 + 18.0.0 bin\$(Configuration)\$(TargetFramework)\Xero.NetStandard.OAuth2.xml https://github.com/XeroAPI/Xero-NetStandard/ https://en.gravatar.com/userimage/180557955/74b3a957d886bc921b0d1455beed9dab.png diff --git a/docs/accounting/index.html b/docs/accounting/index.html index 0e477bd8..0fc9d264 100644 --- a/docs/accounting/index.html +++ b/docs/accounting/index.html @@ -1562,6 +1562,26 @@ "example" : "/Date(1573755038314)/", "x-is-msdate-time" : true }, + "Status" : { + "type" : "string", + "description" : "AUTHORISED or DELETED (read-only). New bank transfers will have a status of AUTHORISED.", + "readOnly" : true, + "enum" : [ "AUTHORISED", "DELETED" ] + }, + "FromTracking" : { + "type" : "array", + "description" : "Optional Tracking Category for the source account – see Tracking. A bank transfer can have a maximum of 2 tracking categories per account.", + "items" : { + "$ref" : "#/components/schemas/TrackingReference" + } + }, + "ToTracking" : { + "type" : "array", + "description" : "Optional Tracking Category for the destination account – see Tracking. A bank transfer can have a maximum of 2 tracking categories per account.", + "items" : { + "$ref" : "#/components/schemas/TrackingReference" + } + }, "ValidationErrors" : { "type" : "array", "description" : "Displays array of validation error messages from the API", @@ -1574,6 +1594,43 @@ "externalDocs" : { "url" : "http://developer.xero.com/documentation/api/bank-transfers/" } +}; + defs["BankTransferDelete"] = { + "title" : "", + "required" : [ "BankTransferID", "Status" ], + "type" : "object", + "properties" : { + "BankTransferID" : { + "type" : "string", + "description" : "The Xero identifier for a bank transfer", + "format" : "uuid" + }, + "Status" : { + "type" : "string", + "description" : "The status of the bank transfer.", + "default" : "DELETED" + } + }, + "description" : "", + "externalDocs" : { + "url" : "http://developer.xero.com/documentation/api/bank-transfers/" + } +}; + defs["BankTransferDeleteByUrlParam"] = { + "title" : "", + "required" : [ "Status" ], + "type" : "object", + "properties" : { + "Status" : { + "type" : "string", + "description" : "The status of the bank transfer.", + "default" : "DELETED" + } + }, + "description" : "", + "externalDocs" : { + "url" : "http://developer.xero.com/documentation/api/bank-transfers/" + } }; defs["BankTransfers"] = { "title" : "", @@ -1588,6 +1645,20 @@ }, "description" : "", "x-objectArrayKey" : "bank_transfers" +}; + defs["BankTransfersDelete"] = { + "title" : "", + "type" : "object", + "properties" : { + "BankTransfers" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/BankTransferDelete" + } + } + }, + "description" : "", + "x-objectArrayKey" : "bank_transfers" }; defs["BatchPayment"] = { "title" : "", @@ -2476,6 +2547,12 @@ "example" : "/Date(1573755038314)/", "x-is-msdate-time" : true }, + "UpdatedDateUTCString" : { + "type" : "string", + "description" : "UTC ISO-8601 formatted timestamp of last update to the credit note", + "readOnly" : true, + "example" : "2019-11-14T18:10:38Z" + }, "CurrencyCode" : { "$ref" : "#/components/schemas/CurrencyCode" }, @@ -3228,11 +3305,17 @@ }, "UpdatedDateUTC" : { "type" : "string", - "description" : "Last modified date UTC format", + "description" : "UTC timestamp of last update to the invoice", "readOnly" : true, "example" : "/Date(1573755038314)/", "x-is-msdate-time" : true }, + "UpdatedDateUTCString" : { + "type" : "string", + "description" : "UTC ISO-8601 formatted timestamp of last update to the invoice", + "readOnly" : true, + "example" : "2019-11-14T18:10:38Z" + }, "CreditNotes" : { "type" : "array", "description" : "Details of credit notes that have been applied to an invoice", @@ -4310,6 +4393,12 @@ "example" : "/Date(1573755038314)/", "x-is-msdate-time" : true }, + "UpdatedDateUTCString" : { + "type" : "string", + "description" : "UTC ISO-8601 formatted timestamp of last update to the overpayment", + "readOnly" : true, + "example" : "2019-11-14T18:10:38Z" + }, "CurrencyCode" : { "$ref" : "#/components/schemas/CurrencyCode" }, @@ -4501,6 +4590,12 @@ "example" : "/Date(1573755038314)/", "x-is-msdate-time" : true }, + "UpdatedDateUTCString" : { + "type" : "string", + "description" : "UTC ISO-8601 formatted timestamp of last update to the payment", + "readOnly" : true, + "example" : "2019-11-14T18:10:38Z" + }, "PaymentID" : { "type" : "string", "description" : "The Xero identifier for an Payment e.g. 297c2dc5-cc47-4afd-8ec8-74990b8761e9", @@ -4770,6 +4865,12 @@ "example" : "/Date(1573755038314)/", "x-is-msdate-time" : true }, + "UpdatedDateUTCString" : { + "type" : "string", + "description" : "UTC ISO-8601 formatted timestamp of last update to the prepayment", + "readOnly" : true, + "example" : "2019-11-14T18:10:38Z" + }, "CurrencyCode" : { "$ref" : "#/components/schemas/CurrencyCode" }, @@ -6205,6 +6306,38 @@ }, "description" : "", "x-objectArrayKey" : "options" +}; + defs["TrackingReference"] = { + "title" : "", + "required" : [ "TrackingCategoryID", "TrackingOptionID" ], + "type" : "object", + "properties" : { + "TrackingCategoryID" : { + "type" : "string", + "description" : "The Xero identifier for a tracking category", + "format" : "uuid" + }, + "TrackingOptionID" : { + "type" : "string", + "description" : "The Xero identifier for a tracking category option", + "format" : "uuid" + }, + "Name" : { + "maxLength" : 100, + "type" : "string", + "description" : "The name of the tracking category", + "readOnly" : true + }, + "Option" : { + "type" : "string", + "description" : "See Tracking Options", + "readOnly" : true + } + }, + "description" : "", + "externalDocs" : { + "url" : "http://developer.xero.com/documentation/api/tracking-categories/" + } }; defs["User"] = { "title" : "", @@ -6362,7 +6495,7 @@