regula.documentreader.webclient 7.5.131.dev0__py3-none-any.whl → 7.5.133.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.
@@ -4,14 +4,14 @@ from typing import Union
4
4
  from regula.documentreader.webclient import ProcessResponse
5
5
  from regula.documentreader.webclient.gen import ApiClient
6
6
  from regula.documentreader.webclient.ext.models.recognition_response import RecognitionResponse
7
- from regula.documentreader.webclient.gen.api import DefaultApi, ProcessApi
7
+ from regula.documentreader.webclient.gen.api import HealthcheckApi, ProcessApi
8
8
  from regula.documentreader.webclient.gen.configuration import Configuration
9
9
  from regula.documentreader.webclient.gen.models import ProcessRequest
10
10
 
11
11
  Base64String = str
12
12
 
13
13
 
14
- class DocumentReaderApi(DefaultApi, ProcessApi):
14
+ class DocumentReaderApi(HealthcheckApi, ProcessApi):
15
15
 
16
16
  def __init__(self, host=None, debug=False, verify_ssl=True, api_client=None):
17
17
  if api_client:
@@ -11,7 +11,7 @@ from __future__ import absolute_import
11
11
  __version__ = "1.0.0"
12
12
 
13
13
  # import apis into sdk package
14
- from regula.documentreader.webclient.gen.api.default_api import DefaultApi
14
+ from regula.documentreader.webclient.gen.api.healthcheck_api import HealthcheckApi
15
15
  from regula.documentreader.webclient.gen.api.process_api import ProcessApi
16
16
  from regula.documentreader.webclient.gen.api.transaction_api import TransactionApi
17
17
 
@@ -48,6 +48,7 @@ from regula.documentreader.webclient.gen.models.data_module import DataModule
48
48
  from regula.documentreader.webclient.gen.models.details_optical import DetailsOptical
49
49
  from regula.documentreader.webclient.gen.models.details_rfid import DetailsRFID
50
50
  from regula.documentreader.webclient.gen.models.device_info import DeviceInfo
51
+ from regula.documentreader.webclient.gen.models.device_info2 import DeviceInfo2
51
52
  from regula.documentreader.webclient.gen.models.doc_bar_code_info import DocBarCodeInfo
52
53
  from regula.documentreader.webclient.gen.models.doc_bar_code_info_all_of import DocBarCodeInfoAllOf
53
54
  from regula.documentreader.webclient.gen.models.doc_bar_code_info_fields_list import DocBarCodeInfoFieldsList
@@ -3,6 +3,6 @@ from __future__ import absolute_import
3
3
  # flake8: noqa
4
4
 
5
5
  # import apis into api package
6
- from regula.documentreader.webclient.gen.api.default_api import DefaultApi
6
+ from regula.documentreader.webclient.gen.api.healthcheck_api import HealthcheckApi
7
7
  from regula.documentreader.webclient.gen.api.process_api import ProcessApi
8
8
  from regula.documentreader.webclient.gen.api.transaction_api import TransactionApi
