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 @@ -150,6 +150,8 @@ class CheckDiagnose(int, Enum):
PROPERTY_NO_SIGNATURE = 260
PROPERTY_TEXT_AS_SIGNATURE = 261
PROPERTY_FINGERPRINT_AS_SIGNATURE = 262
PROPERTY_DOCUMENT_DAMAGED = 263
PROPERTY_DOCUMENT_CANCELLED = 264

@classmethod
def from_json(cls, json_str: str) -> Self:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ class PropertiesParams(BaseModel):
PropertiesParams
""" # noqa: E501
check_holders_signature: SkipValidation[Optional[bool]] = Field(alias="checkHoldersSignature", default=None, description="Set to true to enable detection of the document holder’s signature.")
__properties: ClassVar[List[str]] = ["checkHoldersSignature"]
check_document_damage: SkipValidation[Optional[bool]] = Field(alias="checkDocumentDamage", default=None, description="Set to true to enable detection of damaged or defaced documents.")
__properties: ClassVar[List[str]] = ["checkHoldersSignature", "checkDocumentDamage"]

model_config = ConfigDict(
populate_by_name=True,
Expand Down Expand Up @@ -75,7 +76,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
return cls.model_validate(obj)

_obj = cls.model_validate({
"checkHoldersSignature": obj.get("checkHoldersSignature")
"checkHoldersSignature": obj.get("checkHoldersSignature"),
"checkDocumentDamage": obj.get("checkDocumentDamage")
})
return _obj

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ class SecurityFeatureType(int, Enum):
PORTRAIT_COMPARISON_GHOST_VS_LIVE = 60
PORTRAIT_COMPARISON_EXT_VS_GHOST = 61
SIGNATURE_PRESENCE = 62
DAMAGE_CHECK = 63

@classmethod
def from_json(cls, json_str: str) -> Self:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -676,6 +676,7 @@ class TextFieldType(int, Enum):
DL_CLASS_CODE_B3_FROM = 706
DL_CLASS_CODE_B3_TO = 707
DL_CLASS_CODE_B3_NOTES = 708
FT_ADDRESS_POST_OFFICE = 709

@classmethod
def from_json(cls, json_str: str) -> Self:
Expand Down
Loading