Skip to content

Commit

Permalink
Merge pull request #66 from onfido/feature/v3.3
Browse files Browse the repository at this point in the history
Update to support v3.3
  • Loading branch information
Phoebe-B authored Mar 3, 2022
2 parents 220aaaf + 111bb41 commit 3e47ffa
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

The official Java library for integrating with the Onfido API. Refer to the full [API documentation](https://documentation.onfido.com) for details of expected requests and responses for all resources.

This version uses Onfido API v3.2. Refer to our [API versioning guide](https://developers.onfido.com/guide/api-versioning-policy#client-libraries) for details of which client library versions use which versions of the API.
This version uses Onfido API v3.3. Refer to our [API versioning guide](https://developers.onfido.com/guide/api-versioning-policy#client-libraries) for details of which client library versions use which versions of the API.

## Installation

Expand Down
2 changes: 1 addition & 1 deletion onfido-java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>com.onfido</groupId>
<artifactId>onfido-api-java</artifactId>
<version>2.4.1</version>
<version>2.5.0</version>

<name>Onfido API Java Client</name>
<description>Official Java API client library for the Onfido API</description>
Expand Down
6 changes: 3 additions & 3 deletions onfido-java/src/main/java/com/onfido/Onfido.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
public final class Onfido {
private static final OkHttpClient CLIENT = new OkHttpClient();

private static final String EU_API_URL = "https://api.eu.onfido.com/v3.2/";
private static final String US_API_URL = "https://api.us.onfido.com/v3.2/";
private static final String CA_API_URL = "https://api.ca.onfido.com/v3.2/";
private static final String EU_API_URL = "https://api.eu.onfido.com/v3.3/";
private static final String US_API_URL = "https://api.us.onfido.com/v3.3/";
private static final String CA_API_URL = "https://api.ca.onfido.com/v3.3/";

/** The Configuration for the instance. */
public final Config config;
Expand Down
6 changes: 3 additions & 3 deletions onfido-java/src/test/java/com/onfido/OnfidoTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,18 @@ public void throwsExceptionForMissingRegion() {
@Test()
public void usesEURegionApiUrl() {
Onfido onfido = Onfido.builder().apiToken("token").regionEU().build();
assertEquals("https://api.eu.onfido.com/v3.2/", onfido.config.getApiUrl());
assertEquals("https://api.eu.onfido.com/v3.3/", onfido.config.getApiUrl());
}

@Test()
public void usesUSRegionApiUrl() {
Onfido onfido = Onfido.builder().apiToken("token").regionUS().build();
assertEquals("https://api.us.onfido.com/v3.2/", onfido.config.getApiUrl());
assertEquals("https://api.us.onfido.com/v3.3/", onfido.config.getApiUrl());
}

@Test()
public void usesCanadaRegionApiUrl() {
Onfido onfido = Onfido.builder().apiToken("token").regionCA().build();
assertEquals("https://api.ca.onfido.com/v3.2/", onfido.config.getApiUrl());
assertEquals("https://api.ca.onfido.com/v3.3/", onfido.config.getApiUrl());
}
}

0 comments on commit 3e47ffa

Please sign in to comment.