Skip to content

Commit

Permalink
Merge pull request #135 from onfido/release-upgrade
Browse files Browse the repository at this point in the history
Refresh onfido-java after onfido-openapi-spec update (c72181c)
  • Loading branch information
dvacca-onfido authored Nov 19, 2024
2 parents f655d35 + 50be880 commit 477e441
Show file tree
Hide file tree
Showing 18 changed files with 1,665 additions and 18 deletions.
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": "d180edd",
"long_sha": "d180eddd168dd95bf84bf7c8fe9f8c7e3c0c5494",
"version": "v4.1.0"
"short_sha": "c72181c",
"long_sha": "c72181cc5e450bf727fc5eae2639c58ba45831ac",
"version": "v4.2.0"
},
"release": "v5.1.0"
"release": "v5.2.0"
}
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Add this dependency to your project's POM:
<dependency>
<groupId>com.onfido</groupId>
<artifactId>onfido-api-java</artifactId>
<version>5.1.0</version>
<version>5.2.0</version>
<scope>compile</scope>
</dependency>
```
Expand All @@ -59,7 +59,7 @@ Add this dependency to your project's build file:
}
dependencies {
implementation "com.onfido:onfido-api-java:5.1.0"
implementation "com.onfido:onfido-api-java:5.2.0"
}
```

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

Then manually install the following JARs:

- `target/onfido-api-java-5.1.0.jar`
- `target/onfido-api-java-5.2.0.jar`
- `target/lib/*.jar`

The latest version can be found at: https://search.maven.org/artifact/com.onfido/5.1.0
The latest version can be found at: https://search.maven.org/artifact/com.onfido/5.2.0

## Getting Started

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 = '5.0.0'
version = '5.2.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 := "5.0.0",
version := "5.2.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>5.1.0</version>
<version>5.2.0</version>
<url>https://documentation.onfido.com</url>
<description>Official Java API client library for the Onfido API</description>
<scm>
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/com/onfido/ApiClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ private void init() {
json = new JSON();

// Set default User-Agent.
setUserAgent("onfido-java/5.1.0");
setUserAgent("onfido-java/5.2.0");

authentications = new HashMap<String, Authentication>();
}
Expand Down Expand Up @@ -728,6 +728,7 @@ public List<Pair> freeFormParameterToPairs(Object value) {
return params;
}

@SuppressWarnings("unchecked")
final Map<String, Object> valuesMap = (Map<String, Object>) value;

for (Map.Entry<String, Object> entry : valuesMap.entrySet()) {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/onfido/Configuration.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

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

private static ApiClient defaultApiClient = new ApiClient();

Expand Down
2 changes: 2 additions & 0 deletions src/main/java/com/onfido/JSON.java
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,8 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri
gsonBuilder.registerTypeAdapterFactory(new com.onfido.model.FacialSimilarityPhotoFullyAutoReport.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.onfido.model.FacialSimilarityPhotoProperties.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.onfido.model.FacialSimilarityPhotoReport.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.onfido.model.FacialSimilarityReportMedia.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.onfido.model.FacialSimilarityReportShared.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.onfido.model.FacialSimilarityVideoBreakdown.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.onfido.model.FacialSimilarityVideoBreakdownFaceComparison.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.onfido.model.FacialSimilarityVideoBreakdownImageIntegrity.CustomTypeAdapterFactory());
Expand Down
92 changes: 92 additions & 0 deletions src/main/java/com/onfido/model/DocumentTypes.java
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,98 @@ public enum DocumentTypes {

IDENTIFICATION_NUMBER_DOCUMENT("identification_number_document"),

ADOPTION_CERTIFICATE("adoption_certificate"),

BANK_BUILDING_SOCIETY_STATEMENT("bank_building_society_statement"),

BANK_STATEMENT("bank_statement"),

BENEFIT_LETTERS("benefit_letters"),

CBT("cbt"),

CERTIFICATE_OF_SPONSORSHIP("certificate_of_sponsorship"),

CHARACTER_REFERENCE("character_reference"),

CIVIL_PARTNERSHIP_CERTIFICATE("civil_partnership_certificate"),

COUNCIL_TAX("council_tax"),

CREDIT_CARD_STATEMENT("credit_card_statement"),

DEED_POLL("deed_poll"),

DIVORCE_ABSOLUTE_DECREE("divorce_absolute_decree"),

EDUCATIONAL_STATEMENT("educational_statement"),

ELECTRICITY_BILL("electricity_bill"),

GAS_BILL("gas_bill"),

GOVERNMENT_LETTER("government_letter"),

INTERNET_BILL("internet_bill"),

MARRIAGE_CERTIFICATE("marriage_certificate"),

MOTORCYCLE_INSURANCE("motorcycle_insurance"),

NATIONAL_INSURANCE_CARD("national_insurance_card"),

NATURALISATION_CERTIFICATE("naturalisation_certificate"),

NON_UK_DRIVING_LICENCE("non_uk_driving_licence"),

P45_P60("p45_p60"),

PAYSLIP("payslip"),

PHONE_BILL("phone_bill"),

PROFESSIONAL_IDENTIFICATION_CARD("professional_identification_card"),

RIGHT_TO_WORK_SHARE_CODE_RESULT("right_to_work_share_code_result"),

STATEMENT_FACT("statement_fact"),

T4_STUDENT_UNIVERSITY_TERM_DATES_EVIDENCE("t4_student_university_term_dates_evidence"),

UK_BIOMETRIC_RESIDENCE_PERMIT("uk_biometric_residence_permit"),

UK_DRIVING_LICENCE("uk_driving_licence"),

UNKNOWN("unknown"),

UTILITY_BILL("utility_bill"),

UTILITY_BILL_ELECTRIC("utility_bill_electric"),

UTILITY_BILL_GAS("utility_bill_gas"),

UTILITY_BILL_OTHER("utility_bill_other"),

WATER_BILL("water_bill"),

ADDRESS_CERTIFICATE("address_certificate"),

GENERAL_LETTER("general_letter"),

INSURANCE_STATEMENT("insurance_statement"),

PENSION_PROPERTY_STATEMENT_LETTER("pension_property_statement_letter"),

MORTGAGE_STATEMENT("mortgage_statement"),

MOBILE_PHONE_BILL("mobile_phone_bill"),

IDENTITY_DOCUMENT_WITH_ADDRESS("identity_document_with_address"),

EXCHANGE_HOUSE_STATEMENT("exchange_house_statement"),

ACCOMMODATION_TENANCY_CERTIFICATE("accommodation_tenancy_certificate"),

UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api");

private String value;
Expand Down
Loading

0 comments on commit 477e441

Please sign in to comment.