Skip to content

Commit

Permalink
Build from OAS 4.0.0 (#519)
Browse files Browse the repository at this point in the history
  • Loading branch information
manishT72 authored Jun 21, 2024
1 parent e25e3fa commit b56b855
Show file tree
Hide file tree
Showing 24 changed files with 105 additions and 27 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: 3.0.3
// The version of the OpenAPI document: 4.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: 3.0.3
// The version of the OpenAPI document: 4.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: 3.0.3
// The version of the OpenAPI document: 4.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: 3.0.3
// The version of the OpenAPI document: 4.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: 3.0.3
// The version of the OpenAPI document: 4.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: 3.0.3
// The version of the OpenAPI document: 4.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: 3.0.3
// The version of the OpenAPI document: 4.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: 3.0.3
// The version of the OpenAPI document: 4.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: 3.0.3
// The version of the OpenAPI document: 4.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: 3.0.3
// The version of the OpenAPI document: 4.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: 3.0.3
// The version of the OpenAPI document: 4.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 = "5.0.0";
public const string Version = "6.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-5.0.0";
UserAgent = "xero-netstandard-6.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: 3.0.3\n";
report += " SDK Package Version: 5.0.0\n";
report += " Version of the API: 4.0.0\n";
report += " SDK Package Version: 6.0.0\n";

return report;
}
Expand Down
20 changes: 19 additions & 1 deletion Xero.NetStandard.OAuth2/Model/Accounting/Organisation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,25 @@ public enum ClassEnum
/// Enum LITE for value: LITE
/// </summary>
[EnumMember(Value = "LITE")]
LITE = 13
LITE = 13,

/// <summary>
/// Enum IGNITE for value: IGNITE
/// </summary>
[EnumMember(Value = "IGNITE")]
IGNITE = 14,

/// <summary>
/// Enum GROW for value: GROW
/// </summary>
[EnumMember(Value = "GROW")]
GROW = 15,

/// <summary>
/// Enum COMPREHENSIVE for value: COMPREHENSIVE
/// </summary>
[EnumMember(Value = "COMPREHENSIVE")]
COMPREHENSIVE = 16

}

Expand Down
45 changes: 45 additions & 0 deletions Xero.NetStandard.OAuth2/Model/Files/Association.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,27 @@ public partial class Association : IEquatable<Association>, IValidatableObject
[DataMember(Name="ObjectType", EmitDefaultValue=false)]
public ObjectType ObjectType { get; set; }

/// <summary>
/// Boolean flag to determines whether the file is sent with the document it is attached to on client facing communications. Note- The SendWithObject element is only returned when using /Associations/{ObjectId} endpoint.
/// </summary>
/// <value>Boolean flag to determines whether the file is sent with the document it is attached to on client facing communications. Note- The SendWithObject element is only returned when using /Associations/{ObjectId} endpoint.</value>
[DataMember(Name="SendWithObject", EmitDefaultValue=false)]
public bool? SendWithObject { get; set; }

/// <summary>
/// The name of the associated file. Note- The Name element is only returned when using /Associations/{ObjectId} endpoint.
/// </summary>
/// <value>The name of the associated file. Note- The Name element is only returned when using /Associations/{ObjectId} endpoint.</value>
[DataMember(Name="Name", EmitDefaultValue=false)]
public string Name { get; set; }

/// <summary>
/// The size of the associated file in bytes. Note- The Size element is only returned when using /Associations/{ObjectId} endpoint.
/// </summary>
/// <value>The size of the associated file in bytes. Note- The Size element is only returned when using /Associations/{ObjectId} endpoint.</value>
[DataMember(Name="Size", EmitDefaultValue=false)]
public int? Size { get; set; }

