Skip to content

Commit c86c065

Browse files
committed
Update version to 2.0.8.dev3
1 parent eb18fcd commit c86c065

3 files changed

Lines changed: 12 additions & 1 deletion

File tree

mati/resources/verifications.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff 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 [

mati/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '2.0.8'
1+
__version__ = '2.0.8.dev3'

tests/resources/test_verifications.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)