diff --git a/Xero.NetStandard.OAuth2/Api/FinanceApi.cs b/Xero.NetStandard.OAuth2/Api/FinanceApi.cs
index 004eb717..1b7e543d 100644
--- a/Xero.NetStandard.OAuth2/Api/FinanceApi.cs
+++ b/Xero.NetStandard.OAuth2/Api/FinanceApi.cs
@@ -31,116 +31,6 @@ public interface IFinanceApiAsync : IApiAccessor
{
#region Asynchronous Operations
///
- /// Get account usage
- ///
- ///
- /// A summary of how each account is being transacted on exposing the level of detail and amounts attributable to manual adjustments.
- ///
- /// Thrown when fails to make API call
- /// Xero API OAuth 2.0 accessToken
- /// Xero identifier for Tenant
- /// date, yyyy-MM If no parameter is provided, the month 12 months prior to the end month will be used. Account usage for up to 12 months from this date will be returned. (optional)
- /// date, yyyy-MM If no parameter is provided, the current month will be used. Account usage for up to 12 months prior to this date will be returned. (optional)
- /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
- /// Task of AccountUsageResponse
- System.Threading.Tasks.Task GetAccountingActivityAccountUsageAsync (string accessToken, string xeroTenantId, string startMonth = null, string endMonth = null, CancellationToken cancellationToken = default);
-
- ///
- /// Get account usage
- ///
- ///
- /// A summary of how each account is being transacted on exposing the level of detail and amounts attributable to manual adjustments.
- ///
- /// Thrown when fails to make API call
- /// Xero API OAuth 2.0 accessToken
- /// Xero identifier for Tenant
- /// date, yyyy-MM If no parameter is provided, the month 12 months prior to the end month will be used. Account usage for up to 12 months from this date will be returned. (optional)
- /// date, yyyy-MM If no parameter is provided, the current month will be used. Account usage for up to 12 months prior to this date will be returned. (optional)
- /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
- /// Task of ApiResponse (AccountUsageResponse)
- System.Threading.Tasks.Task> GetAccountingActivityAccountUsageAsyncWithHttpInfo (string accessToken, string xeroTenantId, string startMonth = null, string endMonth = null, CancellationToken cancellationToken = default);
- ///
- /// Get lock history
- ///
- ///
- /// Provides a history of locking of accounting books. Locking may be an indicator of good accounting practices that could reduce the risk of changes to accounting records in prior periods.
- ///
- /// Thrown when fails to make API call
- /// Xero API OAuth 2.0 accessToken
- /// Xero identifier for Tenant
- /// date, yyyy-MM-dd If no parameter is provided, the current date will be used. Any changes to hard or soft lock dates that were made within the period up to 12 months before this date will be returned. Please be aware that there may be a delay of up to 3 days before a change is visible from this API. (optional)
- /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
- /// Task of LockHistoryResponse
- System.Threading.Tasks.Task GetAccountingActivityLockHistoryAsync (string accessToken, string xeroTenantId, string endDate = null, CancellationToken cancellationToken = default);
-
- ///
- /// Get lock history
- ///
- ///
- /// Provides a history of locking of accounting books. Locking may be an indicator of good accounting practices that could reduce the risk of changes to accounting records in prior periods.
- ///
- /// Thrown when fails to make API call
- /// Xero API OAuth 2.0 accessToken
- /// Xero identifier for Tenant
- /// date, yyyy-MM-dd If no parameter is provided, the current date will be used. Any changes to hard or soft lock dates that were made within the period up to 12 months before this date will be returned. Please be aware that there may be a delay of up to 3 days before a change is visible from this API. (optional)
- /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
- /// Task of ApiResponse (LockHistoryResponse)
- System.Threading.Tasks.Task> GetAccountingActivityLockHistoryAsyncWithHttpInfo (string accessToken, string xeroTenantId, string endDate = null, CancellationToken cancellationToken = default);
- ///
- /// Get report history
- ///
- ///
- /// For a specified organisation, provides a summary of all the reports published within a given period, which may be an indicator for good business management and oversight.
- ///
- /// Thrown when fails to make API call
- /// Xero API OAuth 2.0 accessToken
- /// Xero identifier for Tenant
- /// date, yyyy-MM-dd If no parameter is provided, the current date will be used. Any reports that were published within the period up to 12 months before this date will be returned. Please be aware that there may be a delay of up to 3 days before a published report is visible from this API. (optional)
- /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
- /// Task of ReportHistoryResponse
- System.Threading.Tasks.Task GetAccountingActivityReportHistoryAsync (string accessToken, string xeroTenantId, string endDate = null, CancellationToken cancellationToken = default);
-
- ///
- /// Get report history
- ///
- ///
- /// For a specified organisation, provides a summary of all the reports published within a given period, which may be an indicator for good business management and oversight.
- ///
- /// Thrown when fails to make API call
- /// Xero API OAuth 2.0 accessToken
- /// Xero identifier for Tenant
- /// date, yyyy-MM-dd If no parameter is provided, the current date will be used. Any reports that were published within the period up to 12 months before this date will be returned. Please be aware that there may be a delay of up to 3 days before a published report is visible from this API. (optional)
- /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
- /// Task of ApiResponse (ReportHistoryResponse)
- System.Threading.Tasks.Task> GetAccountingActivityReportHistoryAsyncWithHttpInfo (string accessToken, string xeroTenantId, string endDate = null, CancellationToken cancellationToken = default);
- ///
- /// Get user activities
- ///
- ///
- /// For a specified organisation, provides a list of all the users registered, and a history of their accounting transactions. Also identifies the existence of an external accounting advisor and the level of interaction.
- ///
- /// Thrown when fails to make API call
- /// Xero API OAuth 2.0 accessToken
- /// Xero identifier for Tenant
- /// date, yyyy-MM The specified month must be complete (in the past); The current month cannot be specified since it is not complete. If no parameter is provided, the month immediately previous to the current month will be used. Any user activities occurring within the specified month will be returned. Please be aware that there may be a delay of up to 3 days before a user activity is visible from this API. (optional)
- /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
- /// Task of UserActivitiesResponse
- System.Threading.Tasks.Task GetAccountingActivityUserActivitiesAsync (string accessToken, string xeroTenantId, string dataMonth = null, CancellationToken cancellationToken = default);
-
- ///
- /// Get user activities
- ///
- ///
- /// For a specified organisation, provides a list of all the users registered, and a history of their accounting transactions. Also identifies the existence of an external accounting advisor and the level of interaction.
- ///
- /// Thrown when fails to make API call
- /// Xero API OAuth 2.0 accessToken
- /// Xero identifier for Tenant
- /// date, yyyy-MM The specified month must be complete (in the past); The current month cannot be specified since it is not complete. If no parameter is provided, the month immediately previous to the current month will be used. Any user activities occurring within the specified month will be returned. Please be aware that there may be a delay of up to 3 days before a user activity is visible from this API. (optional)
- /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
- /// Task of ApiResponse (UserActivitiesResponse)
- System.Threading.Tasks.Task> GetAccountingActivityUserActivitiesAsyncWithHttpInfo (string accessToken, string xeroTenantId, string dataMonth = null, CancellationToken cancellationToken = default);
- ///
/// Get Bank Statement Accounting
///
///
@@ -502,355 +392,6 @@ public Xero.NetStandard.OAuth2.Client.ExceptionFactory ExceptionFactory
}
- ///
- /// Get account usage A summary of how each account is being transacted on exposing the level of detail and amounts attributable to manual adjustments.
- ///
- /// Thrown when fails to make API call
- /// Xero API OAuth 2.0 accessToken
- /// Xero identifier for Tenant
- /// date, yyyy-MM If no parameter is provided, the month 12 months prior to the end month will be used. Account usage for up to 12 months from this date will be returned. (optional)
- /// date, yyyy-MM If no parameter is provided, the current month will be used. Account usage for up to 12 months prior to this date will be returned. (optional)
- /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
- /// Task of AccountUsageResponse
- public async System.Threading.Tasks.Task GetAccountingActivityAccountUsageAsync (string accessToken, string xeroTenantId, string startMonth = null, string endMonth = null, CancellationToken cancellationToken = default)
- {
- Xero.NetStandard.OAuth2.Client.ApiResponse localVarResponse = await GetAccountingActivityAccountUsageAsyncWithHttpInfo(accessToken, xeroTenantId, startMonth, endMonth, cancellationToken);
- return localVarResponse.Data;
-
- }
-
- ///
- /// Get account usage A summary of how each account is being transacted on exposing the level of detail and amounts attributable to manual adjustments.
- ///
- /// Thrown when fails to make API call
- /// Xero API OAuth 2.0 accessToken
- /// Xero identifier for Tenant
- /// date, yyyy-MM If no parameter is provided, the month 12 months prior to the end month will be used. Account usage for up to 12 months from this date will be returned. (optional)
- /// date, yyyy-MM If no parameter is provided, the current month will be used. Account usage for up to 12 months prior to this date will be returned. (optional)
- /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
- /// Task of ApiResponse (AccountUsageResponse)
- public async System.Threading.Tasks.Task> GetAccountingActivityAccountUsageAsyncWithHttpInfo (string accessToken, string xeroTenantId, string startMonth = null, string endMonth = 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 FinanceApi->GetAccountingActivityAccountUsage");
-
-
- 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 (startMonth != null)
- {
- foreach (var kvp in Xero.NetStandard.OAuth2.Client.ClientUtils.ParameterToMultiMap("", "startMonth", startMonth))
- {
- foreach (var value in kvp.Value)
- {
- requestOptions.QueryParameters.Add(kvp.Key, value);
- }
- }
- }
-
- if (endMonth != null)
- {
- foreach (var kvp in Xero.NetStandard.OAuth2.Client.ClientUtils.ParameterToMultiMap("", "endMonth", endMonth))
- {
- 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
-
- // 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("/AccountingActivities/AccountUsage", requestOptions, this.Configuration, cancellationToken);
-
- if (this.ExceptionFactory != null)
- {
- Exception exception = this.ExceptionFactory("GetAccountingActivityAccountUsage", response);
- if (exception != null) throw exception;
- }
-
- return response;
- }
-
-
- ///
- /// Get lock history Provides a history of locking of accounting books. Locking may be an indicator of good accounting practices that could reduce the risk of changes to accounting records in prior periods.
- ///
- /// Thrown when fails to make API call
- /// Xero API OAuth 2.0 accessToken
- /// Xero identifier for Tenant
- /// date, yyyy-MM-dd If no parameter is provided, the current date will be used. Any changes to hard or soft lock dates that were made within the period up to 12 months before this date will be returned. Please be aware that there may be a delay of up to 3 days before a change is visible from this API. (optional)
- /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
- /// Task of LockHistoryResponse
- public async System.Threading.Tasks.Task GetAccountingActivityLockHistoryAsync (string accessToken, string xeroTenantId, string endDate = null, CancellationToken cancellationToken = default)
- {
- Xero.NetStandard.OAuth2.Client.ApiResponse localVarResponse = await GetAccountingActivityLockHistoryAsyncWithHttpInfo(accessToken, xeroTenantId, endDate, cancellationToken);
- return localVarResponse.Data;
-
- }
-
- ///
- /// Get lock history Provides a history of locking of accounting books. Locking may be an indicator of good accounting practices that could reduce the risk of changes to accounting records in prior periods.
- ///
- /// Thrown when fails to make API call
- /// Xero API OAuth 2.0 accessToken
- /// Xero identifier for Tenant
- /// date, yyyy-MM-dd If no parameter is provided, the current date will be used. Any changes to hard or soft lock dates that were made within the period up to 12 months before this date will be returned. Please be aware that there may be a delay of up to 3 days before a change is visible from this API. (optional)
- /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
- /// Task of ApiResponse (LockHistoryResponse)
- public async System.Threading.Tasks.Task> GetAccountingActivityLockHistoryAsyncWithHttpInfo (string accessToken, string xeroTenantId, string endDate = 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 FinanceApi->GetAccountingActivityLockHistory");
-
-
- 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 (endDate != null)
- {
- foreach (var kvp in Xero.NetStandard.OAuth2.Client.ClientUtils.ParameterToMultiMap("", "endDate", endDate))
- {
- 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
-
- // 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("/AccountingActivities/LockHistory", requestOptions, this.Configuration, cancellationToken);
-
- if (this.ExceptionFactory != null)
- {
- Exception exception = this.ExceptionFactory("GetAccountingActivityLockHistory", response);
- if (exception != null) throw exception;
- }
-
- return response;
- }
-
-
- ///
- /// Get report history For a specified organisation, provides a summary of all the reports published within a given period, which may be an indicator for good business management and oversight.
- ///
- /// Thrown when fails to make API call
- /// Xero API OAuth 2.0 accessToken
- /// Xero identifier for Tenant
- /// date, yyyy-MM-dd If no parameter is provided, the current date will be used. Any reports that were published within the period up to 12 months before this date will be returned. Please be aware that there may be a delay of up to 3 days before a published report is visible from this API. (optional)
- /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
- /// Task of ReportHistoryResponse
- public async System.Threading.Tasks.Task GetAccountingActivityReportHistoryAsync (string accessToken, string xeroTenantId, string endDate = null, CancellationToken cancellationToken = default)
- {
- Xero.NetStandard.OAuth2.Client.ApiResponse localVarResponse = await GetAccountingActivityReportHistoryAsyncWithHttpInfo(accessToken, xeroTenantId, endDate, cancellationToken);
- return localVarResponse.Data;
-
- }
-
- ///
- /// Get report history For a specified organisation, provides a summary of all the reports published within a given period, which may be an indicator for good business management and oversight.
- ///
- /// Thrown when fails to make API call
- /// Xero API OAuth 2.0 accessToken
- /// Xero identifier for Tenant
- /// date, yyyy-MM-dd If no parameter is provided, the current date will be used. Any reports that were published within the period up to 12 months before this date will be returned. Please be aware that there may be a delay of up to 3 days before a published report is visible from this API. (optional)
- /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
- /// Task of ApiResponse (ReportHistoryResponse)
- public async System.Threading.Tasks.Task> GetAccountingActivityReportHistoryAsyncWithHttpInfo (string accessToken, string xeroTenantId, string endDate = 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 FinanceApi->GetAccountingActivityReportHistory");
-
-
- 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 (endDate != null)
- {
- foreach (var kvp in Xero.NetStandard.OAuth2.Client.ClientUtils.ParameterToMultiMap("", "endDate", endDate))
- {
- 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
-
- // 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("/AccountingActivities/ReportHistory", requestOptions, this.Configuration, cancellationToken);
-
- if (this.ExceptionFactory != null)
- {
- Exception exception = this.ExceptionFactory("GetAccountingActivityReportHistory", response);
- if (exception != null) throw exception;
- }
-
- return response;
- }
-
-
- ///
- /// Get user activities For a specified organisation, provides a list of all the users registered, and a history of their accounting transactions. Also identifies the existence of an external accounting advisor and the level of interaction.
- ///
- /// Thrown when fails to make API call
- /// Xero API OAuth 2.0 accessToken
- /// Xero identifier for Tenant
- /// date, yyyy-MM The specified month must be complete (in the past); The current month cannot be specified since it is not complete. If no parameter is provided, the month immediately previous to the current month will be used. Any user activities occurring within the specified month will be returned. Please be aware that there may be a delay of up to 3 days before a user activity is visible from this API. (optional)
- /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
- /// Task of UserActivitiesResponse
- public async System.Threading.Tasks.Task GetAccountingActivityUserActivitiesAsync (string accessToken, string xeroTenantId, string dataMonth = null, CancellationToken cancellationToken = default)
- {
- Xero.NetStandard.OAuth2.Client.ApiResponse localVarResponse = await GetAccountingActivityUserActivitiesAsyncWithHttpInfo(accessToken, xeroTenantId, dataMonth, cancellationToken);
- return localVarResponse.Data;
-
- }
-
- ///
- /// Get user activities For a specified organisation, provides a list of all the users registered, and a history of their accounting transactions. Also identifies the existence of an external accounting advisor and the level of interaction.
- ///
- /// Thrown when fails to make API call
- /// Xero API OAuth 2.0 accessToken
- /// Xero identifier for Tenant
- /// date, yyyy-MM The specified month must be complete (in the past); The current month cannot be specified since it is not complete. If no parameter is provided, the month immediately previous to the current month will be used. Any user activities occurring within the specified month will be returned. Please be aware that there may be a delay of up to 3 days before a user activity is visible from this API. (optional)
- /// Cancellation token enables cancellation between threads. Defaults to CancellationToken.None
- /// Task of ApiResponse (UserActivitiesResponse)
- public async System.Threading.Tasks.Task> GetAccountingActivityUserActivitiesAsyncWithHttpInfo (string accessToken, string xeroTenantId, string dataMonth = 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 FinanceApi->GetAccountingActivityUserActivities");
-
-
- 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 (dataMonth != null)
- {
- foreach (var kvp in Xero.NetStandard.OAuth2.Client.ClientUtils.ParameterToMultiMap("", "dataMonth", dataMonth))
- {
- 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
-
- // 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("/AccountingActivities/UserActivities", requestOptions, this.Configuration, cancellationToken);
-
- if (this.ExceptionFactory != null)
- {
- Exception exception = this.ExceptionFactory("GetAccountingActivityUserActivities", response);
- if (exception != null) throw exception;
- }
-
- return response;
- }
-
-
///
/// Get Bank Statement Accounting For lenders that prefer using bank statement data as the source of truth. We provide a data point that will allow access to customer bank statements, plus for reconciled bank transactions the matching accounting, invoice and billing data as well. As customers reconcile bank statements to invoices and bills, this transaction detail will provide valuable insight for lender's assessment measures.
///
diff --git a/Xero.NetStandard.OAuth2/Client/Configuration.cs b/Xero.NetStandard.OAuth2/Client/Configuration.cs
index 366f0509..baeaf6f9 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.5.0";
+ public const string Version = "12.5.1";
///
/// 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.5.0";
+ UserAgent = "xero-netstandard-12.5.1";
BasePath = "https://api.xero.com/api.xro/2.0";
DefaultHeader = new ConcurrentDictionary();
ApiKey = new ConcurrentDictionary();
@@ -342,7 +342,7 @@ 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: 10.1.0\n";
- report += " SDK Package Version: 12.5.0\n";
+ report += " SDK Package Version: 12.5.1\n";
return report;
}
diff --git a/Xero.NetStandard.OAuth2/Model/Finance/AccountUsage.cs b/Xero.NetStandard.OAuth2/Model/Finance/AccountUsage.cs
deleted file mode 100644
index abc19d92..00000000
--- a/Xero.NetStandard.OAuth2/Model/Finance/AccountUsage.cs
+++ /dev/null
@@ -1,297 +0,0 @@
-/*
- * Xero Finance API
- *
- * The Finance API is a collection of endpoints which customers can use in the course of a loan application, which may assist lenders to gain the confidence they need to provide capital.
- *
- * 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.Finance
-{
- ///
- /// AccountUsage
- ///
- [DataContract]
- public partial class AccountUsage : IEquatable, IValidatableObject
- {
-
- ///
- /// The month this usage item contains data for
- ///
- /// The month this usage item contains data for
- [DataMember(Name="month", EmitDefaultValue=false)]
- public string Month { get; set; }
-
- ///
- /// The account this usage item contains data for
- ///
- /// The account this usage item contains data for
- [DataMember(Name="accountId", EmitDefaultValue=false)]
- public Guid? AccountId { get; set; }
-
- ///
- /// The currency code this usage item contains data for
- ///
- /// The currency code this usage item contains data for
- [DataMember(Name="currencyCode", EmitDefaultValue=false)]
- public string CurrencyCode { get; set; }
-
- ///
- /// Total received
- ///
- /// Total received
- [DataMember(Name="totalReceived", EmitDefaultValue=false)]
- public decimal? TotalReceived { get; set; }
-
- ///
- /// Count of received
- ///
- /// Count of received
- [DataMember(Name="countReceived", EmitDefaultValue=false)]
- public int? CountReceived { get; set; }
-
- ///
- /// Total paid
- ///
- /// Total paid
- [DataMember(Name="totalPaid", EmitDefaultValue=false)]
- public decimal? TotalPaid { get; set; }
-
- ///
- /// Count of paid
- ///
- /// Count of paid
- [DataMember(Name="countPaid", EmitDefaultValue=false)]
- public int? CountPaid { get; set; }
-
- ///
- /// Total value of manual journals
- ///
- /// Total value of manual journals
- [DataMember(Name="totalManualJournal", EmitDefaultValue=false)]
- public decimal? TotalManualJournal { get; set; }
-
- ///
- /// Count of manual journals
- ///
- /// Count of manual journals
- [DataMember(Name="countManualJournal", EmitDefaultValue=false)]
- public int? CountManualJournal { get; set; }
-
- ///
- /// The name of the account
- ///
- /// The name of the account
- [DataMember(Name="accountName", EmitDefaultValue=false)]
- public string AccountName { get; set; }
-
- ///
- /// Shown if set
- ///
- /// Shown if set
- [DataMember(Name="reportingCode", EmitDefaultValue=false)]
- public string ReportingCode { get; set; }
-
- ///
- /// Shown if set
- ///
- /// Shown if set
- [DataMember(Name="reportingCodeName", EmitDefaultValue=false)]
- public string ReportingCodeName { get; set; }
-
- ///
- /// Last modified date UTC format
- ///
- /// Last modified date UTC format
- [DataMember(Name="reportCodeUpdatedDateUtc", EmitDefaultValue=false)]
- public DateTime? ReportCodeUpdatedDateUtc { 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 AccountUsage {\n");
- sb.Append(" Month: ").Append(Month).Append("\n");
- sb.Append(" AccountId: ").Append(AccountId).Append("\n");
- sb.Append(" CurrencyCode: ").Append(CurrencyCode).Append("\n");
- sb.Append(" TotalReceived: ").Append(TotalReceived).Append("\n");
- sb.Append(" CountReceived: ").Append(CountReceived).Append("\n");
- sb.Append(" TotalPaid: ").Append(TotalPaid).Append("\n");
- sb.Append(" CountPaid: ").Append(CountPaid).Append("\n");
- sb.Append(" TotalManualJournal: ").Append(TotalManualJournal).Append("\n");
- sb.Append(" CountManualJournal: ").Append(CountManualJournal).Append("\n");
- sb.Append(" AccountName: ").Append(AccountName).Append("\n");
- sb.Append(" ReportingCode: ").Append(ReportingCode).Append("\n");
- sb.Append(" ReportingCodeName: ").Append(ReportingCodeName).Append("\n");
- sb.Append(" ReportCodeUpdatedDateUtc: ").Append(ReportCodeUpdatedDateUtc).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 AccountUsage);
- }
-
- ///
- /// Returns true if AccountUsage instances are equal
- ///
- /// Instance of AccountUsage to be compared
- /// Boolean
- public bool Equals(AccountUsage input)
- {
- if (input == null)
- return false;
-
- return
- (
- this.Month == input.Month ||
- (this.Month != null &&
- this.Month.Equals(input.Month))
- ) &&
- (
- this.AccountId == input.AccountId ||
- (this.AccountId != null &&
- this.AccountId.Equals(input.AccountId))
- ) &&
- (
- this.CurrencyCode == input.CurrencyCode ||
- (this.CurrencyCode != null &&
- this.CurrencyCode.Equals(input.CurrencyCode))
- ) &&
- (
- this.TotalReceived == input.TotalReceived ||
- (this.TotalReceived != null &&
- this.TotalReceived.Equals(input.TotalReceived))
- ) &&
- (
- this.CountReceived == input.CountReceived ||
- (this.CountReceived != null &&
- this.CountReceived.Equals(input.CountReceived))
- ) &&
- (
- this.TotalPaid == input.TotalPaid ||
- (this.TotalPaid != null &&
- this.TotalPaid.Equals(input.TotalPaid))
- ) &&
- (
- this.CountPaid == input.CountPaid ||
- (this.CountPaid != null &&
- this.CountPaid.Equals(input.CountPaid))
- ) &&
- (
- this.TotalManualJournal == input.TotalManualJournal ||
- (this.TotalManualJournal != null &&
- this.TotalManualJournal.Equals(input.TotalManualJournal))
- ) &&
- (
- this.CountManualJournal == input.CountManualJournal ||
- (this.CountManualJournal != null &&
- this.CountManualJournal.Equals(input.CountManualJournal))
- ) &&
- (
- this.AccountName == input.AccountName ||
- (this.AccountName != null &&
- this.AccountName.Equals(input.AccountName))
- ) &&
- (
- this.ReportingCode == input.ReportingCode ||
- (this.ReportingCode != null &&
- this.ReportingCode.Equals(input.ReportingCode))
- ) &&
- (
- this.ReportingCodeName == input.ReportingCodeName ||
- (this.ReportingCodeName != null &&
- this.ReportingCodeName.Equals(input.ReportingCodeName))
- ) &&
- (
- this.ReportCodeUpdatedDateUtc == input.ReportCodeUpdatedDateUtc ||
- (this.ReportCodeUpdatedDateUtc != null &&
- this.ReportCodeUpdatedDateUtc.Equals(input.ReportCodeUpdatedDateUtc))
- );
- }
-
- ///
- /// Gets the hash code
- ///
- /// Hash code
- public override int GetHashCode()
- {
- unchecked // Overflow is fine, just wrap
- {
- int hashCode = 41;
- if (this.Month != null)
- hashCode = hashCode * 59 + this.Month.GetHashCode();
- if (this.AccountId != null)
- hashCode = hashCode * 59 + this.AccountId.GetHashCode();
- if (this.CurrencyCode != null)
- hashCode = hashCode * 59 + this.CurrencyCode.GetHashCode();
- if (this.TotalReceived != null)
- hashCode = hashCode * 59 + this.TotalReceived.GetHashCode();
- if (this.CountReceived != null)
- hashCode = hashCode * 59 + this.CountReceived.GetHashCode();
- if (this.TotalPaid != null)
- hashCode = hashCode * 59 + this.TotalPaid.GetHashCode();
- if (this.CountPaid != null)
- hashCode = hashCode * 59 + this.CountPaid.GetHashCode();
- if (this.TotalManualJournal != null)
- hashCode = hashCode * 59 + this.TotalManualJournal.GetHashCode();
- if (this.CountManualJournal != null)
- hashCode = hashCode * 59 + this.CountManualJournal.GetHashCode();
- if (this.AccountName != null)
- hashCode = hashCode * 59 + this.AccountName.GetHashCode();
- if (this.ReportingCode != null)
- hashCode = hashCode * 59 + this.ReportingCode.GetHashCode();
- if (this.ReportingCodeName != null)
- hashCode = hashCode * 59 + this.ReportingCodeName.GetHashCode();
- if (this.ReportCodeUpdatedDateUtc != null)
- hashCode = hashCode * 59 + this.ReportCodeUpdatedDateUtc.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/Finance/AccountUsageResponse.cs b/Xero.NetStandard.OAuth2/Model/Finance/AccountUsageResponse.cs
deleted file mode 100644
index 9c33d02e..00000000
--- a/Xero.NetStandard.OAuth2/Model/Finance/AccountUsageResponse.cs
+++ /dev/null
@@ -1,162 +0,0 @@
-/*
- * Xero Finance API
- *
- * The Finance API is a collection of endpoints which customers can use in the course of a loan application, which may assist lenders to gain the confidence they need to provide capital.
- *
- * 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.Finance
-{
- ///
- /// AccountUsageResponse
- ///
- [DataContract]
- public partial class AccountUsageResponse : IEquatable, IValidatableObject
- {
-
- ///
- /// The requested Organisation to which the data pertains
- ///
- /// The requested Organisation to which the data pertains
- [DataMember(Name="organisationId", EmitDefaultValue=false)]
- public Guid? OrganisationId { get; set; }
-
- ///
- /// The start month of the report
- ///
- /// The start month of the report
- [DataMember(Name="startMonth", EmitDefaultValue=false)]
- public string StartMonth { get; set; }
-
- ///
- /// The end month of the report
- ///
- /// The end month of the report
- [DataMember(Name="endMonth", EmitDefaultValue=false)]
- public string EndMonth { get; set; }
-
- ///
- /// Gets or Sets AccountUsage
- ///
- [DataMember(Name="accountUsage", EmitDefaultValue=false)]
- public List AccountUsage { 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 AccountUsageResponse {\n");
- sb.Append(" OrganisationId: ").Append(OrganisationId).Append("\n");
- sb.Append(" StartMonth: ").Append(StartMonth).Append("\n");
- sb.Append(" EndMonth: ").Append(EndMonth).Append("\n");
- sb.Append(" AccountUsage: ").Append(AccountUsage).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 AccountUsageResponse);
- }
-
- ///
- /// Returns true if AccountUsageResponse instances are equal
- ///
- /// Instance of AccountUsageResponse to be compared
- /// Boolean
- public bool Equals(AccountUsageResponse input)
- {
- if (input == null)
- return false;
-
- return
- (
- this.OrganisationId == input.OrganisationId ||
- (this.OrganisationId != null &&
- this.OrganisationId.Equals(input.OrganisationId))
- ) &&
- (
- this.StartMonth == input.StartMonth ||
- (this.StartMonth != null &&
- this.StartMonth.Equals(input.StartMonth))
- ) &&
- (
- this.EndMonth == input.EndMonth ||
- (this.EndMonth != null &&
- this.EndMonth.Equals(input.EndMonth))
- ) &&
- (
- this.AccountUsage == input.AccountUsage ||
- this.AccountUsage != null &&
- input.AccountUsage != null &&
- this.AccountUsage.SequenceEqual(input.AccountUsage)
- );
- }
-
- ///
- /// Gets the hash code
- ///
- /// Hash code
- public override int GetHashCode()
- {
- unchecked // Overflow is fine, just wrap
- {
- int hashCode = 41;
- if (this.OrganisationId != null)
- hashCode = hashCode * 59 + this.OrganisationId.GetHashCode();
- if (this.StartMonth != null)
- hashCode = hashCode * 59 + this.StartMonth.GetHashCode();
- if (this.EndMonth != null)
- hashCode = hashCode * 59 + this.EndMonth.GetHashCode();
- if (this.AccountUsage != null)
- hashCode = hashCode * 59 + this.AccountUsage.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/Finance/HistoryRecordResponse.cs b/Xero.NetStandard.OAuth2/Model/Finance/HistoryRecordResponse.cs
deleted file mode 100644
index b2e4fa42..00000000
--- a/Xero.NetStandard.OAuth2/Model/Finance/HistoryRecordResponse.cs
+++ /dev/null
@@ -1,177 +0,0 @@
-/*
- * Xero Finance API
- *
- * The Finance API is a collection of endpoints which customers can use in the course of a loan application, which may assist lenders to gain the confidence they need to provide capital.
- *
- * 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.Finance
-{
- ///
- /// HistoryRecordResponse
- ///
- [DataContract]
- public partial class HistoryRecordResponse : IEquatable, IValidatableObject
- {
-
- ///
- /// The type of change recorded against the document
- ///
- /// The type of change recorded against the document
- [DataMember(Name="changes", EmitDefaultValue=false)]
- public string Changes { get; set; }
-
- ///
- /// UTC date that the history record was created
- ///
- /// UTC date that the history record was created
- [DataMember(Name="dateUTCString", EmitDefaultValue=false)]
- public string DateUTCString { get; set; }
-
- ///
- /// UTC date that the history record was created
- ///
- /// UTC date that the history record was created
- [DataMember(Name="dateUTC", EmitDefaultValue=false)]
- public DateTime? DateUTC { get; set; }
-
- ///
- /// The users first and last name
- ///
- /// The users first and last name
- [DataMember(Name="user", EmitDefaultValue=false)]
- public string User { get; set; }
-
- ///
- /// Description of the change event or transaction
- ///
- /// Description of the change event or transaction
- [DataMember(Name="details", EmitDefaultValue=false)]
- public string Details { 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 HistoryRecordResponse {\n");
- sb.Append(" Changes: ").Append(Changes).Append("\n");
- sb.Append(" DateUTCString: ").Append(DateUTCString).Append("\n");
- sb.Append(" DateUTC: ").Append(DateUTC).Append("\n");
- sb.Append(" User: ").Append(User).Append("\n");
- sb.Append(" Details: ").Append(Details).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 HistoryRecordResponse);
- }
-
- ///
- /// Returns true if HistoryRecordResponse instances are equal
- ///
- /// Instance of HistoryRecordResponse to be compared
- /// Boolean
- public bool Equals(HistoryRecordResponse input)
- {
- if (input == null)
- return false;
-
- return
- (
- this.Changes == input.Changes ||
- (this.Changes != null &&
- this.Changes.Equals(input.Changes))
- ) &&
- (
- this.DateUTCString == input.DateUTCString ||
- (this.DateUTCString != null &&
- this.DateUTCString.Equals(input.DateUTCString))
- ) &&
- (
- this.DateUTC == input.DateUTC ||
- (this.DateUTC != null &&
- this.DateUTC.Equals(input.DateUTC))
- ) &&
- (
- this.User == input.User ||
- (this.User != null &&
- this.User.Equals(input.User))
- ) &&
- (
- this.Details == input.Details ||
- (this.Details != null &&
- this.Details.Equals(input.Details))
- );
- }
-
- ///
- /// Gets the hash code
- ///
- /// Hash code
- public override int GetHashCode()
- {
- unchecked // Overflow is fine, just wrap
- {
- int hashCode = 41;
- if (this.Changes != null)
- hashCode = hashCode * 59 + this.Changes.GetHashCode();
- if (this.DateUTCString != null)
- hashCode = hashCode * 59 + this.DateUTCString.GetHashCode();
- if (this.DateUTC != null)
- hashCode = hashCode * 59 + this.DateUTC.GetHashCode();
- if (this.User != null)
- hashCode = hashCode * 59 + this.User.GetHashCode();
- if (this.Details != null)
- hashCode = hashCode * 59 + this.Details.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/Finance/LockHistoryModel.cs b/Xero.NetStandard.OAuth2/Model/Finance/LockHistoryModel.cs
deleted file mode 100644
index b84200b6..00000000
--- a/Xero.NetStandard.OAuth2/Model/Finance/LockHistoryModel.cs
+++ /dev/null
@@ -1,149 +0,0 @@
-/*
- * Xero Finance API
- *
- * The Finance API is a collection of endpoints which customers can use in the course of a loan application, which may assist lenders to gain the confidence they need to provide capital.
- *
- * 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.Finance
-{
- ///
- /// LockHistoryModel
- ///
- [DataContract]
- public partial class LockHistoryModel : IEquatable, IValidatableObject
- {
-
- ///
- /// Date the account hard lock was set
- ///
- /// Date the account hard lock was set
- [DataMember(Name="hardLockDate", EmitDefaultValue=false)]
- [JsonConverter(typeof(OpenAPIDateConverter))]
- public DateTime? HardLockDate { get; set; }
-
- ///
- /// Date the account soft lock was set
- ///
- /// Date the account soft lock was set
- [DataMember(Name="softLockDate", EmitDefaultValue=false)]
- [JsonConverter(typeof(OpenAPIDateConverter))]
- public DateTime? SoftLockDate { get; set; }
-
- ///
- /// The system date time that the lock was updated
- ///
- /// The system date time that the lock was updated
- [DataMember(Name="updatedDateUtc", EmitDefaultValue=false)]
- public DateTime? UpdatedDateUtc { 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 LockHistoryModel {\n");
- sb.Append(" HardLockDate: ").Append(HardLockDate).Append("\n");
- sb.Append(" SoftLockDate: ").Append(SoftLockDate).Append("\n");
- sb.Append(" UpdatedDateUtc: ").Append(UpdatedDateUtc).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 LockHistoryModel);
- }
-
- ///
- /// Returns true if LockHistoryModel instances are equal
- ///
- /// Instance of LockHistoryModel to be compared
- /// Boolean
- public bool Equals(LockHistoryModel input)
- {
- if (input == null)
- return false;
-
- return
- (
- this.HardLockDate == input.HardLockDate ||
- (this.HardLockDate != null &&
- this.HardLockDate.Equals(input.HardLockDate))
- ) &&
- (
- this.SoftLockDate == input.SoftLockDate ||
- (this.SoftLockDate != null &&
- this.SoftLockDate.Equals(input.SoftLockDate))
- ) &&
- (
- this.UpdatedDateUtc == input.UpdatedDateUtc ||
- (this.UpdatedDateUtc != null &&
- this.UpdatedDateUtc.Equals(input.UpdatedDateUtc))
- );
- }
-
- ///
- /// Gets the hash code
- ///
- /// Hash code
- public override int GetHashCode()
- {
- unchecked // Overflow is fine, just wrap
- {
- int hashCode = 41;
- if (this.HardLockDate != null)
- hashCode = hashCode * 59 + this.HardLockDate.GetHashCode();
- if (this.SoftLockDate != null)
- hashCode = hashCode * 59 + this.SoftLockDate.GetHashCode();
- if (this.UpdatedDateUtc != null)
- hashCode = hashCode * 59 + this.UpdatedDateUtc.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/Finance/LockHistoryResponse.cs b/Xero.NetStandard.OAuth2/Model/Finance/LockHistoryResponse.cs
deleted file mode 100644
index 4e41b0c2..00000000
--- a/Xero.NetStandard.OAuth2/Model/Finance/LockHistoryResponse.cs
+++ /dev/null
@@ -1,148 +0,0 @@
-/*
- * Xero Finance API
- *
- * The Finance API is a collection of endpoints which customers can use in the course of a loan application, which may assist lenders to gain the confidence they need to provide capital.
- *
- * 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.Finance
-{
- ///
- /// LockHistoryResponse
- ///
- [DataContract]
- public partial class LockHistoryResponse : IEquatable, IValidatableObject
- {
-
- ///
- /// The requested Organisation to which the data pertains
- ///
- /// The requested Organisation to which the data pertains
- [DataMember(Name="organisationId", EmitDefaultValue=false)]
- public Guid? OrganisationId { get; set; }
-
- ///
- /// The end date of the report
- ///
- /// The end date of the report
- [DataMember(Name="endDate", EmitDefaultValue=false)]
- [JsonConverter(typeof(OpenAPIDateConverter))]
- public DateTime? EndDate { get; set; }
-
- ///
- /// Gets or Sets LockDates
- ///
- [DataMember(Name="lockDates", EmitDefaultValue=false)]
- public List LockDates { 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 LockHistoryResponse {\n");
- sb.Append(" OrganisationId: ").Append(OrganisationId).Append("\n");
- sb.Append(" EndDate: ").Append(EndDate).Append("\n");
- sb.Append(" LockDates: ").Append(LockDates).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 LockHistoryResponse);
- }
-
- ///
- /// Returns true if LockHistoryResponse instances are equal
- ///
- /// Instance of LockHistoryResponse to be compared
- /// Boolean
- public bool Equals(LockHistoryResponse input)
- {
- if (input == null)
- return false;
-
- return
- (
- this.OrganisationId == input.OrganisationId ||
- (this.OrganisationId != null &&
- this.OrganisationId.Equals(input.OrganisationId))
- ) &&
- (
- this.EndDate == input.EndDate ||
- (this.EndDate != null &&
- this.EndDate.Equals(input.EndDate))
- ) &&
- (
- this.LockDates == input.LockDates ||
- this.LockDates != null &&
- input.LockDates != null &&
- this.LockDates.SequenceEqual(input.LockDates)
- );
- }
-
- ///
- /// Gets the hash code
- ///
- /// Hash code
- public override int GetHashCode()
- {
- unchecked // Overflow is fine, just wrap
- {
- int hashCode = 41;
- if (this.OrganisationId != null)
- hashCode = hashCode * 59 + this.OrganisationId.GetHashCode();
- if (this.EndDate != null)
- hashCode = hashCode * 59 + this.EndDate.GetHashCode();
- if (this.LockDates != null)
- hashCode = hashCode * 59 + this.LockDates.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/Finance/PracticeResponse.cs b/Xero.NetStandard.OAuth2/Model/Finance/PracticeResponse.cs
deleted file mode 100644
index 166bdb72..00000000
--- a/Xero.NetStandard.OAuth2/Model/Finance/PracticeResponse.cs
+++ /dev/null
@@ -1,177 +0,0 @@
-/*
- * Xero Finance API
- *
- * The Finance API is a collection of endpoints which customers can use in the course of a loan application, which may assist lenders to gain the confidence they need to provide capital.
- *
- * 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.Finance
-{
- ///
- /// PracticeResponse
- ///
- [DataContract]
- public partial class PracticeResponse : IEquatable, IValidatableObject
- {
-
- ///
- /// Year of becoming a partner.
- ///
- /// Year of becoming a partner.
- [DataMember(Name="xeroPartnerSince", EmitDefaultValue=false)]
- public int? XeroPartnerSince { get; set; }
-
- ///
- /// Customer tier e.g. Silver
- ///
- /// Customer tier e.g. Silver
- [DataMember(Name="tier", EmitDefaultValue=false)]
- public string Tier { get; set; }
-
- ///
- /// Country of location.
- ///
- /// Country of location.
- [DataMember(Name="location", EmitDefaultValue=false)]
- public string Location { get; set; }
-
- ///
- /// Organisation count.
- ///
- /// Organisation count.
- [DataMember(Name="organisationCount", EmitDefaultValue=false)]
- public int? OrganisationCount { get; set; }
-
- ///
- /// Staff certified (true/false).
- ///
- /// Staff certified (true/false).
- [DataMember(Name="staffCertified", EmitDefaultValue=false)]
- public bool? StaffCertified { 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 PracticeResponse {\n");
- sb.Append(" XeroPartnerSince: ").Append(XeroPartnerSince).Append("\n");
- sb.Append(" Tier: ").Append(Tier).Append("\n");
- sb.Append(" Location: ").Append(Location).Append("\n");
- sb.Append(" OrganisationCount: ").Append(OrganisationCount).Append("\n");
- sb.Append(" StaffCertified: ").Append(StaffCertified).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 PracticeResponse);
- }
-
- ///
- /// Returns true if PracticeResponse instances are equal
- ///
- /// Instance of PracticeResponse to be compared
- /// Boolean
- public bool Equals(PracticeResponse input)
- {
- if (input == null)
- return false;
-
- return
- (
- this.XeroPartnerSince == input.XeroPartnerSince ||
- (this.XeroPartnerSince != null &&
- this.XeroPartnerSince.Equals(input.XeroPartnerSince))
- ) &&
- (
- this.Tier == input.Tier ||
- (this.Tier != null &&
- this.Tier.Equals(input.Tier))
- ) &&
- (
- this.Location == input.Location ||
- (this.Location != null &&
- this.Location.Equals(input.Location))
- ) &&
- (
- this.OrganisationCount == input.OrganisationCount ||
- (this.OrganisationCount != null &&
- this.OrganisationCount.Equals(input.OrganisationCount))
- ) &&
- (
- this.StaffCertified == input.StaffCertified ||
- (this.StaffCertified != null &&
- this.StaffCertified.Equals(input.StaffCertified))
- );
- }
-
- ///
- /// Gets the hash code
- ///
- /// Hash code
- public override int GetHashCode()
- {
- unchecked // Overflow is fine, just wrap
- {
- int hashCode = 41;
- if (this.XeroPartnerSince != null)
- hashCode = hashCode * 59 + this.XeroPartnerSince.GetHashCode();
- if (this.Tier != null)
- hashCode = hashCode * 59 + this.Tier.GetHashCode();
- if (this.Location != null)
- hashCode = hashCode * 59 + this.Location.GetHashCode();
- if (this.OrganisationCount != null)
- hashCode = hashCode * 59 + this.OrganisationCount.GetHashCode();
- if (this.StaffCertified != null)
- hashCode = hashCode * 59 + this.StaffCertified.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/Finance/ReportHistoryModel.cs b/Xero.NetStandard.OAuth2/Model/Finance/ReportHistoryModel.cs
deleted file mode 100644
index 0a122d83..00000000
--- a/Xero.NetStandard.OAuth2/Model/Finance/ReportHistoryModel.cs
+++ /dev/null
@@ -1,147 +0,0 @@
-/*
- * Xero Finance API
- *
- * The Finance API is a collection of endpoints which customers can use in the course of a loan application, which may assist lenders to gain the confidence they need to provide capital.
- *
- * 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.Finance
-{
- ///
- /// ReportHistoryModel
- ///
- [DataContract]
- public partial class ReportHistoryModel : IEquatable, IValidatableObject
- {
-
- ///
- /// Report code or report title
- ///
- /// Report code or report title
- [DataMember(Name="reportName", EmitDefaultValue=false)]
- public string ReportName { get; set; }
-
- ///
- /// The date or date range of the report
- ///
- /// The date or date range of the report
- [DataMember(Name="reportDateText", EmitDefaultValue=false)]
- public string ReportDateText { get; set; }
-
- ///
- /// The system date time that the report was published
- ///
- /// The system date time that the report was published
- [DataMember(Name="publishedDateUtc", EmitDefaultValue=false)]
- public DateTime? PublishedDateUtc { 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 ReportHistoryModel {\n");
- sb.Append(" ReportName: ").Append(ReportName).Append("\n");
- sb.Append(" ReportDateText: ").Append(ReportDateText).Append("\n");
- sb.Append(" PublishedDateUtc: ").Append(PublishedDateUtc).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 ReportHistoryModel);
- }
-
- ///
- /// Returns true if ReportHistoryModel instances are equal
- ///
- /// Instance of ReportHistoryModel to be compared
- /// Boolean
- public bool Equals(ReportHistoryModel input)
- {
- if (input == null)
- return false;
-
- return
- (
- this.ReportName == input.ReportName ||
- (this.ReportName != null &&
- this.ReportName.Equals(input.ReportName))
- ) &&
- (
- this.ReportDateText == input.ReportDateText ||
- (this.ReportDateText != null &&
- this.ReportDateText.Equals(input.ReportDateText))
- ) &&
- (
- this.PublishedDateUtc == input.PublishedDateUtc ||
- (this.PublishedDateUtc != null &&
- this.PublishedDateUtc.Equals(input.PublishedDateUtc))
- );
- }
-
- ///
- /// Gets the hash code
- ///
- /// Hash code
- public override int GetHashCode()
- {
- unchecked // Overflow is fine, just wrap
- {
- int hashCode = 41;
- if (this.ReportName != null)
- hashCode = hashCode * 59 + this.ReportName.GetHashCode();
- if (this.ReportDateText != null)
- hashCode = hashCode * 59 + this.ReportDateText.GetHashCode();
- if (this.PublishedDateUtc != null)
- hashCode = hashCode * 59 + this.PublishedDateUtc.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/Finance/ReportHistoryResponse.cs b/Xero.NetStandard.OAuth2/Model/Finance/ReportHistoryResponse.cs
deleted file mode 100644
index 062115ce..00000000
--- a/Xero.NetStandard.OAuth2/Model/Finance/ReportHistoryResponse.cs
+++ /dev/null
@@ -1,148 +0,0 @@
-/*
- * Xero Finance API
- *
- * The Finance API is a collection of endpoints which customers can use in the course of a loan application, which may assist lenders to gain the confidence they need to provide capital.
- *
- * 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.Finance
-{
- ///
- /// ReportHistoryResponse
- ///
- [DataContract]
- public partial class ReportHistoryResponse : IEquatable, IValidatableObject
- {
-
- ///
- /// The requested Organisation to which the data pertains
- ///
- /// The requested Organisation to which the data pertains
- [DataMember(Name="organisationId", EmitDefaultValue=false)]
- public Guid? OrganisationId { get; set; }
-
- ///
- /// The end date of the report
- ///
- /// The end date of the report
- [DataMember(Name="endDate", EmitDefaultValue=false)]
- [JsonConverter(typeof(OpenAPIDateConverter))]
- public DateTime? EndDate { get; set; }
-
- ///
- /// Gets or Sets Reports
- ///
- [DataMember(Name="reports", EmitDefaultValue=false)]
- public List Reports { 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 ReportHistoryResponse {\n");
- sb.Append(" OrganisationId: ").Append(OrganisationId).Append("\n");
- sb.Append(" EndDate: ").Append(EndDate).Append("\n");
- sb.Append(" Reports: ").Append(Reports).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 ReportHistoryResponse);
- }
-
- ///
- /// Returns true if ReportHistoryResponse instances are equal
- ///
- /// Instance of ReportHistoryResponse to be compared
- /// Boolean
- public bool Equals(ReportHistoryResponse input)
- {
- if (input == null)
- return false;
-
- return
- (
- this.OrganisationId == input.OrganisationId ||
- (this.OrganisationId != null &&
- this.OrganisationId.Equals(input.OrganisationId))
- ) &&
- (
- this.EndDate == input.EndDate ||
- (this.EndDate != null &&
- this.EndDate.Equals(input.EndDate))
- ) &&
- (
- this.Reports == input.Reports ||
- this.Reports != null &&
- input.Reports != null &&
- this.Reports.SequenceEqual(input.Reports)
- );
- }
-
- ///
- /// Gets the hash code
- ///
- /// Hash code
- public override int GetHashCode()
- {
- unchecked // Overflow is fine, just wrap
- {
- int hashCode = 41;
- if (this.OrganisationId != null)
- hashCode = hashCode * 59 + this.OrganisationId.GetHashCode();
- if (this.EndDate != null)
- hashCode = hashCode * 59 + this.EndDate.GetHashCode();
- if (this.Reports != null)
- hashCode = hashCode * 59 + this.Reports.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/Finance/UserActivitiesResponse.cs b/Xero.NetStandard.OAuth2/Model/Finance/UserActivitiesResponse.cs
deleted file mode 100644
index b41d1a51..00000000
--- a/Xero.NetStandard.OAuth2/Model/Finance/UserActivitiesResponse.cs
+++ /dev/null
@@ -1,147 +0,0 @@
-/*
- * Xero Finance API
- *
- * The Finance API is a collection of endpoints which customers can use in the course of a loan application, which may assist lenders to gain the confidence they need to provide capital.
- *
- * 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.Finance
-{
- ///
- /// UserActivitiesResponse
- ///
- [DataContract]
- public partial class UserActivitiesResponse : IEquatable, IValidatableObject
- {
-
- ///
- /// The requested Organisation to which the data pertains
- ///
- /// The requested Organisation to which the data pertains
- [DataMember(Name="organisationId", EmitDefaultValue=false)]
- public Guid? OrganisationId { get; set; }
-
- ///
- /// The month of the report
- ///
- /// The month of the report
- [DataMember(Name="dataMonth", EmitDefaultValue=false)]
- public string DataMonth { get; set; }
-
- ///
- /// Gets or Sets Users
- ///
- [DataMember(Name="users", EmitDefaultValue=false)]
- public List Users { 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 UserActivitiesResponse {\n");
- sb.Append(" OrganisationId: ").Append(OrganisationId).Append("\n");
- sb.Append(" DataMonth: ").Append(DataMonth).Append("\n");
- sb.Append(" Users: ").Append(Users).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 UserActivitiesResponse);
- }
-
- ///
- /// Returns true if UserActivitiesResponse instances are equal
- ///
- /// Instance of UserActivitiesResponse to be compared
- /// Boolean
- public bool Equals(UserActivitiesResponse input)
- {
- if (input == null)
- return false;
-
- return
- (
- this.OrganisationId == input.OrganisationId ||
- (this.OrganisationId != null &&
- this.OrganisationId.Equals(input.OrganisationId))
- ) &&
- (
- this.DataMonth == input.DataMonth ||
- (this.DataMonth != null &&
- this.DataMonth.Equals(input.DataMonth))
- ) &&
- (
- this.Users == input.Users ||
- this.Users != null &&
- input.Users != null &&
- this.Users.SequenceEqual(input.Users)
- );
- }
-
- ///
- /// Gets the hash code
- ///
- /// Hash code
- public override int GetHashCode()
- {
- unchecked // Overflow is fine, just wrap
- {
- int hashCode = 41;
- if (this.OrganisationId != null)
- hashCode = hashCode * 59 + this.OrganisationId.GetHashCode();
- if (this.DataMonth != null)
- hashCode = hashCode * 59 + this.DataMonth.GetHashCode();
- if (this.Users != null)
- hashCode = hashCode * 59 + this.Users.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/Finance/UserResponse.cs b/Xero.NetStandard.OAuth2/Model/Finance/UserResponse.cs
deleted file mode 100644
index 6c8d3ff7..00000000
--- a/Xero.NetStandard.OAuth2/Model/Finance/UserResponse.cs
+++ /dev/null
@@ -1,282 +0,0 @@
-/*
- * Xero Finance API
- *
- * The Finance API is a collection of endpoints which customers can use in the course of a loan application, which may assist lenders to gain the confidence they need to provide capital.
- *
- * 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.Finance
-{
- ///
- /// UserResponse
- ///
- [DataContract]
- public partial class UserResponse : IEquatable, IValidatableObject
- {
-
- ///
- /// The Xero identifier for the user
- ///
- /// The Xero identifier for the user
- [DataMember(Name="userId", EmitDefaultValue=false)]
- public Guid? UserId { get; set; }
-
- ///
- /// Timestamp of user creation.
- ///
- /// Timestamp of user creation.
- [DataMember(Name="userCreatedDateUtc", EmitDefaultValue=false)]
- public DateTime? UserCreatedDateUtc { get; set; }
-
- ///
- /// Timestamp of user last login
- ///
- /// Timestamp of user last login
- [DataMember(Name="lastLoginDateUtc", EmitDefaultValue=false)]
- public DateTime? LastLoginDateUtc { get; set; }
-
- ///
- /// User is external partner.
- ///
- /// User is external partner.
- [DataMember(Name="isExternalPartner", EmitDefaultValue=false)]
- public bool? IsExternalPartner { get; set; }
-
- ///
- /// User has Accountant role.
- ///
- /// User has Accountant role.
- [DataMember(Name="hasAccountantRole", EmitDefaultValue=false)]
- public bool? HasAccountantRole { get; set; }
-
- ///
- /// Month period in format yyyy-MM.
- ///
- /// Month period in format yyyy-MM.
- [DataMember(Name="monthPeriod", EmitDefaultValue=false)]
- public string MonthPeriod { get; set; }
-
- ///
- /// Number of times the user has logged in.
- ///
- /// Number of times the user has logged in.
- [DataMember(Name="numberOfLogins", EmitDefaultValue=false)]
- public int? NumberOfLogins { get; set; }
-
- ///
- /// Number of documents created.
- ///
- /// Number of documents created.
- [DataMember(Name="numberOfDocumentsCreated", EmitDefaultValue=false)]
- public int? NumberOfDocumentsCreated { get; set; }
-
- ///
- /// Net value of documents created.
- ///
- /// Net value of documents created.
- [DataMember(Name="netValueDocumentsCreated", EmitDefaultValue=false)]
- public decimal? NetValueDocumentsCreated { get; set; }
-
- ///
- /// Absolute value of documents created.
- ///
- /// Absolute value of documents created.
- [DataMember(Name="absoluteValueDocumentsCreated", EmitDefaultValue=false)]
- public decimal? AbsoluteValueDocumentsCreated { get; set; }
-
- ///
- /// Gets or Sets AttachedPractices
- ///
- [DataMember(Name="attachedPractices", EmitDefaultValue=false)]
- public List AttachedPractices { get; set; }
-
- ///
- /// Gets or Sets HistoryRecords
- ///
- [DataMember(Name="historyRecords", EmitDefaultValue=false)]
- public List HistoryRecords { 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 UserResponse {\n");
- sb.Append(" UserId: ").Append(UserId).Append("\n");
- sb.Append(" UserCreatedDateUtc: ").Append(UserCreatedDateUtc).Append("\n");
- sb.Append(" LastLoginDateUtc: ").Append(LastLoginDateUtc).Append("\n");
- sb.Append(" IsExternalPartner: ").Append(IsExternalPartner).Append("\n");
- sb.Append(" HasAccountantRole: ").Append(HasAccountantRole).Append("\n");
- sb.Append(" MonthPeriod: ").Append(MonthPeriod).Append("\n");
- sb.Append(" NumberOfLogins: ").Append(NumberOfLogins).Append("\n");
- sb.Append(" NumberOfDocumentsCreated: ").Append(NumberOfDocumentsCreated).Append("\n");
- sb.Append(" NetValueDocumentsCreated: ").Append(NetValueDocumentsCreated).Append("\n");
- sb.Append(" AbsoluteValueDocumentsCreated: ").Append(AbsoluteValueDocumentsCreated).Append("\n");
- sb.Append(" AttachedPractices: ").Append(AttachedPractices).Append("\n");
- sb.Append(" HistoryRecords: ").Append(HistoryRecords).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 UserResponse);
- }
-
- ///
- /// Returns true if UserResponse instances are equal
- ///
- /// Instance of UserResponse to be compared
- /// Boolean
- public bool Equals(UserResponse input)
- {
- if (input == null)
- return false;
-
- return
- (
- this.UserId == input.UserId ||
- (this.UserId != null &&
- this.UserId.Equals(input.UserId))
- ) &&
- (
- this.UserCreatedDateUtc == input.UserCreatedDateUtc ||
- (this.UserCreatedDateUtc != null &&
- this.UserCreatedDateUtc.Equals(input.UserCreatedDateUtc))
- ) &&
- (
- this.LastLoginDateUtc == input.LastLoginDateUtc ||
- (this.LastLoginDateUtc != null &&
- this.LastLoginDateUtc.Equals(input.LastLoginDateUtc))
- ) &&
- (
- this.IsExternalPartner == input.IsExternalPartner ||
- (this.IsExternalPartner != null &&
- this.IsExternalPartner.Equals(input.IsExternalPartner))
- ) &&
- (
- this.HasAccountantRole == input.HasAccountantRole ||
- (this.HasAccountantRole != null &&
- this.HasAccountantRole.Equals(input.HasAccountantRole))
- ) &&
- (
- this.MonthPeriod == input.MonthPeriod ||
- (this.MonthPeriod != null &&
- this.MonthPeriod.Equals(input.MonthPeriod))
- ) &&
- (
- this.NumberOfLogins == input.NumberOfLogins ||
- (this.NumberOfLogins != null &&
- this.NumberOfLogins.Equals(input.NumberOfLogins))
- ) &&
- (
- this.NumberOfDocumentsCreated == input.NumberOfDocumentsCreated ||
- (this.NumberOfDocumentsCreated != null &&
- this.NumberOfDocumentsCreated.Equals(input.NumberOfDocumentsCreated))
- ) &&
- (
- this.NetValueDocumentsCreated == input.NetValueDocumentsCreated ||
- (this.NetValueDocumentsCreated != null &&
- this.NetValueDocumentsCreated.Equals(input.NetValueDocumentsCreated))
- ) &&
- (
- this.AbsoluteValueDocumentsCreated == input.AbsoluteValueDocumentsCreated ||
- (this.AbsoluteValueDocumentsCreated != null &&
- this.AbsoluteValueDocumentsCreated.Equals(input.AbsoluteValueDocumentsCreated))
- ) &&
- (
- this.AttachedPractices == input.AttachedPractices ||
- this.AttachedPractices != null &&
- input.AttachedPractices != null &&
- this.AttachedPractices.SequenceEqual(input.AttachedPractices)
- ) &&
- (
- this.HistoryRecords == input.HistoryRecords ||
- this.HistoryRecords != null &&
- input.HistoryRecords != null &&
- this.HistoryRecords.SequenceEqual(input.HistoryRecords)
- );
- }
-
- ///
- /// Gets the hash code
- ///
- /// Hash code
- public override int GetHashCode()
- {
- unchecked // Overflow is fine, just wrap
- {
- int hashCode = 41;
- if (this.UserId != null)
- hashCode = hashCode * 59 + this.UserId.GetHashCode();
- if (this.UserCreatedDateUtc != null)
- hashCode = hashCode * 59 + this.UserCreatedDateUtc.GetHashCode();
- if (this.LastLoginDateUtc != null)
- hashCode = hashCode * 59 + this.LastLoginDateUtc.GetHashCode();
- if (this.IsExternalPartner != null)
- hashCode = hashCode * 59 + this.IsExternalPartner.GetHashCode();
- if (this.HasAccountantRole != null)
- hashCode = hashCode * 59 + this.HasAccountantRole.GetHashCode();
- if (this.MonthPeriod != null)
- hashCode = hashCode * 59 + this.MonthPeriod.GetHashCode();
- if (this.NumberOfLogins != null)
- hashCode = hashCode * 59 + this.NumberOfLogins.GetHashCode();
- if (this.NumberOfDocumentsCreated != null)
- hashCode = hashCode * 59 + this.NumberOfDocumentsCreated.GetHashCode();
- if (this.NetValueDocumentsCreated != null)
- hashCode = hashCode * 59 + this.NetValueDocumentsCreated.GetHashCode();
- if (this.AbsoluteValueDocumentsCreated != null)
- hashCode = hashCode * 59 + this.AbsoluteValueDocumentsCreated.GetHashCode();
- if (this.AttachedPractices != null)
- hashCode = hashCode * 59 + this.AttachedPractices.GetHashCode();
- if (this.HistoryRecords != null)
- hashCode = hashCode * 59 + this.HistoryRecords.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/Xero.NetStandard.OAuth2.csproj b/Xero.NetStandard.OAuth2/Xero.NetStandard.OAuth2.csproj
index 58c77a26..d89201c3 100644
--- a/Xero.NetStandard.OAuth2/Xero.NetStandard.OAuth2.csproj
+++ b/Xero.NetStandard.OAuth2/Xero.NetStandard.OAuth2.csproj
@@ -16,7 +16,7 @@
truetrueXero.NetStandard.OAuth2
- 12.5.0
+ 12.5.1bin\$(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 21cc2549..4ef206c0 100644
--- a/docs/accounting/index.html
+++ b/docs/accounting/index.html
@@ -6350,7 +6350,7 @@