onfido-python 4.6.0__py3-none-any.whl → 5.0.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- onfido/__init__.py +2 -1
- onfido/api/default_api.py +279 -0
- onfido/api_client.py +2 -2
- onfido/configuration.py +151 -39
- onfido/exceptions.py +17 -0
- onfido/models/__init__.py +1 -0
- onfido/models/applicant_consent_name.py +1 -0
- onfido/models/check.py +2 -2
- onfido/models/check_response.py +2 -2
- onfido/models/check_status.py +1 -0
- onfido/models/country_codes.py +1 -0
- onfido/models/device_intelligence_breakdown_properties_device.py +10 -10
- onfido/models/device_intelligence_report.py +1 -11
- onfido/models/document.py +2 -12
- onfido/models/document_properties.py +6 -6
- onfido/models/document_report.py +3 -3
- onfido/models/document_report_shared.py +108 -0
- onfido/models/document_shared.py +2 -12
- onfido/models/document_types.py +1 -0
- onfido/models/document_video_report.py +3 -3
- onfido/models/document_video_with_address_information_report.py +3 -3
- onfido/models/document_with_address_information_report.py +3 -3
- onfido/models/document_with_driver_verification_report.py +3 -3
- onfido/models/document_with_driver_verification_report_all_of_properties.py +6 -6
- onfido/models/document_with_driving_licence_information_report.py +3 -3
- onfido/models/extraction_document_classification.py +2 -2
- onfido/models/extraction_extracted_data.py +2 -2
- onfido/models/facial_similarity_motion_report.py +3 -3
- onfido/models/facial_similarity_photo_fully_auto_report.py +3 -3
- onfido/models/facial_similarity_photo_report.py +3 -3
- onfido/models/facial_similarity_report_shared.py +11 -1
- onfido/models/facial_similarity_video_report.py +3 -3
- onfido/models/id_number.py +2 -2
- onfido/models/identity_enhanced_report.py +1 -11
- onfido/models/india_pan_report.py +1 -11
- onfido/models/known_faces_report.py +1 -11
- onfido/models/proof_of_address_properties.py +2 -2
- onfido/models/proof_of_address_report.py +1 -11
- onfido/models/repeat_attempts_list_repeat_attempts_inner.py +6 -6
- onfido/models/report_name.py +1 -0
- onfido/models/report_result.py +1 -0
- onfido/models/report_shared.py +1 -11
- onfido/models/report_status.py +1 -0
- onfido/models/report_sub_result.py +1 -0
- onfido/models/results_feedback.py +2 -2
- onfido/models/us_driving_licence_builder.py +6 -6
- onfido/models/us_driving_licence_report.py +1 -11
- onfido/models/us_driving_licence_shared.py +6 -6
- onfido/models/watchlist_aml_properties.py +2 -2
- onfido/models/watchlist_aml_report.py +1 -11
- onfido/models/watchlist_enhanced_report.py +1 -11
- onfido/models/watchlist_monitor.py +2 -2
- onfido/models/watchlist_monitor_builder.py +2 -2
- onfido/models/watchlist_monitor_shared.py +2 -2
- onfido/models/watchlist_peps_only_report.py +1 -11
- onfido/models/watchlist_sanctions_only_report.py +1 -11
- onfido/models/watchlist_standard_properties.py +2 -2
- onfido/models/watchlist_standard_report.py +1 -11
- onfido/models/webhook_event_object_status.py +1 -0
- onfido/models/webhook_event_payload_object.py +1 -1
- onfido/models/webhook_event_resource_type.py +1 -0
- onfido/models/webhook_event_type.py +1 -1
- onfido/models/workflow_run_link.py +2 -2
- onfido/models/workflow_run_status.py +1 -0
- onfido/webhook_event_verifier.py +3 -2
- {onfido_python-4.6.0.dist-info → onfido_python-5.0.0.dist-info}/METADATA +1 -1
- {onfido_python-4.6.0.dist-info → onfido_python-5.0.0.dist-info}/RECORD +70 -69
- {onfido_python-4.6.0.dist-info → onfido_python-5.0.0.dist-info}/LICENSE +0 -0
- {onfido_python-4.6.0.dist-info → onfido_python-5.0.0.dist-info}/WHEEL +0 -0
- {onfido_python-4.6.0.dist-info → onfido_python-5.0.0.dist-info}/top_level.txt +0 -0
|
@@ -22,7 +22,6 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
|
22
22
|
from typing import Any, ClassVar, Dict, List, Optional
|
|
23
23
|
from onfido.models.known_faces_breakdown import KnownFacesBreakdown
|
|
24
24
|
from onfido.models.known_faces_properties import KnownFacesProperties
|
|
25
|
-
from onfido.models.report_document import ReportDocument
|
|
26
25
|
from onfido.models.report_name import ReportName
|
|
27
26
|
from onfido.models.report_result import ReportResult
|
|
28
27
|
from onfido.models.report_status import ReportStatus
|
|
@@ -41,12 +40,11 @@ class KnownFacesReport(BaseModel):
|
|
|
41
40
|
result: Optional[ReportResult] = None
|
|
42
41
|
sub_result: Optional[ReportSubResult] = None
|
|
43
42
|
check_id: Optional[StrictStr] = Field(default=None, description="The ID of the check to which the report belongs. Read-only.")
|
|
44
|
-
documents: Optional[List[ReportDocument]] = Field(default=None, description="Array of objects with document ids that were used in the Onfido engine. [ONLY POPULATED FOR DOCUMENT AND FACIAL SIMILARITY REPORTS]")
|
|
45
43
|
name: ReportName
|
|
46
44
|
breakdown: Optional[KnownFacesBreakdown] = None
|
|
47
45
|
properties: Optional[KnownFacesProperties] = None
|
|
48
46
|
additional_properties: Dict[str, Any] = {}
|
|
49
|
-
__properties: ClassVar[List[str]] = ["id", "created_at", "href", "status", "result", "sub_result", "check_id", "
|
|
47
|
+
__properties: ClassVar[List[str]] = ["id", "created_at", "href", "status", "result", "sub_result", "check_id", "name", "breakdown", "properties"]
|
|
50
48
|
|
|
51
49
|
model_config = ConfigDict(
|
|
52
50
|
populate_by_name=True,
|
|
@@ -89,13 +87,6 @@ class KnownFacesReport(BaseModel):
|
|
|
89
87
|
exclude=excluded_fields,
|
|
90
88
|
exclude_none=True,
|
|
91
89
|
)
|
|
92
|
-
# override the default output from pydantic by calling `to_dict()` of each item in documents (list)
|
|
93
|
-
_items = []
|
|
94
|
-
if self.documents:
|
|
95
|
-
for _item_documents in self.documents:
|
|
96
|
-
if _item_documents:
|
|
97
|
-
_items.append(_item_documents.to_dict())
|
|
98
|
-
_dict['documents'] = _items
|
|
99
90
|
# override the default output from pydantic by calling `to_dict()` of breakdown
|
|
100
91
|
if self.breakdown:
|
|
101
92
|
_dict['breakdown'] = self.breakdown.to_dict()
|
|
@@ -126,7 +117,6 @@ class KnownFacesReport(BaseModel):
|
|
|
126
117
|
"result": obj.get("result"),
|
|
127
118
|
"sub_result": obj.get("sub_result"),
|
|
128
119
|
"check_id": obj.get("check_id"),
|
|
129
|
-
"documents": [ReportDocument.from_dict(_item) for _item in obj["documents"]] if obj.get("documents") is not None else None,
|
|
130
120
|
"name": obj.get("name"),
|
|
131
121
|
"breakdown": KnownFacesBreakdown.from_dict(obj["breakdown"]) if obj.get("breakdown") is not None else None,
|
|
132
122
|
"properties": KnownFacesProperties.from_dict(obj["properties"]) if obj.get("properties") is not None else None
|
|
@@ -44,8 +44,8 @@ class ProofOfAddressProperties(BaseModel):
|
|
|
44
44
|
if value is None:
|
|
45
45
|
return value
|
|
46
46
|
|
|
47
|
-
if value not in set(['bank_building_society_statement', 'utility_bill', 'council_tax', 'benefit_letters', 'mortgage_statement', 'mobile_phone_bill', 'general_letter', 'insurance_statement', 'pension_property_statement_letter', 'identity_document_with_address', 'exchange_house_statement']):
|
|
48
|
-
raise ValueError("must be one of enum values ('bank_building_society_statement', 'utility_bill', 'council_tax', 'benefit_letters', 'mortgage_statement', 'mobile_phone_bill', 'general_letter', 'insurance_statement', 'pension_property_statement_letter', 'identity_document_with_address', 'exchange_house_statement')")
|
|
47
|
+
if value not in set(['bank_building_society_statement', 'utility_bill', 'council_tax', 'benefit_letters', 'mortgage_statement', 'mobile_phone_bill', 'general_letter', 'insurance_statement', 'pension_property_statement_letter', 'identity_document_with_address', 'exchange_house_statement', 'unknown_default_open_api']):
|
|
48
|
+
raise ValueError("must be one of enum values ('bank_building_society_statement', 'utility_bill', 'council_tax', 'benefit_letters', 'mortgage_statement', 'mobile_phone_bill', 'general_letter', 'insurance_statement', 'pension_property_statement_letter', 'identity_document_with_address', 'exchange_house_statement', 'unknown_default_open_api')")
|
|
49
49
|
return value
|
|
50
50
|
|
|
51
51
|
model_config = ConfigDict(
|
|
@@ -22,7 +22,6 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
|
22
22
|
from typing import Any, ClassVar, Dict, List, Optional
|
|
23
23
|
from onfido.models.proof_of_address_breakdown import ProofOfAddressBreakdown
|
|
24
24
|
from onfido.models.proof_of_address_properties import ProofOfAddressProperties
|
|
25
|
-
from onfido.models.report_document import ReportDocument
|
|
26
25
|
from onfido.models.report_name import ReportName
|
|
27
26
|
from onfido.models.report_result import ReportResult
|
|
28
27
|
from onfido.models.report_status import ReportStatus
|
|
@@ -41,12 +40,11 @@ class ProofOfAddressReport(BaseModel):
|
|
|
41
40
|
result: Optional[ReportResult] = None
|
|
42
41
|
sub_result: Optional[ReportSubResult] = None
|
|
43
42
|
check_id: Optional[StrictStr] = Field(default=None, description="The ID of the check to which the report belongs. Read-only.")
|
|
44
|
-
documents: Optional[List[ReportDocument]] = Field(default=None, description="Array of objects with document ids that were used in the Onfido engine. [ONLY POPULATED FOR DOCUMENT AND FACIAL SIMILARITY REPORTS]")
|
|
45
43
|
name: ReportName
|
|
46
44
|
breakdown: Optional[ProofOfAddressBreakdown] = None
|
|
47
45
|
properties: Optional[ProofOfAddressProperties] = None
|
|
48
46
|
additional_properties: Dict[str, Any] = {}
|
|
49
|
-
__properties: ClassVar[List[str]] = ["id", "created_at", "href", "status", "result", "sub_result", "check_id", "
|
|
47
|
+
__properties: ClassVar[List[str]] = ["id", "created_at", "href", "status", "result", "sub_result", "check_id", "name", "breakdown", "properties"]
|
|
50
48
|
|
|
51
49
|
model_config = ConfigDict(
|
|
52
50
|
populate_by_name=True,
|
|
@@ -89,13 +87,6 @@ class ProofOfAddressReport(BaseModel):
|
|
|
89
87
|
exclude=excluded_fields,
|
|
90
88
|
exclude_none=True,
|
|
91
89
|
)
|
|
92
|
-
# override the default output from pydantic by calling `to_dict()` of each item in documents (list)
|
|
93
|
-
_items = []
|
|
94
|
-
if self.documents:
|
|
95
|
-
for _item_documents in self.documents:
|
|
96
|
-
if _item_documents:
|
|
97
|
-
_items.append(_item_documents.to_dict())
|
|
98
|
-
_dict['documents'] = _items
|
|
99
90
|
# override the default output from pydantic by calling `to_dict()` of breakdown
|
|
100
91
|
if self.breakdown:
|
|
101
92
|
_dict['breakdown'] = self.breakdown.to_dict()
|
|
@@ -126,7 +117,6 @@ class ProofOfAddressReport(BaseModel):
|
|
|
126
117
|
"result": obj.get("result"),
|
|
127
118
|
"sub_result": obj.get("sub_result"),
|
|
128
119
|
"check_id": obj.get("check_id"),
|
|
129
|
-
"documents": [ReportDocument.from_dict(_item) for _item in obj["documents"]] if obj.get("documents") is not None else None,
|
|
130
120
|
"name": obj.get("name"),
|
|
131
121
|
"breakdown": ProofOfAddressBreakdown.from_dict(obj["breakdown"]) if obj.get("breakdown") is not None else None,
|
|
132
122
|
"properties": ProofOfAddressProperties.from_dict(obj["properties"]) if obj.get("properties") is not None else None
|
|
@@ -43,8 +43,8 @@ class RepeatAttemptsListRepeatAttemptsInner(BaseModel):
|
|
|
43
43
|
if value is None:
|
|
44
44
|
return value
|
|
45
45
|
|
|
46
|
-
if value not in set(['match', 'mismatch']):
|
|
47
|
-
raise ValueError("must be one of enum values ('match', 'mismatch')")
|
|
46
|
+
if value not in set(['match', 'mismatch', 'unknown_default_open_api']):
|
|
47
|
+
raise ValueError("must be one of enum values ('match', 'mismatch', 'unknown_default_open_api')")
|
|
48
48
|
return value
|
|
49
49
|
|
|
50
50
|
@field_validator('names')
|
|
@@ -53,8 +53,8 @@ class RepeatAttemptsListRepeatAttemptsInner(BaseModel):
|
|
|
53
53
|
if value is None:
|
|
54
54
|
return value
|
|
55
55
|
|
|
56
|
-
if value not in set(['match', 'mismatch']):
|
|
57
|
-
raise ValueError("must be one of enum values ('match', 'mismatch')")
|
|
56
|
+
if value not in set(['match', 'mismatch', 'unknown_default_open_api']):
|
|
57
|
+
raise ValueError("must be one of enum values ('match', 'mismatch', 'unknown_default_open_api')")
|
|
58
58
|
return value
|
|
59
59
|
|
|
60
60
|
@field_validator('result')
|
|
@@ -63,8 +63,8 @@ class RepeatAttemptsListRepeatAttemptsInner(BaseModel):
|
|
|
63
63
|
if value is None:
|
|
64
64
|
return value
|
|
65
65
|
|
|
66
|
-
if value not in set(['clear', 'consider']):
|
|
67
|
-
raise ValueError("must be one of enum values ('clear', 'consider')")
|
|
66
|
+
if value not in set(['clear', 'consider', 'unknown_default_open_api']):
|
|
67
|
+
raise ValueError("must be one of enum values ('clear', 'consider', 'unknown_default_open_api')")
|
|
68
68
|
return value
|
|
69
69
|
|
|
70
70
|
model_config = ConfigDict(
|
onfido/models/report_name.py
CHANGED
|
@@ -47,6 +47,7 @@ class ReportName(str, Enum):
|
|
|
47
47
|
US_DRIVING_LICENCE = 'us_driving_licence'
|
|
48
48
|
DEVICE_INTELLIGENCE = 'device_intelligence'
|
|
49
49
|
INDIA_PAN = 'india_pan'
|
|
50
|
+
UNKNOWN_DEFAULT_OPEN_API = 'unknown_default_open_api'
|
|
50
51
|
|
|
51
52
|
@classmethod
|
|
52
53
|
def from_json(cls, json_str: str) -> Self:
|
onfido/models/report_result.py
CHANGED
onfido/models/report_shared.py
CHANGED
|
@@ -20,7 +20,6 @@ import json
|
|
|
20
20
|
from datetime import datetime
|
|
21
21
|
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
22
22
|
from typing import Any, ClassVar, Dict, List, Optional
|
|
23
|
-
from onfido.models.report_document import ReportDocument
|
|
24
23
|
from onfido.models.report_name import ReportName
|
|
25
24
|
from onfido.models.report_result import ReportResult
|
|
26
25
|
from onfido.models.report_status import ReportStatus
|
|
@@ -39,10 +38,9 @@ class ReportShared(BaseModel):
|
|
|
39
38
|
result: Optional[ReportResult] = None
|
|
40
39
|
sub_result: Optional[ReportSubResult] = None
|
|
41
40
|
check_id: Optional[StrictStr] = Field(default=None, description="The ID of the check to which the report belongs. Read-only.")
|
|
42
|
-
documents: Optional[List[ReportDocument]] = Field(default=None, description="Array of objects with document ids that were used in the Onfido engine. [ONLY POPULATED FOR DOCUMENT AND FACIAL SIMILARITY REPORTS]")
|
|
43
41
|
name: ReportName
|
|
44
42
|
additional_properties: Dict[str, Any] = {}
|
|
45
|
-
__properties: ClassVar[List[str]] = ["id", "created_at", "href", "status", "result", "sub_result", "check_id", "
|
|
43
|
+
__properties: ClassVar[List[str]] = ["id", "created_at", "href", "status", "result", "sub_result", "check_id", "name"]
|
|
46
44
|
|
|
47
45
|
model_config = ConfigDict(
|
|
48
46
|
populate_by_name=True,
|
|
@@ -85,13 +83,6 @@ class ReportShared(BaseModel):
|
|
|
85
83
|
exclude=excluded_fields,
|
|
86
84
|
exclude_none=True,
|
|
87
85
|
)
|
|
88
|
-
# override the default output from pydantic by calling `to_dict()` of each item in documents (list)
|
|
89
|
-
_items = []
|
|
90
|
-
if self.documents:
|
|
91
|
-
for _item_documents in self.documents:
|
|
92
|
-
if _item_documents:
|
|
93
|
-
_items.append(_item_documents.to_dict())
|
|
94
|
-
_dict['documents'] = _items
|
|
95
86
|
# puts key-value pairs in additional_properties in the top level
|
|
96
87
|
if self.additional_properties is not None:
|
|
97
88
|
for _key, _value in self.additional_properties.items():
|
|
@@ -116,7 +107,6 @@ class ReportShared(BaseModel):
|
|
|
116
107
|
"result": obj.get("result"),
|
|
117
108
|
"sub_result": obj.get("sub_result"),
|
|
118
109
|
"check_id": obj.get("check_id"),
|
|
119
|
-
"documents": [ReportDocument.from_dict(_item) for _item in obj["documents"]] if obj.get("documents") is not None else None,
|
|
120
110
|
"name": obj.get("name")
|
|
121
111
|
})
|
|
122
112
|
# store additional fields in additional_properties
|
onfido/models/report_status.py
CHANGED
|
@@ -39,8 +39,8 @@ class ResultsFeedback(BaseModel):
|
|
|
39
39
|
if value is None:
|
|
40
40
|
return value
|
|
41
41
|
|
|
42
|
-
if value not in set(['clear', 'consider']):
|
|
43
|
-
raise ValueError("must be one of enum values ('clear', 'consider')")
|
|
42
|
+
if value not in set(['clear', 'consider', 'unknown_default_open_api']):
|
|
43
|
+
raise ValueError("must be one of enum values ('clear', 'consider', 'unknown_default_open_api')")
|
|
44
44
|
return value
|
|
45
45
|
|
|
46
46
|
model_config = ConfigDict(
|
|
@@ -62,8 +62,8 @@ class UsDrivingLicenceBuilder(BaseModel):
|
|
|
62
62
|
if value is None:
|
|
63
63
|
return value
|
|
64
64
|
|
|
65
|
-
if value not in set(['driver license', 'driver permit', 'id card']):
|
|
66
|
-
raise ValueError("must be one of enum values ('driver license', 'driver permit', 'id card')")
|
|
65
|
+
if value not in set(['driver license', 'driver permit', 'id card', 'unknown_default_open_api']):
|
|
66
|
+
raise ValueError("must be one of enum values ('driver license', 'driver permit', 'id card', 'unknown_default_open_api')")
|
|
67
67
|
return value
|
|
68
68
|
|
|
69
69
|
@field_validator('eye_color_code')
|
|
@@ -72,8 +72,8 @@ class UsDrivingLicenceBuilder(BaseModel):
|
|
|
72
72
|
if value is None:
|
|
73
73
|
return value
|
|
74
74
|
|
|
75
|
-
if value not in set(['BLK', 'BLU', 'BRO', 'DIC', 'GRY', 'GRN', 'HAZ', 'MAR', 'PNK']):
|
|
76
|
-
raise ValueError("must be one of enum values ('BLK', 'BLU', 'BRO', 'DIC', 'GRY', 'GRN', 'HAZ', 'MAR', 'PNK')")
|
|
75
|
+
if value not in set(['BLK', 'BLU', 'BRO', 'DIC', 'GRY', 'GRN', 'HAZ', 'MAR', 'PNK', 'unknown_default_open_api']):
|
|
76
|
+
raise ValueError("must be one of enum values ('BLK', 'BLU', 'BRO', 'DIC', 'GRY', 'GRN', 'HAZ', 'MAR', 'PNK', 'unknown_default_open_api')")
|
|
77
77
|
return value
|
|
78
78
|
|
|
79
79
|
@field_validator('gender')
|
|
@@ -82,8 +82,8 @@ class UsDrivingLicenceBuilder(BaseModel):
|
|
|
82
82
|
if value is None:
|
|
83
83
|
return value
|
|
84
84
|
|
|
85
|
-
if value not in set(['Male', 'Female']):
|
|
86
|
-
raise ValueError("must be one of enum values ('Male', 'Female')")
|
|
85
|
+
if value not in set(['Male', 'Female', 'unknown_default_open_api']):
|
|
86
|
+
raise ValueError("must be one of enum values ('Male', 'Female', 'unknown_default_open_api')")
|
|
87
87
|
return value
|
|
88
88
|
|
|
89
89
|
@field_validator('state')
|
|
@@ -21,7 +21,6 @@ from datetime import datetime
|
|
|
21
21
|
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
22
22
|
from typing import Any, ClassVar, Dict, List, Optional
|
|
23
23
|
from onfido.models.document_properties import DocumentProperties
|
|
24
|
-
from onfido.models.report_document import ReportDocument
|
|
25
24
|
from onfido.models.report_name import ReportName
|
|
26
25
|
from onfido.models.report_result import ReportResult
|
|
27
26
|
from onfido.models.report_status import ReportStatus
|
|
@@ -41,12 +40,11 @@ class UsDrivingLicenceReport(BaseModel):
|
|
|
41
40
|
result: Optional[ReportResult] = None
|
|
42
41
|
sub_result: Optional[ReportSubResult] = None
|
|
43
42
|
check_id: Optional[StrictStr] = Field(default=None, description="The ID of the check to which the report belongs. Read-only.")
|
|
44
|
-
documents: Optional[List[ReportDocument]] = Field(default=None, description="Array of objects with document ids that were used in the Onfido engine. [ONLY POPULATED FOR DOCUMENT AND FACIAL SIMILARITY REPORTS]")
|
|
45
43
|
name: ReportName
|
|
46
44
|
breakdown: Optional[UsDrivingLicenceBreakdown] = None
|
|
47
45
|
properties: Optional[DocumentProperties] = None
|
|
48
46
|
additional_properties: Dict[str, Any] = {}
|
|
49
|
-
__properties: ClassVar[List[str]] = ["id", "created_at", "href", "status", "result", "sub_result", "check_id", "
|
|
47
|
+
__properties: ClassVar[List[str]] = ["id", "created_at", "href", "status", "result", "sub_result", "check_id", "name", "breakdown", "properties"]
|
|
50
48
|
|
|
51
49
|
model_config = ConfigDict(
|
|
52
50
|
populate_by_name=True,
|
|
@@ -89,13 +87,6 @@ class UsDrivingLicenceReport(BaseModel):
|
|
|
89
87
|
exclude=excluded_fields,
|
|
90
88
|
exclude_none=True,
|
|
91
89
|
)
|
|
92
|
-
# override the default output from pydantic by calling `to_dict()` of each item in documents (list)
|
|
93
|
-
_items = []
|
|
94
|
-
if self.documents:
|
|
95
|
-
for _item_documents in self.documents:
|
|
96
|
-
if _item_documents:
|
|
97
|
-
_items.append(_item_documents.to_dict())
|
|
98
|
-
_dict['documents'] = _items
|
|
99
90
|
# override the default output from pydantic by calling `to_dict()` of breakdown
|
|
100
91
|
if self.breakdown:
|
|
101
92
|
_dict['breakdown'] = self.breakdown.to_dict()
|
|
@@ -126,7 +117,6 @@ class UsDrivingLicenceReport(BaseModel):
|
|
|
126
117
|
"result": obj.get("result"),
|
|
127
118
|
"sub_result": obj.get("sub_result"),
|
|
128
119
|
"check_id": obj.get("check_id"),
|
|
129
|
-
"documents": [ReportDocument.from_dict(_item) for _item in obj["documents"]] if obj.get("documents") is not None else None,
|
|
130
120
|
"name": obj.get("name"),
|
|
131
121
|
"breakdown": UsDrivingLicenceBreakdown.from_dict(obj["breakdown"]) if obj.get("breakdown") is not None else None,
|
|
132
122
|
"properties": DocumentProperties.from_dict(obj["properties"]) if obj.get("properties") is not None else None
|
|
@@ -62,8 +62,8 @@ class UsDrivingLicenceShared(BaseModel):
|
|
|
62
62
|
if value is None:
|
|
63
63
|
return value
|
|
64
64
|
|
|
65
|
-
if value not in set(['driver license', 'driver permit', 'id card']):
|
|
66
|
-
raise ValueError("must be one of enum values ('driver license', 'driver permit', 'id card')")
|
|
65
|
+
if value not in set(['driver license', 'driver permit', 'id card', 'unknown_default_open_api']):
|
|
66
|
+
raise ValueError("must be one of enum values ('driver license', 'driver permit', 'id card', 'unknown_default_open_api')")
|
|
67
67
|
return value
|
|
68
68
|
|
|
69
69
|
@field_validator('eye_color_code')
|
|
@@ -72,8 +72,8 @@ class UsDrivingLicenceShared(BaseModel):
|
|
|
72
72
|
if value is None:
|
|
73
73
|
return value
|
|
74
74
|
|
|
75
|
-
if value not in set(['BLK', 'BLU', 'BRO', 'DIC', 'GRY', 'GRN', 'HAZ', 'MAR', 'PNK']):
|
|
76
|
-
raise ValueError("must be one of enum values ('BLK', 'BLU', 'BRO', 'DIC', 'GRY', 'GRN', 'HAZ', 'MAR', 'PNK')")
|
|
75
|
+
if value not in set(['BLK', 'BLU', 'BRO', 'DIC', 'GRY', 'GRN', 'HAZ', 'MAR', 'PNK', 'unknown_default_open_api']):
|
|
76
|
+
raise ValueError("must be one of enum values ('BLK', 'BLU', 'BRO', 'DIC', 'GRY', 'GRN', 'HAZ', 'MAR', 'PNK', 'unknown_default_open_api')")
|
|
77
77
|
return value
|
|
78
78
|
|
|
79
79
|
@field_validator('gender')
|
|
@@ -82,8 +82,8 @@ class UsDrivingLicenceShared(BaseModel):
|
|
|
82
82
|
if value is None:
|
|
83
83
|
return value
|
|
84
84
|
|
|
85
|
-
if value not in set(['Male', 'Female']):
|
|
86
|
-
raise ValueError("must be one of enum values ('Male', 'Female')")
|
|
85
|
+
if value not in set(['Male', 'Female', 'unknown_default_open_api']):
|
|
86
|
+
raise ValueError("must be one of enum values ('Male', 'Female', 'unknown_default_open_api')")
|
|
87
87
|
return value
|
|
88
88
|
|
|
89
89
|
@field_validator('state')
|
|
@@ -17,7 +17,7 @@ import pprint
|
|
|
17
17
|
import re # noqa: F401
|
|
18
18
|
import json
|
|
19
19
|
|
|
20
|
-
from pydantic import BaseModel, ConfigDict, Field
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, Field
|
|
21
21
|
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
22
|
from typing import Optional, Set
|
|
23
23
|
from typing_extensions import Self
|
|
@@ -26,7 +26,7 @@ class WatchlistAmlProperties(BaseModel):
|
|
|
26
26
|
"""
|
|
27
27
|
WatchlistAmlProperties
|
|
28
28
|
""" # noqa: E501
|
|
29
|
-
records: Optional[List[
|
|
29
|
+
records: Optional[List[Dict[str, Any]]] = Field(default=None, description="Returns any matches including, but not limited to, name and date of birth of match, aliases and associates, and relevant events and sources.")
|
|
30
30
|
additional_properties: Dict[str, Any] = {}
|
|
31
31
|
__properties: ClassVar[List[str]] = ["records"]
|
|
32
32
|
|
|
@@ -20,7 +20,6 @@ import json
|
|
|
20
20
|
from datetime import datetime
|
|
21
21
|
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
22
22
|
from typing import Any, ClassVar, Dict, List, Optional
|
|
23
|
-
from onfido.models.report_document import ReportDocument
|
|
24
23
|
from onfido.models.report_name import ReportName
|
|
25
24
|
from onfido.models.report_result import ReportResult
|
|
26
25
|
from onfido.models.report_status import ReportStatus
|
|
@@ -41,12 +40,11 @@ class WatchlistAmlReport(BaseModel):
|
|
|
41
40
|
result: Optional[ReportResult] = None
|
|
42
41
|
sub_result: Optional[ReportSubResult] = None
|
|
43
42
|
check_id: Optional[StrictStr] = Field(default=None, description="The ID of the check to which the report belongs. Read-only.")
|
|
44
|
-
documents: Optional[List[ReportDocument]] = Field(default=None, description="Array of objects with document ids that were used in the Onfido engine. [ONLY POPULATED FOR DOCUMENT AND FACIAL SIMILARITY REPORTS]")
|
|
45
43
|
name: ReportName
|
|
46
44
|
breakdown: Optional[WatchlistAmlBreakdown] = None
|
|
47
45
|
properties: Optional[WatchlistAmlProperties] = None
|
|
48
46
|
additional_properties: Dict[str, Any] = {}
|
|
49
|
-
__properties: ClassVar[List[str]] = ["id", "created_at", "href", "status", "result", "sub_result", "check_id", "
|
|
47
|
+
__properties: ClassVar[List[str]] = ["id", "created_at", "href", "status", "result", "sub_result", "check_id", "name", "breakdown", "properties"]
|
|
50
48
|
|
|
51
49
|
model_config = ConfigDict(
|
|
52
50
|
populate_by_name=True,
|
|
@@ -89,13 +87,6 @@ class WatchlistAmlReport(BaseModel):
|
|
|
89
87
|
exclude=excluded_fields,
|
|
90
88
|
exclude_none=True,
|
|
91
89
|
)
|
|
92
|
-
# override the default output from pydantic by calling `to_dict()` of each item in documents (list)
|
|
93
|
-
_items = []
|
|
94
|
-
if self.documents:
|
|
95
|
-
for _item_documents in self.documents:
|
|
96
|
-
if _item_documents:
|
|
97
|
-
_items.append(_item_documents.to_dict())
|
|
98
|
-
_dict['documents'] = _items
|
|
99
90
|
# override the default output from pydantic by calling `to_dict()` of breakdown
|
|
100
91
|
if self.breakdown:
|
|
101
92
|
_dict['breakdown'] = self.breakdown.to_dict()
|
|
@@ -126,7 +117,6 @@ class WatchlistAmlReport(BaseModel):
|
|
|
126
117
|
"result": obj.get("result"),
|
|
127
118
|
"sub_result": obj.get("sub_result"),
|
|
128
119
|
"check_id": obj.get("check_id"),
|
|
129
|
-
"documents": [ReportDocument.from_dict(_item) for _item in obj["documents"]] if obj.get("documents") is not None else None,
|
|
130
120
|
"name": obj.get("name"),
|
|
131
121
|
"breakdown": WatchlistAmlBreakdown.from_dict(obj["breakdown"]) if obj.get("breakdown") is not None else None,
|
|
132
122
|
"properties": WatchlistAmlProperties.from_dict(obj["properties"]) if obj.get("properties") is not None else None
|
|
@@ -20,7 +20,6 @@ import json
|
|
|
20
20
|
from datetime import datetime
|
|
21
21
|
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
22
22
|
from typing import Any, ClassVar, Dict, List, Optional
|
|
23
|
-
from onfido.models.report_document import ReportDocument
|
|
24
23
|
from onfido.models.report_name import ReportName
|
|
25
24
|
from onfido.models.report_result import ReportResult
|
|
26
25
|
from onfido.models.report_status import ReportStatus
|
|
@@ -41,12 +40,11 @@ class WatchlistEnhancedReport(BaseModel):
|
|
|
41
40
|
result: Optional[ReportResult] = None
|
|
42
41
|
sub_result: Optional[ReportSubResult] = None
|
|
43
42
|
check_id: Optional[StrictStr] = Field(default=None, description="The ID of the check to which the report belongs. Read-only.")
|
|
44
|
-
documents: Optional[List[ReportDocument]] = Field(default=None, description="Array of objects with document ids that were used in the Onfido engine. [ONLY POPULATED FOR DOCUMENT AND FACIAL SIMILARITY REPORTS]")
|
|
45
43
|
name: ReportName
|
|
46
44
|
breakdown: Optional[WatchlistEnhancedBreakdown] = None
|
|
47
45
|
properties: Optional[WatchlistEnhancedProperties] = None
|
|
48
46
|
additional_properties: Dict[str, Any] = {}
|
|
49
|
-
__properties: ClassVar[List[str]] = ["id", "created_at", "href", "status", "result", "sub_result", "check_id", "
|
|
47
|
+
__properties: ClassVar[List[str]] = ["id", "created_at", "href", "status", "result", "sub_result", "check_id", "name", "breakdown", "properties"]
|
|
50
48
|
|
|
51
49
|
model_config = ConfigDict(
|
|
52
50
|
populate_by_name=True,
|
|
@@ -89,13 +87,6 @@ class WatchlistEnhancedReport(BaseModel):
|
|
|
89
87
|
exclude=excluded_fields,
|
|
90
88
|
exclude_none=True,
|
|
91
89
|
)
|
|
92
|
-
# override the default output from pydantic by calling `to_dict()` of each item in documents (list)
|
|
93
|
-
_items = []
|
|
94
|
-
if self.documents:
|
|
95
|
-
for _item_documents in self.documents:
|
|
96
|
-
if _item_documents:
|
|
97
|
-
_items.append(_item_documents.to_dict())
|
|
98
|
-
_dict['documents'] = _items
|
|
99
90
|
# override the default output from pydantic by calling `to_dict()` of breakdown
|
|
100
91
|
if self.breakdown:
|
|
101
92
|
_dict['breakdown'] = self.breakdown.to_dict()
|
|
@@ -126,7 +117,6 @@ class WatchlistEnhancedReport(BaseModel):
|
|
|
126
117
|
"result": obj.get("result"),
|
|
127
118
|
"sub_result": obj.get("sub_result"),
|
|
128
119
|
"check_id": obj.get("check_id"),
|
|
129
|
-
"documents": [ReportDocument.from_dict(_item) for _item in obj["documents"]] if obj.get("documents") is not None else None,
|
|
130
120
|
"name": obj.get("name"),
|
|
131
121
|
"breakdown": WatchlistEnhancedBreakdown.from_dict(obj["breakdown"]) if obj.get("breakdown") is not None else None,
|
|
132
122
|
"properties": WatchlistEnhancedProperties.from_dict(obj["properties"]) if obj.get("properties") is not None else None
|
|
@@ -40,8 +40,8 @@ class WatchlistMonitor(BaseModel):
|
|
|
40
40
|
@field_validator('report_name')
|
|
41
41
|
def report_name_validate_enum(cls, value):
|
|
42
42
|
"""Validates the enum"""
|
|
43
|
-
if value not in set(['watchlist_standard', 'watchlist_aml']):
|
|
44
|
-
raise ValueError("must be one of enum values ('watchlist_standard', 'watchlist_aml')")
|
|
43
|
+
if value not in set(['watchlist_standard', 'watchlist_aml', 'unknown_default_open_api']):
|
|
44
|
+
raise ValueError("must be one of enum values ('watchlist_standard', 'watchlist_aml', 'unknown_default_open_api')")
|
|
45
45
|
return value
|
|
46
46
|
|
|
47
47
|
model_config = ConfigDict(
|
|
@@ -35,8 +35,8 @@ class WatchlistMonitorBuilder(BaseModel):
|
|
|
35
35
|
@field_validator('report_name')
|
|
36
36
|
def report_name_validate_enum(cls, value):
|
|
37
37
|
"""Validates the enum"""
|
|
38
|
-
if value not in set(['watchlist_standard', 'watchlist_aml']):
|
|
39
|
-
raise ValueError("must be one of enum values ('watchlist_standard', 'watchlist_aml')")
|
|
38
|
+
if value not in set(['watchlist_standard', 'watchlist_aml', 'unknown_default_open_api']):
|
|
39
|
+
raise ValueError("must be one of enum values ('watchlist_standard', 'watchlist_aml', 'unknown_default_open_api')")
|
|
40
40
|
return value
|
|
41
41
|
|
|
42
42
|
model_config = ConfigDict(
|
|
@@ -35,8 +35,8 @@ class WatchlistMonitorShared(BaseModel):
|
|
|
35
35
|
@field_validator('report_name')
|
|
36
36
|
def report_name_validate_enum(cls, value):
|
|
37
37
|
"""Validates the enum"""
|
|
38
|
-
if value not in set(['watchlist_standard', 'watchlist_aml']):
|
|
39
|
-
raise ValueError("must be one of enum values ('watchlist_standard', 'watchlist_aml')")
|
|
38
|
+
if value not in set(['watchlist_standard', 'watchlist_aml', 'unknown_default_open_api']):
|
|
39
|
+
raise ValueError("must be one of enum values ('watchlist_standard', 'watchlist_aml', 'unknown_default_open_api')")
|
|
40
40
|
return value
|
|
41
41
|
|
|
42
42
|
model_config = ConfigDict(
|
|
@@ -20,7 +20,6 @@ import json
|
|
|
20
20
|
from datetime import datetime
|
|
21
21
|
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
22
22
|
from typing import Any, ClassVar, Dict, List, Optional
|
|
23
|
-
from onfido.models.report_document import ReportDocument
|
|
24
23
|
from onfido.models.report_name import ReportName
|
|
25
24
|
from onfido.models.report_result import ReportResult
|
|
26
25
|
from onfido.models.report_status import ReportStatus
|
|
@@ -41,12 +40,11 @@ class WatchlistPepsOnlyReport(BaseModel):
|
|
|
41
40
|
result: Optional[ReportResult] = None
|
|
42
41
|
sub_result: Optional[ReportSubResult] = None
|
|
43
42
|
check_id: Optional[StrictStr] = Field(default=None, description="The ID of the check to which the report belongs. Read-only.")
|
|
44
|
-
documents: Optional[List[ReportDocument]] = Field(default=None, description="Array of objects with document ids that were used in the Onfido engine. [ONLY POPULATED FOR DOCUMENT AND FACIAL SIMILARITY REPORTS]")
|
|
45
43
|
name: ReportName
|
|
46
44
|
breakdown: Optional[WatchlistStandardBreakdown] = None
|
|
47
45
|
properties: Optional[WatchlistStandardProperties] = None
|
|
48
46
|
additional_properties: Dict[str, Any] = {}
|
|
49
|
-
__properties: ClassVar[List[str]] = ["id", "created_at", "href", "status", "result", "sub_result", "check_id", "
|
|
47
|
+
__properties: ClassVar[List[str]] = ["id", "created_at", "href", "status", "result", "sub_result", "check_id", "name", "breakdown", "properties"]
|
|
50
48
|
|
|
51
49
|
model_config = ConfigDict(
|
|
52
50
|
populate_by_name=True,
|
|
@@ -89,13 +87,6 @@ class WatchlistPepsOnlyReport(BaseModel):
|
|
|
89
87
|
exclude=excluded_fields,
|
|
90
88
|
exclude_none=True,
|
|
91
89
|
)
|
|
92
|
-
# override the default output from pydantic by calling `to_dict()` of each item in documents (list)
|
|
93
|
-
_items = []
|
|
94
|
-
if self.documents:
|
|
95
|
-
for _item_documents in self.documents:
|
|
96
|
-
if _item_documents:
|
|
97
|
-
_items.append(_item_documents.to_dict())
|
|
98
|
-
_dict['documents'] = _items
|
|
99
90
|
# override the default output from pydantic by calling `to_dict()` of breakdown
|
|
100
91
|
if self.breakdown:
|
|
101
92
|
_dict['breakdown'] = self.breakdown.to_dict()
|
|
@@ -126,7 +117,6 @@ class WatchlistPepsOnlyReport(BaseModel):
|
|
|
126
117
|
"result": obj.get("result"),
|
|
127
118
|
"sub_result": obj.get("sub_result"),
|
|
128
119
|
"check_id": obj.get("check_id"),
|
|
129
|
-
"documents": [ReportDocument.from_dict(_item) for _item in obj["documents"]] if obj.get("documents") is not None else None,
|
|
130
120
|
"name": obj.get("name"),
|
|
131
121
|
"breakdown": WatchlistStandardBreakdown.from_dict(obj["breakdown"]) if obj.get("breakdown") is not None else None,
|
|
132
122
|
"properties": WatchlistStandardProperties.from_dict(obj["properties"]) if obj.get("properties") is not None else None
|
|
@@ -20,7 +20,6 @@ import json
|
|
|
20
20
|
from datetime import datetime
|
|
21
21
|
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
22
22
|
from typing import Any, ClassVar, Dict, List, Optional
|
|
23
|
-
from onfido.models.report_document import ReportDocument
|
|
24
23
|
from onfido.models.report_name import ReportName
|
|
25
24
|
from onfido.models.report_result import ReportResult
|
|
26
25
|
from onfido.models.report_status import ReportStatus
|
|
@@ -41,12 +40,11 @@ class WatchlistSanctionsOnlyReport(BaseModel):
|
|
|
41
40
|
result: Optional[ReportResult] = None
|
|
42
41
|
sub_result: Optional[ReportSubResult] = None
|
|
43
42
|
check_id: Optional[StrictStr] = Field(default=None, description="The ID of the check to which the report belongs. Read-only.")
|
|
44
|
-
documents: Optional[List[ReportDocument]] = Field(default=None, description="Array of objects with document ids that were used in the Onfido engine. [ONLY POPULATED FOR DOCUMENT AND FACIAL SIMILARITY REPORTS]")
|
|
45
43
|
name: ReportName
|
|
46
44
|
breakdown: Optional[WatchlistStandardBreakdown] = None
|
|
47
45
|
properties: Optional[WatchlistStandardProperties] = None
|
|
48
46
|
additional_properties: Dict[str, Any] = {}
|
|
49
|
-
__properties: ClassVar[List[str]] = ["id", "created_at", "href", "status", "result", "sub_result", "check_id", "
|
|
47
|
+
__properties: ClassVar[List[str]] = ["id", "created_at", "href", "status", "result", "sub_result", "check_id", "name", "breakdown", "properties"]
|
|
50
48
|
|
|
51
49
|
model_config = ConfigDict(
|
|
52
50
|
populate_by_name=True,
|
|
@@ -89,13 +87,6 @@ class WatchlistSanctionsOnlyReport(BaseModel):
|
|
|
89
87
|
exclude=excluded_fields,
|
|
90
88
|
exclude_none=True,
|
|
91
89
|
)
|
|
92
|
-
# override the default output from pydantic by calling `to_dict()` of each item in documents (list)
|
|
93
|
-
_items = []
|
|
94
|
-
if self.documents:
|
|
95
|
-
for _item_documents in self.documents:
|
|
96
|
-
if _item_documents:
|
|
97
|
-
_items.append(_item_documents.to_dict())
|
|
98
|
-
_dict['documents'] = _items
|
|
99
90
|
# override the default output from pydantic by calling `to_dict()` of breakdown
|
|
100
91
|
if self.breakdown:
|
|
101
92
|
_dict['breakdown'] = self.breakdown.to_dict()
|
|
@@ -126,7 +117,6 @@ class WatchlistSanctionsOnlyReport(BaseModel):
|
|
|
126
117
|
"result": obj.get("result"),
|
|
127
118
|
"sub_result": obj.get("sub_result"),
|
|
128
119
|
"check_id": obj.get("check_id"),
|
|
129
|
-
"documents": [ReportDocument.from_dict(_item) for _item in obj["documents"]] if obj.get("documents") is not None else None,
|
|
130
120
|
"name": obj.get("name"),
|
|
131
121
|
"breakdown": WatchlistStandardBreakdown.from_dict(obj["breakdown"]) if obj.get("breakdown") is not None else None,
|
|
132
122
|
"properties": WatchlistStandardProperties.from_dict(obj["properties"]) if obj.get("properties") is not None else None
|
|
@@ -17,7 +17,7 @@ import pprint
|
|
|
17
17
|
import re # noqa: F401
|
|
18
18
|
import json
|
|
19
19
|
|
|
20
|
-
from pydantic import BaseModel, ConfigDict, Field
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, Field
|
|
21
21
|
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
22
|
from typing import Optional, Set
|
|
23
23
|
from typing_extensions import Self
|
|
@@ -26,7 +26,7 @@ class WatchlistStandardProperties(BaseModel):
|
|
|
26
26
|
"""
|
|
27
27
|
WatchlistStandardProperties
|
|
28
28
|
""" # noqa: E501
|
|
29
|
-
records: Optional[List[
|
|
29
|
+
records: Optional[List[Dict[str, Any]]] = Field(default=None, description="Returns any matches including, but not limited to, name and date of birth of match, aliases and associates, and relevant events and sources.")
|
|
30
30
|
additional_properties: Dict[str, Any] = {}
|
|
31
31
|
__properties: ClassVar[List[str]] = ["records"]
|
|
32
32
|
|
|
@@ -20,7 +20,6 @@ import json
|
|
|
20
20
|
from datetime import datetime
|
|
21
21
|
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
22
22
|
from typing import Any, ClassVar, Dict, List, Optional
|
|
23
|
-
from onfido.models.report_document import ReportDocument
|
|
24
23
|
from onfido.models.report_name import ReportName
|
|
25
24
|
from onfido.models.report_result import ReportResult
|
|
26
25
|
from onfido.models.report_status import ReportStatus
|
|
@@ -41,12 +40,11 @@ class WatchlistStandardReport(BaseModel):
|
|
|
41
40
|
result: Optional[ReportResult] = None
|
|
42
41
|
sub_result: Optional[ReportSubResult] = None
|
|
43
42
|
check_id: Optional[StrictStr] = Field(default=None, description="The ID of the check to which the report belongs. Read-only.")
|
|
44
|
-
documents: Optional[List[ReportDocument]] = Field(default=None, description="Array of objects with document ids that were used in the Onfido engine. [ONLY POPULATED FOR DOCUMENT AND FACIAL SIMILARITY REPORTS]")
|
|
45
43
|
name: ReportName
|
|
46
44
|
breakdown: Optional[WatchlistStandardBreakdown] = None
|
|
47
45
|
properties: Optional[WatchlistStandardProperties] = None
|
|
48
46
|
additional_properties: Dict[str, Any] = {}
|
|
49
|
-
__properties: ClassVar[List[str]] = ["id", "created_at", "href", "status", "result", "sub_result", "check_id", "
|
|
47
|
+
__properties: ClassVar[List[str]] = ["id", "created_at", "href", "status", "result", "sub_result", "check_id", "name", "breakdown", "properties"]
|
|
50
48
|
|
|
51
49
|
model_config = ConfigDict(
|
|
52
50
|
populate_by_name=True,
|
|
@@ -89,13 +87,6 @@ class WatchlistStandardReport(BaseModel):
|
|
|
89
87
|
exclude=excluded_fields,
|
|
90
88
|
exclude_none=True,
|
|
91
89
|
)
|
|
92
|
-
# override the default output from pydantic by calling `to_dict()` of each item in documents (list)
|
|
93
|
-
_items = []
|
|
94
|
-
if self.documents:
|
|
95
|
-
for _item_documents in self.documents:
|
|
96
|
-
if _item_documents:
|
|
97
|
-
_items.append(_item_documents.to_dict())
|
|
98
|
-
_dict['documents'] = _items
|
|
99
90
|
# override the default output from pydantic by calling `to_dict()` of breakdown
|
|
100
91
|
if self.breakdown:
|
|
101
92
|
_dict['breakdown'] = self.breakdown.to_dict()
|
|
@@ -126,7 +117,6 @@ class WatchlistStandardReport(BaseModel):
|
|
|
126
117
|
"result": obj.get("result"),
|
|
127
118
|
"sub_result": obj.get("sub_result"),
|
|
128
119
|
"check_id": obj.get("check_id"),
|
|
129
|
-
"documents": [ReportDocument.from_dict(_item) for _item in obj["documents"]] if obj.get("documents") is not None else None,
|
|
130
120
|
"name": obj.get("name"),
|
|
131
121
|
"breakdown": WatchlistStandardBreakdown.from_dict(obj["breakdown"]) if obj.get("breakdown") is not None else None,
|
|
132
122
|
"properties": WatchlistStandardProperties.from_dict(obj["properties"]) if obj.get("properties") is not None else None
|