Skip to content

Commit 63d3648

Browse files
Build for version - 11.0.0 | NI category udpates (#594)
Build for version - 11.0.0 | NI category udpates (#594)
1 parent 6b85460 commit 63d3648

28 files changed

+779
-121
lines changed

Xero.NetStandard.OAuth2/Api/AccountingApi.cs

Lines changed: 1 addition & 1 deletion
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: 7.1.0
10+
// The version of the OpenAPI document: 8.0.0
1111

1212

1313
using System;

Xero.NetStandard.OAuth2/Api/AppStoreApi.cs

Lines changed: 1 addition & 1 deletion
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: 7.1.0
10+
// The version of the OpenAPI document: 8.0.0
1111

1212

1313
using System;

Xero.NetStandard.OAuth2/Api/AssetApi.cs

Lines changed: 1 addition & 1 deletion
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: 7.1.0
10+
// The version of the OpenAPI document: 8.0.0
1111

1212

1313
using System;

Xero.NetStandard.OAuth2/Api/BankFeedsApi.cs

Lines changed: 1 addition & 1 deletion
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: 7.1.0
10+
// The version of the OpenAPI document: 8.0.0
1111

1212

1313
using System;

Xero.NetStandard.OAuth2/Api/FilesApi.cs

Lines changed: 1 addition & 1 deletion
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: 7.1.0
10+
// The version of the OpenAPI document: 8.0.0
1111

1212

1313
using System;

Xero.NetStandard.OAuth2/Api/FinanceApi.cs

Lines changed: 1 addition & 1 deletion
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: 7.1.0
10+
// The version of the OpenAPI document: 8.0.0
1111

1212

1313
using System;

Xero.NetStandard.OAuth2/Api/IdentityApi.cs

Lines changed: 1 addition & 1 deletion
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: 7.1.0
10+
// The version of the OpenAPI document: 8.0.0
1111

1212

1313
using System;

Xero.NetStandard.OAuth2/Api/PayrollAUApi.cs

Lines changed: 1 addition & 1 deletion
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: 7.1.0
10+
// The version of the OpenAPI document: 8.0.0
1111

1212

1313
using System;

Xero.NetStandard.OAuth2/Api/PayrollNZApi.cs

Lines changed: 1 addition & 1 deletion
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: 7.1.0
10+
// The version of the OpenAPI document: 8.0.0
1111

1212

1313
using System;

Xero.NetStandard.OAuth2/Api/PayrollUkApi.cs

Lines changed: 1 addition & 1 deletion
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: 7.1.0
10+
// The version of the OpenAPI document: 8.0.0
1111

1212

1313
using System;

Xero.NetStandard.OAuth2/Api/ProjectApi.cs

Lines changed: 1 addition & 1 deletion
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: 7.1.0
10+
// The version of the OpenAPI document: 8.0.0
1111

1212

1313
using System;

Xero.NetStandard.OAuth2/Client/Configuration.cs

Lines changed: 4 additions & 4 deletions
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 = "10.1.0";
34+
public const string Version = "11.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-10.1.0";
106+
UserAgent = "xero-netstandard-11.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: 7.1.0\n";
345-
report += " SDK Package Version: 10.1.0\n";
344+
report += " Version of the API: 8.0.0\n";
345+
report += " SDK Package Version: 11.0.0\n";
346346

347347
return report;
348348
}

Xero.NetStandard.OAuth2/Model/PayrollUk/Employee.cs

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,11 @@ public enum GenderEnum
5757
/// <value>The employee’s gender</value>
5858
[DataMember(Name="gender", EmitDefaultValue=false)]
5959
public GenderEnum Gender { get; set; }
60+
/// <summary>
61+
/// Gets or Sets NiCategory
62+
/// </summary>
63+
[DataMember(Name="niCategory", EmitDefaultValue=false)]
64+
public NICategoryLetter NiCategory { get; set; }
6065

6166
/// <summary>
6267
/// Xero unique identifier for the employee
@@ -151,6 +156,13 @@ public enum GenderEnum
151156
[DataMember(Name="createdDateUTC", EmitDefaultValue=false)]
152157
public DateTime? CreatedDateUTC { get; set; }
153158

159+
/// <summary>
160+
/// The employee&#39;s NI categories
161+
/// </summary>
162+
/// <value>The employee&#39;s NI categories</value>
163+
[DataMember(Name="niCategories", EmitDefaultValue=false)]
164+
public List<NICategory> NiCategories { get; set; }
165+
154166
/// <summary>
155167
/// National insurance number of the employee
156168
/// </summary>
@@ -187,6 +199,8 @@ public override string ToString()
187199
sb.Append(" PayrollCalendarID: ").Append(PayrollCalendarID).Append("\n");
188200
sb.Append(" UpdatedDateUTC: ").Append(UpdatedDateUTC).Append("\n");
189201
sb.Append(" CreatedDateUTC: ").Append(CreatedDateUTC).Append("\n");
202+
sb.Append(" NiCategory: ").Append(NiCategory).Append("\n");
203+
sb.Append(" NiCategories: ").Append(NiCategories).Append("\n");
190204
sb.Append(" NationalInsuranceNumber: ").Append(NationalInsuranceNumber).Append("\n");
191205
sb.Append(" IsOffPayrollWorker: ").Append(IsOffPayrollWorker).Append("\n");
192206
sb.Append("}\n");
@@ -292,6 +306,16 @@ public bool Equals(Employee input)
292306
(this.CreatedDateUTC != null &&
293307
this.CreatedDateUTC.Equals(input.CreatedDateUTC))
294308
) &&
309+
(
310+
this.NiCategory == input.NiCategory ||
311+
this.NiCategory.Equals(input.NiCategory)
312+
) &&
313+
(
314+
this.NiCategories == input.NiCategories ||
315+
this.NiCategories != null &&
316+
input.NiCategories != null &&
317+
this.NiCategories.SequenceEqual(input.NiCategories)
318+
) &&
295319
(
296320
this.NationalInsuranceNumber == input.NationalInsuranceNumber ||
297321
(this.NationalInsuranceNumber != null &&
@@ -340,6 +364,9 @@ public override int GetHashCode()
340364
hashCode = hashCode * 59 + this.UpdatedDateUTC.GetHashCode();
341365
if (this.CreatedDateUTC != null)
342366
hashCode = hashCode * 59 + this.CreatedDateUTC.GetHashCode();
367+
hashCode = hashCode * 59 + this.NiCategory.GetHashCode();
368+
if (this.NiCategories != null)
369+
hashCode = hashCode * 59 + this.NiCategories.GetHashCode();
343370
if (this.NationalInsuranceNumber != null)
344371
hashCode = hashCode * 59 + this.NationalInsuranceNumber.GetHashCode();
345372
if (this.IsOffPayrollWorker != null)

Xero.NetStandard.OAuth2/Model/PayrollUk/Employment.cs

Lines changed: 18 additions & 90 deletions
Original file line numberDiff line numberDiff line change
@@ -31,98 +31,10 @@ namespace Xero.NetStandard.OAuth2.Model.PayrollUk
3131
public partial class Employment : IEquatable<Employment>, IValidatableObject
3232
{
3333
/// <summary>
34-
/// The NI Category of the employee
34+
/// Gets or Sets NiCategory
3535
/// </summary>
36-
/// <value>The NI Category of the employee</value>
37-
[JsonConverter(typeof(Client.CustomStringEnumConverter))]
38-
public enum NiCategoryEnum
39-
{
40-
/// <summary>
41-
/// Enum A for value: A
42-
/// </summary>
43-
[EnumMember(Value = "A")]
44-
A = 1,
45-
46-
/// <summary>
47-
/// Enum B for value: B
48-
/// </summary>
49-
[EnumMember(Value = "B")]
50-
B = 2,
51-
52-
/// <summary>
53-
/// Enum C for value: C
54-
/// </summary>
55-
[EnumMember(Value = "C")]
56-
C = 3,
57-
58-
/// <summary>
59-
/// Enum F for value: F
60-
/// </summary>
61-
[EnumMember(Value = "F")]
62-
F = 4,
63-
64-
/// <summary>
65-
/// Enum H for value: H
66-
/// </summary>
67-
[EnumMember(Value = "H")]
68-
H = 5,
69-
70-
/// <summary>
71-
/// Enum I for value: I
72-
/// </summary>
73-
[EnumMember(Value = "I")]
74-
I = 6,
75-
76-
/// <summary>
77-
/// Enum J for value: J
78-
/// </summary>
79-
[EnumMember(Value = "J")]
80-
J = 7,
81-
82-
/// <summary>
83-
/// Enum L for value: L
84-
/// </summary>
85-
[EnumMember(Value = "L")]
86-
L = 8,
87-
88-
/// <summary>
89-
/// Enum M for value: M
90-
/// </summary>
91-
[EnumMember(Value = "M")]
92-
M = 9,
93-
94-
/// <summary>
95-
/// Enum S for value: S
96-
/// </summary>
97-
[EnumMember(Value = "S")]
98-
S = 10,
99-
100-
/// <summary>
101-
/// Enum V for value: V
102-
/// </summary>
103-
[EnumMember(Value = "V")]
104-
V = 11,
105-
106-
/// <summary>
107-
/// Enum X for value: X
108-
/// </summary>
109-
[EnumMember(Value = "X")]
110-
X = 12,
111-
112-
/// <summary>
113-
/// Enum Z for value: Z
114-
/// </summary>
115-
[EnumMember(Value = "Z")]
116-
Z = 13
117-
118-
}
119-
120-
/// <summary>
121-
/// The NI Category of the employee
122-
/// </summary>
123-
/// <value>The NI Category of the employee</value>
12436
[DataMember(Name="niCategory", EmitDefaultValue=false)]
125-
public NiCategoryEnum NiCategory { get; set; }
37+
public NICategoryLetter NiCategory { get; set; }
12638

12739
/// <summary>
12840
/// Xero unique identifier for the payroll calendar of the employee
@@ -146,6 +58,13 @@ public enum NiCategoryEnum
14658
[DataMember(Name="employeeNumber", EmitDefaultValue=false)]
14759
public string EmployeeNumber { get; set; }
14860

61+
/// <summary>
62+
/// The employee&#39;s NI categories
63+
/// </summary>
64+
/// <value>The employee&#39;s NI categories</value>
65+
[DataMember(Name="niCategories", EmitDefaultValue=false)]
66+
public List<NICategory> NiCategories { get; set; }
67+
14968
/// <summary>
15069
/// Returns the string presentation of the object
15170
/// </summary>
@@ -158,6 +77,7 @@ public override string ToString()
15877
sb.Append(" StartDate: ").Append(StartDate).Append("\n");
15978
sb.Append(" EmployeeNumber: ").Append(EmployeeNumber).Append("\n");
16079
sb.Append(" NiCategory: ").Append(NiCategory).Append("\n");
80+
sb.Append(" NiCategories: ").Append(NiCategories).Append("\n");
16181
sb.Append("}\n");
16282
return sb.ToString();
16383
}
@@ -210,6 +130,12 @@ public bool Equals(Employment input)
210130
(
211131
this.NiCategory == input.NiCategory ||
212132
this.NiCategory.Equals(input.NiCategory)
133+
) &&
134+
(
135+
this.NiCategories == input.NiCategories ||
136+
this.NiCategories != null &&
137+
input.NiCategories != null &&
138+
this.NiCategories.SequenceEqual(input.NiCategories)
213139
);
214140
}
215141

@@ -229,6 +155,8 @@ public override int GetHashCode()
229155
if (this.EmployeeNumber != null)
230156
hashCode = hashCode * 59 + this.EmployeeNumber.GetHashCode();
231157
hashCode = hashCode * 59 + this.NiCategory.GetHashCode();
158+
if (this.NiCategories != null)
159+
hashCode = hashCode * 59 + this.NiCategories.GetHashCode();
232160
return hashCode;
233161
}
234162
}

0 commit comments

Comments
 (0)