Skip to content

Commit 32ee616

Browse files
committed
Commit: e63a62e4
1 parent d63ed31 commit 32ee616

File tree

9 files changed

+371
-12
lines changed

9 files changed

+371
-12
lines changed

.openapi-generator/FILES

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ regula/documentreader/webclient/gen/models/in_data_transaction_images_field_valu
8989
regula/documentreader/webclient/gen/models/in_data_video.py
9090
regula/documentreader/webclient/gen/models/inline_response200.py
9191
regula/documentreader/webclient/gen/models/inline_response2001.py
92+
regula/documentreader/webclient/gen/models/input_barcode_type.py
93+
regula/documentreader/webclient/gen/models/input_image_quality_checks.py
9294
regula/documentreader/webclient/gen/models/lcid.py
9395
regula/documentreader/webclient/gen/models/lexical_analysis_result.py
9496
regula/documentreader/webclient/gen/models/lexical_analysis_result_all_of.py

regula/documentreader/webclient/gen/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,8 @@
105105
from regula.documentreader.webclient.gen.models.in_data_video import InDataVideo
106106
from regula.documentreader.webclient.gen.models.inline_response200 import InlineResponse200
107107
from regula.documentreader.webclient.gen.models.inline_response2001 import InlineResponse2001
108+
from regula.documentreader.webclient.gen.models.input_barcode_type import InputBarcodeType
109+
from regula.documentreader.webclient.gen.models.input_image_quality_checks import InputImageQualityChecks
108110
from regula.documentreader.webclient.gen.models.lcid import LCID
109111
from regula.documentreader.webclient.gen.models.lexical_analysis_result import LexicalAnalysisResult
110112
from regula.documentreader.webclient.gen.models.lexical_analysis_result_all_of import LexicalAnalysisResultAllOf

regula/documentreader/webclient/gen/models/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@
8888
from regula.documentreader.webclient.gen.models.in_data_video import InDataVideo
8989
from regula.documentreader.webclient.gen.models.inline_response200 import InlineResponse200
9090
from regula.documentreader.webclient.gen.models.inline_response2001 import InlineResponse2001
91+
from regula.documentreader.webclient.gen.models.input_barcode_type import InputBarcodeType
92+
from regula.documentreader.webclient.gen.models.input_image_quality_checks import InputImageQualityChecks
9193
from regula.documentreader.webclient.gen.models.lcid import LCID
9294
from regula.documentreader.webclient.gen.models.lexical_analysis_result import LexicalAnalysisResult
9395
from regula.documentreader.webclient.gen.models.lexical_analysis_result_all_of import LexicalAnalysisResultAllOf

regula/documentreader/webclient/gen/models/face_api.py

Lines changed: 59 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ class FaceApi(object):
3939
'service_timeout': 'int',
4040
'proxy': 'str',
4141
'proxy_userpwd': 'str',
42-
'proxy_type': 'int'
42+
'proxy_type': 'int',
43+
'child_age_threshold': 'int',
44+
'child_doc_validity_years': 'int'
4345
}
4446

4547
attribute_map = {
@@ -50,10 +52,12 @@ class FaceApi(object):
5052
'service_timeout': 'serviceTimeout',
5153
'proxy': 'proxy',
5254
'proxy_userpwd': 'proxy_userpwd',
53-
'proxy_type': 'proxy_type'
55+
'proxy_type': 'proxy_type',
56+
'child_age_threshold': 'childAgeThreshold',
57+
'child_doc_validity_years': 'childDocValidityYears'
5458
}
5559

