diff --git a/.release.json b/.release.json index a889657..682918b 100644 --- a/.release.json +++ b/.release.json @@ -1,9 +1,9 @@ { "source": { "repo_url": "https://github.com/onfido/onfido-openapi-spec", - "short_sha": "4204f00", - "long_sha": "4204f00a2c7f0f5bd61da3b5442d8eb613418e9e", - "version": "v6.0.0" + "short_sha": "6a19890", + "long_sha": "6a198909828b3935c65b669e44cf2927e84957c0", + "version": "v6.0.1" }, - "release": "v7.0.0" + "release": "v7.1.0" } diff --git a/README.md b/README.md index 33e8e79..a803a54 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,7 @@ Add this dependency to your project's POM: com.onfido onfido-api-java - 7.0.0 + 7.1.0 compile ``` @@ -66,7 +66,7 @@ Add this dependency to your project's build file: } dependencies { - implementation "com.onfido:onfido-api-java:7.0.0" + implementation "com.onfido:onfido-api-java:7.1.0" } ``` @@ -80,10 +80,10 @@ mvn clean package Then manually install the following JARs: -- `target/onfido-api-java-7.0.0.jar` +- `target/onfido-api-java-7.1.0.jar` - `target/lib/*.jar` -The latest version can be found at . +The latest version can be found at . ## Getting Started diff --git a/build.gradle b/build.gradle index 4a52239..c807017 100644 --- a/build.gradle +++ b/build.gradle @@ -4,7 +4,7 @@ apply plugin: 'java' apply plugin: 'com.diffplug.spotless' group = 'com.onfido' -version = '7.0.0' +version = '7.1.0' buildscript { repositories { diff --git a/build.sbt b/build.sbt index bc229d8..453e70f 100644 --- a/build.sbt +++ b/build.sbt @@ -2,7 +2,7 @@ lazy val root = (project in file(".")). settings( organization := "com.onfido", name := "onfido-api-java", - version := "7.0.0", + version := "7.1.0", scalaVersion := "2.11.12", scalacOptions ++= Seq("-feature"), compile / javacOptions ++= Seq("-Xlint:deprecation"), diff --git a/pom.xml b/pom.xml index 562371e..a99f280 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ onfido-api-java jar onfido-api-java - 7.0.0 + 7.1.0 https://documentation.onfido.com Official Java API client library for the Onfido API diff --git a/src/main/java/com/onfido/ApiClient.java b/src/main/java/com/onfido/ApiClient.java index 50e6208..e883468 100644 --- a/src/main/java/com/onfido/ApiClient.java +++ b/src/main/java/com/onfido/ApiClient.java @@ -162,7 +162,7 @@ protected void init() { json = new JSON(); // Set default User-Agent. - setUserAgent("onfido-java/7.0.0"); + setUserAgent("onfido-java/7.1.0"); authentications = new HashMap(); } diff --git a/src/main/java/com/onfido/Configuration.java b/src/main/java/com/onfido/Configuration.java index 3b8300e..d8c49ab 100644 --- a/src/main/java/com/onfido/Configuration.java +++ b/src/main/java/com/onfido/Configuration.java @@ -19,7 +19,7 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0") public class Configuration { - public static final String VERSION = "7.0.0"; + public static final String VERSION = "7.1.0"; private static final AtomicReference defaultApiClient = new AtomicReference<>(); private static volatile Supplier apiClientFactory = ApiClient::new; diff --git a/src/main/java/com/onfido/model/DeviceIntelligencePropertiesDevice.java b/src/main/java/com/onfido/model/DeviceIntelligencePropertiesDevice.java index 7b01c08..ae11c47 100644 --- a/src/main/java/com/onfido/model/DeviceIntelligencePropertiesDevice.java +++ b/src/main/java/com/onfido/model/DeviceIntelligencePropertiesDevice.java @@ -206,6 +206,16 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti @javax.annotation.Nullable private Boolean randomizedDevice; + public static final String SERIALIZED_NAME_NUMBER_OF_IP_REUSE_REPORTS = "number_of_ip_reuse_reports"; + @SerializedName(SERIALIZED_NAME_NUMBER_OF_IP_REUSE_REPORTS) + @javax.annotation.Nullable + private BigDecimal numberOfIpReuseReports; + + public static final String SERIALIZED_NAME_NUMBER_OF_SUSPECTED_IP_REUSE_REPORTS = "number_of_suspected_ip_reuse_reports"; + @SerializedName(SERIALIZED_NAME_NUMBER_OF_SUSPECTED_IP_REUSE_REPORTS) + @javax.annotation.Nullable + private BigDecimal numberOfSuspectedIpReuseReports; + public static final String SERIALIZED_NAME_FAKE_NETWORK_REQUEST = "fake_network_request"; @SerializedName(SERIALIZED_NAME_FAKE_NETWORK_REQUEST) @javax.annotation.Nullable @@ -555,6 +565,44 @@ public void setRandomizedDevice(@javax.annotation.Nullable Boolean randomizedDev } + public DeviceIntelligencePropertiesDevice numberOfIpReuseReports(@javax.annotation.Nullable BigDecimal numberOfIpReuseReports) { + this.numberOfIpReuseReports = numberOfIpReuseReports; + return this; + } + + /** + * Counts the number of distinct document reports submitted in the last 24 hours that are associated with the applicant’s IP address. + * @return numberOfIpReuseReports + */ + @javax.annotation.Nullable + public BigDecimal getNumberOfIpReuseReports() { + return numberOfIpReuseReports; + } + + public void setNumberOfIpReuseReports(@javax.annotation.Nullable BigDecimal numberOfIpReuseReports) { + this.numberOfIpReuseReports = numberOfIpReuseReports; + } + + + public DeviceIntelligencePropertiesDevice numberOfSuspectedIpReuseReports(@javax.annotation.Nullable BigDecimal numberOfSuspectedIpReuseReports) { + this.numberOfSuspectedIpReuseReports = numberOfSuspectedIpReuseReports; + return this; + } + + /** + * Counts the number of distinct document reports from the last 24 hours associated with the applicant’s IP address that have a result of suspected and other document integrity or authenticity signals have been flagged. + * @return numberOfSuspectedIpReuseReports + */ + @javax.annotation.Nullable + public BigDecimal getNumberOfSuspectedIpReuseReports() { + return numberOfSuspectedIpReuseReports; + } + + public void setNumberOfSuspectedIpReuseReports(@javax.annotation.Nullable BigDecimal numberOfSuspectedIpReuseReports) { + this.numberOfSuspectedIpReuseReports = numberOfSuspectedIpReuseReports; + } + + public DeviceIntelligencePropertiesDevice fakeNetworkRequest(@javax.annotation.Nullable Boolean fakeNetworkRequest) { this.fakeNetworkRequest = fakeNetworkRequest; return this; @@ -731,6 +779,8 @@ public boolean equals(Object o) { Objects.equals(this.browser, deviceIntelligencePropertiesDevice.browser) && Objects.equals(this.emulator, deviceIntelligencePropertiesDevice.emulator) && Objects.equals(this.randomizedDevice, deviceIntelligencePropertiesDevice.randomizedDevice) && + Objects.equals(this.numberOfIpReuseReports, deviceIntelligencePropertiesDevice.numberOfIpReuseReports) && + Objects.equals(this.numberOfSuspectedIpReuseReports, deviceIntelligencePropertiesDevice.numberOfSuspectedIpReuseReports) && Objects.equals(this.fakeNetworkRequest, deviceIntelligencePropertiesDevice.fakeNetworkRequest) && Objects.equals(this.ipReputation, deviceIntelligencePropertiesDevice.ipReputation) && Objects.equals(this.deviceFingerprintReuse, deviceIntelligencePropertiesDevice.deviceFingerprintReuse) && @@ -746,7 +796,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(sdkVersion, sdkSource, authenticationType, rawModel, os, browser, emulator, randomizedDevice, fakeNetworkRequest, ipReputation, deviceFingerprintReuse, singleDeviceUsed, documentCapture, biometricCapture, additionalProperties); + return Objects.hash(sdkVersion, sdkSource, authenticationType, rawModel, os, browser, emulator, randomizedDevice, numberOfIpReuseReports, numberOfSuspectedIpReuseReports, fakeNetworkRequest, ipReputation, deviceFingerprintReuse, singleDeviceUsed, documentCapture, biometricCapture, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -768,6 +818,8 @@ public String toString() { sb.append(" browser: ").append(toIndentedString(browser)).append("\n"); sb.append(" emulator: ").append(toIndentedString(emulator)).append("\n"); sb.append(" randomizedDevice: ").append(toIndentedString(randomizedDevice)).append("\n"); + sb.append(" numberOfIpReuseReports: ").append(toIndentedString(numberOfIpReuseReports)).append("\n"); + sb.append(" numberOfSuspectedIpReuseReports: ").append(toIndentedString(numberOfSuspectedIpReuseReports)).append("\n"); sb.append(" fakeNetworkRequest: ").append(toIndentedString(fakeNetworkRequest)).append("\n"); sb.append(" ipReputation: ").append(toIndentedString(ipReputation)).append("\n"); sb.append(" deviceFingerprintReuse: ").append(toIndentedString(deviceFingerprintReuse)).append("\n"); @@ -796,7 +848,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("sdk_version", "sdk_source", "authentication_type", "raw_model", "os", "browser", "emulator", "randomized_device", "fake_network_request", "ip_reputation", "device_fingerprint_reuse", "single_device_used", "document_capture", "biometric_capture")); + openapiFields = new HashSet(Arrays.asList("sdk_version", "sdk_source", "authentication_type", "raw_model", "os", "browser", "emulator", "randomized_device", "number_of_ip_reuse_reports", "number_of_suspected_ip_reuse_reports", "fake_network_request", "ip_reputation", "device_fingerprint_reuse", "single_device_used", "document_capture", "biometric_capture")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0);