@@ -0,0 +1,412 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Generated by: https://openapi-generator.tech
5
+ """
6
+
7
+ from __future__ import absolute_import
8
+
9
+ import re # noqa: F401
10
+
11
+ # python 2 and python 3 compatibility library
12
+ import six
13
+
14
+ from regula.documentreader.webclient.gen.api_client import ApiClient
15
+ from regula.documentreader.webclient.gen.exceptions import ( # noqa: F401
16
+ ApiTypeError,
17
+ ApiValueError
18
+ )
19
+
20
+
21
+ class HealthcheckApi(object):
22
+ """NOTE: This class is auto generated by OpenAPI Generator
23
+ Ref: https://openapi-generator.tech
24
+
25
+ Do not edit the class manually.
26
+ """
27
+
28
+ def __init__(self, api_client=None):
29
+ if api_client is None:
30
+ api_client = ApiClient()
31
+ self.api_client = api_client
32
+
33
+ def healthz(self, **kwargs): # noqa: E501
34
+ """Server healthcheck # noqa: E501
35
+
36
+ This method makes a synchronous HTTP request by default. To make an
37
+ asynchronous HTTP request, please pass async_req=True
38
+
39
+ >>> thread = api.healthz(async_req=True)
40
+ >>> result = thread.get()
41
+
42
+ :param x_request_id:
43
+ :type x_request_id: str
44
+ :param async_req: Whether to execute the request asynchronously.
45
+ :type async_req: bool, optional
46
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
47
+ be returned without reading/decoding response
48
+ data. Default is True.
49
+ :type _preload_content: bool, optional
50
+ :param _request_timeout: timeout setting for this request. If one
51
+ number provided, it will be total request
52
+ timeout. It can also be a pair (tuple) of
53
+ (connection, read) timeouts.
54
+ :return: Returns the result object.
55
+ If the method is called asynchronously,
56
+ returns the request thread.
57
+ :rtype: DeviceInfo2
58
+ """
59
+ kwargs['_return_http_data_only'] = True
60
+ return self.healthz_with_http_info(**kwargs) # noqa: E501
61
+
62
+ def healthz_with_http_info(self, **kwargs): # noqa: E501
63
+ """Server healthcheck # noqa: E501
64
+
65
+ This method makes a synchronous HTTP request by default. To make an
66
+ asynchronous HTTP request, please pass async_req=True
67
+
68
+ >>> thread = api.healthz_with_http_info(async_req=True)
69
+ >>> result = thread.get()
70
+
71
+ :param x_request_id:
72
+ :type x_request_id: str
73
+ :param async_req: Whether to execute the request asynchronously.
74
+ :type async_req: bool, optional
75
+ :param _return_http_data_only: response data without head status code
76
+ and headers
77
+ :type _return_http_data_only: bool, optional
78
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
79
+ be returned without reading/decoding response
80
+ data. Default is True.
81
+ :type _preload_content: bool, optional
82
+ :param _request_timeout: timeout setting for this request. If one
83
+ number provided, it will be total request
84
+ timeout. It can also be a pair (tuple) of
85
+ (connection, read) timeouts.
86
+ :param _request_auth: set to override the auth_settings for an a single
87
+ request; this effectively ignores the authentication
88
+ in the spec for a single request.
89
+ :type _request_auth: dict, optional
90
+ :return: Returns the result object.
91
+ If the method is called asynchronously,
92
+ returns the request thread.
93
+ :rtype: tuple(DeviceInfo2, status_code(int), headers(HTTPHeaderDict))
94
+ """
95
+
96
+ local_var_params = locals()
97
+
98
+ all_params = [
99
+ 'x_request_id'
100
+ ]
101
+ all_params.extend(
102
+ [
103
+ 'async_req',
104
+ '_return_http_data_only',
105
+ '_preload_content',
106
+ '_request_timeout',
107
+ '_request_auth'
108
+ ]
109
+ )
110
+
111
+ for key, val in six.iteritems(local_var_params['kwargs']):
112
+ if key not in all_params:
113
+ raise ApiTypeError(
114
+ "Got an unexpected keyword argument '%s'"
115
+ " to method healthz" % key
116
+ )
117
+ local_var_params[key] = val
118
+ del local_var_params['kwargs']
119
+
120
+ collection_formats = {}
121
+
122
+ path_params = {}
123
+
124
+ query_params = []
125
+
126
+ header_params = {}
127
+ if 'x_request_id' in local_var_params:
128
+ header_params['X-RequestID'] = local_var_params['x_request_id'] # noqa: E501
129
+
130
+ form_params = []
131
+ local_var_files = {}
132
+
133
+ body_params = None
134
+ # HTTP header `Accept`
135
+ header_params['Accept'] = self.api_client.select_header_accept(
136
+ ['application/json']) # noqa: E501
137
+
138
+ # Authentication setting
139
+ auth_settings = [] # noqa: E501
140
+
141
+ response_types_map = {
142
+ 200: "DeviceInfo2",
143
+ }
144
+
145
+ return self.api_client.call_api(
146
+ '/api/healthz', 'GET',
147
+ path_params,
148
+ query_params,
149
+ header_params,
150
+ body=body_params,
151
+ post_params=form_params,
152
+ files=local_var_files,
153
+ response_types_map=response_types_map,
154
+ auth_settings=auth_settings,
155
+ async_req=local_var_params.get('async_req'),
156
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
157
+ _preload_content=local_var_params.get('_preload_content', True),
158
+ _request_timeout=local_var_params.get('_request_timeout'),
159
+ collection_formats=collection_formats,
160
+ _request_auth=local_var_params.get('_request_auth'))
161
+
162
+ def ping(self, **kwargs): # noqa: E501
163
+ """Server health check # noqa: E501
164
+
165
+ This method makes a synchronous HTTP request by default. To make an
166
+ asynchronous HTTP request, please pass async_req=True
167
+
168
+ >>> thread = api.ping(async_req=True)
169
+ >>> result = thread.get()
170
+
171
+ :param x_request_id:
172
+ :type x_request_id: str
173
+ :param async_req: Whether to execute the request asynchronously.
174
+ :type async_req: bool, optional
175
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
176
+ be returned without reading/decoding response
177
+ data. Default is True.
178
+ :type _preload_content: bool, optional
179
+ :param _request_timeout: timeout setting for this request. If one
180
+ number provided, it will be total request
181
+ timeout. It can also be a pair (tuple) of
182
+ (connection, read) timeouts.
183
+ :return: Returns the result object.
184
+ If the method is called asynchronously,
185
+ returns the request thread.
186
+ :rtype: DeviceInfo
187
+ """
188
+ kwargs['_return_http_data_only'] = True
189
+ return self.ping_with_http_info(**kwargs) # noqa: E501
190
+
191
+ def ping_with_http_info(self, **kwargs): # noqa: E501
192
+ """Server health check # noqa: E501
193
+
194
+ This method makes a synchronous HTTP request by default. To make an
195
+ asynchronous HTTP request, please pass async_req=True
196
+
197
+ >>> thread = api.ping_with_http_info(async_req=True)
198
+ >>> result = thread.get()
199
+
200
+ :param x_request_id:
201
+ :type x_request_id: str
202
+ :param async_req: Whether to execute the request asynchronously.
203
+ :type async_req: bool, optional
204
+ :param _return_http_data_only: response data without head status code
205
+ and headers
206
+ :type _return_http_data_only: bool, optional
207
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
208
+ be returned without reading/decoding response
209
+ data. Default is True.
210
+ :type _preload_content: bool, optional
211
+ :param _request_timeout: timeout setting for this request. If one
212
+ number provided, it will be total request
213
+ timeout. It can also be a pair (tuple) of
214
+ (connection, read) timeouts.
215
+ :param _request_auth: set to override the auth_settings for an a single
216
+ request; this effectively ignores the authentication
217
+ in the spec for a single request.
218
+ :type _request_auth: dict, optional
219
+ :return: Returns the result object.
220
+ If the method is called asynchronously,
221
+ returns the request thread.
222
+ :rtype: tuple(DeviceInfo, status_code(int), headers(HTTPHeaderDict))
223
+ """
224
+
225
+ local_var_params = locals()
226
+
227
+ all_params = [
228
+ 'x_request_id'
229
+ ]
230
+ all_params.extend(
231
+ [
232
+ 'async_req',
233
+ '_return_http_data_only',
234
+ '_preload_content',
235
+ '_request_timeout',
236
+ '_request_auth'
237
+ ]
238
+ )
239
+
240
+ for key, val in six.iteritems(local_var_params['kwargs']):
241
+ if key not in all_params:
242
+ raise ApiTypeError(
243
+ "Got an unexpected keyword argument '%s'"
244
+ " to method ping" % key
245
+ )
246
+ local_var_params[key] = val
247
+ del local_var_params['kwargs']
248
+
249
+ collection_formats = {}
250
+
251
+ path_params = {}
252
+
253
+ query_params = []
254
+
255
+ header_params = {}
256
+ if 'x_request_id' in local_var_params:
257
+ header_params['X-RequestID'] = local_var_params['x_request_id'] # noqa: E501
258
+
259
+ form_params = []
260
+ local_var_files = {}
261
+
262
+ body_params = None
263
+ # HTTP header `Accept`
264
+ header_params['Accept'] = self.api_client.select_header_accept(
265
+ ['application/json']) # noqa: E501
266
+
267
+ # Authentication setting
268
+ auth_settings = [] # noqa: E501
269
+
270
+ response_types_map = {
271
+ 200: "DeviceInfo",
272
+ }
273
+
274
+ return self.api_client.call_api(
275
+ '/api/ping', 'GET',
276
+ path_params,
277
+ query_params,
278
+ header_params,
279
+ body=body_params,
280
+ post_params=form_params,
281
+ files=local_var_files,
282
+ response_types_map=response_types_map,
283
+ auth_settings=auth_settings,
284
+ async_req=local_var_params.get('async_req'),
285
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
286
+ _preload_content=local_var_params.get('_preload_content', True),
287
+ _request_timeout=local_var_params.get('_request_timeout'),
288
+ collection_formats=collection_formats,
289
+ _request_auth=local_var_params.get('_request_auth'))
290
+
291
+ def readyz(self, **kwargs): # noqa: E501
292
+ """License healthcheck # noqa: E501
293
+
294
+ This method makes a synchronous HTTP request by default. To make an
295
+ asynchronous HTTP request, please pass async_req=True
296
+
297
+ >>> thread = api.readyz(async_req=True)
298
+ >>> result = thread.get()
299
+
300
+ :param x_request_id:
301
+ :type x_request_id: str
302
+ :param async_req: Whether to execute the request asynchronously.
303
+ :type async_req: bool, optional
304
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
305
+ be returned without reading/decoding response
306
+ data. Default is True.
307
+ :type _preload_content: bool, optional
308
+ :param _request_timeout: timeout setting for this request. If one
309
+ number provided, it will be total request
310
+ timeout. It can also be a pair (tuple) of
311
+ (connection, read) timeouts.
312
+ :return: Returns the result object.
313
+ If the method is called asynchronously,
314
+ returns the request thread.
315
+ :rtype: None
316
+ """
317
+ kwargs['_return_http_data_only'] = True
318
+ return self.readyz_with_http_info(**kwargs) # noqa: E501
319
+
320
+ def readyz_with_http_info(self, **kwargs): # noqa: E501
321
+ """License healthcheck # noqa: E501
322
+
323
+ This method makes a synchronous HTTP request by default. To make an
324
+ asynchronous HTTP request, please pass async_req=True
325
+
326
+ >>> thread = api.readyz_with_http_info(async_req=True)
327
+ >>> result = thread.get()
328
+
329
+ :param x_request_id:
330
+ :type x_request_id: str
331
+ :param async_req: Whether to execute the request asynchronously.
332
+ :type async_req: bool, optional
333
+ :param _return_http_data_only: response data without head status code
334
+ and headers
335
+ :type _return_http_data_only: bool, optional
336
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
337
+ be returned without reading/decoding response
338
+ data. Default is True.
339
+ :type _preload_content: bool, optional
340
+ :param _request_timeout: timeout setting for this request. If one
341
+ number provided, it will be total request
342
+ timeout. It can also be a pair (tuple) of
343
+ (connection, read) timeouts.
344
+ :param _request_auth: set to override the auth_settings for an a single
345
+ request; this effectively ignores the authentication
346
+ in the spec for a single request.
347
+ :type _request_auth: dict, optional
348
+ :return: Returns the result object.
349
+ If the method is called asynchronously,
350
+ returns the request thread.
351
+ :rtype: None
352
+ """
353
+
354
+ local_var_params = locals()
355
+
356
+ all_params = [
357
+ 'x_request_id'
358
+ ]
359
+ all_params.extend(
360
+ [
361
+ 'async_req',
362
+ '_return_http_data_only',
363
+ '_preload_content',
364
+ '_request_timeout',
365
+ '_request_auth'
366
+ ]
367
+ )
368
+
369
+ for key, val in six.iteritems(local_var_params['kwargs']):
370
+ if key not in all_params:
371
+ raise ApiTypeError(
372
+ "Got an unexpected keyword argument '%s'"
373
+ " to method readyz" % key
374
+ )
375
+ local_var_params[key] = val
376
+ del local_var_params['kwargs']
377
+
378
+ collection_formats = {}
379
+
380
+ path_params = {}
381
+
382
+ query_params = []
383
+
384
+ header_params = {}
385
+ if 'x_request_id' in local_var_params:
386
+ header_params['X-RequestID'] = local_var_params['x_request_id'] # noqa: E501
387
+
388
+ form_params = []
389
+ local_var_files = {}
390
+
391
+ body_params = None
392
+ # Authentication setting
393
+ auth_settings = [] # noqa: E501
394
+
395
+ response_types_map = {}
396
+
397
+ return self.api_client.call_api(
398
+ '/api/readyz', 'GET',
399
+ path_params,
400
+ query_params,
401
+ header_params,
402
+ body=body_params,
403
+ post_params=form_params,
404
+ files=local_var_files,
405
+ response_types_map=response_types_map,
406
+ auth_settings=auth_settings,
407
+ async_req=local_var_params.get('async_req'),
408
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
409
+ _preload_content=local_var_params.get('_preload_content', True),
410
+ _request_timeout=local_var_params.get('_request_timeout'),
411
+ collection_formats=collection_formats,
412
+ _request_auth=local_var_params.get('_request_auth'))
@@ -31,6 +31,7 @@ from regula.documentreader.webclient.gen.models.data_module import DataModule
31
31
  from regula.documentreader.webclient.gen.models.details_optical import DetailsOptical
32
32
  from regula.documentreader.webclient.gen.models.details_rfid import DetailsRFID
33
33
  from regula.documentreader.webclient.gen.models.device_info import DeviceInfo
34
+ from regula.documentreader.webclient.gen.models.device_info2 import DeviceInfo2
34
35
  from regula.documentreader.webclient.gen.models.doc_bar_code_info import DocBarCodeInfo
35
36
  from regula.documentreader.webclient.gen.models.doc_bar_code_info_all_of import DocBarCodeInfoAllOf
36
37
  from regula.documentreader.webclient.gen.models.doc_bar_code_info_fields_list import DocBarCodeInfoFieldsList
@@ -0,0 +1,275 @@
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 DeviceInfo2(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
+ 'app': 'str',
36
+ 'license_id': 'str',
37
+ 'license_type': 'str',
38
+ 'license_serial': 'str',
39
+ 'license_valid_until': 'datetime',
40
+ 'scenarios': 'list[str]',
41
+ 'version': 'str'
42
+ }
43
+
44
+ attribute_map = {
45
+ 'app': 'app',
46
+ 'license_id': 'licenseId',
47
+ 'license_type': 'licenseType',
48
+ 'license_serial': 'licenseSerial',
49
+ 'license_valid_until': 'licenseValidUntil',
50
+ 'scenarios': 'scenarios',
51
+ 'version': 'version'
52
+ }
53
+
54
+ def __init__(self, app=None, license_id=None, license_type=None, license_serial=None, license_valid_until=None, scenarios=None, version=None, local_vars_configuration=None): # noqa: E501
55
+ """DeviceInfo2 - a model defined in OpenAPI""" # noqa: E501
56
+ if local_vars_configuration is None:
57
+ local_vars_configuration = Configuration()
58
+ self.local_vars_configuration = local_vars_configuration
59
+
60
+ self._app = None
61
+ self._license_id = None
62
+ self._license_type = None
63
+ self._license_serial = None
64
+ self._license_valid_until = None
65
+ self._scenarios = None
66
+ self._version = None
67
+ self.discriminator = None
68
+
69
+ if app is not None:
70
+ self.app = app
71
+ if license_id is not None:
72
+ self.license_id = license_id
73
+ if license_type is not None:
74
+ self.license_type = license_type
75
+ if license_serial is not None:
76
+ self.license_serial = license_serial
77
+ if license_valid_until is not None:
78
+ self.license_valid_until = license_valid_until
79
+ if scenarios is not None:
80
+ self.scenarios = scenarios
81
+ if version is not None:
82
+ self.version = version
83
+
84
+ @property
85
+ def app(self):
86
+ """Gets the app of this DeviceInfo2. # noqa: E501
87
+
88
+
89
+ :return: The app of this DeviceInfo2. # noqa: E501
90
+ :rtype: str
91
+ """
92
+ return self._app
93
+
94
+ @app.setter
95
+ def app(self, app):
96
+ """Sets the app of this DeviceInfo2.
97
+
98
+
99
+ :param app: The app of this DeviceInfo2. # noqa: E501
100
+ :type app: str
101
+ """
102
+
103
+ self._app = app
104
+
105
+ @property
106
+ def license_id(self):
107
+ """Gets the license_id of this DeviceInfo2. # noqa: E501
108
+
109
+
110
+ :return: The license_id of this DeviceInfo2. # noqa: E501
111
+ :rtype: str
112
+ """
113
+ return self._license_id
114
+
115
+ @license_id.setter
116
+ def license_id(self, license_id):
117
+ """Sets the license_id of this DeviceInfo2.
118
+
119
+
120
+ :param license_id: The license_id of this DeviceInfo2. # noqa: E501
121
+ :type license_id: str
122
+ """
123
+
124
+ self._license_id = license_id
125
+
126
+ @property
127
+ def license_type(self):
128
+ """Gets the license_type of this DeviceInfo2. # noqa: E501
129
+
130
+
131
+ :return: The license_type of this DeviceInfo2. # noqa: E501
132
+ :rtype: str
133
+ """
134
+ return self._license_type
135
+
136
+ @license_type.setter
137
+ def license_type(self, license_type):
138
+ """Sets the license_type of this DeviceInfo2.
139
+
140
+
141
+ :param license_type: The license_type of this DeviceInfo2. # noqa: E501
142
+ :type license_type: str
143
+ """
144
+
145
+ self._license_type = license_type
146
+
147
+ @property
148
+ def license_serial(self):
149
+ """Gets the license_serial of this DeviceInfo2. # noqa: E501
150
+
151
+
152
+ :return: The license_serial of this DeviceInfo2. # noqa: E501
153
+ :rtype: str
154
+ """
155
+ return self._license_serial
156
+
157
+ @license_serial.setter
158
+ def license_serial(self, license_serial):
159
+ """Sets the license_serial of this DeviceInfo2.
160
+
161
+
162
+ :param license_serial: The license_serial of this DeviceInfo2. # noqa: E501
163
+ :type license_serial: str
164
+ """
165
+
166
+ self._license_serial = license_serial
167
+
168
+ @property
169
+ def license_valid_until(self):
170
+ """Gets the license_valid_until of this DeviceInfo2. # noqa: E501
171
+
172
+
173
+ :return: The license_valid_until of this DeviceInfo2. # noqa: E501
174
+ :rtype: datetime
175
+ """
176
+ return self._license_valid_until
177
+
178
+ @license_valid_until.setter
179
+ def license_valid_until(self, license_valid_until):
180
+ """Sets the license_valid_until of this DeviceInfo2.
181
+
182
+
183
+ :param license_valid_until: The license_valid_until of this DeviceInfo2. # noqa: E501
184
+ :type license_valid_until: datetime
185
+ """
186
+
187
+ self._license_valid_until = license_valid_until
188
+
189
+ @property
190
+ def scenarios(self):
191
+ """Gets the scenarios of this DeviceInfo2. # noqa: E501
192
+
193
+
194
+ :return: The scenarios of this DeviceInfo2. # noqa: E501
195
+ :rtype: list[str]
196
+ """
197
+ return self._scenarios
198
+
199
+ @scenarios.setter
200
+ def scenarios(self, scenarios):
201
+ """Sets the scenarios of this DeviceInfo2.
202
+
203
+
204
+ :param scenarios: The scenarios of this DeviceInfo2. # noqa: E501
205
+ :type scenarios: list[str]
206
+ """
207
+
208
+ self._scenarios = scenarios
209
+
210
+ @property
211
+ def version(self):
212
+ """Gets the version of this DeviceInfo2. # noqa: E501
213
+
214
+
215
+ :return: The version of this DeviceInfo2. # noqa: E501
216
+ :rtype: str
217
+ """
218
+ return self._version
219
+
220
+ @version.setter
221
+ def version(self, version):
222
+ """Sets the version of this DeviceInfo2.
223
+
224
+
225
+ :param version: The version of this DeviceInfo2. # noqa: E501
226
+ :type version: str
227
+ """
228
+
229
+ self._version = version
230
+
231
+ def to_dict(self):
232
+ """Returns the model properties as a dict"""
233
+ result = {}
234
+
235
+ for attr, _ in six.iteritems(self.openapi_types):
236
+ value = getattr(self, attr)
237
+ if isinstance(value, list):
238
+ result[attr] = list(map(
239
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
240
+ value
241
+ ))
242
+ elif hasattr(value, "to_dict"):
243
+ result[attr] = value.to_dict()
244
+ elif isinstance(value, dict):
245
+ result[attr] = dict(map(
246
+ lambda item: (item[0], item[1].to_dict())
247
+ if hasattr(item[1], "to_dict") else item,
248
+ value.items()
249
+ ))
250
+ else:
251
+ result[attr] = value
252
+
253
+ return result
254
+
255
+ def to_str(self):
256
+ """Returns the string representation of the model"""
257
+ return pprint.pformat(self.to_dict())
258
+
259
+ def __repr__(self):
260
+ """For `print` and `pprint`"""
261
+ return self.to_str()
262
+
263
+ def __eq__(self, other):
264
+ """Returns true if both objects are equal"""
265
+ if not isinstance(other, DeviceInfo2):
266
+ return False
267
+
268
+ return self.to_dict() == other.to_dict()
269
+
270
+ def __ne__(self, other):
271
+ """Returns true if both objects are not equal"""
272
+ if not isinstance(other, DeviceInfo2):
273
+ return True
274
+
275
+ return self.to_dict() != other.to_dict()
@@ -70,6 +70,7 @@ class ProcessParams(object):
70
70
  'return_uncropped_image': 'bool',
71
71
  'mrz_formats_filter': 'list[MRZFormat]',
72
72
  'force_read_mrz_before_locate': 'bool',
73
+ 'force_barcode_checks': 'bool',
73
74
  'parse_barcodes': 'bool',
74
75
  'convert_case': 'TextPostProcessing',
75
76
  'split_names': 'bool',
@@ -127,6 +128,7 @@ class ProcessParams(object):
127
128
  'return_uncropped_image': 'returnUncroppedImage',
128
129
  'mrz_formats_filter': 'mrzFormatsFilter',
129
130
  'force_read_mrz_before_locate': 'forceReadMrzBeforeLocate',
131
+ 'force_barcode_checks': 'forceBarcodeChecks',
130
132
  'parse_barcodes': 'parseBarcodes',
131
133
  'convert_case': 'convertCase',
132
134
  'split_names': 'splitNames',
@@ -145,7 +147,7 @@ class ProcessParams(object):
145
147
  'generate_numeric_codes': 'generateNumericCodes'
146
148
  }
147
149
 
148
- def __init__(self, lcid_filter=None, lcid_ignore_filter=None, one_shot_identification=None, use_face_api=None, face_api=None, do_detect_can=None, image_output_max_height=None, image_output_max_width=None, 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, 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, device_id=None, device_type=None, device_type_hex=None, ignore_device_id_from_image=None, document_id_list=None, rfid=None, check_auth=None, auth_params=None, mrz_detect_mode=None, generate_numeric_codes=None, local_vars_configuration=None): # noqa: E501
150
+ def __init__(self, lcid_filter=None, lcid_ignore_filter=None, one_shot_identification=None, use_face_api=None, face_api=None, do_detect_can=None, image_output_max_height=None, image_output_max_width=None, 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, 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, force_barcode_checks=None, parse_barcodes=None, convert_case=None, split_names=None, disable_perforation_ocr=None, document_group_filter=None, process_auth=None, device_id=None, device_type=None, device_type_hex=None, ignore_device_id_from_image=None, document_id_list=None, rfid=None, check_auth=None, auth_params=None, mrz_detect_mode=None, generate_numeric_codes=None, local_vars_configuration=None): # noqa: E501
149
151
  """ProcessParams - a model defined in OpenAPI""" # noqa: E501
150
152
  if local_vars_configuration is None:
151
153
  local_vars_configuration = Configuration()
@@ -189,6 +191,7 @@ class ProcessParams(object):
189
191
  self._return_uncropped_image = None
190
192
  self._mrz_formats_filter = None
191
193
  self._force_read_mrz_before_locate = None
194
+ self._force_barcode_checks = None
192
195
  self._parse_barcodes = None
193
196
  self._convert_case = None
194
197
  self._split_names = None
@@ -282,6 +285,8 @@ class ProcessParams(object):
282
285
  self.mrz_formats_filter = mrz_formats_filter
283
286
  if force_read_mrz_before_locate is not None:
284
287
  self.force_read_mrz_before_locate = force_read_mrz_before_locate
288
+ if force_barcode_checks is not None:
289
+ self.force_barcode_checks = force_barcode_checks
285
290
  if parse_barcodes is not None:
286
291
  self.parse_barcodes = parse_barcodes
287
292
  if convert_case is not None:
@@ -1179,6 +1184,29 @@ class ProcessParams(object):
1179
1184
 
1180
1185
  self._force_read_mrz_before_locate = force_read_mrz_before_locate
1181
1186
 
1187
+ @property
1188
+ def force_barcode_checks(self):
1189
+ """Gets the force_barcode_checks of this ProcessParams. # noqa: E501
1190
+
1191
+ Allows you to fail both the Barcode format check and overall statuses of the document if the Digital signature check is not performed # noqa: E501
1192
+
1193
+ :return: The force_barcode_checks of this ProcessParams. # noqa: E501
1194
+ :rtype: bool
1195
+ """
1196
+ return self._force_barcode_checks
1197
+
1198
+ @force_barcode_checks.setter
1199
+ def force_barcode_checks(self, force_barcode_checks):
1200
+ """Sets the force_barcode_checks of this ProcessParams.
1201
+
1202
+ Allows you to fail both the Barcode format check and overall statuses of the document if the Digital signature check is not performed # noqa: E501
1203
+
1204
+ :param force_barcode_checks: The force_barcode_checks of this ProcessParams. # noqa: E501
1205
+ :type force_barcode_checks: bool
1206
+ """
1207
+
1208
+ self._force_barcode_checks = force_barcode_checks
1209
+
1182
1210
  @property
1183
1211
  def parse_barcodes(self):
1184
1212
  """Gets the parse_barcodes of this ProcessParams. # noqa: E501
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: regula.documentreader.webclient
3
- Version: 7.5.131.dev0
3
+ Version: 7.5.133.dev0
4
4
  Summary: Regula's Document Reader python client
