diff --git a/Xero.NetStandard.OAuth2/Api/AccountingApi.cs b/Xero.NetStandard.OAuth2/Api/AccountingApi.cs
index bf9f73f8..35c36870 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: 12.0.2
+// The version of the OpenAPI document: 13.0.0
using System;
@@ -692,39 +692,6 @@ public interface IAccountingApiAsync : IApiAccessor
/// Task of ApiResponse (Currencies)
System.Threading.Tasks.Task> CreateCurrencyAsyncWithHttpInfo (string accessToken, string xeroTenantId, Currency currency, 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
- /// Xero identifier for Tenant
- /// Employees with array of Employee object in body of request
- /// 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 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
- /// Xero identifier for Tenant
- /// Employees with array of Employee object in body of request
- /// 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 (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
///
///
@@ -3454,68 +3421,6 @@ public interface IAccountingApiAsync : IApiAccessor
/// Task of ApiResponse (Currencies)
System.Threading.Tasks.Task> GetCurrenciesAsyncWithHttpInfo (string accessToken, string xeroTenantId, string where = null, string order = null, 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
- /// Xero identifier for Tenant
- /// 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
- /// Xero identifier for Tenant
- /// 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
- /// Xero identifier for Tenant
- /// Only records created or modified since this timestamp will be returned (optional)
- /// Filter by an any element (optional)
- /// 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
- /// Xero identifier for Tenant
- /// Only records created or modified since this timestamp will be returned (optional)
- /// Filter by an any element (optional)
- /// 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
///
///
@@ -6664,39 +6569,6 @@ public interface IAccountingApiAsync : IApiAccessor
/// Task of ApiResponse (CreditNotes)
System.Threading.Tasks.Task> UpdateOrCreateCreditNotesAsyncWithHttpInfo (string accessToken, string xeroTenantId, CreditNotes creditNotes, bool? summarizeErrors = null, int? unitdp = 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
- /// Xero identifier for Tenant
- /// Employees with array of Employee object in body of request
- /// 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 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
- /// Xero identifier for Tenant
- /// Employees with array of Employee object in body of request
- /// 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 (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
///
///
@@ -9318,99 +9190,6 @@ public async System.Threading.Tasks.Task CreateCurrencyAsync (string
}
- ///
- /// 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
- /// Xero identifier for Tenant
- /// Employees with array of Employee object in body of request
- /// 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 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);
- return localVarResponse.Data;
-
- }
-
- ///
- /// 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
- /// Xero identifier for Tenant
- /// Employees with array of Employee object in body of request
- /// 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 (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
- if (xeroTenantId == null)
- throw new Xero.NetStandard.OAuth2.Client.ApiException(400, "Missing required parameter 'xeroTenantId' when calling AccountingApi->CreateEmployees");
-
- // verify the required parameter 'employees' is set
- if (employees == null)
- throw new Xero.NetStandard.OAuth2.Client.ApiException(400, "Missing required parameter 'employees' when calling AccountingApi->CreateEmployees");
-
-
- 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 = employees;
-
- // authentication (OAuth2) required
- // oauth required
- if (!String.IsNullOrEmpty(accessToken))
- {
- requestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken);
- }
- // make the HTTP request
-
-
-
- var response = await this.AsynchronousClient.PutAsync("/Employees", requestOptions, this.Configuration, cancellationToken);
-
- if (this.ExceptionFactory != null)
- {
- Exception exception = this.ExceptionFactory("CreateEmployees", response);
- if (exception != null) throw exception;
- }
-
- return response;
- }
-
-
///
/// Creates a history record for a specific expense claim
///
@@ -17686,190 +17465,6 @@ public async System.Threading.Tasks.Task GetCurrenciesAsync (string
}
- ///
- /// 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
- /// Xero identifier for Tenant
- /// 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);
- return localVarResponse.Data;
-
- }
-
- ///
- /// 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
- /// Xero identifier for Tenant
- /// 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
- if (xeroTenantId == null)
- throw new Xero.NetStandard.OAuth2.Client.ApiException(400, "Missing required parameter 'xeroTenantId' when calling AccountingApi->GetEmployee");
-
- // verify the required parameter 'employeeID' is set
- if (employeeID == null)
- throw new Xero.NetStandard.OAuth2.Client.ApiException(400, "Missing required parameter 'employeeID' when calling AccountingApi->GetEmployee");
-
-
- Xero.NetStandard.OAuth2.Client.RequestOptions requestOptions = new Xero.NetStandard.OAuth2.Client.RequestOptions();
-
- String[] @contentTypes = new String[] {
- };
-
- // 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 (employeeID != null)
- requestOptions.PathParameters.Add("EmployeeID", Xero.NetStandard.OAuth2.Client.ClientUtils.ParameterToString(employeeID)); // path parameter
- if (xeroTenantId != null)
- requestOptions.HeaderParameters.Add("xero-tenant-id", Xero.NetStandard.OAuth2.Client.ClientUtils.ParameterToString(xeroTenantId)); // header parameter
-
- // authentication (OAuth2) required
- // oauth required
- if (!String.IsNullOrEmpty(accessToken))
- {
- requestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken);
- }
- // make the HTTP request
-
-
-
- var response = await this.AsynchronousClient.GetAsync("/Employees/{EmployeeID}", requestOptions, this.Configuration, cancellationToken);
-
- if (this.ExceptionFactory != null)
- {
- Exception exception = this.ExceptionFactory("GetEmployee", response);
- if (exception != null) throw exception;
- }
-
- return response;
- }
-
-
- ///
- /// 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
- /// Xero identifier for Tenant
- /// Only records created or modified since this timestamp will be returned (optional)
- /// Filter by an any element (optional)
- /// 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);
- return localVarResponse.Data;
-
- }
-
- ///
- /// 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
- /// Xero identifier for Tenant
- /// Only records created or modified since this timestamp will be returned (optional)
- /// Filter by an any element (optional)
- /// 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
- if (xeroTenantId == null)
- throw new Xero.NetStandard.OAuth2.Client.ApiException(400, "Missing required parameter 'xeroTenantId' when calling AccountingApi->GetEmployees");
-
-
- Xero.NetStandard.OAuth2.Client.RequestOptions requestOptions = new Xero.NetStandard.OAuth2.Client.RequestOptions();
-
- String[] @contentTypes = new String[] {
- };
-
- // 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 (where != null)
- {
- foreach (var kvp in Xero.NetStandard.OAuth2.Client.ClientUtils.ParameterToMultiMap("", "where", where))
- {
- foreach (var value in kvp.Value)
- {
- requestOptions.QueryParameters.Add(kvp.Key, value);
- }
- }
- }
-
- if (order != null)
- {
- foreach (var kvp in Xero.NetStandard.OAuth2.Client.ClientUtils.ParameterToMultiMap("", "order", order))
- {
- foreach (var value in kvp.Value)
- {
- requestOptions.QueryParameters.Add(kvp.Key, value);
- }
- }
- }
- if (xeroTenantId != null)
- requestOptions.HeaderParameters.Add("xero-tenant-id", Xero.NetStandard.OAuth2.Client.ClientUtils.ParameterToString(xeroTenantId)); // header parameter
- if (ifModifiedSince != null)
- requestOptions.HeaderParameters.Add("If-Modified-Since", Xero.NetStandard.OAuth2.Client.ClientUtils.ParameterToString(ifModifiedSince)); // header parameter
-
- // authentication (OAuth2) required
- // oauth required
- if (!String.IsNullOrEmpty(accessToken))
- {
- requestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken);
- }
- // make the HTTP request
-
-
-
- var response = await this.AsynchronousClient.GetAsync("/Employees", requestOptions, this.Configuration, cancellationToken);
-
- if (this.ExceptionFactory != null)
- {
- Exception exception = this.ExceptionFactory("GetEmployees", response);
- if (exception != null) throw exception;
- }
-
- return response;
- }
-
-
///
/// Retrieves a specific expense claim using a unique expense claim Id
///
@@ -27852,99 +27447,6 @@ public async System.Threading.Tasks.Task UpdateOrCreateCreditNotesA
}
- ///
- /// 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
- /// Xero identifier for Tenant
- /// Employees with array of Employee object in body of request
- /// 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 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);
- return localVarResponse.Data;
-
- }
-
- ///
- /// 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
- /// Xero identifier for Tenant
- /// Employees with array of Employee object in body of request
- /// 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 (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
- if (xeroTenantId == null)
- throw new Xero.NetStandard.OAuth2.Client.ApiException(400, "Missing required parameter 'xeroTenantId' when calling AccountingApi->UpdateOrCreateEmployees");
-
- // verify the required parameter 'employees' is set
- if (employees == null)
- throw new Xero.NetStandard.OAuth2.Client.ApiException(400, "Missing required parameter 'employees' when calling AccountingApi->UpdateOrCreateEmployees");
-
-
- 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 = employees;
-
- // 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("/Employees", requestOptions, this.Configuration, cancellationToken);
-
- if (this.ExceptionFactory != null)
- {
- Exception exception = this.ExceptionFactory("UpdateOrCreateEmployees", response);
- if (exception != null) throw exception;
- }
-
- return response;
- }
-
-
///
/// Updates or creates one or more sales invoices or purchase bills
///
diff --git a/Xero.NetStandard.OAuth2/Api/AppStoreApi.cs b/Xero.NetStandard.OAuth2/Api/AppStoreApi.cs
index e7108659..1248d17c 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: 12.0.2
+// The version of the OpenAPI document: 13.0.0
using System;
diff --git a/Xero.NetStandard.OAuth2/Api/AssetApi.cs b/Xero.NetStandard.OAuth2/Api/AssetApi.cs
index 0c77757d..1324fd3d 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: 12.0.2
+// The version of the OpenAPI document: 13.0.0
using System;
diff --git a/Xero.NetStandard.OAuth2/Api/BankFeedsApi.cs b/Xero.NetStandard.OAuth2/Api/BankFeedsApi.cs
index 04fa5834..f1ae5923 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: 12.0.2
+// The version of the OpenAPI document: 13.0.0
using System;
diff --git a/Xero.NetStandard.OAuth2/Api/FilesApi.cs b/Xero.NetStandard.OAuth2/Api/FilesApi.cs
index eaac61fa..6026cf8a 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: 12.0.2
+// The version of the OpenAPI document: 13.0.0
using System;
@@ -185,7 +185,7 @@ public interface IFilesApiAsync : IApiAccessor
/// Object id for single object
/// pass an optional page size value (optional)
/// number of records to skip for pagination (optional)
- /// values to sort by (optional)
+ /// values to sort by (optional, default to CreatedDateUtc)
/// direction to sort by (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of List<Association>
@@ -203,7 +203,7 @@ public interface IFilesApiAsync : IApiAccessor
/// Object id for single object
/// pass an optional page size value (optional)
/// number of records to skip for pagination (optional)
- /// values to sort by (optional)
+ /// values to sort by (optional, default to CreatedDateUtc)
/// direction to sort by (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (List<Association>)
@@ -1104,7 +1104,7 @@ public async System.Threading.Tasks.Task DeleteFolderAsync (string accessToken,
/// Object id for single object
/// pass an optional page size value (optional)
/// number of records to skip for pagination (optional)
- /// values to sort by (optional)
+ /// values to sort by (optional, default to CreatedDateUtc)
/// direction to sort by (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of List<Association>
@@ -1124,7 +1124,7 @@ public async System.Threading.Tasks.Task> GetAssociationsByObj
/// Object id for single object
/// pass an optional page size value (optional)
/// number of records to skip for pagination (optional)
- /// values to sort by (optional)
+ /// values to sort by (optional, default to CreatedDateUtc)
/// direction to sort by (optional)
/// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
/// Task of ApiResponse (List<Association>)
diff --git a/Xero.NetStandard.OAuth2/Api/FinanceApi.cs b/Xero.NetStandard.OAuth2/Api/FinanceApi.cs
index bdd2dbf5..99a18c67 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: 12.0.2
+// The version of the OpenAPI document: 13.0.0
using System;
diff --git a/Xero.NetStandard.OAuth2/Api/IdentityApi.cs b/Xero.NetStandard.OAuth2/Api/IdentityApi.cs
index 28e2f371..43603b16 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: 12.0.2
+// The version of the OpenAPI document: 13.0.0
using System;
diff --git a/Xero.NetStandard.OAuth2/Api/PayrollAUApi.cs b/Xero.NetStandard.OAuth2/Api/PayrollAUApi.cs
index c2389b5b..31ff423b 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: 12.0.2
+// The version of the OpenAPI document: 13.0.0
using System;
diff --git a/Xero.NetStandard.OAuth2/Api/PayrollAUV2Api.cs b/Xero.NetStandard.OAuth2/Api/PayrollAUV2Api.cs
index bdfe6e80..f59be32c 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: 12.0.2
+// The version of the OpenAPI document: 13.0.0
using System;
diff --git a/Xero.NetStandard.OAuth2/Api/PayrollNZApi.cs b/Xero.NetStandard.OAuth2/Api/PayrollNZApi.cs
index 82229a1a..be3cf9e7 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: 12.0.2
+// The version of the OpenAPI document: 13.0.0
using System;
diff --git a/Xero.NetStandard.OAuth2/Api/PayrollUkApi.cs b/Xero.NetStandard.OAuth2/Api/PayrollUkApi.cs
index 9ecf9efa..cbe07e1a 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: 12.0.2
+// The version of the OpenAPI document: 13.0.0
using System;
diff --git a/Xero.NetStandard.OAuth2/Api/ProjectApi.cs b/Xero.NetStandard.OAuth2/Api/ProjectApi.cs
index e47fbca2..fd0d2609 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: 12.0.2
+// The version of the OpenAPI document: 13.0.0
using System;
diff --git a/Xero.NetStandard.OAuth2/Client/Configuration.cs b/Xero.NetStandard.OAuth2/Client/Configuration.cs
index 999cb352..f3de9d23 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 = "14.0.1";
+ public const string Version = "15.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-14.0.1";
+ UserAgent = "xero-netstandard-15.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: 12.0.2\n";
- report += " SDK Package Version: 14.0.1\n";
+ report += " Version of the API: 13.0.0\n";
+ report += " SDK Package Version: 15.0.0\n";
return report;
}
diff --git a/Xero.NetStandard.OAuth2/Model/Accounting/Prepayment.cs b/Xero.NetStandard.OAuth2/Model/Accounting/Prepayment.cs
index 53950b1c..f5e72cf1 100644
--- a/Xero.NetStandard.OAuth2/Model/Accounting/Prepayment.cs
+++ b/Xero.NetStandard.OAuth2/Model/Accounting/Prepayment.cs
@@ -182,6 +182,13 @@ public enum StatusEnum
[DataMember(Name="PrepaymentID", EmitDefaultValue=false)]
public Guid? PrepaymentID { get; set; }
+ ///
+ /// The unique identifier of the branding template applied to a receive prepayment
+ ///
+ /// The unique identifier of the branding template applied to a receive prepayment
+ [DataMember(Name="BrandingThemeID", EmitDefaultValue=false)]
+ public Guid? BrandingThemeID { get; private set; }
+
///
/// The currency rate for a multicurrency prepayment. If no rate is specified, the XE.com day rate is used
///
@@ -253,6 +260,7 @@ public override string ToString()
sb.Append(" UpdatedDateUTC: ").Append(UpdatedDateUTC).Append("\n");
sb.Append(" CurrencyCode: ").Append(CurrencyCode).Append("\n");
sb.Append(" PrepaymentID: ").Append(PrepaymentID).Append("\n");
+ sb.Append(" BrandingThemeID: ").Append(BrandingThemeID).Append("\n");
sb.Append(" CurrencyRate: ").Append(CurrencyRate).Append("\n");
sb.Append(" RemainingCredit: ").Append(RemainingCredit).Append("\n");
sb.Append(" Allocations: ").Append(Allocations).Append("\n");
@@ -361,6 +369,11 @@ public bool Equals(Prepayment input)
(this.PrepaymentID != null &&
this.PrepaymentID.Equals(input.PrepaymentID))
) &&
+ (
+ this.BrandingThemeID == input.BrandingThemeID ||
+ (this.BrandingThemeID != null &&
+ this.BrandingThemeID.Equals(input.BrandingThemeID))
+ ) &&
(
this.CurrencyRate == input.CurrencyRate ||
(this.CurrencyRate != null &&
@@ -434,6 +447,8 @@ public override int GetHashCode()
hashCode = hashCode * 59 + this.CurrencyCode.GetHashCode();
if (this.PrepaymentID != null)
hashCode = hashCode * 59 + this.PrepaymentID.GetHashCode();
+ if (this.BrandingThemeID != null)
+ hashCode = hashCode * 59 + this.BrandingThemeID.GetHashCode();
if (this.CurrencyRate != null)
hashCode = hashCode * 59 + this.CurrencyRate.GetHashCode();
if (this.RemainingCredit != null)
diff --git a/Xero.NetStandard.OAuth2/Model/Files/Association.cs b/Xero.NetStandard.OAuth2/Model/Files/Association.cs
index 6e51400e..f32e136a 100644
--- a/Xero.NetStandard.OAuth2/Model/Files/Association.cs
+++ b/Xero.NetStandard.OAuth2/Model/Files/Association.cs
@@ -62,6 +62,20 @@ public partial class Association : IEquatable, IValidatableObject
[DataMember(Name="Size", EmitDefaultValue=false)]
public int? Size { get; set; }
+ ///
+ /// The date the file was created (UTC). Note- The CreatedDateUtc element is only returned when using /Associations/{ObjectId} endpoint.
+ ///
+ /// The date the file was created (UTC). Note- The CreatedDateUtc element is only returned when using /Associations/{ObjectId} endpoint.
+ [DataMember(Name="CreatedDateUtc", EmitDefaultValue=false)]
+ public DateTime? CreatedDateUtc { get; set; }
+
+ ///
+ /// The date the file was associated with the object (UTC). Note- The AssociationDateUtc element is only returned when using /Associations/{ObjectId} endpoint.
+ ///
+ /// The date the file was associated with the object (UTC). Note- The AssociationDateUtc element is only returned when using /Associations/{ObjectId} endpoint.
+ [DataMember(Name="AssociationDateUtc", EmitDefaultValue=false)]
+ public DateTime? AssociationDateUtc { get; set; }
+
///
/// The unique identifier of the file
///
@@ -87,6 +101,8 @@ public override string ToString()
sb.Append(" SendWithObject: ").Append(SendWithObject).Append("\n");
sb.Append(" Name: ").Append(Name).Append("\n");
sb.Append(" Size: ").Append(Size).Append("\n");
+ sb.Append(" CreatedDateUtc: ").Append(CreatedDateUtc).Append("\n");
+ sb.Append(" AssociationDateUtc: ").Append(AssociationDateUtc).Append("\n");
sb.Append(" FileId: ").Append(FileId).Append("\n");
sb.Append(" ObjectId: ").Append(ObjectId).Append("\n");
sb.Append(" ObjectGroup: ").Append(ObjectGroup).Append("\n");
@@ -140,6 +156,16 @@ public bool Equals(Association input)
(this.Size != null &&
this.Size.Equals(input.Size))
) &&
+ (
+ this.CreatedDateUtc == input.CreatedDateUtc ||
+ (this.CreatedDateUtc != null &&
+ this.CreatedDateUtc.Equals(input.CreatedDateUtc))
+ ) &&
+ (
+ this.AssociationDateUtc == input.AssociationDateUtc ||
+ (this.AssociationDateUtc != null &&
+ this.AssociationDateUtc.Equals(input.AssociationDateUtc))
+ ) &&
(
this.FileId == input.FileId ||
(this.FileId != null &&
@@ -175,6 +201,10 @@ public override int GetHashCode()
hashCode = hashCode * 59 + this.Name.GetHashCode();
if (this.Size != null)
hashCode = hashCode * 59 + this.Size.GetHashCode();
+ if (this.CreatedDateUtc != null)
+ hashCode = hashCode * 59 + this.CreatedDateUtc.GetHashCode();
+ if (this.AssociationDateUtc != null)
+ hashCode = hashCode * 59 + this.AssociationDateUtc.GetHashCode();
if (this.FileId != null)
hashCode = hashCode * 59 + this.FileId.GetHashCode();
if (this.ObjectId != null)
diff --git a/Xero.NetStandard.OAuth2/Xero.NetStandard.OAuth2.csproj b/Xero.NetStandard.OAuth2/Xero.NetStandard.OAuth2.csproj
index 6a237ef4..8d36c82f 100644
--- a/Xero.NetStandard.OAuth2/Xero.NetStandard.OAuth2.csproj
+++ b/Xero.NetStandard.OAuth2/Xero.NetStandard.OAuth2.csproj
@@ -16,7 +16,7 @@
truetrueXero.NetStandard.OAuth2
- 14.0.1
+ 15.0.0bin\$(Configuration)\$(TargetFramework)\Xero.NetStandard.OAuth2.xmlhttps://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 4cd6664f..9471dd0c 100644
--- a/docs/accounting/index.html
+++ b/docs/accounting/index.html
@@ -4778,6 +4778,12 @@
"description" : "Xero generated unique identifier",
"format" : "uuid"
},
+ "BrandingThemeID" : {
+ "type" : "string",
+ "description" : "The unique identifier of the branding template applied to a receive prepayment",
+ "format" : "uuid",
+ "readOnly" : true
+ },
"CurrencyRate" : {
"type" : "number",
"description" : "The currency rate for a multicurrency prepayment. If no rate is specified, the XE.com day rate is used",
@@ -6356,7 +6362,7 @@