diff --git a/Xero.NetStandard.OAuth2/Api/AccountingApi.cs b/Xero.NetStandard.OAuth2/Api/AccountingApi.cs index 429669b7..cf5ccc08 100644 --- a/Xero.NetStandard.OAuth2/Api/AccountingApi.cs +++ b/Xero.NetStandard.OAuth2/Api/AccountingApi.cs @@ -7,7 +7,7 @@ * Generated by: https://github.com/openapitools/openapi-generator.git */ -// The version of the OpenAPI document: 9.1.0 +// The version of the OpenAPI document: 9.2.0 using System; diff --git a/Xero.NetStandard.OAuth2/Api/AppStoreApi.cs b/Xero.NetStandard.OAuth2/Api/AppStoreApi.cs index 1b9ba9a3..3b255276 100644 --- a/Xero.NetStandard.OAuth2/Api/AppStoreApi.cs +++ b/Xero.NetStandard.OAuth2/Api/AppStoreApi.cs @@ -7,7 +7,7 @@ * Generated by: https://github.com/openapitools/openapi-generator.git */ -// The version of the OpenAPI document: 9.1.0 +// The version of the OpenAPI document: 9.2.0 using System; diff --git a/Xero.NetStandard.OAuth2/Api/AssetApi.cs b/Xero.NetStandard.OAuth2/Api/AssetApi.cs index d537c0e6..e314c685 100644 --- a/Xero.NetStandard.OAuth2/Api/AssetApi.cs +++ b/Xero.NetStandard.OAuth2/Api/AssetApi.cs @@ -7,7 +7,7 @@ * Generated by: https://github.com/openapitools/openapi-generator.git */ -// The version of the OpenAPI document: 9.1.0 +// The version of the OpenAPI document: 9.2.0 using System; diff --git a/Xero.NetStandard.OAuth2/Api/BankFeedsApi.cs b/Xero.NetStandard.OAuth2/Api/BankFeedsApi.cs index 531ed22a..2a5852e9 100644 --- a/Xero.NetStandard.OAuth2/Api/BankFeedsApi.cs +++ b/Xero.NetStandard.OAuth2/Api/BankFeedsApi.cs @@ -7,7 +7,7 @@ * Generated by: https://github.com/openapitools/openapi-generator.git */ -// The version of the OpenAPI document: 9.1.0 +// The version of the OpenAPI document: 9.2.0 using System; diff --git a/Xero.NetStandard.OAuth2/Api/FilesApi.cs b/Xero.NetStandard.OAuth2/Api/FilesApi.cs index cd472198..1c85175f 100644 --- a/Xero.NetStandard.OAuth2/Api/FilesApi.cs +++ b/Xero.NetStandard.OAuth2/Api/FilesApi.cs @@ -7,7 +7,7 @@ * Generated by: https://github.com/openapitools/openapi-generator.git */ -// The version of the OpenAPI document: 9.1.0 +// The version of the OpenAPI document: 9.2.0 using System; diff --git a/Xero.NetStandard.OAuth2/Api/FinanceApi.cs b/Xero.NetStandard.OAuth2/Api/FinanceApi.cs index f7cce86c..a8a4328e 100644 --- a/Xero.NetStandard.OAuth2/Api/FinanceApi.cs +++ b/Xero.NetStandard.OAuth2/Api/FinanceApi.cs @@ -7,7 +7,7 @@ * Generated by: https://github.com/openapitools/openapi-generator.git */ -// The version of the OpenAPI document: 9.1.0 +// The version of the OpenAPI document: 9.2.0 using System; diff --git a/Xero.NetStandard.OAuth2/Api/IdentityApi.cs b/Xero.NetStandard.OAuth2/Api/IdentityApi.cs index 3a172a95..2a08a5cc 100644 --- a/Xero.NetStandard.OAuth2/Api/IdentityApi.cs +++ b/Xero.NetStandard.OAuth2/Api/IdentityApi.cs @@ -7,7 +7,7 @@ * Generated by: https://github.com/openapitools/openapi-generator.git */ -// The version of the OpenAPI document: 9.1.0 +// The version of the OpenAPI document: 9.2.0 using System; diff --git a/Xero.NetStandard.OAuth2/Api/PayrollAUApi.cs b/Xero.NetStandard.OAuth2/Api/PayrollAUApi.cs index 324d46da..5a1b29d5 100644 --- a/Xero.NetStandard.OAuth2/Api/PayrollAUApi.cs +++ b/Xero.NetStandard.OAuth2/Api/PayrollAUApi.cs @@ -7,7 +7,7 @@ * Generated by: https://github.com/openapitools/openapi-generator.git */ -// The version of the OpenAPI document: 9.1.0 +// The version of the OpenAPI document: 9.2.0 using System; diff --git a/Xero.NetStandard.OAuth2/Api/PayrollNZApi.cs b/Xero.NetStandard.OAuth2/Api/PayrollNZApi.cs index e18a2470..97713d43 100644 --- a/Xero.NetStandard.OAuth2/Api/PayrollNZApi.cs +++ b/Xero.NetStandard.OAuth2/Api/PayrollNZApi.cs @@ -7,7 +7,7 @@ * Generated by: https://github.com/openapitools/openapi-generator.git */ -// The version of the OpenAPI document: 9.1.0 +// The version of the OpenAPI document: 9.2.0 using System; @@ -2020,37 +2020,6 @@ public interface IPayrollNzApiAsync : IApiAccessor /// Task of ApiResponse (EmployeeTaxObject) System.Threading.Tasks.Task> UpdateEmployeeTaxAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid employeeID, EmployeeTax employeeTax, string idempotencyKey = null, CancellationToken cancellationToken = default); /// - /// Updates a pay run - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Xero API OAuth 2.0 accessToken - /// Xero identifier for Tenant - /// Identifier for the pay run - /// - /// 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 PayRunObject - System.Threading.Tasks.Task UpdatePayRunAsync (string accessToken, string xeroTenantId, Guid payRunID, PayRun payRun, string idempotencyKey = null, CancellationToken cancellationToken = default); - - /// - /// Updates a pay run - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Xero API OAuth 2.0 accessToken - /// Xero identifier for Tenant - /// Identifier for the pay run - /// - /// 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 (PayRunObject) - System.Threading.Tasks.Task> UpdatePayRunAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid payRunID, PayRun payRun, string idempotencyKey = null, CancellationToken cancellationToken = default); - /// /// Creates an employee pay slip /// /// @@ -8195,97 +8164,6 @@ public async System.Threading.Tasks.Task UpdateEmployeeTaxAsy } - /// - /// Updates a pay run - /// - /// Thrown when fails to make API call - /// Xero API OAuth 2.0 accessToken - /// Xero identifier for Tenant - /// Identifier for the pay run - /// - /// 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 PayRunObject - public async System.Threading.Tasks.Task UpdatePayRunAsync (string accessToken, string xeroTenantId, Guid payRunID, PayRun payRun, string idempotencyKey = null, CancellationToken cancellationToken = default) - { - Xero.NetStandard.OAuth2.Client.ApiResponse localVarResponse = await UpdatePayRunAsyncWithHttpInfo(accessToken, xeroTenantId, payRunID, payRun, idempotencyKey, cancellationToken); - return localVarResponse.Data; - - } - - /// - /// Updates a pay run - /// - /// Thrown when fails to make API call - /// Xero API OAuth 2.0 accessToken - /// Xero identifier for Tenant - /// Identifier for the pay run - /// - /// 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 (PayRunObject) - public async System.Threading.Tasks.Task> UpdatePayRunAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid payRunID, PayRun payRun, 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 PayrollNzApi->UpdatePayRun"); - - // verify the required parameter 'payRunID' is set - if (payRunID == null) - throw new Xero.NetStandard.OAuth2.Client.ApiException(400, "Missing required parameter 'payRunID' when calling PayrollNzApi->UpdatePayRun"); - - // verify the required parameter 'payRun' is set - if (payRun == null) - throw new Xero.NetStandard.OAuth2.Client.ApiException(400, "Missing required parameter 'payRun' when calling PayrollNzApi->UpdatePayRun"); - - - 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 (payRunID != null) - requestOptions.PathParameters.Add("PayRunID", Xero.NetStandard.OAuth2.Client.ClientUtils.ParameterToString(payRunID)); // path parameter - if (xeroTenantId != null) - requestOptions.HeaderParameters.Add("Xero-Tenant-Id", Xero.NetStandard.OAuth2.Client.ClientUtils.ParameterToString(xeroTenantId)); // header parameter - if (idempotencyKey != null) - requestOptions.HeaderParameters.Add("Idempotency-Key", Xero.NetStandard.OAuth2.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter - requestOptions.Data = payRun; - - // 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("/PayRuns/{PayRunID}", requestOptions, this.Configuration, cancellationToken); - - if (this.ExceptionFactory != null) - { - Exception exception = this.ExceptionFactory("UpdatePayRun", response); - if (exception != null) throw exception; - } - - return response; - } - - /// /// Creates an employee pay slip /// diff --git a/Xero.NetStandard.OAuth2/Api/PayrollUkApi.cs b/Xero.NetStandard.OAuth2/Api/PayrollUkApi.cs index a54c2aea..92fe9fef 100644 --- a/Xero.NetStandard.OAuth2/Api/PayrollUkApi.cs +++ b/Xero.NetStandard.OAuth2/Api/PayrollUkApi.cs @@ -7,7 +7,7 @@ * Generated by: https://github.com/openapitools/openapi-generator.git */ -// The version of the OpenAPI document: 9.1.0 +// The version of the OpenAPI document: 9.2.0 using System; @@ -1989,37 +1989,6 @@ public interface IPayrollUkApiAsync : IApiAccessor /// Task of ApiResponse (SalaryAndWageObject) System.Threading.Tasks.Task> UpdateEmployeeSalaryAndWageAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid employeeID, Guid salaryAndWagesID, SalaryAndWage salaryAndWage, string idempotencyKey = null, CancellationToken cancellationToken = default); /// - /// Updates a specific pay run - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Xero API OAuth 2.0 accessToken - /// Xero identifier for Tenant - /// Identifier for the pay run - /// - /// 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 PayRunObject - System.Threading.Tasks.Task UpdatePayRunAsync (string accessToken, string xeroTenantId, Guid payRunID, PayRun payRun, string idempotencyKey = null, CancellationToken cancellationToken = default); - - /// - /// Updates a specific pay run - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Xero API OAuth 2.0 accessToken - /// Xero identifier for Tenant - /// Identifier for the pay run - /// - /// 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 (PayRunObject) - System.Threading.Tasks.Task> UpdatePayRunAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid payRunID, PayRun payRun, string idempotencyKey = null, CancellationToken cancellationToken = default); - /// /// Updates a specific timesheet line for a specific timesheet /// /// @@ -8052,97 +8021,6 @@ public async System.Threading.Tasks.Task UpdateEmployeeSala } - /// - /// Updates a specific pay run - /// - /// Thrown when fails to make API call - /// Xero API OAuth 2.0 accessToken - /// Xero identifier for Tenant - /// Identifier for the pay run - /// - /// 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 PayRunObject - public async System.Threading.Tasks.Task UpdatePayRunAsync (string accessToken, string xeroTenantId, Guid payRunID, PayRun payRun, string idempotencyKey = null, CancellationToken cancellationToken = default) - { - Xero.NetStandard.OAuth2.Client.ApiResponse localVarResponse = await UpdatePayRunAsyncWithHttpInfo(accessToken, xeroTenantId, payRunID, payRun, idempotencyKey, cancellationToken); - return localVarResponse.Data; - - } - - /// - /// Updates a specific pay run - /// - /// Thrown when fails to make API call - /// Xero API OAuth 2.0 accessToken - /// Xero identifier for Tenant - /// Identifier for the pay run - /// - /// 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 (PayRunObject) - public async System.Threading.Tasks.Task> UpdatePayRunAsyncWithHttpInfo (string accessToken, string xeroTenantId, Guid payRunID, PayRun payRun, 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 PayrollUkApi->UpdatePayRun"); - - // verify the required parameter 'payRunID' is set - if (payRunID == null) - throw new Xero.NetStandard.OAuth2.Client.ApiException(400, "Missing required parameter 'payRunID' when calling PayrollUkApi->UpdatePayRun"); - - // verify the required parameter 'payRun' is set - if (payRun == null) - throw new Xero.NetStandard.OAuth2.Client.ApiException(400, "Missing required parameter 'payRun' when calling PayrollUkApi->UpdatePayRun"); - - - 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 (payRunID != null) - requestOptions.PathParameters.Add("PayRunID", Xero.NetStandard.OAuth2.Client.ClientUtils.ParameterToString(payRunID)); // path parameter - if (xeroTenantId != null) - requestOptions.HeaderParameters.Add("Xero-Tenant-Id", Xero.NetStandard.OAuth2.Client.ClientUtils.ParameterToString(xeroTenantId)); // header parameter - if (idempotencyKey != null) - requestOptions.HeaderParameters.Add("Idempotency-Key", Xero.NetStandard.OAuth2.Client.ClientUtils.ParameterToString(idempotencyKey)); // header parameter - requestOptions.Data = payRun; - - // 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("/PayRuns/{PayRunID}", requestOptions, this.Configuration, cancellationToken); - - if (this.ExceptionFactory != null) - { - Exception exception = this.ExceptionFactory("UpdatePayRun", response); - if (exception != null) throw exception; - } - - return response; - } - - /// /// Updates a specific timesheet line for a specific timesheet /// diff --git a/Xero.NetStandard.OAuth2/Api/ProjectApi.cs b/Xero.NetStandard.OAuth2/Api/ProjectApi.cs index c01f2f74..d76488c7 100644 --- a/Xero.NetStandard.OAuth2/Api/ProjectApi.cs +++ b/Xero.NetStandard.OAuth2/Api/ProjectApi.cs @@ -7,7 +7,7 @@ * Generated by: https://github.com/openapitools/openapi-generator.git */ -// The version of the OpenAPI document: 9.1.0 +// The version of the OpenAPI document: 9.2.0 using System; diff --git a/Xero.NetStandard.OAuth2/Client/ApiClient.cs b/Xero.NetStandard.OAuth2/Client/ApiClient.cs index 08af83a9..ad7f2893 100644 --- a/Xero.NetStandard.OAuth2/Client/ApiClient.cs +++ b/Xero.NetStandard.OAuth2/Client/ApiClient.cs @@ -434,7 +434,7 @@ protected virtual void InterceptRequest(HttpRequestMessage req) { } - + /// /// Intercepts the response after it is received. Override to add custom logic. /// diff --git a/Xero.NetStandard.OAuth2/Client/Configuration.cs b/Xero.NetStandard.OAuth2/Client/Configuration.cs index b45b2bcc..742a423c 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.2.0"; + public const string Version = "12.3.0"; /// /// Identifier for ISO 8601 DateTime Format @@ -103,7 +103,7 @@ public class Configuration : IReadableConfiguration [System.Diagnostics.CodeAnalysis.SuppressMessage("ReSharper", "VirtualMemberCallInConstructor")] public Configuration() { - UserAgent = "xero-netstandard-12.2.0"; + UserAgent = "xero-netstandard-12.3.0"; BasePath = "https://api.xero.com/api.xro/2.0"; DefaultHeader = new ConcurrentDictionary(); ApiKey = new ConcurrentDictionary(); @@ -341,8 +341,8 @@ public static String ToDebugReport() { String report = "C# SDK (Xero.NetStandard.OAuth2) Debug Report:\n"; report += " OS: " + System.Runtime.InteropServices.RuntimeInformation.OSDescription + "\n"; - report += " Version of the API: 9.1.0\n"; - report += " SDK Package Version: 12.2.0\n"; + report += " Version of the API: 9.2.0\n"; + report += " SDK Package Version: 12.3.0\n"; return report; } diff --git a/Xero.NetStandard.OAuth2/Model/Accounting/Contact.cs b/Xero.NetStandard.OAuth2/Model/Accounting/Contact.cs index 7afde8a3..e8f8a2e2 100644 --- a/Xero.NetStandard.OAuth2/Model/Accounting/Contact.cs +++ b/Xero.NetStandard.OAuth2/Model/Accounting/Contact.cs @@ -64,6 +64,45 @@ public enum ContactStatusEnum [DataMember(Name="ContactStatus", EmitDefaultValue=false)] public ContactStatusEnum ContactStatus { get; set; } /// + /// Identifier of the regional type of tax number, such as US, UK, or other regional tax identifiers + /// + /// Identifier of the regional type of tax number, such as US, UK, or other regional tax identifiers + [JsonConverter(typeof(Client.CustomStringEnumConverter))] + public enum TaxNumberTypeEnum + { + /// + /// Enum SSN for value: SSN + /// + [EnumMember(Value = "SSN")] + SSN = 1, + + /// + /// Enum EIN for value: EIN + /// + [EnumMember(Value = "EIN")] + EIN = 2, + + /// + /// Enum ITIN for value: ITIN + /// + [EnumMember(Value = "ITIN")] + ITIN = 3, + + /// + /// Enum ATIN for value: ATIN + /// + [EnumMember(Value = "ATIN")] + ATIN = 4 + + } + + /// + /// Identifier of the regional type of tax number, such as US, UK, or other regional tax identifiers + /// + /// Identifier of the regional type of tax number, such as US, UK, or other regional tax identifiers + [DataMember(Name="TaxNumberType", EmitDefaultValue=false)] + public TaxNumberTypeEnum TaxNumberType { get; set; } + /// /// The default sales line amount type for a contact. Only available when summaryOnly parameter or paging is used, or when fetch by ContactId or ContactNumber. /// /// The default sales line amount type for a contact. Only available when summaryOnly parameter or paging is used, or when fetch by ContactId or ContactNumber. @@ -418,6 +457,7 @@ public override string ToString() sb.Append(" ContactPersons: ").Append(ContactPersons).Append("\n"); sb.Append(" BankAccountDetails: ").Append(BankAccountDetails).Append("\n"); sb.Append(" TaxNumber: ").Append(TaxNumber).Append("\n"); + sb.Append(" TaxNumberType: ").Append(TaxNumberType).Append("\n"); sb.Append(" AccountsReceivableTaxType: ").Append(AccountsReceivableTaxType).Append("\n"); sb.Append(" AccountsPayableTaxType: ").Append(AccountsPayableTaxType).Append("\n"); sb.Append(" Addresses: ").Append(Addresses).Append("\n"); @@ -546,6 +586,10 @@ public bool Equals(Contact input) (this.TaxNumber != null && this.TaxNumber.Equals(input.TaxNumber)) ) && + ( + this.TaxNumberType == input.TaxNumberType || + this.TaxNumberType.Equals(input.TaxNumberType) + ) && ( this.AccountsReceivableTaxType == input.AccountsReceivableTaxType || (this.AccountsReceivableTaxType != null && @@ -731,6 +775,7 @@ public override int GetHashCode() hashCode = hashCode * 59 + this.BankAccountDetails.GetHashCode(); if (this.TaxNumber != null) hashCode = hashCode * 59 + this.TaxNumber.GetHashCode(); + hashCode = hashCode * 59 + this.TaxNumberType.GetHashCode(); if (this.AccountsReceivableTaxType != null) hashCode = hashCode * 59 + this.AccountsReceivableTaxType.GetHashCode(); if (this.AccountsPayableTaxType != null) diff --git a/Xero.NetStandard.OAuth2/Model/Asset/BookDepreciationDetail.cs b/Xero.NetStandard.OAuth2/Model/Asset/BookDepreciationDetail.cs index 8aee63be..f4725d3e 100644 --- a/Xero.NetStandard.OAuth2/Model/Asset/BookDepreciationDetail.cs +++ b/Xero.NetStandard.OAuth2/Model/Asset/BookDepreciationDetail.cs @@ -81,6 +81,41 @@ public partial class BookDepreciationDetail : IEquatable + /// (New Zealand Orgs Only) The portion of capital gain realised from the disposal of a fixed asset that is attributable to its business use. + /// + /// (New Zealand Orgs Only) The portion of capital gain realised from the disposal of a fixed asset that is attributable to its business use. + [DataMember(Name="businessUseCapitalGain", EmitDefaultValue=false)] + public decimal? BusinessUseCapitalGain { get; set; } + + /// + /// (New Zealand Orgs Only) Represents the gain or loss from the disposal of the business use portion of a fixed asset. This value records the financial result (profit or loss) related specifically to the asset’s business use. + /// + /// (New Zealand Orgs Only) Represents the gain or loss from the disposal of the business use portion of a fixed asset. This value records the financial result (profit or loss) related specifically to the asset’s business use. + [DataMember(Name="businessUseCurrentGainLoss", EmitDefaultValue=false)] + public decimal? BusinessUseCurrentGainLoss { get; set; } + + /// + /// (New Zealand Orgs Only) The portion of capital gain realised from the disposal of a fixed asset that is attributable to its private (non-business) use. + /// + /// (New Zealand Orgs Only) The portion of capital gain realised from the disposal of a fixed asset that is attributable to its private (non-business) use. + [DataMember(Name="privateUseCapitalGain", EmitDefaultValue=false)] + public decimal? PrivateUseCapitalGain { get; set; } + + /// + /// (New Zealand Orgs Only) Represents the gain or loss from the disposal of the private use portion of a fixed asset. This value records the financial result (profit or loss) related specifically to the asset’s private use. + /// + /// (New Zealand Orgs Only) Represents the gain or loss from the disposal of the private use portion of a fixed asset. This value records the financial result (profit or loss) related specifically to the asset’s private use. + [DataMember(Name="privateUseCurrentGainLoss", EmitDefaultValue=false)] + public decimal? PrivateUseCurrentGainLoss { get; set; } + + /// + /// (New Zealand Orgs Only) The Investment Boost deduction percentage. + /// + /// (New Zealand Orgs Only) The Investment Boost deduction percentage. + [DataMember(Name="initialDeductionPercentage", EmitDefaultValue=false)] + public decimal? InitialDeductionPercentage { get; set; } + /// /// Returns the string presentation of the object /// @@ -96,6 +131,11 @@ public override string ToString() sb.Append(" ResidualValue: ").Append(ResidualValue).Append("\n"); sb.Append(" PriorAccumDepreciationAmount: ").Append(PriorAccumDepreciationAmount).Append("\n"); sb.Append(" CurrentAccumDepreciationAmount: ").Append(CurrentAccumDepreciationAmount).Append("\n"); + sb.Append(" BusinessUseCapitalGain: ").Append(BusinessUseCapitalGain).Append("\n"); + sb.Append(" BusinessUseCurrentGainLoss: ").Append(BusinessUseCurrentGainLoss).Append("\n"); + sb.Append(" PrivateUseCapitalGain: ").Append(PrivateUseCapitalGain).Append("\n"); + sb.Append(" PrivateUseCurrentGainLoss: ").Append(PrivateUseCurrentGainLoss).Append("\n"); + sb.Append(" InitialDeductionPercentage: ").Append(InitialDeductionPercentage).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -164,6 +204,31 @@ public bool Equals(BookDepreciationDetail input) this.CurrentAccumDepreciationAmount == input.CurrentAccumDepreciationAmount || (this.CurrentAccumDepreciationAmount != null && this.CurrentAccumDepreciationAmount.Equals(input.CurrentAccumDepreciationAmount)) + ) && + ( + this.BusinessUseCapitalGain == input.BusinessUseCapitalGain || + (this.BusinessUseCapitalGain != null && + this.BusinessUseCapitalGain.Equals(input.BusinessUseCapitalGain)) + ) && + ( + this.BusinessUseCurrentGainLoss == input.BusinessUseCurrentGainLoss || + (this.BusinessUseCurrentGainLoss != null && + this.BusinessUseCurrentGainLoss.Equals(input.BusinessUseCurrentGainLoss)) + ) && + ( + this.PrivateUseCapitalGain == input.PrivateUseCapitalGain || + (this.PrivateUseCapitalGain != null && + this.PrivateUseCapitalGain.Equals(input.PrivateUseCapitalGain)) + ) && + ( + this.PrivateUseCurrentGainLoss == input.PrivateUseCurrentGainLoss || + (this.PrivateUseCurrentGainLoss != null && + this.PrivateUseCurrentGainLoss.Equals(input.PrivateUseCurrentGainLoss)) + ) && + ( + this.InitialDeductionPercentage == input.InitialDeductionPercentage || + (this.InitialDeductionPercentage != null && + this.InitialDeductionPercentage.Equals(input.InitialDeductionPercentage)) ); } @@ -190,6 +255,16 @@ public override int GetHashCode() hashCode = hashCode * 59 + this.PriorAccumDepreciationAmount.GetHashCode(); if (this.CurrentAccumDepreciationAmount != null) hashCode = hashCode * 59 + this.CurrentAccumDepreciationAmount.GetHashCode(); + if (this.BusinessUseCapitalGain != null) + hashCode = hashCode * 59 + this.BusinessUseCapitalGain.GetHashCode(); + if (this.BusinessUseCurrentGainLoss != null) + hashCode = hashCode * 59 + this.BusinessUseCurrentGainLoss.GetHashCode(); + if (this.PrivateUseCapitalGain != null) + hashCode = hashCode * 59 + this.PrivateUseCapitalGain.GetHashCode(); + if (this.PrivateUseCurrentGainLoss != null) + hashCode = hashCode * 59 + this.PrivateUseCurrentGainLoss.GetHashCode(); + if (this.InitialDeductionPercentage != null) + hashCode = hashCode * 59 + this.InitialDeductionPercentage.GetHashCode(); return hashCode; } } diff --git a/Xero.NetStandard.OAuth2/Xero.NetStandard.OAuth2.csproj b/Xero.NetStandard.OAuth2/Xero.NetStandard.OAuth2.csproj index b050ee1a..c232474c 100644 --- a/Xero.NetStandard.OAuth2/Xero.NetStandard.OAuth2.csproj +++ b/Xero.NetStandard.OAuth2/Xero.NetStandard.OAuth2.csproj @@ -16,7 +16,7 @@ true true Xero.NetStandard.OAuth2 - 12.2.0 + 12.3.0 bin\$(Configuration)\$(TargetFramework)\Xero.NetStandard.OAuth2.xml https://github.com/XeroAPI/Xero-NetStandard/ https://en.gravatar.com/userimage/180557955/74b3a957d886bc921b0d1455beed9dab.png diff --git a/docs/accounting/index.html b/docs/accounting/index.html index cfe6f299..0eb2786c 100644 --- a/docs/accounting/index.html +++ b/docs/accounting/index.html @@ -2104,6 +2104,11 @@ "type" : "string", "description" : "Tax number of contact – this is also known as the ABN (Australia), GST Number (New Zealand), VAT Number (UK) or Tax ID Number (US and global) in the Xero UI depending on which regionalized version of Xero you are using (max length = 50)" }, + "TaxNumberType" : { + "type" : "string", + "description" : "Identifier of the regional type of tax number, such as US, UK, or other regional tax identifiers", + "enum" : [ "SSN", "EIN", "ITIN", "ATIN" ] + }, "AccountsReceivableTaxType" : { "type" : "string", "description" : "The tax type from TaxRates" @@ -6340,7 +6345,7 @@