Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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: 6.3.0\n"\
"Version of the API: 6.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 @@ -32,24 +32,52 @@ class AuthenticityCheckList(object):
and the value is json key in definition.
"""
openapi_types = {
'count': 'int',
'list': 'list[AuthenticityCheckResult]'
}

attribute_map = {
'count': 'Count',
'list': 'List'
}

def __init__(self, list=None, local_vars_configuration=None): # noqa: E501
def __init__(self, count=None, list=None, local_vars_configuration=None): # noqa: E501
"""AuthenticityCheckList - 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._count = None
self._list = None
self.discriminator = None

if count is not None:
self.count = count
self.list = list

@property
def count(self):
"""Gets the count of this AuthenticityCheckList. # noqa: E501

Count of items in List # noqa: E501

:return: The count of this AuthenticityCheckList. # noqa: E501
:rtype: int
"""
return self._count

@count.setter
def count(self, count):
"""Sets the count of this AuthenticityCheckList.

Count of items in List # noqa: E501

:param count: The count of this AuthenticityCheckList. # noqa: E501
:type count: int
"""

self._count = count

@property
def list(self):
"""Gets the list of this AuthenticityCheckList. # noqa: E501
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,9 @@ class CheckDiagnose(object):

LAST_DIAGNOSE_VALUE = int("157")

allowable_values = [UNKNOWN, PASS, INVALID_INPUT_DATA, INTERNAL_ERROR, EXCEPTION_IN_MODULE, UNCERTAIN_VERIFICATION, NECESSARY_IMAGE_NOT_FOUND, PHOTO_SIDES_NOT_FOUND, INVALID_CHECKSUM, SYNTAX_ERROR, LOGIC_ERROR, SOURCES_COMPARISON_ERROR, FIELDS_COMPARISON_LOGIC_ERROR, INVALID_FIELD_FORMAT, TRUE_LUMINESCENCE_ERROR, FALSE_LUMINESCENCE_ERROR, FIXED_PATTERN_ERROR, LOW_CONTRAST_IN_IR_LIGHT, INCORRECT_BACKGROUND_LIGHT, BACKGROUND_COMPARISON_ERROR, INCORRECT_TEXT_COLOR, PHOTO_FALSE_LUMINESCENCE, TOO_MUCH_SHIFT, FIBERS_NOT_FOUND, TOO_MANY_OBJECTS, SPECKS_IN_UV, TOO_LOW_RESOLUTION, INVISIBLE_ELEMENT_PRESENT, VISIBLE_ELEMENT_ABSENT, ELEMENT_SHOULD_BE_COLORED, ELEMENT_SHOULD_BE_GRAYSCALE, PHOTO_WHITE_IR_DONT_MATCH, UV_DULL_PAPER_MRZ, FALSE_LUMINESCENCE_IN_MRZ, UV_DULL_PAPER_PHOTO, UV_DULL_PAPER_BLANK, UV_DULL_PAPER_ERROR, FALSE_LUMINESCENCE_IN_BLANK, BAD_AREA_IN_AXIAL, FALSE_IP_PARAMETERS, FIELD_POS_CORRECTOR_HIGHLIGHT_IR, OVI_IR_INVISIBLE, OVI_INSUFFICIENT_AREA, OVI_COLOR_INVARIABLE, OVI_BAD_COLOR_FRONT, OVI_BAD_COLOR_SIDE, OVI_WIDE_COLOR_SPREAD, OVI_BAD_COLOR_PERCENT, HOLOGRAM_ELEMENT_ABSENT, HOLOGRAM_SIDE_TOP_IMAGES_ABSENT, HOLOGRAM_ELEMENT_PRESENT, PHOTO_PATTERN_INTERRUPTED, PHOTO_PATTERN_SHIFTED, PHOTO_PATTERN_DIFFERENT_COLORS, PHOTO_PATTERN_IR_VISIBLE, PHOTO_PATTERN_NOT_INTERSECT, PHOTO_SIZE_IS_WRONG, PHOTO_PATTERN_INVALID_COLOR, PHOTO_PATTERN_SHIFTED_VERT, PHOTO_PATTERN_PATTERN_NOT_FOUND, PHOTO_PATTERN_DIFFERENT_LINES_THICKNESS, PHOTO_IS_NOT_RECTANGLE, PHOTO_CORNERS_IS_WRONG, TEXT_COLOR_SHOULD_BE_BLUE, TEXT_COLOR_SHOULD_BE_GREEN, TEXT_COLOR_SHOULD_BE_RED, TEXT_SHOULD_BE_BLACK, BARCODE_WAS_READ_WITH_ERRORS, BARCODE_DATA_FORMAT_ERROR, BARCODE_SIZE_PARAMS_ERROR, NOT_ALL_BARCODES_READ, PORTRAIT_COMPARISON_PORTRAITS_DIFFER, PORTRAIT_COMPARISON_NO_SERVICE_REPLY, PORTRAIT_COMPARISON_SERVICE_ERROR, PORTRAIT_COMPARISON_NOT_ENOUGH_IMAGES, PORTRAIT_COMPARISON_NO_LIVE_PHOTO, PORTRAIT_COMPARISON_NO_SERVICE_LICENSE, PORTRAIT_COMPARISON_NO_PORTRAIT_DETECTED, LAST_DIAGNOSE_VALUE] # noqa: E501
FIELD_POS_CORRECTOR_PHOTO_REPLACED = int("82")

allowable_values = [UNKNOWN, PASS, INVALID_INPUT_DATA, INTERNAL_ERROR, EXCEPTION_IN_MODULE, UNCERTAIN_VERIFICATION, NECESSARY_IMAGE_NOT_FOUND, PHOTO_SIDES_NOT_FOUND, INVALID_CHECKSUM, SYNTAX_ERROR, LOGIC_ERROR, SOURCES_COMPARISON_ERROR, FIELDS_COMPARISON_LOGIC_ERROR, INVALID_FIELD_FORMAT, TRUE_LUMINESCENCE_ERROR, FALSE_LUMINESCENCE_ERROR, FIXED_PATTERN_ERROR, LOW_CONTRAST_IN_IR_LIGHT, INCORRECT_BACKGROUND_LIGHT, BACKGROUND_COMPARISON_ERROR, INCORRECT_TEXT_COLOR, PHOTO_FALSE_LUMINESCENCE, TOO_MUCH_SHIFT, FIBERS_NOT_FOUND, TOO_MANY_OBJECTS, SPECKS_IN_UV, TOO_LOW_RESOLUTION, INVISIBLE_ELEMENT_PRESENT, VISIBLE_ELEMENT_ABSENT, ELEMENT_SHOULD_BE_COLORED, ELEMENT_SHOULD_BE_GRAYSCALE, PHOTO_WHITE_IR_DONT_MATCH, UV_DULL_PAPER_MRZ, FALSE_LUMINESCENCE_IN_MRZ, UV_DULL_PAPER_PHOTO, UV_DULL_PAPER_BLANK, UV_DULL_PAPER_ERROR, FALSE_LUMINESCENCE_IN_BLANK, BAD_AREA_IN_AXIAL, FALSE_IP_PARAMETERS, FIELD_POS_CORRECTOR_HIGHLIGHT_IR, OVI_IR_INVISIBLE, OVI_INSUFFICIENT_AREA, OVI_COLOR_INVARIABLE, OVI_BAD_COLOR_FRONT, OVI_BAD_COLOR_SIDE, OVI_WIDE_COLOR_SPREAD, OVI_BAD_COLOR_PERCENT, HOLOGRAM_ELEMENT_ABSENT, HOLOGRAM_SIDE_TOP_IMAGES_ABSENT, HOLOGRAM_ELEMENT_PRESENT, PHOTO_PATTERN_INTERRUPTED, PHOTO_PATTERN_SHIFTED, PHOTO_PATTERN_DIFFERENT_COLORS, PHOTO_PATTERN_IR_VISIBLE, PHOTO_PATTERN_NOT_INTERSECT, PHOTO_SIZE_IS_WRONG, PHOTO_PATTERN_INVALID_COLOR, PHOTO_PATTERN_SHIFTED_VERT, PHOTO_PATTERN_PATTERN_NOT_FOUND, PHOTO_PATTERN_DIFFERENT_LINES_THICKNESS, PHOTO_IS_NOT_RECTANGLE, PHOTO_CORNERS_IS_WRONG, TEXT_COLOR_SHOULD_BE_BLUE, TEXT_COLOR_SHOULD_BE_GREEN, TEXT_COLOR_SHOULD_BE_RED, TEXT_SHOULD_BE_BLACK, BARCODE_WAS_READ_WITH_ERRORS, BARCODE_DATA_FORMAT_ERROR, BARCODE_SIZE_PARAMS_ERROR, NOT_ALL_BARCODES_READ, PORTRAIT_COMPARISON_PORTRAITS_DIFFER, PORTRAIT_COMPARISON_NO_SERVICE_REPLY, PORTRAIT_COMPARISON_SERVICE_ERROR, PORTRAIT_COMPARISON_NOT_ENOUGH_IMAGES, PORTRAIT_COMPARISON_NO_LIVE_PHOTO, PORTRAIT_COMPARISON_NO_SERVICE_LICENSE, PORTRAIT_COMPARISON_NO_PORTRAIT_DETECTED, LAST_DIAGNOSE_VALUE, FIELD_POS_CORRECTOR_PHOTO_REPLACED] # noqa: E501

"""
Attributes:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,13 @@ class GraphicFieldType(object):

