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
266 changes: 260 additions & 6 deletions Xero.NetStandard.OAuth2/Api/AccountingApi.cs

Large diffs are not rendered by default.

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: 16.0.0
// The version of the OpenAPI document: 16.1.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: 16.0.0
// The version of the OpenAPI document: 16.1.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: 16.0.0
// The version of the OpenAPI document: 16.1.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: 16.0.0
// The version of the OpenAPI document: 16.1.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: 16.0.0
// The version of the OpenAPI document: 16.1.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: 16.0.0
// The version of the OpenAPI document: 16.1.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: 16.0.0
// The version of the OpenAPI document: 16.1.0


using System;
Expand Down
2 changes: 1 addition & 1 deletion Xero.NetStandard.OAuth2/Api/PayrollAUV2Api.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: 16.0.0
// The version of the OpenAPI document: 16.1.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: 16.0.0
// The version of the OpenAPI document: 16.1.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: 16.0.0
// The version of the OpenAPI document: 16.1.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: 16.0.0
// The version of the OpenAPI document: 16.1.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 = "17.0.0";
public const string Version = "18.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-17.0.0";
UserAgent = "xero-netstandard-18.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: 16.0.0\n";
report += " SDK Package Version: 17.0.0\n";
report += " Version of the API: 16.1.0\n";
report += " SDK Package Version: 18.0.0\n";

