From bad6e95bff81fde0859ad162d4c8ee2a82c862b4 Mon Sep 17 00:00:00 2001 From: mehmet-yoti Date: Fri, 29 Nov 2024 11:03:46 +0000 Subject: [PATCH] SDK-2150-IDV-Static-Liveness-Check added --- yoti_python_sdk/doc_scan/constants.py | 1 + .../doc_scan/session/create/check/liveness.py | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/yoti_python_sdk/doc_scan/constants.py b/yoti_python_sdk/doc_scan/constants.py index 6aa18d1d..34b73d17 100644 --- a/yoti_python_sdk/doc_scan/constants.py +++ b/yoti_python_sdk/doc_scan/constants.py @@ -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" diff --git a/yoti_python_sdk/doc_scan/session/create/check/liveness.py b/yoti_python_sdk/doc_scan/session/create/check/liveness.py index f9dc1075..e3b35082 100644 --- a/yoti_python_sdk/doc_scan/session/create/check/liveness.py +++ b/yoti_python_sdk/doc_scan/session/create/check/liveness.py @@ -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