Skip to content

Commit d67026e

Browse files
actions-userhleb-albau
authored andcommitted
5.7.0 final additions
1 parent 3f64e2d commit d67026e

File tree

6 files changed

+326
-6
lines changed

6 files changed

+326
-6
lines changed

.openapi-generator/FILES

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ regula/documentreader/webclient/gen/models/ocr_security_text_result.py
7272
regula/documentreader/webclient/gen/models/ocr_security_text_result_all_of.py
7373
regula/documentreader/webclient/gen/models/one_candidate.py
7474
regula/documentreader/webclient/gen/models/original_symbol.py
75+
regula/documentreader/webclient/gen/models/per_document_config.py
7576
regula/documentreader/webclient/gen/models/photo_ident_result.py
7677
regula/documentreader/webclient/gen/models/photo_ident_result_all_of.py
7778
regula/documentreader/webclient/gen/models/point.py

regula/documentreader/webclient/gen/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@
9090
from regula.documentreader.webclient.gen.models.ocr_security_text_result_all_of import OCRSecurityTextResultAllOf
9191
from regula.documentreader.webclient.gen.models.one_candidate import OneCandidate
9292
from regula.documentreader.webclient.gen.models.original_symbol import OriginalSymbol
93+
from regula.documentreader.webclient.gen.models.per_document_config import PerDocumentConfig
9394
from regula.documentreader.webclient.gen.models.photo_ident_result import PhotoIdentResult
9495
from regula.documentreader.webclient.gen.models.photo_ident_result_all_of import PhotoIdentResultAllOf
9596
from regula.documentreader.webclient.gen.models.point import Point

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@
7474
from regula.documentreader.webclient.gen.models.ocr_security_text_result_all_of import OCRSecurityTextResultAllOf
7575
from regula.documentreader.webclient.gen.models.one_candidate import OneCandidate
7676
from regula.documentreader.webclient.gen.models.original_symbol import OriginalSymbol
77+
from regula.documentreader.webclient.gen.models.per_document_config import PerDocumentConfig
7778
from regula.documentreader.webclient.gen.models.photo_ident_result import PhotoIdentResult
7879
from regula.documentreader.webclient.gen.models.photo_ident_result_all_of import PhotoIdentResultAllOf
7980
from regula.documentreader.webclient.gen.models.point import Point

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