5
5
  Home-page: https://regulaforensics.com
6
6
  Author: Regula Forensics, Inc.
@@ -3,7 +3,7 @@ regula/documentreader/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3h
3
3
  regula/documentreader/webclient/__init__.py,sha256=9hNPg8FLQRyDZAueC34R9NnYD6krtWSlnUczVs-jYyU,100
4
4
  regula/documentreader/webclient/ext/__init__.py,sha256=WC-Qq2WK9YVx7iI2WBysw3irgqH9rQsPpupPsClhTBI,1204
5
5
  regula/documentreader/webclient/ext/api/__init__.py,sha256=Xzygo6zcLQaUJmchHGc2awK1kGwgIcqdBBqexU8iZfI,90
6
- regula/documentreader/webclient/ext/api/document_reader_api.py,sha256=QZShX7eszPNbrAJW0ACorFyuga3vmIeZs-JAkq7MZVg,2215
6
+ regula/documentreader/webclient/ext/api/document_reader_api.py,sha256=kPr2KXCs1f1Rv9lLF-sUDnmbDOyDq8I4S5M8JKDZtPQ,2223
7
7
  regula/documentreader/webclient/ext/models/__init__.py,sha256=jkX63hjohO56S5BqMgXegD13tFNEz0TFFOqgaoV-rO0,1303
