Skip to content

Commit

Permalink
ocr_number
Browse files Browse the repository at this point in the history
  • Loading branch information
alexviquez committed Oct 14, 2022
1 parent 3dad75a commit e89d524
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions mati/types/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@ def curp(self) -> str:
@property
def document_number(self) -> str:
"""
This property fills the dni number direct from the ocr fields `document_number`
This property fills the dni number direct from the ocr
fields `document_number`
"""
if self.fields and 'document_number' in self.fields:
return self.fields['document_number']['value']
Expand All @@ -158,7 +159,8 @@ def document_number(self) -> str:
@property
def ocr_number(self) -> str:
"""
This property fills the number extra direct from the ocr fields `ocr_number`
This property fills the number extra direct from the ocr
fields `ocr_number`
"""
if self.fields and 'ocr_number' in self.fields:
return self.fields['ocr_number']['value']
Expand Down
1 change: 1 addition & 0 deletions tests/resources/test_verifications.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,4 @@ def test_retrieve_dni_verification(verification_without_pol):
assert not verification.proof_of_life_errors
assert not verification.proof_of_life_document
assert verification.documents[0].document_number == '111'
assert not verification.documents[0].ocr_number

0 comments on commit e89d524

Please sign in to comment.