Skip to content

Commit

Permalink
Add validation errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jerbob92 committed May 12, 2020
1 parent ae5afe8 commit 9978b53
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions KlippaOCRAPI/Responses.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ public partial class APIResponse
[JsonProperty("message")]
public string Message { get; set; }

[JsonProperty("errors")]
public APIValidationError[] ValidationErrors { get; set; }

[JsonProperty("data")]
public Data Data { get; set; }

Expand All @@ -20,6 +23,18 @@ public partial class APIResponse
public string Result { get; set; }
}

public partial class APIValidationError
{
[JsonProperty("fieldNames")]
public string[] FieldNames { get; set; }

[JsonProperty("classification")]
public string Classification { get; set; }

[JsonProperty("message")]
public string Message { get; set; }
}

public partial class Data
{
[JsonProperty("amount")]
Expand Down

0 comments on commit 9978b53

Please sign in to comment.