Skip to content

Commit 0523887

Browse files
Merge pull request #181 from onfido/release-upgrade
Refresh onfido-java after onfido-openapi-spec update (d9d749d)
2 parents 2421889 + 063e106 commit 0523887

24 files changed

Lines changed: 3632 additions & 36 deletions

.github/workflows/maven.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ jobs:
4949
if: ${{ github.repository_owner == 'onfido' &&
5050
(github.event_name == 'pull_request' ||
5151
github.event_name == 'release' ||
52-
github.event_name == 'workflow_dispatch') }}
52+
github.event_name == 'workflow_dispatch' ||
53+
github.event_name == 'schedule') }}
5354
run: mvn test
5455
env:
5556
ONFIDO_API_TOKEN: ${{ secrets.ONFIDO_API_TOKEN }}
@@ -62,7 +63,8 @@ jobs:
6263
if: ${{ github.repository_owner == 'onfido' &&
6364
(github.event_name == 'pull_request' ||
6465
github.event_name == 'release' ||
65-
github.event_name == 'workflow_dispatch') }}
66+
github.event_name == 'workflow_dispatch' ||
67+
github.event_name == 'schedule') }}
6668
run: mvn test
6769
env:
6870
ONFIDO_OAUTH_CLIENT_ID: ${{ secrets.ONFIDO_OAUTH_CLIENT_ID }}

.release.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"source": {
33
"repo_url": "https://github.com/onfido/onfido-openapi-spec",
4-
"short_sha": "6a36202",
5-
"long_sha": "6a362029f0a58437e8be7185303ef14d3f342feb",
6-
"version": "v6.1.0"
4+
"short_sha": "d9d749d",
5+
"long_sha": "d9d749dfbd3873524400efe236f7d398bb9e948e",
6+
"version": "v6.2.0"
77
},
8-
"release": "v7.2.0"
8+
"release": "v7.3.0"
99
}

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Add this dependency to your project's POM:
5050
<dependency>
5151
<groupId>com.onfido</groupId>
5252
<artifactId>onfido-api-java</artifactId>
53-
<version>7.2.0</version>
53+
<version>7.3.0</version>
5454
<scope>compile</scope>
5555
</dependency>
5656
```
@@ -66,7 +66,7 @@ Add this dependency to your project's build file:
6666
}
6767
6868
dependencies {
69-
implementation "com.onfido:onfido-api-java:7.2.0"
69+
implementation "com.onfido:onfido-api-java:7.3.0"
7070
}
7171
```
7272

@@ -80,10 +80,10 @@ mvn clean package
8080

8181
Then manually install the following JARs:
8282

83-
- `target/onfido-api-java-7.2.0.jar`
83+
- `target/onfido-api-java-7.3.0.jar`
8484
- `target/lib/*.jar`
8585

86-
The latest version can be found at <https://search.maven.org/artifact/com.onfido/onfido-api-java/7.2.0/jar>.
86+
The latest version can be found at <https://search.maven.org/artifact/com.onfido/onfido-api-java/7.3.0/jar>.
8787

8888
## Getting Started
8989

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ apply plugin: 'java'
44
apply plugin: 'com.diffplug.spotless'
55

66
group = 'com.onfido'
7-
version = '7.2.0'
7+
version = '7.3.0'
88

