diff --git a/mati/types/enums.py b/mati/types/enums.py index 49bd02b..61b25fa 100644 --- a/mati/types/enums.py +++ b/mati/types/enums.py @@ -53,7 +53,7 @@ class VerificationDocument: fields: Optional[dict] = None @property - def get_errors(self) -> Optional[List[Errors]]: + def errors(self) -> Optional[List[Errors]]: if not self.steps: return [] errors = [ diff --git a/tests/resources/test_verifications.py b/tests/resources/test_verifications.py index 8f8fd87..d023f22 100644 --- a/tests/resources/test_verifications.py +++ b/tests/resources/test_verifications.py @@ -21,6 +21,8 @@ def test_retrieve_full_verification(client: Client): assert verification.govt_id_validation.is_valid assert verification.proof_of_life_validation.is_valid assert verification.proof_of_residency_validation.is_valid + assert not verification.govt_id_document.errors + assert not verification.proof_of_residency_document.errors assert not verification.proof_of_life_errors assert ( verification.proof_of_residency_document.address