v2.12.0
Added
yoti_python_sdk.doc_scan
session.create.filter
- Contains builders and objects used for specifying required documents during session creation (see snippets below)DocScanClient
get_supported_documents()
- retrieve all currently supported documents
Creating a required document
document_restriction = (DocumentRestrictionBuilder()
.with_document_types(["PASSPORT", "DRIVING_LICENCE"])
.with_country_codes(["GBR"])
.build())
document_filter = (DocumentRestrictionsFilterBuilder()
.for_whitelist()
.with_document_restriction(document_restriction)
.build())
required_id_document = (RequiredIdDocumentBuilder()
.with_filter(document_filter)
.build())