diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 4ae3caa..dd983cd 100755 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -10,7 +10,6 @@ regula/documentreader/webclient/gen/exceptions.py regula/documentreader/webclient/gen/models/__init__.py regula/documentreader/webclient/gen/models/area_container.py regula/documentreader/webclient/gen/models/authenticity_check_list.py -regula/documentreader/webclient/gen/models/authenticity_check_result.py regula/documentreader/webclient/gen/models/authenticity_check_result_item.py regula/documentreader/webclient/gen/models/authenticity_result.py regula/documentreader/webclient/gen/models/authenticity_result_all_of.py diff --git a/regula/documentreader/webclient/gen/configuration.py b/regula/documentreader/webclient/gen/configuration.py index f0117c7..d172c22 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: 5.4.0\n"\ + "Version of the API: 5.5.0\n"\ "SDK Package Version: 1.0.0".\ format(env=sys.platform, pyversion=sys.version) diff --git a/regula/documentreader/webclient/gen/models/authenticity_check_result_item.py b/regula/documentreader/webclient/gen/models/authenticity_check_result_item.py index 4e64501..91e944f 100644 --- a/regula/documentreader/webclient/gen/models/authenticity_check_result_item.py +++ b/regula/documentreader/webclient/gen/models/authenticity_check_result_item.py @@ -63,7 +63,7 @@ class AuthenticityCheckResultItem(object): 8192 : 'SecurityFeatureResult', } - def __init__(self, type=None, element_result=None, element_diagnose=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, type=0, element_result=None, element_diagnose=None, local_vars_configuration=None): # noqa: E501 """AuthenticityCheckResultItem - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() diff --git a/regula/documentreader/webclient/gen/models/fiber_result.py b/regula/documentreader/webclient/gen/models/fiber_result.py index 4080f5d..2d24443 100644 --- a/regula/documentreader/webclient/gen/models/fiber_result.py +++ b/regula/documentreader/webclient/gen/models/fiber_result.py @@ -58,7 +58,7 @@ class FiberResult(object): 'color_values': 'ColorValues' } - def __init__(self, type=None, element_result=None, element_diagnose=None, rect_count=None, expected_count=None, light_value=None, light_disp=None, rect_array=None, width=None, length=None, area=None, color_values=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, type=0, element_result=None, element_diagnose=None, rect_count=None, expected_count=None, light_value=None, light_disp=None, rect_array=None, width=None, length=None, area=None, color_values=None, local_vars_configuration=None): # noqa: E501 """FiberResult - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() diff --git a/regula/documentreader/webclient/gen/models/ident_result.py b/regula/documentreader/webclient/gen/models/ident_result.py index edaf9be..1e91fe3 100644 --- a/regula/documentreader/webclient/gen/models/ident_result.py +++ b/regula/documentreader/webclient/gen/models/ident_result.py @@ -54,7 +54,7 @@ class IdentResult(object): 'area_list': 'AreaList' } - def __init__(self, type=None, element_result=None, element_diagnose=None, element_type=None, light_index=None, area=None, image=None, etalon_image=None, percent_value=None, area_list=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, type=0, element_result=None, element_diagnose=None, element_type=None, light_index=None, area=None, image=None, etalon_image=None, percent_value=None, area_list=None, local_vars_configuration=None): # noqa: E501 """IdentResult - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() diff --git a/regula/documentreader/webclient/gen/models/ocr_security_text_result.py b/regula/documentreader/webclient/gen/models/ocr_security_text_result.py index 3a8b50e..c90f6f3 100644 --- a/regula/documentreader/webclient/gen/models/ocr_security_text_result.py +++ b/regula/documentreader/webclient/gen/models/ocr_security_text_result.py @@ -60,7 +60,7 @@ class OCRSecurityTextResult(object): 'reserved2': 'Reserved2' } - def __init__(self, type=None, element_result=None, element_diagnose=None, critical_flag=None, light_type=None, field_rect=None, etalon_result_type=None, etalon_field_type=None, etalon_light_type=None, security_text_result_ocr=None, etalon_result_ocr=None, reserved1=None, reserved2=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, type=0, element_result=None, element_diagnose=None, critical_flag=None, light_type=None, field_rect=None, etalon_result_type=None, etalon_field_type=None, etalon_light_type=None, security_text_result_ocr=None, etalon_result_ocr=None, reserved1=None, reserved2=None, local_vars_configuration=None): # noqa: E501 """OCRSecurityTextResult - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() diff --git a/regula/documentreader/webclient/gen/models/photo_ident_result.py b/regula/documentreader/webclient/gen/models/photo_ident_result.py index 87cde77..59c4a01 100644 --- a/regula/documentreader/webclient/gen/models/photo_ident_result.py +++ b/regula/documentreader/webclient/gen/models/photo_ident_result.py @@ -58,7 +58,7 @@ class PhotoIdentResult(object): 'reserved3': 'Reserved3' } - def __init__(self, type=None, element_result=None, element_diagnose=None, light_index=None, area=None, source_image=None, result_images=None, field_types_count=None, field_types_list=None, step=None, angle=None, reserved3=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, type=0, element_result=None, element_diagnose=None, light_index=None, area=None, source_image=None, result_images=None, field_types_count=None, field_types_list=None, step=None, angle=None, reserved3=None, local_vars_configuration=None): # noqa: E501 """PhotoIdentResult - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() diff --git a/regula/documentreader/webclient/gen/models/process_request.py b/regula/documentreader/webclient/gen/models/process_request.py index ac720a0..1325390 100755 --- a/regula/documentreader/webclient/gen/models/process_request.py +++ b/regula/documentreader/webclient/gen/models/process_request.py @@ -31,16 +31,18 @@ class ProcessRequest(object): openapi_types = { 'process_param': 'ProcessParams', 'list': 'list[ProcessRequestImage]', - 'system_info': 'ProcessSystemInfo' + 'system_info': 'ProcessSystemInfo', + 'pass_back_object': 'dict(str, object)' } attribute_map = { 'process_param': 'processParam', 'list': 'List', - 'system_info': 'systemInfo' + 'system_info': 'systemInfo', + 'pass_back_object': 'passBackObject' } - def __init__(self, process_param=None, list=None, system_info=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, process_param=None, list=None, system_info=None, pass_back_object=None, local_vars_configuration=None): # noqa: E501 """ProcessRequest - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() @@ -49,12 +51,15 @@ def __init__(self, process_param=None, list=None, system_info=None, local_vars_c self._process_param = None self._list = None self._system_info = None + self._pass_back_object = None self.discriminator = None self.process_param = process_param self.list = 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 process_param(self): @@ -123,6 +128,29 @@ def system_info(self, system_info): self._system_info = system_info + @property + def pass_back_object(self): + """Gets the pass_back_object of this ProcessRequest. # 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 ProcessRequest. # 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 ProcessRequest. + + 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 ProcessRequest. # 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/process_response.py b/regula/documentreader/webclient/gen/models/process_response.py index 258edb8..4b14b0b 100755 --- a/regula/documentreader/webclient/gen/models/process_response.py +++ b/regula/documentreader/webclient/gen/models/process_response.py @@ -33,7 +33,8 @@ class ProcessResponse(object): 'processing_finished': 'ProcessingStatus', 'container_list': 'ContainerList', 'transaction_info': 'TransactionInfo', - 'log': 'str' + 'log': 'str', + 'pass_back_object': 'dict(str, object)' } attribute_map = { @@ -41,10 +42,11 @@ class ProcessResponse(object): 'processing_finished': 'ProcessingFinished', 'container_list': 'ContainerList', 'transaction_info': 'TransactionInfo', - 'log': 'log' + 'log': 'log', + 'pass_back_object': 'passBackObject' } - def __init__(self, chip_page=None, processing_finished=None, container_list=None, transaction_info=None, log=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, chip_page=None, processing_finished=None, container_list=None, transaction_info=None, log=None, pass_back_object=None, local_vars_configuration=None): # noqa: E501 """ProcessResponse - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() @@ -55,6 +57,7 @@ def __init__(self, chip_page=None, processing_finished=None, container_list=None self._container_list = None self._transaction_info = None self._log = None + self._pass_back_object = None self.discriminator = None self.chip_page = chip_page @@ -63,6 +66,8 @@ def __init__(self, chip_page=None, processing_finished=None, container_list=None self.transaction_info = transaction_info if log is not None: self.log = log + if pass_back_object is not None: + self.pass_back_object = pass_back_object @property def chip_page(self): @@ -179,6 +184,29 @@ def log(self, log): self._log = log + @property + def pass_back_object(self): + """Gets the pass_back_object of this ProcessResponse. # noqa: E501 + + Free-form object provided in request. See passBackObject property of ProcessRequest. # noqa: E501 + + :return: The pass_back_object of this ProcessResponse. # 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 ProcessResponse. + + Free-form object provided in request. See passBackObject property of ProcessRequest. # noqa: E501 + + :param pass_back_object: The pass_back_object of this ProcessResponse. # 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/security_feature_result.py b/regula/documentreader/webclient/gen/models/security_feature_result.py index d42cc7b..c9144ee 100644 --- a/regula/documentreader/webclient/gen/models/security_feature_result.py +++ b/regula/documentreader/webclient/gen/models/security_feature_result.py @@ -52,7 +52,7 @@ class SecurityFeatureResult(object): 'reserved2': 'Reserved2' } - def __init__(self, type=None, element_result=None, element_diagnose=None, element_type=None, element_rect=None, visibility=None, critical_flag=None, area_list=None, reserved2=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, type=0, element_result=None, element_diagnose=None, element_type=None, element_rect=None, visibility=None, critical_flag=None, area_list=None, reserved2=None, local_vars_configuration=None): # noqa: E501 """SecurityFeatureResult - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration()