You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16-14Lines changed: 16 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,9 +2,9 @@
2
2
3
3
The official Python library for integrating with the Onfido API.
4
4
5
-
Documentation can be found at <https://documentation.onfido.com>.
5
+
Documentation is available at <https://documentation.onfido.com>.
6
6
7
-
This version uses Onfido API v3.6. Refer to our [API versioning guide](https://developers.onfido.com/guide/api-versioning-policy#client-libraries) for details of which client library versions use which versions of the API.
7
+
This version uses Onfido API v3.6. Refer to our [API versioning guide](https://developers.onfido.com/guide/api-versioning-policy#client-libraries) for details. It explains which client library versions use which versions of the API.
If the python package is hosted on a repository, you can install directly using:
22
+
If the Python package is hosted on a repository, you can install it directly using:
23
23
24
24
```sh
25
25
pip install onfido-python
@@ -68,7 +68,7 @@ with onfido.ApiClient(configuration) as api_client:
68
68
...
69
69
```
70
70
71
-
NB: by default, timeout values are set to 30 seconds.
71
+
NB: by default, timeout values are set to 30 seconds. You can change the default timeout values by setting the `timeout` parameter in the `Configuration` object, as shown in the example above.
72
72
73
73
### Making a call to the API
74
74
@@ -97,7 +97,7 @@ Specific exception types are defined into [exceptions.py](onfido/exceptions.py).
97
97
98
98
### Webhook event verification
99
99
100
-
Webhook events payload needs to be verified before it can be accessed. Library allows to easily decode the payload and verify its signature before returning it as an object for user convenience:
100
+
Webhook events payload needs to be verified before it can be accessed. Verifying webhook payloads is crucial for security reasons, as it ensures that the payloads are indeed from Onfido and have not been tampered with. The library allows you to easily decode the payload and verify its signature before returning it as an object for user convenience:
101
101
102
102
```python
103
103
try:
@@ -115,41 +115,43 @@ Webhook events payload needs to be verified before it can be accessed. Library a
115
115
116
116
#### Do not use additional properties
117
117
118
-
Retain from using `additional_properties` dictionary to access not defined properties to avoid breaking changes when these fields will appear.
118
+
Except for accessing Task object's outputs, avoid using the `additional_properties` dictionary to access undefined properties to prevent breaking changes when these fields appear.
119
119
120
120
## Contributing
121
121
122
-
This library is automatically generated using [OpenAPI Generator](https://openapi-generator.tech) (version: 7.9.0); therefore all the contributions, except tests files, should target [Onfido OpenAPI specification repository](https://github.com/onfido/onfido-openapi-spec/tree/master) instead of this repository.
122
+
This library is automatically generated using [OpenAPI Generator](https://openapi-generator.tech) (version: 7.9.0); therefore, all contributions (except test files) should target the [Onfido OpenAPI specification repository](https://github.com/onfido/onfido-openapi-spec/tree/master) instead of this repository. Please follow the contribution guidelines provided in the OpenAPI specification repository.
123
123
124
124
For contributions to the tests instead, please follow the steps below:
raiseValueError("must be one of enum values ('ssn', 'social_insurance', 'tax_id', 'identity_card', 'driving_licence', 'share_code', 'voter_id', 'passport', 'other')")
Copy file name to clipboardExpand all lines: onfido/models/webhook_event_payload_resource.py
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -45,8 +45,9 @@ class WebhookEventPayloadResource(BaseModel):
45
45
reasons: Optional[List[StrictStr]] =Field(default=None, description="The reasons the Workflow Run outcome was reached. Configurable when creating the Workflow Version.")
46
46
link: Optional[WorkflowRunLink] =Field(default=None, description="Object for the configuration of the Workflow Run link.")
47
47
error: Optional[WorkflowRunError] =Field(default=None, description="Error object that details why a Workflow Run is in Error status.")
48
+
customer_user_id: Optional[Annotated[str, Field(strict=True, max_length=256)]] =Field(default=None, description="Customer-provided user identifier.")
0 commit comments