Skip to content

Commit

Permalink
Build from OAS 7.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Raghunath-S-S-J committed Jan 30, 2025
1 parent 18684e2 commit 2c0e319
Show file tree
Hide file tree
Showing 28 changed files with 281 additions and 119 deletions.
2 changes: 1 addition & 1 deletion Xero.NetStandard.OAuth2/Api/AccountingApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

// The version of the OpenAPI document: 6.3.0
// The version of the OpenAPI document: 7.0.0


using System;
Expand Down
2 changes: 1 addition & 1 deletion Xero.NetStandard.OAuth2/Api/AppStoreApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

// The version of the OpenAPI document: 6.3.0
// The version of the OpenAPI document: 7.0.0


using System;
Expand Down
2 changes: 1 addition & 1 deletion Xero.NetStandard.OAuth2/Api/AssetApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

// The version of the OpenAPI document: 6.3.0
// The version of the OpenAPI document: 7.0.0


using System;
Expand Down
2 changes: 1 addition & 1 deletion Xero.NetStandard.OAuth2/Api/BankFeedsApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

// The version of the OpenAPI document: 6.3.0
// The version of the OpenAPI document: 7.0.0


using System;
Expand Down
2 changes: 1 addition & 1 deletion Xero.NetStandard.OAuth2/Api/FilesApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

// The version of the OpenAPI document: 6.3.0
// The version of the OpenAPI document: 7.0.0


using System;
Expand Down
2 changes: 1 addition & 1 deletion Xero.NetStandard.OAuth2/Api/FinanceApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

// The version of the OpenAPI document: 6.3.0
// The version of the OpenAPI document: 7.0.0


using System;
Expand Down
2 changes: 1 addition & 1 deletion Xero.NetStandard.OAuth2/Api/IdentityApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

// The version of the OpenAPI document: 6.3.0
// The version of the OpenAPI document: 7.0.0


using System;
Expand Down
2 changes: 1 addition & 1 deletion Xero.NetStandard.OAuth2/Api/PayrollAUApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

// The version of the OpenAPI document: 6.3.0
// The version of the OpenAPI document: 7.0.0


using System;
Expand Down
2 changes: 1 addition & 1 deletion Xero.NetStandard.OAuth2/Api/PayrollNZApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

// The version of the OpenAPI document: 6.3.0
// The version of the OpenAPI document: 7.0.0


using System;
Expand Down
2 changes: 1 addition & 1 deletion Xero.NetStandard.OAuth2/Api/PayrollUkApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

// The version of the OpenAPI document: 6.3.0
// The version of the OpenAPI document: 7.0.0


using System;
Expand Down
2 changes: 1 addition & 1 deletion Xero.NetStandard.OAuth2/Api/ProjectApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

// The version of the OpenAPI document: 6.3.0
// The version of the OpenAPI document: 7.0.0


using System;
Expand Down
8 changes: 4 additions & 4 deletions Xero.NetStandard.OAuth2/Client/Configuration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class Configuration : IReadableConfiguration
/// Version of the package.
/// </summary>
/// <value>Version of the package.</value>
public const string Version = "9.2.0";
public const string Version = "10.0.0";

