diff --git a/Xero.NetStandard.OAuth2/Api/AccountingApi.cs b/Xero.NetStandard.OAuth2/Api/AccountingApi.cs
index cf5ccc08..3ed42488 100644
--- a/Xero.NetStandard.OAuth2/Api/AccountingApi.cs
+++ b/Xero.NetStandard.OAuth2/Api/AccountingApi.cs
@@ -7,7 +7,7 @@
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
-// The version of the OpenAPI document: 9.2.0
+// The version of the OpenAPI document: 9.3.0
using System;
diff --git a/Xero.NetStandard.OAuth2/Api/AppStoreApi.cs b/Xero.NetStandard.OAuth2/Api/AppStoreApi.cs
index 3b255276..326f3fd1 100644
--- a/Xero.NetStandard.OAuth2/Api/AppStoreApi.cs
+++ b/Xero.NetStandard.OAuth2/Api/AppStoreApi.cs
@@ -7,7 +7,7 @@
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
-// The version of the OpenAPI document: 9.2.0
+// The version of the OpenAPI document: 9.3.0
using System;
diff --git a/Xero.NetStandard.OAuth2/Api/AssetApi.cs b/Xero.NetStandard.OAuth2/Api/AssetApi.cs
index e314c685..42c8eb02 100644
--- a/Xero.NetStandard.OAuth2/Api/AssetApi.cs
+++ b/Xero.NetStandard.OAuth2/Api/AssetApi.cs
@@ -7,7 +7,7 @@
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
-// The version of the OpenAPI document: 9.2.0
+// The version of the OpenAPI document: 9.3.0
using System;
diff --git a/Xero.NetStandard.OAuth2/Api/BankFeedsApi.cs b/Xero.NetStandard.OAuth2/Api/BankFeedsApi.cs
index 2a5852e9..83402a8f 100644
--- a/Xero.NetStandard.OAuth2/Api/BankFeedsApi.cs
+++ b/Xero.NetStandard.OAuth2/Api/BankFeedsApi.cs
@@ -7,7 +7,7 @@
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
-// The version of the OpenAPI document: 9.2.0
+// The version of the OpenAPI document: 9.3.0
using System;
diff --git a/Xero.NetStandard.OAuth2/Api/FilesApi.cs b/Xero.NetStandard.OAuth2/Api/FilesApi.cs
index 1c85175f..69dd4869 100644
--- a/Xero.NetStandard.OAuth2/Api/FilesApi.cs
+++ b/Xero.NetStandard.OAuth2/Api/FilesApi.cs
@@ -7,7 +7,7 @@
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
-// The version of the OpenAPI document: 9.2.0
+// The version of the OpenAPI document: 9.3.0
using System;
diff --git a/Xero.NetStandard.OAuth2/Api/FinanceApi.cs b/Xero.NetStandard.OAuth2/Api/FinanceApi.cs
index a8a4328e..0bb4a499 100644
--- a/Xero.NetStandard.OAuth2/Api/FinanceApi.cs
+++ b/Xero.NetStandard.OAuth2/Api/FinanceApi.cs
@@ -7,7 +7,7 @@
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
-// The version of the OpenAPI document: 9.2.0
+// The version of the OpenAPI document: 9.3.0
using System;
diff --git a/Xero.NetStandard.OAuth2/Api/IdentityApi.cs b/Xero.NetStandard.OAuth2/Api/IdentityApi.cs
index 2a08a5cc..d4afa0e1 100644
--- a/Xero.NetStandard.OAuth2/Api/IdentityApi.cs
+++ b/Xero.NetStandard.OAuth2/Api/IdentityApi.cs
@@ -7,7 +7,7 @@
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
-// The version of the OpenAPI document: 9.2.0
+// The version of the OpenAPI document: 9.3.0
using System;
diff --git a/Xero.NetStandard.OAuth2/Api/PayrollAUApi.cs b/Xero.NetStandard.OAuth2/Api/PayrollAUApi.cs
index 5a1b29d5..0a2ccc3f 100644
--- a/Xero.NetStandard.OAuth2/Api/PayrollAUApi.cs
+++ b/Xero.NetStandard.OAuth2/Api/PayrollAUApi.cs
@@ -7,7 +7,7 @@
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
-// The version of the OpenAPI document: 9.2.0
+// The version of the OpenAPI document: 9.3.0
using System;
diff --git a/Xero.NetStandard.OAuth2/Api/PayrollNZApi.cs b/Xero.NetStandard.OAuth2/Api/PayrollNZApi.cs
index 97713d43..4b69559d 100644
--- a/Xero.NetStandard.OAuth2/Api/PayrollNZApi.cs
+++ b/Xero.NetStandard.OAuth2/Api/PayrollNZApi.cs
@@ -7,7 +7,7 @@
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
-// The version of the OpenAPI document: 9.2.0
+// The version of the OpenAPI document: 9.3.0
using System;
diff --git a/Xero.NetStandard.OAuth2/Api/PayrollUkApi.cs b/Xero.NetStandard.OAuth2/Api/PayrollUkApi.cs
index 92fe9fef..48235541 100644
--- a/Xero.NetStandard.OAuth2/Api/PayrollUkApi.cs
+++ b/Xero.NetStandard.OAuth2/Api/PayrollUkApi.cs
@@ -7,7 +7,7 @@
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
-// The version of the OpenAPI document: 9.2.0
+// The version of the OpenAPI document: 9.3.0
using System;
diff --git a/Xero.NetStandard.OAuth2/Api/ProjectApi.cs b/Xero.NetStandard.OAuth2/Api/ProjectApi.cs
index d76488c7..946db6d3 100644
--- a/Xero.NetStandard.OAuth2/Api/ProjectApi.cs
+++ b/Xero.NetStandard.OAuth2/Api/ProjectApi.cs
@@ -7,7 +7,7 @@
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
-// The version of the OpenAPI document: 9.2.0
+// The version of the OpenAPI document: 9.3.0
using System;
diff --git a/Xero.NetStandard.OAuth2/Client/Configuration.cs b/Xero.NetStandard.OAuth2/Client/Configuration.cs
index 742a423c..343d6d5d 100644
--- a/Xero.NetStandard.OAuth2/Client/Configuration.cs
+++ b/Xero.NetStandard.OAuth2/Client/Configuration.cs
@@ -31,7 +31,7 @@ public class Configuration : IReadableConfiguration
/// Version of the package.
///
/// Version of the package.
- public const string Version = "12.3.0";
+ public const string Version = "12.4.0";
///
/// Identifier for ISO 8601 DateTime Format
@@ -103,7 +103,7 @@ public class Configuration : IReadableConfiguration
[System.Diagnostics.CodeAnalysis.SuppressMessage("ReSharper", "VirtualMemberCallInConstructor")]
public Configuration()
{
- UserAgent = "xero-netstandard-12.3.0";
+ UserAgent = "xero-netstandard-12.4.0";
BasePath = "https://api.xero.com/api.xro/2.0";
DefaultHeader = new ConcurrentDictionary();
ApiKey = new ConcurrentDictionary();
@@ -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: 9.2.0\n";
- report += " SDK Package Version: 12.3.0\n";
+ report += " Version of the API: 9.3.0\n";
+ report += " SDK Package Version: 12.4.0\n";
return report;
}
diff --git a/Xero.NetStandard.OAuth2/Model/PayrollUk/ContractType.cs b/Xero.NetStandard.OAuth2/Model/PayrollUk/ContractType.cs
new file mode 100644
index 00000000..cd172adf
--- /dev/null
+++ b/Xero.NetStandard.OAuth2/Model/PayrollUk/ContractType.cs
@@ -0,0 +1,62 @@
+/*
+ * Xero Payroll UK
+ *
+ * This is the Xero Payroll API for orgs in the UK region.
+ *
+ * Contact: api@xero.com
+ * Generated by: https://github.com/openapitools/openapi-generator.git
+ */
+
+
+using System;
+using System.Linq;
+using System.IO;
+using System.Text;
+using System.Text.RegularExpressions;
+using System.Collections;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Runtime.Serialization;
+using Newtonsoft.Json;
+using Newtonsoft.Json.Converters;
+using System.ComponentModel.DataAnnotations;
+using OpenAPIDateConverter = Xero.NetStandard.OAuth2.Client.OpenAPIDateConverter;
+
+namespace Xero.NetStandard.OAuth2.Model.PayrollUk
+{
+ ///
+ /// The contract type of the employee.
+ ///
+ /// The contract type of the employee.
+
+ [JsonConverter(typeof(Client.CustomStringEnumConverter))]
+
+ public enum ContractType
+ {
+ ///
+ /// Enum FullTime for value: FullTime
+ ///
+ [EnumMember(Value = "FullTime")]
+ FullTime = 1,
+
+ ///
+ /// Enum PartTime for value: PartTime
+ ///
+ [EnumMember(Value = "PartTime")]
+ PartTime = 2,
+
+ ///
+ /// Enum ZeroHour for value: ZeroHour
+ ///
+ [EnumMember(Value = "ZeroHour")]
+ ZeroHour = 3,
+
+ ///
+ /// Enum Unspecified for value: Unspecified
+ ///
+ [EnumMember(Value = "Unspecified")]
+ Unspecified = 4
+
+ }
+
+}
diff --git a/Xero.NetStandard.OAuth2/Model/PayrollUk/Contracts.cs b/Xero.NetStandard.OAuth2/Model/PayrollUk/Contracts.cs
new file mode 100644
index 00000000..a5e31484
--- /dev/null
+++ b/Xero.NetStandard.OAuth2/Model/PayrollUk/Contracts.cs
@@ -0,0 +1,207 @@
+/*
+ * Xero Payroll UK
+ *
+ * This is the Xero Payroll API for orgs in the UK region.
+ *
+ * Contact: api@xero.com
+ * Generated by: https://github.com/openapitools/openapi-generator.git
+ */
+
+
+using System;
+using System.Linq;
+using System.IO;
+using System.Text;
+using System.Text.RegularExpressions;
+using System.Collections;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Runtime.Serialization;
+using Newtonsoft.Json;
+using Newtonsoft.Json.Converters;
+using System.ComponentModel.DataAnnotations;
+using OpenAPIDateConverter = Xero.NetStandard.OAuth2.Client.OpenAPIDateConverter;
+
+namespace Xero.NetStandard.OAuth2.Model.PayrollUk
+{
+ ///
+ /// Contracts
+ ///
+ [DataContract]
+ public partial class Contracts : IEquatable, IValidatableObject
+ {
+ ///
+ /// Gets or Sets EmploymentStatus
+ ///
+ [DataMember(Name="employmentStatus", EmitDefaultValue=false)]
+ public EmploymentStatus EmploymentStatus { get; set; }
+ ///
+ /// Gets or Sets ContractType
+ ///
+ [DataMember(Name="contractType", EmitDefaultValue=false)]
+ public ContractType ContractType { get; set; }
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ [JsonConstructorAttribute]
+ public Contracts()
+ {
+ }
+
+ ///
+ /// The contract start date of the employee. This will be locked once an employee has been paid and cannot be changed (YYYY-MM-DD)
+ ///
+ /// The contract start date of the employee. This will be locked once an employee has been paid and cannot be changed (YYYY-MM-DD)
+ [DataMember(Name="startDate", EmitDefaultValue=false)]
+ [JsonConverter(typeof(OpenAPIDateConverter))]
+ public DateTime? StartDate { get; set; }
+
+ ///
+ /// The public key of the contract. Public key is required if the intention is to edit an existing contract. If no key is supplied a new contract will be created
+ ///
+ /// The public key of the contract. Public key is required if the intention is to edit an existing contract. If no key is supplied a new contract will be created
+ [DataMember(Name="publicKey", EmitDefaultValue=false)]
+ public Guid? PublicKey { get; set; }
+
+ ///
+ /// describes whether the contract is fixed term (required if trying to create Fixed term contract)
+ ///
+ /// describes whether the contract is fixed term (required if trying to create Fixed term contract)
+ [DataMember(Name="isFixedTerm", EmitDefaultValue=false)]
+ public bool? IsFixedTerm { get; set; }
+
+ ///
+ /// The fixed term end date of the employee. Not required if isFixedTerm is false or not provided (required if trying to create Fixed term contract)
+ ///
+ /// The fixed term end date of the employee. Not required if isFixedTerm is false or not provided (required if trying to create Fixed term contract)
+ [DataMember(Name="fixedTermEndDate", EmitDefaultValue=false)]
+ [JsonConverter(typeof(OpenAPIDateConverter))]
+ public DateTime? FixedTermEndDate { get; set; }
+
+ ///
+ /// Gets or Sets DevelopmentalRoleDetails
+ ///
+ [DataMember(Name="developmentalRoleDetails", EmitDefaultValue=false)]
+ public DevelopmentalRoleDetails DevelopmentalRoleDetails { get; set; }
+
+ ///
+ /// Returns the string presentation of the object
+ ///
+ /// String presentation of the object
+ public override string ToString()
+ {
+ var sb = new StringBuilder();
+ sb.Append("class Contracts {\n");
+ sb.Append(" StartDate: ").Append(StartDate).Append("\n");
+ sb.Append(" EmploymentStatus: ").Append(EmploymentStatus).Append("\n");
+ sb.Append(" ContractType: ").Append(ContractType).Append("\n");
+ sb.Append(" PublicKey: ").Append(PublicKey).Append("\n");
+ sb.Append(" IsFixedTerm: ").Append(IsFixedTerm).Append("\n");
+ sb.Append(" FixedTermEndDate: ").Append(FixedTermEndDate).Append("\n");
+ sb.Append(" DevelopmentalRoleDetails: ").Append(DevelopmentalRoleDetails).Append("\n");
+ sb.Append("}\n");
+ return sb.ToString();
+ }
+
+ ///
+ /// Returns the JSON string presentation of the object
+ ///
+ /// JSON string presentation of the object
+ public virtual string ToJson()
+ {
+ return JsonConvert.SerializeObject(this, Formatting.Indented);
+ }
+
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return this.Equals(input as Contracts);
+ }
+
+ ///
+ /// Returns true if Contracts instances are equal
+ ///
+ /// Instance of Contracts to be compared
+ /// Boolean
+ public bool Equals(Contracts input)
+ {
+ if (input == null)
+ return false;
+
+ return
+ (
+ this.StartDate == input.StartDate ||
+ (this.StartDate != null &&
+ this.StartDate.Equals(input.StartDate))
+ ) &&
+ (
+ this.EmploymentStatus == input.EmploymentStatus ||
+ this.EmploymentStatus.Equals(input.EmploymentStatus)
+ ) &&
+ (
+ this.ContractType == input.ContractType ||
+ this.ContractType.Equals(input.ContractType)
+ ) &&
+ (
+ this.PublicKey == input.PublicKey ||
+ (this.PublicKey != null &&
+ this.PublicKey.Equals(input.PublicKey))
+ ) &&
+ (
+ this.IsFixedTerm == input.IsFixedTerm ||
+ (this.IsFixedTerm != null &&
+ this.IsFixedTerm.Equals(input.IsFixedTerm))
+ ) &&
+ (
+ this.FixedTermEndDate == input.FixedTermEndDate ||
+ (this.FixedTermEndDate != null &&
+ this.FixedTermEndDate.Equals(input.FixedTermEndDate))
+ ) &&
+ (
+ this.DevelopmentalRoleDetails == input.DevelopmentalRoleDetails ||
+ (this.DevelopmentalRoleDetails != null &&
+ this.DevelopmentalRoleDetails.Equals(input.DevelopmentalRoleDetails))
+ );
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (this.StartDate != null)
+ hashCode = hashCode * 59 + this.StartDate.GetHashCode();
+ hashCode = hashCode * 59 + this.EmploymentStatus.GetHashCode();
+ hashCode = hashCode * 59 + this.ContractType.GetHashCode();
+ if (this.PublicKey != null)
+ hashCode = hashCode * 59 + this.PublicKey.GetHashCode();
+ if (this.IsFixedTerm != null)
+ hashCode = hashCode * 59 + this.IsFixedTerm.GetHashCode();
+ if (this.FixedTermEndDate != null)
+ hashCode = hashCode * 59 + this.FixedTermEndDate.GetHashCode();
+ if (this.DevelopmentalRoleDetails != null)
+ hashCode = hashCode * 59 + this.DevelopmentalRoleDetails.GetHashCode();
+ return hashCode;
+ }
+ }
+
+ ///
+ /// To validate all properties of the instance
+ ///
+ /// Validation context
+ /// Validation Result
+ IEnumerable IValidatableObject.Validate(ValidationContext validationContext)
+ {
+ yield break;
+ }
+ }
+
+}
diff --git a/Xero.NetStandard.OAuth2/Model/PayrollUk/DevelopmentalRoleDetails.cs b/Xero.NetStandard.OAuth2/Model/PayrollUk/DevelopmentalRoleDetails.cs
new file mode 100644
index 00000000..60a6dbfc
--- /dev/null
+++ b/Xero.NetStandard.OAuth2/Model/PayrollUk/DevelopmentalRoleDetails.cs
@@ -0,0 +1,171 @@
+/*
+ * Xero Payroll UK
+ *
+ * This is the Xero Payroll API for orgs in the UK region.
+ *
+ * Contact: api@xero.com
+ * Generated by: https://github.com/openapitools/openapi-generator.git
+ */
+
+
+using System;
+using System.Linq;
+using System.IO;
+using System.Text;
+using System.Text.RegularExpressions;
+using System.Collections;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Runtime.Serialization;
+using Newtonsoft.Json;
+using Newtonsoft.Json.Converters;
+using System.ComponentModel.DataAnnotations;
+using OpenAPIDateConverter = Xero.NetStandard.OAuth2.Client.OpenAPIDateConverter;
+
+namespace Xero.NetStandard.OAuth2.Model.PayrollUk
+{
+ ///
+ /// DevelopmentalRoleDetails
+ ///
+ [DataContract]
+ public partial class DevelopmentalRoleDetails : IEquatable, IValidatableObject
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ [JsonConstructorAttribute]
+ public DevelopmentalRoleDetails()
+ {
+ }
+
+ ///
+ /// The start date of the developmental role
+ ///
+ /// The start date of the developmental role
+ [DataMember(Name="startDate", EmitDefaultValue=false)]
+ [JsonConverter(typeof(OpenAPIDateConverter))]
+ public DateTime? StartDate { get; set; }
+
+ ///
+ /// The end date of the developmental role
+ ///
+ /// The end date of the developmental role
+ [DataMember(Name="endDate", EmitDefaultValue=false)]
+ [JsonConverter(typeof(OpenAPIDateConverter))]
+ public DateTime? EndDate { get; set; }
+
+ ///
+ /// The developmental role type - \"Apprentice\" is the only supported role currently
+ ///
+ /// The developmental role type - \"Apprentice\" is the only supported role currently
+ [DataMember(Name="developmentalRole", EmitDefaultValue=false)]
+ public string DevelopmentalRole { get; set; }
+
+ ///
+ /// The public key of the developmental role. Public key is required if the intention is to edit an existing developmental role. If no key is supplied a new developmental role will be created
+ ///
+ /// The public key of the developmental role. Public key is required if the intention is to edit an existing developmental role. If no key is supplied a new developmental role will be created
+ [DataMember(Name="publicKey", EmitDefaultValue=false)]
+ public Guid? PublicKey { get; set; }
+
+ ///
+ /// Returns the string presentation of the object
+ ///
+ /// String presentation of the object
+ public override string ToString()
+ {
+ var sb = new StringBuilder();
+ sb.Append("class DevelopmentalRoleDetails {\n");
+ sb.Append(" StartDate: ").Append(StartDate).Append("\n");
+ sb.Append(" EndDate: ").Append(EndDate).Append("\n");
+ sb.Append(" DevelopmentalRole: ").Append(DevelopmentalRole).Append("\n");
+ sb.Append(" PublicKey: ").Append(PublicKey).Append("\n");
+ sb.Append("}\n");
+ return sb.ToString();
+ }
+
+ ///
+ /// Returns the JSON string presentation of the object
+ ///
+ /// JSON string presentation of the object
+ public virtual string ToJson()
+ {
+ return JsonConvert.SerializeObject(this, Formatting.Indented);
+ }
+
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return this.Equals(input as DevelopmentalRoleDetails);
+ }
+
+ ///
+ /// Returns true if DevelopmentalRoleDetails instances are equal
+ ///
+ /// Instance of DevelopmentalRoleDetails to be compared
+ /// Boolean
+ public bool Equals(DevelopmentalRoleDetails input)
+ {
+ if (input == null)
+ return false;
+
+ return
+ (
+ this.StartDate == input.StartDate ||
+ (this.StartDate != null &&
+ this.StartDate.Equals(input.StartDate))
+ ) &&
+ (
+ this.EndDate == input.EndDate ||
+ (this.EndDate != null &&
+ this.EndDate.Equals(input.EndDate))
+ ) &&
+ (
+ this.DevelopmentalRole == input.DevelopmentalRole ||
+ (this.DevelopmentalRole != null &&
+ this.DevelopmentalRole.Equals(input.DevelopmentalRole))
+ ) &&
+ (
+ this.PublicKey == input.PublicKey ||
+ (this.PublicKey != null &&
+ this.PublicKey.Equals(input.PublicKey))
+ );
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (this.StartDate != null)
+ hashCode = hashCode * 59 + this.StartDate.GetHashCode();
+ if (this.EndDate != null)
+ hashCode = hashCode * 59 + this.EndDate.GetHashCode();
+ if (this.DevelopmentalRole != null)
+ hashCode = hashCode * 59 + this.DevelopmentalRole.GetHashCode();
+ if (this.PublicKey != null)
+ hashCode = hashCode * 59 + this.PublicKey.GetHashCode();
+ return hashCode;
+ }
+ }
+
+ ///
+ /// To validate all properties of the instance
+ ///
+ /// Validation context
+ /// Validation Result
+ IEnumerable IValidatableObject.Validate(ValidationContext validationContext)
+ {
+ yield break;
+ }
+ }
+
+}
diff --git a/Xero.NetStandard.OAuth2/Model/PayrollUk/Employee.cs b/Xero.NetStandard.OAuth2/Model/PayrollUk/Employee.cs
index 5c7cd562..229540cd 100644
--- a/Xero.NetStandard.OAuth2/Model/PayrollUk/Employee.cs
+++ b/Xero.NetStandard.OAuth2/Model/PayrollUk/Employee.cs
@@ -68,7 +68,8 @@ public enum GenderEnum
[JsonConstructorAttribute]
public Employee()
{
- NiCategories = new List();
+ NiCategories = new List();
+ Contracts = new List();
}
///
@@ -185,6 +186,13 @@ public Employee()
[DataMember(Name="isOffPayrollWorker", EmitDefaultValue=false)]
public bool? IsOffPayrollWorker { get; set; }
+ ///
+ /// The employee's contracts
+ ///
+ /// The employee's contracts
+ [DataMember(Name="contracts", EmitDefaultValue=false)]
+ public List Contracts { get; set; }
+
///
/// Returns the string presentation of the object
///
@@ -211,6 +219,7 @@ public override string ToString()
sb.Append(" NiCategories: ").Append(NiCategories).Append("\n");
sb.Append(" NationalInsuranceNumber: ").Append(NationalInsuranceNumber).Append("\n");
sb.Append(" IsOffPayrollWorker: ").Append(IsOffPayrollWorker).Append("\n");
+ sb.Append(" Contracts: ").Append(Contracts).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
@@ -333,6 +342,12 @@ public bool Equals(Employee input)
this.IsOffPayrollWorker == input.IsOffPayrollWorker ||
(this.IsOffPayrollWorker != null &&
this.IsOffPayrollWorker.Equals(input.IsOffPayrollWorker))
+ ) &&
+ (
+ this.Contracts == input.Contracts ||
+ this.Contracts != null &&
+ input.Contracts != null &&
+ this.Contracts.SequenceEqual(input.Contracts)
);
}
@@ -379,6 +394,8 @@ public override int GetHashCode()
hashCode = hashCode * 59 + this.NationalInsuranceNumber.GetHashCode();
if (this.IsOffPayrollWorker != null)
hashCode = hashCode * 59 + this.IsOffPayrollWorker.GetHashCode();
+ if (this.Contracts != null)
+ hashCode = hashCode * 59 + this.Contracts.GetHashCode();
return hashCode;
}
}
diff --git a/Xero.NetStandard.OAuth2/Model/PayrollUk/Employment.cs b/Xero.NetStandard.OAuth2/Model/PayrollUk/Employment.cs
index d4aa3ca9..f4338405 100644
--- a/Xero.NetStandard.OAuth2/Model/PayrollUk/Employment.cs
+++ b/Xero.NetStandard.OAuth2/Model/PayrollUk/Employment.cs
@@ -41,7 +41,8 @@ public partial class Employment : IEquatable, IValidatableObject
[JsonConstructorAttribute]
public Employment()
{
- NiCategories = new List();
+ NiCategories = new List();
+ Contracts = new List();
}
///
@@ -73,6 +74,13 @@ public Employment()
[DataMember(Name="niCategories", EmitDefaultValue=false)]
public List NiCategories { get; set; }
+ ///
+ /// The employee's contracts
+ ///
+ /// The employee's contracts
+ [DataMember(Name="contracts", EmitDefaultValue=false)]
+ public List Contracts { get; set; }
+
///
/// Returns the string presentation of the object
///
@@ -86,6 +94,7 @@ public override string ToString()
sb.Append(" EmployeeNumber: ").Append(EmployeeNumber).Append("\n");
sb.Append(" NiCategory: ").Append(NiCategory).Append("\n");
sb.Append(" NiCategories: ").Append(NiCategories).Append("\n");
+ sb.Append(" Contracts: ").Append(Contracts).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
@@ -144,6 +153,12 @@ public bool Equals(Employment input)
this.NiCategories != null &&
input.NiCategories != null &&
this.NiCategories.SequenceEqual(input.NiCategories)
+ ) &&
+ (
+ this.Contracts == input.Contracts ||
+ this.Contracts != null &&
+ input.Contracts != null &&
+ this.Contracts.SequenceEqual(input.Contracts)
);
}
@@ -165,6 +180,8 @@ public override int GetHashCode()
hashCode = hashCode * 59 + this.NiCategory.GetHashCode();
if (this.NiCategories != null)
hashCode = hashCode * 59 + this.NiCategories.GetHashCode();
+ if (this.Contracts != null)
+ hashCode = hashCode * 59 + this.Contracts.GetHashCode();
return hashCode;
}
}
diff --git a/Xero.NetStandard.OAuth2/Model/PayrollUk/EmploymentStatus.cs b/Xero.NetStandard.OAuth2/Model/PayrollUk/EmploymentStatus.cs
new file mode 100644
index 00000000..a3a01828
--- /dev/null
+++ b/Xero.NetStandard.OAuth2/Model/PayrollUk/EmploymentStatus.cs
@@ -0,0 +1,56 @@
+/*
+ * Xero Payroll UK
+ *
+ * This is the Xero Payroll API for orgs in the UK region.
+ *
+ * Contact: api@xero.com
+ * Generated by: https://github.com/openapitools/openapi-generator.git
+ */
+
+
+using System;
+using System.Linq;
+using System.IO;
+using System.Text;
+using System.Text.RegularExpressions;
+using System.Collections;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Runtime.Serialization;
+using Newtonsoft.Json;
+using Newtonsoft.Json.Converters;
+using System.ComponentModel.DataAnnotations;
+using OpenAPIDateConverter = Xero.NetStandard.OAuth2.Client.OpenAPIDateConverter;
+
+namespace Xero.NetStandard.OAuth2.Model.PayrollUk
+{
+ ///
+ /// The employment status of the employee.
+ ///
+ /// The employment status of the employee.
+
+ [JsonConverter(typeof(Client.CustomStringEnumConverter))]
+
+ public enum EmploymentStatus
+ {
+ ///
+ /// Enum Employee for value: Employee
+ ///
+ [EnumMember(Value = "Employee")]
+ Employee = 1,
+
+ ///
+ /// Enum Worker for value: Worker
+ ///
+ [EnumMember(Value = "Worker")]
+ Worker = 2,
+
+ ///
+ /// Enum Unspecified for value: Unspecified
+ ///
+ [EnumMember(Value = "Unspecified")]
+ Unspecified = 3
+
+ }
+
+}
diff --git a/Xero.NetStandard.OAuth2/Xero.NetStandard.OAuth2.csproj b/Xero.NetStandard.OAuth2/Xero.NetStandard.OAuth2.csproj
index c232474c..3a6222f6 100644
--- a/Xero.NetStandard.OAuth2/Xero.NetStandard.OAuth2.csproj
+++ b/Xero.NetStandard.OAuth2/Xero.NetStandard.OAuth2.csproj
@@ -16,7 +16,7 @@
true
true
Xero.NetStandard.OAuth2
- 12.3.0
+ 12.4.0
bin\$(Configuration)\$(TargetFramework)\Xero.NetStandard.OAuth2.xml
https://github.com/XeroAPI/Xero-NetStandard/
https://en.gravatar.com/userimage/180557955/74b3a957d886bc921b0d1455beed9dab.png
diff --git a/docs/accounting/index.html b/docs/accounting/index.html
index 0eb2786c..7b086447 100644
--- a/docs/accounting/index.html
+++ b/docs/accounting/index.html
@@ -6345,7 +6345,7 @@