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
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": "46cd3c9",
"long_sha": "46cd3c929587a947b834033b94943f53745088c0",
"short_sha": "5bda1d2",
"long_sha": "5bda1d2f01afcb4aef0a10f2783e5b5372670bd6",
"version": "v6.2.0"
},
"release": "v7.3.0"
Expand Down
16 changes: 16 additions & 0 deletions src/main/java/com/onfido/JSON.java
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,22 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri
gsonBuilder.registerTypeAdapterFactory(new com.onfido.model.WatchlistEnhancedPropertiesRecordsInnerEventInnerSource.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.onfido.model.WatchlistEnhancedPropertiesRecordsInnerSourceInner.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.onfido.model.WatchlistEnhancedReport.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.onfido.model.WatchlistMeshAddedMentions.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.onfido.model.WatchlistMeshAlertRisk.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.onfido.model.WatchlistMeshAlertRisk1.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.onfido.model.WatchlistMeshAssociate.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.onfido.model.WatchlistMeshDateValue.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.onfido.model.WatchlistMeshField.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.onfido.model.WatchlistMeshImage.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.onfido.model.WatchlistMeshLists.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.onfido.model.WatchlistMeshMedia.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.onfido.model.WatchlistMeshName.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.onfido.model.WatchlistMeshPep.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.onfido.model.WatchlistMeshPerson.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.onfido.model.WatchlistMeshProfile.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.onfido.model.WatchlistMeshRiskDetail.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.onfido.model.WatchlistMeshRiskIndicators.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.onfido.model.WatchlistMeshSanctions.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.onfido.model.WatchlistMonitor.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.onfido.model.WatchlistMonitorBuilder.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.onfido.model.WatchlistMonitorMatch.CustomTypeAdapterFactory());
Expand Down
196 changes: 196 additions & 0 deletions src/main/java/com/onfido/api/DefaultApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
import java.net.URI;
import java.util.UUID;
import com.onfido.model.UpdatedBiometricTokenResponse;
import com.onfido.model.WatchlistMeshAlertRisk;
import com.onfido.model.WatchlistMonitor;
import com.onfido.model.WatchlistMonitorBuilder;
import com.onfido.model.WatchlistMonitorMatchesList;
Expand Down Expand Up @@ -10958,6 +10959,201 @@ public okhttp3.Call executeAsync(final ApiCallback<List<TaskItem>> _callback) th
public APIlistTasksRequest listTasks(@javax.annotation.Nonnull UUID workflowRunId) {
return new APIlistTasksRequest(workflowRunId);
}
private okhttp3.Call listWatchlistMeshAlertRisksCall(@javax.annotation.Nonnull UUID alertId, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer perPage, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };

// Determine Base Path to Use
if (localCustomBaseUrl != null){
basePath = localCustomBaseUrl;
} else if ( localBasePaths.length > 0 ) {
basePath = localBasePaths[localHostIndex];
} else {
basePath = null;
}

Object localVarPostBody = null;

// create path and map variables
String localVarPath = "/complyadvantage_watchlists/alerts/{alert_id}/risks"
.replace("{" + "alert_id" + "}", localVarApiClient.escapeString(alertId.toString()));

List<Pair> localVarQueryParams = new ArrayList<Pair>();
List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
Map<String, String> localVarCookieParams = new HashMap<String, String>();
Map<String, Object> localVarFormParams = new HashMap<String, Object>();

if (page != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("page", page));
}

if (perPage != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("per_page", perPage));
}

final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}

final String[] localVarContentTypes = {
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
localVarHeaderParams.put("Content-Type", localVarContentType);
}

String[] localVarAuthNames = new String[] { "OAuth2ClientCredentials", "Token" };
return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}

@SuppressWarnings("rawtypes")
private okhttp3.Call listWatchlistMeshAlertRisksValidateBeforeCall(@javax.annotation.Nonnull UUID alertId, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer perPage, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'alertId' is set
if (alertId == null) {
throw new ApiException("Missing the required parameter 'alertId' when calling listWatchlistMeshAlertRisks(Async)");
}

return listWatchlistMeshAlertRisksCall(alertId, page, perPage, _callback);

}


