regula.documentreader.webclient 7.1.2__py3-none-any.whl → 7.3.4.dev0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- regula/documentreader/webclient/gen/__init__.py +4 -1
- regula/documentreader/webclient/gen/api/transaction_api.py +157 -12
- regula/documentreader/webclient/gen/configuration.py +2 -2
- regula/documentreader/webclient/gen/models/__init__.py +4 -1
- regula/documentreader/webclient/gen/models/check_diagnose.py +13 -1
- regula/documentreader/webclient/gen/models/chosen_document_type_result.py +27 -1
- regula/documentreader/webclient/gen/models/chosen_document_type_result_all_of.py +29 -3
- regula/documentreader/webclient/gen/models/fdsid_list.py +31 -3
- regula/documentreader/webclient/gen/models/in_data.py +3 -3
- regula/documentreader/webclient/gen/models/in_data_transaction_images_field_value.py +201 -0
- regula/documentreader/webclient/gen/models/inline_response200.py +53 -1
- regula/documentreader/webclient/gen/models/inline_response2001.py +29 -3
- regula/documentreader/webclient/gen/models/mrz_detect_mode_enum.py +99 -0
- regula/documentreader/webclient/gen/models/out_data.py +3 -3
- regula/documentreader/webclient/gen/models/out_data_transaction_images_field_value.py +227 -0
- regula/documentreader/webclient/gen/models/parsing_notification_codes.py +9 -1
- regula/documentreader/webclient/gen/models/process_params.py +31 -33
- regula/documentreader/webclient/gen/models/text_field_type.py +3 -1
- regula/documentreader/webclient/gen/models/transaction_process_request.py +5 -195
- regula/documentreader/webclient/gen/models/transaction_scenario_request.py +119 -0
- {regula.documentreader.webclient-7.1.2.dist-info → regula.documentreader.webclient-7.3.4.dev0.dist-info}/METADATA +1 -1
- {regula.documentreader.webclient-7.1.2.dist-info → regula.documentreader.webclient-7.3.4.dev0.dist-info}/RECORD +24 -20
- {regula.documentreader.webclient-7.1.2.dist-info → regula.documentreader.webclient-7.3.4.dev0.dist-info}/WHEEL +1 -1
- {regula.documentreader.webclient-7.1.2.dist-info → regula.documentreader.webclient-7.3.4.dev0.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,201 @@
|
|
|
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 InDataTransactionImagesFieldValue(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
|
+
'light': 'Light',
|
|
36
|
+
'list_idx': 'int',
|
|
37
|
+
'page_idx': 'int',
|
|
38
|
+
'url': 'str'
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
attribute_map = {
|
|
42
|
+
'light': 'light',
|
|
43
|
+
'list_idx': 'listIdx',
|
|
44
|
+
'page_idx': 'pageIdx',
|
|
45
|
+
'url': 'url'
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
def __init__(self, light=None, list_idx=None, page_idx=None, url=None, local_vars_configuration=None): # noqa: E501
|
|
49
|
+
"""InDataTransactionImagesFieldValue - a model defined in OpenAPI""" # noqa: E501
|
|
50
|
+
if local_vars_configuration is None:
|
|
51
|
+
local_vars_configuration = Configuration()
|
|
52
|
+
self.local_vars_configuration = local_vars_configuration
|
|
53
|
+
|
|
54
|
+
self._light = None
|
|
55
|
+
self._list_idx = None
|
|
56
|
+
self._page_idx = None
|
|
57
|
+
self._url = None
|
|
58
|
+
self.discriminator = None
|
|
59
|
+
|
|
60
|
+
if light is not None:
|
|
61
|
+
self.light = light
|
|
62
|
+
if list_idx is not None:
|
|
63
|
+
self.list_idx = list_idx
|
|
64
|
+
if page_idx is not None:
|
|
65
|
+
self.page_idx = page_idx
|
|
66
|
+
if url is not None:
|
|
67
|
+
self.url = url
|
|
68
|
+
|
|
69
|
+
@property
|
|
70
|
+
def light(self):
|
|
71
|
+
"""Gets the light of this InDataTransactionImagesFieldValue. # noqa: E501
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
:return: The light of this InDataTransactionImagesFieldValue. # noqa: E501
|
|
75
|
+
:rtype: Light
|
|
76
|
+
"""
|
|
77
|
+
return self._light
|
|
78
|
+
|
|
79
|
+
@light.setter
|
|
80
|
+
def light(self, light):
|
|
81
|
+
"""Sets the light of this InDataTransactionImagesFieldValue.
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
:param light: The light of this InDataTransactionImagesFieldValue. # noqa: E501
|
|
85
|
+
:type light: Light
|
|
86
|
+
"""
|
|
87
|
+
|
|
88
|
+
self._light = light
|
|
89
|
+
|
|
90
|
+
@property
|
|
91
|
+
def list_idx(self):
|
|
92
|
+
"""Gets the list_idx of this InDataTransactionImagesFieldValue. # noqa: E501
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
:return: The list_idx of this InDataTransactionImagesFieldValue. # noqa: E501
|
|
96
|
+
:rtype: int
|
|
97
|
+
"""
|
|
98
|
+
return self._list_idx
|
|
99
|
+
|
|
100
|
+
@list_idx.setter
|
|
101
|
+
def list_idx(self, list_idx):
|
|
102
|
+
"""Sets the list_idx of this InDataTransactionImagesFieldValue.
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
:param list_idx: The list_idx of this InDataTransactionImagesFieldValue. # noqa: E501
|
|
106
|
+
:type list_idx: int
|
|
107
|
+
"""
|
|
108
|
+
|
|
109
|
+
self._list_idx = list_idx
|
|
110
|
+
|
|
111
|
+
@property
|
|
112
|
+
def page_idx(self):
|
|
113
|
+
"""Gets the page_idx of this InDataTransactionImagesFieldValue. # noqa: E501
|
|
114
|
+
|
|
115
|
+
Page index of the image from input list # noqa: E501
|
|
116
|
+
|
|
117
|
+
:return: The page_idx of this InDataTransactionImagesFieldValue. # noqa: E501
|
|
118
|
+
:rtype: int
|
|
119
|
+
"""
|
|
120
|
+
return self._page_idx
|
|
121
|
+
|
|
122
|
+
@page_idx.setter
|
|
123
|
+
def page_idx(self, page_idx):
|
|
124
|
+
"""Sets the page_idx of this InDataTransactionImagesFieldValue.
|
|
125
|
+
|
|
126
|
+
Page index of the image from input list # noqa: E501
|
|
127
|
+
|
|
128
|
+
:param page_idx: The page_idx of this InDataTransactionImagesFieldValue. # noqa: E501
|
|
129
|
+
:type page_idx: int
|
|
130
|
+
"""
|
|
131
|
+
|
|
132
|
+
self._page_idx = page_idx
|
|
133
|
+
|
|
134
|
+
@property
|
|
135
|
+
def url(self):
|
|
136
|
+
"""Gets the url of this InDataTransactionImagesFieldValue. # noqa: E501
|
|
137
|
+
|
|
138
|
+
Image url # noqa: E501
|
|
139
|
+
|
|
140
|
+
:return: The url of this InDataTransactionImagesFieldValue. # noqa: E501
|
|
141
|
+
:rtype: str
|
|
142
|
+
"""
|
|
143
|
+
return self._url
|
|
144
|
+
|
|
145
|
+
@url.setter
|
|
146
|
+
def url(self, url):
|
|
147
|
+
"""Sets the url of this InDataTransactionImagesFieldValue.
|
|
148
|
+
|
|
149
|
+
Image url # noqa: E501
|
|
150
|
+
|
|
151
|
+
:param url: The url of this InDataTransactionImagesFieldValue. # noqa: E501
|
|
152
|
+
:type url: str
|
|
153
|
+
"""
|
|
154
|
+
|
|
155
|
+
self._url = url
|
|
156
|
+
|
|
157
|
+
def to_dict(self):
|
|
158
|
+
"""Returns the model properties as a dict"""
|
|
159
|
+
result = {}
|
|
160
|
+
|
|
161
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
162
|
+
value = getattr(self, attr)
|
|
163
|
+
if isinstance(value, list):
|
|
164
|
+
result[attr] = list(map(
|
|
165
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
166
|
+
value
|
|
167
|
+
))
|
|
168
|
+
elif hasattr(value, "to_dict"):
|
|
169
|
+
result[attr] = value.to_dict()
|
|
170
|
+
elif isinstance(value, dict):
|
|
171
|
+
result[attr] = dict(map(
|
|
172
|
+
lambda item: (item[0], item[1].to_dict())
|
|
173
|
+
if hasattr(item[1], "to_dict") else item,
|
|
174
|
+
value.items()
|
|
175
|
+
))
|
|
176
|
+
else:
|
|
177
|
+
result[attr] = value
|
|
178
|
+
|
|
179
|
+
return result
|
|
180
|
+
|
|
181
|
+
def to_str(self):
|
|
182
|
+
"""Returns the string representation of the model"""
|
|
183
|
+
return pprint.pformat(self.to_dict())
|
|
184
|
+
|
|
185
|
+
def __repr__(self):
|
|
186
|
+
"""For `print` and `pprint`"""
|
|
187
|
+
return self.to_str()
|
|
188
|
+
|
|
189
|
+
def __eq__(self, other):
|
|
190
|
+
"""Returns true if both objects are equal"""
|
|
191
|
+
if not isinstance(other, InDataTransactionImagesFieldValue):
|
|
192
|
+
return False
|
|
193
|
+
|
|
194
|
+
return self.to_dict() == other.to_dict()
|
|
195
|
+
|
|
196
|
+
def __ne__(self, other):
|
|
197
|
+
"""Returns true if both objects are not equal"""
|
|
198
|
+
if not isinstance(other, InDataTransactionImagesFieldValue):
|
|
199
|
+
return True
|
|
200
|
+
|
|
201
|
+
return self.to_dict() != other.to_dict()
|
|
@@ -32,30 +32,82 @@ class InlineResponse200(object):
|
|
|
32
32
|
and the value is json key in definition.
|
|
33
33
|
"""
|
|
34
34
|
openapi_types = {
|
|
35
|
+
'out_data': 'OutData',
|
|
36
|
+
'in_data': 'InData',
|
|
35
37
|
'tag': 'str',
|
|
36
38
|
'transaction_id': 'str'
|
|
37
39
|
}
|
|
38
40
|
|
|
39
41
|
attribute_map = {
|
|
42
|
+
'out_data': 'OutData',
|
|
43
|
+
'in_data': 'InData',
|
|
40
44
|
'tag': 'tag',
|
|
41
45
|
'transaction_id': 'transactionId'
|
|
42
46
|
}
|
|
43
47
|
|
|
44
|
-
def __init__(self, tag=None, transaction_id=None, local_vars_configuration=None): # noqa: E501
|
|
48
|
+
def __init__(self, out_data=None, in_data=None, tag=None, transaction_id=None, local_vars_configuration=None): # noqa: E501
|
|
45
49
|
"""InlineResponse200 - a model defined in OpenAPI""" # noqa: E501
|
|
46
50
|
if local_vars_configuration is None:
|
|
47
51
|
local_vars_configuration = Configuration()
|
|
48
52
|
self.local_vars_configuration = local_vars_configuration
|
|
49
53
|
|
|
54
|
+
self._out_data = None
|
|
55
|
+
self._in_data = None
|
|
50
56
|
self._tag = None
|
|
51
57
|
self._transaction_id = None
|
|
52
58
|
self.discriminator = None
|
|
53
59
|
|
|
60
|
+
if out_data is not None:
|
|
61
|
+
self.out_data = out_data
|
|
62
|
+
if in_data is not None:
|
|
63
|
+
self.in_data = in_data
|
|
54
64
|
if tag is not None:
|
|
55
65
|
self.tag = tag
|
|
56
66
|
if transaction_id is not None:
|
|
57
67
|
self.transaction_id = transaction_id
|
|
58
68
|
|
|
69
|
+
@property
|
|
70
|
+
def out_data(self):
|
|
71
|
+
"""Gets the out_data of this InlineResponse200. # noqa: E501
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
:return: The out_data of this InlineResponse200. # noqa: E501
|
|
75
|
+
:rtype: OutData
|
|
76
|
+
"""
|
|
77
|
+
return self._out_data
|
|
78
|
+
|
|
79
|
+
@out_data.setter
|
|
80
|
+
def out_data(self, out_data):
|
|
81
|
+
"""Sets the out_data of this InlineResponse200.
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
:param out_data: The out_data of this InlineResponse200. # noqa: E501
|
|
85
|
+
:type out_data: OutData
|
|
86
|
+
"""
|
|
87
|
+
|
|
88
|
+
self._out_data = out_data
|
|
89
|
+
|
|
90
|
+
@property
|
|
91
|
+
def in_data(self):
|
|
92
|
+
"""Gets the in_data of this InlineResponse200. # noqa: E501
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
:return: The in_data of this InlineResponse200. # noqa: E501
|
|
96
|
+
:rtype: InData
|
|
97
|
+
"""
|
|
98
|
+
return self._in_data
|
|
99
|
+
|
|
100
|
+
@in_data.setter
|
|
101
|
+
def in_data(self, in_data):
|
|
102
|
+
"""Sets the in_data of this InlineResponse200.
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
:param in_data: The in_data of this InlineResponse200. # noqa: E501
|
|
106
|
+
:type in_data: InData
|
|
107
|
+
"""
|
|
108
|
+
|
|
109
|
+
self._in_data = in_data
|
|
110
|
+
|
|
59
111
|
@property
|
|
60
112
|
def tag(self):
|
|
61
113
|
"""Gets the tag of this InlineResponse200. # noqa: E501
|
|
@@ -39,7 +39,8 @@ class InlineResponse2001(object):
|
|
|
39
39
|
'log': 'str',
|
|
40
40
|
'pass_back_object': 'dict(str, object)',
|
|
41
41
|
'more_pages_available': 'int',
|
|
42
|
-
'elapsed_time': 'int'
|
|
42
|
+
'elapsed_time': 'int',
|
|
43
|
+
'core_lib_result_code': 'int'
|
|
43
44
|
}
|
|
44
45
|
|
|
45
46
|
attribute_map = {
|
|
@@ -50,10 +51,11 @@ class InlineResponse2001(object):
|
|
|
50
51
|
'log': 'log',
|
|
51
52
|
'pass_back_object': 'passBackObject',
|
|
52
53
|
'more_pages_available': 'morePagesAvailable',
|
|
53
|
-
'elapsed_time': 'elapsedTime'
|
|
54
|
+
'elapsed_time': 'elapsedTime',
|
|
55
|
+
'core_lib_result_code': 'CoreLibResultCode'
|
|
54
56
|
}
|
|
55
57
|
|
|
56
|
-
def __init__(self, chip_page=None, processing_finished=None, container_list=None, transaction_info=None, log=None, pass_back_object=None, more_pages_available=None, elapsed_time=None, local_vars_configuration=None): # noqa: E501
|
|
58
|
+
def __init__(self, chip_page=None, processing_finished=None, container_list=None, transaction_info=None, log=None, pass_back_object=None, more_pages_available=None, elapsed_time=None, core_lib_result_code=None, local_vars_configuration=None): # noqa: E501
|
|
57
59
|
"""InlineResponse2001 - a model defined in OpenAPI""" # noqa: E501
|
|
58
60
|
if local_vars_configuration is None:
|
|
59
61
|
local_vars_configuration = Configuration()
|
|
@@ -67,6 +69,7 @@ class InlineResponse2001(object):
|
|
|
67
69
|
self._pass_back_object = None
|
|
68
70
|
self._more_pages_available = None
|
|
69
71
|
self._elapsed_time = None
|
|
72
|
+
self._core_lib_result_code = None
|
|
70
73
|
self.discriminator = None
|
|
71
74
|
|
|
72
75
|
if chip_page is not None:
|
|
@@ -85,6 +88,8 @@ class InlineResponse2001(object):
|
|
|
85
88
|
self.more_pages_available = more_pages_available
|
|
86
89
|
if elapsed_time is not None:
|
|
87
90
|
self.elapsed_time = elapsed_time
|
|
91
|
+
if core_lib_result_code is not None:
|
|
92
|
+
self.core_lib_result_code = core_lib_result_code
|
|
88
93
|
|
|
89
94
|
@property
|
|
90
95
|
def chip_page(self):
|
|
@@ -260,6 +265,27 @@ class InlineResponse2001(object):
|
|
|
260
265
|
|
|
261
266
|
self._elapsed_time = elapsed_time
|
|
262
267
|
|
|
268
|
+
@property
|
|
269
|
+
def core_lib_result_code(self):
|
|
270
|
+
"""Gets the core_lib_result_code of this InlineResponse2001. # noqa: E501
|
|
271
|
+
|
|
272
|
+
|
|
273
|
+
:return: The core_lib_result_code of this InlineResponse2001. # noqa: E501
|
|
274
|
+
:rtype: int
|
|
275
|
+
"""
|
|
276
|
+
return self._core_lib_result_code
|
|
277
|
+
|
|
278
|
+
@core_lib_result_code.setter
|
|
279
|
+
def core_lib_result_code(self, core_lib_result_code):
|
|
280
|
+
"""Sets the core_lib_result_code of this InlineResponse2001.
|
|
281
|
+
|
|
282
|
+
|
|
283
|
+
:param core_lib_result_code: The core_lib_result_code of this InlineResponse2001. # noqa: E501
|
|
284
|
+
:type core_lib_result_code: int
|
|
285
|
+
"""
|
|
286
|
+
|
|
287
|
+
self._core_lib_result_code = core_lib_result_code
|
|
288
|
+
|
|
263
289
|
def to_dict(self):
|
|
264
290
|
"""Returns the model properties as a dict"""
|
|
265
291
|
result = {}
|
|
@@ -0,0 +1,99 @@
|
|
|
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
|
+
Make better MRZ detection on complex noisy backgrounds, like BW photocopy of some documents.
|
|
19
|
+
"""
|
|
20
|
+
class MrzDetectModeEnum(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
|
+
eMDM_Default = int("0")
|
|
28
|
+
|
|
29
|
+
eMDM_ResizeBinarizeWindow = int("1")
|
|
30
|
+
|
|
31
|
+
eMDM_BlurBeforeBinarization = int("2")
|
|
32
|
+
|
|
33
|
+
allowable_values = [eMDM_Default, eMDM_ResizeBinarizeWindow, eMDM_BlurBeforeBinarization] # noqa: E501
|
|
34
|
+
|
|
35
|
+
"""
|
|
36
|
+
Attributes:
|
|
37
|
+
openapi_types (dict): The key is attribute name
|
|
38
|
+
and the value is attribute type.
|
|
39
|
+
attribute_map (dict): The key is attribute name
|
|
40
|
+
and the value is json key in definition.
|
|
41
|
+
"""
|
|
42
|
+
openapi_types = {
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
attribute_map = {
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
def __init__(self, local_vars_configuration=None): # noqa: E501
|
|
49
|
+
"""MrzDetectModeEnum - a model defined in OpenAPI""" # noqa: E501
|
|
50
|
+
if local_vars_configuration is None:
|
|
51
|
+
local_vars_configuration = Configuration()
|
|
52
|
+
self.local_vars_configuration = local_vars_configuration
|
|
53
|
+
self.discriminator = None
|
|
54
|
+
|
|
55
|
+
def to_dict(self):
|
|
56
|
+
"""Returns the model properties as a dict"""
|
|
57
|
+
result = {}
|
|
58
|
+
|
|
59
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
60
|
+
value = getattr(self, attr)
|
|
61
|
+
if isinstance(value, list):
|
|
62
|
+
result[attr] = list(map(
|
|
63
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
64
|
+
value
|
|
65
|
+
))
|
|
66
|
+
elif hasattr(value, "to_dict"):
|
|
67
|
+
result[attr] = value.to_dict()
|
|
68
|
+
elif isinstance(value, dict):
|
|
69
|
+
result[attr] = dict(map(
|
|
70
|
+
lambda item: (item[0], item[1].to_dict())
|
|
71
|
+
if hasattr(item[1], "to_dict") else item,
|
|
72
|
+
value.items()
|
|
73
|
+
))
|
|
74
|
+
else:
|
|
75
|
+
result[attr] = value
|
|
76
|
+
|
|
77
|
+
return result
|
|
78
|
+
|
|
79
|
+
def to_str(self):
|
|
80
|
+
"""Returns the string representation of the model"""
|
|
81
|
+
return pprint.pformat(self.to_dict())
|
|
82
|
+
|
|
83
|
+
def __repr__(self):
|
|
84
|
+
"""For `print` and `pprint`"""
|
|
85
|
+
return self.to_str()
|
|
86
|
+
|
|
87
|
+
def __eq__(self, other):
|
|
88
|
+
"""Returns true if both objects are equal"""
|
|
89
|
+
if not isinstance(other, MrzDetectModeEnum):
|
|
90
|
+
return False
|
|
91
|
+
|
|
92
|
+
return self.to_dict() == other.to_dict()
|
|
93
|
+
|
|
94
|
+
def __ne__(self, other):
|
|
95
|
+
"""Returns true if both objects are not equal"""
|
|
96
|
+
if not isinstance(other, MrzDetectModeEnum):
|
|
97
|
+
return True
|
|
98
|
+
|
|
99
|
+
return self.to_dict() != other.to_dict()
|
|
@@ -33,7 +33,7 @@ class OutData(object):
|
|
|
33
33
|
"""
|
|
34
34
|
openapi_types = {
|
|
35
35
|
'url': 'str',
|
|
36
|
-
'images': 'list[
|
|
36
|
+
'images': 'list[OutDataTransactionImagesFieldValue]'
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
attribute_map = {
|
|
@@ -85,7 +85,7 @@ class OutData(object):
|
|
|
85
85
|
|
|
86
86
|
|
|
87
87
|
:return: The images of this OutData. # noqa: E501
|
|
88
|
-
:rtype: list[
|
|
88
|
+
:rtype: list[OutDataTransactionImagesFieldValue]
|
|
89
89
|
"""
|
|
90
90
|
return self._images
|
|
91
91
|
|
|
@@ -95,7 +95,7 @@ class OutData(object):
|
|
|
95
95
|
|
|
96
96
|
|
|
97
97
|
:param images: The images of this OutData. # noqa: E501
|
|
98
|
-
:type images: list[
|
|
98
|
+
:type images: list[OutDataTransactionImagesFieldValue]
|
|
99
99
|
"""
|
|
100
100
|
|
|
101
101
|
self._images = images
|
|
@@ -0,0 +1,227 @@
|
|
|
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 OutDataTransactionImagesFieldValue(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
|
+
'field_type': 'GraphicFieldType',
|
|
36
|
+
'light': 'Light',
|
|
37
|
+
'list_idx': 'int',
|
|
38
|
+
'page_idx': 'int',
|
|
39
|
+
'url': 'str'
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
attribute_map = {
|
|
43
|
+
'field_type': 'fieldType',
|
|
44
|
+
'light': 'light',
|
|
45
|
+
'list_idx': 'listIdx',
|
|
46
|
+
'page_idx': 'pageIdx',
|
|
47
|
+
'url': 'url'
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
def __init__(self, field_type=None, light=None, list_idx=None, page_idx=None, url=None, local_vars_configuration=None): # noqa: E501
|
|
51
|
+
"""OutDataTransactionImagesFieldValue - a model defined in OpenAPI""" # noqa: E501
|
|
52
|
+
if local_vars_configuration is None:
|
|
53
|
+
local_vars_configuration = Configuration()
|
|
54
|
+
self.local_vars_configuration = local_vars_configuration
|
|
55
|
+
|
|
56
|
+
self._field_type = None
|
|
57
|
+
self._light = None
|
|
58
|
+
self._list_idx = None
|
|
59
|
+
self._page_idx = None
|
|
60
|
+
self._url = None
|
|
61
|
+
self.discriminator = None
|
|
62
|
+
|
|
63
|
+
if field_type is not None:
|
|
64
|
+
self.field_type = field_type
|
|
65
|
+
if light is not None:
|
|
66
|
+
self.light = light
|
|
67
|
+
if list_idx is not None:
|
|
68
|
+
self.list_idx = list_idx
|
|
69
|
+
if page_idx is not None:
|
|
70
|
+
self.page_idx = page_idx
|
|
71
|
+
if url is not None:
|
|
72
|
+
self.url = url
|
|
73
|
+
|
|
74
|
+
@property
|
|
75
|
+
def field_type(self):
|
|
76
|
+
"""Gets the field_type of this OutDataTransactionImagesFieldValue. # noqa: E501
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
:return: The field_type of this OutDataTransactionImagesFieldValue. # noqa: E501
|
|
80
|
+
:rtype: GraphicFieldType
|
|
81
|
+
"""
|
|
82
|
+
return self._field_type
|
|
83
|
+
|
|
84
|
+
@field_type.setter
|
|
85
|
+
def field_type(self, field_type):
|
|
86
|
+
"""Sets the field_type of this OutDataTransactionImagesFieldValue.
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
:param field_type: The field_type of this OutDataTransactionImagesFieldValue. # noqa: E501
|
|
90
|
+
:type field_type: GraphicFieldType
|
|
91
|
+
"""
|
|
92
|
+
|
|
93
|
+
self._field_type = field_type
|
|
94
|
+
|
|
95
|
+
@property
|
|
96
|
+
def light(self):
|
|
97
|
+
"""Gets the light of this OutDataTransactionImagesFieldValue. # noqa: E501
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
:return: The light of this OutDataTransactionImagesFieldValue. # noqa: E501
|
|
101
|
+
:rtype: Light
|
|
102
|
+
"""
|
|
103
|
+
return self._light
|
|
104
|
+
|
|
105
|
+
@light.setter
|
|
106
|
+
def light(self, light):
|
|
107
|
+
"""Sets the light of this OutDataTransactionImagesFieldValue.
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
:param light: The light of this OutDataTransactionImagesFieldValue. # noqa: E501
|
|
111
|
+
:type light: Light
|
|
112
|
+
"""
|
|
113
|
+
|
|
114
|
+
self._light = light
|
|
115
|
+
|
|
116
|
+
@property
|
|
117
|
+
def list_idx(self):
|
|
118
|
+
"""Gets the list_idx of this OutDataTransactionImagesFieldValue. # noqa: E501
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
:return: The list_idx of this OutDataTransactionImagesFieldValue. # noqa: E501
|
|
122
|
+
:rtype: int
|
|
123
|
+
"""
|
|
124
|
+
return self._list_idx
|
|
125
|
+
|
|
126
|
+
@list_idx.setter
|
|
127
|
+
def list_idx(self, list_idx):
|
|
128
|
+
"""Sets the list_idx of this OutDataTransactionImagesFieldValue.
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
:param list_idx: The list_idx of this OutDataTransactionImagesFieldValue. # noqa: E501
|
|
132
|
+
:type list_idx: int
|
|
133
|
+
"""
|
|
134
|
+
|
|
135
|
+
self._list_idx = list_idx
|
|
136
|
+
|
|
137
|
+
@property
|
|
138
|
+
def page_idx(self):
|
|
139
|
+
"""Gets the page_idx of this OutDataTransactionImagesFieldValue. # noqa: E501
|
|
140
|
+
|
|
141
|
+
Page index of the image from input list # noqa: E501
|
|
142
|
+
|
|
143
|
+
:return: The page_idx of this OutDataTransactionImagesFieldValue. # noqa: E501
|
|
144
|
+
:rtype: int
|
|
145
|
+
"""
|
|
146
|
+
return self._page_idx
|
|
147
|
+
|
|
148
|
+
@page_idx.setter
|
|
149
|
+
def page_idx(self, page_idx):
|
|
150
|
+
"""Sets the page_idx of this OutDataTransactionImagesFieldValue.
|
|
151
|
+
|
|
152
|
+
Page index of the image from input list # noqa: E501
|
|
153
|
+
|
|
154
|
+
:param page_idx: The page_idx of this OutDataTransactionImagesFieldValue. # noqa: E501
|
|
155
|
+
:type page_idx: int
|
|
156
|
+
"""
|
|
157
|
+
|
|
158
|
+
self._page_idx = page_idx
|
|
159
|
+
|
|
160
|
+
@property
|
|
161
|
+
def url(self):
|
|
162
|
+
"""Gets the url of this OutDataTransactionImagesFieldValue. # noqa: E501
|
|
163
|
+
|
|
164
|
+
Image url # noqa: E501
|
|
165
|
+
|
|
166
|
+
:return: The url of this OutDataTransactionImagesFieldValue. # noqa: E501
|
|
167
|
+
:rtype: str
|
|
168
|
+
"""
|
|
169
|
+
return self._url
|
|
170
|
+
|
|
171
|
+
@url.setter
|
|
172
|
+
def url(self, url):
|
|
173
|
+
"""Sets the url of this OutDataTransactionImagesFieldValue.
|
|
174
|
+
|
|
175
|
+
Image url # noqa: E501
|
|
176
|
+
|
|
177
|
+
:param url: The url of this OutDataTransactionImagesFieldValue. # noqa: E501
|
|
178
|
+
:type url: str
|
|
179
|
+
"""
|
|
180
|
+
|
|
181
|
+
self._url = url
|
|
182
|
+
|
|
183
|
+
def to_dict(self):
|
|
184
|
+
"""Returns the model properties as a dict"""
|
|
185
|
+
result = {}
|
|
186
|
+
|
|
187
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
188
|
+
value = getattr(self, attr)
|
|
189
|
+
if isinstance(value, list):
|
|
190
|
+
result[attr] = list(map(
|
|
191
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
192
|
+
value
|
|
193
|
+
))
|
|
194
|
+
elif hasattr(value, "to_dict"):
|
|
195
|
+
result[attr] = value.to_dict()
|
|
196
|
+
elif isinstance(value, dict):
|
|
197
|
+
result[attr] = dict(map(
|
|
198
|
+
lambda item: (item[0], item[1].to_dict())
|
|
199
|
+
if hasattr(item[1], "to_dict") else item,
|
|
200
|
+
value.items()
|
|
201
|
+
))
|
|
202
|
+
else:
|
|
203
|
+
result[attr] = value
|
|
204
|
+
|
|
205
|
+
return result
|
|
206
|
+
|
|
207
|
+
def to_str(self):
|
|
208
|
+
"""Returns the string representation of the model"""
|
|
209
|
+
return pprint.pformat(self.to_dict())
|
|
210
|
+
|
|
211
|
+
def __repr__(self):
|
|
212
|
+
"""For `print` and `pprint`"""
|
|
213
|
+
return self.to_str()
|
|
214
|
+
|
|
215
|
+
def __eq__(self, other):
|
|
216
|
+
"""Returns true if both objects are equal"""
|
|
217
|
+
if not isinstance(other, OutDataTransactionImagesFieldValue):
|
|
218
|
+
return False
|
|
219
|
+
|
|
220
|
+
return self.to_dict() == other.to_dict()
|
|
221
|
+
|
|
222
|
+
def __ne__(self, other):
|
|
223
|
+
"""Returns true if both objects are not equal"""
|
|
224
|
+
if not isinstance(other, OutDataTransactionImagesFieldValue):
|
|
225
|
+
return True
|
|
226
|
+
|
|
227
|
+
return self.to_dict() != other.to_dict()
|