Skip to content

Commit: 5d3dfe7e #186

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
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: 2 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ regula/documentreader/webclient/gen/models/in_data_transaction_images_field_valu
regula/documentreader/webclient/gen/models/in_data_video.py
regula/documentreader/webclient/gen/models/inline_response200.py
regula/documentreader/webclient/gen/models/inline_response2001.py
regula/documentreader/webclient/gen/models/input_barcode_type.py
regula/documentreader/webclient/gen/models/input_image_quality_checks.py
regula/documentreader/webclient/gen/models/lcid.py
regula/documentreader/webclient/gen/models/lexical_analysis_result.py
regula/documentreader/webclient/gen/models/lexical_analysis_result_all_of.py
Expand Down
2 changes: 2 additions & 0 deletions regula/documentreader/webclient/gen/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@
from regula.documentreader.webclient.gen.models.in_data_video import InDataVideo
from regula.documentreader.webclient.gen.models.inline_response200 import InlineResponse200
from regula.documentreader.webclient.gen.models.inline_response2001 import InlineResponse2001
from regula.documentreader.webclient.gen.models.input_barcode_type import InputBarcodeType
from regula.documentreader.webclient.gen.models.input_image_quality_checks import InputImageQualityChecks
from regula.documentreader.webclient.gen.models.lcid import LCID
from regula.documentreader.webclient.gen.models.lexical_analysis_result import LexicalAnalysisResult
from regula.documentreader.webclient.gen.models.lexical_analysis_result_all_of import LexicalAnalysisResultAllOf
Expand Down
2 changes: 2 additions & 0 deletions regula/documentreader/webclient/gen/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@
from regula.documentreader.webclient.gen.models.in_data_video import InDataVideo
from regula.documentreader.webclient.gen.models.inline_response200 import InlineResponse200
from regula.documentreader.webclient.gen.models.inline_response2001 import InlineResponse2001
from regula.documentreader.webclient.gen.models.input_barcode_type import InputBarcodeType
from regula.documentreader.webclient.gen.models.input_image_quality_checks import InputImageQualityChecks
from regula.documentreader.webclient.gen.models.lcid import LCID
from regula.documentreader.webclient.gen.models.lexical_analysis_result import LexicalAnalysisResult
from regula.documentreader.webclient.gen.models.lexical_analysis_result_all_of import LexicalAnalysisResultAllOf
Expand Down
62 changes: 59 additions & 3 deletions regula/documentreader/webclient/gen/models/face_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ class FaceApi(object):
'service_timeout': 'int',
'proxy': 'str',
'proxy_userpwd': 'str',
'proxy_type': 'int'
'proxy_type': 'int',
'child_age_threshold': 'int',
'child_doc_validity_years': 'int'
}

attribute_map = {
Expand All @@ -50,10 +52,12 @@ class FaceApi(object):
'service_timeout': 'serviceTimeout',
'proxy': 'proxy',
'proxy_userpwd': 'proxy_userpwd',
'proxy_type': 'proxy_type'
'proxy_type': 'proxy_type',
'child_age_threshold': 'childAgeThreshold',
'child_doc_validity_years': 'childDocValidityYears'
}

def __init__(self, url=None, mode=None, search=None, threshold=None, service_timeout=None, proxy=None, proxy_userpwd=None, proxy_type=None, local_vars_configuration=None): # noqa: E501
def __init__(self, url=None, mode=None, search=None, threshold=None, service_timeout=None, proxy=None, proxy_userpwd=None, proxy_type=None, child_age_threshold=None, child_doc_validity_years=None, local_vars_configuration=None): # noqa: E501
"""FaceApi - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration()
Expand All @@ -67,6 +71,8 @@ def __init__(self, url=None, mode=None, search=None, threshold=None, service_tim
self._proxy = None
self._proxy_userpwd = None
self._proxy_type = None
self._child_age_threshold = None
self._child_doc_validity_years = None
self.discriminator = None

if url is not None:
Expand All @@ -85,6 +91,10 @@ def __init__(self, url=None, mode=None, search=None, threshold=None, service_tim
self.proxy_userpwd = proxy_userpwd
if proxy_type is not None:
self.proxy_type = proxy_type
if child_age_threshold is not None:
self.child_age_threshold = child_age_threshold
if child_doc_validity_years is not None:
self.child_doc_validity_years = child_doc_validity_years

@property
def url(self):
Expand Down Expand Up @@ -268,6 +278,52 @@ def proxy_type(self, proxy_type):

self._proxy_type = proxy_type

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

Minimum age of a child, at which portrait comparison result will be effective. Default: 13. # noqa: E501

:return: The child_age_threshold of this FaceApi. # noqa: E501
:rtype: int
"""
return self._child_age_threshold

@child_age_threshold.setter
def child_age_threshold(self, child_age_threshold):
"""Sets the child_age_threshold of this FaceApi.

Minimum age of a child, at which portrait comparison result will be effective. Default: 13. # noqa: E501

:param child_age_threshold: The child_age_threshold of this FaceApi. # noqa: E501
:type child_age_threshold: int
"""