8
8
  regula/documentreader/webclient/ext/models/images.py,sha256=rR4nRIVA3V4iEsSkLaPrbpDvLdYFbkKYgLrUxW0a_x4,1343
9
9
  regula/documentreader/webclient/ext/models/raw_authenticity_result_item.py,sha256=YSuewMtw8M9sKnsgLBgL5-6HS3jhCPYcYRJGKue4wAw,954
@@ -19,16 +19,17 @@ regula/documentreader/webclient/ext/models/authenticity/ident.py,sha256=7rWPNmK7
19
19
  regula/documentreader/webclient/ext/models/authenticity/image_ident.py,sha256=GKwlntMSHTfR4OZzQe0NO95GlvHQotCN4FyFpIP12-A,288
20
20
  regula/documentreader/webclient/ext/models/authenticity/ocr_security_text.py,sha256=X2_lC7y4_BXWiPmLfIBmtibFFuD-tiH8yDK158iqAbg,299
21
21
  regula/documentreader/webclient/ext/models/authenticity/security_feature.py,sha256=QjTP2NLgMiUha3Eg73HXJ5we6P7segdlQtY3I-5Mz-0,485
22
- regula/documentreader/webclient/gen/__init__.py,sha256=l0Vu_n8FIyNoRw5USjMFrWCI1DHNmGru4ljg_Ge3abU,14283
22
+ regula/documentreader/webclient/gen/__init__.py,sha256=RH8mETTc66_ut4Wwa_EZ8ZiTaao1XjSORxnP7birxKE,14371
23
23
  regula/documentreader/webclient/gen/api_client.py,sha256=DgJFP29cmD9q1D1n38dQ_sj01_tlMUg-NeIBNh-SMjE,26739