return report;
}
Expand Down
67 changes: 67 additions & 0 deletions Xero.NetStandard.OAuth2/Model/Accounting/BankTransfer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,41 @@ namespace Xero.NetStandard.OAuth2.Model.Accounting
[DataContract]
public partial class BankTransfer : IEquatable<BankTransfer>, IValidatableObject
{
/// <summary>
/// AUTHORISED or DELETED (read-only). New bank transfers will have a status of AUTHORISED.
/// </summary>
/// <value>AUTHORISED or DELETED (read-only). New bank transfers will have a status of AUTHORISED.</value>
[JsonConverter(typeof(Client.CustomStringEnumConverter))]
public enum StatusEnum
{
/// <summary>
/// Enum AUTHORISED for value: AUTHORISED
/// </summary>
[EnumMember(Value = "AUTHORISED")]
AUTHORISED = 1,

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

}

/// <summary>
/// AUTHORISED or DELETED (read-only). New bank transfers will have a status of AUTHORISED.
/// </summary>
/// <value>AUTHORISED or DELETED (read-only). New bank transfers will have a status of AUTHORISED.</value>
[DataMember(Name="Status", EmitDefaultValue=false)]
public StatusEnum Status { get; set; }
/// <summary>
/// Initializes a new instance of the <see cref="BankTransfer" /> class.
/// </summary>
[JsonConstructorAttribute]
public BankTransfer()
{
FromTracking = new List<TrackingReference>();
ToTracking = new List<TrackingReference>();
ValidationErrors = new List<ValidationError>();
}

Expand Down Expand Up @@ -128,6 +157,20 @@ public BankTransfer()
[DataMember(Name="CreatedDateUTC", EmitDefaultValue=false)]
public DateTime? CreatedDateUTC { get; private set; }

/// <summary>
/// Optional Tracking Category for the source account – see Tracking. A bank transfer can have a maximum of 2 tracking categories per account.
/// </summary>
/// <value>Optional Tracking Category for the source account – see Tracking. A bank transfer can have a maximum of 2 tracking categories per account.</value>
[DataMember(Name="FromTracking", EmitDefaultValue=false)]
public List<TrackingReference> FromTracking { get; set; }

/// <summary>
/// Optional Tracking Category for the destination account – see Tracking. A bank transfer can have a maximum of 2 tracking categories per account.
/// </summary>
/// <value>Optional Tracking Category for the destination account – see Tracking. A bank transfer can have a maximum of 2 tracking categories per account.</value>
[DataMember(Name="ToTracking", EmitDefaultValue=false)]
public List<TrackingReference> ToTracking { get; set; }

/// <summary>
/// Displays array of validation error messages from the API
/// </summary>
Expand Down Expand Up @@ -156,6 +199,9 @@ public override string ToString()
sb.Append(" Reference: ").Append(Reference).Append("\n");
sb.Append(" HasAttachments: ").Append(HasAttachments).Append("\n");
sb.Append(" CreatedDateUTC: ").Append(CreatedDateUTC).Append("\n");
sb.Append(" Status: ").Append(Status).Append("\n");
sb.Append(" FromTracking: ").Append(FromTracking).Append("\n");
sb.Append(" ToTracking: ").Append(ToTracking).Append("\n");
sb.Append(" ValidationErrors: ").Append(ValidationErrors).Append("\n");
sb.Append("}\n");
return sb.ToString();
Expand Down Expand Up @@ -256,6 +302,22 @@ public bool Equals(BankTransfer input)
(this.CreatedDateUTC != null &&
this.CreatedDateUTC.Equals(input.CreatedDateUTC))
) &&
(
this.Status == input.Status ||
this.Status.Equals(input.Status)
) &&
(
this.FromTracking == input.FromTracking ||
this.FromTracking != null &&
input.FromTracking != null &&
this.FromTracking.SequenceEqual(input.FromTracking)
) &&
(
this.ToTracking == input.ToTracking ||
this.ToTracking != null &&
input.ToTracking != null &&
this.ToTracking.SequenceEqual(input.ToTracking)
) &&
(
this.ValidationErrors == input.ValidationErrors ||
this.ValidationErrors != null &&
Expand Down Expand Up @@ -299,6 +361,11 @@ public override int GetHashCode()
hashCode = hashCode * 59 + this.HasAttachments.GetHashCode();
if (this.CreatedDateUTC != null)
hashCode = hashCode * 59 + this.CreatedDateUTC.GetHashCode();
hashCode = hashCode * 59 + this.Status.GetHashCode();
if (this.FromTracking != null)
hashCode = hashCode * 59 + this.FromTracking.GetHashCode();
if (this.ToTracking != null)
hashCode = hashCode * 59 + this.ToTracking.GetHashCode();
if (this.ValidationErrors != null)
hashCode = hashCode * 59 + this.ValidationErrors.GetHashCode();
return hashCode;
Expand Down
139 changes: 139 additions & 0 deletions Xero.NetStandard.OAuth2/Model/Accounting/BankTransferDelete.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,139 @@
/*
* Xero Accounting API
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* 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.Accounting
{
/// <summary>
/// BankTransferDelete
/// </summary>
[DataContract]
public partial class BankTransferDelete : IEquatable<BankTransferDelete>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="BankTransferDelete" /> class.
/// </summary>
[JsonConstructorAttribute]
public BankTransferDelete()
{
}

/// <summary>
/// The Xero identifier for a bank transfer
/// </summary>
/// <value>The Xero identifier for a bank transfer</value>
[DataMember(Name="BankTransferID", EmitDefaultValue=false)]
public Guid? BankTransferID { get; set; }

/// <summary>
/// The status of the bank transfer.
/// </summary>
/// <value>The status of the bank transfer.</value>
[DataMember(Name="Status", EmitDefaultValue=false)]
public string Status { 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 BankTransferDelete {\n");
sb.Append(" BankTransferID: ").Append(BankTransferID).Append("\n");
sb.Append(" Status: ").Append(Status).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 BankTransferDelete);
}

/// <summary>
/// Returns true if BankTransferDelete instances are equal
/// </summary>
/// <param name="input">Instance of BankTransferDelete to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(BankTransferDelete input)
{
if (input == null)
return false;

return
(
this.BankTransferID == input.BankTransferID ||
(this.BankTransferID != null &&
this.BankTransferID.Equals(input.BankTransferID))
) &&
(
this.Status == input.Status ||
(this.Status != null &&
this.Status.Equals(input.Status))
);
}

/// <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.BankTransferID != null)
hashCode = hashCode * 59 + this.BankTransferID.GetHashCode();
if (this.Status != null)
hashCode = hashCode * 59 + this.Status.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