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 @@ -74,6 +74,12 @@ public class LivenessParams {
@javax.annotation.Nullable
private Boolean checkGeometry;

public static final String SERIALIZED_NAME_CHECK_BARCODE_BACKGROUND = "checkBarcodeBackground";

@SerializedName(SERIALIZED_NAME_CHECK_BARCODE_BACKGROUND)
@javax.annotation.Nullable
private Boolean checkBarcodeBackground;

public LivenessParams() {}

public LivenessParams checkOVI(@javax.annotation.Nullable Boolean checkOVI) {
Expand Down Expand Up @@ -210,6 +216,26 @@ public void setCheckGeometry(@javax.annotation.Nullable Boolean checkGeometry) {
this.checkGeometry = checkGeometry;
}

public LivenessParams checkBarcodeBackground(
@javax.annotation.Nullable Boolean checkBarcodeBackground) {
this.checkBarcodeBackground = checkBarcodeBackground;
return this;
}

/**
* This parameter is used to enable Barcode background check as part of the Liveness checks
*
* @return checkBarcodeBackground
*/
@javax.annotation.Nullable
public Boolean getCheckBarcodeBackground() {
return checkBarcodeBackground;
}

public void setCheckBarcodeBackground(@javax.annotation.Nullable Boolean checkBarcodeBackground) {
this.checkBarcodeBackground = checkBarcodeBackground;
}

@Override
public boolean equals(Object o) {
if (this == o) {
Expand All @@ -225,7 +251,8 @@ public boolean equals(Object o) {
&& Objects.equals(this.checkED, livenessParams.checkED)
&& Objects.equals(this.checkBlackAndWhiteCopy, livenessParams.checkBlackAndWhiteCopy)
&& Objects.equals(this.checkDynaprint, livenessParams.checkDynaprint)
&& Objects.equals(this.checkGeometry, livenessParams.checkGeometry);
&& Objects.equals(this.checkGeometry, livenessParams.checkGeometry)
&& Objects.equals(this.checkBarcodeBackground, livenessParams.checkBarcodeBackground);
}

@Override
Expand All @@ -237,7 +264,8 @@ public int hashCode() {
checkED,
checkBlackAndWhiteCopy,
checkDynaprint,
checkGeometry);
checkGeometry,
checkBarcodeBackground);
}

@Override
Expand All @@ -253,6 +281,9 @@ public String toString() {
.append("\n");
sb.append(" checkDynaprint: ").append(toIndentedString(checkDynaprint)).append("\n");
sb.append(" checkGeometry: ").append(toIndentedString(checkGeometry)).append("\n");
sb.append(" checkBarcodeBackground: ")
.append(toIndentedString(checkBarcodeBackground))
.append("\n");
sb.append("}");
return sb.toString();
}
Expand Down Expand Up @@ -281,7 +312,8 @@ private String toIndentedString(Object o) {
"checkED",
"checkBlackAndWhiteCopy",
"checkDynaprint",
"checkGeometry"));
"checkGeometry",
"checkBarcodeBackground"));

