Skip to content
Open
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .release.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"source": {
"repo_url": "https://github.com/onfido/onfido-openapi-spec",
"short_sha": "d9d749d",
"long_sha": "d9d749dfbd3873524400efe236f7d398bb9e948e",
"short_sha": "ad80494",
"long_sha": "ad8049477731f42993257dd8cbbbd4a193f06c92",
"version": "v6.2.0"
},
"release": "v7.3.0"
Expand Down
8 changes: 5 additions & 3 deletions src/main/java/com/onfido/JSON.java
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,9 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri
gsonBuilder.registerTypeAdapterFactory(new com.onfido.model.ApplicantsList.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.onfido.model.BiometricToken.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.onfido.model.BiometricTokenData.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.onfido.model.BiometricTokenResponse.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.onfido.model.BiometricTokenUpdater.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.onfido.model.BiometricTokensList.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.onfido.model.BiometricTokensResponse.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.onfido.model.Check.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.onfido.model.CheckBuilder.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.onfido.model.CheckRequest.CustomTypeAdapterFactory());
Expand Down Expand Up @@ -310,9 +311,10 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri
gsonBuilder.registerTypeAdapterFactory(new com.onfido.model.IndiaPanReportAllOfBreakdownDeviceBreakdownPanValid.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.onfido.model.IndiaPanReportAllOfProperties.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.onfido.model.IndiaPanReportAllOfPropertiesDevice.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.onfido.model.InvalidatedBiometricTokenResponse.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.onfido.model.InvalidatedBiometricTokenSummary.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.onfido.model.InvalidatedBiometricTokenSummaryDeletedItems.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.onfido.model.InvalidatedBiometricTokensSummary.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.onfido.model.InvalidatedBiometricTokensResponse.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.onfido.model.KnownFacesBreakdown.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.onfido.model.KnownFacesBreakdownImageIntegrity.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.onfido.model.KnownFacesBreakdownPreviouslySeenFaces.CustomTypeAdapterFactory());
Expand Down Expand Up @@ -363,7 +365,7 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri
gsonBuilder.registerTypeAdapterFactory(new com.onfido.model.Task.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.onfido.model.TaskItem.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.onfido.model.TimelineFileReference.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.onfido.model.UpdateBiometricToken200Response.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.onfido.model.UpdatedBiometricTokenResponse.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.onfido.model.UsDrivingLicenceBreakdown.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.onfido.model.UsDrivingLicenceBreakdownAddress.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.onfido.model.UsDrivingLicenceBreakdownAddressBreakdown.CustomTypeAdapterFactory());
Expand Down
110 changes: 55 additions & 55 deletions src/main/java/com/onfido/api/DefaultApi.java

Large diffs are not rendered by default.

69 changes: 50 additions & 19 deletions src/main/java/com/onfido/model/BiometricToken.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import com.onfido.model.BiometricTokenData;
import java.io.IOException;
import java.util.Arrays;
import java.util.UUID;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
Expand All @@ -48,34 +50,58 @@
import com.onfido.JSON;

/**
* BiometricToken
* Biometric token.
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0")
public class BiometricToken {
public static final String SERIALIZED_NAME_BIOMETRIC_TOKEN = "biometric_token";
@SerializedName(SERIALIZED_NAME_BIOMETRIC_TOKEN)
public static final String SERIALIZED_NAME_UUID = "uuid";
@SerializedName(SERIALIZED_NAME_UUID)
@javax.annotation.Nonnull
private BiometricToken biometricToken;
private UUID uuid;

public static final String SERIALIZED_NAME_DATA = "data";
@SerializedName(SERIALIZED_NAME_DATA)
@javax.annotation.Nonnull
private BiometricTokenData data;

public BiometricToken() {
}

public BiometricToken biometricToken(@javax.annotation.Nonnull BiometricToken biometricToken) {
this.biometricToken = biometricToken;
public BiometricToken uuid(@javax.annotation.Nonnull UUID uuid) {
this.uuid = uuid;
return this;
}

/**
* The biometric token's unique identifier.
* @return uuid
*/
@javax.annotation.Nonnull
public UUID getUuid() {
return uuid;
}

public void setUuid(@javax.annotation.Nonnull UUID uuid) {
this.uuid = uuid;
}


public BiometricToken data(@javax.annotation.Nonnull BiometricTokenData data) {
this.data = data;
return this;
}

/**
* Get biometricToken
* @return biometricToken
* Get data
* @return data
*/
@javax.annotation.Nonnull
public BiometricToken getBiometricToken() {
return biometricToken;
public BiometricTokenData getData() {
return data;
}

public void setBiometricToken(@javax.annotation.Nonnull BiometricToken biometricToken) {
this.biometricToken = biometricToken;
public void setData(@javax.annotation.Nonnull BiometricTokenData data) {
this.data = data;
}

/**
Expand Down Expand Up @@ -133,20 +159,22 @@ public boolean equals(Object o) {
return false;
}
BiometricToken biometricToken = (BiometricToken) o;
return Objects.equals(this.biometricToken, biometricToken.biometricToken)&&
return Objects.equals(this.uuid, biometricToken.uuid) &&
Objects.equals(this.data, biometricToken.data)&&
Objects.equals(this.additionalProperties, biometricToken.additionalProperties);
}

@Override
public int hashCode() {
return Objects.hash(biometricToken, additionalProperties);
return Objects.hash(uuid, data, additionalProperties);
}

@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class BiometricToken {\n");
sb.append(" biometricToken: ").append(toIndentedString(biometricToken)).append("\n");
sb.append(" uuid: ").append(toIndentedString(uuid)).append("\n");
sb.append(" data: ").append(toIndentedString(data)).append("\n");
sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n");
sb.append("}");
return sb.toString();
Expand All @@ -169,10 +197,10 @@ private String toIndentedString(Object o) {

static {
// a set of all properties/fields (JSON key names)
openapiFields = new HashSet<String>(Arrays.asList("biometric_token"));
openapiFields = new HashSet<String>(Arrays.asList("uuid", "data"));

// a set of required properties/fields (JSON key names)
openapiRequiredFields = new HashSet<String>(Arrays.asList("biometric_token"));
openapiRequiredFields = new HashSet<String>(Arrays.asList("uuid", "data"));
}

/**
Expand All @@ -195,8 +223,11 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
}
}
JsonObject jsonObj = jsonElement.getAsJsonObject();
// validate the required field `biometric_token`
BiometricToken.validateJsonElement(jsonObj.get("biometric_token"));
if (!jsonObj.get("uuid").isJsonPrimitive()) {
throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString()));
}
// validate the required field `data`
BiometricTokenData.validateJsonElement(jsonObj.get("data"));
}

public static class CustomTypeAdapterFactory implements TypeAdapterFactory {
Expand Down
Loading
Loading