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 @@ -421,7 +421,13 @@ public enum CheckDiagnose {
PROPERTY_TEXT_AS_SIGNATURE(261),

/** Fingerprint as signature */
PROPERTY_FINGERPRINT_AS_SIGNATURE(262);
PROPERTY_FINGERPRINT_AS_SIGNATURE(262),

/** Document damaged */
PROPERTY_DOCUMENT_DAMAGED(263),

/** Document cancelled */
PROPERTY_DOCUMENT_CANCELLED(264);

private Integer value;

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

public static final String SERIALIZED_NAME_CHECK_DOCUMENT_DAMAGE = "checkDocumentDamage";

@SerializedName(SERIALIZED_NAME_CHECK_DOCUMENT_DAMAGE)
@javax.annotation.Nullable
private Boolean checkDocumentDamage;

public PropertiesParams() {}

public PropertiesParams checkHoldersSignature(
Expand All @@ -60,6 +66,26 @@ public void setCheckHoldersSignature(@javax.annotation.Nullable Boolean checkHol
this.checkHoldersSignature = checkHoldersSignature;
}

public PropertiesParams checkDocumentDamage(
@javax.annotation.Nullable Boolean checkDocumentDamage) {
this.checkDocumentDamage = checkDocumentDamage;
return this;
}

/**
* Set to true to enable detection of damaged or defaced documents.
*
* @return checkDocumentDamage
*/
@javax.annotation.Nullable
public Boolean getCheckDocumentDamage() {
return checkDocumentDamage;
}

public void setCheckDocumentDamage(@javax.annotation.Nullable Boolean checkDocumentDamage) {
this.checkDocumentDamage = checkDocumentDamage;
}

@Override
public boolean equals(Object o) {
if (this == o) {
Expand All @@ -69,12 +95,13 @@ public boolean equals(Object o) {
return false;
}
PropertiesParams propertiesParams = (PropertiesParams) o;
return Objects.equals(this.checkHoldersSignature, propertiesParams.checkHoldersSignature);
return Objects.equals(this.checkHoldersSignature, propertiesParams.checkHoldersSignature)
&& Objects.equals(this.checkDocumentDamage, propertiesParams.checkDocumentDamage);
}

@Override
public int hashCode() {
return Objects.hash(checkHoldersSignature);
return Objects.hash(checkHoldersSignature, checkDocumentDamage);
}

@Override
Expand All @@ -84,6 +111,9 @@ public String toString() {
sb.append(" checkHoldersSignature: ")
.append(toIndentedString(checkHoldersSignature))
.append("\n");
sb.append(" checkDocumentDamage: ")
.append(toIndentedString(checkDocumentDamage))
.append("\n");
sb.append("}");
return sb.toString();
}
Expand All @@ -103,7 +133,8 @@ private String toIndentedString(Object o) {

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

// 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 @@ -210,7 +210,10 @@ public enum SecurityFeatureType {
PORTRAIT_COMPARISON_EXT_VS_GHOST(61),

/** Signature presence */
SIGNATURE_PRESENCE(62);
SIGNATURE_PRESENCE(62),

/** Damage check */
DAMAGE_CHECK(63);

private Integer value;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1995,7 +1995,10 @@ public enum TextFieldType {
DL_CLASS_CODE_B3_TO(707),

/** DL category B3 codes */
DL_CLASS_CODE_B3_NOTES(708);
DL_CLASS_CODE_B3_NOTES(708),

/** Post office */
FT_ADDRESS_POST_OFFICE(709);

private Integer value;

Expand Down
Loading