onfido-python 4.0.0__py3-none-any.whl → 4.1.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 -2
- onfido/api_client.py +1 -1
- onfido/configuration.py +1 -1
- onfido/models/__init__.py +1 -1
- onfido/models/document_properties.py +5 -9
- onfido/models/{document_properties_barcode_inner.py → document_properties_barcode.py} +4 -4
- onfido/models/document_with_driver_verification_report_all_of_properties.py +5 -9
- {onfido_python-4.0.0.dist-info → onfido_python-4.1.0.dist-info}/METADATA +1 -1
- {onfido_python-4.0.0.dist-info → onfido_python-4.1.0.dist-info}/RECORD +12 -12
- {onfido_python-4.0.0.dist-info → onfido_python-4.1.0.dist-info}/WHEEL +1 -1
- {onfido_python-4.0.0.dist-info → onfido_python-4.1.0.dist-info}/LICENSE +0 -0
- {onfido_python-4.0.0.dist-info → onfido_python-4.1.0.dist-info}/top_level.txt +0 -0
onfido/__init__.py
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
""" # noqa: E501
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
__version__ = "4.
|
|
17
|
+
__version__ = "4.1.0"
|
|
18
18
|
|
|
19
19
|
# import apis into sdk package
|
|
20
20
|
from onfido.api.default_api import DefaultApi
|
|
@@ -106,7 +106,7 @@ from onfido.models.document_iq_reasons import DocumentIQReasons
|
|
|
106
106
|
from onfido.models.document_odp_reasons import DocumentODPReasons
|
|
107
107
|
from onfido.models.document_properties import DocumentProperties
|
|
108
108
|
from onfido.models.document_properties_address_lines import DocumentPropertiesAddressLines
|
|
109
|
-
from onfido.models.
|
|
109
|
+
from onfido.models.document_properties_barcode import DocumentPropertiesBarcode
|
|
110
110
|
from onfido.models.document_properties_document_classification import DocumentPropertiesDocumentClassification
|
|
111
111
|
from onfido.models.document_properties_document_numbers_inner import DocumentPropertiesDocumentNumbersInner
|
|
112
112
|
from onfido.models.document_properties_driving_licence_information import DocumentPropertiesDrivingLicenceInformation
|
onfido/api_client.py
CHANGED
|
@@ -90,7 +90,7 @@ class ApiClient:
|
|
|
90
90
|
self.default_headers[header_name] = header_value
|
|
91
91
|
self.cookie = cookie
|
|
92
92
|
# Set default User-Agent.
|
|
93
|
-
self.user_agent = 'onfido-python/4.
|
|
93
|
+
self.user_agent = 'onfido-python/4.1.0'
|
|
94
94
|
self.client_side_validation = configuration.client_side_validation
|
|
95
95
|
|
|
96
96
|
def __enter__(self):
|
onfido/configuration.py
CHANGED
|
@@ -394,7 +394,7 @@ conf = onfido.Configuration(
|
|
|
394
394
|
"OS: {env}\n"\
|
|
395
395
|
"Python Version: {pyversion}\n"\
|
|
396
396
|
"Version of the API: v3.6\n"\
|
|
397
|
-
"SDK Package Version: 4.
|
|
397
|
+
"SDK Package Version: 4.1.0".\
|
|
398
398
|
format(env=sys.platform, pyversion=sys.version)
|
|
399
399
|
|
|
400
400
|
def get_host_settings(self):
|
onfido/models/__init__.py
CHANGED
|
@@ -89,7 +89,7 @@ from onfido.models.document_iq_reasons import DocumentIQReasons
|
|
|
89
89
|
from onfido.models.document_odp_reasons import DocumentODPReasons
|
|
90
90
|
from onfido.models.document_properties import DocumentProperties
|
|
91
91
|
from onfido.models.document_properties_address_lines import DocumentPropertiesAddressLines
|
|
92
|
-
from onfido.models.
|
|
92
|
+
from onfido.models.document_properties_barcode import DocumentPropertiesBarcode
|
|
93
93
|
from onfido.models.document_properties_document_classification import DocumentPropertiesDocumentClassification
|
|
94
94
|
from onfido.models.document_properties_document_numbers_inner import DocumentPropertiesDocumentNumbersInner
|
|
95
95
|
from onfido.models.document_properties_driving_licence_information import DocumentPropertiesDrivingLicenceInformation
|
|
@@ -21,7 +21,7 @@ from datetime import date
|
|
|
21
21
|
from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr, field_validator
|
|
22
22
|
from typing import Any, ClassVar, Dict, List, Optional
|
|
23
23
|
from onfido.models.document_properties_address_lines import DocumentPropertiesAddressLines
|
|
24
|
-
from onfido.models.
|
|
24
|
+
from onfido.models.document_properties_barcode import DocumentPropertiesBarcode
|
|
25
25
|
from onfido.models.document_properties_document_classification import DocumentPropertiesDocumentClassification
|
|
26
26
|
from onfido.models.document_properties_document_numbers_inner import DocumentPropertiesDocumentNumbersInner
|
|
27
27
|
from onfido.models.document_properties_driving_licence_information import DocumentPropertiesDrivingLicenceInformation
|
|
@@ -74,7 +74,7 @@ class DocumentProperties(BaseModel):
|
|
|
74
74
|
real_id_compliance: Optional[StrictBool] = None
|
|
75
75
|
security_tier: Optional[StrictStr] = None
|
|
76
76
|
address_lines: Optional[DocumentPropertiesAddressLines] = None
|
|
77
|
-
barcode: Optional[
|
|
77
|
+
barcode: Optional[DocumentPropertiesBarcode] = None
|
|
78
78
|
nfc: Optional[DocumentPropertiesNfc] = None
|
|
79
79
|
driving_licence_information: Optional[DocumentPropertiesDrivingLicenceInformation] = None
|
|
80
80
|
document_classification: Optional[DocumentPropertiesDocumentClassification] = None
|
|
@@ -163,13 +163,9 @@ class DocumentProperties(BaseModel):
|
|
|
163
163
|
# override the default output from pydantic by calling `to_dict()` of address_lines
|
|
164
164
|
if self.address_lines:
|
|
165
165
|
_dict['address_lines'] = self.address_lines.to_dict()
|
|
166
|
-
# override the default output from pydantic by calling `to_dict()` of
|
|
167
|
-
_items = []
|
|
166
|
+
# override the default output from pydantic by calling `to_dict()` of barcode
|
|
168
167
|
if self.barcode:
|
|
169
|
-
|
|
170
|
-
if _item_barcode:
|
|
171
|
-
_items.append(_item_barcode.to_dict())
|
|
172
|
-
_dict['barcode'] = _items
|
|
168
|
+
_dict['barcode'] = self.barcode.to_dict()
|
|
173
169
|
# override the default output from pydantic by calling `to_dict()` of nfc
|
|
174
170
|
if self.nfc:
|
|
175
171
|
_dict['nfc'] = self.nfc.to_dict()
|
|
@@ -239,7 +235,7 @@ class DocumentProperties(BaseModel):
|
|
|
239
235
|
"real_id_compliance": obj.get("real_id_compliance"),
|
|
240
236
|
"security_tier": obj.get("security_tier"),
|
|
241
237
|
"address_lines": DocumentPropertiesAddressLines.from_dict(obj["address_lines"]) if obj.get("address_lines") is not None else None,
|
|
242
|
-
"barcode":
|
|
238
|
+
"barcode": DocumentPropertiesBarcode.from_dict(obj["barcode"]) if obj.get("barcode") is not None else None,
|
|
243
239
|
"nfc": DocumentPropertiesNfc.from_dict(obj["nfc"]) if obj.get("nfc") is not None else None,
|
|
244
240
|
"driving_licence_information": DocumentPropertiesDrivingLicenceInformation.from_dict(obj["driving_licence_information"]) if obj.get("driving_licence_information") is not None else None,
|
|
245
241
|
"document_classification": DocumentPropertiesDocumentClassification.from_dict(obj["document_classification"]) if obj.get("document_classification") is not None else None,
|
|
@@ -23,9 +23,9 @@ from typing import Any, ClassVar, Dict, List, Optional
|
|
|
23
23
|
from typing import Optional, Set
|
|
24
24
|
from typing_extensions import Self
|
|
25
25
|
|
|
26
|
-
class
|
|
26
|
+
class DocumentPropertiesBarcode(BaseModel):
|
|
27
27
|
"""
|
|
28
|
-
|
|
28
|
+
DocumentPropertiesBarcode
|
|
29
29
|
""" # noqa: E501
|
|
30
30
|
first_name: Optional[StrictStr] = None
|
|
31
31
|
middle_name: Optional[StrictStr] = None
|
|
@@ -66,7 +66,7 @@ class DocumentPropertiesBarcodeInner(BaseModel):
|
|
|
66
66
|
|
|
67
67
|
@classmethod
|
|
68
68
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
69
|
-
"""Create an instance of
|
|
69
|
+
"""Create an instance of DocumentPropertiesBarcode from a JSON string"""
|
|
70
70
|
return cls.from_dict(json.loads(json_str))
|
|
71
71
|
|
|
72
72
|
def to_dict(self) -> Dict[str, Any]:
|
|
@@ -98,7 +98,7 @@ class DocumentPropertiesBarcodeInner(BaseModel):
|
|
|
98
98
|
|
|
99
99
|
@classmethod
|
|
100
100
|
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
101
|
-
"""Create an instance of
|
|
101
|
+
"""Create an instance of DocumentPropertiesBarcode from a dict"""
|
|
102
102
|
if obj is None:
|
|
103
103
|
return None
|
|
104
104
|
|
|
@@ -21,7 +21,7 @@ from datetime import date
|
|
|
21
21
|
from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator
|
|
22
22
|
from typing import Any, ClassVar, Dict, List, Optional
|
|
23
23
|
from onfido.models.document_properties_address_lines import DocumentPropertiesAddressLines
|
|
24
|
-
from onfido.models.
|
|
24
|
+
from onfido.models.document_properties_barcode import DocumentPropertiesBarcode
|
|
25
25
|
from onfido.models.document_properties_document_classification import DocumentPropertiesDocumentClassification
|
|
26
26
|
from onfido.models.document_properties_document_numbers_inner import DocumentPropertiesDocumentNumbersInner
|
|
27
27
|
from onfido.models.document_properties_driving_licence_information import DocumentPropertiesDrivingLicenceInformation
|
|
@@ -76,7 +76,7 @@ class DocumentWithDriverVerificationReportAllOfProperties(BaseModel):
|
|
|
76
76
|
real_id_compliance: Optional[StrictBool] = None
|
|
77
77
|
security_tier: Optional[StrictStr] = None
|
|
78
78
|
address_lines: Optional[DocumentPropertiesAddressLines] = None
|
|
79
|
-
barcode: Optional[
|
|
79
|
+
barcode: Optional[DocumentPropertiesBarcode] = None
|
|
80
80
|
nfc: Optional[DocumentPropertiesNfc] = None
|
|
81
81
|
driving_licence_information: Optional[DocumentPropertiesDrivingLicenceInformation] = None
|
|
82
82
|
document_classification: Optional[DocumentPropertiesDocumentClassification] = None
|
|
@@ -171,13 +171,9 @@ class DocumentWithDriverVerificationReportAllOfProperties(BaseModel):
|
|
|
171
171
|
# override the default output from pydantic by calling `to_dict()` of address_lines
|
|
172
172
|
if self.address_lines:
|
|
173
173
|
_dict['address_lines'] = self.address_lines.to_dict()
|
|
174
|
-
# override the default output from pydantic by calling `to_dict()` of
|
|
175
|
-
_items = []
|
|
174
|
+
# override the default output from pydantic by calling `to_dict()` of barcode
|
|
176
175
|
if self.barcode:
|
|
177
|
-
|
|
178
|
-
if _item_barcode:
|
|
179
|
-
_items.append(_item_barcode.to_dict())
|
|
180
|
-
_dict['barcode'] = _items
|
|
176
|
+
_dict['barcode'] = self.barcode.to_dict()
|
|
181
177
|
# override the default output from pydantic by calling `to_dict()` of nfc
|
|
182
178
|
if self.nfc:
|
|
183
179
|
_dict['nfc'] = self.nfc.to_dict()
|
|
@@ -257,7 +253,7 @@ class DocumentWithDriverVerificationReportAllOfProperties(BaseModel):
|
|
|
257
253
|
"real_id_compliance": obj.get("real_id_compliance"),
|
|
258
254
|
"security_tier": obj.get("security_tier"),
|
|
259
255
|
"address_lines": DocumentPropertiesAddressLines.from_dict(obj["address_lines"]) if obj.get("address_lines") is not None else None,
|
|
260
|
-
"barcode":
|
|
256
|
+
"barcode": DocumentPropertiesBarcode.from_dict(obj["barcode"]) if obj.get("barcode") is not None else None,
|
|
261
257
|
"nfc": DocumentPropertiesNfc.from_dict(obj["nfc"]) if obj.get("nfc") is not None else None,
|
|
262
258
|
"driving_licence_information": DocumentPropertiesDrivingLicenceInformation.from_dict(obj["driving_licence_information"]) if obj.get("driving_licence_information") is not None else None,
|
|
263
259
|
"document_classification": DocumentPropertiesDocumentClassification.from_dict(obj["document_classification"]) if obj.get("document_classification") is not None else None,
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
onfido/__init__.py,sha256=
|
|
2
|
-
onfido/api_client.py,sha256=
|
|
1
|
+
onfido/__init__.py,sha256=m-mqGBmlqpEhGsMk0As8ULVAIpTkzKDu5PIunjDl6hY,28475
|
|
2
|
+
onfido/api_client.py,sha256=wpdR-L1iOyQm9EjlHbP9ApNRR5AQM3kDBp2_e-OK8hk,27329
|
|
3
3
|
onfido/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
|
|
4
|
-
onfido/configuration.py,sha256=
|
|
4
|
+
onfido/configuration.py,sha256=32ZiDiD7vViH1RrXFHLGGQpEiHUCxcXIE8tyCOZXKjE,15012
|
|
5
5
|
onfido/exceptions.py,sha256=5W4DJIPVwIzljxoedh5czPXOTBaq6CTTVD92h5ZyN88,5894
|
|
6
6
|
onfido/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
7
7
|
onfido/rest.py,sha256=kI5k8RQ6_BemD6Zx99dJDmr7zwA1mSrHLlba2WwwoMM,9419
|
|
8
8
|
onfido/webhook_event_verifier.py,sha256=3BSbY5D8NTXDbxCX0POuyu5a09dEeWgmikrTe_pttkI,814
|
|
9
9
|
onfido/api/__init__.py,sha256=hqeJm_GD67zukfFQ-H5PPPxYgZZ0DKOMPGTNRAjc3gw,94
|
|
10
10
|
onfido/api/default_api.py,sha256=kWMykJ4nLgi4oYBgLXG88Lm38B6UhMzG1KixOkSJSag,696717
|
|
11
|
-
onfido/models/__init__.py,sha256=
|
|
11
|
+
onfido/models/__init__.py,sha256=Z1GaF4yFER1OpwjQXoKQCJh1bDsnv6fU2bt2qKGWodk,27823
|
|
12
12
|
onfido/models/address.py,sha256=47oVzKVhn6Qxd24HMIuAQmVKgHPyfOnlFmBnthi2wOE,6812
|
|
13
13
|
onfido/models/address_builder.py,sha256=SjuOn2_T7Yic2l7qhaxd-euaijx85BziRkunp5j292M,6840
|
|
14
14
|
onfido/models/address_shared.py,sha256=WSQNw_W-V63Jgsh1Jf6KYWb4qm-eOW1URx_8r0LBUMk,6836
|
|
@@ -82,9 +82,9 @@ onfido/models/document_breakdown_visual_authenticity_breakdown_template.py,sha25
|
|
|
82
82
|
onfido/models/document_cdq_reasons.py,sha256=1m2qxLuIeC1HKVQim9TLt95l76FDi_rJi0uBYKtd03E,5214
|
|
83
83
|
onfido/models/document_iq_reasons.py,sha256=OKiCuxShiJ4uBrALjsK_Z_z28fnLwPEYev5YV6cDOVc,5392
|
|
84
84
|
onfido/models/document_odp_reasons.py,sha256=RQ6UAGnhkg7hfwOaEqAbuxdjIh2F1QyAhsoIpRsQfN0,3966
|
|
85
|
-
onfido/models/document_properties.py,sha256=
|
|
85
|
+
onfido/models/document_properties.py,sha256=501AIdOgNIy64ykWGkNJbcy4XGHrnG9l8ZiSxRYLBak,12723
|
|
86
86
|
onfido/models/document_properties_address_lines.py,sha256=KBEQPfyCQNpoA_VjP6vKroWqnOa_sy-G_UnyiBox-jI,3606
|
|
87
|
-
onfido/models/
|
|
87
|
+
onfido/models/document_properties_barcode.py,sha256=rXNFGjvJq4CMrRJOWhodGxsb4gaFBj-pjtcvcuMZmsI,5130
|
|
88
88
|
onfido/models/document_properties_document_classification.py,sha256=YRa0qNQBNXCPnHJn9_N0lKaXzhVCC-xKPezBBaYR7mU,3400
|
|
89
89
|
onfido/models/document_properties_document_numbers_inner.py,sha256=xUZ4yR2OXisMrBjygBDhJGYySvfdcfc1VEvMLrOqN1k,3198
|
|
90
90
|
onfido/models/document_properties_driving_licence_information.py,sha256=ij5akKUnk_-TZxXeh0jun4IGQf6d4NhmSURHeidjxpA,3486
|
|
@@ -98,7 +98,7 @@ onfido/models/document_video_report.py,sha256=O_h7vRxsVW0ud76bI6qi4sMZ2edQv5bmd8
|
|
|
98
98
|
onfido/models/document_video_with_address_information_report.py,sha256=9fwt5aYlvEviI0Nc98qMPicSLzHfV39k8T_f9qcxEZ8,5955
|
|
99
99
|
onfido/models/document_with_address_information_report.py,sha256=knVGNnCS_9jGCzPCZFWSsn156yWhYUpbQfLQZxRcfN8,5935
|
|
100
100
|
onfido/models/document_with_driver_verification_report.py,sha256=xIYJ7bbrCsw7Nq9ak9uDwLhWaCYwVsR-Brp7KGyLiuE,6073
|
|
101
|
-
onfido/models/document_with_driver_verification_report_all_of_properties.py,sha256=
|
|
101
|
+
onfido/models/document_with_driver_verification_report_all_of_properties.py,sha256=LZ10OnfeLhpLnBdjvzIY4CFFgMOSWkuBFIt3chJVKzI,15613
|
|
102
102
|
onfido/models/document_with_driver_verification_report_all_of_properties_all_of_passenger_vehicle.py,sha256=xI7noUuOz8MIrJ7iErenQgww2EmgTukpYehLBcC1zZI,3792
|
|
103
103
|
onfido/models/document_with_driver_verification_report_all_of_properties_all_of_vehicle_class_details_inner.py,sha256=7IYp8uXyMjA2WKyEDkQw_3_ZixPVosy3x7XcXSksXVQ,3866
|
|
104
104
|
onfido/models/document_with_driving_licence_information_report.py,sha256=6V6EtWgSLW5OhXGqNM1J3YvhSyUs-i6_29c3p_3Tae8,5963
|
|
@@ -297,8 +297,8 @@ onfido/models/workflow_run_request.py,sha256=IGCpkcvqn6kJ2L2nZeuBHNeANqcSUfvx0Ig
|
|
|
297
297
|
onfido/models/workflow_run_response.py,sha256=Ze469zDUWxZMxqIxas6Sjts3EB21z7PhZTfuWgs0Thw,5080
|
|
298
298
|
onfido/models/workflow_run_shared.py,sha256=WP9qLkf79iaJTeK-QxkwzB2MvR4atT3LdZZRmZopPp4,4857
|
|
299
299
|
onfido/models/workflow_run_status.py,sha256=34P9aHn0FEAirtAo64ej00LH4h-3V36ShZG1XbS_hZo,884
|
|
300
|
-
onfido_python-4.
|
|
301
|
-
onfido_python-4.
|
|
302
|
-
onfido_python-4.
|
|
303
|
-
onfido_python-4.
|
|
304
|
-
onfido_python-4.
|
|
300
|
+
onfido_python-4.1.0.dist-info/LICENSE,sha256=SKY_O1OkFX8yNWFuVVfYTsXvN46jsgtff-xReserHw4,1073
|
|
301
|
+
onfido_python-4.1.0.dist-info/METADATA,sha256=Ez-cHTIiixraovzdvdgRGDBoeLzxAwspCa7xeoF9UUc,490
|
|
302
|
+
onfido_python-4.1.0.dist-info/WHEEL,sha256=P9jw-gEje8ByB7_hXoICnHtVCrEwMQh-630tKvQWehc,91
|
|
303
|
+
onfido_python-4.1.0.dist-info/top_level.txt,sha256=NHu8xI4S4Avh7xUark3dpdk9atpIVgyf-ptjHXU0-Ns,7
|
|
304
|
+
onfido_python-4.1.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|