56-
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
60+
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
5761
"""FaceApi - a model defined in OpenAPI""" # noqa: E501
5862
if local_vars_configuration is None:
5963
local_vars_configuration = Configuration()
@@ -67,6 +71,8 @@ def __init__(self, url=None, mode=None, search=None, threshold=None, service_tim
6771
self._proxy = None
6872
self._proxy_userpwd = None
6973
self._proxy_type = None
74+
self._child_age_threshold = None
75+
self._child_doc_validity_years = None
7076
self.discriminator = None
7177

7278
if url is not None:
@@ -85,6 +91,10 @@ def __init__(self, url=None, mode=None, search=None, threshold=None, service_tim
8591
self.proxy_userpwd = proxy_userpwd
8692
if proxy_type is not None:
8793
self.proxy_type = proxy_type
94+
if child_age_threshold is not None:
95+
self.child_age_threshold = child_age_threshold
96+
if child_doc_validity_years is not None:
97+
self.child_doc_validity_years = child_doc_validity_years
8898

8999
@property
90100
def url(self):
@@ -268,6 +278,52 @@ def proxy_type(self, proxy_type):
268278

269279
self._proxy_type = proxy_type
270280

281+
@property
282+
def child_age_threshold(self):
283+
"""Gets the child_age_threshold of this FaceApi. # noqa: E501
284+
285+
Minimum age of a child, at which portrait comparison result will be effective. Default: 13. # noqa: E501
286+
287+
:return: The child_age_threshold of this FaceApi. # noqa: E501
288+
:rtype: int
289+
"""
290+
return self._child_age_threshold
291+
292+
@child_age_threshold.setter
293+
def child_age_threshold(self, child_age_threshold):
294+
"""Sets the child_age_threshold of this FaceApi.
295+
296+
Minimum age of a child, at which portrait comparison result will be effective. Default: 13. # noqa: E501
297+
298+
:param child_age_threshold: The child_age_threshold of this FaceApi. # noqa: E501
299+
:type child_age_threshold: int
300+
"""
301+
302+
self._child_age_threshold = child_age_threshold
303+
304+
@property
305+
def child_doc_validity_years(self):
306+
"""Gets the child_doc_validity_years of this FaceApi. # noqa: E501
307+
308+
Estimated duration of validity for a child's passport, years. Default: 5. # noqa: E501
309+
310+
:return: The child_doc_validity_years of this FaceApi. # noqa: E501
311+
:rtype: int
312+
"""
313+
return self._child_doc_validity_years
314+
315+
@child_doc_validity_years.setter
316+
def child_doc_validity_years(self, child_doc_validity_years):
317+
"""Sets the child_doc_validity_years of this FaceApi.
318+
319+
Estimated duration of validity for a child's passport, years. Default: 5. # noqa: E501
320+
321+
:param child_doc_validity_years: The child_doc_validity_years of this FaceApi. # noqa: E501
322+
:type child_doc_validity_years: int
323+
"""
324+
325+
self._child_doc_validity_years = child_doc_validity_years
326+
271327
def to_dict(self):
272328
"""Returns the model properties as a dict"""
273329
result = {}

regula/documentreader/webclient/gen/models/image_qa.py

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ class ImageQA(object):
3838
'focus_check': 'bool',
3939
'glares_check': 'bool',
4040
'colorness_check': 'bool',
41-
'document_position_indent': 'int'
41+
'document_position_indent': 'int',
42+
'expected_pass': 'list[InputImageQualityChecks]'
4243
}
4344

4445
attribute_map = {
@@ -48,10 +49,11 @@ class ImageQA(object):
4849
'focus_check': 'focusCheck',
4950
'glares_check': 'glaresCheck',
5051
'colorness_check': 'colornessCheck',
51-
'document_position_indent': 'documentPositionIndent'
52+
'document_position_indent': 'documentPositionIndent',
53+
'expected_pass': 'expectedPass'
5254
}
5355

54-
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
56+
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
5557
"""ImageQA - a model defined in OpenAPI""" # noqa: E501
5658
if local_vars_configuration is None:
5759
local_vars_configuration = Configuration()
@@ -64,6 +66,7 @@ def __init__(self, brightness_threshold=None, dpi_threshold=None, angle_threshol
6466
self._glares_check = None
6567
self._colorness_check = None
6668
self._document_position_indent = None
69+
self._expected_pass = None
6770
self.discriminator = None
6871

6972
if brightness_threshold is not None:
@@ -80,6 +83,8 @@ def __init__(self, brightness_threshold=None, dpi_threshold=None, angle_threshol
8083
self.colorness_check = colorness_check
8184
if document_position_indent is not None:
8285
self.document_position_indent = document_position_indent
86+
if expected_pass is not None:
87+
self.expected_pass = expected_pass
8388

8489
@property
8590
def brightness_threshold(self):
@@ -242,6 +247,29 @@ def document_position_indent(self, document_position_indent):
242247

243248
self._document_position_indent = document_position_indent
244249

250+
@property
251+
def expected_pass(self):
252+
"""Gets the expected_pass of this ImageQA. # noqa: E501
253+
254+
This parameter controls the quality checks that the image should pass to be considered a valid input during the scanning process. # noqa: E501
255+
256+
:return: The expected_pass of this ImageQA. # noqa: E501
257+
:rtype: list[InputImageQualityChecks]
258+
"""
259+
return self._expected_pass
260+
261+
@expected_pass.setter
262+
def expected_pass(self, expected_pass):
263+
"""Sets the expected_pass of this ImageQA.
264+
265+
This parameter controls the quality checks that the image should pass to be considered a valid input during the scanning process. # noqa: E501
266+
267+
:param expected_pass: The expected_pass of this ImageQA. # noqa: E501
268+
:type expected_pass: list[InputImageQualityChecks]
269+
"""
270+
271+
self._expected_pass = expected_pass
272+
245273
def to_dict(self):
246274
"""Returns the model properties as a dict"""
247275
result = {}
Lines changed: 133 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,133 @@
1+
# coding: utf-8
2+
3+
"""
4+
Generated by: https://openapi-generator.tech
5+
"""
6+
7+
import pprint
8+
import re # noqa: F401
9+
10+
import six
11+
12+
from regula.documentreader.webclient.gen.configuration import Configuration
13+
# this line was added to enable pycharm type hinting
14+
from regula.documentreader.webclient.gen.models import *
15+
16+
17+
"""
18+
Enumeration contains the types of barcodes that can be processed
19+
"""
20+
class InputBarcodeType(object):
21+
"""NOTE: This class is auto generated by OpenAPI Generator.
22+
Ref: https://openapi-generator.tech
23+
24+
Do not edit the class manually.
25+
"""
26+
27+
UNKNOWN = "bct_unknown"
28+
29+
CODE128 = "bct_Code128"
30+
31+
CODE39 = "bct_Code39"
32+
33+
EAN8 = "bct_EAN8"
34+
35+
ITF = "bct_ITF"
36+
37+
PDF417 = "bct_PDF417"
38+
39+
STF = "bct_STF"
40+
41+
MTF = "bct_MTF"
42+
43+
IATA = "bct_IATA"
44+
45+
CODABAR = "bct_CODABAR"
46+
47+
UPCA = "bct_UPCA"
48+
49+
CODE93 = "bct_CODE93"
50+
51+
UPCE = "bct_UPCE"
52+
53+
EAN13 = "bct_EAN13"
54+
55+
QRCODE = "bct_QRCODE"
56+
57+
AZTEC = "bct_AZTEC"
58+
59+
DATAMATRIX = "bct_DATAMATRIX"
60+
61+
ALL_1D = "bct_ALL_1D"
62+
63+
CODE11 = "bct_Code11"
64+
65+
JABCODE = "bct_JABCODE"
66+
67+
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
68+
69+
"""
70+
Attributes:
71+
openapi_types (dict): The key is attribute name
72+
and the value is attribute type.
73+
attribute_map (dict): The key is attribute name
74+
and the value is json key in definition.
75+
"""
76+
openapi_types = {
77+
}
78+
79+
attribute_map = {
80+
}
81+
82+
def __init__(self, local_vars_configuration=None): # noqa: E501
83+
"""InputBarcodeType - a model defined in OpenAPI""" # noqa: E501
84+
if local_vars_configuration is None:
85+
local_vars_configuration = Configuration()
86+
self.local_vars_configuration = local_vars_configuration
87+
self.discriminator = None
88+
89+
def to_dict(self):
90+
"""Returns the model properties as a dict"""
91+
result = {}
92+
93+
for attr, _ in six.iteritems(self.openapi_types):
94+
value = getattr(self, attr)
95+
if isinstance(value, list):
96+
result[attr] = list(map(
97+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
98+
value
99+
))
100+
elif hasattr(value, "to_dict"):
101+
result[attr] = value.to_dict()
102+
elif isinstance(value, dict):
103+
result[attr] = dict(map(
104+
lambda item: (item[0], item[1].to_dict())
105+
if hasattr(item[1], "to_dict") else item,
106+
value.items()
107+
))
108+
else:
109+
result[attr] = value
110+
111+
return result
112+
113+
def to_str(self):
114+
"""Returns the string representation of the model"""
115+
return pprint.pformat(self.to_dict())
116+
117+
def __repr__(self):
118+
"""For `print` and `pprint`"""
119+
return self.to_str()
120+
121+
def __eq__(self, other):
122+
"""Returns true if both objects are equal"""
123+
if not isinstance(other, InputBarcodeType):
124+
return False
125+
126+
return self.to_dict() == other.to_dict()
127+
128+
def __ne__(self, other):
129+
"""Returns true if both objects are not equal"""
130+
if not isinstance(other, InputBarcodeType):
131+
return True
132+
133+
return self.to_dict() != other.to_dict()

0 commit comments

Comments
 (0)