Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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: 9.2.0
// The version of the OpenAPI document: 9.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: 9.2.0
// The version of the OpenAPI document: 9.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: 9.2.0
// The version of the OpenAPI document: 9.3.0


using System;
Expand Down Expand Up @@ -772,7 +772,7 @@
requestOptions.HeaderParameters.Add("Accept", accept);


if (status != null)

Check warning on line 775 in Xero.NetStandard.OAuth2/Api/AssetApi.cs

View workflow job for this annotation

GitHub Actions / build-test-lint

The result of the expression is always 'true' since a value of type 'AssetStatusQueryParam' is never equal to 'null' of type 'AssetStatusQueryParam?'
{
foreach (var kvp in Xero.NetStandard.OAuth2.Client.ClientUtils.ParameterToMultiMap("", "status", status))
{
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: 9.2.0
// The version of the OpenAPI document: 9.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: 9.2.0
// The version of the OpenAPI document: 9.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: 9.2.0
// The version of the OpenAPI document: 9.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: 9.2.0
// The version of the OpenAPI document: 9.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: 9.2.0
// The version of the OpenAPI document: 9.3.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: 9.2.0
// The version of the OpenAPI document: 9.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: 9.2.0
// The version of the OpenAPI document: 9.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: 9.2.0
// The version of the OpenAPI document: 9.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 = "12.3.0";
public const string Version = "12.4.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-12.3.0";
UserAgent = "xero-netstandard-12.4.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: 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;
}
Expand Down
62 changes: 62 additions & 0 deletions Xero.NetStandard.OAuth2/Model/PayrollUk/ContractType.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
/*
* Xero Payroll UK
*
* This is the Xero Payroll API for orgs in the UK region.
*
* Contact: [email protected]
* 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
{
/// <summary>
/// The contract type of the employee.
/// </summary>
/// <value>The contract type of the employee.</value>

[JsonConverter(typeof(Client.CustomStringEnumConverter))]

public enum ContractType
{
/// <summary>
/// Enum FullTime for value: FullTime
/// </summary>
[EnumMember(Value = "FullTime")]
FullTime = 1,

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

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

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

}

}
207 changes: 207 additions & 0 deletions Xero.NetStandard.OAuth2/Model/PayrollUk/Contracts.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,207 @@
/*
* Xero Payroll UK
*
* This is the Xero Payroll API for orgs in the UK region.
*
* Contact: [email protected]
* 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
{
/// <summary>
/// Contracts
/// </summary>
[DataContract]
public partial class Contracts : IEquatable<Contracts>, IValidatableObject
{
/// <summary>
/// Gets or Sets EmploymentStatus
/// </summary>
[DataMember(Name="employmentStatus", EmitDefaultValue=false)]
public EmploymentStatus EmploymentStatus { get; set; }
/// <summary>
/// Gets or Sets ContractType
/// </summary>
[DataMember(Name="contractType", EmitDefaultValue=false)]
public ContractType ContractType { get; set; }
/// <summary>
/// Initializes a new instance of the <see cref="Contracts" /> class.
/// </summary>
[JsonConstructorAttribute]
public Contracts()
{
}

/// <summary>
/// The contract start date of the employee. This will be locked once an employee has been paid and cannot be changed (YYYY-MM-DD)
/// </summary>
/// <value>The contract start date of the employee. This will be locked once an employee has been paid and cannot be changed (YYYY-MM-DD)</value>
[DataMember(Name="startDate", EmitDefaultValue=false)]
[JsonConverter(typeof(OpenAPIDateConverter))]
public DateTime? StartDate { get; set; }

/// <summary>
/// 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
/// </summary>
/// <value>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</value>
[DataMember(Name="publicKey", EmitDefaultValue=false)]
public Guid? PublicKey { get; set; }

/// <summary>
/// describes whether the contract is fixed term (required if trying to create Fixed term contract)
/// </summary>
/// <value>describes whether the contract is fixed term (required if trying to create Fixed term contract)</value>
[DataMember(Name="isFixedTerm", EmitDefaultValue=false)]
public bool? IsFixedTerm { get; set; }

/// <summary>
/// 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)
/// </summary>
/// <value>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)</value>
[DataMember(Name="fixedTermEndDate", EmitDefaultValue=false)]
[JsonConverter(typeof(OpenAPIDateConverter))]
public DateTime? FixedTermEndDate { get; set; }

/// <summary>
/// Gets or Sets DevelopmentalRoleDetails
/// </summary>
[DataMember(Name="developmentalRoleDetails", EmitDefaultValue=false)]
public DevelopmentalRoleDetails DevelopmentalRoleDetails { get; set; }

/// <summary>
/// Returns the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
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();
}

/// <summary>
/// Returns the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public virtual string ToJson()
{
return JsonConvert.SerializeObject(this, Formatting.Indented);
}

/// <summary>
/// Returns true if objects are equal
/// </summary>
/// <param name="input">Object to be compared</param>
/// <returns>Boolean</returns>
public override bool Equals(object input)
{
return this.Equals(input as Contracts);
}

/// <summary>
/// Returns true if Contracts instances are equal
/// </summary>
/// <param name="input">Instance of Contracts to be compared</param>
/// <returns>Boolean</returns>
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))
);
}

/// <summary>
/// Gets the hash code
/// </summary>
/// <returns>Hash code</returns>
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;
}
}

/// <summary>
/// To validate all properties of the instance
/// </summary>
/// <param name="validationContext">Validation context</param>
/// <returns>Validation Result</returns>
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
{
yield break;
}
}

}
Loading
Loading