-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathauth_params.py
More file actions
539 lines (405 loc) · 18.3 KB
/
auth_params.py
File metadata and controls
539 lines (405 loc) · 18.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
# coding: utf-8
"""
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
from regula.documentreader.webclient.gen.configuration import Configuration
# this line was added to enable pycharm type hinting
from regula.documentreader.webclient.gen.models import *
"""
"""
class AuthParams(object):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key in definition.
"""
openapi_types = {
'check_liveness': 'bool',
'liveness_params': 'LivenessParams',
'check_uv_luminiscence': 'bool',
'check_irb900': 'bool',
'check_image_patterns': 'bool',
'check_fibers': 'bool',
'check_ext_mrz': 'bool',
'check_ext_ocr': 'bool',
'check_axial': 'bool',
'check_barcode_format': 'bool',
'check_ir_visibility': 'bool',
'check_ipi': 'bool',
'check_photo_embedding': 'bool',
'check_photo_comparison': 'bool',
'check_letter_screen': 'bool',
'check_security_text': 'bool'
}
attribute_map = {
'check_liveness': 'checkLiveness',
'liveness_params': 'livenessParams',
'check_uv_luminiscence': 'checkUVLuminiscence',
'check_irb900': 'checkIRB900',
'check_image_patterns': 'checkImagePatterns',
'check_fibers': 'checkFibers',
'check_ext_mrz': 'checkExtMRZ',
'check_ext_ocr': 'checkExtOCR',
'check_axial': 'checkAxial',
'check_barcode_format': 'checkBarcodeFormat',
'check_ir_visibility': 'checkIRVisibility',
'check_ipi': 'checkIPI',
'check_photo_embedding': 'checkPhotoEmbedding',
'check_photo_comparison': 'checkPhotoComparison',
'check_letter_screen': 'checkLetterScreen',
'check_security_text': 'checkSecurityText'
}
def __init__(self, check_liveness=None, liveness_params=None, check_uv_luminiscence=None, check_irb900=None, check_image_patterns=None, check_fibers=None, check_ext_mrz=None, check_ext_ocr=None, check_axial=None, check_barcode_format=None, check_ir_visibility=None, check_ipi=None, check_photo_embedding=None, check_photo_comparison=None, check_letter_screen=None, check_security_text=None, local_vars_configuration=None): # noqa: E501
"""AuthParams - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration()
self.local_vars_configuration = local_vars_configuration
self._check_liveness = None
self._liveness_params = None
self._check_uv_luminiscence = None
self._check_irb900 = None
self._check_image_patterns = None
self._check_fibers = None
self._check_ext_mrz = None
self._check_ext_ocr = None
self._check_axial = None
self._check_barcode_format = None
self._check_ir_visibility = None
self._check_ipi = None
self._check_photo_embedding = None
self._check_photo_comparison = None
self._check_letter_screen = None
self._check_security_text = None
self.discriminator = None
if check_liveness is not None:
self.check_liveness = check_liveness
if liveness_params is not None:
self.liveness_params = liveness_params
if check_uv_luminiscence is not None:
self.check_uv_luminiscence = check_uv_luminiscence
if check_irb900 is not None:
self.check_irb900 = check_irb900
if check_image_patterns is not None:
self.check_image_patterns = check_image_patterns
if check_fibers is not None:
self.check_fibers = check_fibers
if check_ext_mrz is not None:
self.check_ext_mrz = check_ext_mrz
if check_ext_ocr is not None:
self.check_ext_ocr = check_ext_ocr
if check_axial is not None:
self.check_axial = check_axial
if check_barcode_format is not None:
self.check_barcode_format = check_barcode_format
if check_ir_visibility is not None:
self.check_ir_visibility = check_ir_visibility
if check_ipi is not None:
self.check_ipi = check_ipi
if check_photo_embedding is not None:
self.check_photo_embedding = check_photo_embedding
if check_photo_comparison is not None:
self.check_photo_comparison = check_photo_comparison
if check_letter_screen is not None:
self.check_letter_screen = check_letter_screen
if check_security_text is not None:
self.check_security_text = check_security_text
@property
def check_liveness(self):
"""Gets the check_liveness of this AuthParams. # noqa: E501
This parameter is used to enable document liveness check # noqa: E501
:return: The check_liveness of this AuthParams. # noqa: E501
:rtype: bool
"""
return self._check_liveness
@check_liveness.setter
def check_liveness(self, check_liveness):
"""Sets the check_liveness of this AuthParams.
This parameter is used to enable document liveness check # noqa: E501
:param check_liveness: The check_liveness of this AuthParams. # noqa: E501
:type check_liveness: bool
"""
self._check_liveness = check_liveness
@property
def liveness_params(self):
"""Gets the liveness_params of this AuthParams. # noqa: E501
:return: The liveness_params of this AuthParams. # noqa: E501
:rtype: LivenessParams
"""
return self._liveness_params
@liveness_params.setter
def liveness_params(self, liveness_params):
"""Sets the liveness_params of this AuthParams.
:param liveness_params: The liveness_params of this AuthParams. # noqa: E501
:type liveness_params: LivenessParams
"""
self._liveness_params = liveness_params
@property
def check_uv_luminiscence(self):
"""Gets the check_uv_luminiscence of this AuthParams. # noqa: E501
This parameter is used to enable Document luminescence check in UV light # noqa: E501
:return: The check_uv_luminiscence of this AuthParams. # noqa: E501
:rtype: bool
"""
return self._check_uv_luminiscence
@check_uv_luminiscence.setter
def check_uv_luminiscence(self, check_uv_luminiscence):
"""Sets the check_uv_luminiscence of this AuthParams.
This parameter is used to enable Document luminescence check in UV light # noqa: E501
:param check_uv_luminiscence: The check_uv_luminiscence of this AuthParams. # noqa: E501
:type check_uv_luminiscence: bool
"""
self._check_uv_luminiscence = check_uv_luminiscence
@property
def check_irb900(self):
"""Gets the check_irb900 of this AuthParams. # noqa: E501
This parameter is used to enable B900 ink MRZ contrast check in IR light # noqa: E501
:return: The check_irb900 of this AuthParams. # noqa: E501
:rtype: bool
"""
return self._check_irb900
@check_irb900.setter
def check_irb900(self, check_irb900):
"""Sets the check_irb900 of this AuthParams.
This parameter is used to enable B900 ink MRZ contrast check in IR light # noqa: E501
:param check_irb900: The check_irb900 of this AuthParams. # noqa: E501
:type check_irb900: bool
"""
self._check_irb900 = check_irb900
@property
def check_image_patterns(self):
"""Gets the check_image_patterns of this AuthParams. # noqa: E501
This parameter is used to enable Image patterns presence/absence check (position, shape, color) # noqa: E501
:return: The check_image_patterns of this AuthParams. # noqa: E501
:rtype: bool
"""
return self._check_image_patterns
@check_image_patterns.setter
def check_image_patterns(self, check_image_patterns):
"""Sets the check_image_patterns of this AuthParams.
This parameter is used to enable Image patterns presence/absence check (position, shape, color) # noqa: E501
:param check_image_patterns: The check_image_patterns of this AuthParams. # noqa: E501
:type check_image_patterns: bool
"""
self._check_image_patterns = check_image_patterns
@property
def check_fibers(self):
"""Gets the check_fibers of this AuthParams. # noqa: E501
This parameter is used to enable Fibers detection # noqa: E501
:return: The check_fibers of this AuthParams. # noqa: E501
:rtype: bool
"""
return self._check_fibers
@check_fibers.setter
def check_fibers(self, check_fibers):
"""Sets the check_fibers of this AuthParams.
This parameter is used to enable Fibers detection # noqa: E501
:param check_fibers: The check_fibers of this AuthParams. # noqa: E501
:type check_fibers: bool
"""
self._check_fibers = check_fibers
@property
def check_ext_mrz(self):
"""Gets the check_ext_mrz of this AuthParams. # noqa: E501
This parameter is used to enable Extended MRZ Check # noqa: E501
:return: The check_ext_mrz of this AuthParams. # noqa: E501
:rtype: bool
"""
return self._check_ext_mrz
@check_ext_mrz.setter
def check_ext_mrz(self, check_ext_mrz):
"""Sets the check_ext_mrz of this AuthParams.
This parameter is used to enable Extended MRZ Check # noqa: E501
:param check_ext_mrz: The check_ext_mrz of this AuthParams. # noqa: E501
:type check_ext_mrz: bool
"""
self._check_ext_mrz = check_ext_mrz
@property
def check_ext_ocr(self):
"""Gets the check_ext_ocr of this AuthParams. # noqa: E501
This parameter is used to enable Extended OCR Check # noqa: E501
:return: The check_ext_ocr of this AuthParams. # noqa: E501
:rtype: bool
"""
return self._check_ext_ocr
@check_ext_ocr.setter
def check_ext_ocr(self, check_ext_ocr):
"""Sets the check_ext_ocr of this AuthParams.
This parameter is used to enable Extended OCR Check # noqa: E501
:param check_ext_ocr: The check_ext_ocr of this AuthParams. # noqa: E501
:type check_ext_ocr: bool
"""
self._check_ext_ocr = check_ext_ocr
@property
def check_axial(self):
"""Gets the check_axial of this AuthParams. # noqa: E501
This parameter is used to enable laminate integrity check in axial light # noqa: E501
:return: The check_axial of this AuthParams. # noqa: E501
:rtype: bool
"""
return self._check_axial
@check_axial.setter
def check_axial(self, check_axial):
"""Sets the check_axial of this AuthParams.
This parameter is used to enable laminate integrity check in axial light # noqa: E501
:param check_axial: The check_axial of this AuthParams. # noqa: E501
:type check_axial: bool
"""
self._check_axial = check_axial
@property
def check_barcode_format(self):
"""Gets the check_barcode_format of this AuthParams. # noqa: E501
This parameter is used to enable Barcode format check (code metadata, data format, contents format, etc.) # noqa: E501
:return: The check_barcode_format of this AuthParams. # noqa: E501
:rtype: bool
"""
return self._check_barcode_format
@check_barcode_format.setter
def check_barcode_format(self, check_barcode_format):
"""Sets the check_barcode_format of this AuthParams.
This parameter is used to enable Barcode format check (code metadata, data format, contents format, etc.) # noqa: E501
:param check_barcode_format: The check_barcode_format of this AuthParams. # noqa: E501
:type check_barcode_format: bool
"""
self._check_barcode_format = check_barcode_format
@property
def check_ir_visibility(self):
"""Gets the check_ir_visibility of this AuthParams. # noqa: E501
This parameter is used to enable Document elements visibility check in IR light # noqa: E501
:return: The check_ir_visibility of this AuthParams. # noqa: E501
:rtype: bool
"""
return self._check_ir_visibility
@check_ir_visibility.setter
def check_ir_visibility(self, check_ir_visibility):
"""Sets the check_ir_visibility of this AuthParams.
This parameter is used to enable Document elements visibility check in IR light # noqa: E501
:param check_ir_visibility: The check_ir_visibility of this AuthParams. # noqa: E501
:type check_ir_visibility: bool
"""
self._check_ir_visibility = check_ir_visibility
@property
def check_ipi(self):
"""Gets the check_ipi of this AuthParams. # noqa: E501
This parameter is used to enable Invisible Personal Information (IPI) check # noqa: E501
:return: The check_ipi of this AuthParams. # noqa: E501
:rtype: bool
"""
return self._check_ipi
@check_ipi.setter
def check_ipi(self, check_ipi):
"""Sets the check_ipi of this AuthParams.
This parameter is used to enable Invisible Personal Information (IPI) check # noqa: E501
:param check_ipi: The check_ipi of this AuthParams. # noqa: E501
:type check_ipi: bool
"""
self._check_ipi = check_ipi
@property
def check_photo_embedding(self):
"""Gets the check_photo_embedding of this AuthParams. # noqa: E501
This parameter is used to enable Owner's photo embedding check (is photo printed or sticked) # noqa: E501
:return: The check_photo_embedding of this AuthParams. # noqa: E501
:rtype: bool
"""
return self._check_photo_embedding
@check_photo_embedding.setter
def check_photo_embedding(self, check_photo_embedding):
"""Sets the check_photo_embedding of this AuthParams.
This parameter is used to enable Owner's photo embedding check (is photo printed or sticked) # noqa: E501
:param check_photo_embedding: The check_photo_embedding of this AuthParams. # noqa: E501
:type check_photo_embedding: bool
"""
self._check_photo_embedding = check_photo_embedding
@property
def check_photo_comparison(self):
"""Gets the check_photo_comparison of this AuthParams. # noqa: E501
This parameter is used to enable Portrait comparison check # noqa: E501
:return: The check_photo_comparison of this AuthParams. # noqa: E501
:rtype: bool
"""
return self._check_photo_comparison
@check_photo_comparison.setter
def check_photo_comparison(self, check_photo_comparison):
"""Sets the check_photo_comparison of this AuthParams.
This parameter is used to enable Portrait comparison check # noqa: E501
:param check_photo_comparison: The check_photo_comparison of this AuthParams. # noqa: E501
:type check_photo_comparison: bool
"""
self._check_photo_comparison = check_photo_comparison
@property
def check_letter_screen(self):
"""Gets the check_letter_screen of this AuthParams. # noqa: E501
This parameter is used to enable LetterScreen check # noqa: E501
:return: The check_letter_screen of this AuthParams. # noqa: E501
:rtype: bool
"""
return self._check_letter_screen
@check_letter_screen.setter
def check_letter_screen(self, check_letter_screen):
"""Sets the check_letter_screen of this AuthParams.
This parameter is used to enable LetterScreen check # noqa: E501
:param check_letter_screen: The check_letter_screen of this AuthParams. # noqa: E501
:type check_letter_screen: bool
"""
self._check_letter_screen = check_letter_screen
@property
def check_security_text(self):
"""Gets the check_security_text of this AuthParams. # noqa: E501
This parameter is used to enable Security text check # noqa: E501
:return: The check_security_text of this AuthParams. # noqa: E501
:rtype: bool
"""
return self._check_security_text
@check_security_text.setter
def check_security_text(self, check_security_text):
"""Sets the check_security_text of this AuthParams.
This parameter is used to enable Security text check # noqa: E501
:param check_security_text: The check_security_text of this AuthParams. # noqa: E501
:type check_security_text: bool
"""
self._check_security_text = check_security_text
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.openapi_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
return result
def to_str(self):
"""Returns the string representation of the model"""
return pprint.pformat(self.to_dict())
def __repr__(self):
"""For `print` and `pprint`"""
return self.to_str()
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, AuthParams):
return False
return self.to_dict() == other.to_dict()
def __ne__(self, other):
"""Returns true if both objects are not equal"""
if not isinstance(other, AuthParams):
return True
return self.to_dict() != other.to_dict()