diff --git a/client/.openapi-generator/FILES b/client/.openapi-generator/FILES index 8facdc4..08eb5df 100755 --- a/client/.openapi-generator/FILES +++ b/client/.openapi-generator/FILES @@ -52,6 +52,7 @@ src/main/generated/com/regula/documentreader/webclient/model/CrossSourceValueCom src/main/generated/com/regula/documentreader/webclient/model/DataModule.java src/main/generated/com/regula/documentreader/webclient/model/DatabaseDocument.java src/main/generated/com/regula/documentreader/webclient/model/DatabaseDocumentList.java +src/main/generated/com/regula/documentreader/webclient/model/DetailsAge.java src/main/generated/com/regula/documentreader/webclient/model/DetailsOptical.java src/main/generated/com/regula/documentreader/webclient/model/DetailsRFID.java src/main/generated/com/regula/documentreader/webclient/model/DeviceInfo.java @@ -131,6 +132,9 @@ src/main/generated/com/regula/documentreader/webclient/model/ListVerifiedFields. src/main/generated/com/regula/documentreader/webclient/model/ListVerifiedFieldsItem.java src/main/generated/com/regula/documentreader/webclient/model/LivenessParams.java src/main/generated/com/regula/documentreader/webclient/model/LogLevel.java +src/main/generated/com/regula/documentreader/webclient/model/MDLDeviceEngagement.java +src/main/generated/com/regula/documentreader/webclient/model/MDLDeviceRetrieval.java +src/main/generated/com/regula/documentreader/webclient/model/MDLServerRetrieval.java src/main/generated/com/regula/documentreader/webclient/model/MRZDetectorResult.java src/main/generated/com/regula/documentreader/webclient/model/MRZFormat.java src/main/generated/com/regula/documentreader/webclient/model/MRZPositionResult.java 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 09f5253..0560fc8 100755 --- a/client/src/main/generated/com/regula/documentreader/webclient/JSON.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/JSON.java @@ -995,6 +995,8 @@ private static Class getClassByDiscriminator( gsonBuilder.registerTypeAdapterFactory( new com.regula.documentreader.webclient.model.DatabaseDocumentList .CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.regula.documentreader.webclient.model.DetailsAge.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory( new com.regula.documentreader.webclient.model.DetailsOptical.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory( diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/DetailsAge.java b/client/src/main/generated/com/regula/documentreader/webclient/model/DetailsAge.java new file mode 100644 index 0000000..fed13dd --- /dev/null +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/DetailsAge.java @@ -0,0 +1,335 @@ +/* + * 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: 8.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.regula.documentreader.webclient.model; + +import com.google.gson.Gson; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.TypeAdapter; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.annotations.SerializedName; +import com.google.gson.reflect.TypeToken; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import com.regula.documentreader.webclient.JSON; +import java.io.IOException; +import java.util.Arrays; +import java.util.HashSet; +import java.util.Objects; + +/** DetailsAge */ +@javax.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.15.0") +public class DetailsAge { + public static final String SERIALIZED_NAME_THRESHOLD = "threshold"; + + @SerializedName(SERIALIZED_NAME_THRESHOLD) + @javax.annotation.Nonnull + private Integer threshold; + + public static final String SERIALIZED_NAME_OVER_THRESHOLD = "overThreshold"; + + @SerializedName(SERIALIZED_NAME_OVER_THRESHOLD) + @javax.annotation.Nonnull + private CheckResult overThreshold; + + public static final String SERIALIZED_NAME_OVER18 = "over18"; + + @SerializedName(SERIALIZED_NAME_OVER18) + @javax.annotation.Nonnull + private CheckResult over18; + + public static final String SERIALIZED_NAME_OVER21 = "over21"; + + @SerializedName(SERIALIZED_NAME_OVER21) + @javax.annotation.Nonnull + private CheckResult over21; + + public static final String SERIALIZED_NAME_OVER25 = "over25"; + + @SerializedName(SERIALIZED_NAME_OVER25) + @javax.annotation.Nonnull + private CheckResult over25; + + public static final String SERIALIZED_NAME_OVER65 = "over65"; + + @SerializedName(SERIALIZED_NAME_OVER65) + @javax.annotation.Nonnull + private CheckResult over65; + + public DetailsAge() {} + + public DetailsAge threshold(@javax.annotation.Nonnull Integer threshold) { + this.threshold = threshold; + return this; + } + + /** + * Get threshold + * + * @return threshold + */ + @javax.annotation.Nonnull + public Integer getThreshold() { + return threshold; + } + + public void setThreshold(@javax.annotation.Nonnull Integer threshold) { + this.threshold = threshold; + } + + public DetailsAge overThreshold(@javax.annotation.Nonnull CheckResult overThreshold) { + this.overThreshold = overThreshold; + return this; + } + + /** + * Get overThreshold + * + * @return overThreshold + */ + @javax.annotation.Nonnull + public CheckResult getOverThreshold() { + return overThreshold; + } + + public void setOverThreshold(@javax.annotation.Nonnull CheckResult overThreshold) { + this.overThreshold = overThreshold; + } + + public DetailsAge over18(@javax.annotation.Nonnull CheckResult over18) { + this.over18 = over18; + return this; + } + + /** + * Get over18 + * + * @return over18 + */ + @javax.annotation.Nonnull + public CheckResult getOver18() { + return over18; + } + + public void setOver18(@javax.annotation.Nonnull CheckResult over18) { + this.over18 = over18; + } + + public DetailsAge over21(@javax.annotation.Nonnull CheckResult over21) { + this.over21 = over21; + return this; + } + + /** + * Get over21 + * + * @return over21 + */ + @javax.annotation.Nonnull + public CheckResult getOver21() { + return over21; + } + + public void setOver21(@javax.annotation.Nonnull CheckResult over21) { + this.over21 = over21; + } + + public DetailsAge over25(@javax.annotation.Nonnull CheckResult over25) { + this.over25 = over25; + return this; + } + + /** + * Get over25 + * + * @return over25 + */ + @javax.annotation.Nonnull + public CheckResult getOver25() { + return over25; + } + + public void setOver25(@javax.annotation.Nonnull CheckResult over25) { + this.over25 = over25; + } + + public DetailsAge over65(@javax.annotation.Nonnull CheckResult over65) { + this.over65 = over65; + return this; + } + + /** + * Get over65 + * + * @return over65 + */ + @javax.annotation.Nonnull + public CheckResult getOver65() { + return over65; + } + + public void setOver65(@javax.annotation.Nonnull CheckResult over65) { + this.over65 = over65; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DetailsAge detailsAge = (DetailsAge) o; + return Objects.equals(this.threshold, detailsAge.threshold) + && Objects.equals(this.overThreshold, detailsAge.overThreshold) + && Objects.equals(this.over18, detailsAge.over18) + && Objects.equals(this.over21, detailsAge.over21) + && Objects.equals(this.over25, detailsAge.over25) + && Objects.equals(this.over65, detailsAge.over65); + } + + @Override + public int hashCode() { + return Objects.hash(threshold, overThreshold, over18, over21, over25, over65); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DetailsAge {\n"); + sb.append(" threshold: ").append(toIndentedString(threshold)).append("\n"); + sb.append(" overThreshold: ").append(toIndentedString(overThreshold)).append("\n"); + sb.append(" over18: ").append(toIndentedString(over18)).append("\n"); + sb.append(" over21: ").append(toIndentedString(over21)).append("\n"); + sb.append(" over25: ").append(toIndentedString(over25)).append("\n"); + sb.append(" over65: ").append(toIndentedString(over65)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = + new HashSet( + Arrays.asList("threshold", "overThreshold", "over18", "over21", "over25", "over65")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = + new HashSet( + Arrays.asList("threshold", "overThreshold", "over18", "over21", "over25", "over65")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to DetailsAge + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!DetailsAge.openapiRequiredFields + .isEmpty()) { // has required fields but JSON element is null + System.err.println( + String.format( + "The required field(s) %s in DetailsAge is not found in the empty JSON string", + DetailsAge.openapiRequiredFields.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : DetailsAge.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + System.err.println( + String.format( + "The required field `%s` is not found in the JSON string: %s", + requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the required field `overThreshold` + CheckResult.validateJsonElement(jsonObj.get("overThreshold")); + // validate the required field `over18` + CheckResult.validateJsonElement(jsonObj.get("over18")); + // validate the required field `over21` + CheckResult.validateJsonElement(jsonObj.get("over21")); + // validate the required field `over25` + CheckResult.validateJsonElement(jsonObj.get("over25")); + // validate the required field `over65` + CheckResult.validateJsonElement(jsonObj.get("over65")); + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!DetailsAge.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DetailsAge' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(DetailsAge.class)); + + return (TypeAdapter) + new TypeAdapter() { + @Override + public void write(JsonWriter out, DetailsAge value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DetailsAge read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + }.nullSafe(); + } + } + + /** + * Create an instance of DetailsAge given an JSON string + * + * @param jsonString JSON string + * @return An instance of DetailsAge + * @throws IOException if the JSON string is invalid with respect to DetailsAge + */ + public static DetailsAge fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, DetailsAge.class); + } + + /** + * Convert an instance of DetailsAge to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/MDLDeviceEngagement.java b/client/src/main/generated/com/regula/documentreader/webclient/model/MDLDeviceEngagement.java new file mode 100644 index 0000000..7a0f550 --- /dev/null +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/MDLDeviceEngagement.java @@ -0,0 +1,71 @@ +/* + * 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: 8.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.regula.documentreader.webclient.model; + +import com.google.gson.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; + +/** Gets or Sets MDLDeviceEngagement */ +@JsonAdapter(MDLDeviceEngagement.Adapter.class) +public enum MDLDeviceEngagement { + QR(0), + + NFC(1); + + private Integer value; + + MDLDeviceEngagement(Integer value) { + this.value = value; + } + + public Integer getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static MDLDeviceEngagement fromValue(Integer value) { + for (MDLDeviceEngagement b : MDLDeviceEngagement.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 MDLDeviceEngagement enumeration) + throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public MDLDeviceEngagement read(final JsonReader jsonReader) throws IOException { + Integer value = jsonReader.nextInt(); + return MDLDeviceEngagement.fromValue(value); + } + } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + Integer value = jsonElement.getAsInt(); + MDLDeviceEngagement.fromValue(value); + } +} diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/MDLDeviceRetrieval.java b/client/src/main/generated/com/regula/documentreader/webclient/model/MDLDeviceRetrieval.java new file mode 100644 index 0000000..f4969f6 --- /dev/null +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/MDLDeviceRetrieval.java @@ -0,0 +1,73 @@ +/* + * 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: 8.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.regula.documentreader.webclient.model; + +import com.google.gson.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; + +/** Gets or Sets MDLDeviceRetrieval */ +@JsonAdapter(MDLDeviceRetrieval.Adapter.class) +public enum MDLDeviceRetrieval { + NFC(1), + + BLE(2), + + WIFI_AWARE(3); + + private Integer value; + + MDLDeviceRetrieval(Integer value) { + this.value = value; + } + + public Integer getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static MDLDeviceRetrieval fromValue(Integer value) { + for (MDLDeviceRetrieval b : MDLDeviceRetrieval.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 MDLDeviceRetrieval enumeration) + throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public MDLDeviceRetrieval read(final JsonReader jsonReader) throws IOException { + Integer value = jsonReader.nextInt(); + return MDLDeviceRetrieval.fromValue(value); + } + } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + Integer value = jsonElement.getAsInt(); + MDLDeviceRetrieval.fromValue(value); + } +} diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/MDLServerRetrieval.java b/client/src/main/generated/com/regula/documentreader/webclient/model/MDLServerRetrieval.java new file mode 100644 index 0000000..8118695 --- /dev/null +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/MDLServerRetrieval.java @@ -0,0 +1,71 @@ +/* + * 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: 8.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.regula.documentreader.webclient.model; + +import com.google.gson.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; + +/** Gets or Sets MDLServerRetrieval */ +@JsonAdapter(MDLServerRetrieval.Adapter.class) +public enum MDLServerRetrieval { + WEB_API(0), + + OIDC(1); + + private Integer value; + + MDLServerRetrieval(Integer value) { + this.value = value; + } + + public Integer getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static MDLServerRetrieval fromValue(Integer value) { + for (MDLServerRetrieval b : MDLServerRetrieval.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 MDLServerRetrieval enumeration) + throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public MDLServerRetrieval read(final JsonReader jsonReader) throws IOException { + Integer value = jsonReader.nextInt(); + return MDLServerRetrieval.fromValue(value); + } + } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + Integer value = jsonElement.getAsInt(); + MDLServerRetrieval.fromValue(value); + } +} diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/Result.java b/client/src/main/generated/com/regula/documentreader/webclient/model/Result.java index 16b33ef..24130b5 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/Result.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/Result.java @@ -140,7 +140,25 @@ public enum Result { RFID_ORIGINAL_GRAPHICS(105), /** Digital Travel Credential data */ - DTC_VC(109); + DTC_VC(109), + + /** Contains mDL device raw response */ + MDL_DEVICE_RAW_RESPONSE(120), + + /** Contains mDL device parsed response */ + MDL_DEVICE_PARSED_RESPONSE(121), + + /** Contains mDL server raw response */ + MDL_SERVER_RAW_RESPONSE(122), + + /** Contains mDL server parsed response */ + MDL_SERVER_PARSED_RESPONSE(123), + + /** Contains result of VDS NC */ + VDS_NC(124), + + /** Contains result of VDS */ + VDS(125); private Integer value; 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 51cff0a..ce89425 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 @@ -74,6 +74,24 @@ public class Status { @javax.annotation.Nonnull private DetailsOptical detailsOptical; + public static final String SERIALIZED_NAME_AGE = "age"; + + @SerializedName(SERIALIZED_NAME_AGE) + @javax.annotation.Nonnull + private CheckResult age; + + public static final String SERIALIZED_NAME_DETAILS_AGE = "detailsAge"; + + @SerializedName(SERIALIZED_NAME_DETAILS_AGE) + @javax.annotation.Nonnull + private DetailsAge detailsAge; + + public static final String SERIALIZED_NAME_M_D_L = "mDL"; + + @SerializedName(SERIALIZED_NAME_M_D_L) + @javax.annotation.Nonnull + private CheckResult mDL; + public Status() {} public Status overallStatus(@javax.annotation.Nonnull CheckResult overallStatus) { @@ -209,6 +227,63 @@ public void setDetailsOptical(@javax.annotation.Nonnull DetailsOptical detailsOp this.detailsOptical = detailsOptical; } + public Status age(@javax.annotation.Nonnull CheckResult age) { + this.age = age; + return this; + } + + /** + * Get age + * + * @return age + */ + @javax.annotation.Nonnull + public CheckResult getAge() { + return age; + } + + public void setAge(@javax.annotation.Nonnull CheckResult age) { + this.age = age; + } + + public Status detailsAge(@javax.annotation.Nonnull DetailsAge detailsAge) { + this.detailsAge = detailsAge; + return this; + } + + /** + * Get detailsAge + * + * @return detailsAge + */ + @javax.annotation.Nonnull + public DetailsAge getDetailsAge() { + return detailsAge; + } + + public void setDetailsAge(@javax.annotation.Nonnull DetailsAge detailsAge) { + this.detailsAge = detailsAge; + } + + public Status mDL(@javax.annotation.Nonnull CheckResult mDL) { + this.mDL = mDL; + return this; + } + + /** + * Get mDL + * + * @return mDL + */ + @javax.annotation.Nonnull + public CheckResult getmDL() { + return mDL; + } + + public void setmDL(@javax.annotation.Nonnull CheckResult mDL) { + this.mDL = mDL; + } + @Override public boolean equals(Object o) { if (this == o) { @@ -224,13 +299,25 @@ public boolean equals(Object o) { && Objects.equals(this.rfid, status.rfid) && Objects.equals(this.stopList, status.stopList) && Objects.equals(this.detailsRFID, status.detailsRFID) - && Objects.equals(this.detailsOptical, status.detailsOptical); + && Objects.equals(this.detailsOptical, status.detailsOptical) + && Objects.equals(this.age, status.age) + && Objects.equals(this.detailsAge, status.detailsAge) + && Objects.equals(this.mDL, status.mDL); } @Override public int hashCode() { return Objects.hash( - overallStatus, optical, portrait, rfid, stopList, detailsRFID, detailsOptical); + overallStatus, + optical, + portrait, + rfid, + stopList, + detailsRFID, + detailsOptical, + age, + detailsAge, + mDL); } @Override @@ -244,6 +331,9 @@ public String toString() { sb.append(" stopList: ").append(toIndentedString(stopList)).append("\n"); sb.append(" detailsRFID: ").append(toIndentedString(detailsRFID)).append("\n"); sb.append(" detailsOptical: ").append(toIndentedString(detailsOptical)).append("\n"); + sb.append(" age: ").append(toIndentedString(age)).append("\n"); + sb.append(" detailsAge: ").append(toIndentedString(detailsAge)).append("\n"); + sb.append(" mDL: ").append(toIndentedString(mDL)).append("\n"); sb.append("}"); return sb.toString(); } @@ -272,13 +362,24 @@ private String toIndentedString(Object o) { "rfid", "stopList", "detailsRFID", - "detailsOptical")); + "detailsOptical", + "age", + "detailsAge", + "mDL")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet( Arrays.asList( - "overallStatus", "optical", "portrait", "rfid", "stopList", "detailsOptical")); + "overallStatus", + "optical", + "portrait", + "rfid", + "stopList", + "detailsOptical", + "age", + "detailsAge", + "mDL")); } /** @@ -323,6 +424,12 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } // validate the required field `detailsOptical` DetailsOptical.validateJsonElement(jsonObj.get("detailsOptical")); + // validate the required field `age` + CheckResult.validateJsonElement(jsonObj.get("age")); + // validate the required field `detailsAge` + DetailsAge.validateJsonElement(jsonObj.get("detailsAge")); + // validate the required field `mDL` + CheckResult.validateJsonElement(jsonObj.get("mDL")); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/TextFieldType.java b/client/src/main/generated/com/regula/documentreader/webclient/model/TextFieldType.java index 5a51de0..f949f3c 100644 --- a/client/src/main/generated/com/regula/documentreader/webclient/model/TextFieldType.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/TextFieldType.java @@ -1968,7 +1968,16 @@ public enum TextFieldType { FT_FIRST_ISSUE_DATE_CHECK_DIGIT(698), /** First issue date checksum */ - FT_FIRST_ISSUE_DATE_CHECKSUM(699); + FT_FIRST_ISSUE_DATE_CHECKSUM(699), + + /** Commercial indicator */ + FT_COMMERCIAL_INDICATOR(701), + + /** Non domiciled indicator */ + FT_NON_DOMICILED_INDICATOR(702), + + /** Jurisdiction specific data */ + FT_JURISDICTION_SPECIFIC_DATA(703); private Integer value;