FINGER_RIGHT_LITTLE = int("309")

allowable_values = [PORTRAIT, FINGERPRINT, EYE, SIGNATURE, BAR_CODE, PROOF_OF_CITIZENSHIP, DOCUMENT_FRONT, DOCUMENT_REAR, COLOR_DYNAMIC, GHOST_PORTRAIT, STAMP, OTHER, FINGER_LEFT_THUMB, FINGER_LEFT_INDEX, FINGER_LEFT_MIDDLE, FINGER_LEFT_RING, FINGER_LEFT_LITTLE, FINGER_RIGHT_THUMB, FINGER_RIGHT_INDEX, FINGER_RIGHT_MIDDLE, FINGER_RIGHT_RING, FINGER_RIGHT_LITTLE] # noqa: E501
FINGER_RIGHT_FOUR_FINGERS = int("313")

FINGER_LEFT_FOUR_FINGERS = int("314")

FINGER_TWO_THUMBS = int("315")

allowable_values = [PORTRAIT, FINGERPRINT, EYE, SIGNATURE, BAR_CODE, PROOF_OF_CITIZENSHIP, DOCUMENT_FRONT, DOCUMENT_REAR, COLOR_DYNAMIC, GHOST_PORTRAIT, STAMP, OTHER, FINGER_LEFT_THUMB, FINGER_LEFT_INDEX, FINGER_LEFT_MIDDLE, FINGER_LEFT_RING, FINGER_LEFT_LITTLE, FINGER_RIGHT_THUMB, FINGER_RIGHT_INDEX, FINGER_RIGHT_MIDDLE, FINGER_RIGHT_RING, FINGER_RIGHT_LITTLE, FINGER_RIGHT_FOUR_FINGERS, FINGER_LEFT_FOUR_FINGERS, FINGER_TWO_THUMBS] # noqa: E501