private ApiResponse<List<WatchlistMeshAlertRisk>> listWatchlistMeshAlertRisksWithHttpInfo(@javax.annotation.Nonnull UUID alertId, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer perPage) throws ApiException {
okhttp3.Call localVarCall = listWatchlistMeshAlertRisksValidateBeforeCall(alertId, page, perPage, null);
Type localVarReturnType = new TypeToken<List<WatchlistMeshAlertRisk>>(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}

private okhttp3.Call listWatchlistMeshAlertRisksAsync(@javax.annotation.Nonnull UUID alertId, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer perPage, final ApiCallback<List<WatchlistMeshAlertRisk>> _callback) throws ApiException {

okhttp3.Call localVarCall = listWatchlistMeshAlertRisksValidateBeforeCall(alertId, page, perPage, _callback);
Type localVarReturnType = new TypeToken<List<WatchlistMeshAlertRisk>>(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}

public class APIlistWatchlistMeshAlertRisksRequest {
@javax.annotation.Nonnull
private final UUID alertId;
@javax.annotation.Nullable
private Integer page;
@javax.annotation.Nullable
private Integer perPage;

private APIlistWatchlistMeshAlertRisksRequest(@javax.annotation.Nonnull UUID alertId) {
this.alertId = alertId;
}

/**
* Set page
* @param page The page of results to retrieve. (optional, default to 1)
* @return APIlistWatchlistMeshAlertRisksRequest
*/
public APIlistWatchlistMeshAlertRisksRequest page(@javax.annotation.Nullable Integer page) {
this.page = page;
return this;
}

/**
* Set perPage
* @param perPage The number of risks to return per page. (optional, default to 25)
* @return APIlistWatchlistMeshAlertRisksRequest
*/
public APIlistWatchlistMeshAlertRisksRequest perPage(@javax.annotation.Nullable Integer perPage) {
this.perPage = perPage;
return this;
}

/**
* Build call for listWatchlistMeshAlertRisks
* @param _callback ApiCallback API callback
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
<table border="1">
<caption>Response Details</caption>
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
<tr><td> 200 </td><td> An array of watchlist alert risks. </td><td> * X-Total-Count - The total number of risks associated with the alert. <br> </td></tr>
<tr><td> 0 </td><td> Unexpected error </td><td> - </td></tr>
</table>
*/
public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
return listWatchlistMeshAlertRisksCall(alertId, page, perPage, _callback);
}

/**
* Execute listWatchlistMeshAlertRisks request
* @return List&lt;WatchlistMeshAlertRisk&gt;
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
<table border="1">
<caption>Response Details</caption>
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
<tr><td> 200 </td><td> An array of watchlist alert risks. </td><td> * X-Total-Count - The total number of risks associated with the alert. <br> </td></tr>
<tr><td> 0 </td><td> Unexpected error </td><td> - </td></tr>
</table>
*/
public List<WatchlistMeshAlertRisk> execute() throws ApiException {
ApiResponse<List<WatchlistMeshAlertRisk>> localVarResp = listWatchlistMeshAlertRisksWithHttpInfo(alertId, page, perPage);
return localVarResp.getData();
}

/**
* Execute listWatchlistMeshAlertRisks request with HTTP info returned
* @return ApiResponse&lt;List&lt;WatchlistMeshAlertRisk&gt;&gt;
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
<table border="1">
<caption>Response Details</caption>
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
<tr><td> 200 </td><td> An array of watchlist alert risks. </td><td> * X-Total-Count - The total number of risks associated with the alert. <br> </td></tr>
<tr><td> 0 </td><td> Unexpected error </td><td> - </td></tr>
</table>
*/
public ApiResponse<List<WatchlistMeshAlertRisk>> executeWithHttpInfo() throws ApiException {
return listWatchlistMeshAlertRisksWithHttpInfo(alertId, page, perPage);
}

/**
* Execute listWatchlistMeshAlertRisks request (asynchronously)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
<table border="1">
<caption>Response Details</caption>
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
<tr><td> 200 </td><td> An array of watchlist alert risks. </td><td> * X-Total-Count - The total number of risks associated with the alert. <br> </td></tr>
<tr><td> 0 </td><td> Unexpected error </td><td> - </td></tr>
</table>
*/
public okhttp3.Call executeAsync(final ApiCallback<List<WatchlistMeshAlertRisk>> _callback) throws ApiException {
return listWatchlistMeshAlertRisksAsync(alertId, page, perPage, _callback);
}
}

/**
* Retrieve watchlist mesh alert risks
* Retrieves the detailed risks associated with a watchlist mesh alert.
* @param alertId The unique identifier of the alert whose risks you want to retrieve. (required)
* @return APIlistWatchlistMeshAlertRisksRequest
* @http.response.details
<table border="1">
<caption>Response Details</caption>
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
<tr><td> 200 </td><td> An array of watchlist alert risks. </td><td> * X-Total-Count - The total number of risks associated with the alert. <br> </td></tr>
<tr><td> 0 </td><td> Unexpected error </td><td> - </td></tr>
</table>
*/
public APIlistWatchlistMeshAlertRisksRequest listWatchlistMeshAlertRisks(@javax.annotation.Nonnull UUID alertId) {
return new APIlistWatchlistMeshAlertRisksRequest(alertId);
}
private okhttp3.Call listWatchlistMonitorMatchesCall(@javax.annotation.Nonnull UUID monitorId, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,30 +53,30 @@
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0")
public class InvalidatedBiometricTokenResponse {
public static final String SERIALIZED_NAME_BIOMETRIC_TOKEN = "biometric_token";
@SerializedName(SERIALIZED_NAME_BIOMETRIC_TOKEN)
public static final String SERIALIZED_NAME_BIOMETRIC_TOKENS = "biometric_tokens";
@SerializedName(SERIALIZED_NAME_BIOMETRIC_TOKENS)
@javax.annotation.Nonnull
private InvalidatedBiometricTokenSummary biometricToken;
private InvalidatedBiometricTokenSummary biometricTokens;

public InvalidatedBiometricTokenResponse() {
}

public InvalidatedBiometricTokenResponse biometricToken(@javax.annotation.Nonnull InvalidatedBiometricTokenSummary biometricToken) {
this.biometricToken = biometricToken;
public InvalidatedBiometricTokenResponse biometricTokens(@javax.annotation.Nonnull InvalidatedBiometricTokenSummary biometricTokens) {
this.biometricTokens = biometricTokens;
return this;
}

/**
* Get biometricToken
* @return biometricToken
* Get biometricTokens
* @return biometricTokens
*/
@javax.annotation.Nonnull
public InvalidatedBiometricTokenSummary getBiometricToken() {
return biometricToken;
public InvalidatedBiometricTokenSummary getBiometricTokens() {
return biometricTokens;
}

public void setBiometricToken(@javax.annotation.Nonnull InvalidatedBiometricTokenSummary biometricToken) {
this.biometricToken = biometricToken;
public void setBiometricTokens(@javax.annotation.Nonnull InvalidatedBiometricTokenSummary biometricTokens) {
this.biometricTokens = biometricTokens;
}

/**
Expand Down Expand Up @@ -134,20 +134,20 @@ public boolean equals(Object o) {
return false;
}
InvalidatedBiometricTokenResponse invalidatedBiometricTokenResponse = (InvalidatedBiometricTokenResponse) o;
return Objects.equals(this.biometricToken, invalidatedBiometricTokenResponse.biometricToken)&&
return Objects.equals(this.biometricTokens, invalidatedBiometricTokenResponse.biometricTokens)&&
Objects.equals(this.additionalProperties, invalidatedBiometricTokenResponse.additionalProperties);
}

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

@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class InvalidatedBiometricTokenResponse {\n");
sb.append(" biometricToken: ").append(toIndentedString(biometricToken)).append("\n");
sb.append(" biometricTokens: ").append(toIndentedString(biometricTokens)).append("\n");
sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n");
sb.append("}");
return sb.toString();
Expand All @@ -170,10 +170,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("biometric_tokens"));

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

/**
Expand All @@ -196,8 +196,8 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
}
}
JsonObject jsonObj = jsonElement.getAsJsonObject();
// validate the required field `biometric_token`
InvalidatedBiometricTokenSummary.validateJsonElement(jsonObj.get("biometric_token"));
// validate the required field `biometric_tokens`
InvalidatedBiometricTokenSummary.validateJsonElement(jsonObj.get("biometric_tokens"));
}

public static class CustomTypeAdapterFactory implements TypeAdapterFactory {
Expand Down
Loading
Loading