Skip to content

Commit 9711577

Browse files
dvacca-onfidogithub-actions[bot]
authored andcommitted
Upgrade after onfido-openapi-spec change 22e3bd3
1 parent 625c54f commit 9711577

File tree

8 files changed

+296
-12
lines changed

8 files changed

+296
-12
lines changed

.release.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"source": {
33
"repo_url": "https://github.com/onfido/onfido-openapi-spec",
4-
"short_sha": "83ae3ce",
5-
"long_sha": "83ae3cea0eb3901c02aa3af203856e1d55d84d87",
6-
"version": "v5.3.0"
4+
"short_sha": "22e3bd3",
5+
"long_sha": "22e3bd3bc410d379ded0cdd592f71059fc0aee1d",
6+
"version": "v5.4.0"
77
},
8-
"release": "v5.3.0"
8+
"release": "v5.4.0"
99
}

onfido/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
""" # noqa: E501
1515

1616

17-
__version__ = "5.3.0"
17+
__version__ = "5.4.0"
1818

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

onfido/api/default_api.py

Lines changed: 284 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3062,6 +3062,290 @@ def _delete_webhook_serialize(
30623062

30633063

30643064

3065+
@validate_call
3066+
def download_aes_document(
3067+
self,
3068+
workflow_run_id: Annotated[StrictStr, Field(description="The unique identifier of the Workflow Run for which you want to retrieve the signed document.")],
3069+
id: Annotated[StrictStr, Field(description="The unique identifier of the file which you want to retrieve.")],
3070+
_request_timeout: Union[
3071+
None,
3072+
Annotated[StrictFloat, Field(gt=0)],
3073+
Tuple[
3074+
Annotated[StrictFloat, Field(gt=0)],
3075+
Annotated[StrictFloat, Field(gt=0)]
3076+
]
3077+
] = None,
3078+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
3079+
_content_type: Optional[StrictStr] = None,
3080+
_headers: Optional[Dict[StrictStr, Any]] = None,
3081+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3082+
) -> bytearray:
3083+
"""Retrieves the signed document or signing transaction receipt
3084+
3085+
Retrieves the signed document or signing transaction receipt depending on the id provided.
3086+
3087+
:param workflow_run_id: The unique identifier of the Workflow Run for which you want to retrieve the signed document. (required)
3088+
:type workflow_run_id: str
3089+
:param id: The unique identifier of the file which you want to retrieve. (required)
3090+
:type id: str
3091+
:param _request_timeout: timeout setting for this request. If one
3092+
number provided, it will be total request
3093+
timeout. It can also be a pair (tuple) of
3094+
(connection, read) timeouts.
3095+
:type _request_timeout: int, tuple(int, int), optional
3096+
:param _request_auth: set to override the auth_settings for an a single
3097+
request; this effectively ignores the
3098+
authentication in the spec for a single request.
3099+
:type _request_auth: dict, optional
3100+
:param _content_type: force content-type for the request.
3101+
:type _content_type: str, Optional
3102+
:param _headers: set to override the headers for a single
3103+
request; this effectively ignores the headers
3104+
in the spec for a single request.
3105+
:type _headers: dict, optional
3106+
:param _host_index: set to override the host_index for a single
3107+
request; this effectively ignores the host_index
3108+
in the spec for a single request.
3109+
:type _host_index: int, optional
3110+
:return: Returns the result object.
3111+
""" # noqa: E501
3112+
3113+
_param = self._download_aes_document_serialize(
3114+
workflow_run_id=workflow_run_id,
3115+
id=id,
3116+
_request_auth=_request_auth,
3117+
_content_type=_content_type,
3118+
_headers=_headers,
3119+
_host_index=_host_index
3120+
)
3121+
3122+
_response_types_map: Dict[str, Optional[str]] = {
3123+
'302': None,
3124+
'200': "bytearray",
3125+
}
3126+
response_data = self.api_client.call_api(
3127+
*_param,
3128+
_request_timeout=_request_timeout
3129+
)
3130+
response_data.read()
3131+
return self.api_client.response_deserialize(
3132+
response_data=response_data,
3133+
response_types_map=_response_types_map,
3134+
).data
3135+
3136+
3137+
@validate_call
3138+
def download_aes_document_with_http_info(
3139+
self,
3140+
workflow_run_id: Annotated[StrictStr, Field(description="The unique identifier of the Workflow Run for which you want to retrieve the signed document.")],
3141+
id: Annotated[StrictStr, Field(description="The unique identifier of the file which you want to retrieve.")],
3142+
_request_timeout: Union[
3143+
None,
3144+
Annotated[StrictFloat, Field(gt=0)],
3145+
Tuple[
3146+
Annotated[StrictFloat, Field(gt=0)],
3147+
Annotated[StrictFloat, Field(gt=0)]
3148+
]
3149+
] = None,
3150+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
3151+
_content_type: Optional[StrictStr] = None,
3152+
_headers: Optional[Dict[StrictStr, Any]] = None,
3153+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3154+
) -> ApiResponse[bytearray]:
3155+
"""Retrieves the signed document or signing transaction receipt
3156+
3157+
Retrieves the signed document or signing transaction receipt depending on the id provided.
3158+
3159+
:param workflow_run_id: The unique identifier of the Workflow Run for which you want to retrieve the signed document. (required)
3160+
:type workflow_run_id: str
3161+
:param id: The unique identifier of the file which you want to retrieve. (required)
3162+
:type id: str
3163+
:param _request_timeout: timeout setting for this request. If one
3164+
number provided, it will be total request
3165+
timeout. It can also be a pair (tuple) of
3166+
(connection, read) timeouts.
3167+
:type _request_timeout: int, tuple(int, int), optional
3168+
:param _request_auth: set to override the auth_settings for an a single
3169+
request; this effectively ignores the
3170+
authentication in the spec for a single request.
3171+
:type _request_auth: dict, optional
3172+
:param _content_type: force content-type for the request.
3173+
:type _content_type: str, Optional
3174+
:param _headers: set to override the headers for a single
3175+
request; this effectively ignores the headers
3176+
in the spec for a single request.
3177+
:type _headers: dict, optional
3178+
:param _host_index: set to override the host_index for a single
3179+
request; this effectively ignores the host_index
3180+
in the spec for a single request.
3181+
:type _host_index: int, optional
3182+
:return: Returns the result object.
3183+
""" # noqa: E501
3184+
3185+
_param = self._download_aes_document_serialize(
3186+
workflow_run_id=workflow_run_id,
3187+
id=id,
3188+
_request_auth=_request_auth,
3189+
_content_type=_content_type,
3190+
_headers=_headers,
3191+
_host_index=_host_index
3192+
)
3193+
3194+
_response_types_map: Dict[str, Optional[str]] = {
3195+
'302': None,
3196+
'200': "bytearray",
3197+
}
3198+
response_data = self.api_client.call_api(
3199+
*_param,
3200+
_request_timeout=_request_timeout
3201+
)
3202+
response_data.read()
3203+
return self.api_client.response_deserialize(
3204+
response_data=response_data,
3205+
response_types_map=_response_types_map,
3206+
)
3207+
3208+
3209+
@validate_call
3210+
def download_aes_document_without_preload_content(
3211+
self,
3212+
workflow_run_id: Annotated[StrictStr, Field(description="The unique identifier of the Workflow Run for which you want to retrieve the signed document.")],
3213+
id: Annotated[StrictStr, Field(description="The unique identifier of the file which you want to retrieve.")],
3214+
_request_timeout: Union[
3215+
None,
3216+
Annotated[StrictFloat, Field(gt=0)],
3217+
Tuple[
3218+
Annotated[StrictFloat, Field(gt=0)],
3219+
Annotated[StrictFloat, Field(gt=0)]
3220+
]
3221+
] = None,
3222+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
3223+
_content_type: Optional[StrictStr] = None,
3224+
_headers: Optional[Dict[StrictStr, Any]] = None,
3225+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3226+
) -> RESTResponseType:
3227+
"""Retrieves the signed document or signing transaction receipt
3228+
3229+
Retrieves the signed document or signing transaction receipt depending on the id provided.
3230+
3231+
:param workflow_run_id: The unique identifier of the Workflow Run for which you want to retrieve the signed document. (required)
3232+
:type workflow_run_id: str
3233+
:param id: The unique identifier of the file which you want to retrieve. (required)
3234+
:type id: str
3235+
:param _request_timeout: timeout setting for this request. If one
3236+
number provided, it will be total request
3237+
timeout. It can also be a pair (tuple) of
3238+
(connection, read) timeouts.
3239+
:type _request_timeout: int, tuple(int, int), optional
3240+
:param _request_auth: set to override the auth_settings for an a single
3241+
request; this effectively ignores the
3242+
authentication in the spec for a single request.
3243+
:type _request_auth: dict, optional
3244+
:param _content_type: force content-type for the request.
3245+
:type _content_type: str, Optional
3246+
:param _headers: set to override the headers for a single
3247+
request; this effectively ignores the headers
3248+
in the spec for a single request.
3249+
:type _headers: dict, optional
3250+
:param _host_index: set to override the host_index for a single
3251+
request; this effectively ignores the host_index
3252+
in the spec for a single request.
3253+
:type _host_index: int, optional
3254+
:return: Returns the result object.
3255+
""" # noqa: E501
3256+
3257+
_param = self._download_aes_document_serialize(
3258+
workflow_run_id=workflow_run_id,
3259+
id=id,
3260+
_request_auth=_request_auth,
3261+
_content_type=_content_type,
3262+
_headers=_headers,
3263+
_host_index=_host_index
3264+
)
3265+
3266+
_response_types_map: Dict[str, Optional[str]] = {
3267+
'302': None,
3268+
'200': "bytearray",
3269+
}
3270+
response_data = self.api_client.call_api(
3271+
*_param,
3272+
_request_timeout=_request_timeout
3273+
)
3274+
return response_data.response
3275+
3276+
3277+
def _download_aes_document_serialize(
3278+
self,
3279+
workflow_run_id,
3280+
id,
3281+
_request_auth,
3282+
_content_type,
3283+
_headers,
3284+
_host_index,
3285+
) -> RequestSerialized:
3286+
3287+
_host = None
3288+
3289+
_collection_formats: Dict[str, str] = {
3290+
}
3291+
3292+
_path_params: Dict[str, str] = {}
3293+
_query_params: List[Tuple[str, str]] = []
3294+
_header_params: Dict[str, Optional[str]] = _headers or {}
3295+
_form_params: List[Tuple[str, str]] = []
3296+
_files: Dict[
3297+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
3298+
] = {}
3299+
_body_params: Optional[bytes] = None
3300+
3301+
# process the path parameters
3302+
# process the query parameters
3303+
if workflow_run_id is not None:
3304+
3305+
_query_params.append(('workflow_run_id', workflow_run_id))
3306+
3307+
if id is not None:
3308+
3309+
_query_params.append(('id', id))
3310+
3311+
# process the header parameters
3312+
# process the form parameters
3313+
# process the body parameter
3314+
3315+
3316+
# set the HTTP header `Accept`
3317+
if 'Accept' not in _header_params:
3318+
_header_params['Accept'] = self.api_client.select_header_accept(
3319+
[
3320+
'application/pdf',
3321+
'application/json'
3322+
]
3323+
)
3324+
3325+
3326+
# authentication setting
3327+
_auth_settings: List[str] = [
3328+
'Token'
3329+
]
3330+
3331+
return self.api_client.param_serialize(
3332+
method='GET',
3333+
resource_path='/advanced_electronic_signature/documents',
3334+
path_params=_path_params,
3335+
query_params=_query_params,
3336+
header_params=_header_params,
3337+
body=_body_params,
3338+
post_params=_form_params,
3339+
files=_files,
3340+
auth_settings=_auth_settings,
3341+
collection_formats=_collection_formats,
3342+
_host=_host,
3343+
_request_auth=_request_auth
3344+
)
3345+
3346+
3347+
3348+
30653349
@validate_call
30663350
def download_check(
30673351
self,

onfido/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def __init__(
9090
self.default_headers[header_name] = header_value
9191
self.cookie = cookie
9292
# Set default User-Agent.
93-
self.user_agent = 'onfido-python/5.3.0'
93+
self.user_agent = 'onfido-python/5.4.0'
9494
self.client_side_validation = configuration.client_side_validation
9595

9696
def __enter__(self):

onfido/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ def to_debug_report(self) -> str:
501501
"OS: {env}\n"\
502502
"Python Version: {pyversion}\n"\
503503
"Version of the API: v3.6\n"\
504-
"SDK Package Version: 5.3.0".\
504+
"SDK Package Version: 5.4.0".\
505505
format(env=sys.platform, pyversion=sys.version)
506506

507507
def get_host_settings(self) -> List[HostSetting]:

poetry.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "onfido-python"
3-
version = "5.3.0"
3+
version = "5.4.0"
44
description = "Python library for the Onfido API"
55
authors = ["OpenAPI Generator Community <[email protected]>"]
66
license = "MIT"

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
# prerequisite: setuptools
2222
# http://pypi.python.org/pypi/setuptools
2323
NAME = "onfido-python"
24-
VERSION = "5.3.0"
24+
VERSION = "5.4.0"
2525
PYTHON_REQUIRES = ">= 3.8"
2626
REQUIRES = [
2727
"urllib3 >= 1.25.3, < 3.0.0",

0 commit comments

Comments
 (0)