diff --git a/.github/workflows/sast.yaml b/.github/workflows/sast.yaml index 8a0b154..e60ac6f 100644 --- a/.github/workflows/sast.yaml +++ b/.github/workflows/sast.yaml @@ -17,7 +17,7 @@ env: # List of paths (space separated) to ignore # Supports PATTERNS # EXCLUDE_PATHS: 'foo bar/baz file.txt dir/*.yml' - EXCLUDE_PATHS: 'client/generator-templates src/main/generated' + EXCLUDE_PATHS: 'client/generator-templates client/src/main/generated' # List of rules (space separated) to ignore # EXCLUDE_RULES: 'generic.secrets.security.detected-aws-account-id.detected-aws-account-id' # See https://github.com/semgrep/semgrep-rules for rules registry diff --git a/client/.openapi-generator/FILES b/client/.openapi-generator/FILES index 11fed2d..4b96756 100755 --- a/client/.openapi-generator/FILES +++ b/client/.openapi-generator/FILES @@ -144,6 +144,7 @@ src/main/generated/com/regula/documentreader/webclient/model/OutData.java src/main/generated/com/regula/documentreader/webclient/model/OutDataTransactionImagesFieldValue.java src/main/generated/com/regula/documentreader/webclient/model/PArrayField.java src/main/generated/com/regula/documentreader/webclient/model/ParsedData.java +src/main/generated/com/regula/documentreader/webclient/model/ParsingErrorCodes.java src/main/generated/com/regula/documentreader/webclient/model/ParsingNotificationCodes.java src/main/generated/com/regula/documentreader/webclient/model/PerDocumentConfig.java src/main/generated/com/regula/documentreader/webclient/model/PhotoIdentItem.java diff --git a/client/generator-templates/pojo.mustache b/client/generator-templates/pojo.mustache index fbfed6f..48f341c 100644 --- a/client/generator-templates/pojo.mustache +++ b/client/generator-templates/pojo.mustache @@ -337,16 +337,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens } } {{^hasChildren}} - {{^isAdditionalPropertiesTrue}} - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!{{classname}}.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `{{classname}}` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - {{/isAdditionalPropertiesTrue}} {{#requiredVars}} {{#-first}} diff --git a/client/src/main/generated/com/regula/documentreader/webclient/JSON.java b/client/src/main/generated/com/regula/documentreader/webclient/JSON.java index d190f7f..9b6e7ea 100755 --- a/client/src/main/generated/com/regula/documentreader/webclient/JSON.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/JSON.java @@ -78,22 +78,13 @@ public static GsonBuilder createGson() { "131072", com.regula.documentreader.webclient.model.IdentResult.class); classByDiscriminatorValue.put( "16", com.regula.documentreader.webclient.model.FiberResult.class); - classByDiscriminatorValue.put( - "16384", com.regula.documentreader.webclient.model.FiberResult.class); classByDiscriminatorValue.put( "16777216", com.regula.documentreader.webclient.model.OCRSecurityTextResult.class); classByDiscriminatorValue.put( "2", com.regula.documentreader.webclient.model.SecurityFeatureResult.class); - classByDiscriminatorValue.put( - "2048", com.regula.documentreader.webclient.model.IdentResult.class); classByDiscriminatorValue.put( "2097152", com.regula.documentreader.webclient.model.IdentResult.class); - classByDiscriminatorValue.put( - "2147483648", - com.regula.documentreader.webclient.model.SecurityFeatureResult.class); - classByDiscriminatorValue.put( - "256", com.regula.documentreader.webclient.model.PhotoIdentResult.class); classByDiscriminatorValue.put( "262144", com.regula.documentreader.webclient.model.IdentResult.class); classByDiscriminatorValue.put( @@ -158,22 +149,13 @@ public static GsonBuilder createGson() { "131072", com.regula.documentreader.webclient.model.IdentResult.class); classByDiscriminatorValue.put( "16", com.regula.documentreader.webclient.model.FiberResult.class); - classByDiscriminatorValue.put( - "16384", com.regula.documentreader.webclient.model.FiberResult.class); classByDiscriminatorValue.put( "16777216", com.regula.documentreader.webclient.model.OCRSecurityTextResult.class); classByDiscriminatorValue.put( "2", com.regula.documentreader.webclient.model.SecurityFeatureResult.class); - classByDiscriminatorValue.put( - "2048", com.regula.documentreader.webclient.model.IdentResult.class); classByDiscriminatorValue.put( "2097152", com.regula.documentreader.webclient.model.IdentResult.class); - classByDiscriminatorValue.put( - "2147483648", - com.regula.documentreader.webclient.model.SecurityFeatureResult.class); - classByDiscriminatorValue.put( - "256", com.regula.documentreader.webclient.model.PhotoIdentResult.class); classByDiscriminatorValue.put( "262144", com.regula.documentreader.webclient.model.IdentResult.class); classByDiscriminatorValue.put( diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/AreaArray.java b/client/src/main/generated/com/regula/documentreader/webclient/model/AreaArray.java index 5c8f1bd..53a1da8 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/AreaArray.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/AreaArray.java @@ -28,9 +28,7 @@ import java.util.ArrayList; import java.util.HashSet; import java.util.List; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** AreaArray */ @javax.annotation.Generated( @@ -204,17 +202,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AreaArray.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `AreaArray` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : AreaArray.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/AreaContainer.java b/client/src/main/generated/com/regula/documentreader/webclient/model/AreaContainer.java index 124287a..a2099a7 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/AreaContainer.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/AreaContainer.java @@ -27,9 +27,7 @@ import java.util.ArrayList; import java.util.HashSet; import java.util.List; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** Checked fragment coordinates */ @javax.annotation.Generated( @@ -203,17 +201,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AreaContainer.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `AreaContainer` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : AreaContainer.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/AuthParams.java b/client/src/main/generated/com/regula/documentreader/webclient/model/AuthParams.java index de28a4c..e6e0e20 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/AuthParams.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/AuthParams.java @@ -24,9 +24,7 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** AuthParams */ @javax.annotation.Generated( @@ -569,16 +567,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AuthParams.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `AuthParams` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the optional field `livenessParams` if (jsonObj.get("livenessParams") != null && !jsonObj.get("livenessParams").isJsonNull()) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/AuthenticityCheckList.java b/client/src/main/generated/com/regula/documentreader/webclient/model/AuthenticityCheckList.java index 18582ff..f1c50d5 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/AuthenticityCheckList.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/AuthenticityCheckList.java @@ -27,9 +27,7 @@ import java.util.ArrayList; import java.util.HashSet; import java.util.List; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** AuthenticityCheckList */ @javax.annotation.Generated( @@ -166,17 +164,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AuthenticityCheckList.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `AuthenticityCheckList` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : AuthenticityCheckList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/AuthenticityCheckListItem.java b/client/src/main/generated/com/regula/documentreader/webclient/model/AuthenticityCheckListItem.java index 34748c2..a6f205c 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/AuthenticityCheckListItem.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/AuthenticityCheckListItem.java @@ -24,9 +24,7 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** AuthenticityCheckListItem */ @javax.annotation.Generated( @@ -131,17 +129,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AuthenticityCheckListItem.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `AuthenticityCheckListItem` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : AuthenticityCheckListItem.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/AuthenticityCheckResult.java b/client/src/main/generated/com/regula/documentreader/webclient/model/AuthenticityCheckResult.java index 8f4c6fb..707fab7 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/AuthenticityCheckResult.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/AuthenticityCheckResult.java @@ -27,9 +27,7 @@ import java.util.ArrayList; import java.util.HashSet; import java.util.List; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** AuthenticityCheckResult */ @javax.annotation.Generated( @@ -224,17 +222,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AuthenticityCheckResult.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `AuthenticityCheckResult` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : AuthenticityCheckResult.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/AuthenticityCheckResultItem.java b/client/src/main/generated/com/regula/documentreader/webclient/model/AuthenticityCheckResultItem.java index c750c23..583b6c1 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/AuthenticityCheckResultItem.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/AuthenticityCheckResultItem.java @@ -223,27 +223,15 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti case "16": FiberResult.validateJsonElement(jsonElement); break; - case "16384": - FiberResult.validateJsonElement(jsonElement); - break; case "16777216": OCRSecurityTextResult.validateJsonElement(jsonElement); break; case "2": SecurityFeatureResult.validateJsonElement(jsonElement); break; - case "2048": - IdentResult.validateJsonElement(jsonElement); - break; case "2097152": IdentResult.validateJsonElement(jsonElement); break; - case "2147483648": - SecurityFeatureResult.validateJsonElement(jsonElement); - break; - case "256": - PhotoIdentResult.validateJsonElement(jsonElement); - break; case "262144": IdentResult.validateJsonElement(jsonElement); break; diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/AuthenticityResult.java b/client/src/main/generated/com/regula/documentreader/webclient/model/AuthenticityResult.java index 8e5b985..24714aa 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/AuthenticityResult.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/AuthenticityResult.java @@ -24,9 +24,7 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** AuthenticityResult */ @javax.annotation.Generated( @@ -138,17 +136,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AuthenticityResult.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `AuthenticityResult` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : AuthenticityResult.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/AuthenticityResultType.java b/client/src/main/generated/com/regula/documentreader/webclient/model/AuthenticityResultType.java index f3edd94..c5f2130 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/AuthenticityResultType.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/AuthenticityResultType.java @@ -26,9 +26,6 @@ @JsonAdapter(AuthenticityResultType.Adapter.class) public enum AuthenticityResultType { - /** No authenticity control procedure */ - NONE(0l), - /** Document luminescence check in UV light */ UV_LUMINESCENCE(1l), @@ -53,27 +50,18 @@ public enum AuthenticityResultType { /** Invisible Personal Information (IPI) visualization */ IPI(128l), - /** Document photo check in IR light */ - IR_PHOTO(256l), - /** Owner's photo embedding check (is photo printed or sticked) */ PHOTO_EMBED_TYPE(512l), /** OVI check. Deprecated, use Document liveness check instead */ OVI(1024l), - /** IR luminescence check */ - IR_LUMINESCENCE(2048l), - /** Hologram presence check. Deprecated */ HOLOGRAMS(4096l), /** Owner's photo area advanced check (photo shape, size, position, etc.) */ PHOTO_AREA(8192l), - /** UV background check */ - UV_BACKGROUND(16384l), - /** Portrait comparison check (document printed vs chip vs live) */ PORTRAIT_COMPARISON(32768l), @@ -102,10 +90,7 @@ public enum AuthenticityResultType { EXTENDED_MRZ_CHECK(8388608l), /** Encrypted IPI */ - ENCRYPTED_IPI(16777216l), - - /** Flag for status-only authenticity */ - STATUS_ONLY(2147483648l); + ENCRYPTED_IPI(16777216l); private Long value; diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/BarcodeType.java b/client/src/main/generated/com/regula/documentreader/webclient/model/BarcodeType.java index 5cabc9b..d673fec 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/BarcodeType.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/BarcodeType.java @@ -23,70 +23,65 @@ @JsonAdapter(BarcodeType.Adapter.class) public enum BarcodeType { - /** Unknown type */ + /** Unknown */ UNKNOWN(0), - /** One-dimensional bar-code, ISO 15417 (ANSI/AIM BC4-1999 Code 128) */ + /** Code 128 */ CODE128(1), - /** One-dimensional bar-code, ISO 16388 (ANSI/AIM BC1-1995 Code 39) */ + /** Code 39 */ CODE39(2), - /** One-dimensional bar-code, EAN8, ISO 15418 */ + /** EAN-8 */ EAN8(3), - /** - * One-dimensional bar-code, Interleaved 2 of 5, ISO 16390 (ANSI/AIM BC2-1995 Interleaved 2 of 5) - */ + /** ITF */ ITF(4), - /** Two-dimensional bar-code, ISO 15438 (AIM USS PDF417) */ + /** PDF417 */ PDF417(5), - /** One-dimensional bar-code, Standard 2 of 5 (Industrial) */ + /** STF */ STF(6), - /** One-dimensional bar-code, Matrix 2 of 5 */ + /** MTF */ MTF(7), - /** One-dimensional bar-code, IATA 2 of 5 (Airline) */ + /** IATA */ IATA(8), - /** One-dimensional bar-code, (ANSI/AIM BC3-1995, USS - Codabar) */ + /** Codabar */ CODABAR(9), - /** One-dimensional bar-code, UPC-A */ + /** UPC-A */ UPCA(10), - /** One-dimensional bar-code, (ANSI/AIM BC5-1995, USS - Code 93) */ + /** Code 93 */ CODE93(11), - /** One-dimensional bar-code, UPC-E */ + /** UPC-E */ UPCE(12), - /** One-dimensional bar-code, EAN13, ISO 15418 */ + /** EAN-13 */ EAN13(13), - /** Two-dimensional QRCODE bar-code */ + /** QR code */ QRCODE(14), - /** Two-dimensional AZTEC bar-code */ + /** Aztec code */ AZTEC(15), - /** Two-dimensional DATAMATRIX bar-code */ + /** Datamatrix */ DATAMATRIX(16), - /** Type for internal use, representing all 1D bar-codes */ + /** All 1D barcodes */ ALL_1D(17), - /** One-dimensional bar-code CODE11 */ + /** Code 11 */ CODE11(18), /** JAB code */ - JABCODE(19), - - /** For internal use */ - END(20); + JABCODE(19); private Integer value; diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/BcPDF417INFO.java b/client/src/main/generated/com/regula/documentreader/webclient/model/BcPDF417INFO.java index dd4ef86..a8ebf2e 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/BcPDF417INFO.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/BcPDF417INFO.java @@ -24,9 +24,7 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** BcPDF417INFO */ @javax.annotation.Generated( @@ -271,17 +269,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!BcPDF417INFO.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `BcPDF417INFO` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : BcPDF417INFO.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/BcROIDETECT.java b/client/src/main/generated/com/regula/documentreader/webclient/model/BcROIDETECT.java index ff34cae..12742bb 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/BcROIDETECT.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/BcROIDETECT.java @@ -24,9 +24,7 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** BcROIDETECT */ @javax.annotation.Generated( @@ -213,17 +211,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!BcROIDETECT.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `BcROIDETECT` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : BcROIDETECT.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/BinaryData.java b/client/src/main/generated/com/regula/documentreader/webclient/model/BinaryData.java index 76602ab..63ee529 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/BinaryData.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/BinaryData.java @@ -29,7 +29,6 @@ import java.util.List; import java.util.Map; import java.util.Objects; -import java.util.Set; /** Structure is used for storing the results of one bar-code module reading. */ @javax.annotation.Generated( @@ -2470,16 +2469,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!BinaryData.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `BinaryData` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the optional field `RFID_DG1` if (jsonObj.get("RFID_DG1") != null && !jsonObj.get("RFID_DG1").isJsonNull()) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/ByteArrayItem.java b/client/src/main/generated/com/regula/documentreader/webclient/model/ByteArrayItem.java index 04b61f9..e68f792 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/ByteArrayItem.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/ByteArrayItem.java @@ -24,9 +24,7 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** ByteArrayItem */ @javax.annotation.Generated( @@ -126,17 +124,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!ByteArrayItem.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `ByteArrayItem` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : ByteArrayItem.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/ByteArrayResult.java b/client/src/main/generated/com/regula/documentreader/webclient/model/ByteArrayResult.java index 5d3eebd..7eb5f44 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/ByteArrayResult.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/ByteArrayResult.java @@ -24,9 +24,7 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** ByteArrayResult */ @javax.annotation.Generated( @@ -133,17 +131,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!ByteArrayResult.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `ByteArrayResult` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : ByteArrayResult.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/CandidatesListItem.java b/client/src/main/generated/com/regula/documentreader/webclient/model/CandidatesListItem.java index cae7ce9..e0f4e72 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/CandidatesListItem.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/CandidatesListItem.java @@ -24,9 +24,7 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** CandidatesListItem */ @javax.annotation.Generated( @@ -127,16 +125,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!CandidatesListItem.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `CandidatesListItem` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the optional field `CandidatesList` if (jsonObj.get("CandidatesList") != null && !jsonObj.get("CandidatesList").isJsonNull()) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/CertificateData.java b/client/src/main/generated/com/regula/documentreader/webclient/model/CertificateData.java index b857a4d..8192cdf 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/CertificateData.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/CertificateData.java @@ -24,9 +24,7 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** CertificateData */ @javax.annotation.Generated( @@ -155,17 +153,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!CertificateData.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `CertificateData` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : CertificateData.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/ChosenDocumentType.java b/client/src/main/generated/com/regula/documentreader/webclient/model/ChosenDocumentType.java index c050f66..dce9b76 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/ChosenDocumentType.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/ChosenDocumentType.java @@ -25,9 +25,7 @@ import java.io.IOException; import java.math.BigDecimal; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** Contains information about one document type candidate */ @javax.annotation.Generated( @@ -469,17 +467,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!ChosenDocumentType.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `ChosenDocumentType` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : ChosenDocumentType.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/ChosenDocumentTypeResult.java b/client/src/main/generated/com/regula/documentreader/webclient/model/ChosenDocumentTypeResult.java index 0c92bec..d01a304 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/ChosenDocumentTypeResult.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/ChosenDocumentTypeResult.java @@ -24,9 +24,7 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** * Contains information about the type of document that was determined based on the analysis of the @@ -162,17 +160,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!ChosenDocumentTypeResult.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `ChosenDocumentTypeResult` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : ChosenDocumentTypeResult.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/ContainerList.java b/client/src/main/generated/com/regula/documentreader/webclient/model/ContainerList.java index 57c661e..e6831eb 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/ContainerList.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/ContainerList.java @@ -27,9 +27,7 @@ import java.util.ArrayList; import java.util.HashSet; import java.util.List; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** List with various objects, containing processing results */ @javax.annotation.Generated( @@ -165,17 +163,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!ContainerList.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `ContainerList` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : ContainerList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/CrossSourceValueComparison.java b/client/src/main/generated/com/regula/documentreader/webclient/model/CrossSourceValueComparison.java index 13d2513..ddd0417 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/CrossSourceValueComparison.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/CrossSourceValueComparison.java @@ -24,9 +24,7 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** CrossSourceValueComparison */ @javax.annotation.Generated( @@ -184,17 +182,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!CrossSourceValueComparison.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `CrossSourceValueComparison` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : CrossSourceValueComparison.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/DataModule.java b/client/src/main/generated/com/regula/documentreader/webclient/model/DataModule.java index 7ce1409..6ba0a30 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/DataModule.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/DataModule.java @@ -24,9 +24,7 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** DataModule */ @javax.annotation.Generated( @@ -240,17 +238,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DataModule.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `DataModule` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : DataModule.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/DetailsOptical.java b/client/src/main/generated/com/regula/documentreader/webclient/model/DetailsOptical.java index 9dbe09b..1c0fbc9 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/DetailsOptical.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/DetailsOptical.java @@ -24,9 +24,7 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** Details on performed optical checks */ @javax.annotation.Generated( @@ -358,17 +356,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DetailsOptical.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `DetailsOptical` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : DetailsOptical.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/DetailsRFID.java b/client/src/main/generated/com/regula/documentreader/webclient/model/DetailsRFID.java index b5721ea..aeda585 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/DetailsRFID.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/DetailsRFID.java @@ -24,9 +24,7 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** Details on performed RFID checks */ @javax.annotation.Generated( @@ -300,17 +298,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DetailsRFID.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `DetailsRFID` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : DetailsRFID.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/DeviceInfo.java b/client/src/main/generated/com/regula/documentreader/webclient/model/DeviceInfo.java index e41191e..499ca5b 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/DeviceInfo.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/DeviceInfo.java @@ -25,9 +25,7 @@ import java.io.IOException; import java.time.OffsetDateTime; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** DeviceInfo */ @javax.annotation.Generated( @@ -266,16 +264,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DeviceInfo.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `DeviceInfo` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("app-name") != null && !jsonObj.get("app-name").isJsonNull()) && !jsonObj.get("app-name").isJsonPrimitive()) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/DocBarCodeInfo.java b/client/src/main/generated/com/regula/documentreader/webclient/model/DocBarCodeInfo.java index a0e107b..f257107 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/DocBarCodeInfo.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/DocBarCodeInfo.java @@ -24,9 +24,7 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** Raw data from BarCodes */ @javax.annotation.Generated( @@ -134,17 +132,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DocBarCodeInfo.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `DocBarCodeInfo` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : DocBarCodeInfo.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/DocBarCodeInfoFieldsList.java b/client/src/main/generated/com/regula/documentreader/webclient/model/DocBarCodeInfoFieldsList.java index d9d20c6..122c4f2 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/DocBarCodeInfoFieldsList.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/DocBarCodeInfoFieldsList.java @@ -27,9 +27,7 @@ import java.util.ArrayList; import java.util.HashSet; import java.util.List; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** DocBarCodeInfoFieldsList */ @javax.annotation.Generated( @@ -167,17 +165,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DocBarCodeInfoFieldsList.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `DocBarCodeInfoFieldsList` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : DocBarCodeInfoFieldsList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/DocBarCodeInfoItem.java b/client/src/main/generated/com/regula/documentreader/webclient/model/DocBarCodeInfoItem.java index 57ac889..9267292 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/DocBarCodeInfoItem.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/DocBarCodeInfoItem.java @@ -24,9 +24,7 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** DocBarCodeInfoItem */ @javax.annotation.Generated( @@ -127,17 +125,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DocBarCodeInfoItem.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `DocBarCodeInfoItem` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : DocBarCodeInfoItem.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/DocGraphicsInfoItem.java b/client/src/main/generated/com/regula/documentreader/webclient/model/DocGraphicsInfoItem.java index 3b386be..ba02758 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/DocGraphicsInfoItem.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/DocGraphicsInfoItem.java @@ -24,9 +24,7 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** DocGraphicsInfoItem */ @javax.annotation.Generated( @@ -127,17 +125,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DocGraphicsInfoItem.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `DocGraphicsInfoItem` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : DocGraphicsInfoItem.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/DocVisualExtendedField.java b/client/src/main/generated/com/regula/documentreader/webclient/model/DocVisualExtendedField.java index 957de6d..0205128 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/DocVisualExtendedField.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/DocVisualExtendedField.java @@ -24,9 +24,7 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** DocVisualExtendedField */ @javax.annotation.Generated( @@ -148,17 +146,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DocVisualExtendedField.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `DocVisualExtendedField` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : DocVisualExtendedField.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/DocVisualExtendedFieldItem.java b/client/src/main/generated/com/regula/documentreader/webclient/model/DocVisualExtendedFieldItem.java index f58cecc..f2a2b29 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/DocVisualExtendedFieldItem.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/DocVisualExtendedFieldItem.java @@ -24,9 +24,7 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** DocVisualExtendedFieldItem */ @javax.annotation.Generated( @@ -127,17 +125,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DocVisualExtendedFieldItem.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `DocVisualExtendedFieldItem` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : DocVisualExtendedFieldItem.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/DocVisualExtendedInfo.java b/client/src/main/generated/com/regula/documentreader/webclient/model/DocVisualExtendedInfo.java index a711d2a..43d6070 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/DocVisualExtendedInfo.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/DocVisualExtendedInfo.java @@ -28,9 +28,7 @@ import java.util.ArrayList; import java.util.HashSet; import java.util.List; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** Container for extracted text fields. Fields are identified by type and language */ @javax.annotation.Generated( @@ -168,17 +166,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DocVisualExtendedInfo.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `DocVisualExtendedInfo` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : DocVisualExtendedInfo.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/DocVisualExtendedInfoItem.java b/client/src/main/generated/com/regula/documentreader/webclient/model/DocVisualExtendedInfoItem.java index d0bc82a..3ccbee5 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/DocVisualExtendedInfoItem.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/DocVisualExtendedInfoItem.java @@ -24,9 +24,7 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** DocVisualExtendedInfoItem */ @javax.annotation.Generated( @@ -131,17 +129,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DocVisualExtendedInfoItem.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `DocVisualExtendedInfoItem` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : DocVisualExtendedInfoItem.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/DocumentBinaryInfoResult.java b/client/src/main/generated/com/regula/documentreader/webclient/model/DocumentBinaryInfoResult.java index a01f68c..6db714f 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/DocumentBinaryInfoResult.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/DocumentBinaryInfoResult.java @@ -24,9 +24,7 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** * Structure is used to store the data reading results from the RFID-chip in a form of a list of the @@ -138,17 +136,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DocumentBinaryInfoResult.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `DocumentBinaryInfoResult` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : DocumentBinaryInfoResult.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/DocumentImage.java b/client/src/main/generated/com/regula/documentreader/webclient/model/DocumentImage.java index 3cc120a..b287525 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/DocumentImage.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/DocumentImage.java @@ -24,9 +24,7 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** DocumentImage */ @javax.annotation.Generated( @@ -36,7 +34,7 @@ public class DocumentImage { public static final String SERIALIZED_NAME_IMAGE = "image"; @SerializedName(SERIALIZED_NAME_IMAGE) - @javax.annotation.Nonnull + @javax.annotation.Nullable private String image; public static final String SERIALIZED_NAME_FORMAT = "format"; @@ -47,7 +45,7 @@ public class DocumentImage { public DocumentImage() {} - public DocumentImage image(@javax.annotation.Nonnull String image) { + public DocumentImage image(@javax.annotation.Nullable String image) { this.image = image; return this; } @@ -57,12 +55,12 @@ public DocumentImage image(@javax.annotation.Nonnull String image) { * * @return image */ - @javax.annotation.Nonnull + @javax.annotation.Nullable public String getImage() { return image; } - public void setImage(@javax.annotation.Nonnull String image) { + public void setImage(@javax.annotation.Nullable String image) { this.image = image; } @@ -134,7 +132,6 @@ private String toIndentedString(Object o) { // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("image"); } /** @@ -154,28 +151,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DocumentImage.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `DocumentImage` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : DocumentImage.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException( - String.format( - "The required field `%s` is not found in the JSON string: %s", - requiredField, jsonElement.toString())); - } - } JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("image").isJsonPrimitive()) { + if ((jsonObj.get("image") != null && !jsonObj.get("image").isJsonNull()) + && !jsonObj.get("image").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( "Expected the field `image` to be a primitive type in the JSON string but got `%s`", diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/DocumentImageResult.java b/client/src/main/generated/com/regula/documentreader/webclient/model/DocumentImageResult.java index d81725a..9cc3829 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/DocumentImageResult.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/DocumentImageResult.java @@ -24,9 +24,7 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** Contains document image. */ @javax.annotation.Generated( @@ -135,17 +133,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DocumentImageResult.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `DocumentImageResult` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : DocumentImageResult.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/DocumentPosition.java b/client/src/main/generated/com/regula/documentreader/webclient/model/DocumentPosition.java index b10a3f1..4249ea7 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/DocumentPosition.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/DocumentPosition.java @@ -25,9 +25,7 @@ import java.io.IOException; import java.math.BigDecimal; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** DocumentPosition */ @javax.annotation.Generated( @@ -543,17 +541,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DocumentPosition.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `DocumentPosition` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : DocumentPosition.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/DocumentPositionItem.java b/client/src/main/generated/com/regula/documentreader/webclient/model/DocumentPositionItem.java index 5b6886f..7d34ff4 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/DocumentPositionItem.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/DocumentPositionItem.java @@ -24,9 +24,7 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** DocumentPositionItem */ @javax.annotation.Generated( @@ -127,17 +125,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DocumentPositionItem.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `DocumentPositionItem` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : DocumentPositionItem.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/DocumentPositionResult.java b/client/src/main/generated/com/regula/documentreader/webclient/model/DocumentPositionResult.java index fb34bc8..632ea05 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/DocumentPositionResult.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/DocumentPositionResult.java @@ -24,9 +24,7 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** Contains information about document position on the input image, its center, angle, etc */ @javax.annotation.Generated( @@ -135,17 +133,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DocumentPositionResult.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `DocumentPositionResult` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : DocumentPositionResult.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/DocumentTypesCandidates.java b/client/src/main/generated/com/regula/documentreader/webclient/model/DocumentTypesCandidates.java index 1f063d9..885962a 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/DocumentTypesCandidates.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/DocumentTypesCandidates.java @@ -27,9 +27,7 @@ import java.util.ArrayList; import java.util.HashSet; import java.util.List; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** DocumentTypesCandidates */ @javax.annotation.Generated( @@ -166,16 +164,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DocumentTypesCandidates.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `DocumentTypesCandidates` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the optional field `RecResult` if (jsonObj.get("RecResult") != null && !jsonObj.get("RecResult").isJsonNull()) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/DocumentTypesCandidatesList.java b/client/src/main/generated/com/regula/documentreader/webclient/model/DocumentTypesCandidatesList.java index 11968fb..b9d72f9 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/DocumentTypesCandidatesList.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/DocumentTypesCandidatesList.java @@ -27,9 +27,7 @@ import java.util.ArrayList; import java.util.HashSet; import java.util.List; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** DocumentTypesCandidatesList */ @javax.annotation.Generated( @@ -166,16 +164,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DocumentTypesCandidatesList.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `DocumentTypesCandidatesList` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the optional field `RecResult` if (jsonObj.get("RecResult") != null && !jsonObj.get("RecResult").isJsonNull()) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/DocumentTypesCandidatesResult.java b/client/src/main/generated/com/regula/documentreader/webclient/model/DocumentTypesCandidatesResult.java index ef6c58f..6cb0f16 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/DocumentTypesCandidatesResult.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/DocumentTypesCandidatesResult.java @@ -24,9 +24,7 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** DocumentTypesCandidatesResult */ @javax.annotation.Generated( @@ -136,17 +134,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DocumentTypesCandidatesResult.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `DocumentTypesCandidatesResult` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : DocumentTypesCandidatesResult.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/DocumentsDatabase.java b/client/src/main/generated/com/regula/documentreader/webclient/model/DocumentsDatabase.java index 458c5eb..041e1eb 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/DocumentsDatabase.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/DocumentsDatabase.java @@ -24,9 +24,7 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** Document database information */ @javax.annotation.Generated( @@ -209,16 +207,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DocumentsDatabase.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `DocumentsDatabase` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("Description") != null && !jsonObj.get("Description").isJsonNull()) && !jsonObj.get("Description").isJsonPrimitive()) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/EncryptedRCLItem.java b/client/src/main/generated/com/regula/documentreader/webclient/model/EncryptedRCLItem.java index 52d9571..df73d10 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/EncryptedRCLItem.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/EncryptedRCLItem.java @@ -25,9 +25,7 @@ import java.io.IOException; import java.util.Arrays; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** EncryptedRCLItem */ @javax.annotation.Generated( @@ -127,17 +125,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!EncryptedRCLItem.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `EncryptedRCLItem` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : EncryptedRCLItem.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/EncryptedRCLResult.java b/client/src/main/generated/com/regula/documentreader/webclient/model/EncryptedRCLResult.java index bc6cd3e..7e93c9e 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/EncryptedRCLResult.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/EncryptedRCLResult.java @@ -25,9 +25,7 @@ import java.io.IOException; import java.util.Arrays; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** Contains encrypted result container list */ @javax.annotation.Generated( @@ -134,17 +132,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!EncryptedRCLResult.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `EncryptedRCLResult` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : EncryptedRCLResult.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/ErrorCoordinates.java b/client/src/main/generated/com/regula/documentreader/webclient/model/ErrorCoordinates.java index 9535f3e..6eb2499 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/ErrorCoordinates.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/ErrorCoordinates.java @@ -25,9 +25,7 @@ import java.io.IOException; import java.math.BigDecimal; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** ErrorCoordinates */ @javax.annotation.Generated( @@ -210,16 +208,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!ErrorCoordinates.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `ErrorCoordinates` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } JsonObject jsonObj = jsonElement.getAsJsonObject(); } diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/FDSIDList.java b/client/src/main/generated/com/regula/documentreader/webclient/model/FDSIDList.java index de932b8..dbc2910 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/FDSIDList.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/FDSIDList.java @@ -27,9 +27,7 @@ import java.util.ArrayList; import java.util.HashSet; import java.util.List; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** Extended document type info and Regula's 'Information Reference Systems' links */ @javax.annotation.Generated( @@ -465,17 +463,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!FDSIDList.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `FDSIDList` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : FDSIDList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/FaceApi.java b/client/src/main/generated/com/regula/documentreader/webclient/model/FaceApi.java index 2502e9e..d36851a 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/FaceApi.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/FaceApi.java @@ -24,9 +24,7 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** FaceApi */ @javax.annotation.Generated( @@ -396,16 +394,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!FaceApi.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `FaceApi` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("url") != null && !jsonObj.get("url").isJsonNull()) && !jsonObj.get("url").isJsonPrimitive()) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/FaceApiSearch.java b/client/src/main/generated/com/regula/documentreader/webclient/model/FaceApiSearch.java index b9fe150..7a4b2be 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/FaceApiSearch.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/FaceApiSearch.java @@ -26,9 +26,7 @@ import java.util.ArrayList; import java.util.HashSet; import java.util.List; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** * A search filter that can be applied if the \"match+search\" mode is enabled. May @@ -197,16 +195,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!FaceApiSearch.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `FaceApiSearch` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } JsonObject jsonObj = jsonElement.getAsJsonObject(); // ensure the optional json data is an array if present if (jsonObj.get("group_ids") != null diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/FaceDetection.java b/client/src/main/generated/com/regula/documentreader/webclient/model/FaceDetection.java index d5b82e6..5732831 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/FaceDetection.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/FaceDetection.java @@ -27,9 +27,7 @@ import java.util.ArrayList; import java.util.HashSet; import java.util.List; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** FaceDetection */ @javax.annotation.Generated( @@ -253,17 +251,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!FaceDetection.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `FaceDetection` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : FaceDetection.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/FaceDetectionItem.java b/client/src/main/generated/com/regula/documentreader/webclient/model/FaceDetectionItem.java index c159870..6de908b 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/FaceDetectionItem.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/FaceDetectionItem.java @@ -24,9 +24,7 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** FaceDetectionItem */ @javax.annotation.Generated( @@ -126,17 +124,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!FaceDetectionItem.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `FaceDetectionItem` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : FaceDetectionItem.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/FaceDetectionResult.java b/client/src/main/generated/com/regula/documentreader/webclient/model/FaceDetectionResult.java index cb95f8a..a6f550a 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/FaceDetectionResult.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/FaceDetectionResult.java @@ -24,9 +24,7 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** FaceDetectionResult */ @javax.annotation.Generated( @@ -133,17 +131,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!FaceDetectionResult.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `FaceDetectionResult` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : FaceDetectionResult.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/FaceItem.java b/client/src/main/generated/com/regula/documentreader/webclient/model/FaceItem.java index 205b87e..cfc0c9f 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/FaceItem.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/FaceItem.java @@ -27,9 +27,7 @@ import java.util.ArrayList; import java.util.HashSet; import java.util.List; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** FaceItem */ @javax.annotation.Generated( @@ -350,17 +348,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!FaceItem.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `FaceItem` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : FaceItem.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/FiberItem.java b/client/src/main/generated/com/regula/documentreader/webclient/model/FiberItem.java index cb55675..2856d43 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/FiberItem.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/FiberItem.java @@ -27,9 +27,7 @@ import java.util.ArrayList; import java.util.HashSet; import java.util.List; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** FiberItem */ @javax.annotation.Generated( @@ -90,6 +88,12 @@ public class FiberItem { @javax.annotation.Nonnull private List colorValues; + public static final String SERIALIZED_NAME_ERROR_CODE = "ErrorCode"; + + @SerializedName(SERIALIZED_NAME_ERROR_CODE) + @javax.annotation.Nullable + private Integer errorCode; + public FiberItem() {} public FiberItem rectCount(@javax.annotation.Nonnull Integer rectCount) { @@ -303,6 +307,25 @@ public void setColorValues(@javax.annotation.Nonnull List colorValues) this.colorValues = colorValues; } + public FiberItem errorCode(@javax.annotation.Nullable Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * + * @return errorCode + */ + @javax.annotation.Nullable + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(@javax.annotation.Nullable Integer errorCode) { + this.errorCode = errorCode; + } + @Override public boolean equals(Object o) { if (this == o) { @@ -320,7 +343,8 @@ public boolean equals(Object o) { && Objects.equals(this.width, fiberItem.width) && Objects.equals(this.length, fiberItem.length) && Objects.equals(this.area, fiberItem.area) - && Objects.equals(this.colorValues, fiberItem.colorValues); + && Objects.equals(this.colorValues, fiberItem.colorValues) + && Objects.equals(this.errorCode, fiberItem.errorCode); } @Override @@ -334,7 +358,8 @@ public int hashCode() { width, length, area, - colorValues); + colorValues, + errorCode); } @Override @@ -350,6 +375,7 @@ public String toString() { sb.append(" length: ").append(toIndentedString(length)).append("\n"); sb.append(" area: ").append(toIndentedString(area)).append("\n"); sb.append(" colorValues: ").append(toIndentedString(colorValues)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); sb.append("}"); return sb.toString(); } @@ -379,6 +405,7 @@ private String toIndentedString(Object o) { openapiFields.add("Length"); openapiFields.add("Area"); openapiFields.add("ColorValues"); + openapiFields.add("ErrorCode"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); @@ -408,17 +435,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!FiberItem.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `FiberItem` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : FiberItem.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/FiberResult.java b/client/src/main/generated/com/regula/documentreader/webclient/model/FiberResult.java index 4b03767..fbeef83 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/FiberResult.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/FiberResult.java @@ -26,9 +26,7 @@ import java.util.ArrayList; import java.util.HashSet; import java.util.List; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** FiberResult */ @javax.annotation.Generated( @@ -89,6 +87,12 @@ public class FiberResult extends AuthenticityCheckResultItem { @javax.annotation.Nonnull private List colorValues; + public static final String SERIALIZED_NAME_ERROR_CODE = "ErrorCode"; + + @SerializedName(SERIALIZED_NAME_ERROR_CODE) + @javax.annotation.Nullable + private Integer errorCode; + public FiberResult() {} public FiberResult rectCount(@javax.annotation.Nonnull Integer rectCount) { @@ -302,6 +306,25 @@ public void setColorValues(@javax.annotation.Nonnull List colorValues) this.colorValues = colorValues; } + public FiberResult errorCode(@javax.annotation.Nullable Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * + * @return errorCode + */ + @javax.annotation.Nullable + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(@javax.annotation.Nullable Integer errorCode) { + this.errorCode = errorCode; + } + @Override public boolean equals(Object o) { if (this == o) { @@ -320,6 +343,7 @@ public boolean equals(Object o) { && Objects.equals(this.length, fiberResult.length) && Objects.equals(this.area, fiberResult.area) && Objects.equals(this.colorValues, fiberResult.colorValues) + && Objects.equals(this.errorCode, fiberResult.errorCode) && super.equals(o); } @@ -335,6 +359,7 @@ public int hashCode() { length, area, colorValues, + errorCode, super.hashCode()); } @@ -352,6 +377,7 @@ public String toString() { sb.append(" length: ").append(toIndentedString(length)).append("\n"); sb.append(" area: ").append(toIndentedString(area)).append("\n"); sb.append(" colorValues: ").append(toIndentedString(colorValues)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); sb.append("}"); return sb.toString(); } @@ -385,6 +411,7 @@ private String toIndentedString(Object o) { openapiFields.add("Length"); openapiFields.add("Area"); openapiFields.add("ColorValues"); + openapiFields.add("ErrorCode"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); @@ -415,17 +442,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!FiberResult.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `FiberResult` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : FiberResult.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/FieldItem.java b/client/src/main/generated/com/regula/documentreader/webclient/model/FieldItem.java index 7eaf339..fd31b89 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/FieldItem.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/FieldItem.java @@ -24,9 +24,7 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** FieldItem */ @javax.annotation.Generated( @@ -271,17 +269,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!FieldItem.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `FieldItem` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : FieldItem.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/FileImage.java b/client/src/main/generated/com/regula/documentreader/webclient/model/FileImage.java index 677390a..a2d973f 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/FileImage.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/FileImage.java @@ -24,9 +24,7 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** FileImage */ @javax.annotation.Generated( @@ -155,17 +153,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!FileImage.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `FileImage` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : FileImage.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/GetTransactionsByTagResponse.java b/client/src/main/generated/com/regula/documentreader/webclient/model/GetTransactionsByTagResponse.java index 2a7bd2e..dcb751e 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/GetTransactionsByTagResponse.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/GetTransactionsByTagResponse.java @@ -25,9 +25,7 @@ import java.io.IOException; import java.time.OffsetDateTime; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; import java.util.UUID; /** GetTransactionsByTagResponse */ @@ -184,16 +182,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetTransactionsByTagResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `GetTransactionsByTagResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("id") != null && !jsonObj.get("id").isJsonNull()) && !jsonObj.get("id").isJsonPrimitive()) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/GraphData.java b/client/src/main/generated/com/regula/documentreader/webclient/model/GraphData.java index bda5c53..9da2e64 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/GraphData.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/GraphData.java @@ -24,9 +24,7 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** GraphData */ @javax.annotation.Generated( @@ -301,17 +299,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GraphData.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `GraphData` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : GraphData.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/GraphicField.java b/client/src/main/generated/com/regula/documentreader/webclient/model/GraphicField.java index 6ba08ee..31f9824 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/GraphicField.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/GraphicField.java @@ -24,9 +24,7 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** Information about one graphic field - abstract class */ @javax.annotation.Generated( @@ -213,17 +211,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GraphicField.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `GraphicField` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : GraphicField.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/GraphicFieldsList.java b/client/src/main/generated/com/regula/documentreader/webclient/model/GraphicFieldsList.java index 7abdccc..2b3fc10 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/GraphicFieldsList.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/GraphicFieldsList.java @@ -28,9 +28,7 @@ import java.util.ArrayList; import java.util.HashSet; import java.util.List; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** GraphicFieldsList */ @javax.annotation.Generated( @@ -167,17 +165,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GraphicFieldsList.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `GraphicFieldsList` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : GraphicFieldsList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/GraphicsResult.java b/client/src/main/generated/com/regula/documentreader/webclient/model/GraphicsResult.java index ce1a823..e81c64a 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/GraphicsResult.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/GraphicsResult.java @@ -24,9 +24,7 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** * Graphic fields extracted from one of the document sources. Returns separate results for each @@ -137,17 +135,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GraphicsResult.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `GraphicsResult` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : GraphicsResult.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/Healthcheck.java b/client/src/main/generated/com/regula/documentreader/webclient/model/Healthcheck.java index 572b0c1..7a75d56 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/Healthcheck.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/Healthcheck.java @@ -30,7 +30,6 @@ import java.util.List; import java.util.Map; import java.util.Objects; -import java.util.Set; /** Healthcheck */ @javax.annotation.Generated( @@ -388,17 +387,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!Healthcheck.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `Healthcheck` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : Healthcheck.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/HealthcheckDocumentsDatabase.java b/client/src/main/generated/com/regula/documentreader/webclient/model/HealthcheckDocumentsDatabase.java index b5918ce..bf9d129 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/HealthcheckDocumentsDatabase.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/HealthcheckDocumentsDatabase.java @@ -24,9 +24,7 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** Database information. */ @javax.annotation.Generated( @@ -213,17 +211,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!HealthcheckDocumentsDatabase.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `HealthcheckDocumentsDatabase` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : HealthcheckDocumentsDatabase.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/IdentItem.java b/client/src/main/generated/com/regula/documentreader/webclient/model/IdentItem.java index 86e5700..a593705 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/IdentItem.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/IdentItem.java @@ -24,9 +24,7 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** IdentItem */ @javax.annotation.Generated( @@ -69,6 +67,12 @@ public class IdentItem { @javax.annotation.Nullable private AreaContainer areaList; + public static final String SERIALIZED_NAME_RESULT = "Result"; + + @SerializedName(SERIALIZED_NAME_RESULT) + @javax.annotation.Nullable + private Integer result; + public IdentItem() {} public IdentItem elementType(@javax.annotation.Nonnull SecurityFeatureType elementType) { @@ -185,6 +189,25 @@ public void setAreaList(@javax.annotation.Nullable AreaContainer areaList) { this.areaList = areaList; } + public IdentItem result(@javax.annotation.Nullable Integer result) { + this.result = result; + return this; + } + + /** + * Get result + * + * @return result + */ + @javax.annotation.Nullable + public Integer getResult() { + return result; + } + + public void setResult(@javax.annotation.Nullable Integer result) { + this.result = result; + } + @Override public boolean equals(Object o) { if (this == o) { @@ -199,12 +222,13 @@ public boolean equals(Object o) { && Objects.equals(this.area, identItem.area) && Objects.equals(this.image, identItem.image) && Objects.equals(this.etalonImage, identItem.etalonImage) - && Objects.equals(this.areaList, identItem.areaList); + && Objects.equals(this.areaList, identItem.areaList) + && Objects.equals(this.result, identItem.result); } @Override public int hashCode() { - return Objects.hash(elementType, lightIndex, area, image, etalonImage, areaList); + return Objects.hash(elementType, lightIndex, area, image, etalonImage, areaList, result); } @Override @@ -217,6 +241,7 @@ public String toString() { sb.append(" image: ").append(toIndentedString(image)).append("\n"); sb.append(" etalonImage: ").append(toIndentedString(etalonImage)).append("\n"); sb.append(" areaList: ").append(toIndentedString(areaList)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); sb.append("}"); return sb.toString(); } @@ -243,6 +268,7 @@ private String toIndentedString(Object o) { openapiFields.add("Image"); openapiFields.add("EtalonImage"); openapiFields.add("AreaList"); + openapiFields.add("Result"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); @@ -269,17 +295,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!IdentItem.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `IdentItem` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : IdentItem.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/IdentResult.java b/client/src/main/generated/com/regula/documentreader/webclient/model/IdentResult.java index d6fe059..a4d5857 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/IdentResult.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/IdentResult.java @@ -24,9 +24,7 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** IdentResult */ @javax.annotation.Generated( @@ -69,6 +67,12 @@ public class IdentResult extends AuthenticityCheckResultItem { @javax.annotation.Nullable private AreaContainer areaList; + public static final String SERIALIZED_NAME_RESULT = "Result"; + + @SerializedName(SERIALIZED_NAME_RESULT) + @javax.annotation.Nullable + private Integer result; + public IdentResult() {} public IdentResult elementType(@javax.annotation.Nonnull SecurityFeatureType elementType) { @@ -185,6 +189,25 @@ public void setAreaList(@javax.annotation.Nullable AreaContainer areaList) { this.areaList = areaList; } + public IdentResult result(@javax.annotation.Nullable Integer result) { + this.result = result; + return this; + } + + /** + * Get result + * + * @return result + */ + @javax.annotation.Nullable + public Integer getResult() { + return result; + } + + public void setResult(@javax.annotation.Nullable Integer result) { + this.result = result; + } + @Override public boolean equals(Object o) { if (this == o) { @@ -200,13 +223,14 @@ public boolean equals(Object o) { && Objects.equals(this.image, identResult.image) && Objects.equals(this.etalonImage, identResult.etalonImage) && Objects.equals(this.areaList, identResult.areaList) + && Objects.equals(this.result, identResult.result) && super.equals(o); } @Override public int hashCode() { return Objects.hash( - elementType, lightIndex, area, image, etalonImage, areaList, super.hashCode()); + elementType, lightIndex, area, image, etalonImage, areaList, result, super.hashCode()); } @Override @@ -220,6 +244,7 @@ public String toString() { sb.append(" image: ").append(toIndentedString(image)).append("\n"); sb.append(" etalonImage: ").append(toIndentedString(etalonImage)).append("\n"); sb.append(" areaList: ").append(toIndentedString(areaList)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); sb.append("}"); return sb.toString(); } @@ -250,6 +275,7 @@ private String toIndentedString(Object o) { openapiFields.add("Image"); openapiFields.add("EtalonImage"); openapiFields.add("AreaList"); + openapiFields.add("Result"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); @@ -277,17 +303,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!IdentResult.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `IdentResult` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : IdentResult.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/ImageData.java b/client/src/main/generated/com/regula/documentreader/webclient/model/ImageData.java index a4bfdae..2e0fb42 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/ImageData.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/ImageData.java @@ -24,9 +24,7 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** ImageData */ @javax.annotation.Generated( @@ -36,7 +34,7 @@ public class ImageData { public static final String SERIALIZED_NAME_IMAGE = "image"; @SerializedName(SERIALIZED_NAME_IMAGE) - @javax.annotation.Nonnull + @javax.annotation.Nullable private String image; public static final String SERIALIZED_NAME_FORMAT = "format"; @@ -47,7 +45,7 @@ public class ImageData { public ImageData() {} - public ImageData image(@javax.annotation.Nonnull String image) { + public ImageData image(@javax.annotation.Nullable String image) { this.image = image; return this; } @@ -57,12 +55,12 @@ public ImageData image(@javax.annotation.Nonnull String image) { * * @return image */ - @javax.annotation.Nonnull + @javax.annotation.Nullable public String getImage() { return image; } - public void setImage(@javax.annotation.Nonnull String image) { + public void setImage(@javax.annotation.Nullable String image) { this.image = image; } @@ -134,7 +132,6 @@ private String toIndentedString(Object o) { // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("image"); } /** @@ -154,28 +151,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!ImageData.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `ImageData` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : ImageData.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException( - String.format( - "The required field `%s` is not found in the JSON string: %s", - requiredField, jsonElement.toString())); - } - } JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("image").isJsonPrimitive()) { + if ((jsonObj.get("image") != null && !jsonObj.get("image").isJsonNull()) + && !jsonObj.get("image").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( "Expected the field `image` to be a primitive type in the JSON string but got `%s`", diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/ImageQA.java b/client/src/main/generated/com/regula/documentreader/webclient/model/ImageQA.java index f481730..00c57f9 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/ImageQA.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/ImageQA.java @@ -26,9 +26,7 @@ import java.util.ArrayList; import java.util.HashSet; import java.util.List; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** ImageQA */ @javax.annotation.Generated( @@ -378,16 +376,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!ImageQA.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `ImageQA` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } JsonObject jsonObj = jsonElement.getAsJsonObject(); // ensure the optional json data is an array if present if (jsonObj.get("expectedPass") != null diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/ImageQualityCheck.java b/client/src/main/generated/com/regula/documentreader/webclient/model/ImageQualityCheck.java index fce6538..cfac9b1 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/ImageQualityCheck.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/ImageQualityCheck.java @@ -24,9 +24,7 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** ImageQualityCheck */ @javax.annotation.Generated( @@ -299,17 +297,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!ImageQualityCheck.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `ImageQualityCheck` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : ImageQualityCheck.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/ImageQualityCheckList.java b/client/src/main/generated/com/regula/documentreader/webclient/model/ImageQualityCheckList.java index 5862fcf..d2b5b10 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/ImageQualityCheckList.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/ImageQualityCheckList.java @@ -28,9 +28,7 @@ import java.util.ArrayList; import java.util.HashSet; import java.util.List; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** ImageQualityCheckList */ @javax.annotation.Generated( @@ -196,17 +194,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!ImageQualityCheckList.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `ImageQualityCheckList` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : ImageQualityCheckList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/ImageQualityCheckListItem.java b/client/src/main/generated/com/regula/documentreader/webclient/model/ImageQualityCheckListItem.java index 9019fe9..ef92345 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/ImageQualityCheckListItem.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/ImageQualityCheckListItem.java @@ -24,9 +24,7 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** ImageQualityCheckListItem */ @javax.annotation.Generated( @@ -131,17 +129,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!ImageQualityCheckListItem.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `ImageQualityCheckListItem` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : ImageQualityCheckListItem.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/ImageQualityResult.java b/client/src/main/generated/com/regula/documentreader/webclient/model/ImageQualityResult.java index 678d208..91a799e 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/ImageQualityResult.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/ImageQualityResult.java @@ -24,9 +24,7 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** ImageQualityResult */ @javax.annotation.Generated( @@ -138,17 +136,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!ImageQualityResult.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `ImageQualityResult` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : ImageQualityResult.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/ImageTransactionData.java b/client/src/main/generated/com/regula/documentreader/webclient/model/ImageTransactionData.java index e3add3b..c86c4a9 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/ImageTransactionData.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/ImageTransactionData.java @@ -24,9 +24,7 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** ImageTransactionData */ @javax.annotation.Generated( @@ -125,16 +123,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!ImageTransactionData.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `ImageTransactionData` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the optional field `image` if (jsonObj.get("image") != null && !jsonObj.get("image").isJsonNull()) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/Images.java b/client/src/main/generated/com/regula/documentreader/webclient/model/Images.java index 709d5c7..787fb66 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/Images.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/Images.java @@ -27,9 +27,7 @@ import java.util.ArrayList; import java.util.HashSet; import java.util.List; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** Images */ @javax.annotation.Generated( @@ -235,17 +233,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!Images.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `Images` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : Images.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/ImagesAvailableSource.java b/client/src/main/generated/com/regula/documentreader/webclient/model/ImagesAvailableSource.java index 9b253ff..9c1ad4c 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/ImagesAvailableSource.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/ImagesAvailableSource.java @@ -24,9 +24,7 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** ImagesAvailableSource */ @javax.annotation.Generated( @@ -155,17 +153,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!ImagesAvailableSource.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `ImagesAvailableSource` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : ImagesAvailableSource.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/ImagesField.java b/client/src/main/generated/com/regula/documentreader/webclient/model/ImagesField.java index f6a565a..2d60e50 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/ImagesField.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/ImagesField.java @@ -28,9 +28,7 @@ import java.util.ArrayList; import java.util.HashSet; import java.util.List; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** ImagesField */ @javax.annotation.Generated( @@ -224,17 +222,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!ImagesField.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `ImagesField` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : ImagesField.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/ImagesFieldValue.java b/client/src/main/generated/com/regula/documentreader/webclient/model/ImagesFieldValue.java index ecad65a..fa88ef3 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/ImagesFieldValue.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/ImagesFieldValue.java @@ -24,9 +24,7 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** ImagesFieldValue */ @javax.annotation.Generated( @@ -362,17 +360,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!ImagesFieldValue.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `ImagesFieldValue` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : ImagesFieldValue.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/ImagesItem.java b/client/src/main/generated/com/regula/documentreader/webclient/model/ImagesItem.java index e60d8e5..ee54168 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/ImagesItem.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/ImagesItem.java @@ -24,9 +24,7 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** ImagesItem */ @javax.annotation.Generated( @@ -126,17 +124,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!ImagesItem.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `ImagesItem` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : ImagesItem.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/ImagesResult.java b/client/src/main/generated/com/regula/documentreader/webclient/model/ImagesResult.java index 791b7cf..c43b9f4 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/ImagesResult.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/ImagesResult.java @@ -24,9 +24,7 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** ImagesResult */ @javax.annotation.Generated( @@ -133,17 +131,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!ImagesResult.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `ImagesResult` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : ImagesResult.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/InData.java b/client/src/main/generated/com/regula/documentreader/webclient/model/InData.java index 681801c..ed53372 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/InData.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/InData.java @@ -27,9 +27,7 @@ import java.util.ArrayList; import java.util.HashSet; import java.util.List; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** InData */ @javax.annotation.Generated( @@ -162,16 +160,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!InData.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `InData` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the optional field `video` if (jsonObj.get("video") != null && !jsonObj.get("video").isJsonNull()) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/InDataTransactionImagesFieldValue.java b/client/src/main/generated/com/regula/documentreader/webclient/model/InDataTransactionImagesFieldValue.java index 26a3949..0070571 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/InDataTransactionImagesFieldValue.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/InDataTransactionImagesFieldValue.java @@ -24,9 +24,7 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** InDataTransactionImagesFieldValue */ @javax.annotation.Generated( @@ -211,16 +209,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!InDataTransactionImagesFieldValue.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `InDataTransactionImagesFieldValue` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the optional field `light` if (jsonObj.get("light") != null && !jsonObj.get("light").isJsonNull()) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/InDataVideo.java b/client/src/main/generated/com/regula/documentreader/webclient/model/InDataVideo.java index ac29856..9ad2db4 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/InDataVideo.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/InDataVideo.java @@ -27,7 +27,6 @@ import java.util.HashSet; import java.util.Map; import java.util.Objects; -import java.util.Set; /** Video */ @javax.annotation.Generated( @@ -162,16 +161,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!InDataVideo.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `InDataVideo` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("url") != null && !jsonObj.get("url").isJsonNull()) && !jsonObj.get("url").isJsonPrimitive()) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/LexicalAnalysisResult.java b/client/src/main/generated/com/regula/documentreader/webclient/model/LexicalAnalysisResult.java index 1f224d8..4d62de2 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/LexicalAnalysisResult.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/LexicalAnalysisResult.java @@ -24,9 +24,7 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** * Lexical data analysis allows you to compare the results of reading the text data of the MRZ, the @@ -141,17 +139,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!LexicalAnalysisResult.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `LexicalAnalysisResult` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : LexicalAnalysisResult.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/LicenseItem.java b/client/src/main/generated/com/regula/documentreader/webclient/model/LicenseItem.java index 77a2011..3c79394 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/LicenseItem.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/LicenseItem.java @@ -25,9 +25,7 @@ import java.io.IOException; import java.util.Arrays; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** LicenseItem */ @javax.annotation.Generated( @@ -127,17 +125,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!LicenseItem.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `LicenseItem` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : LicenseItem.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/LicenseResult.java b/client/src/main/generated/com/regula/documentreader/webclient/model/LicenseResult.java index 1a99bda..1c34a5d 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/LicenseResult.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/LicenseResult.java @@ -25,9 +25,7 @@ import java.io.IOException; import java.util.Arrays; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** Contains license */ @javax.annotation.Generated( @@ -134,17 +132,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!LicenseResult.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `LicenseResult` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : LicenseResult.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/ListTransactionsByTagResponse.java b/client/src/main/generated/com/regula/documentreader/webclient/model/ListTransactionsByTagResponse.java index c92f81e..68e3061 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/ListTransactionsByTagResponse.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/ListTransactionsByTagResponse.java @@ -30,7 +30,6 @@ import java.util.List; import java.util.Map; import java.util.Objects; -import java.util.Set; /** ListTransactionsByTagResponse */ @javax.annotation.Generated( @@ -176,16 +175,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!ListTransactionsByTagResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `ListTransactionsByTagResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (jsonObj.get("items") != null && !jsonObj.get("items").isJsonNull()) { JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/ListVerifiedFields.java b/client/src/main/generated/com/regula/documentreader/webclient/model/ListVerifiedFields.java index 80ef9dc..366adfc 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/ListVerifiedFields.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/ListVerifiedFields.java @@ -28,9 +28,7 @@ import java.util.ArrayList; import java.util.HashSet; import java.util.List; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** ListVerifiedFields */ @javax.annotation.Generated( @@ -196,17 +194,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!ListVerifiedFields.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `ListVerifiedFields` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : ListVerifiedFields.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/ListVerifiedFieldsItem.java b/client/src/main/generated/com/regula/documentreader/webclient/model/ListVerifiedFieldsItem.java index a3c51b0..5df9792 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/ListVerifiedFieldsItem.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/ListVerifiedFieldsItem.java @@ -24,9 +24,7 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** ListVerifiedFieldsItem */ @javax.annotation.Generated( @@ -128,17 +126,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!ListVerifiedFieldsItem.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `ListVerifiedFieldsItem` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : ListVerifiedFieldsItem.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/LivenessParams.java b/client/src/main/generated/com/regula/documentreader/webclient/model/LivenessParams.java index 703a83c..d584bcc 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/LivenessParams.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/LivenessParams.java @@ -24,9 +24,7 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** LivenessParams */ @javax.annotation.Generated( @@ -269,16 +267,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!LivenessParams.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `LivenessParams` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } JsonObject jsonObj = jsonElement.getAsJsonObject(); } diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/MRZDetectorResult.java b/client/src/main/generated/com/regula/documentreader/webclient/model/MRZDetectorResult.java index 44de172..dc5d035 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/MRZDetectorResult.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/MRZDetectorResult.java @@ -24,9 +24,7 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** MRZDetectorResult */ @javax.annotation.Generated( @@ -135,17 +133,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!MRZDetectorResult.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `MRZDetectorResult` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : MRZDetectorResult.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/MRZPositionResult.java b/client/src/main/generated/com/regula/documentreader/webclient/model/MRZPositionResult.java index 509b3b1..2c7c008 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/MRZPositionResult.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/MRZPositionResult.java @@ -24,9 +24,7 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** MRZPositionResult */ @javax.annotation.Generated( @@ -133,17 +131,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!MRZPositionResult.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `MRZPositionResult` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : MRZPositionResult.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/MRZRowsItem.java b/client/src/main/generated/com/regula/documentreader/webclient/model/MRZRowsItem.java index 1bc6135..53515bc 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/MRZRowsItem.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/MRZRowsItem.java @@ -27,9 +27,7 @@ import java.util.ArrayList; import java.util.HashSet; import java.util.List; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** MRZRowsItem */ @javax.annotation.Generated( @@ -195,17 +193,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!MRZRowsItem.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `MRZRowsItem` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : MRZRowsItem.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/MRZTestQuality.java b/client/src/main/generated/com/regula/documentreader/webclient/model/MRZTestQuality.java index c687a73..0770964 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/MRZTestQuality.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/MRZTestQuality.java @@ -27,9 +27,7 @@ import java.util.ArrayList; import java.util.HashSet; import java.util.List; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** MRZTestQuality */ @javax.annotation.Generated( @@ -408,17 +406,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!MRZTestQuality.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `MRZTestQuality` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : MRZTestQuality.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/MRZTestQualityItem.java b/client/src/main/generated/com/regula/documentreader/webclient/model/MRZTestQualityItem.java index 6994768..c8d8776 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/MRZTestQualityItem.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/MRZTestQualityItem.java @@ -24,9 +24,7 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** MRZTestQualityItem */ @javax.annotation.Generated( @@ -127,17 +125,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!MRZTestQualityItem.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `MRZTestQualityItem` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : MRZTestQualityItem.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/MRZTestQualityResult.java b/client/src/main/generated/com/regula/documentreader/webclient/model/MRZTestQualityResult.java index 09ec615..ee61d7f 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/MRZTestQualityResult.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/MRZTestQualityResult.java @@ -24,9 +24,7 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** MRZTestQualityResult */ @javax.annotation.Generated( @@ -135,17 +133,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!MRZTestQualityResult.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `MRZTestQualityResult` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : MRZTestQualityResult.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/MrzPosition.java b/client/src/main/generated/com/regula/documentreader/webclient/model/MrzPosition.java index 16fe8cc..11bb334 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/MrzPosition.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/MrzPosition.java @@ -25,9 +25,7 @@ import java.io.IOException; import java.math.BigDecimal; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** MrzPosition */ @javax.annotation.Generated( @@ -543,17 +541,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!MrzPosition.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `MrzPosition` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : MrzPosition.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/MrzPositionItem.java b/client/src/main/generated/com/regula/documentreader/webclient/model/MrzPositionItem.java index 1002d5d..ee4f7d8 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/MrzPositionItem.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/MrzPositionItem.java @@ -24,9 +24,7 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** MrzPositionItem */ @javax.annotation.Generated( @@ -126,17 +124,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!MrzPositionItem.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `MrzPositionItem` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : MrzPositionItem.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/OCRSecurityTextItem.java b/client/src/main/generated/com/regula/documentreader/webclient/model/OCRSecurityTextItem.java index 25d2836..3cc2396 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/OCRSecurityTextItem.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/OCRSecurityTextItem.java @@ -24,9 +24,7 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** OCRSecurityTextItem */ @javax.annotation.Generated( @@ -87,6 +85,12 @@ public class OCRSecurityTextItem { @javax.annotation.Nonnull private String etalonResultOCR; + public static final String SERIALIZED_NAME_RESULT_CODE = "ResultCode"; + + @SerializedName(SERIALIZED_NAME_RESULT_CODE) + @javax.annotation.Nullable + private Integer resultCode; + public static final String SERIALIZED_NAME_RESERVED1 = "Reserved1"; @SerializedName(SERIALIZED_NAME_RESERVED1) @@ -274,6 +278,25 @@ public void setEtalonResultOCR(@javax.annotation.Nonnull String etalonResultOCR) this.etalonResultOCR = etalonResultOCR; } + public OCRSecurityTextItem resultCode(@javax.annotation.Nullable Integer resultCode) { + this.resultCode = resultCode; + return this; + } + + /** + * Get resultCode + * + * @return resultCode + */ + @javax.annotation.Nullable + public Integer getResultCode() { + return resultCode; + } + + public void setResultCode(@javax.annotation.Nullable Integer resultCode) { + this.resultCode = resultCode; + } + public OCRSecurityTextItem reserved1(@javax.annotation.Nullable Integer reserved1) { this.reserved1 = reserved1; return this; @@ -330,6 +353,7 @@ public boolean equals(Object o) { && Objects.equals(this.etalonFieldRect, ocRSecurityTextItem.etalonFieldRect) && Objects.equals(this.securityTextResultOCR, ocRSecurityTextItem.securityTextResultOCR) && Objects.equals(this.etalonResultOCR, ocRSecurityTextItem.etalonResultOCR) + && Objects.equals(this.resultCode, ocRSecurityTextItem.resultCode) && Objects.equals(this.reserved1, ocRSecurityTextItem.reserved1) && Objects.equals(this.reserved2, ocRSecurityTextItem.reserved2); } @@ -346,6 +370,7 @@ public int hashCode() { etalonFieldRect, securityTextResultOCR, etalonResultOCR, + resultCode, reserved1, reserved2); } @@ -365,6 +390,7 @@ public String toString() { .append(toIndentedString(securityTextResultOCR)) .append("\n"); sb.append(" etalonResultOCR: ").append(toIndentedString(etalonResultOCR)).append("\n"); + sb.append(" resultCode: ").append(toIndentedString(resultCode)).append("\n"); sb.append(" reserved1: ").append(toIndentedString(reserved1)).append("\n"); sb.append(" reserved2: ").append(toIndentedString(reserved2)).append("\n"); sb.append("}"); @@ -396,6 +422,7 @@ private String toIndentedString(Object o) { openapiFields.add("EtalonFieldRect"); openapiFields.add("SecurityTextResultOCR"); openapiFields.add("EtalonResultOCR"); + openapiFields.add("ResultCode"); openapiFields.add("Reserved1"); openapiFields.add("Reserved2"); @@ -429,17 +456,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!OCRSecurityTextItem.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `OCRSecurityTextItem` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : OCRSecurityTextItem.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/OCRSecurityTextResult.java b/client/src/main/generated/com/regula/documentreader/webclient/model/OCRSecurityTextResult.java index 587f9d2..ef80521 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/OCRSecurityTextResult.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/OCRSecurityTextResult.java @@ -24,9 +24,7 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** OCRSecurityTextResult */ @javax.annotation.Generated( @@ -87,6 +85,12 @@ public class OCRSecurityTextResult extends AuthenticityCheckResultItem { @javax.annotation.Nonnull private String etalonResultOCR; + public static final String SERIALIZED_NAME_RESULT_CODE = "ResultCode"; + + @SerializedName(SERIALIZED_NAME_RESULT_CODE) + @javax.annotation.Nullable + private Integer resultCode; + public static final String SERIALIZED_NAME_RESERVED1 = "Reserved1"; @SerializedName(SERIALIZED_NAME_RESERVED1) @@ -275,6 +279,25 @@ public void setEtalonResultOCR(@javax.annotation.Nonnull String etalonResultOCR) this.etalonResultOCR = etalonResultOCR; } + public OCRSecurityTextResult resultCode(@javax.annotation.Nullable Integer resultCode) { + this.resultCode = resultCode; + return this; + } + + /** + * Get resultCode + * + * @return resultCode + */ + @javax.annotation.Nullable + public Integer getResultCode() { + return resultCode; + } + + public void setResultCode(@javax.annotation.Nullable Integer resultCode) { + this.resultCode = resultCode; + } + public OCRSecurityTextResult reserved1(@javax.annotation.Nullable Integer reserved1) { this.reserved1 = reserved1; return this; @@ -331,6 +354,7 @@ public boolean equals(Object o) { && Objects.equals(this.etalonFieldRect, ocRSecurityTextResult.etalonFieldRect) && Objects.equals(this.securityTextResultOCR, ocRSecurityTextResult.securityTextResultOCR) && Objects.equals(this.etalonResultOCR, ocRSecurityTextResult.etalonResultOCR) + && Objects.equals(this.resultCode, ocRSecurityTextResult.resultCode) && Objects.equals(this.reserved1, ocRSecurityTextResult.reserved1) && Objects.equals(this.reserved2, ocRSecurityTextResult.reserved2) && super.equals(o); @@ -348,6 +372,7 @@ public int hashCode() { etalonFieldRect, securityTextResultOCR, etalonResultOCR, + resultCode, reserved1, reserved2, super.hashCode()); @@ -369,6 +394,7 @@ public String toString() { .append(toIndentedString(securityTextResultOCR)) .append("\n"); sb.append(" etalonResultOCR: ").append(toIndentedString(etalonResultOCR)).append("\n"); + sb.append(" resultCode: ").append(toIndentedString(resultCode)).append("\n"); sb.append(" reserved1: ").append(toIndentedString(reserved1)).append("\n"); sb.append(" reserved2: ").append(toIndentedString(reserved2)).append("\n"); sb.append("}"); @@ -404,6 +430,7 @@ private String toIndentedString(Object o) { openapiFields.add("EtalonFieldRect"); openapiFields.add("SecurityTextResultOCR"); openapiFields.add("EtalonResultOCR"); + openapiFields.add("ResultCode"); openapiFields.add("Reserved1"); openapiFields.add("Reserved2"); @@ -438,17 +465,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!OCRSecurityTextResult.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `OCRSecurityTextResult` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : OCRSecurityTextResult.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/OneCandidate.java b/client/src/main/generated/com/regula/documentreader/webclient/model/OneCandidate.java index cf34374..3a0595c 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/OneCandidate.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/OneCandidate.java @@ -25,9 +25,7 @@ import java.io.IOException; import java.math.BigDecimal; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** Contains information about one document type candidate */ @javax.annotation.Generated( @@ -469,17 +467,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!OneCandidate.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `OneCandidate` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : OneCandidate.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/OneCandidateItem.java b/client/src/main/generated/com/regula/documentreader/webclient/model/OneCandidateItem.java index 4bdd0fa..04328e3 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/OneCandidateItem.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/OneCandidateItem.java @@ -24,9 +24,7 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** OneCandidateItem */ @javax.annotation.Generated( @@ -150,17 +148,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!OneCandidateItem.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `OneCandidateItem` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : OneCandidateItem.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/OriginalSymbol.java b/client/src/main/generated/com/regula/documentreader/webclient/model/OriginalSymbol.java index c7d285a..54a6431 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/OriginalSymbol.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/OriginalSymbol.java @@ -24,9 +24,7 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** OriginalSymbol */ @javax.annotation.Generated( @@ -183,17 +181,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!OriginalSymbol.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `OriginalSymbol` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : OriginalSymbol.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/OutData.java b/client/src/main/generated/com/regula/documentreader/webclient/model/OutData.java index 9f25fb8..ea1d09c 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/OutData.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/OutData.java @@ -27,9 +27,7 @@ import java.util.ArrayList; import java.util.HashSet; import java.util.List; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** OutData */ @javax.annotation.Generated( @@ -165,16 +163,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!OutData.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `OutData` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("url") != null && !jsonObj.get("url").isJsonNull()) && !jsonObj.get("url").isJsonPrimitive()) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/OutDataTransactionImagesFieldValue.java b/client/src/main/generated/com/regula/documentreader/webclient/model/OutDataTransactionImagesFieldValue.java index 7f9808b..c2a3d26 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/OutDataTransactionImagesFieldValue.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/OutDataTransactionImagesFieldValue.java @@ -24,9 +24,7 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** OutDataTransactionImagesFieldValue */ @javax.annotation.Generated( @@ -240,16 +238,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!OutDataTransactionImagesFieldValue.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `OutDataTransactionImagesFieldValue` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the optional field `fieldType` if (jsonObj.get("fieldType") != null && !jsonObj.get("fieldType").isJsonNull()) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/PArrayField.java b/client/src/main/generated/com/regula/documentreader/webclient/model/PArrayField.java index 8bedd22..f81ec7d 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/PArrayField.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/PArrayField.java @@ -27,9 +27,7 @@ import java.util.ArrayList; import java.util.HashSet; import java.util.List; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** PArrayField */ @javax.annotation.Generated( @@ -405,17 +403,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!PArrayField.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `PArrayField` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : PArrayField.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/ParsedData.java b/client/src/main/generated/com/regula/documentreader/webclient/model/ParsedData.java index 1a649f2..d8e80d9 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/ParsedData.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/ParsedData.java @@ -26,9 +26,7 @@ import java.util.ArrayList; import java.util.HashSet; import java.util.List; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** ParsedData */ @javax.annotation.Generated( @@ -138,16 +136,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!ParsedData.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `ParsedData` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } JsonObject jsonObj = jsonElement.getAsJsonObject(); // ensure the optional json data is an array if present if (jsonObj.get("ParsingNotifications") != null diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/ParsingErrorCodes.java b/client/src/main/generated/com/regula/documentreader/webclient/model/ParsingErrorCodes.java new file mode 100644 index 0000000..d7a89da --- /dev/null +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/ParsingErrorCodes.java @@ -0,0 +1,446 @@ +/* + * 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.6.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.JsonElement; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +/** The enumeration contains error codes that can return during the RFID chip processing. */ +@JsonAdapter(ParsingErrorCodes.Adapter.class) +public enum ParsingErrorCodes { + + /** OK */ + errLDS_Ok(1l), + + /** ASN: Incorrect data */ + errLDS_ASN_IncorrectData(2147483649l), + + /** ASN: Not enough data */ + errLDS_ASN_NotEnoughData(2147483650l), + + /** ASN: Contents unexpected data */ + errLDS_ASN_Contents_UnexpectedData(2147483651l), + + /** ASN Signed data: Incorrect data */ + errLDS_ASN_SignedData_IncorrectData(2147483656l), + + /** ASN Signed data: Encap contents incorrect data */ + errLDS_ASN_SignedData_EncapContents_IncorrectData(2147483657l), + + /** ASN Signed data: Version incorrect data */ + errLDS_ASN_SignedData_Version_IncorrectData(2147483658l), + + /** ASN Signed data: Digest algorithms incorrect data */ + errLDS_ASN_SignedData_DigestAlgorithms_IncorrectData(2147483665l), + + /** ASN LDS object: Incorrect data */ + errLDS_ASN_LDSObject_IncorrectData(2147483667l), + + /** ASN LDS object: Version incorrect data */ + errLDS_ASN_LDSObject_Version_IncorrectData(2147483668l), + + /** ASN LDS object: Digest algorithm incorrect data */ + errLDS_ASN_LDSObject_DigestAlgorithm_IncorrectData(2147483669l), + + /** ASN LDS object: DG hashes incorrect data */ + errLDS_ASN_LDSObject_DGHashes_IncorrectData(2147483670l), + + /** ASN LDS object: Version info incorrect data */ + errLDS_ASN_LDSObject_VersionInfo_IncorrectData(2147483666l), + + /** ASN Certificate: Incorrect data */ + errLDS_ASN_Certificate_IncorrectData(2147483671l), + + /** ASN Certificate: Version incorrect data */ + errLDS_ASN_Certificate_Version_IncorrectData(2147483672l), + + /** ASN Certificate: SN incorrect data */ + errLDS_ASN_Certificate_SN_IncorrectData(2147483673l), + + /** ASN Certificate: Signature incorrect data */ + errLDS_ASN_Certificate_Signature_IncorrectData(2147483674l), + + /** ASN Certificate: Issuer incorrect data */ + errLDS_ASN_Certificate_Issuer_IncorrectData(2147483675l), + + /** ASN Certificate: Validity incorrect data */ + errLDS_ASN_Certificate_Validity_IncorrectData(2147483676l), + + /** ASN Certificate: Subject incorrect data */ + errLDS_ASN_Certificate_Subject_IncorrectData(2147483677l), + + /** ASN Certificate: Subject PK incorrect data */ + errLDS_ASN_Certificate_SubjectPK_IncorrectData(2147483678l), + + /** ASN Certificate: Extensions incorrect data */ + errLDS_ASN_Certificate_Extensions_IncorrectData(2147483679l), + + /** ASN Signer info: Incorrect data */ + errLDS_ASN_SignerInfo_IncorrectData(2147483680l), + + /** ASN Signer info: Version incorrect data */ + errLDS_ASN_SignerInfo_Version_IncorrectData(2147483681l), + + /** ASN Signer info: SID incorrect data */ + errLDS_ASN_SignerInfo_SID_IncorrectData(2147483682l), + + /** ASN Signer info: Digest algorithms incorrect data */ + errLDS_ASN_SignerInfo_DigestAlg_IncorrectData(2147483683l), + + /** ASN Signer info: Signed attributes incorrect data */ + errLDS_ASN_SignerInfo_SignedAttrs_IncorrectData(2147483684l), + + /** ASN Signer info: Sign algorithms incorrect data */ + errLDS_ASN_SignerInfo_SignAlg_IncorrectData(2147483685l), + + /** ASN Signer info: Signature incorrect data */ + errLDS_ASN_SignerInfo_Signature_IncorrectData(2147483686l), + + /** ASN Signer info: Unsigned attributes incorrect data */ + errLDS_ASN_SignerInfo_UnsignedAttrs_IncorrectData(2147483687l), + + /** ICAO LDS object: Unsupported digest algorithm */ + errLDS_ICAO_LDSObject_UnsupportedDigestAlgorithm(2147483696l), + + /** ICAO Signed data: Signer info empty */ + errLDS_ICAO_SignedData_SignerInfos_Empty(2147483697l), + + /** ICAO Signer info: Unsupported digest algorithm */ + errLDS_ICAO_SignerInfo_UnsupportedDigestAlgorithm(2147483698l), + + /** ICAO Signer info: Unsupported signature algorithm */ + errLDS_ICAO_SignerInfo_UnsupportedSignatureAlgorithm(2147483699l), + + /** ICAO Signer info: Message digest error */ + errLDS_ICAO_SignerInfo_MessageDigestError(2147483700l), + + /** ICAO Signer info: Signed attributes missed */ + errLDS_ICAO_SignerInfo_SignedAttrs_Missed(2147483702l), + + /** Auth: Signer info cannot find certificate */ + errLDS_Auth_SignerInfo_CantFindCertificate(2147483701l), + + /** Auth: Error */ + errLDS_Auth_Error(2147483728l), + + /** Auth: Unsupported signature algorithm */ + errLDS_Auth_UnsupportedSignatureAlgorithm(2147483729l), + + /** Auth: Unsupported public key algorithm */ + errLDS_Auth_UnsupportedPublicKeyAlgorithm(2147483730l), + + /** Auth: Messed algorithms */ + errLDS_Auth_MessedAlgorithms(2147483731l), + + /** Auth: Public key data invalid */ + errLDS_Auth_PublicKeyDataInvalid(2147483732l), + + /** Auth: Algorithm parameters data invalid */ + errLDS_Auth_AlgorithmParametersDataInvalid(2147483733l), + + /** Auth: Signature data invalid */ + errLDS_Auth_SignatureDataInvalid(2147483734l), + + /** Auth: Unsupported digest algorithm */ + errLDS_Auth_UnsupportedDigestAlgorithm(2147483735l), + + /** Auth: Signature data incorrect */ + errLDS_Auth_SignatureDataIncorrect(2147483736l), + + /** Auth: Algorithm parameters not defined */ + errLDS_Auth_AlgorithmParametersNotDefined(2147483737l), + + /** Auth: Signature check failed */ + errLDS_Auth_SignatureCheckFailed(2147483738l), + + /** DG: Wrong Tag */ + errLDS_DG_WrongTag(2147483760l), + + /** DG: Contents unexpected data */ + errLDS_DG_Contents_UnexpectedData(2147483761l), + + /** BAP: Symmetric Cypher Cannot Initialize */ + errLDS_BAP_SymmetricCypher_CantInitialize(2164260881l), + + /** PACE: Info Not Available */ + errLDS_PACE_Info_NotAvailable(2164260896l), + + /** PACE: Symmetric Cypher Cannot Initialize */ + errLDS_PACE_SymmetricCypher_CantInitialize(2164260897l), + + /** PACE: Key Agreement Cannot Initialize */ + errLDS_PACE_KeyAgreement_CantInitialize(2164260898l), + + /** PACE: Ephemeral Keys Cannot Create */ + errLDS_PACE_EphemeralKeys_CantCreate(2164260899l), + + /** PACE: Mapping Cannot Decode Nonce */ + errLDS_PACE_Mapping_CantDecodeNonce(2164260900l), + + /** PACE: Shared Secret Cannot Create */ + errLDS_PACE_SharedSecret_CantCreate(2164260901l), + + /** PACE: Domain Params Unsupported Format */ + errLDS_PACE_DomainParams_UnsupportedFormat(2164260902l), + + /** PACE: Ephemeral Keys Incorrect */ + errLDS_PACE_EphemeralKeys_Incorrect(2164260903l), + + /** PACE: Mapping Ephemeral Keys Incorrect */ + errLDS_PACE_Mapping_EphemeralKeys_Incorrect(2164260904l), + + /** PACE: Mapping Cannot Perform */ + errLDS_PACE_Mapping_CantPerform(2164260905l), + + /** PACE: Non-Matching Auth Tokens */ + errLDS_PACE_NonMatchingAuthTokens(2164260906l), + + /** PACE: CAM data incorrect */ + errLDS_PACE_CAM_Data_Incorrect(2164260907l), + + /** PACE: CAM data cannot verify */ + errLDS_PACE_CAM_Data_CantVerify(2164260908l), + + /** PACE: CAM data non-matching */ + errLDS_PACE_CAM_Data_NonMatching(2164260909l), + + /** PACE: IM scheme incorrect */ + errLDS_PACE_IM_Scheme_Incorrect(2164260910l), + + /** PACE: Random mapping failed */ + errLDS_PACE_IM_RandomMapping_Failed(2164260911l), + + /** CA: Cannot Find Public Key */ + errLDS_CA_CantFindPublicKey(2164260912l), + + /** CA: Cannot Find Info */ + errLDS_CA_CantFindInfo(2164260913l), + + /** CA: Incorrect Version */ + errLDS_CA_IncorrectVersion(2164260914l), + + /** CA: Cannot Find Domain Parameters */ + errLDS_CA_CantFindDomainParameters(2164260915l), + + /** CA: Key Agreement Cannot Initialize */ + errLDS_CA_KeyAgreement_CantInitialize(2164260916l), + + /** CA: Public Key Unsupported Algorithm */ + errLDS_CA_PublicKey_UnsupportedAlgorithm(2164260917l), + + /** CA: Ephemeral Keys Cannot Create */ + errLDS_CA_EphemeralKeys_CantCreate(2164260918l), + + /** CA: Shared Secret Cannot Create */ + errLDS_CA_SharedSecret_CantCreate(2164260919l), + + /** CA: Non-Matching Auth Tokens */ + errLDS_CA_NonMatchingAuthTokens(2164260920l), + + /** TA: Incorrect Version */ + errLDS_TA_IncorrectVersion(2164260928l), + + /** TA: Cannot Build Certificate Chain */ + errLDS_TA_CantBuildCertificateChain(2164260929l), + + /** TA: Cannot Find IS Private Key */ + errLDS_TA_CantFindISPrivateKey(2164260930l), + + /** TA: Public Key Unsupported Algorithm */ + errLDS_TA_PublicKey_UnsupportedAlgorithm(2164260931l), + + /** TA: Signature Building Error */ + errLDS_TA_SignatureBuildingError(2164260932l), + + /** TA: Invalid Key Algorithm Parameters */ + errLDS_TA_InvalidKeyAlgorithmParameters(2164260933l), + + /** AA: Public Key Unsupported Algorithm */ + errLDS_AA_PublicKey_UnsupportedAlgorithm(2164260944l), + + /** AA: Public Key Incorrect Data */ + errLDS_AA_PublicKey_IncorrectData(2164260945l), + + /** AA: Public Key Incorrect Parameters */ + errLDS_AA_PublicKey_IncorrectParameters(2164260946l), + + /** AA: Public Key Undefined Parameters */ + errLDS_AA_PublicKey_UndefinedParameters(2164260947l), + + /** AA: Signature Incorrect Data */ + errLDS_AA_Signature_IncorrectData(2164260948l), + + /** AA: Unsupported recovery scheme */ + errLDS_AA_UnsupportedRecoveryScheme(2164260949l), + + /** AA: Incorrect Trailer */ + errLDS_AA_IncorrectTrailer(2164260950l), + + /** AA: Unsupported Digest Algorithm */ + errLDS_AA_UnsupportedDigestAlgorithm(2164260951l), + + /** RI: Sector Key Cannot Find */ + errLDS_RI_SectorKey_CantFind(2164260976l), + + /** RI: Sector Key Incorrect Data */ + errLDS_RI_SectorKey_IncorrectData(2164260977l), + + /** RI: Sector Key Incomplete Data */ + errLDS_RI_SectorKey_IncompleteData(2164260978l), + + /** CV Certificate: Missing mandatory data PK */ + errLDS_CV_Certificate_MissingMandatoryData_PK(2164260960l), + + /** CV Certificate: Public key unsupported */ + errLDS_CV_Certificate_PublicKey_Unsupported(2164260962l), + + /** CV Certificate: CHAT unsupported terminal type */ + errLDS_CV_Certificate_CHAT_UnsupportedTerminalType(2164260963l), + + /** CV Certificate: Private key unsupported */ + errLDS_CV_Certificate_PrivateKey_Unsupported(2164260964l), + + /** CV Certificate: Private key invalid params */ + errLDS_CV_Certificate_PrivateKey_InvalidParams(2164260965l), + + /** CV Certificate: Incorrect data */ + errLDS_CV_Certificate_IncorrectData(2164261216l), + + /** CV Certificate: CPI incorrect data */ + errLDS_CV_Certificate_CPI_IncorrectData(2164261217l), + + /** CV Certificate: CAR incorrect data */ + errLDS_CV_Certificate_CAR_IncorrectData(2164261218l), + + /** CV Certificate: Public key incorrect data */ + errLDS_CV_Certificate_PublicKey_IncorrectData(2164261219l), + + /** CV Certificate: CHR incorrect data */ + errLDS_CV_Certificate_CHR_IncorrectData(2164261220l), + + /** CV Certificate: CHAT incorrect data */ + errLDS_CV_Certificate_CHAT_IncorrectData(2164261221l), + + /** CV Certificate: Valid from incorrect data */ + errLDS_CV_Certificate_ValidFrom_IncorrectData(2164261222l), + + /** CV Certificate: Valid to incorrect data */ + errLDS_CV_Certificate_ValidTo_IncorrectData(2164261223l), + + /** CV Certificate: Extensions incorrect data */ + errLDS_CV_Certificate_Extensions_IncorrectData(2164261224l), + + /** CV Certificate: Private key incorrect data */ + errLDS_CV_Certificate_PrivateKey_IncorrectData(2164261225l), + + /** CV Certificate: Private key missing */ + errLDS_CV_Certificate_PrivateKey_Missing(2164261226l), + + /** VDS: Unsupported version */ + errLDS_VDS_UnsupportedVersion(2164261376l), + + /** VDS: Issuing country size */ + errLDS_VDS_Issuing_Country_Size(2164261377l), + + /** VDS: Issuing country incorrect data */ + errLDS_VDS_Issuing_Country_IncorrectData(2164261378l), + + /** VDS: Signature certificate size */ + errLDS_VDS_Signer_Certificate_Size(2164261379l), + + /** VDS: Signature certificate data */ + errLDS_VDS_Signer_Certificate_Data(2164261380l), + + /** VDS: Signature incorrect data */ + errLDS_VDS_Signature_IncorrectData(2164261381l), + + /** VDS: Incorrect data */ + errLDS_VDS_NC_IncorrectData(2164261632l), + + /** VDS: Missing or incorrect data */ + errLDS_VDS_NC_MissingOrIncorrect_Data(2164261633l), + + /** VDS: Missing or incorrect header */ + errLDS_VDS_NC_MissingOrIncorrect_Header(2164261634l), + + /** VDS: Missing or incorrect type */ + errLDS_VDS_NC_MissingOrIncorrect_Type(2164261635l), + + /** VDS: Missing or incorrect version */ + errLDS_VDS_NC_MissingOrIncorrect_Version(2164261636l), + + /** VDS: Missing or incorrect issuing country */ + errLDS_VDS_NC_MissingOrIncorrect_IssuingCountry(2164261637l), + + /** VDS: Missing or incorrect message */ + errLDS_VDS_NC_MissingOrIncorrect_Message(2164261638l), + + /** VDS: Missing or incorrect signature */ + errLDS_VDS_NC_MissingOrIncorrect_Signature(2164261639l), + + /** VDS: Missing or incorrect signature algorithm */ + errLDS_VDS_NC_MissingOrIncorrect_SigAlgorithm(2164261640l), + + /** VDS: Missing or incorrect certificate */ + errLDS_VDS_NC_MissingOrIncorrect_Certificate(2164261641l), + + /** VDS: Missing or incorrect signature value */ + errLDS_VDS_NC_MissingOrIncorrect_SigValue(2164261642l); + + private Long value; + + ParsingErrorCodes(Long value) { + this.value = value; + } + + public Long getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static ParsingErrorCodes fromValue(Long value) { + for (ParsingErrorCodes b : ParsingErrorCodes.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final ParsingErrorCodes enumeration) + throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public ParsingErrorCodes read(final JsonReader jsonReader) throws IOException { + Long value = jsonReader.nextLong(); + return ParsingErrorCodes.fromValue(value); + } + } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + Long value = jsonElement.getAsLong(); + ParsingErrorCodes.fromValue(value); + } +} diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/PerDocumentConfig.java b/client/src/main/generated/com/regula/documentreader/webclient/model/PerDocumentConfig.java index 4a13379..2b6e401 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/PerDocumentConfig.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/PerDocumentConfig.java @@ -26,9 +26,7 @@ import java.util.ArrayList; import java.util.HashSet; import java.util.List; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** PerDocumentConfig */ @javax.annotation.Generated( @@ -163,16 +161,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!PerDocumentConfig.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `PerDocumentConfig` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } JsonObject jsonObj = jsonElement.getAsJsonObject(); // ensure the optional json data is an array if present if (jsonObj.get("docID") != null diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/PhotoIdentItem.java b/client/src/main/generated/com/regula/documentreader/webclient/model/PhotoIdentItem.java index 2d36c23..3843ec8 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/PhotoIdentItem.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/PhotoIdentItem.java @@ -26,9 +26,7 @@ import java.util.ArrayList; import java.util.HashSet; import java.util.List; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** PhotoIdentItem */ @javax.annotation.Generated( @@ -83,17 +81,11 @@ public class PhotoIdentItem { @javax.annotation.Nullable private Integer angle; - public static final String SERIALIZED_NAME_RESERVED1 = "Reserved1"; + public static final String SERIALIZED_NAME_RESULT = "Result"; - @SerializedName(SERIALIZED_NAME_RESERVED1) + @SerializedName(SERIALIZED_NAME_RESULT) @javax.annotation.Nullable - private Integer reserved1; - - public static final String SERIALIZED_NAME_RESERVED2 = "Reserved2"; - - @SerializedName(SERIALIZED_NAME_RESERVED2) - @javax.annotation.Nullable - private Integer reserved2; + private Integer result; public static final String SERIALIZED_NAME_RESERVED3 = "Reserved3"; @@ -263,42 +255,23 @@ public void setAngle(@javax.annotation.Nullable Integer angle) { this.angle = angle; } - public PhotoIdentItem reserved1(@javax.annotation.Nullable Integer reserved1) { - this.reserved1 = reserved1; + public PhotoIdentItem result(@javax.annotation.Nullable Integer result) { + this.result = result; return this; } /** - * Get reserved1 + * Get result * - * @return reserved1 + * @return result */ @javax.annotation.Nullable - public Integer getReserved1() { - return reserved1; - } - - public void setReserved1(@javax.annotation.Nullable Integer reserved1) { - this.reserved1 = reserved1; + public Integer getResult() { + return result; } - public PhotoIdentItem reserved2(@javax.annotation.Nullable Integer reserved2) { - this.reserved2 = reserved2; - return this; - } - - /** - * Get reserved2 - * - * @return reserved2 - */ - @javax.annotation.Nullable - public Integer getReserved2() { - return reserved2; - } - - public void setReserved2(@javax.annotation.Nullable Integer reserved2) { - this.reserved2 = reserved2; + public void setResult(@javax.annotation.Nullable Integer result) { + this.result = result; } public PhotoIdentItem reserved3(@javax.annotation.Nullable Integer reserved3) { @@ -337,8 +310,7 @@ public boolean equals(Object o) { && Objects.equals(this.fieldTypesList, photoIdentItem.fieldTypesList) && Objects.equals(this.step, photoIdentItem.step) && Objects.equals(this.angle, photoIdentItem.angle) - && Objects.equals(this.reserved1, photoIdentItem.reserved1) - && Objects.equals(this.reserved2, photoIdentItem.reserved2) + && Objects.equals(this.result, photoIdentItem.result) && Objects.equals(this.reserved3, photoIdentItem.reserved3); } @@ -353,8 +325,7 @@ public int hashCode() { fieldTypesList, step, angle, - reserved1, - reserved2, + result, reserved3); } @@ -370,8 +341,7 @@ public String toString() { sb.append(" fieldTypesList: ").append(toIndentedString(fieldTypesList)).append("\n"); sb.append(" step: ").append(toIndentedString(step)).append("\n"); sb.append(" angle: ").append(toIndentedString(angle)).append("\n"); - sb.append(" reserved1: ").append(toIndentedString(reserved1)).append("\n"); - sb.append(" reserved2: ").append(toIndentedString(reserved2)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); sb.append(" reserved3: ").append(toIndentedString(reserved3)).append("\n"); sb.append("}"); return sb.toString(); @@ -401,8 +371,7 @@ private String toIndentedString(Object o) { openapiFields.add("FieldTypesList"); openapiFields.add("Step"); openapiFields.add("Angle"); - openapiFields.add("Reserved1"); - openapiFields.add("Reserved2"); + openapiFields.add("Result"); openapiFields.add("Reserved3"); // a set of required properties/fields (JSON key names) @@ -430,17 +399,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!PhotoIdentItem.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `PhotoIdentItem` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : PhotoIdentItem.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/PhotoIdentResult.java b/client/src/main/generated/com/regula/documentreader/webclient/model/PhotoIdentResult.java index 2a043cf..ca61a2e 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/PhotoIdentResult.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/PhotoIdentResult.java @@ -26,9 +26,7 @@ import java.util.ArrayList; import java.util.HashSet; import java.util.List; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** PhotoIdentResult */ @javax.annotation.Generated( @@ -83,17 +81,11 @@ public class PhotoIdentResult extends AuthenticityCheckResultItem { @javax.annotation.Nullable private Integer angle; - public static final String SERIALIZED_NAME_RESERVED1 = "Reserved1"; + public static final String SERIALIZED_NAME_RESULT = "Result"; - @SerializedName(SERIALIZED_NAME_RESERVED1) + @SerializedName(SERIALIZED_NAME_RESULT) @javax.annotation.Nullable - private Integer reserved1; - - public static final String SERIALIZED_NAME_RESERVED2 = "Reserved2"; - - @SerializedName(SERIALIZED_NAME_RESERVED2) - @javax.annotation.Nullable - private Integer reserved2; + private Integer result; public static final String SERIALIZED_NAME_RESERVED3 = "Reserved3"; @@ -264,42 +256,23 @@ public void setAngle(@javax.annotation.Nullable Integer angle) { this.angle = angle; } - public PhotoIdentResult reserved1(@javax.annotation.Nullable Integer reserved1) { - this.reserved1 = reserved1; + public PhotoIdentResult result(@javax.annotation.Nullable Integer result) { + this.result = result; return this; } /** - * Get reserved1 + * Get result * - * @return reserved1 + * @return result */ @javax.annotation.Nullable - public Integer getReserved1() { - return reserved1; - } - - public void setReserved1(@javax.annotation.Nullable Integer reserved1) { - this.reserved1 = reserved1; + public Integer getResult() { + return result; } - public PhotoIdentResult reserved2(@javax.annotation.Nullable Integer reserved2) { - this.reserved2 = reserved2; - return this; - } - - /** - * Get reserved2 - * - * @return reserved2 - */ - @javax.annotation.Nullable - public Integer getReserved2() { - return reserved2; - } - - public void setReserved2(@javax.annotation.Nullable Integer reserved2) { - this.reserved2 = reserved2; + public void setResult(@javax.annotation.Nullable Integer result) { + this.result = result; } public PhotoIdentResult reserved3(@javax.annotation.Nullable Integer reserved3) { @@ -338,8 +311,7 @@ public boolean equals(Object o) { && Objects.equals(this.fieldTypesList, photoIdentResult.fieldTypesList) && Objects.equals(this.step, photoIdentResult.step) && Objects.equals(this.angle, photoIdentResult.angle) - && Objects.equals(this.reserved1, photoIdentResult.reserved1) - && Objects.equals(this.reserved2, photoIdentResult.reserved2) + && Objects.equals(this.result, photoIdentResult.result) && Objects.equals(this.reserved3, photoIdentResult.reserved3) && super.equals(o); } @@ -355,8 +327,7 @@ public int hashCode() { fieldTypesList, step, angle, - reserved1, - reserved2, + result, reserved3, super.hashCode()); } @@ -374,8 +345,7 @@ public String toString() { sb.append(" fieldTypesList: ").append(toIndentedString(fieldTypesList)).append("\n"); sb.append(" step: ").append(toIndentedString(step)).append("\n"); sb.append(" angle: ").append(toIndentedString(angle)).append("\n"); - sb.append(" reserved1: ").append(toIndentedString(reserved1)).append("\n"); - sb.append(" reserved2: ").append(toIndentedString(reserved2)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); sb.append(" reserved3: ").append(toIndentedString(reserved3)).append("\n"); sb.append("}"); return sb.toString(); @@ -409,8 +379,7 @@ private String toIndentedString(Object o) { openapiFields.add("FieldTypesList"); openapiFields.add("Step"); openapiFields.add("Angle"); - openapiFields.add("Reserved1"); - openapiFields.add("Reserved2"); + openapiFields.add("Result"); openapiFields.add("Reserved3"); // a set of required properties/fields (JSON key names) @@ -439,17 +408,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!PhotoIdentResult.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `PhotoIdentResult` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : PhotoIdentResult.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/Point.java b/client/src/main/generated/com/regula/documentreader/webclient/model/Point.java index 954a64e..5030c9a 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/Point.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/Point.java @@ -24,9 +24,7 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** Point */ @javax.annotation.Generated( @@ -153,17 +151,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!Point.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `Point` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : Point.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/PointArray.java b/client/src/main/generated/com/regula/documentreader/webclient/model/PointArray.java index e712579..c2abfc9 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/PointArray.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/PointArray.java @@ -27,9 +27,7 @@ import java.util.ArrayList; import java.util.HashSet; import java.util.List; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** PointArray */ @javax.annotation.Generated( @@ -137,17 +135,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!PointArray.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `PointArray` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : PointArray.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/PointsContainer.java b/client/src/main/generated/com/regula/documentreader/webclient/model/PointsContainer.java index 57b4c4c..ab9b951 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/PointsContainer.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/PointsContainer.java @@ -27,9 +27,7 @@ import java.util.ArrayList; import java.util.HashSet; import java.util.List; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** PointsContainer */ @javax.annotation.Generated( @@ -165,17 +163,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!PointsContainer.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `PointsContainer` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : PointsContainer.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/ProcessParams.java b/client/src/main/generated/com/regula/documentreader/webclient/model/ProcessParams.java index 188441d..4c31a16 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/ProcessParams.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/ProcessParams.java @@ -30,7 +30,6 @@ import java.util.List; import java.util.Map; import java.util.Objects; -import java.util.Set; /** ProcessParams */ @javax.annotation.Generated( @@ -2082,17 +2081,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!ProcessParams.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `ProcessParams` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : ProcessParams.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/ProcessParamsRfid.java b/client/src/main/generated/com/regula/documentreader/webclient/model/ProcessParamsRfid.java index 01dec61..6e1f6ba 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/ProcessParamsRfid.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/ProcessParamsRfid.java @@ -26,9 +26,7 @@ import java.util.ArrayList; import java.util.HashSet; import java.util.List; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** Params for the RFID chip data reprocessing */ @javax.annotation.Generated( @@ -140,16 +138,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!ProcessParamsRfid.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `ProcessParamsRfid` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } JsonObject jsonObj = jsonElement.getAsJsonObject(); // ensure the optional json data is an array if present if (jsonObj.get("paSensitiveCodesDisable") != null diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/ProcessRequest.java b/client/src/main/generated/com/regula/documentreader/webclient/model/ProcessRequest.java index c401289..66792b8 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/ProcessRequest.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/ProcessRequest.java @@ -30,7 +30,6 @@ import java.util.List; import java.util.Map; import java.util.Objects; -import java.util.Set; /** ProcessRequest */ @javax.annotation.Generated( @@ -514,17 +513,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!ProcessRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `ProcessRequest` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : ProcessRequest.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/ProcessRequestImage.java b/client/src/main/generated/com/regula/documentreader/webclient/model/ProcessRequestImage.java index adbf52e..88a79e1 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/ProcessRequestImage.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/ProcessRequestImage.java @@ -24,9 +24,7 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** ProcessRequestImage */ @javax.annotation.Generated( @@ -181,16 +179,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!ProcessRequestImage.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `ProcessRequestImage` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the optional field `ImageData` if (jsonObj.get("ImageData") != null && !jsonObj.get("ImageData").isJsonNull()) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/ProcessResponse.java b/client/src/main/generated/com/regula/documentreader/webclient/model/ProcessResponse.java index 685b040..a2ca3d3 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/ProcessResponse.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/ProcessResponse.java @@ -27,7 +27,6 @@ import java.util.HashSet; import java.util.Map; import java.util.Objects; -import java.util.Set; /** ProcessResponse */ @javax.annotation.Generated( @@ -413,17 +412,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!ProcessResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `ProcessResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : ProcessResponse.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/ProcessSystemInfo.java b/client/src/main/generated/com/regula/documentreader/webclient/model/ProcessSystemInfo.java index f056386..2c6a817 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/ProcessSystemInfo.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/ProcessSystemInfo.java @@ -24,9 +24,7 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** ProcessSystemInfo */ @javax.annotation.Generated( @@ -153,16 +151,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!ProcessSystemInfo.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `ProcessSystemInfo` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("license") != null && !jsonObj.get("license").isJsonNull()) && !jsonObj.get("license").isJsonPrimitive()) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/RFIDDocVisualExtendedField.java b/client/src/main/generated/com/regula/documentreader/webclient/model/RFIDDocVisualExtendedField.java index 470b5df..e4436c9 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/RFIDDocVisualExtendedField.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/RFIDDocVisualExtendedField.java @@ -25,9 +25,7 @@ import java.io.IOException; import java.math.BigDecimal; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** RFIDDocVisualExtendedField */ @javax.annotation.Generated( @@ -236,17 +234,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!RFIDDocVisualExtendedField.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `RFIDDocVisualExtendedField` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : RFIDDocVisualExtendedField.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/RFIDDocVisualExtendedFieldItem.java b/client/src/main/generated/com/regula/documentreader/webclient/model/RFIDDocVisualExtendedFieldItem.java index 6d50db7..af1b7cf 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/RFIDDocVisualExtendedFieldItem.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/RFIDDocVisualExtendedFieldItem.java @@ -25,9 +25,7 @@ import java.io.IOException; import java.math.BigDecimal; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** RFIDDocVisualExtendedFieldItem */ @javax.annotation.Generated( @@ -217,17 +215,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!RFIDDocVisualExtendedFieldItem.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `RFIDDocVisualExtendedFieldItem` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : RFIDDocVisualExtendedFieldItem.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/RFIDDocVisualExtendedInfo.java b/client/src/main/generated/com/regula/documentreader/webclient/model/RFIDDocVisualExtendedInfo.java index d97ee30..54fc400 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/RFIDDocVisualExtendedInfo.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/RFIDDocVisualExtendedInfo.java @@ -28,9 +28,7 @@ import java.util.ArrayList; import java.util.HashSet; import java.util.List; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** Container for extracted text fields. Fields are identified by type and language */ @javax.annotation.Generated( @@ -170,17 +168,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!RFIDDocVisualExtendedInfo.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `RFIDDocVisualExtendedInfo` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : RFIDDocVisualExtendedInfo.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/RFIDDocVisualExtendedInfoItem.java b/client/src/main/generated/com/regula/documentreader/webclient/model/RFIDDocVisualExtendedInfoItem.java index 0465a66..b0fc038 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/RFIDDocVisualExtendedInfoItem.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/RFIDDocVisualExtendedInfoItem.java @@ -24,9 +24,7 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** RFIDDocVisualExtendedInfoItem */ @javax.annotation.Generated( @@ -132,17 +130,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!RFIDDocVisualExtendedInfoItem.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `RFIDDocVisualExtendedInfoItem` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : RFIDDocVisualExtendedInfoItem.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/RFIDGraphicsInfoResult.java b/client/src/main/generated/com/regula/documentreader/webclient/model/RFIDGraphicsInfoResult.java index b1f6abd..2c61d36 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/RFIDGraphicsInfoResult.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/RFIDGraphicsInfoResult.java @@ -24,9 +24,7 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** RFIDGraphicsInfoResult */ @javax.annotation.Generated( @@ -140,17 +138,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!RFIDGraphicsInfoResult.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `RFIDGraphicsInfoResult` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : RFIDGraphicsInfoResult.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/RFIDTextDataResult.java b/client/src/main/generated/com/regula/documentreader/webclient/model/RFIDTextDataResult.java index 869c593..1183abe 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/RFIDTextDataResult.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/RFIDTextDataResult.java @@ -24,9 +24,7 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** RFIDTextDataResult */ @javax.annotation.Generated( @@ -138,17 +136,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!RFIDTextDataResult.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `RFIDTextDataResult` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : RFIDTextDataResult.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/RawImageContainerItem.java b/client/src/main/generated/com/regula/documentreader/webclient/model/RawImageContainerItem.java index f4c7461..f5a1882 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/RawImageContainerItem.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/RawImageContainerItem.java @@ -24,9 +24,7 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** RawImageContainerItem */ @javax.annotation.Generated( @@ -127,17 +125,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!RawImageContainerItem.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `RawImageContainerItem` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : RawImageContainerItem.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/RawImageContainerList.java b/client/src/main/generated/com/regula/documentreader/webclient/model/RawImageContainerList.java index 2a0c839..61fa3e4 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/RawImageContainerList.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/RawImageContainerList.java @@ -27,9 +27,7 @@ import java.util.ArrayList; import java.util.HashSet; import java.util.List; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** RawImageContainerList */ @javax.annotation.Generated( @@ -166,17 +164,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!RawImageContainerList.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `RawImageContainerList` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : RawImageContainerList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/RectangleCoordinates.java b/client/src/main/generated/com/regula/documentreader/webclient/model/RectangleCoordinates.java index 0378012..55ca79d 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/RectangleCoordinates.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/RectangleCoordinates.java @@ -24,9 +24,7 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** * Coordinates of the rectangle region on a document image(result type 1). Represented by two points @@ -216,17 +214,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!RectangleCoordinates.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `RectangleCoordinates` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : RectangleCoordinates.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/ResultMRZDetector.java b/client/src/main/generated/com/regula/documentreader/webclient/model/ResultMRZDetector.java index a25cdac..aaf141d 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/ResultMRZDetector.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/ResultMRZDetector.java @@ -28,9 +28,7 @@ import java.util.ArrayList; import java.util.HashSet; import java.util.List; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** ResultMRZDetector */ @javax.annotation.Generated( @@ -234,17 +232,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!ResultMRZDetector.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `ResultMRZDetector` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : ResultMRZDetector.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/ResultMRZDetectorItem.java b/client/src/main/generated/com/regula/documentreader/webclient/model/ResultMRZDetectorItem.java index 553c430..f648f76 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/ResultMRZDetectorItem.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/ResultMRZDetectorItem.java @@ -24,9 +24,7 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** ResultMRZDetectorItem */ @javax.annotation.Generated( @@ -127,17 +125,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!ResultMRZDetectorItem.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `ResultMRZDetectorItem` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : ResultMRZDetectorItem.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/RfidAccessControlInfo.java b/client/src/main/generated/com/regula/documentreader/webclient/model/RfidAccessControlInfo.java index 9cf829f..33afa2e 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/RfidAccessControlInfo.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/RfidAccessControlInfo.java @@ -27,9 +27,7 @@ import java.util.ArrayList; import java.util.HashSet; import java.util.List; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** * Structure is used to describe the results of a single authentication procedure or a procedure of @@ -271,17 +269,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!RfidAccessControlInfo.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `RfidAccessControlInfo` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : RfidAccessControlInfo.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/RfidAccessKey.java b/client/src/main/generated/com/regula/documentreader/webclient/model/RfidAccessKey.java index c861941..1324e7e 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/RfidAccessKey.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/RfidAccessKey.java @@ -24,9 +24,7 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** * Structure is used to describe the contents of secure data access key within the context of the @@ -221,17 +219,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!RfidAccessKey.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `RfidAccessKey` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : RfidAccessKey.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/RfidApplication.java b/client/src/main/generated/com/regula/documentreader/webclient/model/RfidApplication.java index a3df2e7..19feb96 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/RfidApplication.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/RfidApplication.java @@ -27,9 +27,7 @@ import java.util.ArrayList; import java.util.HashSet; import java.util.List; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** * Structure is used to describe the contents of a single LDS application and their analysis within @@ -315,17 +313,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!RfidApplication.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `RfidApplication` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : RfidApplication.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/RfidAttributeData.java b/client/src/main/generated/com/regula/documentreader/webclient/model/RfidAttributeData.java index 06bf0f9..155dee9 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/RfidAttributeData.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/RfidAttributeData.java @@ -24,9 +24,7 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** Structure contains the data of one attribute of the digital signature object. */ @javax.annotation.Generated( @@ -156,17 +154,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!RfidAttributeData.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `RfidAttributeData` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : RfidAttributeData.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/RfidAttributeName.java b/client/src/main/generated/com/regula/documentreader/webclient/model/RfidAttributeName.java index 6a84d51..77a73ac 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/RfidAttributeName.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/RfidAttributeName.java @@ -24,9 +24,7 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** * Structure contains information that serves as the distinguished name (identifier) of an object. @@ -158,17 +156,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!RfidAttributeName.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `RfidAttributeName` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : RfidAttributeName.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/RfidCardPropertiesExt.java b/client/src/main/generated/com/regula/documentreader/webclient/model/RfidCardPropertiesExt.java index 7ab87fe..4dcb2be 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/RfidCardPropertiesExt.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/RfidCardPropertiesExt.java @@ -25,9 +25,7 @@ import java.io.IOException; import java.math.BigDecimal; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** * Structure is used to store extended information about the characteristics of the RFID-chip @@ -525,17 +523,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!RfidCardPropertiesExt.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `RfidCardPropertiesExt` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : RfidCardPropertiesExt.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/RfidCertificateEx.java b/client/src/main/generated/com/regula/documentreader/webclient/model/RfidCertificateEx.java index bba031b..1ba31ce 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/RfidCertificateEx.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/RfidCertificateEx.java @@ -28,9 +28,7 @@ import java.util.ArrayList; import java.util.HashSet; import java.util.List; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** * Structure is used to describe the certificate contents used for the digital signature @@ -516,17 +514,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!RfidCertificateEx.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `RfidCertificateEx` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : RfidCertificateEx.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/RfidDG1.java b/client/src/main/generated/com/regula/documentreader/webclient/model/RfidDG1.java index 5c1e374..7994d3c 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/RfidDG1.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/RfidDG1.java @@ -25,9 +25,7 @@ import java.io.IOException; import java.math.BigDecimal; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** * Structure used to store the contents of EF.DG1 informational data group of ePassport application @@ -594,17 +592,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!RfidDG1.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `RfidDG1` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : RfidDG1.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/RfidDataFile.java b/client/src/main/generated/com/regula/documentreader/webclient/model/RfidDataFile.java index 4863f09..14456ea 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/RfidDataFile.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/RfidDataFile.java @@ -27,9 +27,7 @@ import java.util.ArrayList; import java.util.HashSet; import java.util.List; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** * Structure is used to describe the contents of a single file of the LDS of electronic document and @@ -500,17 +498,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!RfidDataFile.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `RfidDataFile` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : RfidDataFile.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/RfidDistinguishedName.java b/client/src/main/generated/com/regula/documentreader/webclient/model/RfidDistinguishedName.java index f53442e..1976442 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/RfidDistinguishedName.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/RfidDistinguishedName.java @@ -27,9 +27,7 @@ import java.util.ArrayList; import java.util.HashSet; import java.util.List; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** Contents of the identifier in binary form. Base64 encoded. */ @javax.annotation.Generated( @@ -196,17 +194,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!RfidDistinguishedName.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `RfidDistinguishedName` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : RfidDistinguishedName.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/RfidOrigin.java b/client/src/main/generated/com/regula/documentreader/webclient/model/RfidOrigin.java index 76fd46a..56cb3cc 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/RfidOrigin.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/RfidOrigin.java @@ -24,9 +24,7 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** Location of data in RFID chip */ @javax.annotation.Generated( @@ -214,17 +212,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!RfidOrigin.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `RfidOrigin` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : RfidOrigin.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/RfidPkiExtension.java b/client/src/main/generated/com/regula/documentreader/webclient/model/RfidPkiExtension.java index 567620c..fba2df3 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/RfidPkiExtension.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/RfidPkiExtension.java @@ -24,9 +24,7 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** * Extension identifier (OID, ASCII string); Contents of the identifier in the format S1 (S2), where @@ -159,17 +157,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!RfidPkiExtension.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `RfidPkiExtension` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : RfidPkiExtension.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/RfidRawData.java b/client/src/main/generated/com/regula/documentreader/webclient/model/RfidRawData.java index aac3419..ce9397e 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/RfidRawData.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/RfidRawData.java @@ -24,9 +24,7 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** RfidRawData */ @javax.annotation.Generated( @@ -155,17 +153,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!RfidRawData.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `RfidRawData` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : RfidRawData.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/RfidSecurityObject.java b/client/src/main/generated/com/regula/documentreader/webclient/model/RfidSecurityObject.java index c50ed63..a6e803d 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/RfidSecurityObject.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/RfidSecurityObject.java @@ -28,9 +28,7 @@ import java.util.ArrayList; import java.util.HashSet; import java.util.List; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** * Structure is used to describe the contents of a single document security object (SO) and the @@ -268,17 +266,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!RfidSecurityObject.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `RfidSecurityObject` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : RfidSecurityObject.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/RfidSessionData.java b/client/src/main/generated/com/regula/documentreader/webclient/model/RfidSessionData.java index d848a85..b817d13 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/RfidSessionData.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/RfidSessionData.java @@ -28,9 +28,7 @@ import java.util.ArrayList; import java.util.HashSet; import java.util.List; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** * Structure is used to describe the results of work with the SDK within the context of the current @@ -652,17 +650,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!RfidSessionData.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `RfidSessionData` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : RfidSessionData.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/RfidSignerInfoEx.java b/client/src/main/generated/com/regula/documentreader/webclient/model/RfidSignerInfoEx.java index ddaa976..e5b7f4d 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/RfidSignerInfoEx.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/RfidSignerInfoEx.java @@ -28,9 +28,7 @@ import java.util.ArrayList; import java.util.HashSet; import java.util.List; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** * Structure is used to describe the contents of a single copy of digital signature of the document @@ -499,17 +497,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!RfidSignerInfoEx.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `RfidSignerInfoEx` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : RfidSignerInfoEx.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/RfidTerminal.java b/client/src/main/generated/com/regula/documentreader/webclient/model/RfidTerminal.java index 4a926bc..7faec5f 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/RfidTerminal.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/RfidTerminal.java @@ -25,9 +25,7 @@ import java.io.IOException; import java.math.BigDecimal; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** * Structure is used to describe the terminal type within the context of the communication session @@ -190,17 +188,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!RfidTerminal.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `RfidTerminal` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : RfidTerminal.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/RfidValidity.java b/client/src/main/generated/com/regula/documentreader/webclient/model/RfidValidity.java index 4595f8e..9e95ba1 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/RfidValidity.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/RfidValidity.java @@ -24,9 +24,7 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** Structure contains information on a certificate validity. */ @javax.annotation.Generated( @@ -155,17 +153,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!RfidValidity.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `RfidValidity` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : RfidValidity.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/SecurityFeatureItem.java b/client/src/main/generated/com/regula/documentreader/webclient/model/SecurityFeatureItem.java index 487c8fc..93bb2e0 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/SecurityFeatureItem.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/SecurityFeatureItem.java @@ -24,9 +24,7 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** SecurityFeatureItem */ @javax.annotation.Generated( @@ -63,6 +61,12 @@ public class SecurityFeatureItem { @javax.annotation.Nullable private AreaContainer areaList; + public static final String SERIALIZED_NAME_RESULT = "Result"; + + @SerializedName(SERIALIZED_NAME_RESULT) + @javax.annotation.Nullable + private Integer result; + public static final String SERIALIZED_NAME_RESERVED2 = "Reserved2"; @SerializedName(SERIALIZED_NAME_RESERVED2) @@ -168,6 +172,25 @@ public void setAreaList(@javax.annotation.Nullable AreaContainer areaList) { this.areaList = areaList; } + public SecurityFeatureItem result(@javax.annotation.Nullable Integer result) { + this.result = result; + return this; + } + + /** + * Get result + * + * @return result + */ + @javax.annotation.Nullable + public Integer getResult() { + return result; + } + + public void setResult(@javax.annotation.Nullable Integer result) { + this.result = result; + } + public SecurityFeatureItem reserved2(@javax.annotation.Nullable Integer reserved2) { this.reserved2 = reserved2; return this; @@ -201,12 +224,14 @@ public boolean equals(Object o) { && Objects.equals(this.visibility, securityFeatureItem.visibility) && Objects.equals(this.criticalFlag, securityFeatureItem.criticalFlag) && Objects.equals(this.areaList, securityFeatureItem.areaList) + && Objects.equals(this.result, securityFeatureItem.result) && Objects.equals(this.reserved2, securityFeatureItem.reserved2); } @Override public int hashCode() { - return Objects.hash(elementType, elementRect, visibility, criticalFlag, areaList, reserved2); + return Objects.hash( + elementType, elementRect, visibility, criticalFlag, areaList, result, reserved2); } @Override @@ -218,6 +243,7 @@ public String toString() { sb.append(" visibility: ").append(toIndentedString(visibility)).append("\n"); sb.append(" criticalFlag: ").append(toIndentedString(criticalFlag)).append("\n"); sb.append(" areaList: ").append(toIndentedString(areaList)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); sb.append(" reserved2: ").append(toIndentedString(reserved2)).append("\n"); sb.append("}"); return sb.toString(); @@ -244,6 +270,7 @@ private String toIndentedString(Object o) { openapiFields.add("Visibility"); openapiFields.add("CriticalFlag"); openapiFields.add("AreaList"); + openapiFields.add("Result"); openapiFields.add("Reserved2"); // a set of required properties/fields (JSON key names) @@ -271,17 +298,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!SecurityFeatureItem.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `SecurityFeatureItem` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : SecurityFeatureItem.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/SecurityFeatureResult.java b/client/src/main/generated/com/regula/documentreader/webclient/model/SecurityFeatureResult.java index f5f0bfc..442d276 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/SecurityFeatureResult.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/SecurityFeatureResult.java @@ -24,9 +24,7 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** SecurityFeatureResult */ @javax.annotation.Generated( @@ -63,6 +61,12 @@ public class SecurityFeatureResult extends AuthenticityCheckResultItem { @javax.annotation.Nullable private AreaContainer areaList; + public static final String SERIALIZED_NAME_RESULT = "Result"; + + @SerializedName(SERIALIZED_NAME_RESULT) + @javax.annotation.Nullable + private Integer result; + public static final String SERIALIZED_NAME_RESERVED2 = "Reserved2"; @SerializedName(SERIALIZED_NAME_RESERVED2) @@ -168,6 +172,25 @@ public void setAreaList(@javax.annotation.Nullable AreaContainer areaList) { this.areaList = areaList; } + public SecurityFeatureResult result(@javax.annotation.Nullable Integer result) { + this.result = result; + return this; + } + + /** + * Get result + * + * @return result + */ + @javax.annotation.Nullable + public Integer getResult() { + return result; + } + + public void setResult(@javax.annotation.Nullable Integer result) { + this.result = result; + } + public SecurityFeatureResult reserved2(@javax.annotation.Nullable Integer reserved2) { this.reserved2 = reserved2; return this; @@ -201,6 +224,7 @@ public boolean equals(Object o) { && Objects.equals(this.visibility, securityFeatureResult.visibility) && Objects.equals(this.criticalFlag, securityFeatureResult.criticalFlag) && Objects.equals(this.areaList, securityFeatureResult.areaList) + && Objects.equals(this.result, securityFeatureResult.result) && Objects.equals(this.reserved2, securityFeatureResult.reserved2) && super.equals(o); } @@ -208,7 +232,14 @@ public boolean equals(Object o) { @Override public int hashCode() { return Objects.hash( - elementType, elementRect, visibility, criticalFlag, areaList, reserved2, super.hashCode()); + elementType, + elementRect, + visibility, + criticalFlag, + areaList, + result, + reserved2, + super.hashCode()); } @Override @@ -221,6 +252,7 @@ public String toString() { sb.append(" visibility: ").append(toIndentedString(visibility)).append("\n"); sb.append(" criticalFlag: ").append(toIndentedString(criticalFlag)).append("\n"); sb.append(" areaList: ").append(toIndentedString(areaList)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); sb.append(" reserved2: ").append(toIndentedString(reserved2)).append("\n"); sb.append("}"); return sb.toString(); @@ -251,6 +283,7 @@ private String toIndentedString(Object o) { openapiFields.add("Visibility"); openapiFields.add("CriticalFlag"); openapiFields.add("AreaList"); + openapiFields.add("Result"); openapiFields.add("Reserved2"); // a set of required properties/fields (JSON key names) @@ -279,17 +312,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!SecurityFeatureResult.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `SecurityFeatureResult` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : SecurityFeatureResult.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/SecurityObjectCertificates.java b/client/src/main/generated/com/regula/documentreader/webclient/model/SecurityObjectCertificates.java index 7b6d2ed..62e5616 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/SecurityObjectCertificates.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/SecurityObjectCertificates.java @@ -24,9 +24,7 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** SecurityObjectCertificates */ @javax.annotation.Generated( @@ -126,16 +124,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!SecurityObjectCertificates.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `SecurityObjectCertificates` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the optional field `Certificate_Data` if (jsonObj.get("Certificate_Data") != null && !jsonObj.get("Certificate_Data").isJsonNull()) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/SourceValidity.java b/client/src/main/generated/com/regula/documentreader/webclient/model/SourceValidity.java index 18af601..884dc7b 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/SourceValidity.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/SourceValidity.java @@ -24,9 +24,7 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** SourceValidity */ @javax.annotation.Generated( @@ -155,17 +153,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!SourceValidity.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `SourceValidity` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : SourceValidity.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/Status.java b/client/src/main/generated/com/regula/documentreader/webclient/model/Status.java index 44fa2cf..9c3e168 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/Status.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/Status.java @@ -24,9 +24,7 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** Status */ @javax.annotation.Generated( @@ -299,17 +297,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!Status.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `Status` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : Status.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/StatusItem.java b/client/src/main/generated/com/regula/documentreader/webclient/model/StatusItem.java index c827c05..3c7b1f3 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/StatusItem.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/StatusItem.java @@ -24,9 +24,7 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** StatusItem */ @javax.annotation.Generated( @@ -126,17 +124,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!StatusItem.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `StatusItem` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : StatusItem.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/StatusResult.java b/client/src/main/generated/com/regula/documentreader/webclient/model/StatusResult.java index 6e7e9b0..153873e 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/StatusResult.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/StatusResult.java @@ -24,9 +24,7 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** StatusResult */ @javax.annotation.Generated( @@ -133,17 +131,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!StatusResult.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `StatusResult` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : StatusResult.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/StringItem.java b/client/src/main/generated/com/regula/documentreader/webclient/model/StringItem.java index 934ea9d..6b959a0 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/StringItem.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/StringItem.java @@ -28,9 +28,7 @@ import java.util.ArrayList; import java.util.HashSet; import java.util.List; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** StringItem */ @javax.annotation.Generated( @@ -634,17 +632,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!StringItem.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `StringItem` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : StringItem.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/StringRecognitionResult.java b/client/src/main/generated/com/regula/documentreader/webclient/model/StringRecognitionResult.java index 25b22f8..d4822fe 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/StringRecognitionResult.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/StringRecognitionResult.java @@ -28,9 +28,7 @@ import java.util.ArrayList; import java.util.HashSet; import java.util.List; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** Describes single row recognition results in multi-line text field of a document */ @javax.annotation.Generated( @@ -254,17 +252,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!StringRecognitionResult.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `StringRecognitionResult` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : StringRecognitionResult.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/Symbol.java b/client/src/main/generated/com/regula/documentreader/webclient/model/Symbol.java index ef8bd6d..51d7c8a 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/Symbol.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/Symbol.java @@ -26,9 +26,7 @@ import java.util.ArrayList; import java.util.HashSet; import java.util.List; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** Symbol */ @javax.annotation.Generated( @@ -135,17 +133,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!Symbol.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `Symbol` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : Symbol.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/SymbolCandidate.java b/client/src/main/generated/com/regula/documentreader/webclient/model/SymbolCandidate.java index 152d702..7b1a046 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/SymbolCandidate.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/SymbolCandidate.java @@ -24,9 +24,7 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** Describes an individual character recognition candidate */ @javax.annotation.Generated( @@ -211,17 +209,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!SymbolCandidate.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `SymbolCandidate` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : SymbolCandidate.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/SymbolEstimationItem.java b/client/src/main/generated/com/regula/documentreader/webclient/model/SymbolEstimationItem.java index 57763ba..864c4b2 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/SymbolEstimationItem.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/SymbolEstimationItem.java @@ -25,9 +25,7 @@ import java.io.IOException; import java.math.BigDecimal; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** SymbolEstimationItem */ @javax.annotation.Generated( @@ -641,17 +639,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!SymbolEstimationItem.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `SymbolEstimationItem` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : SymbolEstimationItem.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/SymbolRecognitionResult.java b/client/src/main/generated/com/regula/documentreader/webclient/model/SymbolRecognitionResult.java index 6a16209..858f8da 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/SymbolRecognitionResult.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/SymbolRecognitionResult.java @@ -28,9 +28,7 @@ import java.util.ArrayList; import java.util.HashSet; import java.util.List; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** Describes a single character recognition results in the text field line */ @javax.annotation.Generated( @@ -286,17 +284,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!SymbolRecognitionResult.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `SymbolRecognitionResult` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : SymbolRecognitionResult.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/TDocBinaryInfo.java b/client/src/main/generated/com/regula/documentreader/webclient/model/TDocBinaryInfo.java index 6a86836..40a3c7c 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/TDocBinaryInfo.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/TDocBinaryInfo.java @@ -27,9 +27,7 @@ import java.util.ArrayList; import java.util.HashSet; import java.util.List; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** TDocBinaryInfo */ @javax.annotation.Generated( @@ -164,16 +162,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!TDocBinaryInfo.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `TDocBinaryInfo` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the optional field `RFID_BINARY_DATA` if (jsonObj.get("RFID_BINARY_DATA") != null && !jsonObj.get("RFID_BINARY_DATA").isJsonNull()) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/TDocBinaryInfoItem.java b/client/src/main/generated/com/regula/documentreader/webclient/model/TDocBinaryInfoItem.java index b56f0b5..14c02c1 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/TDocBinaryInfoItem.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/TDocBinaryInfoItem.java @@ -24,9 +24,7 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** TDocBinaryInfoItem */ @javax.annotation.Generated( @@ -127,17 +125,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!TDocBinaryInfoItem.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `TDocBinaryInfoItem` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : TDocBinaryInfoItem.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/TOriginalRFIDGraphicsInfo.java b/client/src/main/generated/com/regula/documentreader/webclient/model/TOriginalRFIDGraphicsInfo.java index d6fc936..f10d480 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/TOriginalRFIDGraphicsInfo.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/TOriginalRFIDGraphicsInfo.java @@ -27,9 +27,7 @@ import java.util.ArrayList; import java.util.HashSet; import java.util.List; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** TOriginalRFIDGraphicsInfo */ @javax.annotation.Generated( @@ -144,17 +142,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!TOriginalRFIDGraphicsInfo.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `TOriginalRFIDGraphicsInfo` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : TOriginalRFIDGraphicsInfo.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/TOriginalRFIDGraphicsInfoItem.java b/client/src/main/generated/com/regula/documentreader/webclient/model/TOriginalRFIDGraphicsInfoItem.java index 0d26626..554be91 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/TOriginalRFIDGraphicsInfoItem.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/TOriginalRFIDGraphicsInfoItem.java @@ -24,9 +24,7 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** TOriginalRFIDGraphicsInfoItem */ @javax.annotation.Generated( @@ -133,17 +131,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!TOriginalRFIDGraphicsInfoItem.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `TOriginalRFIDGraphicsInfoItem` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : TOriginalRFIDGraphicsInfoItem.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/Text.java b/client/src/main/generated/com/regula/documentreader/webclient/model/Text.java index dbd2e3f..556e8bb 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/Text.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/Text.java @@ -27,9 +27,7 @@ import java.util.ArrayList; import java.util.HashSet; import java.util.List; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** Contains all document text fields data with validity and cross-source compare checks */ @javax.annotation.Generated( @@ -294,17 +292,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!Text.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `Text` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : Text.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/TextAvailableSource.java b/client/src/main/generated/com/regula/documentreader/webclient/model/TextAvailableSource.java index 62caeac..a66129d 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/TextAvailableSource.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/TextAvailableSource.java @@ -24,9 +24,7 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** TextAvailableSource */ @javax.annotation.Generated( @@ -183,17 +181,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!TextAvailableSource.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `TextAvailableSource` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : TextAvailableSource.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/TextDataResult.java b/client/src/main/generated/com/regula/documentreader/webclient/model/TextDataResult.java index f52a2c2..fb98220 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/TextDataResult.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/TextDataResult.java @@ -24,9 +24,7 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** * Text fields extracted from one document source. Contains results of specific source for each @@ -141,17 +139,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!TextDataResult.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `TextDataResult` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : TextDataResult.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/TextField.java b/client/src/main/generated/com/regula/documentreader/webclient/model/TextField.java index ab3b882..0f943cf 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/TextField.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/TextField.java @@ -27,9 +27,7 @@ import java.util.ArrayList; import java.util.HashSet; import java.util.List; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** TextField */ @javax.annotation.Generated( @@ -458,17 +456,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!TextField.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `TextField` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : TextField.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/TextFieldValue.java b/client/src/main/generated/com/regula/documentreader/webclient/model/TextFieldValue.java index 1ed6013..a4ef342 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/TextFieldValue.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/TextFieldValue.java @@ -27,9 +27,7 @@ import java.util.ArrayList; import java.util.HashSet; import java.util.List; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** TextFieldValue */ @javax.annotation.Generated( @@ -405,17 +403,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!TextFieldValue.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `TextFieldValue` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : TextFieldValue.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/TextItem.java b/client/src/main/generated/com/regula/documentreader/webclient/model/TextItem.java index e72616a..4eb232a 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/TextItem.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/TextItem.java @@ -24,9 +24,7 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** TextItem */ @javax.annotation.Generated( @@ -126,17 +124,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!TextItem.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `TextItem` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : TextItem.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/TextResult.java b/client/src/main/generated/com/regula/documentreader/webclient/model/TextResult.java index 260ec89..faba0ec 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/TextResult.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/TextResult.java @@ -24,9 +24,7 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** TextResult */ @javax.annotation.Generated( @@ -133,17 +131,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!TextResult.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `TextResult` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : TextResult.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/TransactionImage.java b/client/src/main/generated/com/regula/documentreader/webclient/model/TransactionImage.java index 7b9aaaa..1daca14 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/TransactionImage.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/TransactionImage.java @@ -24,9 +24,7 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** TransactionImage */ @javax.annotation.Generated( @@ -125,16 +123,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!TransactionImage.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `TransactionImage` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the optional field `image` if (jsonObj.get("image") != null && !jsonObj.get("image").isJsonNull()) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/TransactionInfo.java b/client/src/main/generated/com/regula/documentreader/webclient/model/TransactionInfo.java index b2b93c0..4cac640 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/TransactionInfo.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/TransactionInfo.java @@ -24,9 +24,7 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** TransactionInfo */ @javax.annotation.Generated( @@ -330,16 +328,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!TransactionInfo.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `TransactionInfo` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("ComputerName") != null && !jsonObj.get("ComputerName").isJsonNull()) && !jsonObj.get("ComputerName").isJsonPrimitive()) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/TransactionProcessGetResponse.java b/client/src/main/generated/com/regula/documentreader/webclient/model/TransactionProcessGetResponse.java index 0dd1356..511cb79 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/TransactionProcessGetResponse.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/TransactionProcessGetResponse.java @@ -24,9 +24,7 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; import java.util.UUID; /** TransactionProcessGetResponse */ @@ -212,16 +210,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!TransactionProcessGetResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `TransactionProcessGetResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("transactionId") != null && !jsonObj.get("transactionId").isJsonNull()) && !jsonObj.get("transactionId").isJsonPrimitive()) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/TransactionProcessRequest.java b/client/src/main/generated/com/regula/documentreader/webclient/model/TransactionProcessRequest.java index 261c0ca..0a19aae 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/TransactionProcessRequest.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/TransactionProcessRequest.java @@ -30,7 +30,6 @@ import java.util.List; import java.util.Map; import java.util.Objects; -import java.util.Set; /** TransactionProcessRequest */ @javax.annotation.Generated( @@ -49,6 +48,24 @@ public class TransactionProcessRequest { @javax.annotation.Nullable private List list; + public static final String SERIALIZED_NAME_TAG = "tag"; + + @SerializedName(SERIALIZED_NAME_TAG) + @javax.annotation.Nullable + private String tag; + + public static final String SERIALIZED_NAME_TENANT = "tenant"; + + @SerializedName(SERIALIZED_NAME_TENANT) + @javax.annotation.Nullable + private String tenant; + + public static final String SERIALIZED_NAME_ENV = "env"; + + @SerializedName(SERIALIZED_NAME_ENV) + @javax.annotation.Nullable + private String env; + public static final String SERIALIZED_NAME_LIVE_PORTRAIT = "livePortrait"; @SerializedName(SERIALIZED_NAME_LIVE_PORTRAIT) @@ -134,6 +151,63 @@ public void setList(@javax.annotation.Nullable List list) { this.list = list; } + public TransactionProcessRequest tag(@javax.annotation.Nullable String tag) { + this.tag = tag; + return this; + } + + /** + * Session ID + * + * @return tag + */ + @javax.annotation.Nullable + public String getTag() { + return tag; + } + + public void setTag(@javax.annotation.Nullable String tag) { + this.tag = tag; + } + + public TransactionProcessRequest tenant(@javax.annotation.Nullable String tenant) { + this.tenant = tenant; + return this; + } + + /** + * Customer name + * + * @return tenant + */ + @javax.annotation.Nullable + public String getTenant() { + return tenant; + } + + public void setTenant(@javax.annotation.Nullable String tenant) { + this.tenant = tenant; + } + + public TransactionProcessRequest env(@javax.annotation.Nullable String env) { + this.env = env; + return this; + } + + /** + * Environment type + * + * @return env + */ + @javax.annotation.Nullable + public String getEnv() { + return env; + } + + public void setEnv(@javax.annotation.Nullable String env) { + this.env = env; + } + public TransactionProcessRequest livePortrait(@javax.annotation.Nullable String livePortrait) { this.livePortrait = livePortrait; return this; @@ -271,6 +345,9 @@ public boolean equals(Object o) { TransactionProcessRequest transactionProcessRequest = (TransactionProcessRequest) o; return Objects.equals(this.processParam, transactionProcessRequest.processParam) && Objects.equals(this.list, transactionProcessRequest.list) + && Objects.equals(this.tag, transactionProcessRequest.tag) + && Objects.equals(this.tenant, transactionProcessRequest.tenant) + && Objects.equals(this.env, transactionProcessRequest.env) && Objects.equals(this.livePortrait, transactionProcessRequest.livePortrait) && Objects.equals(this.extPortrait, transactionProcessRequest.extPortrait) && Objects.equals(this.containerList, transactionProcessRequest.containerList) @@ -284,6 +361,9 @@ public int hashCode() { return Objects.hash( processParam, list, + tag, + tenant, + env, livePortrait, extPortrait, containerList, @@ -298,6 +378,9 @@ public String toString() { sb.append("class TransactionProcessRequest {\n"); sb.append(" processParam: ").append(toIndentedString(processParam)).append("\n"); sb.append(" list: ").append(toIndentedString(list)).append("\n"); + sb.append(" tag: ").append(toIndentedString(tag)).append("\n"); + sb.append(" tenant: ").append(toIndentedString(tenant)).append("\n"); + sb.append(" env: ").append(toIndentedString(env)).append("\n"); sb.append(" livePortrait: ").append(toIndentedString(livePortrait)).append("\n"); sb.append(" extPortrait: ").append(toIndentedString(extPortrait)).append("\n"); sb.append(" containerList: ").append(toIndentedString(containerList)).append("\n"); @@ -326,6 +409,9 @@ private String toIndentedString(Object o) { openapiFields = new HashSet(); openapiFields.add("processParam"); openapiFields.add("List"); + openapiFields.add("tag"); + openapiFields.add("tenant"); + openapiFields.add("env"); openapiFields.add("livePortrait"); openapiFields.add("extPortrait"); openapiFields.add("ContainerList"); @@ -355,17 +441,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!TransactionProcessRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `TransactionProcessRequest` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : TransactionProcessRequest.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { @@ -396,6 +471,27 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti ; } } + if ((jsonObj.get("tag") != null && !jsonObj.get("tag").isJsonNull()) + && !jsonObj.get("tag").isJsonPrimitive()) { + throw new IllegalArgumentException( + String.format( + "Expected the field `tag` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("tag").toString())); + } + if ((jsonObj.get("tenant") != null && !jsonObj.get("tenant").isJsonNull()) + && !jsonObj.get("tenant").isJsonPrimitive()) { + throw new IllegalArgumentException( + String.format( + "Expected the field `tenant` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("tenant").toString())); + } + if ((jsonObj.get("env") != null && !jsonObj.get("env").isJsonNull()) + && !jsonObj.get("env").isJsonPrimitive()) { + throw new IllegalArgumentException( + String.format( + "Expected the field `env` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("env").toString())); + } if ((jsonObj.get("livePortrait") != null && !jsonObj.get("livePortrait").isJsonNull()) && !jsonObj.get("livePortrait").isJsonPrimitive()) { throw new IllegalArgumentException( diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/TransactionProcessResult.java b/client/src/main/generated/com/regula/documentreader/webclient/model/TransactionProcessResult.java index 2a1df41..97937a2 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/TransactionProcessResult.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/TransactionProcessResult.java @@ -24,9 +24,7 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; import java.util.UUID; /** TransactionProcessResult */ @@ -210,16 +208,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!TransactionProcessResult.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `TransactionProcessResult` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the optional field `OutData` if (jsonObj.get("OutData") != null && !jsonObj.get("OutData").isJsonNull()) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/TrfFtBytes.java b/client/src/main/generated/com/regula/documentreader/webclient/model/TrfFtBytes.java index 117893c..57db264 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/TrfFtBytes.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/TrfFtBytes.java @@ -25,9 +25,7 @@ import java.io.IOException; import java.math.BigDecimal; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** * Structure is used to store an array of binary information that is a part of one of the @@ -218,17 +216,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!TrfFtBytes.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `TrfFtBytes` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : TrfFtBytes.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/TrfFtString.java b/client/src/main/generated/com/regula/documentreader/webclient/model/TrfFtString.java index ce139a0..fbc3197 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/TrfFtString.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/TrfFtString.java @@ -24,9 +24,7 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.util.HashSet; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** * Structure is used to store information about the numeric field (4 bytes) that is a part of one of @@ -214,17 +212,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!TrfFtString.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `TrfFtString` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : TrfFtString.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/VerifiedFieldMap.java b/client/src/main/generated/com/regula/documentreader/webclient/model/VerifiedFieldMap.java index bbfc760..e2a9d5e 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/VerifiedFieldMap.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/VerifiedFieldMap.java @@ -26,9 +26,7 @@ import java.util.ArrayList; import java.util.HashSet; import java.util.List; -import java.util.Map; import java.util.Objects; -import java.util.Set; /** VerifiedFieldMap */ @javax.annotation.Generated( @@ -346,17 +344,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!VerifiedFieldMap.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the `VerifiedFieldMap` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - // check to make sure all required properties/fields are present in the JSON string for (String requiredField : VerifiedFieldMap.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { diff --git a/dev.md b/dev.md index 89b1a3a..07422d7 100755 --- a/dev.md +++ b/dev.md @@ -21,7 +21,9 @@ class with ours using typeMappings in the generator config. 2. The generator treats the discriminator value as a string, but in our case it's numbers. To solve this problem, changes have been made to the pojo.mustache template. -3. The generator replaces the list field with _list, solved +3. Disabled validation of additional JSON fields in +the pojo.mustache template. +4. The generator replaces the list field with _list, solved using nameMappings in the generator config. ## Problem solving