"""
Attributes:
Expand Down
6 changes: 3 additions & 3 deletions regula/documentreader/webclient/gen/models/ident_result.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class IdentResult(object):
'image': 'ImageData',
'etalon_image': 'ImageData',
'percent_value': 'int',
'area_list': 'list[AreaContainer]'
'area_list': 'AreaContainer'
}

attribute_map = {
Expand Down Expand Up @@ -296,7 +296,7 @@ def area_list(self):


:return: The area_list of this IdentResult. # noqa: E501
:rtype: list[AreaContainer]
:rtype: AreaContainer
"""
return self._area_list

Expand All @@ -306,7 +306,7 @@ def area_list(self, area_list):


:param area_list: The area_list of this IdentResult. # noqa: E501
:type area_list: list[AreaContainer]
:type area_list: AreaContainer
"""

self._area_list = area_list
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class IdentResultAllOf(object):
'image': 'ImageData',
'etalon_image': 'ImageData',
'percent_value': 'int',
'area_list': 'list[AreaContainer]'
'area_list': 'AreaContainer'
}

attribute_map = {
Expand Down Expand Up @@ -215,7 +215,7 @@ def area_list(self):


:return: The area_list of this IdentResultAllOf. # noqa: E501
:rtype: list[AreaContainer]
:rtype: AreaContainer
"""
return self._area_list

Expand All @@ -225,7 +225,7 @@ def area_list(self, area_list):


