Skip to content

Commit b56b855

Browse files
authored
Build from OAS 4.0.0 (#519)
1 parent e25e3fa commit b56b855

24 files changed

+105
-27
lines changed

Xero.NetStandard.OAuth2/Api/AccountingApi.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Generated by: https://github.com/openapitools/openapi-generator.git
88
*/
99

10-
// The version of the OpenAPI document: 3.0.3
10+
// The version of the OpenAPI document: 4.0.0
1111

1212

1313
using System;

Xero.NetStandard.OAuth2/Api/AppStoreApi.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Generated by: https://github.com/openapitools/openapi-generator.git
88
*/
99

10-
// The version of the OpenAPI document: 3.0.3
10+
// The version of the OpenAPI document: 4.0.0
1111

1212

1313
using System;

Xero.NetStandard.OAuth2/Api/AssetApi.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Generated by: https://github.com/openapitools/openapi-generator.git
88
*/
99

10-
// The version of the OpenAPI document: 3.0.3
10+
// The version of the OpenAPI document: 4.0.0
1111

1212

1313
using System;

Xero.NetStandard.OAuth2/Api/BankFeedsApi.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Generated by: https://github.com/openapitools/openapi-generator.git
88
*/
99

10-
// The version of the OpenAPI document: 3.0.3
10+
// The version of the OpenAPI document: 4.0.0
1111

1212

1313
using System;

Xero.NetStandard.OAuth2/Api/FilesApi.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Generated by: https://github.com/openapitools/openapi-generator.git
88
*/
99

10-
// The version of the OpenAPI document: 3.0.3
10+
// The version of the OpenAPI document: 4.0.0
1111

1212

1313
using System;

Xero.NetStandard.OAuth2/Api/FinanceApi.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Generated by: https://github.com/openapitools/openapi-generator.git
88
*/
99

10-
// The version of the OpenAPI document: 3.0.3
10+
// The version of the OpenAPI document: 4.0.0
1111

1212

1313
using System;

Xero.NetStandard.OAuth2/Api/IdentityApi.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Generated by: https://github.com/openapitools/openapi-generator.git
88
*/
99

10-
// The version of the OpenAPI document: 3.0.3
10+
// The version of the OpenAPI document: 4.0.0
1111

1212

1313
using System;

Xero.NetStandard.OAuth2/Api/PayrollAUApi.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Generated by: https://github.com/openapitools/openapi-generator.git
88
*/
99

10-
// The version of the OpenAPI document: 3.0.3
10+
// The version of the OpenAPI document: 4.0.0
1111

1212

1313
using System;

Xero.NetStandard.OAuth2/Api/PayrollNZApi.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Generated by: https://github.com/openapitools/openapi-generator.git
88
*/
99

10-
// The version of the OpenAPI document: 3.0.3
10+
// The version of the OpenAPI document: 4.0.0
1111

1212

1313
using System;

Xero.NetStandard.OAuth2/Api/PayrollUkApi.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Generated by: https://github.com/openapitools/openapi-generator.git
88
*/
99

10-
// The version of the OpenAPI document: 3.0.3
10+
// The version of the OpenAPI document: 4.0.0
1111

1212

1313
using System;

Xero.NetStandard.OAuth2/Api/ProjectApi.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Generated by: https://github.com/openapitools/openapi-generator.git
88
*/
99

10-
// The version of the OpenAPI document: 3.0.3
10+
// The version of the OpenAPI document: 4.0.0
1111

1212

1313
using System;

Xero.NetStandard.OAuth2/Client/Configuration.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public class Configuration : IReadableConfiguration
3131
/// Version of the package.
3232
/// </summary>
3333
/// <value>Version of the package.</value>
34-
public const string Version = "5.0.0";
34+
public const string Version = "6.0.0";
3535

3636
/// <summary>
3737
/// Identifier for ISO 8601 DateTime Format
@@ -103,7 +103,7 @@ public class Configuration : IReadableConfiguration
103103
[System.Diagnostics.CodeAnalysis.SuppressMessage("ReSharper", "VirtualMemberCallInConstructor")]
104104
public Configuration()
105105
{
106-
UserAgent = "xero-netstandard-5.0.0";
106+
UserAgent = "xero-netstandard-6.0.0";
107107
BasePath = "https://api.xero.com/api.xro/2.0";
108108
DefaultHeader = new ConcurrentDictionary<string, string>();
109109
ApiKey = new ConcurrentDictionary<string, string>();
@@ -341,8 +341,8 @@ public static String ToDebugReport()
341341
{
342342
String report = "C# SDK (Xero.NetStandard.OAuth2) Debug Report:\n";
343343
report += " OS: " + System.Runtime.InteropServices.RuntimeInformation.OSDescription + "\n";
344-
report += " Version of the API: 3.0.3\n";
345-
report += " SDK Package Version: 5.0.0\n";
344+
report += " Version of the API: 4.0.0\n";
345+
report += " SDK Package Version: 6.0.0\n";
346346

347347
return report;
348348
}

Xero.NetStandard.OAuth2/Model/Accounting/Organisation.cs

+19-1
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,25 @@ public enum ClassEnum
557557
/// Enum LITE for value: LITE
558558
/// </summary>
559559
[EnumMember(Value = "LITE")]
560-
LITE = 13
560+
LITE = 13,
561+
562+
/// <summary>
563+
/// Enum IGNITE for value: IGNITE
564+
/// </summary>
565+
[EnumMember(Value = "IGNITE")]
566+
IGNITE = 14,
567+
568+
/// <summary>
569+
/// Enum GROW for value: GROW
570+
/// </summary>
571+
[EnumMember(Value = "GROW")]
572+
GROW = 15,
573+
574+
/// <summary>
575+
/// Enum COMPREHENSIVE for value: COMPREHENSIVE
576+
/// </summary>
577+
[EnumMember(Value = "COMPREHENSIVE")]
578+
COMPREHENSIVE = 16
561579

562580
}
563581

Xero.NetStandard.OAuth2/Model/Files/Association.cs

+45
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,27 @@ public partial class Association : IEquatable<Association>, IValidatableObject
4141
[DataMember(Name="ObjectType", EmitDefaultValue=false)]
4242
public ObjectType ObjectType { get; set; }
4343

44+
/// <summary>
45+
/// 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.
46+
/// </summary>
47+
/// <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>
48+
[DataMember(Name="SendWithObject", EmitDefaultValue=false)]
49+
public bool? SendWithObject { get; set; }
50+
51+
/// <summary>
52+
/// The name of the associated file. Note- The Name element is only returned when using /Associations/{ObjectId} endpoint.
53+
/// </summary>
54+
/// <value>The name of the associated file. Note- The Name element is only returned when using /Associations/{ObjectId} endpoint.</value>
55+
[DataMember(Name="Name", EmitDefaultValue=false)]
56+
public string Name { get; set; }
57+
58+
/// <summary>
59+
/// The size of the associated file in bytes. Note- The Size element is only returned when using /Associations/{ObjectId} endpoint.
60+
/// </summary>
61+
/// <value>The size of the associated file in bytes. Note- The Size element is only returned when using /Associations/{ObjectId} endpoint.</value>
62+
[DataMember(Name="Size", EmitDefaultValue=false)]
63+
public int? Size { get; set; }
64+
4465
/// <summary>
4566
/// The unique identifier of the file
4667
/// </summary>
@@ -63,6 +84,9 @@ public override string ToString()
6384
{
6485
var sb = new StringBuilder();
6586
sb.Append("class Association {\n");
87+
sb.Append(" SendWithObject: ").Append(SendWithObject).Append("\n");
88+
sb.Append(" Name: ").Append(Name).Append("\n");
89+
sb.Append(" Size: ").Append(Size).Append("\n");
6690
sb.Append(" FileId: ").Append(FileId).Append("\n");
6791
sb.Append(" ObjectId: ").Append(ObjectId).Append("\n");
6892
sb.Append(" ObjectGroup: ").Append(ObjectGroup).Append("\n");
@@ -101,6 +125,21 @@ public bool Equals(Association input)
101125
return false;
102126

103127
return
128+
(
129+
this.SendWithObject == input.SendWithObject ||
130+
(this.SendWithObject != null &&
131+
this.SendWithObject.Equals(input.SendWithObject))
132+
) &&
133+
(
134+
this.Name == input.Name ||
135+
(this.Name != null &&
136+
this.Name.Equals(input.Name))
137+
) &&
138+
(
139+
this.Size == input.Size ||
140+
(this.Size != null &&
141+
this.Size.Equals(input.Size))
142+
) &&
104143
(
105144
this.FileId == input.FileId ||
106145
(this.FileId != null &&
@@ -130,6 +169,12 @@ public override int GetHashCode()
130169
unchecked // Overflow is fine, just wrap
131170
{
132171
int hashCode = 41;
172+
if (this.SendWithObject != null)
173+
hashCode = hashCode * 59 + this.SendWithObject.GetHashCode();
174+
if (this.Name != null)
175+
hashCode = hashCode * 59 + this.Name.GetHashCode();
176+
if (this.Size != null)
177+
hashCode = hashCode * 59 + this.Size.GetHashCode();
133178
if (this.FileId != null)
134179
hashCode = hashCode * 59 + this.FileId.GetHashCode();
135180
if (this.ObjectId != null)

Xero.NetStandard.OAuth2/Xero.NetStandard.OAuth2.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
1717
<GenerateBindingRedirectsOutputType>true</GenerateBindingRedirectsOutputType>
1818
<RootNamespace>Xero.NetStandard.OAuth2</RootNamespace>
19-
<Version>5.0.0</Version>
19+
<Version>6.0.0</Version>
2020
<DocumentationFile>bin\$(Configuration)\$(TargetFramework)\Xero.NetStandard.OAuth2.xml</DocumentationFile>
2121
<PackageLicenseUrl>https://github.com/XeroAPI/Xero-NetStandard/</PackageLicenseUrl>
2222
<PackageIconUrl>https://en.gravatar.com/userimage/180557955/74b3a957d886bc921b0d1455beed9dab.png</PackageIconUrl>

docs/accounting/index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -4062,7 +4062,7 @@
40624062
"Class" : {
40634063
"type" : "string",
40644064
"description" : "Organisation Classes describe which plan the Xero organisation is on (e.g. DEMO, TRIAL, PREMIUM)",
4065-
"enum" : [ "DEMO", "TRIAL", "STARTER", "STANDARD", "PREMIUM", "PREMIUM_20", "PREMIUM_50", "PREMIUM_100", "LEDGER", "GST_CASHBOOK", "NON_GST_CASHBOOK", "ULTIMATE", "LITE" ]
4065+
"enum" : [ "DEMO", "TRIAL", "STARTER", "STANDARD", "PREMIUM", "PREMIUM_20", "PREMIUM_50", "PREMIUM_100", "LEDGER", "GST_CASHBOOK", "NON_GST_CASHBOOK", "ULTIMATE", "LITE", "IGNITE", "GROW", "COMPREHENSIVE" ]
40664066
},
40674067
"Edition" : {
40684068
"type" : "string",
@@ -6101,7 +6101,7 @@
61016101
<nav id="scrollingNav">
61026102
<ul class="sidenav nav nav-list">
61036103
<li class="nav-header" data-group="Accounting"><strong>SDK: </strong><span id='sdk-name'></span></li>
6104-
<li class="nav-header" data-group="Accounting"><strong>VSN: </strong>5.0.0</li>
6104+
<li class="nav-header" data-group="Accounting"><strong>VSN: </strong>6.0.0</li>
61056105
<li class="nav-header" data-group="Accounting"><a href="#api-Accounting">Methods</a></li>
61066106
<li data-group="Accounting" data-name="createAccount" class="">
61076107
<a href="#api-Accounting-createAccount">createAccount</a>

docs/appstore/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1242,7 +1242,7 @@
12421242
<nav id="scrollingNav">
12431243
<ul class="sidenav nav nav-list">
12441244
<li class="nav-header" data-group="AppStore"><strong>SDK: </strong><span id='sdk-name'></span></li>
1245-
<li class="nav-header" data-group="AppStore"><strong>VSN: </strong>5.0.0</li>
1245+
<li class="nav-header" data-group="AppStore"><strong>VSN: </strong>6.0.0</li>
12461246
<li class="nav-header" data-group="AppStore"><a href="#api-AppStore">Methods</a></li>
12471247
<li data-group="AppStore" data-name="getSubscription" class="">
12481248
<a href="#api-AppStore-getSubscription">getSubscription</a>

docs/bankfeeds/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1269,7 +1269,7 @@
12691269
<nav id="scrollingNav">
12701270
<ul class="sidenav nav nav-list">
12711271
<li class="nav-header" data-group="BankFeeds"><strong>SDK: </strong><span id='sdk-name'></span></li>
1272-
<li class="nav-header" data-group="BankFeeds"><strong>VSN: </strong>5.0.0</li>
1272+
<li class="nav-header" data-group="BankFeeds"><strong>VSN: </strong>6.0.0</li>
12731273
<li class="nav-header" data-group="BankFeeds"><a href="#api-BankFeeds">Methods</a></li>
12741274
<li data-group="BankFeeds" data-name="createFeedConnections" class="">
12751275
<a href="#api-BankFeeds-createFeedConnections">createFeedConnections</a>

docs/files/index.html

+16-1
Original file line numberDiff line numberDiff line change
@@ -866,6 +866,21 @@
866866
"title" : "",
867867
"type" : "object",
868868
"properties" : {
869+
"SendWithObject" : {
870+
"type" : "boolean",
871+
"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.",
872+
"example" : true
873+
},
874+
"Name" : {
875+
"type" : "string",
876+
"description" : "The name of the associated file. Note- The Name element is only returned when using /Associations/{ObjectId} endpoint.",
877+
"example" : "Test.pdf"
878+
},
879+
"Size" : {
880+
"type" : "integer",
881+
"description" : "The size of the associated file in bytes. Note- The Size element is only returned when using /Associations/{ObjectId} endpoint.",
882+
"example" : 12357
883+
},
869884
"FileId" : {
870885
"type" : "string",
871886
"description" : "The unique identifier of the file",
@@ -1156,7 +1171,7 @@
11561171
<nav id="scrollingNav">
11571172
<ul class="sidenav nav nav-list">
11581173
<li class="nav-header" data-group="Files"><strong>SDK: </strong><span id='sdk-name'></span></li>
1159-
<li class="nav-header" data-group="Files"><strong>VSN: </strong>5.0.0</li>
1174+
<li class="nav-header" data-group="Files"><strong>VSN: </strong>6.0.0</li>
11601175
<li class="nav-header" data-group="Files"><a href="#api-Files">Methods</a></li>
11611176
<li data-group="Files" data-name="createFileAssociation" class="">
11621177
<a href="#api-Files-createFileAssociation">createFileAssociation</a>

docs/finance/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -2735,7 +2735,7 @@
27352735
<nav id="scrollingNav">
27362736
<ul class="sidenav nav nav-list">
27372737
<li class="nav-header" data-group="Finance"><strong>SDK: </strong><span id='sdk-name'></span></li>
2738-
<li class="nav-header" data-group="Finance"><strong>VSN: </strong>5.0.0</li>
2738+
<li class="nav-header" data-group="Finance"><strong>VSN: </strong>6.0.0</li>
27392739
<li class="nav-header" data-group="Finance"><a href="#api-Finance">Methods</a></li>
27402740
<li data-group="Finance" data-name="getAccountingActivityAccountUsage" class="">
27412741
<a href="#api-Finance-getAccountingActivityAccountUsage">getAccountingActivityAccountUsage</a>

docs/payroll-au/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -3413,7 +3413,7 @@
34133413
<nav id="scrollingNav">
34143414
<ul class="sidenav nav nav-list">
34153415
<li class="nav-header" data-group="PayrollAu"><strong>SDK: </strong><span id='sdk-name'></span></li>
3416-
<li class="nav-header" data-group="PayrollAu"><strong>VSN: </strong>5.0.0</li>
3416+
<li class="nav-header" data-group="PayrollAu"><strong>VSN: </strong>6.0.0</li>
34173417
<li class="nav-header" data-group="PayrollAu"><a href="#api-PayrollAu">Methods</a></li>
34183418
<li data-group="PayrollAu" data-name="approveLeaveApplication" class="">
34193419
<a href="#api-PayrollAu-approveLeaveApplication">approveLeaveApplication</a>

docs/payroll-nz/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -3844,7 +3844,7 @@
38443844
<nav id="scrollingNav">
38453845
<ul class="sidenav nav nav-list">
38463846
<li class="nav-header" data-group="PayrollNz"><strong>SDK: </strong><span id='sdk-name'></span></li>
3847-
<li class="nav-header" data-group="PayrollNz"><strong>VSN: </strong>5.0.0</li>
3847+
<li class="nav-header" data-group="PayrollNz"><strong>VSN: </strong>6.0.0</li>
38483848
<li class="nav-header" data-group="PayrollNz"><a href="#api-PayrollNz">Methods</a></li>
38493849
<li data-group="PayrollNz" data-name="approveTimesheet" class="">
38503850
<a href="#api-PayrollNz-approveTimesheet">approveTimesheet</a>

docs/payroll-uk/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -3511,7 +3511,7 @@
35113511
<nav id="scrollingNav">
35123512
<ul class="sidenav nav nav-list">
35133513
<li class="nav-header" data-group="PayrollUk"><strong>SDK: </strong><span id='sdk-name'></span></li>
3514-
<li class="nav-header" data-group="PayrollUk"><strong>VSN: </strong>5.0.0</li>
3514+
<li class="nav-header" data-group="PayrollUk"><strong>VSN: </strong>6.0.0</li>
35153515
<li class="nav-header" data-group="PayrollUk"><a href="#api-PayrollUk">Methods</a></li>
35163516
<li data-group="PayrollUk" data-name="approveTimesheet" class="">
35173517
<a href="#api-PayrollUk-approveTimesheet">approveTimesheet</a>

docs/projects/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1463,7 +1463,7 @@
14631463
<nav id="scrollingNav">
14641464
<ul class="sidenav nav nav-list">
14651465
<li class="nav-header" data-group="Project"><strong>SDK: </strong><span id='sdk-name'></span></li>
1466-
<li class="nav-header" data-group="Project"><strong>VSN: </strong>5.0.0</li>
1466+
<li class="nav-header" data-group="Project"><strong>VSN: </strong>6.0.0</li>
14671467
<li class="nav-header" data-group="Project"><a href="#api-Project">Methods</a></li>
14681468
<li data-group="Project" data-name="createProject" class="">
14691469
<a href="#api-Project-createProject">createProject</a>

0 commit comments

Comments
 (0)