Skip to content

Commit

Permalink
Merge pull request #120 from regulaforensics/f49c8ae3
Browse files Browse the repository at this point in the history
update-clients
  • Loading branch information
KirylKovaliov authored Sep 23, 2024
2 parents ae12607 + 13a6cf6 commit ef3a880
Show file tree
Hide file tree
Showing 5 changed files with 167 additions and 48 deletions.
1 change: 1 addition & 0 deletions client/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ src/main/generated/com/regula/documentreader/webclient/model/InlineResponse200.j
src/main/generated/com/regula/documentreader/webclient/model/InlineResponse2001.java
src/main/generated/com/regula/documentreader/webclient/model/LexicalAnalysisResult.java
src/main/generated/com/regula/documentreader/webclient/model/LicenseResult.java
src/main/generated/com/regula/documentreader/webclient/model/ListTransactionsByTagResponse.java
src/main/generated/com/regula/documentreader/webclient/model/ListVerifiedFields.java
src/main/generated/com/regula/documentreader/webclient/model/LivenessParams.java
src/main/generated/com/regula/documentreader/webclient/model/MrzDetectModeEnum.java
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
import com.regula.documentreader.webclient.ApiResponse;
import com.regula.documentreader.webclient.Configuration;
import com.regula.documentreader.webclient.Pair;
import com.regula.documentreader.webclient.model.GetTransactionsByTagResponse;
import com.regula.documentreader.webclient.model.InlineResponse200;
import com.regula.documentreader.webclient.model.InlineResponse2001;
import com.regula.documentreader.webclient.model.ListTransactionsByTagResponse;
import com.regula.documentreader.webclient.model.TransactionProcessGetResponse;
import com.regula.documentreader.webclient.model.TransactionProcessRequest;
import java.io.File;
Expand Down Expand Up @@ -198,7 +198,7 @@ public okhttp3.Call apiV2TagTagIdDeleteAsync(Integer tagId, final ApiCallback<Ob
* <tr><td> 403 </td><td> Bad license. Either server or request does not contain valid license. </td><td> - </td></tr>
* </table>
*/
public okhttp3.Call apiV2TagTagIdTransactionsGetCall(Integer tagId, final ApiCallback _callback)
public okhttp3.Call apiV2TagTagIdTransactionsGetCall(String tagId, final ApiCallback _callback)
throws ApiException {
Object localVarPostBody = null;

Expand Down Expand Up @@ -240,7 +240,7 @@ public okhttp3.Call apiV2TagTagIdTransactionsGetCall(Integer tagId, final ApiCal

@SuppressWarnings("rawtypes")
private okhttp3.Call apiV2TagTagIdTransactionsGetValidateBeforeCall(
Integer tagId, final ApiCallback _callback) throws ApiException {
String tagId, final ApiCallback _callback) throws ApiException {

// verify the required parameter 'tagId' is set
if (tagId == null) {
Expand All @@ -256,7 +256,7 @@ private okhttp3.Call apiV2TagTagIdTransactionsGetValidateBeforeCall(
* Get transactions by tag
*
* @param tagId Tag id (required)
* @return List&lt;GetTransactionsByTagResponse&gt;
* @return ListTransactionsByTagResponse
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
* response body
* @http.response.details
Expand All @@ -267,9 +267,9 @@ private okhttp3.Call apiV2TagTagIdTransactionsGetValidateBeforeCall(
* <tr><td> 403 </td><td> Bad license. Either server or request does not contain valid license. </td><td> - </td></tr>
* </table>
*/
public List<GetTransactionsByTagResponse> apiV2TagTagIdTransactionsGet(Integer tagId)
public ListTransactionsByTagResponse apiV2TagTagIdTransactionsGet(String tagId)
throws ApiException {
ApiResponse<List<GetTransactionsByTagResponse>> localVarResp =
ApiResponse<ListTransactionsByTagResponse> localVarResp =
apiV2TagTagIdTransactionsGetWithHttpInfo(tagId);
return localVarResp.getData();
}
Expand All @@ -278,7 +278,7 @@ public List<GetTransactionsByTagResponse> apiV2TagTagIdTransactionsGet(Integer t
* Get transactions by tag
*
* @param tagId Tag id (required)
* @return ApiResponse&lt;List&lt;GetTransactionsByTagResponse&gt;&gt;
* @return ApiResponse&lt;ListTransactionsByTagResponse&gt;
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
* response body
* @http.response.details
Expand All @@ -289,10 +289,10 @@ public List<GetTransactionsByTagResponse> apiV2TagTagIdTransactionsGet(Integer t
* <tr><td> 403 </td><td> Bad license. Either server or request does not contain valid license. </td><td> - </td></tr>
* </table>
*/
public ApiResponse<List<GetTransactionsByTagResponse>> apiV2TagTagIdTransactionsGetWithHttpInfo(
Integer tagId) throws ApiException {
public ApiResponse<ListTransactionsByTagResponse> apiV2TagTagIdTransactionsGetWithHttpInfo(
String tagId) throws ApiException {
okhttp3.Call localVarCall = apiV2TagTagIdTransactionsGetValidateBeforeCall(tagId, null);
Type localVarReturnType = new TypeToken<List<GetTransactionsByTagResponse>>() {}.getType();
Type localVarReturnType = new TypeToken<ListTransactionsByTagResponse>() {}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}

Expand All @@ -312,11 +312,11 @@ public ApiResponse<List<GetTransactionsByTagResponse>> apiV2TagTagIdTransactions
* </table>
*/
public okhttp3.Call apiV2TagTagIdTransactionsGetAsync(
Integer tagId, final ApiCallback<List<GetTransactionsByTagResponse>> _callback)
String tagId, final ApiCallback<ListTransactionsByTagResponse> _callback)
throws ApiException {

okhttp3.Call localVarCall = apiV2TagTagIdTransactionsGetValidateBeforeCall(tagId, _callback);
Type localVarReturnType = new TypeToken<List<GetTransactionsByTagResponse>>() {}.getType();
Type localVarReturnType = new TypeToken<ListTransactionsByTagResponse>() {}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ public class AuthenticityCheckResultItem {
@SerializedName(SERIALIZED_NAME_ELEMENT_DIAGNOSE)
private Integer elementDiagnose;

public static final String SERIALIZED_NAME_PERCENT_VALUE = "PercentValue";

@SerializedName(SERIALIZED_NAME_PERCENT_VALUE)
private Integer percentValue;

public AuthenticityCheckResultItem withType(Integer type) {
this.type = type;
return this;
Expand Down Expand Up @@ -89,6 +94,25 @@ public void setElementDiagnose(Integer elementDiagnose) {
this.elementDiagnose = elementDiagnose;
}

public AuthenticityCheckResultItem withPercentValue(Integer percentValue) {
this.percentValue = percentValue;
return this;
}

/**
* Get percentValue
*
* @return percentValue
*/
@javax.annotation.Nullable
public Integer getPercentValue() {
return percentValue;
}

public void setPercentValue(Integer percentValue) {
this.percentValue = percentValue;
}

@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
Expand All @@ -100,12 +124,13 @@ public boolean equals(java.lang.Object o) {
AuthenticityCheckResultItem authenticityCheckResultItem = (AuthenticityCheckResultItem) o;
return Objects.equals(this.type, authenticityCheckResultItem.type)
&& Objects.equals(this.elementResult, authenticityCheckResultItem.elementResult)
&& Objects.equals(this.elementDiagnose, authenticityCheckResultItem.elementDiagnose);
&& Objects.equals(this.elementDiagnose, authenticityCheckResultItem.elementDiagnose)
&& Objects.equals(this.percentValue, authenticityCheckResultItem.percentValue);
}

@Override
public int hashCode() {
return Objects.hash(type, elementResult, elementDiagnose);
return Objects.hash(type, elementResult, elementDiagnose, percentValue);
}

@Override
Expand All @@ -115,6 +140,7 @@ public String toString() {
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append(" elementResult: ").append(toIndentedString(elementResult)).append("\n");
sb.append(" elementDiagnose: ").append(toIndentedString(elementDiagnose)).append("\n");
sb.append(" percentValue: ").append(toIndentedString(percentValue)).append("\n");
sb.append("}");
return sb.toString();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,6 @@ public class IdentResult extends AuthenticityCheckResultItem {
@SerializedName(SERIALIZED_NAME_ETALON_IMAGE)
private ImageData etalonImage;

public static final String SERIALIZED_NAME_PERCENT_VALUE = "PercentValue";

@SerializedName(SERIALIZED_NAME_PERCENT_VALUE)
private Integer percentValue;

public static final String SERIALIZED_NAME_AREA_LIST = "AreaList";

@SerializedName(SERIALIZED_NAME_AREA_LIST)
Expand Down Expand Up @@ -147,25 +142,6 @@ public void setEtalonImage(ImageData etalonImage) {
this.etalonImage = etalonImage;
}

public IdentResult withPercentValue(Integer percentValue) {
this.percentValue = percentValue;
return this;
}

/**
* Probability percent for IMAGE_PATTERN check or element&#39;s visibility for IR_VISIBILITY
*
* @return percentValue
*/
@javax.annotation.Nullable
public Integer getPercentValue() {
return percentValue;
}

public void setPercentValue(Integer percentValue) {
this.percentValue = percentValue;
}

public IdentResult withAreaList(AreaContainer areaList) {
this.areaList = areaList;
return this;
Expand Down Expand Up @@ -199,22 +175,14 @@ public boolean equals(java.lang.Object o) {
&& Objects.equals(this.area, identResult.area)
&& Objects.equals(this.image, identResult.image)
&& Objects.equals(this.etalonImage, identResult.etalonImage)
&& Objects.equals(this.percentValue, identResult.percentValue)
&& Objects.equals(this.areaList, identResult.areaList)
&& super.equals(o);
}

@Override
public int hashCode() {
return Objects.hash(
elementType,
lightIndex,
area,
image,
etalonImage,
percentValue,
areaList,
super.hashCode());
elementType, lightIndex, area, image, etalonImage, areaList, super.hashCode());
}

@Override
Expand All @@ -227,7 +195,6 @@ public String toString() {
sb.append(" area: ").append(toIndentedString(area)).append("\n");
sb.append(" image: ").append(toIndentedString(image)).append("\n");
sb.append(" etalonImage: ").append(toIndentedString(etalonImage)).append("\n");
sb.append(" percentValue: ").append(toIndentedString(percentValue)).append("\n");
sb.append(" areaList: ").append(toIndentedString(areaList)).append("\n");
sb.append("}");
return sb.toString();
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
/*
* 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
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/

package com.regula.documentreader.webclient.model;

import com.google.gson.annotations.SerializedName;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;

/** ListTransactionsByTagResponse */
public class ListTransactionsByTagResponse {
public static final String SERIALIZED_NAME_ITEMS = "items";

@SerializedName(SERIALIZED_NAME_ITEMS)
private List<GetTransactionsByTagResponse> items = null;

public static final String SERIALIZED_NAME_METADATA = "metadata";

@SerializedName(SERIALIZED_NAME_METADATA)
private Map<String, Object> metadata = null;

public ListTransactionsByTagResponse withItems(List<GetTransactionsByTagResponse> items) {
this.items = items;
return this;
}

public ListTransactionsByTagResponse addItemsItem(GetTransactionsByTagResponse itemsItem) {
if (this.items == null) {
this.items = new ArrayList<GetTransactionsByTagResponse>();
}
this.items.add(itemsItem);
return this;
}

/**
* Get items
*
* @return items
*/
@javax.annotation.Nullable
public List<GetTransactionsByTagResponse> getItems() {
return items;
}

public void setItems(List<GetTransactionsByTagResponse> items) {
this.items = items;
}

public ListTransactionsByTagResponse withMetadata(Map<String, Object> metadata) {
this.metadata = metadata;
return this;
}

public ListTransactionsByTagResponse putMetadataItem(String key, Object metadataItem) {
if (this.metadata == null) {
this.metadata = new HashMap<String, Object>();
}
this.metadata.put(key, metadataItem);
return this;
}

/**
* Get metadata
*
* @return metadata
*/
@javax.annotation.Nullable
public Map<String, Object> getMetadata() {
return metadata;
}

public void setMetadata(Map<String, Object> metadata) {
this.metadata = metadata;
}

@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ListTransactionsByTagResponse listTransactionsByTagResponse = (ListTransactionsByTagResponse) o;
return Objects.equals(this.items, listTransactionsByTagResponse.items)
&& Objects.equals(this.metadata, listTransactionsByTagResponse.metadata);
}

@Override
public int hashCode() {
return Objects.hash(items, metadata);
}

@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ListTransactionsByTagResponse {\n");
sb.append(" items: ").append(toIndentedString(items)).append("\n");
sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n");
sb.append("}");
return sb.toString();
}

/**
* Convert the given object to string with each line indented by 4 spaces (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}

0 comments on commit ef3a880

Please sign in to comment.