/// <summary>
/// Identifier for ISO 8601 DateTime Format
Expand Down Expand Up @@ -103,7 +103,7 @@ public class Configuration : IReadableConfiguration
[System.Diagnostics.CodeAnalysis.SuppressMessage("ReSharper", "VirtualMemberCallInConstructor")]
public Configuration()
{
UserAgent = "xero-netstandard-9.2.0";
UserAgent = "xero-netstandard-10.0.0";
BasePath = "https://api.xero.com/api.xro/2.0";
DefaultHeader = new ConcurrentDictionary<string, string>();
ApiKey = new ConcurrentDictionary<string, string>();
Expand Down Expand Up @@ -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: 6.3.0\n";
report += " SDK Package Version: 9.2.0\n";
report += " Version of the API: 7.0.0\n";
report += " SDK Package Version: 10.0.0\n";

return report;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ public partial class CurrentStatementResponse : IEquatable<CurrentStatementResp
public DateTime? ImportedDateTimeUtc { get; set; }

/// <summary>
/// Looking at the most recent bank statement, this field indicates the source of the data (direct bank feed, indirect bank feed, file upload, or manual keying).
/// Looking at the most recent bank statement, this field indicates the source of the data (direct bank feed, file upload, or manual keying).
/// </summary>
/// <value>Looking at the most recent bank statement, this field indicates the source of the data (direct bank feed, indirect bank feed, file upload, or manual keying).</value>
/// <value>Looking at the most recent bank statement, this field indicates the source of the data (direct bank feed, file upload, or manual keying).</value>
[DataMember(Name="importSourceType", EmitDefaultValue=false)]
public string ImportSourceType { get; set; }

Expand Down
45 changes: 0 additions & 45 deletions Xero.NetStandard.OAuth2/Model/Finance/DataSourceResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,6 @@ public partial class DataSourceResponse : IEquatable<DataSourceResponse>, IVali
[DataMember(Name="directBankFeed", EmitDefaultValue=false)]
public decimal? DirectBankFeed { get; set; }

/// <summary>
/// No longer in use.
/// </summary>
/// <value>No longer in use.</value>
[DataMember(Name="indirectBankFeed", EmitDefaultValue=false)]
public decimal? IndirectBankFeed { get; set; }

/// <summary>
/// Sum of the amounts of all statement lines where the source of the data was a file manually uploaded in to Xero. This gives an indication on the certainty of correctness of the data.
/// </summary>
Expand All @@ -66,13 +59,6 @@ public partial class DataSourceResponse : IEquatable<DataSourceResponse>, IVali
[DataMember(Name="directBankFeedPos", EmitDefaultValue=false)]
public decimal? DirectBankFeedPos { get; set; }

/// <summary>
/// No longer in use.
/// </summary>
/// <value>No longer in use.</value>
[DataMember(Name="indirectBankFeedPos", EmitDefaultValue=false)]
public decimal? IndirectBankFeedPos { get; set; }

/// <summary>
/// Sum of the amounts of all statement lines where the source of the data was a file manually uploaded in to Xero. This gives an indication on the certainty of correctness of the data. Only positive transactions are included.
/// </summary>
Expand All @@ -94,13 +80,6 @@ public partial class DataSourceResponse : IEquatable<DataSourceResponse>, IVali
[DataMember(Name="directBankFeedNeg", EmitDefaultValue=false)]
public decimal? DirectBankFeedNeg { get; set; }

/// <summary>
/// No longer in use.
/// </summary>
/// <value>No longer in use.</value>
[DataMember(Name="indirectBankFeedNeg", EmitDefaultValue=false)]
public decimal? IndirectBankFeedNeg { get; set; }

/// <summary>
/// Sum of the amounts of all statement lines where the source of the data was a file manually uploaded in to Xero. This gives an indication on the certainty of correctness of the data. Only negative transactions are included.
/// </summary>
Expand Down Expand Up @@ -145,15 +124,12 @@ public override string ToString()
var sb = new StringBuilder();
sb.Append("class DataSourceResponse {\n");
sb.Append(" DirectBankFeed: ").Append(DirectBankFeed).Append("\n");
sb.Append(" IndirectBankFeed: ").Append(IndirectBankFeed).Append("\n");
sb.Append(" FileUpload: ").Append(FileUpload).Append("\n");
sb.Append(" Manual: ").Append(Manual).Append("\n");
sb.Append(" DirectBankFeedPos: ").Append(DirectBankFeedPos).Append("\n");
sb.Append(" IndirectBankFeedPos: ").Append(IndirectBankFeedPos).Append("\n");
sb.Append(" FileUploadPos: ").Append(FileUploadPos).Append("\n");
sb.Append(" ManualPos: ").Append(ManualPos).Append("\n");
sb.Append(" DirectBankFeedNeg: ").Append(DirectBankFeedNeg).Append("\n");
sb.Append(" IndirectBankFeedNeg: ").Append(IndirectBankFeedNeg).Append("\n");
sb.Append(" FileUploadNeg: ").Append(FileUploadNeg).Append("\n");
sb.Append(" ManualNeg: ").Append(ManualNeg).Append("\n");
sb.Append(" OtherPos: ").Append(OtherPos).Append("\n");
Expand Down Expand Up @@ -198,11 +174,6 @@ public bool Equals(DataSourceResponse input)
(this.DirectBankFeed != null &&
this.DirectBankFeed.Equals(input.DirectBankFeed))
) &&
(
this.IndirectBankFeed == input.IndirectBankFeed ||
(this.IndirectBankFeed != null &&
this.IndirectBankFeed.Equals(input.IndirectBankFeed))
) &&
(
this.FileUpload == input.FileUpload ||
(this.FileUpload != null &&
Expand All @@ -218,11 +189,6 @@ public bool Equals(DataSourceResponse input)
(this.DirectBankFeedPos != null &&
this.DirectBankFeedPos.Equals(input.DirectBankFeedPos))
) &&
(
this.IndirectBankFeedPos == input.IndirectBankFeedPos ||
(this.IndirectBankFeedPos != null &&
this.IndirectBankFeedPos.Equals(input.IndirectBankFeedPos))
) &&
(
this.FileUploadPos == input.FileUploadPos ||
(this.FileUploadPos != null &&
Expand All @@ -238,11 +204,6 @@ public bool Equals(DataSourceResponse input)
(this.DirectBankFeedNeg != null &&
this.DirectBankFeedNeg.Equals(input.DirectBankFeedNeg))
) &&
(
this.IndirectBankFeedNeg == input.IndirectBankFeedNeg ||
(this.IndirectBankFeedNeg != null &&
this.IndirectBankFeedNeg.Equals(input.IndirectBankFeedNeg))
) &&
(
this.FileUploadNeg == input.FileUploadNeg ||
(this.FileUploadNeg != null &&
Expand Down Expand Up @@ -281,24 +242,18 @@ public override int GetHashCode()
int hashCode = 41;
if (this.DirectBankFeed != null)
hashCode = hashCode * 59 + this.DirectBankFeed.GetHashCode();
if (this.IndirectBankFeed != null)
hashCode = hashCode * 59 + this.IndirectBankFeed.GetHashCode();
if (this.FileUpload != null)
hashCode = hashCode * 59 + this.FileUpload.GetHashCode();
if (this.Manual != null)
hashCode = hashCode * 59 + this.Manual.GetHashCode();
if (this.DirectBankFeedPos != null)
hashCode = hashCode * 59 + this.DirectBankFeedPos.GetHashCode();
if (this.IndirectBankFeedPos != null)
hashCode = hashCode * 59 + this.IndirectBankFeedPos.GetHashCode();
if (this.FileUploadPos != null)
hashCode = hashCode * 59 + this.FileUploadPos.GetHashCode();
if (this.ManualPos != null)
hashCode = hashCode * 59 + this.ManualPos.GetHashCode();
if (this.DirectBankFeedNeg != null)
hashCode = hashCode * 59 + this.DirectBankFeedNeg.GetHashCode();
if (this.IndirectBankFeedNeg != null)
hashCode = hashCode * 59 + this.IndirectBankFeedNeg.GetHashCode();
if (this.FileUploadNeg != null)
hashCode = hashCode * 59 + this.FileUploadNeg.GetHashCode();
if (this.ManualNeg != null)
Expand Down
58 changes: 52 additions & 6 deletions Xero.NetStandard.OAuth2/Model/PayrollNz/EmployeeLeaveSetup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,19 +60,33 @@ public partial class EmployeeLeaveSetup : IEquatable<EmployeeLeaveSetup>, IVali
public decimal? NegativeAnnualLeaveBalancePaidAmount { get; set; }

/// <summary>
/// Number of hours accrued annually for sick leave. Multiply the number of days they&#39;re entitled to by the hours worked per day
/// Deprecated use SickLeaveToAccrueAnnually
/// </summary>
/// <value>Number of hours accrued annually for sick leave. Multiply the number of days they&#39;re entitled to by the hours worked per day</value>
/// <value>Deprecated use SickLeaveToAccrueAnnually</value>
[DataMember(Name="sickLeaveHoursToAccrueAnnually", EmitDefaultValue=false)]
public decimal? SickLeaveHoursToAccrueAnnually { get; set; }

/// <summary>
/// Maximum number of hours accrued annually for sick leave. Multiply the maximum days they can accrue by the hours worked per day
/// Deprecated use SickLeaveMaximumToAccrue
/// </summary>
/// <value>Maximum number of hours accrued annually for sick leave. Multiply the maximum days they can accrue by the hours worked per day</value>
/// <value>Deprecated use SickLeaveMaximumToAccrue</value>
[DataMember(Name="sickLeaveMaximumHoursToAccrue", EmitDefaultValue=false)]
public decimal? SickLeaveMaximumHoursToAccrue { get; set; }

/// <summary>
/// Number of units accrued annually for sick leave. The type of units is determined by the property \&quot;TypeOfUnitsToAccrue\&quot; on the \&quot;Sick Leave\&quot; leave type
/// </summary>
/// <value>Number of units accrued annually for sick leave. The type of units is determined by the property \&quot;TypeOfUnitsToAccrue\&quot; on the \&quot;Sick Leave\&quot; leave type</value>
[DataMember(Name="SickLeaveToAccrueAnnually", EmitDefaultValue=false)]
public decimal? SickLeaveToAccrueAnnually { get; set; }

/// <summary>
/// Maximum number of units accrued annually for sick leave. The type of units is determined by the property \&quot;TypeOfUnitsToAccrue\&quot; on the \&quot;Sick Leave\&quot; leave type
/// </summary>
/// <value>Maximum number of units accrued annually for sick leave. The type of units is determined by the property \&quot;TypeOfUnitsToAccrue\&quot; on the \&quot;Sick Leave\&quot; leave type</value>
[DataMember(Name="SickLeaveMaximumToAccrue", EmitDefaultValue=false)]
public decimal? SickLeaveMaximumToAccrue { get; set; }

/// <summary>
/// Initial sick leave balance. This will be positive unless they&#39;ve taken sick leave in advance
/// </summary>
Expand All @@ -88,13 +102,21 @@ public partial class EmployeeLeaveSetup : IEquatable<EmployeeLeaveSetup>, IVali
public string SickLeaveScheduleOfAccrual { get; set; }

/// <summary>
/// If Sick Leave Schedule of Accrual is \&quot;OnAnniversaryDate\&quot;, this is the date when entitled to Sick Leave
/// If Sick Leave Schedule of Accrual is \&quot;OnAnniversaryDate\&quot;, this is the date when entitled to Sick Leave. When null the Employee&#39;s start date is used as the anniversary date
/// </summary>
/// <value>If Sick Leave Schedule of Accrual is \&quot;OnAnniversaryDate\&quot;, this is the date when entitled to Sick Leave</value>
/// <value>If Sick Leave Schedule of Accrual is \&quot;OnAnniversaryDate\&quot;, this is the date when entitled to Sick Leave. When null the Employee&#39;s start date is used as the anniversary date</value>
[DataMember(Name="SickLeaveAnniversaryDate", EmitDefaultValue=false)]
[JsonConverter(typeof(OpenAPIDateConverter))]
public DateTime? SickLeaveAnniversaryDate { get; set; }

/// <summary>
/// The first date the employee will accrue Annual Leave. When null the Employee&#39;s start date is used as the anniversary date
/// </summary>
/// <value>The first date the employee will accrue Annual Leave. When null the Employee&#39;s start date is used as the anniversary date</value>
[DataMember(Name="AnnualLeaveAnniversaryDate", EmitDefaultValue=false)]
[JsonConverter(typeof(OpenAPIDateConverter))]
public DateTime? AnnualLeaveAnniversaryDate { get; set; }

/// <summary>
/// Returns the string presentation of the object
/// </summary>
Expand All @@ -109,9 +131,12 @@ public override string ToString()
sb.Append(" NegativeAnnualLeaveBalancePaidAmount: ").Append(NegativeAnnualLeaveBalancePaidAmount).Append("\n");
sb.Append(" SickLeaveHoursToAccrueAnnually: ").Append(SickLeaveHoursToAccrueAnnually).Append("\n");
sb.Append(" SickLeaveMaximumHoursToAccrue: ").Append(SickLeaveMaximumHoursToAccrue).Append("\n");
sb.Append(" SickLeaveToAccrueAnnually: ").Append(SickLeaveToAccrueAnnually).Append("\n");
sb.Append(" SickLeaveMaximumToAccrue: ").Append(SickLeaveMaximumToAccrue).Append("\n");
sb.Append(" SickLeaveOpeningBalance: ").Append(SickLeaveOpeningBalance).Append("\n");
sb.Append(" SickLeaveScheduleOfAccrual: ").Append(SickLeaveScheduleOfAccrual).Append("\n");
sb.Append(" SickLeaveAnniversaryDate: ").Append(SickLeaveAnniversaryDate).Append("\n");
sb.Append(" AnnualLeaveAnniversaryDate: ").Append(AnnualLeaveAnniversaryDate).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
Expand Down Expand Up @@ -176,6 +201,16 @@ public bool Equals(EmployeeLeaveSetup input)
(this.SickLeaveMaximumHoursToAccrue != null &&
this.SickLeaveMaximumHoursToAccrue.Equals(input.SickLeaveMaximumHoursToAccrue))
) &&
(
this.SickLeaveToAccrueAnnually == input.SickLeaveToAccrueAnnually ||
(this.SickLeaveToAccrueAnnually != null &&
this.SickLeaveToAccrueAnnually.Equals(input.SickLeaveToAccrueAnnually))
) &&
(
this.SickLeaveMaximumToAccrue == input.SickLeaveMaximumToAccrue ||
(this.SickLeaveMaximumToAccrue != null &&
this.SickLeaveMaximumToAccrue.Equals(input.SickLeaveMaximumToAccrue))
) &&
(
this.SickLeaveOpeningBalance == input.SickLeaveOpeningBalance ||
(this.SickLeaveOpeningBalance != null &&
Expand All @@ -190,6 +225,11 @@ public bool Equals(EmployeeLeaveSetup input)
this.SickLeaveAnniversaryDate == input.SickLeaveAnniversaryDate ||
(this.SickLeaveAnniversaryDate != null &&
this.SickLeaveAnniversaryDate.Equals(input.SickLeaveAnniversaryDate))
) &&
(
this.AnnualLeaveAnniversaryDate == input.AnnualLeaveAnniversaryDate ||
(this.AnnualLeaveAnniversaryDate != null &&
this.AnnualLeaveAnniversaryDate.Equals(input.AnnualLeaveAnniversaryDate))
);
}

Expand All @@ -214,12 +254,18 @@ public override int GetHashCode()
hashCode = hashCode * 59 + this.SickLeaveHoursToAccrueAnnually.GetHashCode();
if (this.SickLeaveMaximumHoursToAccrue != null)
hashCode = hashCode * 59 + this.SickLeaveMaximumHoursToAccrue.GetHashCode();
if (this.SickLeaveToAccrueAnnually != null)
hashCode = hashCode * 59 + this.SickLeaveToAccrueAnnually.GetHashCode();
if (this.SickLeaveMaximumToAccrue != null)
hashCode = hashCode * 59 + this.SickLeaveMaximumToAccrue.GetHashCode();
if (this.SickLeaveOpeningBalance != null)
hashCode = hashCode * 59 + this.SickLeaveOpeningBalance.GetHashCode();
if (this.SickLeaveScheduleOfAccrual != null)
hashCode = hashCode * 59 + this.SickLeaveScheduleOfAccrual.GetHashCode();
if (this.SickLeaveAnniversaryDate != null)
hashCode = hashCode * 59 + this.SickLeaveAnniversaryDate.GetHashCode();
if (this.AnnualLeaveAnniversaryDate != null)
hashCode = hashCode * 59 + this.AnnualLeaveAnniversaryDate.GetHashCode();
return hashCode;
}
}
Expand Down
Loading

0 comments on commit 2c0e319

Please sign in to comment.