Skip to content
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
Empty file modified .github/workflows/maven-publish.yml
100644 → 100755
Empty file.
23 changes: 23 additions & 0 deletions .github/workflows/run-smoke-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: run smoke test

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
run_smoke_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: 11
java-package: jdk
- run: ./gradlew clean :example:run
env:
API_BASE_PATH: "http://test-api.regulaforensics.com"
TEST_LICENSE: ${{secrets.TEST_LICENSE}}
1 change: 1 addition & 0 deletions client/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ src/main/generated/com/regula/documentreader/webclient/model/ProcessParams.java
src/main/generated/com/regula/documentreader/webclient/model/ProcessRequest.java
src/main/generated/com/regula/documentreader/webclient/model/ProcessRequestImage.java
src/main/generated/com/regula/documentreader/webclient/model/ProcessResponse.java
src/main/generated/com/regula/documentreader/webclient/model/ProcessSystemInfo.java
src/main/generated/com/regula/documentreader/webclient/model/RawImageResult.java
src/main/generated/com/regula/documentreader/webclient/model/RectangleCoordinates.java
src/main/generated/com/regula/documentreader/webclient/model/ResultItem.java
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ public class ProcessRequest {
@SerializedName(SERIALIZED_NAME_LIST)
private List<ProcessRequestImage> list = new ArrayList<ProcessRequestImage>();

public static final String SERIALIZED_NAME_SYSTEM_INFO = "systemInfo";

@SerializedName(SERIALIZED_NAME_SYSTEM_INFO)
private ProcessSystemInfo systemInfo;

public ProcessRequest withProcessParam(ProcessParams processParam) {
this.processParam = processParam;
return this;
Expand Down Expand Up @@ -70,6 +75,25 @@ public void setList(List<ProcessRequestImage> list) {
this.list = list;
}

public ProcessRequest withSystemInfo(ProcessSystemInfo systemInfo) {
this.systemInfo = systemInfo;
return this;
}

/**
* Get systemInfo
*
* @return systemInfo
*/
@javax.annotation.Nullable
public ProcessSystemInfo getSystemInfo() {
return systemInfo;
}

public void setSystemInfo(ProcessSystemInfo systemInfo) {
this.systemInfo = systemInfo;
}

@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
Expand All @@ -80,12 +104,13 @@ public boolean equals(java.lang.Object o) {
}
ProcessRequest processRequest = (ProcessRequest) o;
return Objects.equals(this.processParam, processRequest.processParam)
&& Objects.equals(this.list, processRequest.list);
&& Objects.equals(this.list, processRequest.list)
&& Objects.equals(this.systemInfo, processRequest.systemInfo);
}

@Override
public int hashCode() {
return Objects.hash(processParam, list);
return Objects.hash(processParam, list, systemInfo);
}

@Override
Expand All @@ -94,6 +119,7 @@ public String toString() {
sb.append("class ProcessRequest {\n");
sb.append(" processParam: ").append(toIndentedString(processParam)).append("\n");
sb.append(" list: ").append(toIndentedString(list)).append("\n");
sb.append(" systemInfo: ").append(toIndentedString(systemInfo)).append("\n");
sb.append("}");
return sb.toString();
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
/*
* Regula Document Reader Web API
* Regula Document Reader Web API
*
* The version of the OpenAPI document: 5.1.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.Objects;

/** ProcessSystemInfo */
public class ProcessSystemInfo {
public static final String SERIALIZED_NAME_LICENSE = "license";

@SerializedName(SERIALIZED_NAME_LICENSE)
private String license;

public ProcessSystemInfo withLicense(String license) {
this.license = license;
return this;
}

/**
* Document reader license.
*
* @return license
*/
@javax.annotation.Nullable
public String getLicense() {
return license;
}

public void setLicense(String license) {
this.license = license;
}

@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ProcessSystemInfo processSystemInfo = (ProcessSystemInfo) o;
return Objects.equals(this.license, processSystemInfo.license);
}

@Override
public int hashCode() {
return Objects.hash(license);
}

@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ProcessSystemInfo {\n");
sb.append(" license: ").append(toIndentedString(license)).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 ");
}
}
Loading