Skip to content

Commit

Permalink
Merge pull request #557 from XeroAPI/OAS-6.3.0-dotnet
Browse files Browse the repository at this point in the history
Build from OAS 6.3.0
  • Loading branch information
sangeet-joy-tw authored Sep 16, 2024
2 parents aadb415 + e80d152 commit 18684e2
Show file tree
Hide file tree
Showing 27 changed files with 828 additions and 24 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.2.0
// The version of the OpenAPI document: 6.3.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.2.0
// The version of the OpenAPI document: 6.3.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.2.0
// The version of the OpenAPI document: 6.3.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.2.0
// The version of the OpenAPI document: 6.3.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.2.0
// The version of the OpenAPI document: 6.3.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.2.0
// The version of the OpenAPI document: 6.3.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.2.0
// The version of the OpenAPI document: 6.3.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.2.0
// The version of the OpenAPI document: 6.3.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.2.0
// The version of the OpenAPI document: 6.3.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.2.0
// The version of the OpenAPI document: 6.3.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.1.0";
public const string Version = "9.2.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.1.0";
UserAgent = "xero-netstandard-9.2.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.2.0\n";
report += " SDK Package Version: 9.1.0\n";
report += " Version of the API: 6.3.0\n";
report += " SDK Package Version: 9.2.0\n";

return report;
}
Expand Down
16 changes: 16 additions & 0 deletions Xero.NetStandard.OAuth2/Model/Accounting/CreditNote.cs
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,13 @@ public enum StatusEnum
[DataMember(Name="Warnings", EmitDefaultValue=false)]
public List<ValidationError> Warnings { get; set; }

/// <summary>
/// An array of addresses used to auto calculate sales tax
/// </summary>
/// <value>An array of addresses used to auto calculate sales tax</value>
[DataMember(Name="InvoiceAddresses", EmitDefaultValue=false)]
public List<InvoiceAddress> InvoiceAddresses { get; set; }

/// <summary>
/// Returns the string presentation of the object
/// </summary>
Expand Down Expand Up @@ -338,6 +345,7 @@ public override string ToString()
sb.Append(" HasErrors: ").Append(HasErrors).Append("\n");
sb.Append(" ValidationErrors: ").Append(ValidationErrors).Append("\n");
sb.Append(" Warnings: ").Append(Warnings).Append("\n");
sb.Append(" InvoiceAddresses: ").Append(InvoiceAddresses).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
Expand Down Expand Up @@ -522,6 +530,12 @@ public bool Equals(CreditNote input)
this.Warnings != null &&
input.Warnings != null &&
this.Warnings.SequenceEqual(input.Warnings)
) &&
(
this.InvoiceAddresses == input.InvoiceAddresses ||
this.InvoiceAddresses != null &&
input.InvoiceAddresses != null &&
this.InvoiceAddresses.SequenceEqual(input.InvoiceAddresses)
);
}

Expand Down Expand Up @@ -590,6 +604,8 @@ public override int GetHashCode()
hashCode = hashCode * 59 + this.ValidationErrors.GetHashCode();
if (this.Warnings != null)
hashCode = hashCode * 59 + this.Warnings.GetHashCode();
if (this.InvoiceAddresses != null)
hashCode = hashCode * 59 + this.InvoiceAddresses.GetHashCode();
return hashCode;
}
}
Expand Down
16 changes: 16 additions & 0 deletions Xero.NetStandard.OAuth2/Model/Accounting/Invoice.cs
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,13 @@ public enum StatusEnum
[DataMember(Name="Warnings", EmitDefaultValue=false)]
public List<ValidationError> Warnings { get; set; }

/// <summary>
/// An array of addresses used to auto calculate sales tax
/// </summary>
/// <value>An array of addresses used to auto calculate sales tax</value>
[DataMember(Name="InvoiceAddresses", EmitDefaultValue=false)]
public List<InvoiceAddress> InvoiceAddresses { get; set; }

/// <summary>
/// Returns the string presentation of the object
/// </summary>
Expand Down Expand Up @@ -454,6 +461,7 @@ public override string ToString()
sb.Append(" StatusAttributeString: ").Append(StatusAttributeString).Append("\n");
sb.Append(" ValidationErrors: ").Append(ValidationErrors).Append("\n");
sb.Append(" Warnings: ").Append(Warnings).Append("\n");
sb.Append(" InvoiceAddresses: ").Append(InvoiceAddresses).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
Expand Down Expand Up @@ -691,6 +699,12 @@ public bool Equals(Invoice input)
this.Warnings != null &&
input.Warnings != null &&
this.Warnings.SequenceEqual(input.Warnings)
) &&
(
this.InvoiceAddresses == input.InvoiceAddresses ||
this.InvoiceAddresses != null &&
input.InvoiceAddresses != null &&
this.InvoiceAddresses.SequenceEqual(input.InvoiceAddresses)
);
}

Expand Down Expand Up @@ -779,6 +793,8 @@ public override int GetHashCode()
hashCode = hashCode * 59 + this.ValidationErrors.GetHashCode();
if (this.Warnings != null)
hashCode = hashCode * 59 + this.Warnings.GetHashCode();
if (this.InvoiceAddresses != null)
hashCode = hashCode * 59 + this.InvoiceAddresses.GetHashCode();
return hashCode;
}
}
Expand Down
Loading

0 comments on commit 18684e2

Please sign in to comment.