:param area_list: The area_list of this IdentResultAllOf. # noqa: E501
:type area_list: list[AreaContainer]
:type area_list: AreaContainer
"""

self._area_list = area_list
Expand Down
34 changes: 31 additions & 3 deletions regula/documentreader/webclient/gen/models/process_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ class ProcessParams(object):
'convert_case': 'TextPostProcessing',
'split_names': 'bool',
'disable_perforation_ocr': 'bool',
'document_group_filter': 'list[DocumentType]'
'document_group_filter': 'list[DocumentType]',
'process_auth': 'list[AuthenticityResultType]'
}

attribute_map = {
Expand Down Expand Up @@ -106,10 +107,11 @@ class ProcessParams(object):
'convert_case': 'convertCase',
'split_names': 'splitNames',
'disable_perforation_ocr': 'disablePerforationOCR',
'document_group_filter': 'documentGroupFilter'
'document_group_filter': 'documentGroupFilter',
'process_auth': 'processAuth'
}

def __init__(self, scenario=None, result_type_output=None, double_page_spread=None, generate_double_page_spread_image=None, field_types_filter=None, date_format=None, measure_system=None, image_dpi_out_max=None, already_cropped=None, custom_params=None, config=None, log=None, log_level=None, force_doc_id=None, match_text_field_mask=None, fast_doc_detect=None, update_ocr_validity_by_glare=None, check_required_text_fields=None, return_cropped_barcode=None, image_qa=None, respect_image_quality=None, force_doc_format=None, no_graphics=None, document_area_min=None, depersonalize_log=None, multi_doc_on_image=None, shift_expiry_date=None, minimal_holder_age=None, return_uncropped_image=None, mrz_formats_filter=None, force_read_mrz_before_locate=None, parse_barcodes=None, convert_case=None, split_names=None, disable_perforation_ocr=None, document_group_filter=None, local_vars_configuration=None): # noqa: E501
def __init__(self, scenario=None, result_type_output=None, double_page_spread=None, generate_double_page_spread_image=None, field_types_filter=None, date_format=None, measure_system=None, image_dpi_out_max=None, already_cropped=None, custom_params=None, config=None, log=None, log_level=None, force_doc_id=None, match_text_field_mask=None, fast_doc_detect=None, update_ocr_validity_by_glare=None, check_required_text_fields=None, return_cropped_barcode=None, image_qa=None, respect_image_quality=None, force_doc_format=None, no_graphics=None, document_area_min=None, depersonalize_log=None, multi_doc_on_image=None, shift_expiry_date=None, minimal_holder_age=None, return_uncropped_image=None, mrz_formats_filter=None, force_read_mrz_before_locate=None, parse_barcodes=None, convert_case=None, split_names=None, disable_perforation_ocr=None, document_group_filter=None, process_auth=None, local_vars_configuration=None): # noqa: E501
"""ProcessParams - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration()
Expand Down Expand Up @@ -151,6 +153,7 @@ def __init__(self, scenario=None, result_type_output=None, double_page_spread=No
self._split_names = None
self._disable_perforation_ocr = None
self._document_group_filter = None
self._process_auth = None
self.discriminator = None

self.scenario = scenario
Expand Down Expand Up @@ -224,6 +227,8 @@ def __init__(self, scenario=None, result_type_output=None, double_page_spread=No
self.disable_perforation_ocr = disable_perforation_ocr
if document_group_filter is not None:
self.document_group_filter = document_group_filter
if process_auth is not None:
self.process_auth = process_auth

@property
def scenario(self):
Expand Down Expand Up @@ -1043,6 +1048,29 @@ def document_group_filter(self, document_group_filter):

self._document_group_filter = document_group_filter

@property
def process_auth(self):
"""Gets the process_auth of this ProcessParams. # noqa: E501

Authenticity checks that should be performed regardless of the document type. The available checks are listed in the eRPRM_Authenticity enum. Note that only supported by your license checks can be added. # noqa: E501

:return: The process_auth of this ProcessParams. # noqa: E501
:rtype: list[AuthenticityResultType]
"""
return self._process_auth

@process_auth.setter
def process_auth(self, process_auth):
"""Sets the process_auth of this ProcessParams.

Authenticity checks that should be performed regardless of the document type. The available checks are listed in the eRPRM_Authenticity enum. Note that only supported by your license checks can be added. # noqa: E501

:param process_auth: The process_auth of this ProcessParams. # noqa: E501
:type process_auth: list[AuthenticityResultType]
"""

self._process_auth = process_auth

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 @@ -39,7 +39,7 @@ class SecurityFeatureResult(object):
'element_rect': 'RectangleCoordinates',
'visibility': 'Visibility',
'critical_flag': 'Critical',
'area_list': 'list[AreaContainer]',
'area_list': 'AreaContainer',
'reserved2': 'int'
}

Expand Down Expand Up @@ -247,7 +247,7 @@ def area_list(self):


:return: The area_list of this SecurityFeatureResult. # noqa: E501
:rtype: list[AreaContainer]
:rtype: AreaContainer
"""
return self._area_list

Expand All @@ -257,7 +257,7 @@ def area_list(self, area_list):


:param area_list: The area_list of this SecurityFeatureResult. # noqa: E501
:type area_list: list[AreaContainer]
:type area_list: AreaContainer
"""

self._area_list = area_list
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class SecurityFeatureResultAllOf(object):
'element_rect': 'RectangleCoordinates',
'visibility': 'Visibility',
'critical_flag': 'Critical',
'area_list': 'list[AreaContainer]',
'area_list': 'AreaContainer',
'reserved2': 'int'
}

Expand Down Expand Up @@ -166,7 +166,7 @@ def area_list(self):


:return: The area_list of this SecurityFeatureResultAllOf. # noqa: E501
:rtype: list[AreaContainer]
:rtype: AreaContainer
"""
return self._area_list

Expand All @@ -176,7 +176,7 @@ def area_list(self, area_list):


:param area_list: The area_list of this SecurityFeatureResultAllOf. # noqa: E501
:type area_list: list[AreaContainer]
:type area_list: AreaContainer
"""

self._area_list = area_list
Expand Down