Skip to content

Commit

Permalink
Add passBackObject to process request/response
Browse files Browse the repository at this point in the history
  • Loading branch information
hleb-albau committed Jan 31, 2021
1 parent 1870267 commit 6fda560
Show file tree
Hide file tree
Showing 10 changed files with 69 additions and 14 deletions.
1 change: 0 additions & 1 deletion .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion regula/documentreader/webclient/gen/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion regula/documentreader/webclient/gen/models/fiber_result.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion regula/documentreader/webclient/gen/models/ident_result.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
34 changes: 31 additions & 3 deletions regula/documentreader/webclient/gen/models/process_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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):
Expand Down Expand Up @@ -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 = {}
Expand Down
34 changes: 31 additions & 3 deletions regula/documentreader/webclient/gen/models/process_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,20 @@ class ProcessResponse(object):
'processing_finished': 'ProcessingStatus',
'container_list': 'ContainerList',
'transaction_info': 'TransactionInfo',
'log': 'str'
'log': 'str',
'pass_back_object': 'dict(str, object)'
}

attribute_map = {
'chip_page': 'ChipPage',
'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()
Expand All @@ -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
Expand All @@ -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):
Expand Down Expand Up @@ -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 = {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 6fda560

Please sign in to comment.