diff --git a/client/.openapi-generator/FILES b/client/.openapi-generator/FILES index 4b96756..e931ffe 100755 --- a/client/.openapi-generator/FILES +++ b/client/.openapi-generator/FILES @@ -50,6 +50,7 @@ src/main/generated/com/regula/documentreader/webclient/model/DataModule.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 +src/main/generated/com/regula/documentreader/webclient/model/DeviceInfoDocumentsDatabase.java src/main/generated/com/regula/documentreader/webclient/model/DocBarCodeInfo.java src/main/generated/com/regula/documentreader/webclient/model/DocBarCodeInfoFieldsList.java src/main/generated/com/regula/documentreader/webclient/model/DocBarCodeInfoItem.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 75cd7b7..4ab8931 100755 --- a/client/src/main/generated/com/regula/documentreader/webclient/JSON.java +++ b/client/src/main/generated/com/regula/documentreader/webclient/JSON.java @@ -1016,6 +1016,9 @@ private static Class getClassByDiscriminator( new com.regula.documentreader.webclient.model.DetailsRFID.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory( new com.regula.documentreader.webclient.model.DeviceInfo.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.regula.documentreader.webclient.model.DeviceInfoDocumentsDatabase + .CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory( new com.regula.documentreader.webclient.model.DocBarCodeInfo.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory( 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 b45ce73..949cd01 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 @@ -24,7 +24,11 @@ import com.regula.documentreader.webclient.JSON; import java.io.IOException; import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.HashMap; import java.util.HashSet; +import java.util.List; +import java.util.Map; import java.util.Objects; /** DeviceInfo */ @@ -56,6 +60,12 @@ public class DeviceInfo { @javax.annotation.Nullable private String licenseSerial; + public static final String SERIALIZED_NAME_LICENSE_TYPE = "license-type"; + + @SerializedName(SERIALIZED_NAME_LICENSE_TYPE) + @javax.annotation.Nullable + private String licenseType; + public static final String SERIALIZED_NAME_VALID_UNTIL = "valid-until"; @SerializedName(SERIALIZED_NAME_VALID_UNTIL) @@ -66,7 +76,25 @@ public class DeviceInfo { @SerializedName(SERIALIZED_NAME_SERVER_TIME) @javax.annotation.Nullable - private OffsetDateTime serverTime; + private String serverTime; + + public static final String SERIALIZED_NAME_SUPPORTED_SCENARIOS = "supported-scenarios"; + + @SerializedName(SERIALIZED_NAME_SUPPORTED_SCENARIOS) + @javax.annotation.Nullable + private List supportedScenarios; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + + @SerializedName(SERIALIZED_NAME_METADATA) + @javax.annotation.Nullable + private Map metadata; + + public static final String SERIALIZED_NAME_DOCUMENTS_DATABASE = "documents-database"; + + @SerializedName(SERIALIZED_NAME_DOCUMENTS_DATABASE) + @javax.annotation.Nullable + private DeviceInfoDocumentsDatabase documentsDatabase; public DeviceInfo() {} @@ -76,7 +104,7 @@ public DeviceInfo appName(@javax.annotation.Nullable String appName) { } /** - * Get appName + * Application name. * * @return appName */ @@ -95,7 +123,7 @@ public DeviceInfo version(@javax.annotation.Nullable String version) { } /** - * Get version + * Product version. * * @return version */ @@ -114,7 +142,7 @@ public DeviceInfo licenseId(@javax.annotation.Nullable String licenseId) { } /** - * Get licenseId + * Unique license identifier. * * @return licenseId */ @@ -133,7 +161,7 @@ public DeviceInfo licenseSerial(@javax.annotation.Nullable String licenseSerial) } /** - * Get licenseSerial + * License serial number. * * @return licenseSerial */ @@ -146,13 +174,32 @@ public void setLicenseSerial(@javax.annotation.Nullable String licenseSerial) { this.licenseSerial = licenseSerial; } + public DeviceInfo licenseType(@javax.annotation.Nullable String licenseType) { + this.licenseType = licenseType; + return this; + } + + /** + * Get licenseType + * + * @return licenseType + */ + @javax.annotation.Nullable + public String getLicenseType() { + return licenseType; + } + + public void setLicenseType(@javax.annotation.Nullable String licenseType) { + this.licenseType = licenseType; + } + public DeviceInfo validUntil(@javax.annotation.Nullable OffsetDateTime validUntil) { this.validUntil = validUntil; return this; } /** - * Get validUntil + * License validity date. * * @return validUntil */ @@ -165,7 +212,7 @@ public void setValidUntil(@javax.annotation.Nullable OffsetDateTime validUntil) this.validUntil = validUntil; } - public DeviceInfo serverTime(@javax.annotation.Nullable OffsetDateTime serverTime) { + public DeviceInfo serverTime(@javax.annotation.Nullable String serverTime) { this.serverTime = serverTime; return this; } @@ -176,14 +223,89 @@ public DeviceInfo serverTime(@javax.annotation.Nullable OffsetDateTime serverTim * @return serverTime */ @javax.annotation.Nullable - public OffsetDateTime getServerTime() { + public String getServerTime() { return serverTime; } - public void setServerTime(@javax.annotation.Nullable OffsetDateTime serverTime) { + public void setServerTime(@javax.annotation.Nullable String serverTime) { this.serverTime = serverTime; } + public DeviceInfo supportedScenarios(@javax.annotation.Nullable List supportedScenarios) { + this.supportedScenarios = supportedScenarios; + return this; + } + + public DeviceInfo addSupportedScenariosItem(String supportedScenariosItem) { + if (this.supportedScenarios == null) { + this.supportedScenarios = new ArrayList<>(); + } + this.supportedScenarios.add(supportedScenariosItem); + return this; + } + + /** + * List of supported scenarios. + * + * @return supportedScenarios + */ + @javax.annotation.Nullable + public List getSupportedScenarios() { + return supportedScenarios; + } + + public void setSupportedScenarios(@javax.annotation.Nullable List supportedScenarios) { + this.supportedScenarios = supportedScenarios; + } + + public DeviceInfo metadata(@javax.annotation.Nullable Map metadata) { + this.metadata = metadata; + return this; + } + + public DeviceInfo putMetadataItem(String key, Object metadataItem) { + if (this.metadata == null) { + this.metadata = new HashMap<>(); + } + this.metadata.put(key, metadataItem); + return this; + } + + /** + * Get metadata + * + * @return metadata + */ + @javax.annotation.Nullable + public Map getMetadata() { + return metadata; + } + + public void setMetadata(@javax.annotation.Nullable Map metadata) { + this.metadata = metadata; + } + + public DeviceInfo documentsDatabase( + @javax.annotation.Nullable DeviceInfoDocumentsDatabase documentsDatabase) { + this.documentsDatabase = documentsDatabase; + return this; + } + + /** + * Get documentsDatabase + * + * @return documentsDatabase + */ + @javax.annotation.Nullable + public DeviceInfoDocumentsDatabase getDocumentsDatabase() { + return documentsDatabase; + } + + public void setDocumentsDatabase( + @javax.annotation.Nullable DeviceInfoDocumentsDatabase documentsDatabase) { + this.documentsDatabase = documentsDatabase; + } + @Override public boolean equals(Object o) { if (this == o) { @@ -197,13 +319,27 @@ public boolean equals(Object o) { && Objects.equals(this.version, deviceInfo.version) && Objects.equals(this.licenseId, deviceInfo.licenseId) && Objects.equals(this.licenseSerial, deviceInfo.licenseSerial) + && Objects.equals(this.licenseType, deviceInfo.licenseType) && Objects.equals(this.validUntil, deviceInfo.validUntil) - && Objects.equals(this.serverTime, deviceInfo.serverTime); + && Objects.equals(this.serverTime, deviceInfo.serverTime) + && Objects.equals(this.supportedScenarios, deviceInfo.supportedScenarios) + && Objects.equals(this.metadata, deviceInfo.metadata) + && Objects.equals(this.documentsDatabase, deviceInfo.documentsDatabase); } @Override public int hashCode() { - return Objects.hash(appName, version, licenseId, licenseSerial, validUntil, serverTime); + return Objects.hash( + appName, + version, + licenseId, + licenseSerial, + licenseType, + validUntil, + serverTime, + supportedScenarios, + metadata, + documentsDatabase); } @Override @@ -214,8 +350,12 @@ public String toString() { sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" licenseId: ").append(toIndentedString(licenseId)).append("\n"); sb.append(" licenseSerial: ").append(toIndentedString(licenseSerial)).append("\n"); + sb.append(" licenseType: ").append(toIndentedString(licenseType)).append("\n"); sb.append(" validUntil: ").append(toIndentedString(validUntil)).append("\n"); sb.append(" serverTime: ").append(toIndentedString(serverTime)).append("\n"); + sb.append(" supportedScenarios: ").append(toIndentedString(supportedScenarios)).append("\n"); + sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); + sb.append(" documentsDatabase: ").append(toIndentedString(documentsDatabase)).append("\n"); sb.append("}"); return sb.toString(); } @@ -240,8 +380,12 @@ private String toIndentedString(Object o) { openapiFields.add("version"); openapiFields.add("license-id"); openapiFields.add("license-serial"); + openapiFields.add("license-type"); openapiFields.add("valid-until"); openapiFields.add("server-time"); + openapiFields.add("supported-scenarios"); + openapiFields.add("metadata"); + openapiFields.add("documents-database"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); @@ -293,6 +437,34 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti "Expected the field `license-serial` to be a primitive type in the JSON string but got `%s`", jsonObj.get("license-serial").toString())); } + if ((jsonObj.get("license-type") != null && !jsonObj.get("license-type").isJsonNull()) + && !jsonObj.get("license-type").isJsonPrimitive()) { + throw new IllegalArgumentException( + String.format( + "Expected the field `license-type` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("license-type").toString())); + } + if ((jsonObj.get("server-time") != null && !jsonObj.get("server-time").isJsonNull()) + && !jsonObj.get("server-time").isJsonPrimitive()) { + throw new IllegalArgumentException( + String.format( + "Expected the field `server-time` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("server-time").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("supported-scenarios") != null + && !jsonObj.get("supported-scenarios").isJsonNull() + && !jsonObj.get("supported-scenarios").isJsonArray()) { + throw new IllegalArgumentException( + String.format( + "Expected the field `supported-scenarios` to be an array in the JSON string but got `%s`", + jsonObj.get("supported-scenarios").toString())); + } + // validate the optional field `documents-database` + if (jsonObj.get("documents-database") != null + && !jsonObj.get("documents-database").isJsonNull()) { + DeviceInfoDocumentsDatabase.validateJsonElement(jsonObj.get("documents-database")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/DeviceInfoDocumentsDatabase.java b/client/src/main/generated/com/regula/documentreader/webclient/model/DeviceInfoDocumentsDatabase.java new file mode 100644 index 0000000..0b56ebb --- /dev/null +++ b/client/src/main/generated/com/regula/documentreader/webclient/model/DeviceInfoDocumentsDatabase.java @@ -0,0 +1,303 @@ +/* + * 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.HashSet; +import java.util.Objects; + +/** Database information. */ +@javax.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.13.0") +public class DeviceInfoDocumentsDatabase { + public static final String SERIALIZED_NAME_ID = "id"; + + @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable + private String id; + + public static final String SERIALIZED_NAME_VERSION = "version"; + + @SerializedName(SERIALIZED_NAME_VERSION) + @javax.annotation.Nullable + private String version; + + public static final String SERIALIZED_NAME_EXPORT_DATE = "export-date"; + + @SerializedName(SERIALIZED_NAME_EXPORT_DATE) + @javax.annotation.Nullable + private String exportDate; + + public static final String SERIALIZED_NAME_DESCRIPTION = "description"; + + @SerializedName(SERIALIZED_NAME_DESCRIPTION) + @javax.annotation.Nullable + private String description; + + public DeviceInfoDocumentsDatabase() {} + + public DeviceInfoDocumentsDatabase id(@javax.annotation.Nullable String id) { + this.id = id; + return this; + } + + /** + * Database identifier. + * + * @return id + */ + @javax.annotation.Nullable + public String getId() { + return id; + } + + public void setId(@javax.annotation.Nullable String id) { + this.id = id; + } + + public DeviceInfoDocumentsDatabase version(@javax.annotation.Nullable String version) { + this.version = version; + return this; + } + + /** + * Database version. + * + * @return version + */ + @javax.annotation.Nullable + public String getVersion() { + return version; + } + + public void setVersion(@javax.annotation.Nullable String version) { + this.version = version; + } + + public DeviceInfoDocumentsDatabase exportDate(@javax.annotation.Nullable String exportDate) { + this.exportDate = exportDate; + return this; + } + + /** + * Date of database creation. + * + * @return exportDate + */ + @javax.annotation.Nullable + public String getExportDate() { + return exportDate; + } + + public void setExportDate(@javax.annotation.Nullable String exportDate) { + this.exportDate = exportDate; + } + + public DeviceInfoDocumentsDatabase description(@javax.annotation.Nullable String description) { + this.description = description; + return this; + } + + /** + * Description of the database contents, such as the list of supported countries and documents. + * + * @return description + */ + @javax.annotation.Nullable + public String getDescription() { + return description; + } + + public void setDescription(@javax.annotation.Nullable String description) { + this.description = description; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DeviceInfoDocumentsDatabase deviceInfoDocumentsDatabase = (DeviceInfoDocumentsDatabase) o; + return Objects.equals(this.id, deviceInfoDocumentsDatabase.id) + && Objects.equals(this.version, deviceInfoDocumentsDatabase.version) + && Objects.equals(this.exportDate, deviceInfoDocumentsDatabase.exportDate) + && Objects.equals(this.description, deviceInfoDocumentsDatabase.description); + } + + @Override + public int hashCode() { + return Objects.hash(id, version, exportDate, description); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeviceInfoDocumentsDatabase {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" version: ").append(toIndentedString(version)).append("\n"); + sb.append(" exportDate: ").append(toIndentedString(exportDate)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).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(); + openapiFields.add("id"); + openapiFields.add("version"); + openapiFields.add("export-date"); + openapiFields.add("description"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("id"); + openapiRequiredFields.add("version"); + openapiRequiredFields.add("export-date"); + openapiRequiredFields.add("description"); + } + + /** + * 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 DeviceInfoDocumentsDatabase + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!DeviceInfoDocumentsDatabase.openapiRequiredFields + .isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException( + String.format( + "The required field(s) %s in DeviceInfoDocumentsDatabase is not found in the empty JSON string", + DeviceInfoDocumentsDatabase.openapiRequiredFields.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : DeviceInfoDocumentsDatabase.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("id") != null && !jsonObj.get("id").isJsonNull()) + && !jsonObj.get("id").isJsonPrimitive()) { + throw new IllegalArgumentException( + String.format( + "Expected the field `id` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("id").toString())); + } + if ((jsonObj.get("version") != null && !jsonObj.get("version").isJsonNull()) + && !jsonObj.get("version").isJsonPrimitive()) { + throw new IllegalArgumentException( + String.format( + "Expected the field `version` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("version").toString())); + } + if ((jsonObj.get("export-date") != null && !jsonObj.get("export-date").isJsonNull()) + && !jsonObj.get("export-date").isJsonPrimitive()) { + throw new IllegalArgumentException( + String.format( + "Expected the field `export-date` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("export-date").toString())); + } + if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) + && !jsonObj.get("description").isJsonPrimitive()) { + throw new IllegalArgumentException( + String.format( + "Expected the field `description` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("description").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!DeviceInfoDocumentsDatabase.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DeviceInfoDocumentsDatabase' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(DeviceInfoDocumentsDatabase.class)); + + return (TypeAdapter) + new TypeAdapter() { + @Override + public void write(JsonWriter out, DeviceInfoDocumentsDatabase value) + throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DeviceInfoDocumentsDatabase read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + }.nullSafe(); + } + } + + /** + * Create an instance of DeviceInfoDocumentsDatabase given an JSON string + * + * @param jsonString JSON string + * @return An instance of DeviceInfoDocumentsDatabase + * @throws IOException if the JSON string is invalid with respect to DeviceInfoDocumentsDatabase + */ + public static DeviceInfoDocumentsDatabase fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, DeviceInfoDocumentsDatabase.class); + } + + /** + * Convert an instance of DeviceInfoDocumentsDatabase 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/ProcessParamsRfid.java b/client/src/main/generated/com/regula/documentreader/webclient/model/ProcessParamsRfid.java index f11a26f..9964b6e 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 @@ -33,42 +33,43 @@ value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.13.0") public class ProcessParamsRfid { - public static final String SERIALIZED_NAME_PA_SENSITIVE_CODES_DISABLE = "paSensitiveCodesDisable"; + public static final String SERIALIZED_NAME_PA_IGNORE_NOTIFICATION_CODES = + "paIgnoreNotificationCodes"; - @SerializedName(SERIALIZED_NAME_PA_SENSITIVE_CODES_DISABLE) + @SerializedName(SERIALIZED_NAME_PA_IGNORE_NOTIFICATION_CODES) @javax.annotation.Nullable - private List paSensitiveCodesDisable; + private List paIgnoreNotificationCodes; public ProcessParamsRfid() {} - public ProcessParamsRfid paSensitiveCodesDisable( - @javax.annotation.Nullable List paSensitiveCodesDisable) { - this.paSensitiveCodesDisable = paSensitiveCodesDisable; + public ProcessParamsRfid paIgnoreNotificationCodes( + @javax.annotation.Nullable List paIgnoreNotificationCodes) { + this.paIgnoreNotificationCodes = paIgnoreNotificationCodes; return this; } - public ProcessParamsRfid addPaSensitiveCodesDisableItem( - ParsingNotificationCodes paSensitiveCodesDisableItem) { - if (this.paSensitiveCodesDisable == null) { - this.paSensitiveCodesDisable = new ArrayList<>(); + public ProcessParamsRfid addPaIgnoreNotificationCodesItem( + ParsingNotificationCodes paIgnoreNotificationCodesItem) { + if (this.paIgnoreNotificationCodes == null) { + this.paIgnoreNotificationCodes = new ArrayList<>(); } - this.paSensitiveCodesDisable.add(paSensitiveCodesDisableItem); + this.paIgnoreNotificationCodes.add(paIgnoreNotificationCodesItem); return this; } /** * A list of notification codes that should be ignored during passive authentication (PA) * - * @return paSensitiveCodesDisable + * @return paIgnoreNotificationCodes */ @javax.annotation.Nullable - public List getPaSensitiveCodesDisable() { - return paSensitiveCodesDisable; + public List getPaIgnoreNotificationCodes() { + return paIgnoreNotificationCodes; } - public void setPaSensitiveCodesDisable( - @javax.annotation.Nullable List paSensitiveCodesDisable) { - this.paSensitiveCodesDisable = paSensitiveCodesDisable; + public void setPaIgnoreNotificationCodes( + @javax.annotation.Nullable List paIgnoreNotificationCodes) { + this.paIgnoreNotificationCodes = paIgnoreNotificationCodes; } @Override @@ -80,20 +81,21 @@ public boolean equals(Object o) { return false; } ProcessParamsRfid processParamsRfid = (ProcessParamsRfid) o; - return Objects.equals(this.paSensitiveCodesDisable, processParamsRfid.paSensitiveCodesDisable); + return Objects.equals( + this.paIgnoreNotificationCodes, processParamsRfid.paIgnoreNotificationCodes); } @Override public int hashCode() { - return Objects.hash(paSensitiveCodesDisable); + return Objects.hash(paIgnoreNotificationCodes); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ProcessParamsRfid {\n"); - sb.append(" paSensitiveCodesDisable: ") - .append(toIndentedString(paSensitiveCodesDisable)) + sb.append(" paIgnoreNotificationCodes: ") + .append(toIndentedString(paIgnoreNotificationCodes)) .append("\n"); sb.append("}"); return sb.toString(); @@ -115,7 +117,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) openapiFields = new HashSet(); - openapiFields.add("paSensitiveCodesDisable"); + openapiFields.add("paIgnoreNotificationCodes"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); @@ -140,13 +142,13 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti JsonObject jsonObj = jsonElement.getAsJsonObject(); // ensure the optional json data is an array if present - if (jsonObj.get("paSensitiveCodesDisable") != null - && !jsonObj.get("paSensitiveCodesDisable").isJsonNull() - && !jsonObj.get("paSensitiveCodesDisable").isJsonArray()) { + if (jsonObj.get("paIgnoreNotificationCodes") != null + && !jsonObj.get("paIgnoreNotificationCodes").isJsonNull() + && !jsonObj.get("paIgnoreNotificationCodes").isJsonArray()) { throw new IllegalArgumentException( String.format( - "Expected the field `paSensitiveCodesDisable` to be an array in the JSON string but got `%s`", - jsonObj.get("paSensitiveCodesDisable").toString())); + "Expected the field `paIgnoreNotificationCodes` to be an array in the JSON string but got `%s`", + jsonObj.get("paIgnoreNotificationCodes").toString())); } }