Skip to content

Commit

Permalink
SDK-2150-IDV-Static-Liveness-Check added
Browse files Browse the repository at this point in the history
  • Loading branch information
mehmet-yoti committed Nov 29, 2024
1 parent daa5fe8 commit bad6e95
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions yoti_python_sdk/doc_scan/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
ID_DOCUMENT_FACE_MATCH = "ID_DOCUMENT_FACE_MATCH"
LIVENESS = "LIVENESS"
ZOOM = "ZOOM"
STATIC="STATIC"
SUPPLEMENTARY_DOCUMENT_TEXT_DATA_CHECK = "SUPPLEMENTARY_DOCUMENT_TEXT_DATA_CHECK"
SUPPLEMENTARY_DOCUMENT_TEXT_DATA_EXTRACTION = (
"SUPPLEMENTARY_DOCUMENT_TEXT_DATA_EXTRACTION"
Expand Down
9 changes: 9 additions & 0 deletions yoti_python_sdk/doc_scan/session/create/check/liveness.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,15 @@ def for_zoom_liveness(self):
"""
return self.with_liveness_type(constants.ZOOM)

def for_static_liveness(self):
"""
Sets the liveness type to "STATIC"
:return: the builder
:rtype: RequestedLivenessCheckBuilder
"""
return self.with_liveness_type(constants.STATIC)

def with_liveness_type(self, liveness_type):
"""
Sets the liveness type on the builder
Expand Down

0 comments on commit bad6e95

Please sign in to comment.