-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update smoke test run * update-clients * Fix ci * SP-17901: Update RestSharp package * update-clients * Add PercentValue --------- Co-authored-by: = <=> Co-authored-by: Kiryl Kovaliov <[email protected]> Co-authored-by: GitHub Action <[email protected]>
- Loading branch information
1 parent
f7aa4c2
commit b5c788b
Showing
13 changed files
with
358 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,9 @@ name: run smoke test | |
on: | ||
pull_request: | ||
branches: | ||
- develop | ||
- master | ||
- stable | ||
|
||
jobs: | ||
run_smoke_test: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
159 changes: 159 additions & 0 deletions
159
src/Regula.DocumentReader.WebClient/Model/GetTransactionsByTagResponse.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,159 @@ | ||
/* | ||
* Regula Document Reader Web API | ||
* | ||
* Documents recognition as easy as reading two bytes. # Clients: * [JavaScript](https://github.com/regulaforensics/DocumentReader-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/DocumentReader-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/DocumentReader-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/DocumentReader-web-csharp-client) client for .NET & .NET Core | ||
* | ||
* The version of the OpenAPI document: 7.2.0 | ||
* | ||
* 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 = Regula.DocumentReader.WebClient.Client.OpenAPIDateConverter; | ||
|
||
namespace Regula.DocumentReader.WebClient.Model | ||
{ | ||
/// <summary> | ||
/// GetTransactionsByTagResponse | ||
/// </summary> | ||
[DataContract] | ||
public partial class GetTransactionsByTagResponse : IEquatable<GetTransactionsByTagResponse>, IValidatableObject | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the <see cref="GetTransactionsByTagResponse" /> class. | ||
/// </summary> | ||
/// <param name="id">Transaction id.</param> | ||
/// <param name="state">Transaction status.</param> | ||
/// <param name="updatedAt">Last time updated.</param> | ||
public GetTransactionsByTagResponse(int id = default(int), int state = default(int), DateTime updatedAt = default(DateTime)) | ||
{ | ||
this.Id = id; | ||
this.State = state; | ||
this.UpdatedAt = updatedAt; | ||
} | ||
|
||
/// <summary> | ||
/// Transaction id | ||
/// </summary> | ||
/// <value>Transaction id</value> | ||
[DataMember(Name="id", EmitDefaultValue=false)] | ||
public int Id { get; set; } | ||
|
||
/// <summary> | ||
/// Transaction status | ||
/// </summary> | ||
/// <value>Transaction status</value> | ||
[DataMember(Name="state", EmitDefaultValue=false)] | ||
public int State { get; set; } | ||
|
||
/// <summary> | ||
/// Last time updated | ||
/// </summary> | ||
/// <value>Last time updated</value> | ||
[DataMember(Name="updatedAt", EmitDefaultValue=false)] | ||
public DateTime UpdatedAt { 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 GetTransactionsByTagResponse {\n"); | ||
sb.Append(" Id: ").Append(Id).Append("\n"); | ||
sb.Append(" State: ").Append(State).Append("\n"); | ||
sb.Append(" UpdatedAt: ").Append(UpdatedAt).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 Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.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 GetTransactionsByTagResponse); | ||
} | ||
|
||
/// <summary> | ||
/// Returns true if GetTransactionsByTagResponse instances are equal | ||
/// </summary> | ||
/// <param name="input">Instance of GetTransactionsByTagResponse to be compared</param> | ||
/// <returns>Boolean</returns> | ||
public bool Equals(GetTransactionsByTagResponse input) | ||
{ | ||
if (input == null) | ||
return false; | ||
|
||
return | ||
( | ||
this.Id == input.Id || | ||
(this.Id != null && | ||
this.Id.Equals(input.Id)) | ||
) && | ||
( | ||
this.State == input.State || | ||
(this.State != null && | ||
this.State.Equals(input.State)) | ||
) && | ||
( | ||
this.UpdatedAt == input.UpdatedAt || | ||
(this.UpdatedAt != null && | ||
this.UpdatedAt.Equals(input.UpdatedAt)) | ||
); | ||
} | ||
|
||
/// <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.Id != null) | ||
hashCode = hashCode * 59 + this.Id.GetHashCode(); | ||
if (this.State != null) | ||
hashCode = hashCode * 59 + this.State.GetHashCode(); | ||
if (this.UpdatedAt != null) | ||
hashCode = hashCode * 59 + this.UpdatedAt.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; | ||
} | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.