/// <summary>
/// The unique identifier of the file
/// </summary>
Expand All @@ -63,6 +84,9 @@ public override string ToString()
{
var sb = new StringBuilder();
sb.Append("class Association {\n");
sb.Append(" SendWithObject: ").Append(SendWithObject).Append("\n");
sb.Append(" Name: ").Append(Name).Append("\n");
sb.Append(" Size: ").Append(Size).Append("\n");
sb.Append(" FileId: ").Append(FileId).Append("\n");
sb.Append(" ObjectId: ").Append(ObjectId).Append("\n");
sb.Append(" ObjectGroup: ").Append(ObjectGroup).Append("\n");
Expand Down Expand Up @@ -101,6 +125,21 @@ public bool Equals(Association input)
return false;

return
(
this.SendWithObject == input.SendWithObject ||
(this.SendWithObject != null &&
this.SendWithObject.Equals(input.SendWithObject))
) &&
(
this.Name == input.Name ||
(this.Name != null &&
this.Name.Equals(input.Name))
) &&
(
this.Size == input.Size ||
(this.Size != null &&
this.Size.Equals(input.Size))
) &&
(
this.FileId == input.FileId ||
(this.FileId != null &&
Expand Down Expand Up @@ -130,6 +169,12 @@ public override int GetHashCode()
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
if (this.SendWithObject != null)
hashCode = hashCode * 59 + this.SendWithObject.GetHashCode();
if (this.Name != null)
hashCode = hashCode * 59 + this.Name.GetHashCode();
if (this.Size != null)
hashCode = hashCode * 59 + this.Size.GetHashCode();
if (this.FileId != null)
hashCode = hashCode * 59 + this.FileId.GetHashCode();
if (this.ObjectId != null)
Expand Down
2 changes: 1 addition & 1 deletion Xero.NetStandard.OAuth2/Xero.NetStandard.OAuth2.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<GenerateBindingRedirectsOutputType>true</GenerateBindingRedirectsOutputType>
<RootNamespace>Xero.NetStandard.OAuth2</RootNamespace>
<Version>5.0.0</Version>
<Version>6.0.0</Version>
<DocumentationFile>bin\$(Configuration)\$(TargetFramework)\Xero.NetStandard.OAuth2.xml</DocumentationFile>
<PackageLicenseUrl>https://github.com/XeroAPI/Xero-NetStandard/</PackageLicenseUrl>
<PackageIconUrl>https://en.gravatar.com/userimage/180557955/74b3a957d886bc921b0d1455beed9dab.png</PackageIconUrl>
Expand Down
4 changes: 2 additions & 2 deletions docs/accounting/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4062,7 +4062,7 @@
"Class" : {
"type" : "string",
"description" : "Organisation Classes describe which plan the Xero organisation is on (e.g. DEMO, TRIAL, PREMIUM)",
"enum" : [ "DEMO", "TRIAL", "STARTER", "STANDARD", "PREMIUM", "PREMIUM_20", "PREMIUM_50", "PREMIUM_100", "LEDGER", "GST_CASHBOOK", "NON_GST_CASHBOOK", "ULTIMATE", "LITE" ]
"enum" : [ "DEMO", "TRIAL", "STARTER", "STANDARD", "PREMIUM", "PREMIUM_20", "PREMIUM_50", "PREMIUM_100", "LEDGER", "GST_CASHBOOK", "NON_GST_CASHBOOK", "ULTIMATE", "LITE", "IGNITE", "GROW", "COMPREHENSIVE" ]
},
"Edition" : {
"type" : "string",
Expand Down Expand Up @@ -6101,7 +6101,7 @@
<nav id="scrollingNav">
<ul class="sidenav nav nav-list">
<li class="nav-header" data-group="Accounting"><strong>SDK: </strong><span id='sdk-name'></span></li>
<li class="nav-header" data-group="Accounting"><strong>VSN: </strong>5.0.0</li>
<li class="nav-header" data-group="Accounting"><strong>VSN: </strong>6.0.0</li>
<li class="nav-header" data-group="Accounting"><a href="#api-Accounting">Methods</a></li>
<li data-group="Accounting" data-name="createAccount" class="">
<a href="#api-Accounting-createAccount">createAccount</a>
Expand Down
2 changes: 1 addition & 1 deletion docs/appstore/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1242,7 +1242,7 @@
<nav id="scrollingNav">
<ul class="sidenav nav nav-list">
<li class="nav-header" data-group="AppStore"><strong>SDK: </strong><span id='sdk-name'></span></li>
<li class="nav-header" data-group="AppStore"><strong>VSN: </strong>5.0.0</li>
<li class="nav-header" data-group="AppStore"><strong>VSN: </strong>6.0.0</li>
<li class="nav-header" data-group="AppStore"><a href="#api-AppStore">Methods</a></li>
<li data-group="AppStore" data-name="getSubscription" class="">
<a href="#api-AppStore-getSubscription">getSubscription</a>
Expand Down
2 changes: 1 addition & 1 deletion docs/bankfeeds/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1269,7 +1269,7 @@
<nav id="scrollingNav">
<ul class="sidenav nav nav-list">
<li class="nav-header" data-group="BankFeeds"><strong>SDK: </strong><span id='sdk-name'></span></li>
<li class="nav-header" data-group="BankFeeds"><strong>VSN: </strong>5.0.0</li>
<li class="nav-header" data-group="BankFeeds"><strong>VSN: </strong>6.0.0</li>
<li class="nav-header" data-group="BankFeeds"><a href="#api-BankFeeds">Methods</a></li>
<li data-group="BankFeeds" data-name="createFeedConnections" class="">
<a href="#api-BankFeeds-createFeedConnections">createFeedConnections</a>
Expand Down
17 changes: 16 additions & 1 deletion docs/files/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -866,6 +866,21 @@
"title" : "",
"type" : "object",
"properties" : {
"SendWithObject" : {
"type" : "boolean",
"description" : "Boolean flag to determines whether the file is sent with the document it is attached to on client facing communications. Note- The SendWithObject element is only returned when using /Associations/{ObjectId} endpoint.",
"example" : true
},
"Name" : {
"type" : "string",
"description" : "The name of the associated file. Note- The Name element is only returned when using /Associations/{ObjectId} endpoint.",
"example" : "Test.pdf"
},
"Size" : {
"type" : "integer",
"description" : "The size of the associated file in bytes. Note- The Size element is only returned when using /Associations/{ObjectId} endpoint.",
"example" : 12357
},
"FileId" : {
"type" : "string",
"description" : "The unique identifier of the file",
Expand Down Expand Up @@ -1156,7 +1171,7 @@
<nav id="scrollingNav">
<ul class="sidenav nav nav-list">
<li class="nav-header" data-group="Files"><strong>SDK: </strong><span id='sdk-name'></span></li>
<li class="nav-header" data-group="Files"><strong>VSN: </strong>5.0.0</li>
<li class="nav-header" data-group="Files"><strong>VSN: </strong>6.0.0</li>
<li class="nav-header" data-group="Files"><a href="#api-Files">Methods</a></li>
<li data-group="Files" data-name="createFileAssociation" class="">
<a href="#api-Files-createFileAssociation">createFileAssociation</a>
Expand Down
2 changes: 1 addition & 1 deletion docs/finance/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2735,7 +2735,7 @@
<nav id="scrollingNav">
<ul class="sidenav nav nav-list">
<li class="nav-header" data-group="Finance"><strong>SDK: </strong><span id='sdk-name'></span></li>
<li class="nav-header" data-group="Finance"><strong>VSN: </strong>5.0.0</li>
<li class="nav-header" data-group="Finance"><strong>VSN: </strong>6.0.0</li>
<li class="nav-header" data-group="Finance"><a href="#api-Finance">Methods</a></li>
<li data-group="Finance" data-name="getAccountingActivityAccountUsage" class="">
<a href="#api-Finance-getAccountingActivityAccountUsage">getAccountingActivityAccountUsage</a>
Expand Down
2 changes: 1 addition & 1 deletion docs/payroll-au/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3413,7 +3413,7 @@
<nav id="scrollingNav">
<ul class="sidenav nav nav-list">
<li class="nav-header" data-group="PayrollAu"><strong>SDK: </strong><span id='sdk-name'></span></li>
<li class="nav-header" data-group="PayrollAu"><strong>VSN: </strong>5.0.0</li>
<li class="nav-header" data-group="PayrollAu"><strong>VSN: </strong>6.0.0</li>
<li class="nav-header" data-group="PayrollAu"><a href="#api-PayrollAu">Methods</a></li>
<li data-group="PayrollAu" data-name="approveLeaveApplication" class="">
<a href="#api-PayrollAu-approveLeaveApplication">approveLeaveApplication</a>
Expand Down
2 changes: 1 addition & 1 deletion docs/payroll-nz/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3844,7 +3844,7 @@
<nav id="scrollingNav">
<ul class="sidenav nav nav-list">
<li class="nav-header" data-group="PayrollNz"><strong>SDK: </strong><span id='sdk-name'></span></li>
<li class="nav-header" data-group="PayrollNz"><strong>VSN: </strong>5.0.0</li>
<li class="nav-header" data-group="PayrollNz"><strong>VSN: </strong>6.0.0</li>
<li class="nav-header" data-group="PayrollNz"><a href="#api-PayrollNz">Methods</a></li>
<li data-group="PayrollNz" data-name="approveTimesheet" class="">
<a href="#api-PayrollNz-approveTimesheet">approveTimesheet</a>
Expand Down
2 changes: 1 addition & 1 deletion docs/payroll-uk/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3511,7 +3511,7 @@
<nav id="scrollingNav">
<ul class="sidenav nav nav-list">
<li class="nav-header" data-group="PayrollUk"><strong>SDK: </strong><span id='sdk-name'></span></li>
<li class="nav-header" data-group="PayrollUk"><strong>VSN: </strong>5.0.0</li>
<li class="nav-header" data-group="PayrollUk"><strong>VSN: </strong>6.0.0</li>
<li class="nav-header" data-group="PayrollUk"><a href="#api-PayrollUk">Methods</a></li>
<li data-group="PayrollUk" data-name="approveTimesheet" class="">
<a href="#api-PayrollUk-approveTimesheet">approveTimesheet</a>
Expand Down
2 changes: 1 addition & 1 deletion docs/projects/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1463,7 +1463,7 @@
<nav id="scrollingNav">
<ul class="sidenav nav nav-list">
<li class="nav-header" data-group="Project"><strong>SDK: </strong><span id='sdk-name'></span></li>
<li class="nav-header" data-group="Project"><strong>VSN: </strong>5.0.0</li>
<li class="nav-header" data-group="Project"><strong>VSN: </strong>6.0.0</li>
<li class="nav-header" data-group="Project"><a href="#api-Project">Methods</a></li>
<li data-group="Project" data-name="createProject" class="">
<a href="#api-Project-createProject">createProject</a>
Expand Down

0 comments on commit b56b855

Please sign in to comment.