Skip to content

v2.12.0

Compare
Choose a tag to compare
@MrBurtyyy MrBurtyyy released this 18 May 12:02
· 132 commits to master since this release
d4ed035

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())