24
24
  regula/documentreader/webclient/gen/configuration.py,sha256=Nfr6drG3bmDYRom9ZXiS76Tteo5LkttKRQP0xtpubKU,16383
25
25
  regula/documentreader/webclient/gen/exceptions.py,sha256=RCgqdeb5Z3va2bEu1bndBdOouxPPUXi80UD8cdYxRsA,4944
26
26
  regula/documentreader/webclient/gen/rest.py,sha256=IaSsixSq0h75vLCJHf6mVRDnmEEe6ioHL_yhZbsHnGE,12496
27
- regula/documentreader/webclient/gen/api/__init__.py,sha256=q52XoHPWxuktoGss-sYQQOAcbdDVEsLCADKMBuXFXN8,320
27
+ regula/documentreader/webclient/gen/api/__init__.py,sha256=FdRFqsiQssoCUANh92o2oHuCulhEegUsahm3n9AwdCk,328
28
28
  regula/documentreader/webclient/gen/api/default_api.py,sha256=Xjb17rx1BR9UFNvhjLM8UNcyae4USZCNdgrTDUVvOo0,5872
29
+ regula/documentreader/webclient/gen/api/healthcheck_api.py,sha256=7CzQhxsMMRdr4Z1OzrXcPgElpxVNEaX2JPo02YwvbEU,15996
29
30
  regula/documentreader/webclient/gen/api/process_api.py,sha256=aSEEDy_vUS-vvRigA4SYVc3GNIeTTfOYvjqMRI1a3Pk,7067
