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
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ public enum ImageQualityCheckType {
/** Signals if the portrait is present */
Portrait(7),

/** Signals if the document contains handwritten text in the scanned fields */
Handwritten(8),

/** Signals if the document image is bright enough */
Brightness(9),

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,12 @@ public class ProcessParams {
@javax.annotation.Nullable
private Boolean disableAuthResolutionFilter;

public static final String SERIALIZED_NAME_STRICT_SECURITY_CHECKS = "strictSecurityChecks";

@SerializedName(SERIALIZED_NAME_STRICT_SECURITY_CHECKS)
@javax.annotation.Nullable
private Boolean strictSecurityChecks;

public ProcessParams() {}

public ProcessParams generateDTCVC(@javax.annotation.Nullable Boolean generateDTCVC) {
Expand Down Expand Up @@ -1820,6 +1826,28 @@ public void setDisableAuthResolutionFilter(
this.disableAuthResolutionFilter = disableAuthResolutionFilter;
}

public ProcessParams strictSecurityChecks(
@javax.annotation.Nullable Boolean strictSecurityChecks) {
this.strictSecurityChecks = strictSecurityChecks;
return this;
}

/**
* When enabled, this parameter marks security checks that don’t meet minimum requirements as
* 'Failed' (instead of 'WasNotDone'), which causes the overall security status to
* be 'Failed'.
*
* @return strictSecurityChecks
*/
@javax.annotation.Nullable
public Boolean getStrictSecurityChecks() {
return strictSecurityChecks;
}

public void setStrictSecurityChecks(@javax.annotation.Nullable Boolean strictSecurityChecks) {
this.strictSecurityChecks = strictSecurityChecks;
}

@Override
public boolean equals(Object o) {
if (this == o) {
Expand Down Expand Up @@ -1896,7 +1924,8 @@ public boolean equals(Object o) {
&& Objects.equals(this.generateAlpha2Codes, processParams.generateAlpha2Codes)
&& Objects.equals(this.pdfPagesLimit, processParams.pdfPagesLimit)
&& Objects.equals(
this.disableAuthResolutionFilter, processParams.disableAuthResolutionFilter);
this.disableAuthResolutionFilter, processParams.disableAuthResolutionFilter)
&& Objects.equals(this.strictSecurityChecks, processParams.strictSecurityChecks);
}

@Override
Expand Down Expand Up @@ -1965,7 +1994,8 @@ public int hashCode() {
strictDLCategoryExpiry,
generateAlpha2Codes,
pdfPagesLimit,
disableAuthResolutionFilter);
disableAuthResolutionFilter,
strictSecurityChecks);
}

@Override
Expand Down Expand Up @@ -2072,6 +2102,9 @@ public String toString() {
sb.append(" disableAuthResolutionFilter: ")
.append(toIndentedString(disableAuthResolutionFilter))
.append("\n");
sb.append(" strictSecurityChecks: ")
.append(toIndentedString(strictSecurityChecks))
.append("\n");
sb.append("}");
return sb.toString();
}
Expand Down Expand Up @@ -2156,6 +2189,7 @@ private String toIndentedString(Object o) {
openapiFields.add("generateAlpha2Codes");
openapiFields.add("pdfPagesLimit");
openapiFields.add("disableAuthResolutionFilter");
openapiFields.add("strictSecurityChecks");

// a set of required properties/fields (JSON key names)
openapiRequiredFields = new HashSet<String>();
Expand Down