diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 00d9f6b..956f00a 100755 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -146,6 +146,7 @@ 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/transaction_scenario_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 54b812d..bd21206 100755 --- a/regula/documentreader/webclient/gen/__init__.py +++ b/regula/documentreader/webclient/gen/__init__.py @@ -164,6 +164,7 @@ 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.transaction_scenario_request import TransactionScenarioRequest 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 9eeb869..d2f4dca 100644 --- a/regula/documentreader/webclient/gen/api/transaction_api.py +++ b/regula/documentreader/webclient/gen/api/transaction_api.py @@ -149,7 +149,7 @@ def api_v2_tag_tag_id_delete_with_http_info(self, tag_id, **kwargs): # noqa: E5 } return self.api_client.call_api( - '/api/v2/tag/{tag_id}', 'DELETE', + '/api/v2/tag/{tagId}', 'DELETE', path_params, query_params, header_params, @@ -294,7 +294,7 @@ def api_v2_transaction_transaction_id_file_get_with_http_info(self, transaction_ } return self.api_client.call_api( - '/api/v2/transaction/{transaction_id}/file', 'GET', + '/api/v2/transaction/{transactionId}/file', 'GET', path_params, query_params, header_params, @@ -429,7 +429,7 @@ def api_v2_transaction_transaction_id_get_with_http_info(self, transaction_id, * } return self.api_client.call_api( - '/api/v2/transaction/{transaction_id}', 'GET', + '/api/v2/transaction/{transactionId}', 'GET', path_params, query_params, header_params, @@ -579,7 +579,7 @@ def api_v2_transaction_transaction_id_process_post_with_http_info(self, transact } return self.api_client.call_api( - '/api/v2/transaction/{transaction_id}/process', 'POST', + '/api/v2/transaction/{transactionId}/process', 'POST', path_params, query_params, header_params, @@ -721,7 +721,7 @@ def api_v2_transaction_transaction_id_results_get_with_http_info(self, transacti } return self.api_client.call_api( - '/api/v2/transaction/{transaction_id}/results', 'GET', + '/api/v2/transaction/{transactionId}/results', 'GET', path_params, query_params, header_params, diff --git a/regula/documentreader/webclient/gen/configuration.py b/regula/documentreader/webclient/gen/configuration.py index 70dfc0d..4574401 100755 --- a/regula/documentreader/webclient/gen/configuration.py +++ b/regula/documentreader/webclient/gen/configuration.py @@ -374,7 +374,7 @@ def to_debug_report(self): return "Python SDK Debug Report:\n"\ "OS: {env}\n"\ "Python Version: {pyversion}\n"\ - "Version of the API: 7.1.2\n"\ + "Version of the API: 7.2.0\n"\ "SDK Package Version: 1.0.0".\ format(env=sys.platform, pyversion=sys.version) diff --git a/regula/documentreader/webclient/gen/models/__init__.py b/regula/documentreader/webclient/gen/models/__init__.py index b6c350e..2fbab5b 100755 --- a/regula/documentreader/webclient/gen/models/__init__.py +++ b/regula/documentreader/webclient/gen/models/__init__.py @@ -147,6 +147,7 @@ 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.transaction_scenario_request import TransactionScenarioRequest 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 index b970f6a..03ae7d0 100644 --- a/regula/documentreader/webclient/gen/models/transaction_process_request.py +++ b/regula/documentreader/webclient/gen/models/transaction_process_request.py @@ -32,81 +32,23 @@ class TransactionProcessRequest(object): 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)' + 'process_param': 'TransactionScenarioRequest' } 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' + 'process_param': 'processParam' } - 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 + def __init__(self, process_param=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): @@ -114,7 +56,7 @@ def process_param(self): :return: The process_param of this TransactionProcessRequest. # noqa: E501 - :rtype: ProcessParams + :rtype: TransactionScenarioRequest """ return self._process_param @@ -124,145 +66,13 @@ def process_param(self, process_param): :param process_param: The process_param of this TransactionProcessRequest. # noqa: E501 - :type process_param: ProcessParams + :type process_param: TransactionScenarioRequest """ 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 = {} diff --git a/regula/documentreader/webclient/gen/models/transaction_scenario_request.py b/regula/documentreader/webclient/gen/models/transaction_scenario_request.py new file mode 100644 index 0000000..4dc3565 --- /dev/null +++ b/regula/documentreader/webclient/gen/models/transaction_scenario_request.py @@ -0,0 +1,119 @@ +# 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 TransactionScenarioRequest(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 = { + 'scenario': 'Scenario' + } + + attribute_map = { + 'scenario': 'scenario' + } + + def __init__(self, scenario=None, local_vars_configuration=None): # noqa: E501 + """TransactionScenarioRequest - 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._scenario = None + self.discriminator = None + + if scenario is not None: + self.scenario = scenario + + @property + def scenario(self): + """Gets the scenario of this TransactionScenarioRequest. # noqa: E501 + + + :return: The scenario of this TransactionScenarioRequest. # noqa: E501 + :rtype: Scenario + """ + return self._scenario + + @scenario.setter + def scenario(self, scenario): + """Sets the scenario of this TransactionScenarioRequest. + + + :param scenario: The scenario of this TransactionScenarioRequest. # noqa: E501 + :type scenario: Scenario + """ + + self._scenario = scenario + + 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, TransactionScenarioRequest): + 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, TransactionScenarioRequest): + return True + + return self.to_dict() != other.to_dict()