30
31
  regula/documentreader/webclient/gen/api/transaction_api.py,sha256=qqzbWixRgY14Fy46bK5U1bUAm0l5aTsOOqah3PxG6Xw,39245
31
- regula/documentreader/webclient/gen/models/__init__.py,sha256=IQqmB5-HS1_0esWpbtaucE1tlSwCupS60ouxAOXzDrA,13390
32
+ regula/documentreader/webclient/gen/models/__init__.py,sha256=aAHiD7M0P-Yd3GsiGwnxhJwePTqgxocRIBwwL6oNkh4,13470
32
33
  regula/documentreader/webclient/gen/models/area_array.py,sha256=lqYvHOxZ0-4xrPKeJFAPZLEqGODElt4dw44zk-4c10E,3909
33
34
  regula/documentreader/webclient/gen/models/area_container.py,sha256=AIyeiFcUyyconYSjWlqlR_DgT1SEJyq0DfVwm2dqgc8,4607
34
35
  regula/documentreader/webclient/gen/models/auth_params.py,sha256=WWXOdauTp0otrSm35N08l_ugOX2ABCV1DqpDG47YgWA,17685
@@ -52,6 +53,7 @@ regula/documentreader/webclient/gen/models/data_module.py,sha256=VEw5vC0KMAuaSWA
52
53
  regula/documentreader/webclient/gen/models/details_optical.py,sha256=UTlrmibJZoKjy8x_cMJt_R7vsU-k2mk9beHGnBbiY38,9543