self._child_age_threshold = child_age_threshold

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

Estimated duration of validity for a child's passport, years. Default: 5. # noqa: E501

:return: The child_doc_validity_years of this FaceApi. # noqa: E501
:rtype: int
"""
return self._child_doc_validity_years

@child_doc_validity_years.setter
def child_doc_validity_years(self, child_doc_validity_years):
"""Sets the child_doc_validity_years of this FaceApi.

Estimated duration of validity for a child's passport, years. Default: 5. # noqa: E501

:param child_doc_validity_years: The child_doc_validity_years of this FaceApi. # noqa: E501
:type child_doc_validity_years: int
"""

self._child_doc_validity_years = child_doc_validity_years

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/image_qa.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ class ImageQA(object):
'focus_check': 'bool',
'glares_check': 'bool',
'colorness_check': 'bool',
'document_position_indent': 'int'
'document_position_indent': 'int',
'expected_pass': 'list[InputImageQualityChecks]'
}

attribute_map = {
Expand All @@ -48,10 +49,11 @@ class ImageQA(object):
'focus_check': 'focusCheck',
'glares_check': 'glaresCheck',
'colorness_check': 'colornessCheck',
'document_position_indent': 'documentPositionIndent'
'document_position_indent': 'documentPositionIndent',
'expected_pass': 'expectedPass'
}

def __init__(self, brightness_threshold=None, dpi_threshold=None, angle_threshold=None, focus_check=None, glares_check=None, colorness_check=None, document_position_indent=None, local_vars_configuration=None): # noqa: E501
def __init__(self, brightness_threshold=None, dpi_threshold=None, angle_threshold=None, focus_check=None, glares_check=None, colorness_check=None, document_position_indent=None, expected_pass=None, local_vars_configuration=None): # noqa: E501
"""ImageQA - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration()
Expand All @@ -64,6 +66,7 @@ def __init__(self, brightness_threshold=None, dpi_threshold=None, angle_threshol
self._glares_check = None
self._colorness_check = None
self._document_position_indent = None
self._expected_pass = None
self.discriminator = None

if brightness_threshold is not None:
Expand All @@ -80,6 +83,8 @@ def __init__(self, brightness_threshold=None, dpi_threshold=None, angle_threshol
self.colorness_check = colorness_check
if document_position_indent is not None:
self.document_position_indent = document_position_indent
if expected_pass is not None:
self.expected_pass = expected_pass

@property
def brightness_threshold(self):
Expand Down Expand Up @@ -242,6 +247,29 @@ def document_position_indent(self, document_position_indent):

self._document_position_indent = document_position_indent

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

This parameter controls the quality checks that the image should pass to be considered a valid input during the scanning process. # noqa: E501

:return: The expected_pass of this ImageQA. # noqa: E501
:rtype: list[InputImageQualityChecks]
"""
return self._expected_pass

@expected_pass.setter
def expected_pass(self, expected_pass):
"""Sets the expected_pass of this ImageQA.

This parameter controls the quality checks that the image should pass to be considered a valid input during the scanning process. # noqa: E501

:param expected_pass: The expected_pass of this ImageQA. # noqa: E501
:type expected_pass: list[InputImageQualityChecks]
"""

self._expected_pass = expected_pass

def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
Expand Down
133 changes: 133 additions & 0 deletions regula/documentreader/webclient/gen/models/input_barcode_type.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
# 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 *


"""
Enumeration contains the types of barcodes that can be processed
"""
class InputBarcodeType(object):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech

Do not edit the class manually.
"""

UNKNOWN = "bct_unknown"

CODE128 = "bct_Code128"

CODE39 = "bct_Code39"

EAN8 = "bct_EAN8"

ITF = "bct_ITF"

PDF417 = "bct_PDF417"

STF = "bct_STF"

MTF = "bct_MTF"

IATA = "bct_IATA"

CODABAR = "bct_CODABAR"

UPCA = "bct_UPCA"

CODE93 = "bct_CODE93"

UPCE = "bct_UPCE"

EAN13 = "bct_EAN13"

QRCODE = "bct_QRCODE"

AZTEC = "bct_AZTEC"

DATAMATRIX = "bct_DATAMATRIX"

ALL_1D = "bct_ALL_1D"

CODE11 = "bct_Code11"

JABCODE = "bct_JABCODE"

allowable_values = [UNKNOWN, CODE128, CODE39, EAN8, ITF, PDF417, STF, MTF, IATA, CODABAR, UPCA, CODE93, UPCE, EAN13, QRCODE, AZTEC, DATAMATRIX, ALL_1D, CODE11, JABCODE] # noqa: E501

"""
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 = {
}

attribute_map = {
}

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

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, InputBarcodeType):
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, InputBarcodeType):
return True

return self.to_dict() != other.to_dict()
Loading