Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 4 additions & 4 deletions .release.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"source": {
"repo_url": "https://github.com/onfido/onfido-openapi-spec",
"short_sha": "22e3bd3",
"long_sha": "22e3bd3bc410d379ded0cdd592f71059fc0aee1d",
"version": "v5.4.0"
"short_sha": "c80d3b5",
"long_sha": "c80d3b513a15bb67ec316709884b890ab2f47121",
"version": "v5.5.0"
},
"release": "v6.4.0"
"release": "v6.5.0"
}
18 changes: 13 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Add this dependency to your project's POM:
<dependency>
<groupId>com.onfido</groupId>
<artifactId>onfido-api-java</artifactId>
<version>6.4.0</version>
<version>6.5.0</version>
<scope>compile</scope>
</dependency>
```
Expand All @@ -66,7 +66,7 @@ Add this dependency to your project's build file:
}

dependencies {
implementation "com.onfido:onfido-api-java:6.4.0"
implementation "com.onfido:onfido-api-java:6.5.0"
}
```

Expand All @@ -80,10 +80,10 @@ mvn clean package

Then manually install the following JARs:

- `target/onfido-api-java-6.4.0.jar`
- `target/onfido-api-java-6.5.0.jar`
- `target/lib/*.jar`

The latest version can be found at <https://search.maven.org/artifact/com.onfido/onfido-api-java/6.4.0/jar>.
The latest version can be found at <https://search.maven.org/artifact/com.onfido/onfido-api-java/6.5.0/jar>.

## Getting Started