53
54
  regula/documentreader/webclient/gen/models/details_rfid.py,sha256=DC6hK1v6I6lXgrTeTi7uukhwfpPcGd-JVKRK5IO5mj4,7940
54
55
  regula/documentreader/webclient/gen/models/device_info.py,sha256=EColoOOyD1hC2AA9b9g3bLTcGsxgy_MEaJBqZjAQ-l4,6874
56
+ regula/documentreader/webclient/gen/models/device_info2.py,sha256=ka6r3pI5jPH9E0pQUUGv5UHt12IEB5VUHMvFjnJegVM,7667
55
57
  regula/documentreader/webclient/gen/models/doc_bar_code_info.py,sha256=_7qom1up0U7h9KKBhEHBaXO6XXjCAr0FPEW0zctLCJU,7376
56
58
  regula/documentreader/webclient/gen/models/doc_bar_code_info_all_of.py,sha256=xw9PeZNQVHkb83tJ0Hi8F7M8BfQTnjrkIjOWiaZAIBQ,3602
57
59
  regula/documentreader/webclient/gen/models/doc_bar_code_info_fields_list.py,sha256=yKQzfrbfrCqDgz8JW3Y2ECNexwQ7iXVFu4xtc7ohLKc,4440
@@ -132,7 +134,7 @@ regula/documentreader/webclient/gen/models/photo_ident_result_all_of.py,sha256=4
132
134
  regula/documentreader/webclient/gen/models/point.py,sha256=32hbww9QplPA--1mGv3k9XGKMdnqINZljFKAYTXlQMI,3585