Lines changed: 115 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,28 +33,48 @@ class ImageQA(object):
3333
"""
3434
openapi_types = {
3535
'dpi_threshold': 'int',
36-
'angle_threshold': 'int'
36+
'angle_threshold': 'int',
37+
'disable_focus_check': 'bool',
38+
'disable_glares_check': 'bool',
39+
'disable_colorness_check': 'bool',
40+
'disable_moire_check': 'bool'
3741
}
3842

3943
attribute_map = {
4044
'dpi_threshold': 'dpiThreshold',
41-
'angle_threshold': 'angleThreshold'
45+
'angle_threshold': 'angleThreshold',
46+
'disable_focus_check': 'disableFocusCheck',
47+
'disable_glares_check': 'disableGlaresCheck',
48+
'disable_colorness_check': 'disableColornessCheck',
49+
'disable_moire_check': 'disableMoireCheck'
4250
}
4351

44-
def __init__(self, dpi_threshold=None, angle_threshold=None, local_vars_configuration=None): # noqa: E501
52+
def __init__(self, dpi_threshold=None, angle_threshold=None, disable_focus_check=None, disable_glares_check=None, disable_colorness_check=None, disable_moire_check=None, local_vars_configuration=None): # noqa: E501
4553
"""ImageQA - a model defined in OpenAPI""" # noqa: E501
4654
if local_vars_configuration is None:
4755
local_vars_configuration = Configuration()
4856
self.local_vars_configuration = local_vars_configuration
4957

5058
self._dpi_threshold = None
5159
self._angle_threshold = None
60+
self._disable_focus_check = None
61+
self._disable_glares_check = None
62+
self._disable_colorness_check = None
63+
self._disable_moire_check = None
5264
self.discriminator = None
5365

5466
if dpi_threshold is not None:
5567
self.dpi_threshold = dpi_threshold
5668
if angle_threshold is not None:
5769
self.angle_threshold = angle_threshold
70+
if disable_focus_check is not None:
71+
self.disable_focus_check = disable_focus_check
72+
if disable_glares_check is not None:
73+
self.disable_glares_check = disable_glares_check
74+
if disable_colorness_check is not None:
75+
self.disable_colorness_check = disable_colorness_check
76+
if disable_moire_check is not None:
77+
self.disable_moire_check = disable_moire_check
5878

5979
@property
6080
def dpi_threshold(self):
@@ -102,6 +122,98 @@ def angle_threshold(self, angle_threshold):
102122

103123
self._angle_threshold = angle_threshold
104124

125+
@property
126+
def disable_focus_check(self):
127+
"""Gets the disable_focus_check of this ImageQA. # noqa: E501
128+
129+
This option disabled focus check during performing image quality validation # noqa: E501
130+
131+
:return: The disable_focus_check of this ImageQA. # noqa: E501
132+
:rtype: bool
133+
"""
134+
return self._disable_focus_check
135+
136+
@disable_focus_check.setter
137+
def disable_focus_check(self, disable_focus_check):
138+
"""Sets the disable_focus_check of this ImageQA.
139+
140+
This option disabled focus check during performing image quality validation # noqa: E501
141+
142+
:param disable_focus_check: The disable_focus_check of this ImageQA. # noqa: E501
143+
:type disable_focus_check: bool
144+
"""
145+
146+
self._disable_focus_check = disable_focus_check
147+
148+
@property
149+
def disable_glares_check(self):
150+
"""Gets the disable_glares_check of this ImageQA. # noqa: E501
151+
152+
This option disabled glares check during performing image quality validation # noqa: E501
153+
154+
:return: The disable_glares_check of this ImageQA. # noqa: E501
155+
:rtype: bool
156+
"""
157+
return self._disable_glares_check
158+
159+
@disable_glares_check.setter
160+
def disable_glares_check(self, disable_glares_check):
161+
"""Sets the disable_glares_check of this ImageQA.
162+
163+
This option disabled glares check during performing image quality validation # noqa: E501
164+
165+
:param disable_glares_check: The disable_glares_check of this ImageQA. # noqa: E501
166+
:type disable_glares_check: bool
167+
"""
168+
169+
self._disable_glares_check = disable_glares_check
170+
171+
@property
172+
def disable_colorness_check(self):
173+
"""Gets the disable_colorness_check of this ImageQA. # noqa: E501
174+
175+
This option disabled colorness check during performing image quality validation # noqa: E501
176+
177+
:return: The disable_colorness_check of this ImageQA. # noqa: E501
178+
:rtype: bool
179+
"""
180+
return self._disable_colorness_check
181+
182+
@disable_colorness_check.setter
183+
def disable_colorness_check(self, disable_colorness_check):
184+
"""Sets the disable_colorness_check of this ImageQA.
185+
186+
This option disabled colorness check during performing image quality validation # noqa: E501
187+
188+
:param disable_colorness_check: The disable_colorness_check of this ImageQA. # noqa: E501
189+
:type disable_colorness_check: bool
190+
"""
191+
192+
self._disable_colorness_check = disable_colorness_check
193+
194+
@property
195+
def disable_moire_check(self):
196+
"""Gets the disable_moire_check of this ImageQA. # noqa: E501
197+
198+
This option disabled moire patterns check during performing image quality validation # noqa: E501
199+
200+
:return: The disable_moire_check of this ImageQA. # noqa: E501
201+
:rtype: bool
202+
"""
203+
return self._disable_moire_check
204+
205+
@disable_moire_check.setter
206+
def disable_moire_check(self, disable_moire_check):
207+
"""Sets the disable_moire_check of this ImageQA.
208+
209+
This option disabled moire patterns check during performing image quality validation # noqa: E501
210+
211+
:param disable_moire_check: The disable_moire_check of this ImageQA. # noqa: E501
212+
:type disable_moire_check: bool
213+
"""
214+
215+
self._disable_moire_check = disable_moire_check
216+
105217
def to_dict(self):
106218
"""Returns the model properties as a dict"""
107219
result = {}
Lines changed: 149 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,149 @@
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+
19+
"""
20+
class PerDocumentConfig(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+
"""
28+
Attributes:
29+
openapi_types (dict): The key is attribute name
30+
and the value is attribute type.
31+
attribute_map (dict): The key is attribute name
32+
and the value is json key in definition.
33+
"""
34+
openapi_types = {
35+
'doc_id': 'list[int]',
36+
'exclude_auth_checks': 'int'
37+
}
38+
39+
attribute_map = {
40+
'doc_id': 'docID',
41+
'exclude_auth_checks': 'excludeAuthChecks'
42+
}
43+
44+
def __init__(self, doc_id=None, exclude_auth_checks=None, local_vars_configuration=None): # noqa: E501
45+
"""PerDocumentConfig - a model defined in OpenAPI""" # noqa: E501
46+
if local_vars_configuration is None:
47+
local_vars_configuration = Configuration()
48+
self.local_vars_configuration = local_vars_configuration
49+
50+
self._doc_id = None
51+
self._exclude_auth_checks = None
52+
self.discriminator = None
53+
54+
if doc_id is not None:
55+
self.doc_id = doc_id
56+
if exclude_auth_checks is not None:
57+
self.exclude_auth_checks = exclude_auth_checks
58+
59+
@property
60+
def doc_id(self):
61+
"""Gets the doc_id of this PerDocumentConfig. # noqa: E501
62+
63+
Specific template IDs, for which apply current custom configuration # noqa: E501
64+
65+
:return: The doc_id of this PerDocumentConfig. # noqa: E501
66+
:rtype: list[int]
67+
"""
68+
return self._doc_id
69+
70+
@doc_id.setter
71+
def doc_id(self, doc_id):
72+
"""Sets the doc_id of this PerDocumentConfig.
73+
74+
Specific template IDs, for which apply current custom configuration # noqa: E501
75+
76+
:param doc_id: The doc_id of this PerDocumentConfig. # noqa: E501
77+
:type doc_id: list[int]
78+
"""
79+
80+
self._doc_id = doc_id
81+
82+
@property
83+
def exclude_auth_checks(self):
84+
"""Gets the exclude_auth_checks of this PerDocumentConfig. # noqa: E501
85+
86+
Contains items from AuthenticityResultType as sum via OR operation # noqa: E501
87+
88+
:return: The exclude_auth_checks of this PerDocumentConfig. # noqa: E501
89+
:rtype: int
90+
"""
91+
return self._exclude_auth_checks
92+
93+
@exclude_auth_checks.setter
94+
def exclude_auth_checks(self, exclude_auth_checks):
95+
"""Sets the exclude_auth_checks of this PerDocumentConfig.
96+
97+
Contains items from AuthenticityResultType as sum via OR operation # noqa: E501
98+
99+
:param exclude_auth_checks: The exclude_auth_checks of this PerDocumentConfig. # noqa: E501
100+
:type exclude_auth_checks: int
101+
"""
102+
103+
self._exclude_auth_checks = exclude_auth_checks
104+
105+
def to_dict(self):
106+
"""Returns the model properties as a dict"""
107+
result = {}
108+
109+
for attr, _ in six.iteritems(self.openapi_types):
110+
value = getattr(self, attr)
111+
if isinstance(value, list):
112+
result[attr] = list(map(
113+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
114+
value
115+
))
116+
elif hasattr(value, "to_dict"):
117+
result[attr] = value.to_dict()
118+
elif isinstance(value, dict):
119+
result[attr] = dict(map(
120+
lambda item: (item[0], item[1].to_dict())
121+
if hasattr(item[1], "to_dict") else item,
122+
value.items()
123+
))
124+
else:
125+
result[attr] = value
126+
127+
return result
128+
129+
def to_str(self):
130+
"""Returns the string representation of the model"""
131+
return pprint.pformat(self.to_dict())
132+
133+
def __repr__(self):
134+
"""For `print` and `pprint`"""
135+
return self.to_str()
136+
137+
def __eq__(self, other):
138+
"""Returns true if both objects are equal"""
139+
if not isinstance(other, PerDocumentConfig):
140+
return False
141+
142+
return self.to_dict() == other.to_dict()
143+
144+
def __ne__(self, other):
145+
"""Returns true if both objects are not equal"""
146+
if not isinstance(other, PerDocumentConfig):
147+
return True
148+
149+
return self.to_dict() != other.to_dict()

0 commit comments

Comments
 (0)