Expand Down Expand Up @@ -162,14 +162,22 @@ try {

### Recommendations

### Don't share DefaultApi among different threads
#### Don't share DefaultApi among different threads

It's recommended to create an instance of `DefaultApi` per thread in a multithreaded environment to avoid potential issues.

#### Do not use additional properties

Except for retrieving Task object's outputs, avoid using `getAdditionalProperty()` or `getAdditionalProperties()` methods to access undefined properties to prevent breaking changes when these fields appear.

#### Use the linter when contributing

When contributing to the project, run the linter to ensure code quality:

```bash
google-java-format -i $(git ls-files src/test/\*.java)
```

## Contributing

This library is automatically generated using [OpenAPI Generator](https://openapi-generator.tech) (version: 7.11.0); therefore, all contributions (except test files) should target the [Onfido OpenAPI specification repository](https://github.com/onfido/onfido-openapi-spec/tree/master) instead of this repository. Please follow the contribution guidelines provided in the OpenAPI specification repository.
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ apply plugin: 'java'
apply plugin: 'com.diffplug.spotless'

group = 'com.onfido'
version = '6.4.0'
version = '6.5.0'

buildscript {
repositories {
Expand Down
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ lazy val root = (project in file(".")).
settings(
organization := "com.onfido",
name := "onfido-api-java",
version := "6.4.0",
version := "6.5.0",
scalaVersion := "2.11.4",
scalacOptions ++= Seq("-feature"),
javacOptions in compile ++= Seq("-Xlint:deprecation"),
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<artifactId>onfido-api-java</artifactId>
<packaging>jar</packaging>
<name>onfido-api-java</name>
<version>6.4.0</version>
<version>6.5.0</version>
<url>https://documentation.onfido.com</url>
<description>Official Java API client library for the Onfido API</description>
<scm>
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/onfido/ApiCallback.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Onfido API v3.6
* The Onfido API (v3.6)
* Onfido Public API v3.6
* The Onfido Public API (v3.6)
*
* The version of the OpenAPI document: v3.6
*
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/com/onfido/ApiClient.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Onfido API v3.6
* The Onfido API (v3.6)
* Onfido Public API v3.6
* The Onfido Public API (v3.6)
*
* The version of the OpenAPI document: v3.6
*
Expand Down Expand Up @@ -162,7 +162,7 @@ private void init() {
json = new JSON();

// Set default User-Agent.
setUserAgent("onfido-java/6.4.0");
setUserAgent("onfido-java/6.5.0");

authentications = new HashMap<String, Authentication>();
}
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/onfido/ApiException.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Onfido API v3.6
* The Onfido API (v3.6)
* Onfido Public API v3.6
* The Onfido Public API (v3.6)
*
* The version of the OpenAPI document: v3.6
*
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/onfido/ApiResponse.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Onfido API v3.6
* The Onfido API (v3.6)
* Onfido Public API v3.6
* The Onfido Public API (v3.6)
*
* The version of the OpenAPI document: v3.6
*
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/com/onfido/Configuration.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Onfido API v3.6
* The Onfido API (v3.6)
* Onfido Public API v3.6
* The Onfido Public API (v3.6)
*
* The version of the OpenAPI document: v3.6
*
Expand All @@ -15,7 +15,7 @@

@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.11.0")
public class Configuration {
public static final String VERSION = "6.4.0";
public static final String VERSION = "6.5.0";

private static ApiClient defaultApiClient = new ApiClient();

Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/onfido/GzipRequestInterceptor.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Onfido API v3.6
* The Onfido API (v3.6)
* Onfido Public API v3.6
* The Onfido Public API (v3.6)
*
* The version of the OpenAPI document: v3.6
*
Expand Down
8 changes: 6 additions & 2 deletions src/main/java/com/onfido/JSON.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Onfido API v3.6
* The Onfido API (v3.6)
* Onfido Public API v3.6
* The Onfido Public API (v3.6)
*
* The version of the OpenAPI document: v3.6
*
Expand Down Expand Up @@ -314,6 +314,10 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri
gsonBuilder.registerTypeAdapterFactory(new com.onfido.model.IdentityEnhancedProperties.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.onfido.model.IdentityEnhancedPropertiesMatchedAddressesInner.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.onfido.model.IdentityEnhancedReport.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.onfido.model.IdrSsnBreakdown.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.onfido.model.IdrSsnBreakdownBreakdown.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.onfido.model.IdrSsnBreakdownBreakdownFullMatch.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.onfido.model.IdrSsnBreakdownBreakdownLast4DigitsMatch.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.onfido.model.IndiaPanReport.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.onfido.model.IndiaPanReportAllOfBreakdown.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.onfido.model.IndiaPanReportAllOfBreakdownDevice.CustomTypeAdapterFactory());
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/onfido/Pair.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Onfido API v3.6
* The Onfido API (v3.6)
* Onfido Public API v3.6
* The Onfido Public API (v3.6)
*
* The version of the OpenAPI document: v3.6
*
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/onfido/ProgressRequestBody.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Onfido API v3.6
* The Onfido API (v3.6)
* Onfido Public API v3.6
* The Onfido Public API (v3.6)
*
* The version of the OpenAPI document: v3.6
*
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/onfido/ProgressResponseBody.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Onfido API v3.6
* The Onfido API (v3.6)
* Onfido Public API v3.6
* The Onfido Public API (v3.6)
*
* The version of the OpenAPI document: v3.6
*
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/onfido/ServerConfiguration.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Onfido API v3.6
* The Onfido API (v3.6)
* Onfido Public API v3.6
* The Onfido Public API (v3.6)
*
* The version of the OpenAPI document: v3.6
*
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/onfido/ServerVariable.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Onfido API v3.6
* The Onfido API (v3.6)
* Onfido Public API v3.6
* The Onfido Public API (v3.6)
*
* The version of the OpenAPI document: v3.6
*
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/onfido/StringUtil.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Onfido API v3.6
* The Onfido API (v3.6)
* Onfido Public API v3.6
* The Onfido Public API (v3.6)
*
* The version of the OpenAPI document: v3.6
*
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/onfido/api/DefaultApi.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Onfido API v3.6
* The Onfido API (v3.6)
* Onfido Public API v3.6
* The Onfido Public API (v3.6)
*
* The version of the OpenAPI document: v3.6
*
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/onfido/auth/ApiKeyAuth.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Onfido API v3.6
* The Onfido API (v3.6)
* Onfido Public API v3.6
* The Onfido Public API (v3.6)
*
* The version of the OpenAPI document: v3.6
*
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/onfido/auth/Authentication.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Onfido API v3.6
* The Onfido API (v3.6)
* Onfido Public API v3.6
* The Onfido Public API (v3.6)
*
* The version of the OpenAPI document: v3.6
*
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/onfido/auth/HttpBasicAuth.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Onfido API v3.6
* The Onfido API (v3.6)
* Onfido Public API v3.6
* The Onfido Public API (v3.6)
*
* The version of the OpenAPI document: v3.6
*
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/onfido/auth/HttpBearerAuth.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Onfido API v3.6
* The Onfido API (v3.6)
* Onfido Public API v3.6
* The Onfido Public API (v3.6)
*
* The version of the OpenAPI document: v3.6
*
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/onfido/model/AbstractOpenApiSchema.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Onfido API v3.6
* The Onfido API (v3.6)
* Onfido Public API v3.6
* The Onfido Public API (v3.6)
*
* The version of the OpenAPI document: v3.6
*
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/onfido/model/Address.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Onfido API v3.6
* The Onfido API (v3.6)
* Onfido Public API v3.6
* The Onfido Public API (v3.6)
*
* The version of the OpenAPI document: v3.6
*
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/onfido/model/AddressBuilder.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Onfido API v3.6
* The Onfido API (v3.6)
* Onfido Public API v3.6
* The Onfido Public API (v3.6)
*
* The version of the OpenAPI document: v3.6
*
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/onfido/model/AddressShared.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Onfido API v3.6
* The Onfido API (v3.6)
* Onfido Public API v3.6
* The Onfido Public API (v3.6)
*
* The version of the OpenAPI document: v3.6
*
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/onfido/model/AddressesList.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Onfido API v3.6
* The Onfido API (v3.6)
* Onfido Public API v3.6
* The Onfido Public API (v3.6)
*
* The version of the OpenAPI document: v3.6
*
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/onfido/model/Applicant.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Onfido API v3.6
* The Onfido API (v3.6)
* Onfido Public API v3.6
* The Onfido Public API (v3.6)
*
* The version of the OpenAPI document: v3.6
*
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/onfido/model/ApplicantBuilder.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Onfido API v3.6
* The Onfido API (v3.6)
* Onfido Public API v3.6
* The Onfido Public API (v3.6)
*
* The version of the OpenAPI document: v3.6
*
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/onfido/model/ApplicantConsent.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Onfido API v3.6
* The Onfido API (v3.6)
* Onfido Public API v3.6
* The Onfido Public API (v3.6)
*
* The version of the OpenAPI document: v3.6
*
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/onfido/model/ApplicantConsentBuilder.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Onfido API v3.6
* The Onfido API (v3.6)
* Onfido Public API v3.6
* The Onfido Public API (v3.6)
*
* The version of the OpenAPI document: v3.6
*
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/onfido/model/ApplicantConsentName.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Onfido API v3.6
* The Onfido API (v3.6)
* Onfido Public API v3.6
* The Onfido Public API (v3.6)
*
* The version of the OpenAPI document: v3.6
*
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/onfido/model/ApplicantCreate.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Onfido API v3.6
* The Onfido API (v3.6)
* Onfido Public API v3.6
* The Onfido Public API (v3.6)
*
* The version of the OpenAPI document: v3.6
*
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/onfido/model/ApplicantRequest.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Onfido API v3.6
* The Onfido API (v3.6)
* Onfido Public API v3.6
* The Onfido Public API (v3.6)
*
* The version of the OpenAPI document: v3.6
*
Expand Down
Loading
Loading