133
135
  regula/documentreader/webclient/gen/models/point_array.py,sha256=A2wlQC6urEW_q9dOK-P9vKg-fQNJ1e3Itop4BZ4UbKg,3367
134
136
  regula/documentreader/webclient/gen/models/points_container.py,sha256=d1Z1o_ghAVKphjO1JZcODjSZepvggbdjIaywUzEmWvM,4147
135
- regula/documentreader/webclient/gen/models/process_params.py,sha256=CaxFESyMMBDVioGjf1Q7_rFx6XV8ekMmUZ_WKpEMS8Y,64478
137
+ regula/documentreader/webclient/gen/models/process_params.py,sha256=xywOa7wrQAsVCKirZ3m4A7JKAc0HYa_Fee-GYlrpm2w,65713
136
138
  regula/documentreader/webclient/gen/models/process_params_rfid.py,sha256=7fGyqC8IUj-OLuJze1g6QJNUgXBX_BN5CFc88MYLtb4,4053
137
139
  regula/documentreader/webclient/gen/models/process_request.py,sha256=2Ic8vlVsFQHT0LVZlXX_Epgqk47g-lY9DTUm8yCsVYo,10896
138
140
  regula/documentreader/webclient/gen/models/process_request_image.py,sha256=RFQrMB4F78tGFT4XZz8EATVY3n8Jo18ns7jqXPe3eGU,4983
@@ -177,7 +179,7 @@ regula/documentreader/webclient/gen/models/transaction_scenario_request.py,sha25
177
179
  regula/documentreader/webclient/gen/models/verification_result.py,sha256=QmecwNs6cz3OTzPSNaSkY4ktudmsAF_wpn4DjDWDbMM,2905
178
180
  regula/documentreader/webclient/gen/models/verified_field_map.py,sha256=L3JXmadMiV6RNdbpSbE8_jiJ0Zh85ZSpCvwPuKeDHR4,10406
179
181
  regula/documentreader/webclient/gen/models/visibility.py,sha256=c5H2K34md6ykhebeNmqyqUOb_hCUJx6b5sdmeAIQQ7c,2917
180
- regula.documentreader.webclient-7.5.131.dev0.dist-info/METADATA,sha256=f690sAWF29LQWhxCnKlfN5sTZt-_g8tcBLQ5F_YCYEA,3585
181
- regula.documentreader.webclient-7.5.131.dev0.dist-info/WHEEL,sha256=uCRv0ZEik_232NlR4YDw4Pv3Ajt5bKvMH13NUU7hFuI,91
182
- regula.documentreader.webclient-7.5.131.dev0.dist-info/top_level.txt,sha256=SFSSVn4j8QDivd3307s97NtpIJ8zOjiWZloAxZIClJY,7
183
- regula.documentreader.webclient-7.5.131.dev0.dist-info/RECORD,,
182
+ regula.documentreader.webclient-7.5.133.dev0.dist-info/METADATA,sha256=5LSpYENIet1RbxvEW9pMhWJBFrMrGc7UHD2IOZcfNRE,3585
183
+ regula.documentreader.webclient-7.5.133.dev0.dist-info/WHEEL,sha256=uCRv0ZEik_232NlR4YDw4Pv3Ajt5bKvMH13NUU7hFuI,91
184
+ regula.documentreader.webclient-7.5.133.dev0.dist-info/top_level.txt,sha256=SFSSVn4j8QDivd3307s97NtpIJ8zOjiWZloAxZIClJY,7
185
+ regula.documentreader.webclient-7.5.133.dev0.dist-info/RECORD,,