regula-documentreader-webclient 8.3.512__py3-none-any.whl → 8.4.584__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/ext/api/document_reader_api.py +2 -2
- regula/documentreader/webclient/gen/__init__.py +755 -240
- regula/documentreader/webclient/gen/api/__init__.py +20 -1
- regula/documentreader/webclient/gen/api/resources_api.py +270 -0
- regula/documentreader/webclient/gen/api/transaction_api.py +33 -15
- regula/documentreader/webclient/gen/api_client.py +8 -1
- regula/documentreader/webclient/gen/models/__init__.py +249 -1
- regula/documentreader/webclient/gen/models/area_array.py +6 -3
- regula/documentreader/webclient/gen/models/area_container.py +6 -3
- regula/documentreader/webclient/gen/models/auth_params.py +19 -16
- regula/documentreader/webclient/gen/models/authenticity_check_list.py +5 -2
- regula/documentreader/webclient/gen/models/authenticity_check_list_item.py +4 -1
- regula/documentreader/webclient/gen/models/authenticity_check_result.py +7 -4
- regula/documentreader/webclient/gen/models/authenticity_check_result_item.py +7 -4
- regula/documentreader/webclient/gen/models/authenticity_result.py +4 -1
- regula/documentreader/webclient/gen/models/barcode_position_item.py +4 -1
- regula/documentreader/webclient/gen/models/barcode_position_result.py +4 -1
- regula/documentreader/webclient/gen/models/bc_pdf417_info.py +9 -6
- regula/documentreader/webclient/gen/models/bc_roidetect.py +7 -4
- regula/documentreader/webclient/gen/models/binary_data.py +67 -64
- regula/documentreader/webclient/gen/models/byte_array_item.py +4 -1
- regula/documentreader/webclient/gen/models/byte_array_result.py +4 -1
- regula/documentreader/webclient/gen/models/candidates_list_item.py +4 -1
- regula/documentreader/webclient/gen/models/certificate_data.py +5 -2
- regula/documentreader/webclient/gen/models/check_diagnose.py +2 -0
- regula/documentreader/webclient/gen/models/chosen_document_type.py +15 -12
- regula/documentreader/webclient/gen/models/chosen_document_type_result.py +5 -2
- regula/documentreader/webclient/gen/models/container_list.py +5 -2
- regula/documentreader/webclient/gen/models/cross_source_value_comparison.py +6 -3
- regula/documentreader/webclient/gen/models/data_module.py +8 -5
- regula/documentreader/webclient/gen/models/database_document.py +111 -0
- regula/documentreader/webclient/gen/models/database_document_list.py +90 -0
- regula/documentreader/webclient/gen/models/details_optical.py +12 -9
- regula/documentreader/webclient/gen/models/details_rfid.py +10 -7
- regula/documentreader/webclient/gen/models/device_info.py +13 -10
- regula/documentreader/webclient/gen/models/device_info_documents_database.py +7 -4
- regula/documentreader/webclient/gen/models/doc_bar_code_info.py +4 -1
- regula/documentreader/webclient/gen/models/doc_bar_code_info_fields_list.py +5 -2
- regula/documentreader/webclient/gen/models/doc_bar_code_info_item.py +4 -1
- regula/documentreader/webclient/gen/models/doc_graphics_info_item.py +4 -1
- regula/documentreader/webclient/gen/models/doc_visual_extended_field.py +16 -13
- regula/documentreader/webclient/gen/models/doc_visual_extended_field_item.py +4 -1
- regula/documentreader/webclient/gen/models/doc_visual_extended_info.py +5 -2
- regula/documentreader/webclient/gen/models/doc_visual_extended_info_item.py +4 -1
- regula/documentreader/webclient/gen/models/document_binary_info_result.py +4 -1
- regula/documentreader/webclient/gen/models/document_image.py +5 -2
- regula/documentreader/webclient/gen/models/document_image_result.py +4 -1
- regula/documentreader/webclient/gen/models/document_position.py +18 -15
- regula/documentreader/webclient/gen/models/document_position_item.py +4 -1
- regula/documentreader/webclient/gen/models/document_position_result.py +4 -1
- regula/documentreader/webclient/gen/models/document_types_candidates.py +5 -2
- regula/documentreader/webclient/gen/models/document_types_candidates_list.py +5 -2
- regula/documentreader/webclient/gen/models/document_types_candidates_result.py +4 -1
- regula/documentreader/webclient/gen/models/documents_database.py +7 -4
- regula/documentreader/webclient/gen/models/encrypted_rcl_item.py +4 -1
- regula/documentreader/webclient/gen/models/encrypted_rcl_result.py +4 -1
- regula/documentreader/webclient/gen/models/error_coordinates.py +7 -4
- regula/documentreader/webclient/gen/models/face_api.py +13 -10
- regula/documentreader/webclient/gen/models/face_api_search.py +6 -3
- regula/documentreader/webclient/gen/models/face_detection.py +8 -5
- regula/documentreader/webclient/gen/models/face_detection_item.py +4 -1
- regula/documentreader/webclient/gen/models/face_detection_result.py +4 -1
- regula/documentreader/webclient/gen/models/face_item.py +11 -8
- regula/documentreader/webclient/gen/models/fdsid_list.py +15 -12
- regula/documentreader/webclient/gen/models/fiber_item.py +12 -9
- regula/documentreader/webclient/gen/models/fiber_result.py +12 -9
- regula/documentreader/webclient/gen/models/field_item.py +9 -6
- regula/documentreader/webclient/gen/models/file_image.py +5 -2
- regula/documentreader/webclient/gen/models/get_transactions_by_tag_response.py +8 -4
- regula/documentreader/webclient/gen/models/glares_check_params.py +84 -0
- regula/documentreader/webclient/gen/models/graph_data.py +10 -7
- regula/documentreader/webclient/gen/models/graphic_field.py +7 -4
- regula/documentreader/webclient/gen/models/graphic_fields_list.py +5 -2
- regula/documentreader/webclient/gen/models/graphics_result.py +4 -1
- regula/documentreader/webclient/gen/models/healthcheck.py +12 -9
- regula/documentreader/webclient/gen/models/healthcheck_documents_database.py +7 -4
- regula/documentreader/webclient/gen/models/ident_item.py +10 -7
- regula/documentreader/webclient/gen/models/ident_result.py +10 -7
- regula/documentreader/webclient/gen/models/image_data.py +5 -2
- regula/documentreader/webclient/gen/models/image_qa.py +20 -11
- regula/documentreader/webclient/gen/models/image_quality_check.py +10 -7
- regula/documentreader/webclient/gen/models/image_quality_check_list.py +6 -3
- regula/documentreader/webclient/gen/models/image_quality_check_list_item.py +4 -1
- regula/documentreader/webclient/gen/models/image_quality_result.py +4 -1
- regula/documentreader/webclient/gen/models/image_transaction_data.py +4 -1
- regula/documentreader/webclient/gen/models/images.py +7 -4
- regula/documentreader/webclient/gen/models/images_available_source.py +5 -2
- regula/documentreader/webclient/gen/models/images_field.py +7 -4
- regula/documentreader/webclient/gen/models/images_field_value.py +12 -9
- regula/documentreader/webclient/gen/models/images_item.py +4 -1
- regula/documentreader/webclient/gen/models/images_result.py +4 -1
- regula/documentreader/webclient/gen/models/in_data.py +5 -2
- regula/documentreader/webclient/gen/models/in_data_transaction_images_field_value.py +7 -4
- regula/documentreader/webclient/gen/models/in_data_video.py +5 -2
- regula/documentreader/webclient/gen/models/lexical_analysis_result.py +4 -1
- regula/documentreader/webclient/gen/models/license_item.py +4 -1
- regula/documentreader/webclient/gen/models/license_result.py +4 -1
- regula/documentreader/webclient/gen/models/list_transactions_by_tag_response.py +5 -2
- regula/documentreader/webclient/gen/models/list_verified_fields.py +6 -3
- regula/documentreader/webclient/gen/models/list_verified_fields_item.py +4 -1
- regula/documentreader/webclient/gen/models/liveness_params.py +10 -7
- regula/documentreader/webclient/gen/models/mrz_detector_result.py +4 -1
- regula/documentreader/webclient/gen/models/mrz_position_item.py +4 -1
- regula/documentreader/webclient/gen/models/mrz_position_result.py +4 -1
- regula/documentreader/webclient/gen/models/mrz_rows_item.py +6 -3
- regula/documentreader/webclient/gen/models/mrz_test_quality.py +13 -10
- regula/documentreader/webclient/gen/models/mrz_test_quality_item.py +4 -1
- regula/documentreader/webclient/gen/models/mrz_test_quality_result.py +4 -1
- regula/documentreader/webclient/gen/models/ocr_security_text_item.py +14 -11
- regula/documentreader/webclient/gen/models/ocr_security_text_result.py +14 -11
- regula/documentreader/webclient/gen/models/one_candidate.py +15 -12
- regula/documentreader/webclient/gen/models/one_candidate_item.py +5 -2
- regula/documentreader/webclient/gen/models/original_symbol.py +6 -3
- regula/documentreader/webclient/gen/models/out_data.py +5 -2
- regula/documentreader/webclient/gen/models/out_data_transaction_images_field_value.py +8 -5
- regula/documentreader/webclient/gen/models/p_array_field.py +13 -10
- regula/documentreader/webclient/gen/models/parsed_data.py +4 -1
- regula/documentreader/webclient/gen/models/per_document_config.py +5 -2
- regula/documentreader/webclient/gen/models/photo_ident_item.py +12 -9
- regula/documentreader/webclient/gen/models/photo_ident_result.py +12 -9
- regula/documentreader/webclient/gen/models/point.py +5 -2
- regula/documentreader/webclient/gen/models/point_array.py +4 -1
- regula/documentreader/webclient/gen/models/points_container.py +5 -2
- regula/documentreader/webclient/gen/models/process_params.py +72 -67
- regula/documentreader/webclient/gen/models/process_params_rfid.py +4 -1
- regula/documentreader/webclient/gen/models/process_request.py +15 -12
- regula/documentreader/webclient/gen/models/process_request_image.py +6 -3
- regula/documentreader/webclient/gen/models/process_response.py +13 -10
- regula/documentreader/webclient/gen/models/process_system_info.py +5 -2
- regula/documentreader/webclient/gen/models/raw_image_container_item.py +4 -1
- regula/documentreader/webclient/gen/models/raw_image_container_list.py +5 -2
- regula/documentreader/webclient/gen/models/rectangle_coordinates.py +7 -4
- regula/documentreader/webclient/gen/models/result_item.py +8 -5
- regula/documentreader/webclient/gen/models/result_mrz_detector.py +7 -4
- regula/documentreader/webclient/gen/models/result_mrz_detector_item.py +4 -1
- regula/documentreader/webclient/gen/models/rfid_access_control_info.py +8 -5
- regula/documentreader/webclient/gen/models/rfid_access_key.py +7 -4
- regula/documentreader/webclient/gen/models/rfid_application.py +10 -7
- regula/documentreader/webclient/gen/models/rfid_attribute_data.py +5 -2
- regula/documentreader/webclient/gen/models/rfid_attribute_name.py +5 -2
- regula/documentreader/webclient/gen/models/rfid_card_properties_ext.py +17 -14
- regula/documentreader/webclient/gen/models/rfid_certificate_ex.py +16 -13
- regula/documentreader/webclient/gen/models/rfid_data_file.py +15 -12
- regula/documentreader/webclient/gen/models/rfid_dg1.py +19 -16
- regula/documentreader/webclient/gen/models/rfid_distinguished_name.py +6 -3
- regula/documentreader/webclient/gen/models/rfid_doc_visual_extended_field.py +19 -16
- regula/documentreader/webclient/gen/models/rfid_doc_visual_extended_field_item.py +7 -4
- regula/documentreader/webclient/gen/models/rfid_doc_visual_extended_info.py +5 -2
- regula/documentreader/webclient/gen/models/rfid_doc_visual_extended_info_item.py +4 -1
- regula/documentreader/webclient/gen/models/rfid_graphics_info_result.py +4 -1
- regula/documentreader/webclient/gen/models/rfid_origin.py +7 -4
- regula/documentreader/webclient/gen/models/rfid_pki_extension.py +5 -2
- regula/documentreader/webclient/gen/models/rfid_raw_data.py +5 -2
- regula/documentreader/webclient/gen/models/rfid_security_object.py +8 -5
- regula/documentreader/webclient/gen/models/rfid_session_data.py +20 -17
- regula/documentreader/webclient/gen/models/rfid_signer_info_ex.py +15 -12
- regula/documentreader/webclient/gen/models/rfid_terminal.py +6 -3
- regula/documentreader/webclient/gen/models/rfid_text_data_result.py +4 -1
- regula/documentreader/webclient/gen/models/rfid_validity.py +5 -2
- regula/documentreader/webclient/gen/models/security_feature_item.py +9 -6
- regula/documentreader/webclient/gen/models/security_feature_result.py +9 -6
- regula/documentreader/webclient/gen/models/security_feature_type.py +2 -0
- regula/documentreader/webclient/gen/models/security_object_certificates.py +4 -1
- regula/documentreader/webclient/gen/models/source_validity.py +5 -2
- regula/documentreader/webclient/gen/models/status.py +10 -7
- regula/documentreader/webclient/gen/models/status_item.py +4 -1
- regula/documentreader/webclient/gen/models/status_result.py +4 -1
- regula/documentreader/webclient/gen/models/string_item.py +20 -17
- regula/documentreader/webclient/gen/models/string_recognition_result.py +8 -5
- regula/documentreader/webclient/gen/models/symbol.py +4 -1
- regula/documentreader/webclient/gen/models/symbol_candidate.py +7 -4
- regula/documentreader/webclient/gen/models/symbol_estimation_item.py +20 -17
- regula/documentreader/webclient/gen/models/symbol_recognition_result.py +8 -5
- regula/documentreader/webclient/gen/models/t_doc_binary_info.py +5 -2
- regula/documentreader/webclient/gen/models/t_doc_binary_info_item.py +4 -1
- regula/documentreader/webclient/gen/models/t_original_rfid_graphics_info.py +4 -1
- regula/documentreader/webclient/gen/models/t_original_rfid_graphics_info_item.py +4 -1
- regula/documentreader/webclient/gen/models/text.py +9 -6
- regula/documentreader/webclient/gen/models/text_available_source.py +6 -3
- regula/documentreader/webclient/gen/models/text_data_result.py +4 -1
- regula/documentreader/webclient/gen/models/text_field.py +14 -11
- regula/documentreader/webclient/gen/models/text_field_value.py +13 -10
- regula/documentreader/webclient/gen/models/text_item.py +4 -1
- regula/documentreader/webclient/gen/models/text_result.py +4 -1
- regula/documentreader/webclient/gen/models/transaction_image.py +4 -1
- regula/documentreader/webclient/gen/models/transaction_info.py +11 -8
- regula/documentreader/webclient/gen/models/transaction_process_get_response.py +8 -4
- regula/documentreader/webclient/gen/models/transaction_process_request.py +14 -11
- regula/documentreader/webclient/gen/models/transaction_process_result.py +8 -4
- regula/documentreader/webclient/gen/models/trf_ft_bytes.py +7 -4
- regula/documentreader/webclient/gen/models/trf_ft_string.py +7 -4
- regula/documentreader/webclient/gen/models/verified_field_map.py +10 -7
- regula/documentreader/webclient/gen/models/visual_extended_field_item.py +15 -12
- {regula_documentreader_webclient-8.3.512.dist-info → regula_documentreader_webclient-8.4.584.dist-info}/METADATA +2 -1
- {regula_documentreader_webclient-8.3.512.dist-info → regula_documentreader_webclient-8.4.584.dist-info}/RECORD +197 -193
- {regula_documentreader_webclient-8.3.512.dist-info → regula_documentreader_webclient-8.4.584.dist-info}/WHEEL +0 -0
- {regula_documentreader_webclient-8.3.512.dist-info → regula_documentreader_webclient-8.4.584.dist-info}/top_level.txt +0 -0
|
@@ -13,21 +13,24 @@ from pydantic import BaseModel, ConfigDict, StrictInt
|
|
|
13
13
|
from typing import Any, ClassVar, Dict, List
|
|
14
14
|
from typing import Optional, Set
|
|
15
15
|
from typing_extensions import Self
|
|
16
|
+
from pydantic import SkipValidation, Field
|
|
16
17
|
|
|
17
18
|
class BcROIDETECT(BaseModel):
|
|
18
19
|
"""
|
|
19
20
|
BcROIDETECT
|
|
20
21
|
""" # noqa: E501
|
|
21
|
-
bottom:
|
|
22
|
-
left:
|
|
23
|
-
right:
|
|
24
|
-
top:
|
|
22
|
+
bottom: SkipValidation[int] = Field(alias="bottom")
|
|
23
|
+
left: SkipValidation[int] = Field(alias="left")
|
|
24
|
+
right: SkipValidation[int] = Field(alias="right")
|
|
25
|
+
top: SkipValidation[int] = Field(alias="top")
|
|
25
26
|
__properties: ClassVar[List[str]] = ["bottom", "left", "right", "top"]
|
|
26
27
|
|
|
27
28
|
model_config = ConfigDict(
|
|
28
29
|
populate_by_name=True,
|
|
29
30
|
validate_assignment=True,
|
|
30
31
|
protected_namespaces=(),
|
|
32
|
+
arbitrary_types_allowed=True,
|
|
33
|
+
use_enum_values=True
|
|
31
34
|
)
|
|
32
35
|
|
|
33
36
|
|
|
@@ -17,81 +17,84 @@ from regula.documentreader.webclient.gen.models.rfid_dg1 import RfidDG1
|
|
|
17
17
|
from regula.documentreader.webclient.gen.models.rfid_session_data import RfidSessionData
|
|
18
18
|
from typing import Optional, Set
|
|
19
19
|
from typing_extensions import Self
|
|
20
|
+
from pydantic import SkipValidation, Field
|
|
20
21
|
|
|
21
22
|
class BinaryData(BaseModel):
|
|
22
23
|
"""
|
|
23
24
|
Structure is used for storing the results of one bar-code module reading.
|
|
24
25
|
""" # noqa: E501
|
|
25
|
-
rfid_authentication_info: Optional[Dict[str,
|
|
26
|
-
rfid_mifare_data_validity: Optional[Dict[str,
|
|
27
|
-
rfid_mifare_data: Optional[Dict[str,
|
|
28
|
-
rfid_ef_com: Optional[Dict[str,
|
|
29
|
-
rfid_dg1: Optional[RfidDG1] = Field(
|
|
30
|
-
rfid_dg2: Optional[Dict[str,
|
|
31
|
-
rfid_dg3: Optional[Dict[str,
|
|
32
|
-
rfid_dg4: Optional[Dict[str,
|
|
33
|
-
rfid_dg5: Optional[Dict[str,
|
|
34
|
-
rfid_dg6: Optional[Dict[str,
|
|
35
|
-
rfid_dg7: Optional[Dict[str,
|
|
36
|
-
rfid_dg8: Optional[Dict[str,
|
|
37
|
-
rfid_dg9: Optional[Dict[str,
|
|
38
|
-
rfid_dg10: Optional[Dict[str,
|
|
39
|
-
rfid_dg11: Optional[Dict[str,
|
|
40
|
-
rfid_dg12: Optional[Dict[str,
|
|
41
|
-
rfid_dg13: Optional[Dict[str,
|
|
42
|
-
rfid_dg14: Optional[Dict[str,
|
|
43
|
-
rfid_dg15: Optional[Dict[str,
|
|
44
|
-
rfid_dg16: Optional[Dict[str,
|
|
45
|
-
rfid_ef_sod: Optional[Dict[str,
|
|
46
|
-
e_id_dg1: Optional[Dict[str,
|
|
47
|
-
e_id_dg2: Optional[Dict[str,
|
|
48
|
-
e_id_dg3: Optional[Dict[str,
|
|
49
|
-
e_id_dg4: Optional[Dict[str,
|
|
50
|
-
e_id_dg5: Optional[Dict[str,
|
|
51
|
-
e_id_dg6: Optional[Dict[str,
|
|
52
|
-
e_id_dg7: Optional[Dict[str,
|
|
53
|
-
e_id_dg8: Optional[Dict[str,
|
|
54
|
-
e_id_dg9: Optional[Dict[str,
|
|
55
|
-
e_id_dg10: Optional[Dict[str,
|
|
56
|
-
e_id_dg11: Optional[Dict[str,
|
|
57
|
-
e_id_dg12: Optional[Dict[str,
|
|
58
|
-
e_id_dg13: Optional[Dict[str,
|
|
59
|
-
e_id_dg14: Optional[Dict[str,
|
|
60
|
-
e_id_dg15: Optional[Dict[str,
|
|
61
|
-
e_id_dg16: Optional[Dict[str,
|
|
62
|
-
e_id_dg17: Optional[Dict[str,
|
|
63
|
-
e_id_dg18: Optional[Dict[str,
|
|
64
|
-
e_id_dg19: Optional[Dict[str,
|
|
65
|
-
e_id_dg20: Optional[Dict[str,
|
|
66
|
-
e_id_dg21: Optional[Dict[str,
|
|
67
|
-
e_dl_com: Optional[Dict[str,
|
|
68
|
-
e_dl_sod: Optional[Dict[str,
|
|
69
|
-
e_dl_dg1: Optional[Dict[str,
|
|
70
|
-
e_dl_dg2: Optional[Dict[str,
|
|
71
|
-
e_dl_dg3: Optional[Dict[str,
|
|
72
|
-
e_dl_dg4: Optional[Dict[str,
|
|
73
|
-
e_dl_dg5: Optional[Dict[str,
|
|
74
|
-
e_dl_dg6: Optional[Dict[str,
|
|
75
|
-
e_dl_dg7: Optional[Dict[str,
|
|
76
|
-
e_dl_dg8: Optional[Dict[str,
|
|
77
|
-
e_dl_dg9: Optional[Dict[str,
|
|
78
|
-
e_dl_dg10: Optional[Dict[str,
|
|
79
|
-
e_dl_dg11: Optional[Dict[str,
|
|
80
|
-
e_dl_dg12: Optional[Dict[str,
|
|
81
|
-
e_dl_dg13: Optional[Dict[str,
|
|
82
|
-
e_dl_dg14: Optional[Dict[str,
|
|
83
|
-
visible_digital_seal: Optional[Dict[str,
|
|
84
|
-
visible_digital_seal_nc: Optional[Dict[str,
|
|
85
|
-
digital_signature: Optional[Dict[str,
|
|
86
|
-
rfid_session_data: Optional[RfidSessionData] = Field(
|
|
87
|
-
rfid_session_data_status: Optional[DetailsRFID] = Field(
|
|
88
|
-
rfid_e_passp_directory: Optional[List[RfidDataFileType]] = Field(default=None, description="Indexes of groups that aren
|
|
26
|
+
rfid_authentication_info: SkipValidation[Optional[Dict[str, object]]] = Field(alias="RFID_Authentication_Info", default=None)
|
|
27
|
+
rfid_mifare_data_validity: SkipValidation[Optional[Dict[str, object]]] = Field(alias="RFID_MIFARE_Data_Validity", default=None)
|
|
28
|
+
rfid_mifare_data: SkipValidation[Optional[Dict[str, object]]] = Field(alias="RFID_MIFARE_Data", default=None)
|
|
29
|
+
rfid_ef_com: SkipValidation[Optional[Dict[str, object]]] = Field(alias="RFID_EF_COM", default=None)
|
|
30
|
+
rfid_dg1: SkipValidation[Optional[RfidDG1]] = Field(alias="RFID_DG1", default=None)
|
|
31
|
+
rfid_dg2: SkipValidation[Optional[Dict[str, object]]] = Field(alias="RFID_DG2", default=None)
|
|
32
|
+
rfid_dg3: SkipValidation[Optional[Dict[str, object]]] = Field(alias="RFID_DG3", default=None)
|
|
33
|
+
rfid_dg4: SkipValidation[Optional[Dict[str, object]]] = Field(alias="RFID_DG4", default=None)
|
|
34
|
+
rfid_dg5: SkipValidation[Optional[Dict[str, object]]] = Field(alias="RFID_DG5", default=None)
|
|
35
|
+
rfid_dg6: SkipValidation[Optional[Dict[str, object]]] = Field(alias="RFID_DG6", default=None)
|
|
36
|
+
rfid_dg7: SkipValidation[Optional[Dict[str, object]]] = Field(alias="RFID_DG7", default=None)
|
|
37
|
+
rfid_dg8: SkipValidation[Optional[Dict[str, object]]] = Field(alias="RFID_DG8", default=None)
|
|
38
|
+
rfid_dg9: SkipValidation[Optional[Dict[str, object]]] = Field(alias="RFID_DG9", default=None)
|
|
39
|
+
rfid_dg10: SkipValidation[Optional[Dict[str, object]]] = Field(alias="RFID_DG10", default=None)
|
|
40
|
+
rfid_dg11: SkipValidation[Optional[Dict[str, object]]] = Field(alias="RFID_DG11", default=None)
|
|
41
|
+
rfid_dg12: SkipValidation[Optional[Dict[str, object]]] = Field(alias="RFID_DG12", default=None)
|
|
42
|
+
rfid_dg13: SkipValidation[Optional[Dict[str, object]]] = Field(alias="RFID_DG13", default=None)
|
|
43
|
+
rfid_dg14: SkipValidation[Optional[Dict[str, object]]] = Field(alias="RFID_DG14", default=None)
|
|
44
|
+
rfid_dg15: SkipValidation[Optional[Dict[str, object]]] = Field(alias="RFID_DG15", default=None)
|
|
45
|
+
rfid_dg16: SkipValidation[Optional[Dict[str, object]]] = Field(alias="RFID_DG16", default=None)
|
|
46
|
+
rfid_ef_sod: SkipValidation[Optional[Dict[str, object]]] = Field(alias="RFID_EF_SOD", default=None)
|
|
47
|
+
e_id_dg1: SkipValidation[Optional[Dict[str, object]]] = Field(alias="eID_DG1", default=None)
|
|
48
|
+
e_id_dg2: SkipValidation[Optional[Dict[str, object]]] = Field(alias="eID_DG2", default=None)
|
|
49
|
+
e_id_dg3: SkipValidation[Optional[Dict[str, object]]] = Field(alias="eID_DG3", default=None)
|
|
50
|
+
e_id_dg4: SkipValidation[Optional[Dict[str, object]]] = Field(alias="eID_DG4", default=None)
|
|
51
|
+
e_id_dg5: SkipValidation[Optional[Dict[str, object]]] = Field(alias="eID_DG5", default=None)
|
|
52
|
+
e_id_dg6: SkipValidation[Optional[Dict[str, object]]] = Field(alias="eID_DG6", default=None)
|
|
53
|
+
e_id_dg7: SkipValidation[Optional[Dict[str, object]]] = Field(alias="eID_DG7", default=None)
|
|
54
|
+
e_id_dg8: SkipValidation[Optional[Dict[str, object]]] = Field(alias="eID_DG8", default=None)
|
|
55
|
+
e_id_dg9: SkipValidation[Optional[Dict[str, object]]] = Field(alias="eID_DG9", default=None)
|
|
56
|
+
e_id_dg10: SkipValidation[Optional[Dict[str, object]]] = Field(alias="eID_DG10", default=None)
|
|
57
|
+
e_id_dg11: SkipValidation[Optional[Dict[str, object]]] = Field(alias="eID_DG11", default=None)
|
|
58
|
+
e_id_dg12: SkipValidation[Optional[Dict[str, object]]] = Field(alias="eID_DG12", default=None)
|
|
59
|
+
e_id_dg13: SkipValidation[Optional[Dict[str, object]]] = Field(alias="eID_DG13", default=None)
|
|
60
|
+
e_id_dg14: SkipValidation[Optional[Dict[str, object]]] = Field(alias="eID_DG14", default=None)
|
|
61
|
+
e_id_dg15: SkipValidation[Optional[Dict[str, object]]] = Field(alias="eID_DG15", default=None)
|
|
62
|
+
e_id_dg16: SkipValidation[Optional[Dict[str, object]]] = Field(alias="eID_DG16", default=None)
|
|
63
|
+
e_id_dg17: SkipValidation[Optional[Dict[str, object]]] = Field(alias="eID_DG17", default=None)
|
|
64
|
+
e_id_dg18: SkipValidation[Optional[Dict[str, object]]] = Field(alias="eID_DG18", default=None)
|
|
65
|
+
e_id_dg19: SkipValidation[Optional[Dict[str, object]]] = Field(alias="eID_DG19", default=None)
|
|
66
|
+
e_id_dg20: SkipValidation[Optional[Dict[str, object]]] = Field(alias="eID_DG20", default=None)
|
|
67
|
+
e_id_dg21: SkipValidation[Optional[Dict[str, object]]] = Field(alias="eID_DG21", default=None)
|
|
68
|
+
e_dl_com: SkipValidation[Optional[Dict[str, object]]] = Field(alias="eDL_COM", default=None)
|
|
69
|
+
e_dl_sod: SkipValidation[Optional[Dict[str, object]]] = Field(alias="eDL_SOD", default=None)
|
|
70
|
+
e_dl_dg1: SkipValidation[Optional[Dict[str, object]]] = Field(alias="eDL_DG1", default=None)
|
|
71
|
+
e_dl_dg2: SkipValidation[Optional[Dict[str, object]]] = Field(alias="eDL_DG2", default=None)
|
|
72
|
+
e_dl_dg3: SkipValidation[Optional[Dict[str, object]]] = Field(alias="eDL_DG3", default=None)
|
|
73
|
+
e_dl_dg4: SkipValidation[Optional[Dict[str, object]]] = Field(alias="eDL_DG4", default=None)
|
|
74
|
+
e_dl_dg5: SkipValidation[Optional[Dict[str, object]]] = Field(alias="eDL_DG5", default=None)
|
|
75
|
+
e_dl_dg6: SkipValidation[Optional[Dict[str, object]]] = Field(alias="eDL_DG6", default=None)
|
|
76
|
+
e_dl_dg7: SkipValidation[Optional[Dict[str, object]]] = Field(alias="eDL_DG7", default=None)
|
|
77
|
+
e_dl_dg8: SkipValidation[Optional[Dict[str, object]]] = Field(alias="eDL_DG8", default=None)
|
|
78
|
+
e_dl_dg9: SkipValidation[Optional[Dict[str, object]]] = Field(alias="eDL_DG9", default=None)
|
|
79
|
+
e_dl_dg10: SkipValidation[Optional[Dict[str, object]]] = Field(alias="eDL_DG10", default=None)
|
|
80
|
+
e_dl_dg11: SkipValidation[Optional[Dict[str, object]]] = Field(alias="eDL_DG11", default=None)
|
|
81
|
+
e_dl_dg12: SkipValidation[Optional[Dict[str, object]]] = Field(alias="eDL_DG12", default=None)
|
|
82
|
+
e_dl_dg13: SkipValidation[Optional[Dict[str, object]]] = Field(alias="eDL_DG13", default=None)
|
|
83
|
+
e_dl_dg14: SkipValidation[Optional[Dict[str, object]]] = Field(alias="eDL_DG14", default=None)
|
|
84
|
+
visible_digital_seal: SkipValidation[Optional[Dict[str, object]]] = Field(alias="Visible_Digital_Seal", default=None)
|
|
85
|
+
visible_digital_seal_nc: SkipValidation[Optional[Dict[str, object]]] = Field(alias="Visible_Digital_Seal_NC", default=None)
|
|
86
|
+
digital_signature: SkipValidation[Optional[Dict[str, object]]] = Field(alias="Digital_Signature", default=None)
|
|
87
|
+
rfid_session_data: SkipValidation[Optional[RfidSessionData]] = Field(alias="RFID_Session_Data", default=None)
|
|
88
|
+
rfid_session_data_status: SkipValidation[Optional[DetailsRFID]] = Field(alias="RFID_Session_Data_Status", default=None)
|
|
89
|
+
rfid_e_passp_directory: SkipValidation[Optional[List[RfidDataFileType]]] = Field(alias="RFID_ePassp_Directory", default=None, description="Indexes of groups that aren't read")
|
|
89
90
|
__properties: ClassVar[List[str]] = ["RFID_Authentication_Info", "RFID_MIFARE_Data_Validity", "RFID_MIFARE_Data", "RFID_EF_COM", "RFID_DG1", "RFID_DG2", "RFID_DG3", "RFID_DG4", "RFID_DG5", "RFID_DG6", "RFID_DG7", "RFID_DG8", "RFID_DG9", "RFID_DG10", "RFID_DG11", "RFID_DG12", "RFID_DG13", "RFID_DG14", "RFID_DG15", "RFID_DG16", "RFID_EF_SOD", "eID_DG1", "eID_DG2", "eID_DG3", "eID_DG4", "eID_DG5", "eID_DG6", "eID_DG7", "eID_DG8", "eID_DG9", "eID_DG10", "eID_DG11", "eID_DG12", "eID_DG13", "eID_DG14", "eID_DG15", "eID_DG16", "eID_DG17", "eID_DG18", "eID_DG19", "eID_DG20", "eID_DG21", "eDL_COM", "eDL_SOD", "eDL_DG1", "eDL_DG2", "eDL_DG3", "eDL_DG4", "eDL_DG5", "eDL_DG6", "eDL_DG7", "eDL_DG8", "eDL_DG9", "eDL_DG10", "eDL_DG11", "eDL_DG12", "eDL_DG13", "eDL_DG14", "Visible_Digital_Seal", "Visible_Digital_Seal_NC", "Digital_Signature", "RFID_Session_Data", "RFID_Session_Data_Status", "RFID_ePassp_Directory"]
|
|
90
91
|
|
|
91
92
|
model_config = ConfigDict(
|
|
92
93
|
populate_by_name=True,
|
|
93
94
|
validate_assignment=True,
|
|
94
95
|
protected_namespaces=(),
|
|
96
|
+
arbitrary_types_allowed=True,
|
|
97
|
+
use_enum_values=True
|
|
95
98
|
)
|
|
96
99
|
|
|
97
100
|
|
|
@@ -13,18 +13,21 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
|
13
13
|
from typing import Any, ClassVar, Dict, List
|
|
14
14
|
from typing import Optional, Set
|
|
15
15
|
from typing_extensions import Self
|
|
16
|
+
from pydantic import SkipValidation, Field
|
|
16
17
|
|
|
17
18
|
class ByteArrayItem(BaseModel):
|
|
18
19
|
"""
|
|
19
20
|
ByteArrayItem
|
|
20
21
|
""" # noqa: E501
|
|
21
|
-
byte_array:
|
|
22
|
+
byte_array: SkipValidation[str] = Field(alias="ByteArray", description="Byte array in base64")
|
|
22
23
|
__properties: ClassVar[List[str]] = ["ByteArray"]
|
|
23
24
|
|
|
24
25
|
model_config = ConfigDict(
|
|
25
26
|
populate_by_name=True,
|
|
26
27
|
validate_assignment=True,
|
|
27
28
|
protected_namespaces=(),
|
|
29
|
+
arbitrary_types_allowed=True,
|
|
30
|
+
use_enum_values=True
|
|
28
31
|
)
|
|
29
32
|
|
|
30
33
|
|
|
@@ -15,18 +15,21 @@ from regula.documentreader.webclient.gen.models.result import Result
|
|
|
15
15
|
from regula.documentreader.webclient.gen.models.result_item import ResultItem
|
|
16
16
|
from typing import Optional, Set
|
|
17
17
|
from typing_extensions import Self
|
|
18
|
+
from pydantic import SkipValidation, Field
|
|
18
19
|
|
|
19
20
|
class ByteArrayResult(ResultItem):
|
|
20
21
|
"""
|
|
21
22
|
ByteArrayResult
|
|
22
23
|
""" # noqa: E501
|
|
23
|
-
byte_array:
|
|
24
|
+
byte_array: SkipValidation[str] = Field(alias="ByteArray", description="Byte array in base64")
|
|
24
25
|
__properties: ClassVar[List[str]] = ["buf_length", "light", "list_idx", "page_idx", "result_type", "ByteArray"]
|
|
25
26
|
|
|
26
27
|
model_config = ConfigDict(
|
|
27
28
|
populate_by_name=True,
|
|
28
29
|
validate_assignment=True,
|
|
29
30
|
protected_namespaces=(),
|
|
31
|
+
arbitrary_types_allowed=True,
|
|
32
|
+
use_enum_values=True
|
|
30
33
|
)
|
|
31
34
|
|
|
32
35
|
|
|
@@ -14,18 +14,21 @@ from typing import Any, ClassVar, Dict, List, Optional
|
|
|
14
14
|
from regula.documentreader.webclient.gen.models.document_types_candidates_list import DocumentTypesCandidatesList
|
|
15
15
|
from typing import Optional, Set
|
|
16
16
|
from typing_extensions import Self
|
|
17
|
+
from pydantic import SkipValidation, Field
|
|
17
18
|
|
|
18
19
|
class CandidatesListItem(BaseModel):
|
|
19
20
|
"""
|
|
20
21
|
CandidatesListItem
|
|
21
22
|
""" # noqa: E501
|
|
22
|
-
candidates_list: Optional[DocumentTypesCandidatesList] = Field(
|
|
23
|
+
candidates_list: SkipValidation[Optional[DocumentTypesCandidatesList]] = Field(alias="CandidatesList", default=None)
|
|
23
24
|
__properties: ClassVar[List[str]] = ["CandidatesList"]
|
|
24
25
|
|
|
25
26
|
model_config = ConfigDict(
|
|
26
27
|
populate_by_name=True,
|
|
27
28
|
validate_assignment=True,
|
|
28
29
|
protected_namespaces=(),
|
|
30
|
+
arbitrary_types_allowed=True,
|
|
31
|
+
use_enum_values=True
|
|
29
32
|
)
|
|
30
33
|
|
|
31
34
|
|
|
@@ -13,19 +13,22 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
|
|
|
13
13
|
from typing import Any, ClassVar, Dict, List
|
|
14
14
|
from typing import Optional, Set
|
|
15
15
|
from typing_extensions import Self
|
|
16
|
+
from pydantic import SkipValidation, Field
|
|
16
17
|
|
|
17
18
|
class CertificateData(BaseModel):
|
|
18
19
|
"""
|
|
19
20
|
CertificateData
|
|
20
21
|
""" # noqa: E501
|
|
21
|
-
data:
|
|
22
|
-
length:
|
|
22
|
+
data: SkipValidation[str] = Field(alias="Data")
|
|
23
|
+
length: SkipValidation[int] = Field(alias="Length")
|
|
23
24
|
__properties: ClassVar[List[str]] = ["Data", "Length"]
|
|
24
25
|
|
|
25
26
|
model_config = ConfigDict(
|
|
26
27
|
populate_by_name=True,
|
|
27
28
|
validate_assignment=True,
|
|
28
29
|
protected_namespaces=(),
|
|
30
|
+
arbitrary_types_allowed=True,
|
|
31
|
+
use_enum_values=True
|
|
29
32
|
)
|
|
30
33
|
|
|
31
34
|
|
|
@@ -68,6 +68,8 @@ class CheckDiagnose(int, Enum):
|
|
|
68
68
|
FIELD_POS_CORRECTOR_FACE_PRESENCE_CHECK_ERROR = 84
|
|
69
69
|
FIELD_POS_CORRECTOR_FACE_ABSENCE_CHECK_ERROR = 85
|
|
70
70
|
FIELD_POS_CORRECTOR_INCORRECT_HEAD_POSITION = 86
|
|
71
|
+
FIELD_POS_CORRECTOR_AGE_CHECK_ERROR = 87
|
|
72
|
+
FIELD_POS_CORRECTOR_SEX_CHECK_ERROR = 88
|
|
71
73
|
OVI_IR_INVISIBLE = 90
|
|
72
74
|
OVI_INSUFFICIENT_AREA = 91
|
|
73
75
|
OVI_COLOR_INVARIABLE = 92
|
|
@@ -16,29 +16,32 @@ from regula.documentreader.webclient.gen.models.fdsid_list import FDSIDList
|
|
|
16
16
|
from regula.documentreader.webclient.gen.models.rfid_location import RfidLocation
|
|
17
17
|
from typing import Optional, Set
|
|
18
18
|
from typing_extensions import Self
|
|
19
|
+
from pydantic import SkipValidation, Field
|
|
19
20
|
|
|
20
21
|
class ChosenDocumentType(BaseModel):
|
|
21
22
|
"""
|
|
22
23
|
Contains information about one document type candidate
|
|
23
24
|
""" # noqa: E501
|
|
24
|
-
document_name: Optional[
|
|
25
|
-
id:
|
|
26
|
-
p:
|
|
27
|
-
rotated180:
|
|
28
|
-
rfid_presence: RfidLocation = Field(alias="RFID_Presence")
|
|
29
|
-
fdsid_list: Optional[FDSIDList] = Field(
|
|
30
|
-
necessary_lights:
|
|
31
|
-
check_authenticity:
|
|
32
|
-
uv_exp:
|
|
33
|
-
authenticity_necessary_lights:
|
|
34
|
-
ovi_exp:
|
|
35
|
-
rotation_angle: Optional[
|
|
25
|
+
document_name: SkipValidation[Optional[str]] = Field(alias="DocumentName", default=None, description="Document name")
|
|
26
|
+
id: SkipValidation[int] = Field(alias="ID", description="Unique document type template identifier (Regula's internal numeric code)")
|
|
27
|
+
p: SkipValidation[float] = Field(alias="P", description="A measure of the likelihood of correct recognition in the analysis of this type of document")
|
|
28
|
+
rotated180: SkipValidation[int] = Field(alias="Rotated180", description="Indicates if the document of the given type is rotated by 180 degrees")
|
|
29
|
+
rfid_presence: SkipValidation[RfidLocation] = Field(alias="RFID_Presence")
|
|
30
|
+
fdsid_list: SkipValidation[Optional[FDSIDList]] = Field(alias="FDSIDList", default=None)
|
|
31
|
+
necessary_lights: SkipValidation[int] = Field(alias="NecessaryLights", description="Combination of lighting scheme identifiers (Light enum) required to conduct OCR for this type of document")
|
|
32
|
+
check_authenticity: SkipValidation[int] = Field(alias="CheckAuthenticity", description="Set of authentication options provided for this type of document (combination of Authenticity enum)")
|
|
33
|
+
uv_exp: SkipValidation[int] = Field(alias="UVExp", description="The required exposure value of the camera when receiving images of a document of this type for a UV lighting scheme")
|
|
34
|
+
authenticity_necessary_lights: SkipValidation[int] = Field(alias="AuthenticityNecessaryLights", description="Combination of lighting scheme identifiers (combination of Light enum) needed to perform all authenticity checks specified in CheckAuthenticity")
|
|
35
|
+
ovi_exp: SkipValidation[float] = Field(alias="OVIExp", description="Camera exposure value necessary when obtaining document images of the given type for AXIAL lighting scheme")
|
|
36
|
+
rotation_angle: SkipValidation[Optional[int]] = Field(alias="RotationAngle", default=None)
|
|
36
37
|
__properties: ClassVar[List[str]] = ["DocumentName", "ID", "P", "Rotated180", "RFID_Presence", "FDSIDList", "NecessaryLights", "CheckAuthenticity", "UVExp", "AuthenticityNecessaryLights", "OVIExp", "RotationAngle"]
|
|
37
38
|
|
|
38
39
|
model_config = ConfigDict(
|
|
39
40
|
populate_by_name=True,
|
|
40
41
|
validate_assignment=True,
|
|
41
42
|
protected_namespaces=(),
|
|
43
|
+
arbitrary_types_allowed=True,
|
|
44
|
+
use_enum_values=True
|
|
42
45
|
)
|
|
43
46
|
|
|
44
47
|
|
|
@@ -16,19 +16,22 @@ from regula.documentreader.webclient.gen.models.result import Result
|
|
|
16
16
|
from regula.documentreader.webclient.gen.models.result_item import ResultItem
|
|
17
17
|
from typing import Optional, Set
|
|
18
18
|
from typing_extensions import Self
|
|
19
|
+
from pydantic import SkipValidation, Field
|
|
19
20
|
|
|
20
21
|
class ChosenDocumentTypeResult(ResultItem):
|
|
21
22
|
"""
|
|
22
23
|
Contains information about the type of document that was determined based on the analysis of the provided image
|
|
23
24
|
""" # noqa: E501
|
|
24
|
-
one_candidate: OneCandidate = Field(alias="OneCandidate")
|
|
25
|
-
xml_buffer: Optional[
|
|
25
|
+
one_candidate: SkipValidation[OneCandidate] = Field(alias="OneCandidate")
|
|
26
|
+
xml_buffer: SkipValidation[Optional[str]] = Field(alias="XML_buffer", default=None)
|
|
26
27
|
__properties: ClassVar[List[str]] = ["buf_length", "light", "list_idx", "page_idx", "result_type", "OneCandidate", "XML_buffer"]
|
|
27
28
|
|
|
28
29
|
model_config = ConfigDict(
|
|
29
30
|
populate_by_name=True,
|
|
30
31
|
validate_assignment=True,
|
|
31
32
|
protected_namespaces=(),
|
|
33
|
+
arbitrary_types_allowed=True,
|
|
34
|
+
use_enum_values=True
|
|
32
35
|
)
|
|
33
36
|
|
|
34
37
|
|
|
@@ -14,19 +14,22 @@ from typing import Any, ClassVar, Dict, List, Optional
|
|
|
14
14
|
from regula.documentreader.webclient.gen.models.result_item import ResultItem
|
|
15
15
|
from typing import Optional, Set
|
|
16
16
|
from typing_extensions import Self
|
|
17
|
+
from pydantic import SkipValidation, Field
|
|
17
18
|
|
|
18
19
|
class ContainerList(BaseModel):
|
|
19
20
|
"""
|
|
20
21
|
List with various objects, containing processing results
|
|
21
22
|
""" # noqa: E501
|
|
22
|
-
count: Optional[
|
|
23
|
-
list: List[ResultItem] = Field(alias="List")
|
|
23
|
+
count: SkipValidation[Optional[int]] = Field(alias="Count", default=None, description="Length of list (Count for items)")
|
|
24
|
+
list: SkipValidation[List[ResultItem]] = Field(alias="List")
|
|
24
25
|
__properties: ClassVar[List[str]] = ["Count", "List"]
|
|
25
26
|
|
|
26
27
|
model_config = ConfigDict(
|
|
27
28
|
populate_by_name=True,
|
|
28
29
|
validate_assignment=True,
|
|
29
30
|
protected_namespaces=(),
|
|
31
|
+
arbitrary_types_allowed=True,
|
|
32
|
+
use_enum_values=True
|
|
30
33
|
)
|
|
31
34
|
|
|
32
35
|
|
|
@@ -15,20 +15,23 @@ from regula.documentreader.webclient.gen.models.check_result import CheckResult
|
|
|
15
15
|
from regula.documentreader.webclient.gen.models.source import Source
|
|
16
16
|
from typing import Optional, Set
|
|
17
17
|
from typing_extensions import Self
|
|
18
|
+
from pydantic import SkipValidation, Field
|
|
18
19
|
|
|
19
20
|
class CrossSourceValueComparison(BaseModel):
|
|
20
21
|
"""
|
|
21
22
|
CrossSourceValueComparison
|
|
22
23
|
""" # noqa: E501
|
|
23
|
-
source_left: Source = Field(alias="sourceLeft")
|
|
24
|
-
source_right: Source = Field(alias="sourceRight")
|
|
25
|
-
status: CheckResult
|
|
24
|
+
source_left: SkipValidation[Source] = Field(alias="sourceLeft")
|
|
25
|
+
source_right: SkipValidation[Source] = Field(alias="sourceRight")
|
|
26
|
+
status: SkipValidation[CheckResult] = Field(alias="status")
|
|
26
27
|
__properties: ClassVar[List[str]] = ["sourceLeft", "sourceRight", "status"]
|
|
27
28
|
|
|
28
29
|
model_config = ConfigDict(
|
|
29
30
|
populate_by_name=True,
|
|
30
31
|
validate_assignment=True,
|
|
31
32
|
protected_namespaces=(),
|
|
33
|
+
arbitrary_types_allowed=True,
|
|
34
|
+
use_enum_values=True
|
|
32
35
|
)
|
|
33
36
|
|
|
34
37
|
|
|
@@ -14,22 +14,25 @@ from typing import Any, ClassVar, Dict, List, Optional
|
|
|
14
14
|
from regula.documentreader.webclient.gen.models.bar_code_module_type import BarCodeModuleType
|
|
15
15
|
from typing import Optional, Set
|
|
16
16
|
from typing_extensions import Self
|
|
17
|
+
from pydantic import SkipValidation, Field
|
|
17
18
|
|
|
18
19
|
class DataModule(BaseModel):
|
|
19
20
|
"""
|
|
20
21
|
DataModule
|
|
21
22
|
""" # noqa: E501
|
|
22
|
-
m_data:
|
|
23
|
-
m_length:
|
|
24
|
-
m_reserved1: Optional[
|
|
25
|
-
m_reserver2: Optional[
|
|
26
|
-
m_type: BarCodeModuleType = Field(alias="mType")
|
|
23
|
+
m_data: SkipValidation[str] = Field(alias="mData")
|
|
24
|
+
m_length: SkipValidation[int] = Field(alias="mLength")
|
|
25
|
+
m_reserved1: SkipValidation[Optional[int]] = Field(alias="mReserved1", default=None)
|
|
26
|
+
m_reserver2: SkipValidation[Optional[int]] = Field(alias="mReserver2", default=None)
|
|
27
|
+
m_type: SkipValidation[BarCodeModuleType] = Field(alias="mType")
|
|
27
28
|
__properties: ClassVar[List[str]] = ["mData", "mLength", "mReserved1", "mReserver2", "mType"]
|
|
28
29
|
|
|
29
30
|
model_config = ConfigDict(
|
|
30
31
|
populate_by_name=True,
|
|
31
32
|
validate_assignment=True,
|
|
32
33
|
protected_namespaces=(),
|
|
34
|
+
arbitrary_types_allowed=True,
|
|
35
|
+
use_enum_values=True
|
|
33
36
|
)
|
|
34
37
|
|
|
35
38
|
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Generated by: https://openapi-generator.tech
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from __future__ import annotations
|
|
8
|
+
import pprint
|
|
9
|
+
import re # noqa: F401
|
|
10
|
+
import json
|
|
11
|
+
|
|
12
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr
|
|
13
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
14
|
+
from regula.documentreader.webclient.gen.models.document_type import DocumentType
|
|
15
|
+
from typing import Optional, Set
|
|
16
|
+
from typing_extensions import Self
|
|
17
|
+
from pydantic import SkipValidation, Field
|
|
18
|
+
|
|
19
|
+
class DatabaseDocument(BaseModel):
|
|
20
|
+
"""
|
|
21
|
+
DatabaseDocument
|
|
22
|
+
""" # noqa: E501
|
|
23
|
+
barcode_fields: SkipValidation[bool] = Field(alias="barcode_fields", description="Whether the document has a barcode.")
|
|
24
|
+
country: SkipValidation[str] = Field(alias="country", description="Country name.")
|
|
25
|
+
createad: SkipValidation[str] = Field(alias="createad", description="Date when the document description was created in the database.")
|
|
26
|
+
doc_type: SkipValidation[DocumentType] = Field(alias="doc_type")
|
|
27
|
+
document: SkipValidation[str] = Field(alias="document", description="Document name.")
|
|
28
|
+
graphic_fields: SkipValidation[bool] = Field(alias="graphic_fields", description="The presence of graphic fields in the document.")
|
|
29
|
+
id: SkipValidation[int] = Field(alias="id", description="Document code.")
|
|
30
|
+
mrz: SkipValidation[bool] = Field(alias="mrz", description="The document has an MRZ.")
|
|
31
|
+
region: SkipValidation[Optional[str]] = Field(alias="region", default=None, description="Country region.")
|
|
32
|
+
rfid_chip: SkipValidation[bool] = Field(alias="rfid_chip", description="The document has an RFID chip.")
|
|
33
|
+
text_fields: SkipValidation[bool] = Field(alias="text_fields", description="The presence of text fields in the document.")
|
|
34
|
+
updated: SkipValidation[str] = Field(alias="updated", description="Date when the document description was updated in the database.")
|
|
35
|
+
year: SkipValidation[Optional[str]] = Field(alias="year", default=None, description="The year when the document was issued.")
|
|
36
|
+
sovereignty: SkipValidation[Optional[str]] = Field(alias="sovereignty", default=None, description="Guardian country.")
|
|
37
|
+
deprecated: SkipValidation[Optional[bool]] = Field(alias="deprecated", default=None, description="Whether the document is no longer in circulation.")
|
|
38
|
+
__properties: ClassVar[List[str]] = ["barcode_fields", "country", "createad", "doc_type", "document", "graphic_fields", "id", "mrz", "region", "rfid_chip", "text_fields", "updated", "year", "sovereignty", "deprecated"]
|
|
39
|
+
|
|
40
|
+
model_config = ConfigDict(
|
|
41
|
+
populate_by_name=True,
|
|
42
|
+
validate_assignment=True,
|
|
43
|
+
protected_namespaces=(),
|
|
44
|
+
arbitrary_types_allowed=True,
|
|
45
|
+
use_enum_values=True
|
|
46
|
+
)
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
def to_str(self) -> str:
|
|
50
|
+
"""Returns the string representation of the model using alias"""
|
|
51
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
52
|
+
|
|
53
|
+
def to_json(self) -> str:
|
|
54
|
+
"""Returns the JSON representation of the model using alias"""
|
|
55
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
56
|
+
return json.dumps(self.to_dict())
|
|
57
|
+
|
|
58
|
+
@classmethod
|
|
59
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
60
|
+
"""Create an instance of DatabaseDocument from a JSON string"""
|
|
61
|
+
return cls.from_dict(json.loads(json_str))
|
|
62
|
+
|
|
63
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
64
|
+
"""Return the dictionary representation of the model using alias.
|
|
65
|
+
|
|
66
|
+
This has the following differences from calling pydantic's
|
|
67
|
+
`self.model_dump(by_alias=True)`:
|
|
68
|
+
|
|
69
|
+
* `None` is only added to the output dict for nullable fields that
|
|
70
|
+
were set at model initialization. Other fields with value `None`
|
|
71
|
+
are ignored.
|
|
72
|
+
"""
|
|
73
|
+
excluded_fields: Set[str] = set([
|
|
74
|
+
])
|
|
75
|
+
|
|
76
|
+
_dict = self.model_dump(
|
|
77
|
+
by_alias=True,
|
|
78
|
+
exclude=excluded_fields,
|
|
79
|
+
exclude_none=True,
|
|
80
|
+
)
|
|
81
|
+
return _dict
|
|
82
|
+
|
|
83
|
+
@classmethod
|
|
84
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
85
|
+
"""Create an instance of DatabaseDocument from a dict"""
|
|
86
|
+
if obj is None:
|
|
87
|
+
return None
|
|
88
|
+
|
|
89
|
+
if not isinstance(obj, dict):
|
|
90
|
+
return cls.model_validate(obj)
|
|
91
|
+
|
|
92
|
+
_obj = cls.model_validate({
|
|
93
|
+
"barcode_fields": obj.get("barcode_fields"),
|
|
94
|
+
"country": obj.get("country"),
|
|
95
|
+
"createad": obj.get("createad"),
|
|
96
|
+
"doc_type": obj.get("doc_type"),
|
|
97
|
+
"document": obj.get("document"),
|
|
98
|
+
"graphic_fields": obj.get("graphic_fields"),
|
|
99
|
+
"id": obj.get("id"),
|
|
100
|
+
"mrz": obj.get("mrz"),
|
|
101
|
+
"region": obj.get("region"),
|
|
102
|
+
"rfid_chip": obj.get("rfid_chip"),
|
|
103
|
+
"text_fields": obj.get("text_fields"),
|
|
104
|
+
"updated": obj.get("updated"),
|
|
105
|
+
"year": obj.get("year"),
|
|
106
|
+
"sovereignty": obj.get("sovereignty"),
|
|
107
|
+
"deprecated": obj.get("deprecated")
|
|
108
|
+
})
|
|
109
|
+
return _obj
|
|
110
|
+
|
|
111
|
+
|