// a set of required properties/fields (JSON key names)
openapiRequiredFields = new HashSet<String>(0);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -288,13 +288,6 @@ public class ProcessParams {
@javax.annotation.Nullable
private List<MRZFormat> mrzFormatsFilter;

public static final String SERIALIZED_NAME_FORCE_READ_MRZ_BEFORE_LOCATE =
"forceReadMrzBeforeLocate";

@SerializedName(SERIALIZED_NAME_FORCE_READ_MRZ_BEFORE_LOCATE)
@javax.annotation.Nullable
private Boolean forceReadMrzBeforeLocate;

public static final String SERIALIZED_NAME_PARSE_BARCODES = "parseBarcodes";

@SerializedName(SERIALIZED_NAME_PARSE_BARCODES)
Expand Down Expand Up @@ -467,6 +460,12 @@ public class ProcessParams {
@javax.annotation.Nullable
private Boolean checkVDS;

public static final String SERIALIZED_NAME_STRICT_AGE_CHECK = "strictAgeCheck";

@SerializedName(SERIALIZED_NAME_STRICT_AGE_CHECK)
@javax.annotation.Nullable
private Boolean strictAgeCheck;

public ProcessParams() {}

public ProcessParams generateDTCVC(@javax.annotation.Nullable Boolean generateDTCVC) {
Expand Down Expand Up @@ -1383,30 +1382,6 @@ public void setMrzFormatsFilter(@javax.annotation.Nullable List<MRZFormat> mrzFo
this.mrzFormatsFilter = mrzFormatsFilter;
}

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

/**
* When enabled, make sure that in series processing MRZ is located fully inside the result
* document image, if present on the document. Enabling this option may add extra processing time,
* by disabling optimizations, but allows more stability in output image quality. Disabled by
* default.
*
* @return forceReadMrzBeforeLocate
*/
@javax.annotation.Nullable
public Boolean getForceReadMrzBeforeLocate() {
return forceReadMrzBeforeLocate;
}

public void setForceReadMrzBeforeLocate(
@javax.annotation.Nullable Boolean forceReadMrzBeforeLocate) {
this.forceReadMrzBeforeLocate = forceReadMrzBeforeLocate;
}

public ProcessParams parseBarcodes(@javax.annotation.Nullable Boolean parseBarcodes) {
this.parseBarcodes = parseBarcodes;
return this;
Expand Down Expand Up @@ -1995,6 +1970,25 @@ public void setCheckVDS(@javax.annotation.Nullable Boolean checkVDS) {
this.checkVDS = checkVDS;
}

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

/**
* When enabled, the age check status affects the overall status.
*
* @return strictAgeCheck
*/
@javax.annotation.Nullable
public Boolean getStrictAgeCheck() {
return strictAgeCheck;
}

public void setStrictAgeCheck(@javax.annotation.Nullable Boolean strictAgeCheck) {
this.strictAgeCheck = strictAgeCheck;
}

@Override
public boolean equals(Object o) {
if (this == o) {
Expand Down Expand Up @@ -2046,7 +2040,6 @@ public boolean equals(Object o) {
&& Objects.equals(this.minimalHolderAge, processParams.minimalHolderAge)
&& Objects.equals(this.returnUncroppedImage, processParams.returnUncroppedImage)
&& Objects.equals(this.mrzFormatsFilter, processParams.mrzFormatsFilter)
&& Objects.equals(this.forceReadMrzBeforeLocate, processParams.forceReadMrzBeforeLocate)
&& Objects.equals(this.parseBarcodes, processParams.parseBarcodes)
&& Objects.equals(this.convertCase, processParams.convertCase)
&& Objects.equals(this.splitNames, processParams.splitNames)
Expand Down Expand Up @@ -2077,7 +2070,8 @@ public boolean equals(Object o) {
&& Objects.equals(this.returnTransliteratedFields, processParams.returnTransliteratedFields)
&& Objects.equals(this.bsiTr03135, processParams.bsiTr03135)
&& Objects.equals(this.strictExpiryDate, processParams.strictExpiryDate)
&& Objects.equals(this.checkVDS, processParams.checkVDS);
&& Objects.equals(this.checkVDS, processParams.checkVDS)
&& Objects.equals(this.strictAgeCheck, processParams.strictAgeCheck);
}

@Override
Expand Down Expand Up @@ -2124,7 +2118,6 @@ public int hashCode() {
minimalHolderAge,
returnUncroppedImage,
mrzFormatsFilter,
forceReadMrzBeforeLocate,
parseBarcodes,
convertCase,
splitNames,
Expand Down Expand Up @@ -2152,7 +2145,8 @@ public int hashCode() {
returnTransliteratedFields,
bsiTr03135,
strictExpiryDate,
checkVDS);
checkVDS,
strictAgeCheck);
}

@Override
Expand Down Expand Up @@ -2220,9 +2214,6 @@ public String toString() {
.append(toIndentedString(returnUncroppedImage))
.append("\n");
sb.append(" mrzFormatsFilter: ").append(toIndentedString(mrzFormatsFilter)).append("\n");
sb.append(" forceReadMrzBeforeLocate: ")
.append(toIndentedString(forceReadMrzBeforeLocate))
.append("\n");
sb.append(" parseBarcodes: ").append(toIndentedString(parseBarcodes)).append("\n");
sb.append(" convertCase: ").append(toIndentedString(convertCase)).append("\n");
sb.append(" splitNames: ").append(toIndentedString(splitNames)).append("\n");
Expand Down Expand Up @@ -2271,6 +2262,7 @@ public String toString() {
sb.append(" bsiTr03135: ").append(toIndentedString(bsiTr03135)).append("\n");
sb.append(" strictExpiryDate: ").append(toIndentedString(strictExpiryDate)).append("\n");
sb.append(" checkVDS: ").append(toIndentedString(checkVDS)).append("\n");
sb.append(" strictAgeCheck: ").append(toIndentedString(strictAgeCheck)).append("\n");
sb.append("}");
return sb.toString();
}
Expand Down Expand Up @@ -2334,7 +2326,6 @@ private String toIndentedString(Object o) {
"minimalHolderAge",
"returnUncroppedImage",
"mrzFormatsFilter",
"forceReadMrzBeforeLocate",
"parseBarcodes",
"convertCase",
"splitNames",
Expand Down Expand Up @@ -2362,7 +2353,8 @@ private String toIndentedString(Object o) {
"returnTransliteratedFields",
"bsiTr03135",
"strictExpiryDate",
"checkVDS"));
"checkVDS",
"strictAgeCheck"));

// a set of required properties/fields (JSON key names)
openapiRequiredFields = new HashSet<String>(Arrays.asList("scenario"));
Expand Down
Loading