Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update #101

Merged
merged 1 commit into from
Feb 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion client/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ src/main/generated/com/regula/documentreader/webclient/model/ImagesField.java
src/main/generated/com/regula/documentreader/webclient/model/ImagesFieldValue.java
src/main/generated/com/regula/documentreader/webclient/model/ImagesResult.java
src/main/generated/com/regula/documentreader/webclient/model/InData.java
src/main/generated/com/regula/documentreader/webclient/model/InDataRfidSession.java
src/main/generated/com/regula/documentreader/webclient/model/InDataVideo.java
src/main/generated/com/regula/documentreader/webclient/model/InlineResponse200.java
src/main/generated/com/regula/documentreader/webclient/model/InlineResponse2001.java
Expand Down Expand Up @@ -107,6 +106,7 @@ src/main/generated/com/regula/documentreader/webclient/model/TextField.java
src/main/generated/com/regula/documentreader/webclient/model/TextFieldValue.java
src/main/generated/com/regula/documentreader/webclient/model/TextResult.java
src/main/generated/com/regula/documentreader/webclient/model/TransactionImage.java
src/main/generated/com/regula/documentreader/webclient/model/TransactionImagesFieldValue.java
src/main/generated/com/regula/documentreader/webclient/model/TransactionInfo.java
src/main/generated/com/regula/documentreader/webclient/model/TransactionProcessGetResponse.java
src/main/generated/com/regula/documentreader/webclient/model/TransactionProcessRequest.java
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,6 @@ public okhttp3.Call apiV2TransactionTransactionIdGetAsync(
* Build call for apiV2TransactionTransactionIdProcessPost
*
* @param transactionId Transaction id (required)
* @param X_CLIENT_KEY (required)
* @param transactionProcessRequest (required)
* @param _callback Callback for upload/download progress
* @return Call to execute
Expand All @@ -341,7 +340,6 @@ public okhttp3.Call apiV2TransactionTransactionIdGetAsync(
*/
public okhttp3.Call apiV2TransactionTransactionIdProcessPostCall(
Integer transactionId,
String X_CLIENT_KEY,
TransactionProcessRequest transactionProcessRequest,
final ApiCallback _callback)
throws ApiException {
Expand All @@ -357,10 +355,6 @@ public okhttp3.Call apiV2TransactionTransactionIdProcessPostCall(
List<Pair> localVarQueryParams = new ArrayList<Pair>();
List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
if (X_CLIENT_KEY != null) {
localVarHeaderParams.put("X-CLIENT-KEY", localVarApiClient.parameterToString(X_CLIENT_KEY));
}

Map<String, String> localVarCookieParams = new HashMap<String, String>();
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
final String[] localVarAccepts = {"application/json"};
Expand Down Expand Up @@ -391,7 +385,6 @@ public okhttp3.Call apiV2TransactionTransactionIdProcessPostCall(
@SuppressWarnings("rawtypes")
private okhttp3.Call apiV2TransactionTransactionIdProcessPostValidateBeforeCall(
Integer transactionId,
String X_CLIENT_KEY,
TransactionProcessRequest transactionProcessRequest,
final ApiCallback _callback)
throws ApiException {
Expand All @@ -402,12 +395,6 @@ private okhttp3.Call apiV2TransactionTransactionIdProcessPostValidateBeforeCall(
"Missing the required parameter 'transactionId' when calling apiV2TransactionTransactionIdProcessPost(Async)");
}

// verify the required parameter 'X_CLIENT_KEY' is set
if (X_CLIENT_KEY == null) {
throw new ApiException(
"Missing the required parameter 'X_CLIENT_KEY' when calling apiV2TransactionTransactionIdProcessPost(Async)");
}

// verify the required parameter 'transactionProcessRequest' is set
if (transactionProcessRequest == null) {
throw new ApiException(
Expand All @@ -416,15 +403,14 @@ private okhttp3.Call apiV2TransactionTransactionIdProcessPostValidateBeforeCall(

okhttp3.Call localVarCall =
apiV2TransactionTransactionIdProcessPostCall(
transactionId, X_CLIENT_KEY, transactionProcessRequest, _callback);
transactionId, transactionProcessRequest, _callback);
return localVarCall;
}

/**
* Preprocess
*
* @param transactionId Transaction id (required)
* @param X_CLIENT_KEY (required)
* @param transactionProcessRequest (required)
* @return InlineResponse200
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
Expand All @@ -438,21 +424,18 @@ private okhttp3.Call apiV2TransactionTransactionIdProcessPostValidateBeforeCall(
* </table>
*/
public InlineResponse200 apiV2TransactionTransactionIdProcessPost(
Integer transactionId,
String X_CLIENT_KEY,
TransactionProcessRequest transactionProcessRequest)
Integer transactionId, TransactionProcessRequest transactionProcessRequest)
throws ApiException {
ApiResponse<InlineResponse200> localVarResp =
apiV2TransactionTransactionIdProcessPostWithHttpInfo(
transactionId, X_CLIENT_KEY, transactionProcessRequest);
transactionId, transactionProcessRequest);
return localVarResp.getData();
}

/**
* Preprocess
*
* @param transactionId Transaction id (required)
* @param X_CLIENT_KEY (required)
* @param transactionProcessRequest (required)
* @return ApiResponse&lt;InlineResponse200&gt;
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
Expand All @@ -466,13 +449,11 @@ public InlineResponse200 apiV2TransactionTransactionIdProcessPost(
* </table>
*/
public ApiResponse<InlineResponse200> apiV2TransactionTransactionIdProcessPostWithHttpInfo(
Integer transactionId,
String X_CLIENT_KEY,
TransactionProcessRequest transactionProcessRequest)
Integer transactionId, TransactionProcessRequest transactionProcessRequest)
throws ApiException {
okhttp3.Call localVarCall =
apiV2TransactionTransactionIdProcessPostValidateBeforeCall(
transactionId, X_CLIENT_KEY, transactionProcessRequest, null);
transactionId, transactionProcessRequest, null);
Type localVarReturnType = new TypeToken<InlineResponse200>() {}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
Expand All @@ -481,7 +462,6 @@ public ApiResponse<InlineResponse200> apiV2TransactionTransactionIdProcessPostWi
* Preprocess (asynchronously)
*
* @param transactionId Transaction id (required)
* @param X_CLIENT_KEY (required)
* @param transactionProcessRequest (required)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
Expand All @@ -496,14 +476,13 @@ public ApiResponse<InlineResponse200> apiV2TransactionTransactionIdProcessPostWi
*/
public okhttp3.Call apiV2TransactionTransactionIdProcessPostAsync(
Integer transactionId,
String X_CLIENT_KEY,
TransactionProcessRequest transactionProcessRequest,
final ApiCallback<InlineResponse200> _callback)
throws ApiException {

okhttp3.Call localVarCall =
apiV2TransactionTransactionIdProcessPostValidateBeforeCall(
transactionId, X_CLIENT_KEY, transactionProcessRequest, _callback);
transactionId, transactionProcessRequest, _callback);
Type localVarReturnType = new TypeToken<InlineResponse200>() {}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,6 @@ public class ImageQualityCheckType {
/** Signals if the portrait is present */
public static final int Portrait = 7;

public static final int Brightness = 8;
/** Signals if the document image is bright enough */
public static final int Brightness = 9;
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@

/** InData */
public class InData {
public static final String SERIALIZED_NAME_RFID_SESSION = "rfidSession";

@SerializedName(SERIALIZED_NAME_RFID_SESSION)
private InDataRfidSession rfidSession;

public static final String SERIALIZED_NAME_VIDEO = "video";

@SerializedName(SERIALIZED_NAME_VIDEO)
Expand All @@ -32,26 +27,7 @@ public class InData {
public static final String SERIALIZED_NAME_IMAGES = "images";

@SerializedName(SERIALIZED_NAME_IMAGES)
private List<ImageTransactionData> images = null;

public InData withRfidSession(InDataRfidSession rfidSession) {
this.rfidSession = rfidSession;
return this;
}

/**
* Get rfidSession
*
* @return rfidSession
*/
@javax.annotation.Nullable
public InDataRfidSession getRfidSession() {
return rfidSession;
}

public void setRfidSession(InDataRfidSession rfidSession) {
this.rfidSession = rfidSession;
}
private List<TransactionImagesFieldValue> images = null;

public InData withVideo(InDataVideo video) {
this.video = video;
Expand All @@ -72,14 +48,14 @@ public void setVideo(InDataVideo video) {
this.video = video;
}

public InData withImages(List<ImageTransactionData> images) {
public InData withImages(List<TransactionImagesFieldValue> images) {
this.images = images;
return this;
}

public InData addImagesItem(ImageTransactionData imagesItem) {
public InData addImagesItem(TransactionImagesFieldValue imagesItem) {
if (this.images == null) {
this.images = new ArrayList<ImageTransactionData>();
this.images = new ArrayList<TransactionImagesFieldValue>();
}
this.images.add(imagesItem);
return this;
Expand All @@ -91,11 +67,11 @@ public InData addImagesItem(ImageTransactionData imagesItem) {
* @return images
*/
@javax.annotation.Nullable
public List<ImageTransactionData> getImages() {
public List<TransactionImagesFieldValue> getImages() {
return images;
}

public void setImages(List<ImageTransactionData> images) {
public void setImages(List<TransactionImagesFieldValue> images) {
this.images = images;
}

Expand All @@ -108,21 +84,18 @@ public boolean equals(java.lang.Object o) {
return false;
}
InData inData = (InData) o;
return Objects.equals(this.rfidSession, inData.rfidSession)
&& Objects.equals(this.video, inData.video)
&& Objects.equals(this.images, inData.images);
return Objects.equals(this.video, inData.video) && Objects.equals(this.images, inData.images);
}

@Override
public int hashCode() {
return Objects.hash(rfidSession, video, images);
return Objects.hash(video, images);
}

@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class InData {\n");
sb.append(" rfidSession: ").append(toIndentedString(rfidSession)).append("\n");
sb.append(" video: ").append(toIndentedString(video)).append("\n");
sb.append(" images: ").append(toIndentedString(images)).append("\n");
sb.append("}");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
package com.regula.documentreader.webclient.model;

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

/** OutData */
Expand All @@ -22,13 +24,18 @@ public class OutData {
@SerializedName(SERIALIZED_NAME_URL)
private String url;

public static final String SERIALIZED_NAME_IMAGES = "images";

@SerializedName(SERIALIZED_NAME_IMAGES)
private List<TransactionImagesFieldValue> images = null;

public OutData withUrl(String url) {
this.url = url;
return this;
}

/**
* Image url
* Response url
*
* @return url
*/
Expand All @@ -41,6 +48,33 @@ public void setUrl(String url) {
this.url = url;
}

public OutData withImages(List<TransactionImagesFieldValue> images) {
this.images = images;
return this;
}

public OutData addImagesItem(TransactionImagesFieldValue imagesItem) {
if (this.images == null) {
this.images = new ArrayList<TransactionImagesFieldValue>();
}
this.images.add(imagesItem);
return this;
}

/**
* Get images
*
* @return images
*/
@javax.annotation.Nullable
public List<TransactionImagesFieldValue> getImages() {
return images;
}

public void setImages(List<TransactionImagesFieldValue> images) {
this.images = images;
}

@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
Expand All @@ -50,19 +84,20 @@ public boolean equals(java.lang.Object o) {
return false;
}
OutData outData = (OutData) o;
return Objects.equals(this.url, outData.url);
return Objects.equals(this.url, outData.url) && Objects.equals(this.images, outData.images);
}

@Override
public int hashCode() {
return Objects.hash(url);
return Objects.hash(url, images);
}

@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class OutData {\n");
sb.append(" url: ").append(toIndentedString(url)).append("\n");
sb.append(" images: ").append(toIndentedString(images)).append("\n");
sb.append("}");
return sb.toString();
}
Expand Down
Loading
Loading