Skip to content

Commit

Permalink
moved validationerrors from batchpayments to batchpayment
Browse files Browse the repository at this point in the history
  • Loading branch information
jenksguo committed Mar 9, 2021
1 parent c7b6a51 commit 9d612a5
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
16 changes: 16 additions & 0 deletions Xero.NetStandard.OAuth2/Model/Accounting/BatchPayment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,13 @@ public enum StatusEnum
[DataMember(Name="IsReconciled", EmitDefaultValue=false)]
public string IsReconciled { get; private set; }

/// <summary>
/// Displays array of validation error messages from the API
/// </summary>
/// <value>Displays array of validation error messages from the API</value>
[DataMember(Name="ValidationErrors", EmitDefaultValue=false)]
public List<ValidationError> ValidationErrors { get; set; }

/// <summary>
/// Returns the string presentation of the object
/// </summary>
Expand All @@ -206,6 +213,7 @@ public override string ToString()
sb.Append(" TotalAmount: ").Append(TotalAmount).Append("\n");
sb.Append(" UpdatedDateUTC: ").Append(UpdatedDateUTC).Append("\n");
sb.Append(" IsReconciled: ").Append(IsReconciled).Append("\n");
sb.Append(" ValidationErrors: ").Append(ValidationErrors).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
Expand Down Expand Up @@ -318,6 +326,12 @@ public bool Equals(BatchPayment input)
this.IsReconciled == input.IsReconciled ||
(this.IsReconciled != null &&
this.IsReconciled.Equals(input.IsReconciled))
) &&
(
this.ValidationErrors == input.ValidationErrors ||
this.ValidationErrors != null &&
input.ValidationErrors != null &&
this.ValidationErrors.SequenceEqual(input.ValidationErrors)
);
}

Expand Down Expand Up @@ -360,6 +374,8 @@ public override int GetHashCode()
hashCode = hashCode * 59 + this.UpdatedDateUTC.GetHashCode();
if (this.IsReconciled != null)
hashCode = hashCode * 59 + this.IsReconciled.GetHashCode();
if (this.ValidationErrors != null)
hashCode = hashCode * 59 + this.ValidationErrors.GetHashCode();
return hashCode;
}
}
Expand Down
16 changes: 0 additions & 16 deletions Xero.NetStandard.OAuth2/Model/Accounting/BatchPayments.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,6 @@ public partial class BatchPayments : IEquatable<BatchPayments>, IValidatableObj
[DataMember(Name="BatchPayments", EmitDefaultValue=false)]
public List<BatchPayment> _BatchPayments { get; set; }

/// <summary>
/// Displays array of validation error messages from the API
/// </summary>
/// <value>Displays array of validation error messages from the API</value>
[DataMember(Name="ValidationErrors", EmitDefaultValue=false)]
public List<ValidationError> ValidationErrors { get; set; }

/// <summary>
/// Returns the string presentation of the object
/// </summary>
Expand All @@ -53,7 +46,6 @@ public override string ToString()
var sb = new StringBuilder();
sb.Append("class BatchPayments {\n");
sb.Append(" _BatchPayments: ").Append(_BatchPayments).Append("\n");
sb.Append(" ValidationErrors: ").Append(ValidationErrors).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
Expand Down Expand Up @@ -93,12 +85,6 @@ public bool Equals(BatchPayments input)
this._BatchPayments != null &&
input._BatchPayments != null &&
this._BatchPayments.SequenceEqual(input._BatchPayments)
) &&
(
this.ValidationErrors == input.ValidationErrors ||
this.ValidationErrors != null &&
input.ValidationErrors != null &&
this.ValidationErrors.SequenceEqual(input.ValidationErrors)
);
}

Expand All @@ -113,8 +99,6 @@ public override int GetHashCode()
int hashCode = 41;
if (this._BatchPayments != null)
hashCode = hashCode * 59 + this._BatchPayments.GetHashCode();
if (this.ValidationErrors != null)
hashCode = hashCode * 59 + this.ValidationErrors.GetHashCode();
return hashCode;
}
}
Expand Down

0 comments on commit 9d612a5

Please sign in to comment.