From 0216df014226c7ce1113239f396d8fea59831bfb Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Tue, 20 Feb 2024 13:36:00 +0000 Subject: [PATCH] update --- .openapi-generator/FILES | 1 + .../documentreader/webclient/gen/__init__.py | 1 + .../webclient/gen/api/transaction_api.py | 32 +- .../webclient/gen/models/__init__.py | 1 + .../gen/models/transaction_process_request.py | 310 ++++++++++++++++++ 5 files changed, 329 insertions(+), 16 deletions(-) create mode 100644 regula/documentreader/webclient/gen/models/transaction_process_request.py diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index ffc4235..9997179 100755 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -143,6 +143,7 @@ regula/documentreader/webclient/gen/models/text_result_all_of.py regula/documentreader/webclient/gen/models/transaction_image.py regula/documentreader/webclient/gen/models/transaction_info.py regula/documentreader/webclient/gen/models/transaction_process_get_response.py +regula/documentreader/webclient/gen/models/transaction_process_request.py regula/documentreader/webclient/gen/models/verification_result.py regula/documentreader/webclient/gen/models/verified_field_map.py regula/documentreader/webclient/gen/models/visibility.py diff --git a/regula/documentreader/webclient/gen/__init__.py b/regula/documentreader/webclient/gen/__init__.py index 0dedbf2..067ccb3 100755 --- a/regula/documentreader/webclient/gen/__init__.py +++ b/regula/documentreader/webclient/gen/__init__.py @@ -161,6 +161,7 @@ from regula.documentreader.webclient.gen.models.transaction_image import TransactionImage from regula.documentreader.webclient.gen.models.transaction_info import TransactionInfo from regula.documentreader.webclient.gen.models.transaction_process_get_response import TransactionProcessGetResponse +from regula.documentreader.webclient.gen.models.transaction_process_request import TransactionProcessRequest from regula.documentreader.webclient.gen.models.verification_result import VerificationResult from regula.documentreader.webclient.gen.models.verified_field_map import VerifiedFieldMap from regula.documentreader.webclient.gen.models.visibility import Visibility diff --git a/regula/documentreader/webclient/gen/api/transaction_api.py b/regula/documentreader/webclient/gen/api/transaction_api.py index 84266fb..bf0fba7 100644 --- a/regula/documentreader/webclient/gen/api/transaction_api.py +++ b/regula/documentreader/webclient/gen/api/transaction_api.py @@ -300,21 +300,21 @@ def api_v2_transaction_transaction_id_get_with_http_info(self, transaction_id, * collection_formats=collection_formats, _request_auth=local_var_params.get('_request_auth')) - def api_v2_transaction_transaction_id_process_post(self, transaction_id, x_client_key, body, **kwargs): # noqa: E501 + def api_v2_transaction_transaction_id_process_post(self, transaction_id, x_client_key, transaction_process_request, **kwargs): # noqa: E501 """Preprocess # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_v2_transaction_transaction_id_process_post(transaction_id, x_client_key, body, async_req=True) + >>> thread = api.api_v2_transaction_transaction_id_process_post(transaction_id, x_client_key, transaction_process_request, async_req=True) >>> result = thread.get() :param transaction_id: Transaction id (required) :type transaction_id: int :param x_client_key: (required) :type x_client_key: str - :param body: (required) - :type body: TransactionTransactionIdProcess + :param transaction_process_request: (required) + :type transaction_process_request: TransactionProcessRequest :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -331,23 +331,23 @@ def api_v2_transaction_transaction_id_process_post(self, transaction_id, x_clien :rtype: InlineResponse200 """ kwargs['_return_http_data_only'] = True - return self.api_v2_transaction_transaction_id_process_post_with_http_info(transaction_id, x_client_key, body, **kwargs) # noqa: E501 + return self.api_v2_transaction_transaction_id_process_post_with_http_info(transaction_id, x_client_key, transaction_process_request, **kwargs) # noqa: E501 - def api_v2_transaction_transaction_id_process_post_with_http_info(self, transaction_id, x_client_key, body, **kwargs): # noqa: E501 + def api_v2_transaction_transaction_id_process_post_with_http_info(self, transaction_id, x_client_key, transaction_process_request, **kwargs): # noqa: E501 """Preprocess # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_v2_transaction_transaction_id_process_post_with_http_info(transaction_id, x_client_key, body, async_req=True) + >>> thread = api.api_v2_transaction_transaction_id_process_post_with_http_info(transaction_id, x_client_key, transaction_process_request, async_req=True) >>> result = thread.get() :param transaction_id: Transaction id (required) :type transaction_id: int :param x_client_key: (required) :type x_client_key: str - :param body: (required) - :type body: TransactionTransactionIdProcess + :param transaction_process_request: (required) + :type transaction_process_request: TransactionProcessRequest :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _return_http_data_only: response data without head status code @@ -376,7 +376,7 @@ def api_v2_transaction_transaction_id_process_post_with_http_info(self, transact all_params = [ 'transaction_id', 'x_client_key', - 'body' + 'transaction_process_request' ] all_params.extend( [ @@ -404,10 +404,10 @@ def api_v2_transaction_transaction_id_process_post_with_http_info(self, transact if self.api_client.client_side_validation and ('x_client_key' not in local_var_params or # noqa: E501 local_var_params['x_client_key'] is None): # noqa: E501 raise ApiValueError("Missing the required parameter `x_client_key` when calling `api_v2_transaction_transaction_id_process_post`") # noqa: E501 - # verify the required parameter 'body' is set - if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 - local_var_params['body'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `body` when calling `api_v2_transaction_transaction_id_process_post`") # noqa: E501 + # verify the required parameter 'transaction_process_request' is set + if self.api_client.client_side_validation and ('transaction_process_request' not in local_var_params or # noqa: E501 + local_var_params['transaction_process_request'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `transaction_process_request` when calling `api_v2_transaction_transaction_id_process_post`") # noqa: E501 collection_formats = {} @@ -425,8 +425,8 @@ def api_v2_transaction_transaction_id_process_post_with_http_info(self, transact local_var_files = {} body_params = None - if 'body' in local_var_params: - body_params = local_var_params['body'] + if 'transaction_process_request' in local_var_params: + body_params = local_var_params['transaction_process_request'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 diff --git a/regula/documentreader/webclient/gen/models/__init__.py b/regula/documentreader/webclient/gen/models/__init__.py index 7989a99..05aee1e 100755 --- a/regula/documentreader/webclient/gen/models/__init__.py +++ b/regula/documentreader/webclient/gen/models/__init__.py @@ -144,6 +144,7 @@ from regula.documentreader.webclient.gen.models.transaction_image import TransactionImage from regula.documentreader.webclient.gen.models.transaction_info import TransactionInfo from regula.documentreader.webclient.gen.models.transaction_process_get_response import TransactionProcessGetResponse +from regula.documentreader.webclient.gen.models.transaction_process_request import TransactionProcessRequest from regula.documentreader.webclient.gen.models.verification_result import VerificationResult from regula.documentreader.webclient.gen.models.verified_field_map import VerifiedFieldMap from regula.documentreader.webclient.gen.models.visibility import Visibility diff --git a/regula/documentreader/webclient/gen/models/transaction_process_request.py b/regula/documentreader/webclient/gen/models/transaction_process_request.py new file mode 100644 index 0000000..b970f6a --- /dev/null +++ b/regula/documentreader/webclient/gen/models/transaction_process_request.py @@ -0,0 +1,310 @@ +# coding: utf-8 + +""" + Generated by: https://openapi-generator.tech +""" + +import pprint +import re # noqa: F401 + +import six + +from regula.documentreader.webclient.gen.configuration import Configuration +# this line was added to enable pycharm type hinting +from regula.documentreader.webclient.gen.models import * + + +""" + +""" +class TransactionProcessRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'tag': 'str', + 'process_param': 'ProcessParams', + 'list': 'list[ProcessRequestImage]', + 'live_portrait': 'str', + 'ext_portrait': 'str', + 'container_list': 'ContainerList', + 'system_info': 'ProcessSystemInfo', + 'pass_back_object': 'dict(str, object)' + } + + attribute_map = { + 'tag': 'tag', + 'process_param': 'processParam', + 'list': 'List', + 'live_portrait': 'livePortrait', + 'ext_portrait': 'extPortrait', + 'container_list': 'ContainerList', + 'system_info': 'systemInfo', + 'pass_back_object': 'passBackObject' + } + + def __init__(self, tag=None, process_param=None, list=None, live_portrait=None, ext_portrait=None, container_list=None, system_info=None, pass_back_object=None, local_vars_configuration=None): # noqa: E501 + """TransactionProcessRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._tag = None + self._process_param = None + self._list = None + self._live_portrait = None + self._ext_portrait = None + self._container_list = None + self._system_info = None + self._pass_back_object = None + self.discriminator = None + + if tag is not None: + self.tag = tag + self.process_param = process_param + if list is not None: + self.list = list + if live_portrait is not None: + self.live_portrait = live_portrait + if ext_portrait is not None: + self.ext_portrait = ext_portrait + if container_list is not None: + self.container_list = container_list + if system_info is not None: + self.system_info = system_info + if pass_back_object is not None: + self.pass_back_object = pass_back_object + + @property + def tag(self): + """Gets the tag of this TransactionProcessRequest. # noqa: E501 + + session id # noqa: E501 + + :return: The tag of this TransactionProcessRequest. # noqa: E501 + :rtype: str + """ + return self._tag + + @tag.setter + def tag(self, tag): + """Sets the tag of this TransactionProcessRequest. + + session id # noqa: E501 + + :param tag: The tag of this TransactionProcessRequest. # noqa: E501 + :type tag: str + """ + + self._tag = tag + + @property + def process_param(self): + """Gets the process_param of this TransactionProcessRequest. # noqa: E501 + + + :return: The process_param of this TransactionProcessRequest. # noqa: E501 + :rtype: ProcessParams + """ + return self._process_param + + @process_param.setter + def process_param(self, process_param): + """Sets the process_param of this TransactionProcessRequest. + + + :param process_param: The process_param of this TransactionProcessRequest. # noqa: E501 + :type process_param: ProcessParams + """ + if self.local_vars_configuration.client_side_validation and process_param is None: # noqa: E501 + raise ValueError("Invalid value for `process_param`, must not be `None`") # noqa: E501 + + self._process_param = process_param + + @property + def list(self): + """Gets the list of this TransactionProcessRequest. # noqa: E501 + + + :return: The list of this TransactionProcessRequest. # noqa: E501 + :rtype: list[ProcessRequestImage] + """ + return self._list + + @list.setter + def list(self, list): + """Sets the list of this TransactionProcessRequest. + + + :param list: The list of this TransactionProcessRequest. # noqa: E501 + :type list: list[ProcessRequestImage] + """ + + self._list = list + + @property + def live_portrait(self): + """Gets the live_portrait of this TransactionProcessRequest. # noqa: E501 + + Live portrait photo # noqa: E501 + + :return: The live_portrait of this TransactionProcessRequest. # noqa: E501 + :rtype: str + """ + return self._live_portrait + + @live_portrait.setter + def live_portrait(self, live_portrait): + """Sets the live_portrait of this TransactionProcessRequest. + + Live portrait photo # noqa: E501 + + :param live_portrait: The live_portrait of this TransactionProcessRequest. # noqa: E501 + :type live_portrait: str + """ + + self._live_portrait = live_portrait + + @property + def ext_portrait(self): + """Gets the ext_portrait of this TransactionProcessRequest. # noqa: E501 + + Portrait photo from an external source # noqa: E501 + + :return: The ext_portrait of this TransactionProcessRequest. # noqa: E501 + :rtype: str + """ + return self._ext_portrait + + @ext_portrait.setter + def ext_portrait(self, ext_portrait): + """Sets the ext_portrait of this TransactionProcessRequest. + + Portrait photo from an external source # noqa: E501 + + :param ext_portrait: The ext_portrait of this TransactionProcessRequest. # noqa: E501 + :type ext_portrait: str + """ + + self._ext_portrait = ext_portrait + + @property + def container_list(self): + """Gets the container_list of this TransactionProcessRequest. # noqa: E501 + + + :return: The container_list of this TransactionProcessRequest. # noqa: E501 + :rtype: ContainerList + """ + return self._container_list + + @container_list.setter + def container_list(self, container_list): + """Sets the container_list of this TransactionProcessRequest. + + + :param container_list: The container_list of this TransactionProcessRequest. # noqa: E501 + :type container_list: ContainerList + """ + + self._container_list = container_list + + @property + def system_info(self): + """Gets the system_info of this TransactionProcessRequest. # noqa: E501 + + + :return: The system_info of this TransactionProcessRequest. # noqa: E501 + :rtype: ProcessSystemInfo + """ + return self._system_info + + @system_info.setter + def system_info(self, system_info): + """Sets the system_info of this TransactionProcessRequest. + + + :param system_info: The system_info of this TransactionProcessRequest. # noqa: E501 + :type system_info: ProcessSystemInfo + """ + + self._system_info = system_info + + @property + def pass_back_object(self): + """Gets the pass_back_object of this TransactionProcessRequest. # noqa: E501 + + Free-form object to be included in response. Must be object, not list or simple value. Do not affect document processing. Use it freely to pass your app params. Stored in process logs. # noqa: E501 + + :return: The pass_back_object of this TransactionProcessRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._pass_back_object + + @pass_back_object.setter + def pass_back_object(self, pass_back_object): + """Sets the pass_back_object of this TransactionProcessRequest. + + Free-form object to be included in response. Must be object, not list or simple value. Do not affect document processing. Use it freely to pass your app params. Stored in process logs. # noqa: E501 + + :param pass_back_object: The pass_back_object of this TransactionProcessRequest. # noqa: E501 + :type pass_back_object: dict(str, object) + """ + + self._pass_back_object = pass_back_object + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, TransactionProcessRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, TransactionProcessRequest): + return True + + return self.to_dict() != other.to_dict()