Skip to content

Commit

Permalink
Merge pull request #329 from XeroAPI/fix-add-validationerror-array-to…
Browse files Browse the repository at this point in the history
…-batchpayments

Fix add validationerror array to batchpayments
  • Loading branch information
AlbertGromek authored Mar 9, 2021
2 parents 4fa4e03 + 9d612a5 commit fb0ad2c
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Xero.NetStandard.OAuth2/Client/Configuration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public class Configuration : IReadableConfiguration
/// Version of the package.
/// </summary>
/// <value>Version of the package.</value>
public const string Version = "3.14.3";
public const string Version = "3.14.4";

/// <summary>
/// Identifier for ISO 8601 DateTime Format
Expand Down Expand Up @@ -99,7 +99,7 @@ public class Configuration : IReadableConfiguration
[System.Diagnostics.CodeAnalysis.SuppressMessage("ReSharper", "VirtualMemberCallInConstructor")]
public Configuration()
{
UserAgent = "xero-netstandard-3.14.3";
UserAgent = "xero-netstandard-3.14.4";
BasePath = "https://api.xero.com/api.xro/2.0";
DefaultHeader = new ConcurrentDictionary<string, string>();
ApiKey = new ConcurrentDictionary<string, string>();
Expand Down Expand Up @@ -332,7 +332,7 @@ 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: 2.9.4\n";
report += " SDK Package Version: 3.14.3\n";
report += " SDK Package Version: 3.14.4\n";

return report;
}
Expand Down
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
2 changes: 1 addition & 1 deletion Xero.NetStandard.OAuth2/Xero.NetStandard.OAuth2.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<GenerateBindingRedirectsOutputType>true</GenerateBindingRedirectsOutputType>
<RootNamespace>Xero.NetStandard.OAuth2</RootNamespace>
<Version>3.14.3</Version>
<Version>3.14.4</Version>
<DocumentationFile>bin\$(Configuration)\$(TargetFramework)\Xero.NetStandard.OAuth2.xml</DocumentationFile>
<PackageLicenseUrl>https://github.com/XeroAPI/Xero-NetStandard/</PackageLicenseUrl>
<PackageIconUrl>https://en.gravatar.com/userimage/180557955/74b3a957d886bc921b0d1455beed9dab.png</PackageIconUrl>
Expand Down

0 comments on commit fb0ad2c

Please sign in to comment.