onfido-python 2.9.0__py3-none-any.whl → 2.10.1__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/aio_resource.py +4 -5
- onfido/resources/workflow_runs.py +11 -0
- onfido/resources_aio/workflow_runs.py +11 -0
- {onfido_python-2.9.0.dist-info → onfido_python-2.10.1.dist-info}/METADATA +10 -1
- {onfido_python-2.9.0.dist-info → onfido_python-2.10.1.dist-info}/RECORD +7 -7
- {onfido_python-2.9.0.dist-info → onfido_python-2.10.1.dist-info}/LICENSE +0 -0
- {onfido_python-2.9.0.dist-info → onfido_python-2.10.1.dist-info}/WHEEL +0 -0
onfido/aio_resource.py
CHANGED
|
@@ -39,11 +39,10 @@ class Resource:
|
|
|
39
39
|
async def _handle_response(self, response: ClientResponse):
|
|
40
40
|
if response.status == 422:
|
|
41
41
|
error = None
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
error = resp_json.get("error")
|
|
42
|
+
content_type = response.headers.get("Content-Type", "")
|
|
43
|
+
if "application/json" in content_type:
|
|
44
|
+
resp_json = await response.json()
|
|
45
|
+
error = resp_json.get("error")
|
|
47
46
|
raise OnfidoRequestError(error)
|
|
48
47
|
|
|
49
48
|
response.raise_for_status()
|
|
@@ -2,5 +2,16 @@ from ..resource import Resource
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
class WorkflowRuns(Resource):
|
|
5
|
+
def create(self, request_body: dict):
|
|
6
|
+
return self._post("workflow_runs/", **request_body)
|
|
7
|
+
|
|
8
|
+
def all(self, **user_payload: dict):
|
|
9
|
+
payload = {"page": 1, "sort": "desc"}
|
|
10
|
+
payload.update(user_payload)
|
|
11
|
+
return self._get("workflow_runs", payload=payload)
|
|
12
|
+
|
|
13
|
+
def find(self, workflow_run_id: str):
|
|
14
|
+
return self._get(f"workflow_runs/{workflow_run_id}")
|
|
15
|
+
|
|
5
16
|
def evidence(self, workflow_run_id: str):
|
|
6
17
|
return self._download_request(f"workflow_runs/{workflow_run_id}/signed_evidence_file")
|
|
@@ -2,5 +2,16 @@ from ..aio_resource import Resource
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
class WorkflowRuns(Resource):
|
|
5
|
+
def create(self, request_body: dict):
|
|
6
|
+
return self._post("workflow_runs/", **request_body)
|
|
7
|
+
|
|
8
|
+
def all(self, **user_payload: dict):
|
|
9
|
+
payload = {"page": 1, "sort": "desc"}
|
|
10
|
+
payload.update(user_payload)
|
|
11
|
+
return self._get("workflow_runs", payload=payload)
|
|
12
|
+
|
|
13
|
+
def find(self, workflow_run_id: str):
|
|
14
|
+
return self._get(f"workflow_runs/{workflow_run_id}")
|
|
15
|
+
|
|
5
16
|
def evidence(self, workflow_run_id: str):
|
|
6
17
|
return self._download_request(f"workflow_runs/{workflow_run_id}/signed_evidence_file")
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: onfido-python
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.10.1
|
|
4
4
|
Summary: The official wrapper for the Onfido API
|
|
5
5
|
Home-page: https://github.com/onfido/onfido-python
|
|
6
6
|
License: MIT
|
|
@@ -170,3 +170,12 @@ Resource information and code examples can be found at https://documentation.onf
|
|
|
170
170
|
5. Push to the branch (`git push origin my-new-feature`)
|
|
171
171
|
6. Create a new Pull Request
|
|
172
172
|
|
|
173
|
+
## Support
|
|
174
|
+
|
|
175
|
+
Should you encounter any technical issues during integration, please contact Onfido’s Customer Support team
|
|
176
|
+
via [email](mailto:support@onfido.com), including the word ISSUE: at the start of the subject line.
|
|
177
|
+
|
|
178
|
+
Alternatively, you can search the support documentation available via the customer experience
|
|
179
|
+
portal, [public.support.onfido.com](http://public.support.onfido.com).
|
|
180
|
+
|
|
181
|
+
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
onfido/__init__.py,sha256=4nFD3WP9Z5BsM3b5DKCvmC6MbXV-Ur9I4QCfeUJi1g0,53
|
|
2
|
-
onfido/aio_resource.py,sha256
|
|
2
|
+
onfido/aio_resource.py,sha256=Jw4rhfeMnX-GoUBsx7mEGzj6H4Bbr6pSyPs9PzQlcL4,4619
|
|
3
3
|
onfido/exceptions.py,sha256=uZc8ru5_imXJ5ub6JhH7TMqZHftRxUG28XHVA-VlHJY,2131
|
|
4
4
|
onfido/mimetype.py,sha256=ur3ruKmSAdSAR56fPsf1sc6dPVGYpS6XaovtCo4G79U,120
|
|
5
5
|
onfido/onfido.py,sha256=wV2FZaU5xq_IoBG6U5Y3FezfWX_i-KjcOgZ8NTkafnQ,4342
|
|
@@ -18,7 +18,7 @@ onfido/resources/reports.py,sha256=mGXUpAZXHOQOzPxVLAYOXDPVkAVjW8Wq1GFoza721eo,4
|
|
|
18
18
|
onfido/resources/sdk_tokens.py,sha256=Pm51FtUU9BwM5fzFFyK8iXO4Emdh_3xHUTQ_hh-1_88,151
|
|
19
19
|
onfido/resources/watchlist_monitors.py,sha256=2MZERAIZzIbPz07gUd0h96bK49SxCtQfNdHmegPm7wY,531
|
|
20
20
|
onfido/resources/webhooks.py,sha256=c9OG1IisTd4vCwm9-rVOXoZyRi11P0d938bGWSVkDUM,514
|
|
21
|
-
onfido/resources/workflow_runs.py,sha256=
|
|
21
|
+
onfido/resources/workflow_runs.py,sha256=KsWzz7d81kgjVEE9nNVzxva6htpepp2dmZa5BEzQGe8,596
|
|
22
22
|
onfido/resources_aio/address_picker.py,sha256=81_xXJGHCSoTt2ERdpJDehmcFdIl1kQmdlqAUyYjLPY,164
|
|
23
23
|
onfido/resources_aio/applicants.py,sha256=Dv23RabSLsnYJyanwq54MPpKB3wLaUigmEen-4g6nCA,813
|
|
24
24
|
onfido/resources_aio/checks.py,sha256=7sbzNjSo931Xw9laK82zTVc03VTcIH0vJXp-FGYf2EY,583
|
|
@@ -31,10 +31,10 @@ onfido/resources_aio/reports.py,sha256=dC5feKsV2N8c-Wd32J8uJxT2V6ot3R7nkVdPV2zx0
|
|
|
31
31
|
onfido/resources_aio/sdk_tokens.py,sha256=p-FVyyI3ts-HuPZ7_qjXXUTw1-JVjrrKfgnU8tIH0WQ,157
|
|
32
32
|
onfido/resources_aio/watchlist_monitors.py,sha256=6DVW_f58e_CUvSEQBMG_pl8w8AfZNasTXr0_WO3hMyQ,544
|
|
33
33
|
onfido/resources_aio/webhooks.py,sha256=hrYvFBrweN79B06TtVvG87PzpXV3bwsRpHmx3KCWe7o,531
|
|
34
|
-
onfido/resources_aio/workflow_runs.py,sha256=
|
|
34
|
+
onfido/resources_aio/workflow_runs.py,sha256=sZ5yyMvBXYRmWYL50_41R1M5g_T-Xm0GkKu1yrm4Ci0,600
|
|
35
35
|
onfido/utils.py,sha256=n-Z2D4GGgr2UmOpTFCKsIdgL9QaNMUuzVmGx7ZI8j4U,708
|
|
36
36
|
onfido/webhook_event_verifier.py,sha256=YgN5P_Jw7N7WIi0lSZwB1dlaRTsge9-CyYF4YA1pQtA,771
|
|
37
|
-
onfido_python-2.
|
|
38
|
-
onfido_python-2.
|
|
39
|
-
onfido_python-2.
|
|
40
|
-
onfido_python-2.
|
|
37
|
+
onfido_python-2.10.1.dist-info/LICENSE,sha256=xFvlQb3_cMWstMRPgUCbYrHPv1AmTUC8_lnmTLKJfa0,1073
|
|
38
|
+
onfido_python-2.10.1.dist-info/METADATA,sha256=NCT9G2Dl65dgemoWqgfplbg2oOyHIIyGYbqWDvYYiz4,5774
|
|
39
|
+
onfido_python-2.10.1.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
|
|
40
|
+
onfido_python-2.10.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|