diff --git a/Xero.NetStandard.OAuth2/Api/AccountingApi.cs b/Xero.NetStandard.OAuth2/Api/AccountingApi.cs index 32f35f5f..429669b7 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: 9.0.0 +// The version of the OpenAPI document: 9.1.0 using System; @@ -695,7 +695,7 @@ public interface IAccountingApiAsync : IApiAccessor /// Creates new employees used in Xero payrun /// /// - /// + /// This endpoint is deprecated and will be removed April 28, 2026 /// /// Thrown when fails to make API call /// Xero API OAuth 2.0 accessToken @@ -705,13 +705,14 @@ public interface IAccountingApiAsync : IApiAccessor /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of Employees + [Obsolete] System.Threading.Tasks.Task CreateEmployeesAsync (string accessToken, string xeroTenantId, Employees employees, bool? summarizeErrors = null, string idempotencyKey = null, CancellationToken cancellationToken = default); /// /// Creates new employees used in Xero payrun /// /// - /// + /// This endpoint is deprecated and will be removed April 28, 2026 /// /// Thrown when fails to make API call /// Xero API OAuth 2.0 accessToken @@ -721,6 +722,7 @@ public interface IAccountingApiAsync : IApiAccessor /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of ApiResponse (Employees) + [Obsolete] System.Threading.Tasks.Task> CreateEmployeesAsyncWithHttpInfo (string accessToken, string xeroTenantId, Employees employees, bool? summarizeErrors = null, string idempotencyKey = null, CancellationToken cancellationToken = default); /// /// Creates a history record for a specific expense claim @@ -3455,7 +3457,7 @@ public interface IAccountingApiAsync : IApiAccessor /// Retrieves a specific employee used in Xero payrun using a unique employee Id /// /// - /// + /// This endpoint is deprecated and will be removed April 28, 2026 /// /// Thrown when fails to make API call /// Xero API OAuth 2.0 accessToken @@ -3463,13 +3465,14 @@ public interface IAccountingApiAsync : IApiAccessor /// Unique identifier for a Employee /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of Employees + [Obsolete] System.Threading.Tasks.Task GetEmployeeAsync (string accessToken, string xeroTenantId, Guid employeeID, CancellationToken cancellationToken = default); /// /// Retrieves a specific employee used in Xero payrun using a unique employee Id /// /// - /// + /// This endpoint is deprecated and will be removed April 28, 2026 /// /// Thrown when fails to make API call /// Xero API OAuth 2.0 accessToken @@ -3477,12 +3480,13 @@ public interface IAccountingApiAsync : IApiAccessor /// Unique identifier for a Employee /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of ApiResponse (Employees) + [Obsolete] System.Threading.Tasks.Task> GetEmployeeAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid employeeID, CancellationToken cancellationToken = default); /// /// Retrieves employees used in Xero payrun /// /// - /// + /// This endpoint is deprecated and will be removed April 28, 2026 /// /// Thrown when fails to make API call /// Xero API OAuth 2.0 accessToken @@ -3492,13 +3496,14 @@ public interface IAccountingApiAsync : IApiAccessor /// Order by an any element (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of Employees + [Obsolete] System.Threading.Tasks.Task GetEmployeesAsync (string accessToken, string xeroTenantId, DateTime? ifModifiedSince = null, string where = null, string order = null, CancellationToken cancellationToken = default); /// /// Retrieves employees used in Xero payrun /// /// - /// + /// This endpoint is deprecated and will be removed April 28, 2026 /// /// Thrown when fails to make API call /// Xero API OAuth 2.0 accessToken @@ -3508,6 +3513,7 @@ public interface IAccountingApiAsync : IApiAccessor /// Order by an any element (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of ApiResponse (Employees) + [Obsolete] System.Threading.Tasks.Task> GetEmployeesAsyncWithHttpInfo (string accessToken, string xeroTenantId, DateTime? ifModifiedSince = null, string where = null, string order = null, CancellationToken cancellationToken = default); /// /// Retrieves a specific expense claim using a unique expense claim Id @@ -6657,7 +6663,7 @@ public interface IAccountingApiAsync : IApiAccessor /// Creates a single new employees used in Xero payrun /// /// - /// + /// This endpoint is deprecated and will be removed April 28, 2026 /// /// Thrown when fails to make API call /// Xero API OAuth 2.0 accessToken @@ -6667,13 +6673,14 @@ public interface IAccountingApiAsync : IApiAccessor /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of Employees + [Obsolete] System.Threading.Tasks.Task UpdateOrCreateEmployeesAsync (string accessToken, string xeroTenantId, Employees employees, bool? summarizeErrors = null, string idempotencyKey = null, CancellationToken cancellationToken = default); /// /// Creates a single new employees used in Xero payrun /// /// - /// + /// This endpoint is deprecated and will be removed April 28, 2026 /// /// Thrown when fails to make API call /// Xero API OAuth 2.0 accessToken @@ -6683,6 +6690,7 @@ public interface IAccountingApiAsync : IApiAccessor /// This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of ApiResponse (Employees) + [Obsolete] System.Threading.Tasks.Task> UpdateOrCreateEmployeesAsyncWithHttpInfo (string accessToken, string xeroTenantId, Employees employees, bool? summarizeErrors = null, string idempotencyKey = null, CancellationToken cancellationToken = default); /// /// Updates or creates one or more sales invoices or purchase bills @@ -9307,7 +9315,7 @@ public async System.Threading.Tasks.Task CreateCurrencyAsync (string /// - /// Creates new employees used in Xero payrun + /// Creates new employees used in Xero payrun This endpoint is deprecated and will be removed April 28, 2026 /// /// Thrown when fails to make API call /// Xero API OAuth 2.0 accessToken @@ -9317,6 +9325,7 @@ public async System.Threading.Tasks.Task CreateCurrencyAsync (string /// 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 Employees + [Obsolete] public async System.Threading.Tasks.Task CreateEmployeesAsync (string accessToken, string xeroTenantId, Employees employees, bool? summarizeErrors = null, string idempotencyKey = null, CancellationToken cancellationToken = default) { Xero.NetStandard.OAuth2.Client.ApiResponse localVarResponse = await CreateEmployeesAsyncWithHttpInfo(accessToken, xeroTenantId, employees, summarizeErrors, idempotencyKey, cancellationToken); @@ -9325,7 +9334,7 @@ public async System.Threading.Tasks.Task CreateEmployeesAsync (string } /// - /// Creates new employees used in Xero payrun + /// Creates new employees used in Xero payrun This endpoint is deprecated and will be removed April 28, 2026 /// /// Thrown when fails to make API call /// Xero API OAuth 2.0 accessToken @@ -9335,6 +9344,7 @@ public async System.Threading.Tasks.Task CreateEmployeesAsync (string /// 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 (Employees) + [Obsolete] public async System.Threading.Tasks.Task> CreateEmployeesAsyncWithHttpInfo (string accessToken, string xeroTenantId, Employees employees, bool? summarizeErrors = null, string idempotencyKey = null, CancellationToken cancellationToken = default) { // verify the required parameter 'xeroTenantId' is set @@ -17673,7 +17683,7 @@ public async System.Threading.Tasks.Task GetCurrenciesAsync (string /// - /// Retrieves a specific employee used in Xero payrun using a unique employee Id + /// Retrieves a specific employee used in Xero payrun using a unique employee Id This endpoint is deprecated and will be removed April 28, 2026 /// /// Thrown when fails to make API call /// Xero API OAuth 2.0 accessToken @@ -17681,6 +17691,7 @@ public async System.Threading.Tasks.Task GetCurrenciesAsync (string /// Unique identifier for a Employee /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of Employees + [Obsolete] public async System.Threading.Tasks.Task GetEmployeeAsync (string accessToken, string xeroTenantId, Guid employeeID, CancellationToken cancellationToken = default) { Xero.NetStandard.OAuth2.Client.ApiResponse localVarResponse = await GetEmployeeAsyncWithHttpInfo(accessToken, xeroTenantId, employeeID, cancellationToken); @@ -17689,7 +17700,7 @@ public async System.Threading.Tasks.Task GetEmployeeAsync (string acc } /// - /// Retrieves a specific employee used in Xero payrun using a unique employee Id + /// Retrieves a specific employee used in Xero payrun using a unique employee Id This endpoint is deprecated and will be removed April 28, 2026 /// /// Thrown when fails to make API call /// Xero API OAuth 2.0 accessToken @@ -17697,6 +17708,7 @@ public async System.Threading.Tasks.Task GetEmployeeAsync (string acc /// Unique identifier for a Employee /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of ApiResponse (Employees) + [Obsolete] public async System.Threading.Tasks.Task> GetEmployeeAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid employeeID, CancellationToken cancellationToken = default) { // verify the required parameter 'xeroTenantId' is set @@ -17752,7 +17764,7 @@ public async System.Threading.Tasks.Task GetEmployeeAsync (string acc /// - /// Retrieves employees used in Xero payrun + /// Retrieves employees used in Xero payrun This endpoint is deprecated and will be removed April 28, 2026 /// /// Thrown when fails to make API call /// Xero API OAuth 2.0 accessToken @@ -17762,6 +17774,7 @@ public async System.Threading.Tasks.Task GetEmployeeAsync (string acc /// Order by an any element (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of Employees + [Obsolete] public async System.Threading.Tasks.Task GetEmployeesAsync (string accessToken, string xeroTenantId, DateTime? ifModifiedSince = null, string where = null, string order = null, CancellationToken cancellationToken = default) { Xero.NetStandard.OAuth2.Client.ApiResponse localVarResponse = await GetEmployeesAsyncWithHttpInfo(accessToken, xeroTenantId, ifModifiedSince, where, order, cancellationToken); @@ -17770,7 +17783,7 @@ public async System.Threading.Tasks.Task GetEmployeesAsync (string ac } /// - /// Retrieves employees used in Xero payrun + /// Retrieves employees used in Xero payrun This endpoint is deprecated and will be removed April 28, 2026 /// /// Thrown when fails to make API call /// Xero API OAuth 2.0 accessToken @@ -17780,6 +17793,7 @@ public async System.Threading.Tasks.Task GetEmployeesAsync (string ac /// Order by an any element (optional) /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None /// Task of ApiResponse (Employees) + [Obsolete] public async System.Threading.Tasks.Task> GetEmployeesAsyncWithHttpInfo (string accessToken, string xeroTenantId, DateTime? ifModifiedSince = null, string where = null, string order = null, CancellationToken cancellationToken = default) { // verify the required parameter 'xeroTenantId' is set @@ -27809,7 +27823,7 @@ public async System.Threading.Tasks.Task UpdateOrCreateCreditNotesA /// - /// Creates a single new employees used in Xero payrun + /// Creates a single new employees used in Xero payrun This endpoint is deprecated and will be removed April 28, 2026 /// /// Thrown when fails to make API call /// Xero API OAuth 2.0 accessToken @@ -27819,6 +27833,7 @@ public async System.Threading.Tasks.Task UpdateOrCreateCreditNotesA /// 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 Employees + [Obsolete] public async System.Threading.Tasks.Task UpdateOrCreateEmployeesAsync (string accessToken, string xeroTenantId, Employees employees, bool? summarizeErrors = null, string idempotencyKey = null, CancellationToken cancellationToken = default) { Xero.NetStandard.OAuth2.Client.ApiResponse localVarResponse = await UpdateOrCreateEmployeesAsyncWithHttpInfo(accessToken, xeroTenantId, employees, summarizeErrors, idempotencyKey, cancellationToken); @@ -27827,7 +27842,7 @@ public async System.Threading.Tasks.Task UpdateOrCreateEmployeesAsync } /// - /// Creates a single new employees used in Xero payrun + /// Creates a single new employees used in Xero payrun This endpoint is deprecated and will be removed April 28, 2026 /// /// Thrown when fails to make API call /// Xero API OAuth 2.0 accessToken @@ -27837,6 +27852,7 @@ public async System.Threading.Tasks.Task UpdateOrCreateEmployeesAsync /// 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 (Employees) + [Obsolete] public async System.Threading.Tasks.Task> UpdateOrCreateEmployeesAsyncWithHttpInfo (string accessToken, string xeroTenantId, Employees employees, bool? summarizeErrors = null, string idempotencyKey = null, CancellationToken cancellationToken = default) { // verify the required parameter 'xeroTenantId' is set diff --git a/Xero.NetStandard.OAuth2/Api/AppStoreApi.cs b/Xero.NetStandard.OAuth2/Api/AppStoreApi.cs index 5e3823ff..1b9ba9a3 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: 9.0.0 +// The version of the OpenAPI document: 9.1.0 using System; diff --git a/Xero.NetStandard.OAuth2/Api/AssetApi.cs b/Xero.NetStandard.OAuth2/Api/AssetApi.cs index acba7f93..d537c0e6 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: 9.0.0 +// The version of the OpenAPI document: 9.1.0 using System; diff --git a/Xero.NetStandard.OAuth2/Api/BankFeedsApi.cs b/Xero.NetStandard.OAuth2/Api/BankFeedsApi.cs index c23c1c4e..531ed22a 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: 9.0.0 +// The version of the OpenAPI document: 9.1.0 using System; diff --git a/Xero.NetStandard.OAuth2/Api/FilesApi.cs b/Xero.NetStandard.OAuth2/Api/FilesApi.cs index 175d5ffa..cd472198 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: 9.0.0 +// The version of the OpenAPI document: 9.1.0 using System; diff --git a/Xero.NetStandard.OAuth2/Api/FinanceApi.cs b/Xero.NetStandard.OAuth2/Api/FinanceApi.cs index 756c78db..f7cce86c 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: 9.0.0 +// The version of the OpenAPI document: 9.1.0 using System; diff --git a/Xero.NetStandard.OAuth2/Api/IdentityApi.cs b/Xero.NetStandard.OAuth2/Api/IdentityApi.cs index bf470834..3a172a95 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: 9.0.0 +// The version of the OpenAPI document: 9.1.0 using System; diff --git a/Xero.NetStandard.OAuth2/Api/PayrollAUApi.cs b/Xero.NetStandard.OAuth2/Api/PayrollAUApi.cs index 9cab4c23..324d46da 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: 9.0.0 +// The version of the OpenAPI document: 9.1.0 using System; diff --git a/Xero.NetStandard.OAuth2/Api/PayrollNZApi.cs b/Xero.NetStandard.OAuth2/Api/PayrollNZApi.cs index a9cd16d1..e18a2470 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: 9.0.0 +// The version of the OpenAPI document: 9.1.0 using System; diff --git a/Xero.NetStandard.OAuth2/Api/PayrollUkApi.cs b/Xero.NetStandard.OAuth2/Api/PayrollUkApi.cs index af289657..a54c2aea 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: 9.0.0 +// The version of the OpenAPI document: 9.1.0 using System; diff --git a/Xero.NetStandard.OAuth2/Api/ProjectApi.cs b/Xero.NetStandard.OAuth2/Api/ProjectApi.cs index f0692549..c01f2f74 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: 9.0.0 +// The version of the OpenAPI document: 9.1.0 using System; diff --git a/Xero.NetStandard.OAuth2/Client/Configuration.cs b/Xero.NetStandard.OAuth2/Client/Configuration.cs index 66ca8470..2a345883 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 = "12.0.1"; + public const string Version = "12.1.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-12.0.1"; + UserAgent = "xero-netstandard-12.1.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: 9.0.0\n"; - report += " SDK Package Version: 12.0.1\n"; + report += " Version of the API: 9.1.0\n"; + report += " SDK Package Version: 12.1.0\n"; return report; } diff --git a/Xero.NetStandard.OAuth2/Xero.NetStandard.OAuth2.csproj b/Xero.NetStandard.OAuth2/Xero.NetStandard.OAuth2.csproj index d79c3571..5e90a6c6 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 - 12.0.1 + 12.1.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 c139f21c..f893385c 100644 --- a/docs/accounting/index.html +++ b/docs/accounting/index.html @@ -6340,7 +6340,7 @@