99
buildscript {
1010
repositories {

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ lazy val root = (project in file(".")).
22
settings(
33
organization := "com.onfido",
44
name := "onfido-api-java",
5-
version := "7.2.0",
5+
version := "7.3.0",
66
scalaVersion := "2.11.12",
77
scalacOptions ++= Seq("-feature"),
88
compile / javacOptions ++= Seq("-Xlint:deprecation"),

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<artifactId>onfido-api-java</artifactId>
66
<packaging>jar</packaging>
77
<name>onfido-api-java</name>
8-
<version>7.2.0</version>
8+
<version>7.3.0</version>
99
<url>https://documentation.onfido.com</url>
1010
<description>Official Java API client library for the Onfido API</description>
1111
<scm>

src/main/java/com/onfido/ApiClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ protected void init() {
241241
json = new JSON();
242242

243243
// Set default User-Agent.
244-
setUserAgent("onfido-java/7.2.0");
244+
setUserAgent("onfido-java/7.3.0");
245245

246246
authentications = new HashMap<String, Authentication>();
247247
}

src/main/java/com/onfido/Configuration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0")
2121
public class Configuration {
22-
public static final String VERSION = "7.2.0";
22+
public static final String VERSION = "7.3.0";
2323

2424
private static final AtomicReference<ApiClient> defaultApiClient = new AtomicReference<>();
2525
private static volatile Supplier<ApiClient> apiClientFactory = ApiClient::new;

src/main/java/com/onfido/JSON.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,10 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri
141141
gsonBuilder.registerTypeAdapterFactory(new com.onfido.model.ApplicantUpdate.CustomTypeAdapterFactory());
142142
gsonBuilder.registerTypeAdapterFactory(new com.onfido.model.ApplicantUpdater.CustomTypeAdapterFactory());
143143
gsonBuilder.registerTypeAdapterFactory(new com.onfido.model.ApplicantsList.CustomTypeAdapterFactory());
144+
gsonBuilder.registerTypeAdapterFactory(new com.onfido.model.BiometricToken.CustomTypeAdapterFactory());
145+
gsonBuilder.registerTypeAdapterFactory(new com.onfido.model.BiometricTokenData.CustomTypeAdapterFactory());
146+
gsonBuilder.registerTypeAdapterFactory(new com.onfido.model.BiometricTokenUpdater.CustomTypeAdapterFactory());
147+
gsonBuilder.registerTypeAdapterFactory(new com.onfido.model.BiometricTokensList.CustomTypeAdapterFactory());
144148
gsonBuilder.registerTypeAdapterFactory(new com.onfido.model.Check.CustomTypeAdapterFactory());
145149
gsonBuilder.registerTypeAdapterFactory(new com.onfido.model.CheckBuilder.CustomTypeAdapterFactory());
146150
gsonBuilder.registerTypeAdapterFactory(new com.onfido.model.CheckRequest.CustomTypeAdapterFactory());
@@ -306,6 +310,9 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri
306310
gsonBuilder.registerTypeAdapterFactory(new com.onfido.model.IndiaPanReportAllOfBreakdownDeviceBreakdownPanValid.CustomTypeAdapterFactory());
307311
gsonBuilder.registerTypeAdapterFactory(new com.onfido.model.IndiaPanReportAllOfProperties.CustomTypeAdapterFactory());
308312
gsonBuilder.registerTypeAdapterFactory(new com.onfido.model.IndiaPanReportAllOfPropertiesDevice.CustomTypeAdapterFactory());
313+
gsonBuilder.registerTypeAdapterFactory(new com.onfido.model.InvalidatedBiometricTokenSummary.CustomTypeAdapterFactory());
314+
gsonBuilder.registerTypeAdapterFactory(new com.onfido.model.InvalidatedBiometricTokenSummaryDeletedItems.CustomTypeAdapterFactory());
315+
gsonBuilder.registerTypeAdapterFactory(new com.onfido.model.InvalidatedBiometricTokensSummary.CustomTypeAdapterFactory());
309316
gsonBuilder.registerTypeAdapterFactory(new com.onfido.model.KnownFacesBreakdown.CustomTypeAdapterFactory());
310317
gsonBuilder.registerTypeAdapterFactory(new com.onfido.model.KnownFacesBreakdownImageIntegrity.CustomTypeAdapterFactory());
311318
gsonBuilder.registerTypeAdapterFactory(new com.onfido.model.KnownFacesBreakdownPreviouslySeenFaces.CustomTypeAdapterFactory());
@@ -356,6 +363,7 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri
356363
gsonBuilder.registerTypeAdapterFactory(new com.onfido.model.Task.CustomTypeAdapterFactory());
357364
gsonBuilder.registerTypeAdapterFactory(new com.onfido.model.TaskItem.CustomTypeAdapterFactory());
358365
gsonBuilder.registerTypeAdapterFactory(new com.onfido.model.TimelineFileReference.CustomTypeAdapterFactory());
366+
gsonBuilder.registerTypeAdapterFactory(new com.onfido.model.UpdateBiometricToken200Response.CustomTypeAdapterFactory());
359367
gsonBuilder.registerTypeAdapterFactory(new com.onfido.model.UsDrivingLicenceBreakdown.CustomTypeAdapterFactory());
360368
gsonBuilder.registerTypeAdapterFactory(new com.onfido.model.UsDrivingLicenceBreakdownAddress.CustomTypeAdapterFactory());
361369
gsonBuilder.registerTypeAdapterFactory(new com.onfido.model.UsDrivingLicenceBreakdownAddressBreakdown.CustomTypeAdapterFactory());

0 commit comments

Comments
 (0)