Skip to content
This repository was archived by the owner on Nov 16, 2021. It is now read-only.

Commit 8afc884

Browse files
author
Engineering at Onfido
committed
New client release: 4.2.0
1 parent 4dc5959 commit 8afc884

File tree

7 files changed

+40
-12
lines changed

7 files changed

+40
-12
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ The Onfido API is used to submit check requests.
44
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
55

66
- API version: 2.0.0
7-
- Package version: 4.1.0
7+
- Package version: 4.2.0
88
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
99

1010
## Requirements.

docs/SdkTokenRequest.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
66
**applicant_id** | **str** | The unique identifier of the applicant |
7-
**referrer** | **str** | The referrer URL pattern |
7+
**referrer** | **str** | The referrer URL pattern | [optional]
8+
**application_id** | **str** | The application ID (iOS or Android) | [optional]
89

910
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1011

onfido/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
from __future__ import absolute_import
1616

17-
__version__ = "4.1.0"
17+
__version__ = "4.2.0"
1818

1919
# import apis into sdk package
2020
from onfido.api.default_api import DefaultApi

onfido/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None,
7575
self.default_headers[header_name] = header_value
7676
self.cookie = cookie
7777
# Set default User-Agent.
78-
self.user_agent = 'OpenAPI-Generator/4.1.0/python'
78+
self.user_agent = 'OpenAPI-Generator/4.2.0/python'
7979

8080
def __del__(self):
8181
if self._pool:

onfido/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ def to_debug_report(self):
229229
"OS: {env}\n"\
230230
"Python Version: {pyversion}\n"\
231231
"Version of the API: 2.0.0\n"\
232-
"SDK Package Version: 4.1.0".\
232+
"SDK Package Version: 4.2.0".\
233233
format(env=sys.platform, pyversion=sys.version)
234234

235235
def get_host_settings(self):

onfido/models/sdk_token_request.py

Lines changed: 33 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,23 +32,29 @@ class SdkTokenRequest(object):
3232
"""
3333
openapi_types = {
3434
'applicant_id': 'str',
35-
'referrer': 'str'
35+
'referrer': 'str',
36+
'application_id': 'str'
3637
}
3738

3839
attribute_map = {
3940
'applicant_id': 'applicant_id',
40-
'referrer': 'referrer'
41+
'referrer': 'referrer',
42+
'application_id': 'application_id'
4143
}
4244

43-
def __init__(self, applicant_id=None, referrer=None): # noqa: E501
45+
def __init__(self, applicant_id=None, referrer=None, application_id=None): # noqa: E501
4446
"""SdkTokenRequest - a model defined in OpenAPI""" # noqa: E501
4547

4648
self._applicant_id = None
4749
self._referrer = None
50+
self._application_id = None
4851
self.discriminator = None
4952

5053
self.applicant_id = applicant_id
51-
self.referrer = referrer
54+
if referrer is not None:
55+
self.referrer = referrer
56+
if application_id is not None:
57+
self.application_id = application_id
5258

5359
@property
5460
def applicant_id(self):
@@ -95,11 +101,32 @@ def referrer(self, referrer):
95101
:param referrer: The referrer of this SdkTokenRequest. # noqa: E501
96102
:type: str
97103
"""
98-
if referrer is None:
99-
raise ValueError("Invalid value for `referrer`, must not be `None`") # noqa: E501
100104

101105
self._referrer = referrer
102106

107+
@property
108+
def application_id(self):
109+
"""Gets the application_id of this SdkTokenRequest. # noqa: E501
110+
111+
The application ID (iOS or Android) # noqa: E501
112+
113+
:return: The application_id of this SdkTokenRequest. # noqa: E501
114+
:rtype: str
115+
"""
116+
return self._application_id
117+
118+
@application_id.setter
119+
def application_id(self, application_id):
120+
"""Sets the application_id of this SdkTokenRequest.
121+
122+
The application ID (iOS or Android) # noqa: E501
123+
124+
:param application_id: The application_id of this SdkTokenRequest. # noqa: E501
125+
:type: str
126+
"""
127+
128+
self._application_id = application_id
129+
103130
def to_dict(self):
104131
"""Returns the model properties as a dict"""
105132
result = {}

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from setuptools import setup, find_packages # noqa: H301
1414

1515
NAME = "onfido"
16-
VERSION = "4.1.0"
16+
VERSION = "4.2.0"
1717
# To install the library, run the following
1818
#
1919
# python setup.py install

0 commit comments

Comments
 (0)