onfido-python 2.9.0__tar.gz → 2.10.1__tar.gz

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.
Files changed (42) hide show
  1. {onfido_python-2.9.0 → onfido_python-2.10.1}/PKG-INFO +10 -1
  2. {onfido_python-2.9.0 → onfido_python-2.10.1}/README.md +9 -0
  3. {onfido_python-2.9.0 → onfido_python-2.10.1}/onfido/aio_resource.py +4 -5
  4. onfido_python-2.10.1/onfido/resources/workflow_runs.py +17 -0
  5. onfido_python-2.10.1/onfido/resources_aio/workflow_runs.py +17 -0
  6. {onfido_python-2.9.0 → onfido_python-2.10.1}/pyproject.toml +1 -1
  7. onfido_python-2.9.0/onfido/resources/workflow_runs.py +0 -6
  8. onfido_python-2.9.0/onfido/resources_aio/workflow_runs.py +0 -6
  9. {onfido_python-2.9.0 → onfido_python-2.10.1}/LICENSE +0 -0
  10. {onfido_python-2.9.0 → onfido_python-2.10.1}/onfido/__init__.py +0 -0
  11. {onfido_python-2.9.0 → onfido_python-2.10.1}/onfido/exceptions.py +0 -0
  12. {onfido_python-2.9.0 → onfido_python-2.10.1}/onfido/mimetype.py +0 -0
  13. {onfido_python-2.9.0 → onfido_python-2.10.1}/onfido/onfido.py +0 -0
  14. {onfido_python-2.9.0 → onfido_python-2.10.1}/onfido/onfido_download.py +0 -0
  15. {onfido_python-2.9.0 → onfido_python-2.10.1}/onfido/regions.py +0 -0
  16. {onfido_python-2.9.0 → onfido_python-2.10.1}/onfido/resource.py +0 -0
  17. {onfido_python-2.9.0 → onfido_python-2.10.1}/onfido/resources/address_picker.py +0 -0
  18. {onfido_python-2.9.0 → onfido_python-2.10.1}/onfido/resources/applicants.py +0 -0
  19. {onfido_python-2.9.0 → onfido_python-2.10.1}/onfido/resources/checks.py +0 -0
  20. {onfido_python-2.9.0 → onfido_python-2.10.1}/onfido/resources/documents.py +0 -0
  21. {onfido_python-2.9.0 → onfido_python-2.10.1}/onfido/resources/extraction.py +0 -0
  22. {onfido_python-2.9.0 → onfido_python-2.10.1}/onfido/resources/live_photos.py +0 -0
  23. {onfido_python-2.9.0 → onfido_python-2.10.1}/onfido/resources/live_videos.py +0 -0
  24. {onfido_python-2.9.0 → onfido_python-2.10.1}/onfido/resources/motion_captures.py +0 -0
  25. {onfido_python-2.9.0 → onfido_python-2.10.1}/onfido/resources/reports.py +0 -0
  26. {onfido_python-2.9.0 → onfido_python-2.10.1}/onfido/resources/sdk_tokens.py +0 -0
  27. {onfido_python-2.9.0 → onfido_python-2.10.1}/onfido/resources/watchlist_monitors.py +0 -0
  28. {onfido_python-2.9.0 → onfido_python-2.10.1}/onfido/resources/webhooks.py +0 -0
  29. {onfido_python-2.9.0 → onfido_python-2.10.1}/onfido/resources_aio/address_picker.py +0 -0
  30. {onfido_python-2.9.0 → onfido_python-2.10.1}/onfido/resources_aio/applicants.py +0 -0
  31. {onfido_python-2.9.0 → onfido_python-2.10.1}/onfido/resources_aio/checks.py +0 -0
  32. {onfido_python-2.9.0 → onfido_python-2.10.1}/onfido/resources_aio/documents.py +0 -0
  33. {onfido_python-2.9.0 → onfido_python-2.10.1}/onfido/resources_aio/extraction.py +0 -0
  34. {onfido_python-2.9.0 → onfido_python-2.10.1}/onfido/resources_aio/live_photos.py +0 -0
  35. {onfido_python-2.9.0 → onfido_python-2.10.1}/onfido/resources_aio/live_videos.py +0 -0
  36. {onfido_python-2.9.0 → onfido_python-2.10.1}/onfido/resources_aio/motion_captures.py +0 -0
  37. {onfido_python-2.9.0 → onfido_python-2.10.1}/onfido/resources_aio/reports.py +0 -0
  38. {onfido_python-2.9.0 → onfido_python-2.10.1}/onfido/resources_aio/sdk_tokens.py +0 -0
  39. {onfido_python-2.9.0 → onfido_python-2.10.1}/onfido/resources_aio/watchlist_monitors.py +0 -0
  40. {onfido_python-2.9.0 → onfido_python-2.10.1}/onfido/resources_aio/webhooks.py +0 -0
  41. {onfido_python-2.9.0 → onfido_python-2.10.1}/onfido/utils.py +0 -0
  42. {onfido_python-2.9.0 → onfido_python-2.10.1}/onfido/webhook_event_verifier.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: onfido-python
3
- Version: 2.9.0
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
+
@@ -145,3 +145,12 @@ Resource information and code examples can be found at https://documentation.onf
145
145
  4. Commit your changes (`git commit -am 'Add some feature'`)
146
146
  5. Push to the branch (`git push origin my-new-feature`)
147
147
  6. Create a new Pull Request
148
+
149
+ ## Support
150
+
151
+ Should you encounter any technical issues during integration, please contact Onfido’s Customer Support team
152
+ via [email](mailto:support@onfido.com), including the word ISSUE: at the start of the subject line.
153
+
154
+ Alternatively, you can search the support documentation available via the customer experience
155
+ portal, [public.support.onfido.com](http://public.support.onfido.com).
156
+
@@ -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
- if response.code == 422:
43
- content_type = response.headers.get("Content-Type", "")
44
- if "application/json" in content_type:
45
- resp_json = await response.json()
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()
@@ -0,0 +1,17 @@
1
+ from ..resource import Resource
2
+
3
+
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
+
16
+ def evidence(self, workflow_run_id: str):
17
+ return self._download_request(f"workflow_runs/{workflow_run_id}/signed_evidence_file")
@@ -0,0 +1,17 @@
1
+ from ..aio_resource import Resource
2
+
3
+
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
+
16
+ def evidence(self, workflow_run_id: str):
17
+ return self._download_request(f"workflow_runs/{workflow_run_id}/signed_evidence_file")
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "onfido-python"
3
- version = "2.9.0"
3
+ version = "2.10.1"
4
4
  description = "The official wrapper for the Onfido API"
5
5
  homepage = "https://github.com/onfido/onfido-python"
6
6
  readme = "README.md"
@@ -1,6 +0,0 @@
1
- from ..resource import Resource
2
-
3
-
4
- class WorkflowRuns(Resource):
5
- def evidence(self, workflow_run_id: str):
6
- return self._download_request(f"workflow_runs/{workflow_run_id}/signed_evidence_file")
@@ -1,6 +0,0 @@
1
- from ..aio_resource import Resource
2
-
3
-
4
- class WorkflowRuns(Resource):
5
- def evidence(self, workflow_run_id: str):
6
- return self._download_request(f"workflow_runs/{workflow_run_id}/signed_evidence_file")
File without changes