File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -85,6 +85,16 @@ def proof_of_life_document(self) -> Optional[Liveness]:
8585 pol = [pol for pol in self .steps if pol .id in ['liveness' , 'selfie' ]]
8686 return pol [- 1 ] if pol else None
8787
88+ @property
89+ def proof_of_life_url (self ) -> Optional [str ]:
90+ pol = self .proof_of_life_document
91+ if not pol or not pol .data :
92+ return None
93+ url = pol .data .get ('video_url' ) or pol .data .get ( # type: ignore
94+ 'selfie_photo_url'
95+ )
96+ return url
97+
8898 @property
8999 def proof_of_life_errors (self ) -> List [Errors ]:
90100 return [
Original file line number Diff line number Diff line change 1- __version__ = '2.0.8'
1+ __version__ = '2.0.8.dev3 '
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ def test_retrieve_full_verification(client: Client):
2121 assert verification .govt_id_validation .is_valid
2222 assert verification .proof_of_life_validation .is_valid
2323 assert verification .proof_of_residency_validation .is_valid
24+ assert verification .proof_of_life_url
2425 assert not verification .govt_id_document .errors
2526 assert not verification .proof_of_residency_document .errors
2627 assert not verification .proof_of_life_errors
You can’t perform that action at this time.
0 commit comments