regula-documentreader-webclient 9.1.2.dev0__py3-none-any.whl → 9.1.645.dev0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- regula/documentreader/webclient/gen/__init__.py +51 -0
- regula/documentreader/webclient/gen/models/__init__.py +34 -0
- regula/documentreader/webclient/gen/models/area_array.py +2 -2
- regula/documentreader/webclient/gen/models/area_container.py +2 -2
- regula/documentreader/webclient/gen/models/auth_params.py +1 -1
- regula/documentreader/webclient/gen/models/authenticity_check_list.py +1 -1
- regula/documentreader/webclient/gen/models/authenticity_check_list_item.py +1 -1
- regula/documentreader/webclient/gen/models/authenticity_check_result.py +1 -1
- regula/documentreader/webclient/gen/models/authenticity_result.py +1 -1
- regula/documentreader/webclient/gen/models/barcode_position_item.py +1 -1
- regula/documentreader/webclient/gen/models/barcode_position_result.py +1 -1
- regula/documentreader/webclient/gen/models/binary_data.py +3 -3
- regula/documentreader/webclient/gen/models/candidates_list_item.py +1 -1
- regula/documentreader/webclient/gen/models/chosen_document_type.py +1 -1
- regula/documentreader/webclient/gen/models/chosen_document_type_result.py +1 -1
- regula/documentreader/webclient/gen/models/container_list.py +1 -1
- regula/documentreader/webclient/gen/models/container_list_list_inner.py +50 -8
- regula/documentreader/webclient/gen/models/database_document_list.py +1 -1
- regula/documentreader/webclient/gen/models/details_age.py +93 -0
- regula/documentreader/webclient/gen/models/device_info.py +1 -1
- regula/documentreader/webclient/gen/models/doc_bar_code_info.py +1 -1
- regula/documentreader/webclient/gen/models/doc_bar_code_info_fields_list.py +1 -1
- regula/documentreader/webclient/gen/models/doc_bar_code_info_item.py +1 -1
- regula/documentreader/webclient/gen/models/doc_feature.py +88 -0
- regula/documentreader/webclient/gen/models/doc_graphics_info_item.py +1 -1
- regula/documentreader/webclient/gen/models/doc_visual_extended_field.py +2 -2
- regula/documentreader/webclient/gen/models/doc_visual_extended_field_item.py +1 -1
- regula/documentreader/webclient/gen/models/doc_visual_extended_info.py +1 -1
- regula/documentreader/webclient/gen/models/doc_visual_extended_info_item.py +1 -1
- regula/documentreader/webclient/gen/models/document_binary_info_result.py +1 -1
- regula/documentreader/webclient/gen/models/document_image_result.py +1 -1
- regula/documentreader/webclient/gen/models/document_position.py +5 -5
- regula/documentreader/webclient/gen/models/document_position_item.py +1 -1
- regula/documentreader/webclient/gen/models/document_position_result.py +1 -1
- regula/documentreader/webclient/gen/models/document_types_candidates.py +1 -1
- regula/documentreader/webclient/gen/models/document_types_candidates_list.py +1 -1
- regula/documentreader/webclient/gen/models/document_types_candidates_result.py +1 -1
- regula/documentreader/webclient/gen/models/face_api.py +1 -1
- regula/documentreader/webclient/gen/models/face_detection.py +1 -1
- regula/documentreader/webclient/gen/models/face_detection_item.py +1 -1
- regula/documentreader/webclient/gen/models/face_detection_result.py +1 -1
- regula/documentreader/webclient/gen/models/face_item.py +3 -3
- regula/documentreader/webclient/gen/models/fiber_item.py +1 -1
- regula/documentreader/webclient/gen/models/fiber_result.py +1 -1
- regula/documentreader/webclient/gen/models/graph_data.py +1 -1
- regula/documentreader/webclient/gen/models/graphic_field.py +2 -2
- regula/documentreader/webclient/gen/models/graphic_fields_list.py +1 -1
- regula/documentreader/webclient/gen/models/graphics_result.py +1 -1
- regula/documentreader/webclient/gen/models/healthcheck.py +1 -1
- regula/documentreader/webclient/gen/models/ident_item.py +4 -4
- regula/documentreader/webclient/gen/models/ident_result.py +4 -4
- regula/documentreader/webclient/gen/models/image_qa.py +1 -1
- regula/documentreader/webclient/gen/models/image_quality_check.py +1 -1
- regula/documentreader/webclient/gen/models/image_quality_check_list.py +1 -1
- regula/documentreader/webclient/gen/models/image_quality_check_list_item.py +1 -1
- regula/documentreader/webclient/gen/models/image_quality_result.py +1 -1
- regula/documentreader/webclient/gen/models/image_transaction_data.py +1 -1
- regula/documentreader/webclient/gen/models/images.py +2 -2
- regula/documentreader/webclient/gen/models/images_field.py +1 -1
- regula/documentreader/webclient/gen/models/images_field_value.py +2 -2
- regula/documentreader/webclient/gen/models/images_item.py +1 -1
- regula/documentreader/webclient/gen/models/images_result.py +1 -1
- regula/documentreader/webclient/gen/models/in_data.py +2 -2
- regula/documentreader/webclient/gen/models/lexical_analysis_result.py +1 -1
- regula/documentreader/webclient/gen/models/list_transactions_by_tag_response.py +1 -1
- regula/documentreader/webclient/gen/models/list_verified_fields.py +1 -1
- regula/documentreader/webclient/gen/models/list_verified_fields_item.py +1 -1
- regula/documentreader/webclient/gen/models/mdl_device_engagement.py +29 -0
- regula/documentreader/webclient/gen/models/mdl_device_retrieval.py +30 -0
- regula/documentreader/webclient/gen/models/mdl_item.py +82 -0
- regula/documentreader/webclient/gen/models/mdl_result.py +89 -0
- regula/documentreader/webclient/gen/models/mdl_server_retrieval.py +29 -0
- regula/documentreader/webclient/gen/models/message.py +98 -0
- regula/documentreader/webclient/gen/models/mrz_detector_result.py +1 -1
- regula/documentreader/webclient/gen/models/mrz_position_item.py +1 -1
- regula/documentreader/webclient/gen/models/mrz_position_result.py +1 -1
- regula/documentreader/webclient/gen/models/mrz_rows_item.py +1 -1
- regula/documentreader/webclient/gen/models/mrz_test_quality.py +1 -1
- regula/documentreader/webclient/gen/models/mrz_test_quality_item.py +1 -1
- regula/documentreader/webclient/gen/models/mrz_test_quality_result.py +1 -1
- regula/documentreader/webclient/gen/models/ocr_security_text_item.py +2 -2
- regula/documentreader/webclient/gen/models/ocr_security_text_result.py +2 -2
- regula/documentreader/webclient/gen/models/one_candidate.py +1 -1
- regula/documentreader/webclient/gen/models/one_candidate_item.py +1 -1
- regula/documentreader/webclient/gen/models/original_symbol.py +1 -1
- regula/documentreader/webclient/gen/models/out_data.py +1 -1
- regula/documentreader/webclient/gen/models/p_array_field.py +3 -3
- regula/documentreader/webclient/gen/models/photo_ident_item.py +3 -3
- regula/documentreader/webclient/gen/models/photo_ident_result.py +3 -3
- regula/documentreader/webclient/gen/models/pid.py +88 -0
- regula/documentreader/webclient/gen/models/point_array.py +1 -1
- regula/documentreader/webclient/gen/models/points_container.py +1 -1
- regula/documentreader/webclient/gen/models/process_params.py +5 -5
- regula/documentreader/webclient/gen/models/process_request.py +4 -4
- regula/documentreader/webclient/gen/models/process_request_image.py +1 -1
- regula/documentreader/webclient/gen/models/process_response.py +2 -2
- regula/documentreader/webclient/gen/models/raw_image_container_item.py +1 -1
- regula/documentreader/webclient/gen/models/raw_image_container_list.py +1 -1
- regula/documentreader/webclient/gen/models/result.py +3 -0
- regula/documentreader/webclient/gen/models/result_item.py +12 -3
- regula/documentreader/webclient/gen/models/result_mrz_detector.py +1 -1
- regula/documentreader/webclient/gen/models/result_mrz_detector_item.py +1 -1
- regula/documentreader/webclient/gen/models/rfid_application.py +1 -1
- regula/documentreader/webclient/gen/models/rfid_attribute_name.py +1 -1
- regula/documentreader/webclient/gen/models/rfid_certificate_ex.py +5 -5
- regula/documentreader/webclient/gen/models/rfid_data_file.py +3 -3
- regula/documentreader/webclient/gen/models/rfid_distinguished_name.py +2 -2
- regula/documentreader/webclient/gen/models/rfid_doc_visual_extended_field.py +1 -1
- regula/documentreader/webclient/gen/models/rfid_doc_visual_extended_info.py +1 -1
- regula/documentreader/webclient/gen/models/rfid_doc_visual_extended_info_item.py +1 -1
- regula/documentreader/webclient/gen/models/rfid_graphics_info_result.py +1 -1
- regula/documentreader/webclient/gen/models/rfid_security_object.py +1 -1
- regula/documentreader/webclient/gen/models/rfid_session_data.py +6 -6
- regula/documentreader/webclient/gen/models/rfid_signer_info_ex.py +6 -6
- regula/documentreader/webclient/gen/models/rfid_text_data_result.py +1 -1
- regula/documentreader/webclient/gen/models/rfid_validity.py +2 -2
- regula/documentreader/webclient/gen/models/security_feature_item.py +2 -2
- regula/documentreader/webclient/gen/models/security_feature_result.py +2 -2
- regula/documentreader/webclient/gen/models/security_object_certificates.py +1 -1
- regula/documentreader/webclient/gen/models/status.py +14 -4
- regula/documentreader/webclient/gen/models/status_item.py +1 -1
- regula/documentreader/webclient/gen/models/status_result.py +1 -1
- regula/documentreader/webclient/gen/models/string_item.py +4 -4
- regula/documentreader/webclient/gen/models/string_recognition_result.py +1 -1
- regula/documentreader/webclient/gen/models/symbol_estimation_item.py +1 -1
- regula/documentreader/webclient/gen/models/symbol_recognition_result.py +2 -2
- regula/documentreader/webclient/gen/models/t_doc_binary_info.py +2 -2
- regula/documentreader/webclient/gen/models/t_doc_binary_info_item.py +1 -1
- regula/documentreader/webclient/gen/models/t_original_rfid_graphics_info.py +1 -1
- regula/documentreader/webclient/gen/models/t_original_rfid_graphics_info_item.py +1 -1
- regula/documentreader/webclient/gen/models/text.py +2 -2
- regula/documentreader/webclient/gen/models/text_data_result.py +1 -1
- regula/documentreader/webclient/gen/models/text_field.py +3 -3
- regula/documentreader/webclient/gen/models/text_field_type.py +3 -0
- regula/documentreader/webclient/gen/models/text_field_value.py +3 -3
- regula/documentreader/webclient/gen/models/text_item.py +1 -1
- regula/documentreader/webclient/gen/models/text_result.py +1 -1
- regula/documentreader/webclient/gen/models/transaction_image.py +1 -1
- regula/documentreader/webclient/gen/models/transaction_info.py +1 -1
- regula/documentreader/webclient/gen/models/transaction_process_get_response.py +2 -2
- regula/documentreader/webclient/gen/models/transaction_process_request.py +4 -4
- regula/documentreader/webclient/gen/models/transaction_process_result.py +2 -2
- regula/documentreader/webclient/gen/models/trf_ft_string.py +1 -1
- regula/documentreader/webclient/gen/models/vd_item.py +90 -0
- regula/documentreader/webclient/gen/models/vds_data.py +126 -0
- regula/documentreader/webclient/gen/models/vds_data_item.py +86 -0
- regula/documentreader/webclient/gen/models/vds_data_result.py +93 -0
- regula/documentreader/webclient/gen/models/vdsnc_data.py +117 -0
- regula/documentreader/webclient/gen/models/vdsnc_data_item.py +86 -0
- regula/documentreader/webclient/gen/models/vdsnc_data_result.py +93 -0
- regula/documentreader/webclient/gen/models/ve_item.py +96 -0
- regula/documentreader/webclient/gen/models/visual_extended_field_item.py +1 -1
- {regula_documentreader_webclient-9.1.2.dev0.dist-info → regula_documentreader_webclient-9.1.645.dev0.dist-info}/METADATA +1 -1
- {regula_documentreader_webclient-9.1.2.dev0.dist-info → regula_documentreader_webclient-9.1.645.dev0.dist-info}/RECORD +156 -139
- {regula_documentreader_webclient-9.1.2.dev0.dist-info → regula_documentreader_webclient-9.1.645.dev0.dist-info}/WHEEL +0 -0
- {regula_documentreader_webclient-9.1.2.dev0.dist-info → regula_documentreader_webclient-9.1.645.dev0.dist-info}/top_level.txt +0 -0
|
@@ -65,7 +65,7 @@ class StatusItem(BaseModel):
|
|
|
65
65
|
exclude_none=True,
|
|
66
66
|
)
|
|
67
67
|
# override the default output from pydantic by calling `to_dict()` of status
|
|
68
|
-
if self.status:
|
|
68
|
+
if self.status and isinstance(self.status, Status):
|
|
69
69
|
_dict['Status'] = self.status.to_dict()
|
|
70
70
|
return _dict
|
|
71
71
|
|
|
@@ -67,7 +67,7 @@ class StatusResult(ResultItem):
|
|
|
67
67
|
exclude_none=True,
|
|
68
68
|
)
|
|
69
69
|
# override the default output from pydantic by calling `to_dict()` of status
|
|
70
|
-
if self.status:
|
|
70
|
+
if self.status and isinstance(self.status, Status):
|
|
71
71
|
_dict['Status'] = self.status.to_dict()
|
|
72
72
|
return _dict
|
|
73
73
|
|
|
@@ -85,23 +85,23 @@ class StringItem(BaseModel):
|
|
|
85
85
|
exclude_none=True,
|
|
86
86
|
)
|
|
87
87
|
# override the default output from pydantic by calling `to_dict()` of error_position
|
|
88
|
-
if self.error_position:
|
|
88
|
+
if self.error_position and isinstance(self.error_position, ErrorCoordinates):
|
|
89
89
|
_dict['ErrorPOSITION'] = self.error_position.to_dict()
|
|
90
90
|
# override the default output from pydantic by calling `to_dict()` of each item in fields (list)
|
|
91
91
|
_items = []
|
|
92
92
|
if self.fields:
|
|
93
93
|
for _item_fields in self.fields:
|
|
94
|
-
if _item_fields:
|
|
94
|
+
if _item_fields and hasattr(_item_fields, "to_dict"):
|
|
95
95
|
_items.append(_item_fields.to_dict())
|
|
96
96
|
_dict['Fields'] = _items
|
|
97
97
|
# override the default output from pydantic by calling `to_dict()` of string_borders
|
|
98
|
-
if self.string_borders:
|
|
98
|
+
if self.string_borders and isinstance(self.string_borders, RectangleCoordinates):
|
|
99
99
|
_dict['StringBorders'] = self.string_borders.to_dict()
|
|
100
100
|
# override the default output from pydantic by calling `to_dict()` of each item in symbols_estimations (list)
|
|
101
101
|
_items = []
|
|
102
102
|
if self.symbols_estimations:
|
|
103
103
|
for _item_symbols_estimations in self.symbols_estimations:
|
|
104
|
-
if _item_symbols_estimations:
|
|
104
|
+
if _item_symbols_estimations and hasattr(_item_symbols_estimations, "to_dict"):
|
|
105
105
|
_items.append(_item_symbols_estimations.to_dict())
|
|
106
106
|
_dict['SymbolsEstimations'] = _items
|
|
107
107
|
return _dict
|
|
@@ -72,7 +72,7 @@ class StringRecognitionResult(BaseModel):
|
|
|
72
72
|
_items = []
|
|
73
73
|
if self.string_result:
|
|
74
74
|
for _item_string_result in self.string_result:
|
|
75
|
-
if _item_string_result:
|
|
75
|
+
if _item_string_result and hasattr(_item_string_result, "to_dict"):
|
|
76
76
|
_items.append(_item_string_result.to_dict())
|
|
77
77
|
_dict['StringResult'] = _items
|
|
78
78
|
return _dict
|
|
@@ -81,7 +81,7 @@ class SymbolEstimationItem(BaseModel):
|
|
|
81
81
|
exclude_none=True,
|
|
82
82
|
)
|
|
83
83
|
# override the default output from pydantic by calling `to_dict()` of symbol_bounds
|
|
84
|
-
if self.symbol_bounds:
|
|
84
|
+
if self.symbol_bounds and isinstance(self.symbol_bounds, RectangleCoordinates):
|
|
85
85
|
_dict['SymbolBounds'] = self.symbol_bounds.to_dict()
|
|
86
86
|
return _dict
|
|
87
87
|
|
|
@@ -70,13 +70,13 @@ class SymbolRecognitionResult(BaseModel):
|
|
|
70
70
|
exclude_none=True,
|
|
71
71
|
)
|
|
72
72
|
# override the default output from pydantic by calling `to_dict()` of symbol_rect
|
|
73
|
-
if self.symbol_rect:
|
|
73
|
+
if self.symbol_rect and isinstance(self.symbol_rect, RectangleCoordinates):
|
|
74
74
|
_dict['SymbolRect'] = self.symbol_rect.to_dict()
|
|
75
75
|
# override the default output from pydantic by calling `to_dict()` of each item in list_of_candidates (list)
|
|
76
76
|
_items = []
|
|
77
77
|
if self.list_of_candidates:
|
|
78
78
|
for _item_list_of_candidates in self.list_of_candidates:
|
|
79
|
-
if _item_list_of_candidates:
|
|
79
|
+
if _item_list_of_candidates and hasattr(_item_list_of_candidates, "to_dict"):
|
|
80
80
|
_items.append(_item_list_of_candidates.to_dict())
|
|
81
81
|
_dict['ListOfCandidates'] = _items
|
|
82
82
|
return _dict
|
|
@@ -67,13 +67,13 @@ class TDocBinaryInfo(BaseModel):
|
|
|
67
67
|
exclude_none=True,
|
|
68
68
|
)
|
|
69
69
|
# override the default output from pydantic by calling `to_dict()` of rfid_binary_data
|
|
70
|
-
if self.rfid_binary_data:
|
|
70
|
+
if self.rfid_binary_data and isinstance(self.rfid_binary_data, BinaryData):
|
|
71
71
|
_dict['RFID_BINARY_DATA'] = self.rfid_binary_data.to_dict()
|
|
72
72
|
# override the default output from pydantic by calling `to_dict()` of each item in rfid_raw_data (list)
|
|
73
73
|
_items = []
|
|
74
74
|
if self.rfid_raw_data:
|
|
75
75
|
for _item_rfid_raw_data in self.rfid_raw_data:
|
|
76
|
-
if _item_rfid_raw_data:
|
|
76
|
+
if _item_rfid_raw_data and hasattr(_item_rfid_raw_data, "to_dict"):
|
|
77
77
|
_items.append(_item_rfid_raw_data.to_dict())
|
|
78
78
|
_dict['RFID_RAW_DATA'] = _items
|
|
79
79
|
return _dict
|
|
@@ -65,7 +65,7 @@ class TDocBinaryInfoItem(BaseModel):
|
|
|
65
65
|
exclude_none=True,
|
|
66
66
|
)
|
|
67
67
|
# override the default output from pydantic by calling `to_dict()` of t_doc_binary_info
|
|
68
|
-
if self.t_doc_binary_info:
|
|
68
|
+
if self.t_doc_binary_info and isinstance(self.t_doc_binary_info, TDocBinaryInfo):
|
|
69
69
|
_dict['TDocBinaryInfo'] = self.t_doc_binary_info.to_dict()
|
|
70
70
|
return _dict
|
|
71
71
|
|
|
@@ -68,7 +68,7 @@ class TOriginalRFIDGraphicsInfo(BaseModel):
|
|
|
68
68
|
_items = []
|
|
69
69
|
if self.rfid_original_graph_data:
|
|
70
70
|
for _item_rfid_original_graph_data in self.rfid_original_graph_data:
|
|
71
|
-
if _item_rfid_original_graph_data:
|
|
71
|
+
if _item_rfid_original_graph_data and hasattr(_item_rfid_original_graph_data, "to_dict"):
|
|
72
72
|
_items.append(_item_rfid_original_graph_data.to_dict())
|
|
73
73
|
_dict['RFID_ORIGINAL_GRAPH_DATA'] = _items
|
|
74
74
|
return _dict
|
|
@@ -65,7 +65,7 @@ class TOriginalRFIDGraphicsInfoItem(BaseModel):
|
|
|
65
65
|
exclude_none=True,
|
|
66
66
|
)
|
|
67
67
|
# override the default output from pydantic by calling `to_dict()` of t_original_rfid_graphics_info
|
|
68
|
-
if self.t_original_rfid_graphics_info:
|
|
68
|
+
if self.t_original_rfid_graphics_info and isinstance(self.t_original_rfid_graphics_info, TOriginalRFIDGraphicsInfo):
|
|
69
69
|
_dict['TOriginalRFIDGraphicsInfo'] = self.t_original_rfid_graphics_info.to_dict()
|
|
70
70
|
return _dict
|
|
71
71
|
|
|
@@ -75,14 +75,14 @@ class Text(BaseModel):
|
|
|
75
75
|
_items = []
|
|
76
76
|
if self.field_list:
|
|
77
77
|
for _item_field_list in self.field_list:
|
|
78
|
-
if _item_field_list:
|
|
78
|
+
if _item_field_list and hasattr(_item_field_list, "to_dict"):
|
|
79
79
|
_items.append(_item_field_list.to_dict())
|
|
80
80
|
_dict['fieldList'] = _items
|
|
81
81
|
# override the default output from pydantic by calling `to_dict()` of each item in available_source_list (list)
|
|
82
82
|
_items = []
|
|
83
83
|
if self.available_source_list:
|
|
84
84
|
for _item_available_source_list in self.available_source_list:
|
|
85
|
-
if _item_available_source_list:
|
|
85
|
+
if _item_available_source_list and hasattr(_item_available_source_list, "to_dict"):
|
|
86
86
|
_items.append(_item_available_source_list.to_dict())
|
|
87
87
|
_dict['availableSourceList'] = _items
|
|
88
88
|
return _dict
|
|
@@ -67,7 +67,7 @@ class TextDataResult(ResultItem):
|
|
|
67
67
|
exclude_none=True,
|
|
68
68
|
)
|
|
69
69
|
# override the default output from pydantic by calling `to_dict()` of doc_visual_extended_info
|
|
70
|
-
if self.doc_visual_extended_info:
|
|
70
|
+
if self.doc_visual_extended_info and isinstance(self.doc_visual_extended_info, DocVisualExtendedInfo):
|
|
71
71
|
_dict['DocVisualExtendedInfo'] = self.doc_visual_extended_info.to_dict()
|
|
72
72
|
return _dict
|
|
73
73
|
|
|
@@ -83,21 +83,21 @@ class TextField(BaseModel):
|
|
|
83
83
|
_items = []
|
|
84
84
|
if self.value_list:
|
|
85
85
|
for _item_value_list in self.value_list:
|
|
86
|
-
if _item_value_list:
|
|
86
|
+
if _item_value_list and hasattr(_item_value_list, "to_dict"):
|
|
87
87
|
_items.append(_item_value_list.to_dict())
|
|
88
88
|
_dict['valueList'] = _items
|
|
89
89
|
# override the default output from pydantic by calling `to_dict()` of each item in validity_list (list)
|
|
90
90
|
_items = []
|
|
91
91
|
if self.validity_list:
|
|
92
92
|
for _item_validity_list in self.validity_list:
|
|
93
|
-
if _item_validity_list:
|
|
93
|
+
if _item_validity_list and hasattr(_item_validity_list, "to_dict"):
|
|
94
94
|
_items.append(_item_validity_list.to_dict())
|
|
95
95
|
_dict['validityList'] = _items
|
|
96
96
|
# override the default output from pydantic by calling `to_dict()` of each item in comparison_list (list)
|
|
97
97
|
_items = []
|
|
98
98
|
if self.comparison_list:
|
|
99
99
|
for _item_comparison_list in self.comparison_list:
|
|
100
|
-
if _item_comparison_list:
|
|
100
|
+
if _item_comparison_list and hasattr(_item_comparison_list, "to_dict"):
|
|
101
101
|
_items.append(_item_comparison_list.to_dict())
|
|
102
102
|
_dict['comparisonList'] = _items
|
|
103
103
|
return _dict
|
|
@@ -667,6 +667,9 @@ class TextFieldType(int, Enum):
|
|
|
667
667
|
FT_NATIONALITY_CODE_ALPHA2 = 697
|
|
668
668
|
FT_FIRST_ISSUE_DATE_CHECK_DIGIT = 698
|
|
669
669
|
FT_FIRST_ISSUE_DATE_CHECKSUM = 699
|
|
670
|
+
FT_COMMERCIAL_INDICATOR = 701
|
|
671
|
+
FT_NON_DOMICILED_INDICATOR = 702
|
|
672
|
+
FT_JURISDICTION_SPECIFIC_DATA = 703
|
|
670
673
|
|
|
671
674
|
@classmethod
|
|
672
675
|
def from_json(cls, json_str: str) -> Self:
|
|
@@ -82,14 +82,14 @@ class TextFieldValue(BaseModel):
|
|
|
82
82
|
_items = []
|
|
83
83
|
if self.original_symbols:
|
|
84
84
|
for _item_original_symbols in self.original_symbols:
|
|
85
|
-
if _item_original_symbols:
|
|
85
|
+
if _item_original_symbols and hasattr(_item_original_symbols, "to_dict"):
|
|
86
86
|
_items.append(_item_original_symbols.to_dict())
|
|
87
87
|
_dict['originalSymbols'] = _items
|
|
88
88
|
# override the default output from pydantic by calling `to_dict()` of field_rect
|
|
89
|
-
if self.field_rect:
|
|
89
|
+
if self.field_rect and isinstance(self.field_rect, RectangleCoordinates):
|
|
90
90
|
_dict['fieldRect'] = self.field_rect.to_dict()
|
|
91
91
|
# override the default output from pydantic by calling `to_dict()` of rfid_origin
|
|
92
|
-
if self.rfid_origin:
|
|
92
|
+
if self.rfid_origin and isinstance(self.rfid_origin, RfidOrigin):
|
|
93
93
|
_dict['rfidOrigin'] = self.rfid_origin.to_dict()
|
|
94
94
|
return _dict
|
|
95
95
|
|
|
@@ -65,7 +65,7 @@ class TransactionImage(BaseModel):
|
|
|
65
65
|
exclude_none=True,
|
|
66
66
|
)
|
|
67
67
|
# override the default output from pydantic by calling `to_dict()` of image
|
|
68
|
-
if self.image:
|
|
68
|
+
if self.image and isinstance(self.image, ImagesFieldValue):
|
|
69
69
|
_dict['image'] = self.image.to_dict()
|
|
70
70
|
return _dict
|
|
71
71
|
|
|
@@ -72,7 +72,7 @@ class TransactionInfo(BaseModel):
|
|
|
72
72
|
exclude_none=True,
|
|
73
73
|
)
|
|
74
74
|
# override the default output from pydantic by calling `to_dict()` of documents_database
|
|
75
|
-
if self.documents_database:
|
|
75
|
+
if self.documents_database and isinstance(self.documents_database, DocumentsDatabase):
|
|
76
76
|
_dict['DocumentsDatabase'] = self.documents_database.to_dict()
|
|
77
77
|
return _dict
|
|
78
78
|
|
|
@@ -70,10 +70,10 @@ class TransactionProcessGetResponse(BaseModel):
|
|
|
70
70
|
exclude_none=True,
|
|
71
71
|
)
|
|
72
72
|
# override the default output from pydantic by calling `to_dict()` of out_data
|
|
73
|
-
if self.out_data:
|
|
73
|
+
if self.out_data and isinstance(self.out_data, OutData):
|
|
74
74
|
_dict['outData'] = self.out_data.to_dict()
|
|
75
75
|
# override the default output from pydantic by calling `to_dict()` of in_data
|
|
76
|
-
if self.in_data:
|
|
76
|
+
if self.in_data and isinstance(self.in_data, InData):
|
|
77
77
|
_dict['inData'] = self.in_data.to_dict()
|
|
78
78
|
return _dict
|
|
79
79
|
|
|
@@ -78,20 +78,20 @@ class TransactionProcessRequest(BaseModel):
|
|
|
78
78
|
exclude_none=True,
|
|
79
79
|
)
|
|
80
80
|
# override the default output from pydantic by calling `to_dict()` of process_param
|
|
81
|
-
if self.process_param:
|
|
81
|
+
if self.process_param and isinstance(self.process_param, ProcessParams):
|
|
82
82
|
_dict['processParam'] = self.process_param.to_dict()
|
|
83
83
|
# override the default output from pydantic by calling `to_dict()` of each item in list (list)
|
|
84
84
|
_items = []
|
|
85
85
|
if self.list:
|
|
86
86
|
for _item_list in self.list:
|
|
87
|
-
if _item_list:
|
|
87
|
+
if _item_list and hasattr(_item_list, "to_dict"):
|
|
88
88
|
_items.append(_item_list.to_dict())
|
|
89
89
|
_dict['List'] = _items
|
|
90
90
|
# override the default output from pydantic by calling `to_dict()` of container_list
|
|
91
|
-
if self.container_list:
|
|
91
|
+
if self.container_list and isinstance(self.container_list, ContainerList):
|
|
92
92
|
_dict['ContainerList'] = self.container_list.to_dict()
|
|
93
93
|
# override the default output from pydantic by calling `to_dict()` of system_info
|
|
94
|
-
if self.system_info:
|
|
94
|
+
if self.system_info and isinstance(self.system_info, ProcessSystemInfo):
|
|
95
95
|
_dict['systemInfo'] = self.system_info.to_dict()
|
|
96
96
|
return _dict
|
|
97
97
|
|
|
@@ -70,10 +70,10 @@ class TransactionProcessResult(BaseModel):
|
|
|
70
70
|
exclude_none=True,
|
|
71
71
|
)
|
|
72
72
|
# override the default output from pydantic by calling `to_dict()` of out_data
|
|
73
|
-
if self.out_data:
|
|
73
|
+
if self.out_data and isinstance(self.out_data, OutData):
|
|
74
74
|
_dict['outData'] = self.out_data.to_dict()
|
|
75
75
|
# override the default output from pydantic by calling `to_dict()` of in_data
|
|
76
|
-
if self.in_data:
|
|
76
|
+
if self.in_data and isinstance(self.in_data, InData):
|
|
77
77
|
_dict['inData'] = self.in_data.to_dict()
|
|
78
78
|
return _dict
|
|
79
79
|
|
|
@@ -22,7 +22,7 @@ class TrfFtString(BaseModel):
|
|
|
22
22
|
type: SkipValidation[Optional[int]] = Field(alias="Type", default=None)
|
|
23
23
|
status: SkipValidation[Optional[int]] = Field(alias="Status", default=None, description="Result of logical analysis of compliance of the contents of the field with the requirements of the specification")
|
|
24
24
|
format: SkipValidation[Optional[str]] = Field(alias="Format", default=None, description="Mask of format of text information (for example, «YYMMDD» for date of birth)")
|
|
25
|
-
data: SkipValidation[str] = Field(alias="Data", description="Numeric value.")
|
|
25
|
+
data: SkipValidation[Optional[str]] = Field(alias="Data", default=None, description="Numeric value.")
|
|
26
26
|
__properties: ClassVar[List[str]] = ["Type", "Status", "Format", "Data"]
|
|
27
27
|
|
|
28
28
|
model_config = ConfigDict(
|
|
@@ -0,0 +1,90 @@
|
|
|
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, StrictInt, StrictStr
|
|
13
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
14
|
+
from typing import Optional, Set
|
|
15
|
+
from typing_extensions import Self
|
|
16
|
+
from pydantic import SkipValidation, Field
|
|
17
|
+
|
|
18
|
+
class VDItem(BaseModel):
|
|
19
|
+
"""
|
|
20
|
+
VDItem
|
|
21
|
+
""" # noqa: E501
|
|
22
|
+
adm: SkipValidation[Optional[str]] = Field(alias="adm", default=None)
|
|
23
|
+
ctr: SkipValidation[Optional[str]] = Field(alias="ctr", default=None)
|
|
24
|
+
dvc: SkipValidation[Optional[str]] = Field(alias="dvc", default=None)
|
|
25
|
+
lot: SkipValidation[Optional[str]] = Field(alias="lot", default=None)
|
|
26
|
+
seq: SkipValidation[Optional[int]] = Field(alias="seq", default=None)
|
|
27
|
+
__properties: ClassVar[List[str]] = ["adm", "ctr", "dvc", "lot", "seq"]
|
|
28
|
+
|
|
29
|
+
model_config = ConfigDict(
|
|
30
|
+
populate_by_name=True,
|
|
31
|
+
validate_assignment=True,
|
|
32
|
+
protected_namespaces=(),
|
|
33
|
+
arbitrary_types_allowed=True,
|
|
34
|
+
use_enum_values=True
|
|
35
|
+
)
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
def to_str(self) -> str:
|
|
39
|
+
"""Returns the string representation of the model using alias"""
|
|
40
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
41
|
+
|
|
42
|
+
def to_json(self) -> str:
|
|
43
|
+
"""Returns the JSON representation of the model using alias"""
|
|
44
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
45
|
+
return json.dumps(self.to_dict())
|
|
46
|
+
|
|
47
|
+
@classmethod
|
|
48
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
49
|
+
"""Create an instance of VDItem from a JSON string"""
|
|
50
|
+
return cls.from_dict(json.loads(json_str))
|
|
51
|
+
|
|
52
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
53
|
+
"""Return the dictionary representation of the model using alias.
|
|
54
|
+
|
|
55
|
+
This has the following differences from calling pydantic's
|
|
56
|
+
`self.model_dump(by_alias=True)`:
|
|
57
|
+
|
|
58
|
+
* `None` is only added to the output dict for nullable fields that
|
|
59
|
+
were set at model initialization. Other fields with value `None`
|
|
60
|
+
are ignored.
|
|
61
|
+
"""
|
|
62
|
+
excluded_fields: Set[str] = set([
|
|
63
|
+
])
|
|
64
|
+
|
|
65
|
+
_dict = self.model_dump(
|
|
66
|
+
by_alias=True,
|
|
67
|
+
exclude=excluded_fields,
|
|
68
|
+
exclude_none=True,
|
|
69
|
+
)
|
|
70
|
+
return _dict
|
|
71
|
+
|
|
72
|
+
@classmethod
|
|
73
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
74
|
+
"""Create an instance of VDItem from a dict"""
|
|
75
|
+
if obj is None:
|
|
76
|
+
return None
|
|
77
|
+
|
|
78
|
+
if not isinstance(obj, dict):
|
|
79
|
+
return cls.model_validate(obj)
|
|
80
|
+
|
|
81
|
+
_obj = cls.model_validate({
|
|
82
|
+
"adm": obj.get("adm"),
|
|
83
|
+
"ctr": obj.get("ctr"),
|
|
84
|
+
"dvc": obj.get("dvc"),
|
|
85
|
+
"lot": obj.get("lot"),
|
|
86
|
+
"seq": obj.get("seq")
|
|
87
|
+
})
|
|
88
|
+
return _obj
|
|
89
|
+
|
|
90
|
+
|
|
@@ -0,0 +1,126 @@
|
|
|
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, StrictInt, StrictStr
|
|
13
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
14
|
+
from regula.documentreader.webclient.gen.models.doc_feature import DocFeature
|
|
15
|
+
from regula.documentreader.webclient.gen.models.rfid_certificate_ex import RfidCertificateEx
|
|
16
|
+
from regula.documentreader.webclient.gen.models.trf_ft_bytes import TrfFtBytes
|
|
17
|
+
from typing import Optional, Set
|
|
18
|
+
from typing_extensions import Self
|
|
19
|
+
from pydantic import SkipValidation, Field
|
|
20
|
+
|
|
21
|
+
class VDSData(BaseModel):
|
|
22
|
+
"""
|
|
23
|
+
VDSData
|
|
24
|
+
""" # noqa: E501
|
|
25
|
+
certificate: SkipValidation[Optional[str]] = Field(alias="Certificate", default=None)
|
|
26
|
+
certificate_chain: SkipValidation[Optional[List[RfidCertificateEx]]] = Field(alias="CertificateChain", default=None)
|
|
27
|
+
doc_features: SkipValidation[Optional[List[DocFeature]]] = Field(alias="DocFeatures", default=None)
|
|
28
|
+
doc_issue_date: SkipValidation[Optional[str]] = Field(alias="DocIssueDate", default=None)
|
|
29
|
+
doc_type: SkipValidation[Optional[int]] = Field(alias="DocType", default=None)
|
|
30
|
+
feature_ref: SkipValidation[Optional[int]] = Field(alias="FeatureRef", default=None)
|
|
31
|
+
issuing_country: SkipValidation[Optional[str]] = Field(alias="IssuingCountry", default=None)
|
|
32
|
+
notifications: SkipValidation[Optional[List[int]]] = Field(alias="Notifications", default=None)
|
|
33
|
+
signature: SkipValidation[Optional[TrfFtBytes]] = Field(alias="Signature", default=None)
|
|
34
|
+
signature_date: SkipValidation[Optional[str]] = Field(alias="SignatureDate", default=None)
|
|
35
|
+
signer: SkipValidation[Optional[str]] = Field(alias="Signer", default=None)
|
|
36
|
+
type: SkipValidation[Optional[int]] = Field(alias="Type", default=None)
|
|
37
|
+
version: SkipValidation[Optional[int]] = Field(alias="Version", default=None)
|
|
38
|
+
__properties: ClassVar[List[str]] = ["Certificate", "CertificateChain", "DocFeatures", "DocIssueDate", "DocType", "FeatureRef", "IssuingCountry", "Notifications", "Signature", "SignatureDate", "Signer", "Type", "Version"]
|
|
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 VDSData 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
|
+
# override the default output from pydantic by calling `to_dict()` of each item in certificate_chain (list)
|
|
82
|
+
_items = []
|
|
83
|
+
if self.certificate_chain:
|
|
84
|
+
for _item_certificate_chain in self.certificate_chain:
|
|
85
|
+
if _item_certificate_chain and hasattr(_item_certificate_chain, "to_dict"):
|
|
86
|
+
_items.append(_item_certificate_chain.to_dict())
|
|
87
|
+
_dict['CertificateChain'] = _items
|
|
88
|
+
# override the default output from pydantic by calling `to_dict()` of each item in doc_features (list)
|
|
89
|
+
_items = []
|
|
90
|
+
if self.doc_features:
|
|
91
|
+
for _item_doc_features in self.doc_features:
|
|
92
|
+
if _item_doc_features and hasattr(_item_doc_features, "to_dict"):
|
|
93
|
+
_items.append(_item_doc_features.to_dict())
|
|
94
|
+
_dict['DocFeatures'] = _items
|
|
95
|
+
# override the default output from pydantic by calling `to_dict()` of signature
|
|
96
|
+
if self.signature and isinstance(self.signature, TrfFtBytes):
|
|
97
|
+
_dict['Signature'] = self.signature.to_dict()
|
|
98
|
+
return _dict
|
|
99
|
+
|
|
100
|
+
@classmethod
|
|
101
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
102
|
+
"""Create an instance of VDSData from a dict"""
|
|
103
|
+
if obj is None:
|
|
104
|
+
return None
|
|
105
|
+
|
|
106
|
+
if not isinstance(obj, dict):
|
|
107
|
+
return cls.model_validate(obj)
|
|
108
|
+
|
|
109
|
+
_obj = cls.model_validate({
|
|
110
|
+
"Certificate": obj.get("Certificate"),
|
|
111
|
+
"CertificateChain": [RfidCertificateEx.from_dict(_item) for _item in obj.get("CertificateChain", []) if RfidCertificateEx.from_dict(_item) is not None],
|
|
112
|
+
"DocFeatures": [DocFeature.from_dict(_item) for _item in obj.get("DocFeatures", []) if DocFeature.from_dict(_item) is not None],
|
|
113
|
+
"DocIssueDate": obj.get("DocIssueDate"),
|
|
114
|
+
"DocType": obj.get("DocType"),
|
|
115
|
+
"FeatureRef": obj.get("FeatureRef"),
|
|
116
|
+
"IssuingCountry": obj.get("IssuingCountry"),
|
|
117
|
+
"Notifications": obj.get("Notifications"),
|
|
118
|
+
"Signature": TrfFtBytes.from_dict(obj["Signature"]) if obj.get("Signature") is not None else None,
|
|
119
|
+
"SignatureDate": obj.get("SignatureDate"),
|
|
120
|
+
"Signer": obj.get("Signer"),
|
|
121
|
+
"Type": obj.get("Type"),
|
|
122
|
+
"Version": obj.get("Version")
|
|
123
|
+
})
|
|
124
|
+
return _obj
|
|
125
|
+
|
|
126
|
+
|
|
@@ -0,0 +1,86 @@
|
|
|
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
|
|
13
|
+
from typing import Any, ClassVar, Dict, List
|
|
14
|
+
from regula.documentreader.webclient.gen.models.vds_data import VDSData
|
|
15
|
+
from typing import Optional, Set
|
|
16
|
+
from typing_extensions import Self
|
|
17
|
+
from pydantic import SkipValidation, Field
|
|
18
|
+
|
|
19
|
+
class VDSDataItem(BaseModel):
|
|
20
|
+
"""
|
|
21
|
+
VDSDataItem
|
|
22
|
+
""" # noqa: E501
|
|
23
|
+
dft_vds: SkipValidation[VDSData] = Field(alias="dftVDS")
|
|
24
|
+
__properties: ClassVar[List[str]] = ["dftVDS"]
|
|
25
|
+
|
|
26
|
+
model_config = ConfigDict(
|
|
27
|
+
populate_by_name=True,
|
|
28
|
+
validate_assignment=True,
|
|
29
|
+
protected_namespaces=(),
|
|
30
|
+
arbitrary_types_allowed=True,
|
|
31
|
+
use_enum_values=True
|
|
32
|
+
)
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
def to_str(self) -> str:
|
|
36
|
+
"""Returns the string representation of the model using alias"""
|
|
37
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
38
|
+
|
|
39
|
+
def to_json(self) -> str:
|
|
40
|
+
"""Returns the JSON representation of the model using alias"""
|
|
41
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
42
|
+
return json.dumps(self.to_dict())
|
|
43
|
+
|
|
44
|
+
@classmethod
|
|
45
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
46
|
+
"""Create an instance of VDSDataItem from a JSON string"""
|
|
47
|
+
return cls.from_dict(json.loads(json_str))
|
|
48
|
+
|
|
49
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
50
|
+
"""Return the dictionary representation of the model using alias.
|
|
51
|
+
|
|
52
|
+
This has the following differences from calling pydantic's
|
|
53
|
+
`self.model_dump(by_alias=True)`:
|
|
54
|
+
|
|
55
|
+
* `None` is only added to the output dict for nullable fields that
|
|
56
|
+
were set at model initialization. Other fields with value `None`
|
|
57
|
+
are ignored.
|
|
58
|
+
"""
|
|
59
|
+
excluded_fields: Set[str] = set([
|
|
60
|
+
])
|
|
61
|
+
|
|
62
|
+
_dict = self.model_dump(
|
|
63
|
+
by_alias=True,
|
|
64
|
+
exclude=excluded_fields,
|
|
65
|
+
exclude_none=True,
|
|
66
|
+
)
|
|
67
|
+
# override the default output from pydantic by calling `to_dict()` of dft_vds
|
|
68
|
+
if self.dft_vds and isinstance(self.dft_vds, VDSData):
|
|
69
|
+
_dict['dftVDS'] = self.dft_vds.to_dict()
|
|
70
|
+
return _dict
|
|
71
|
+
|
|
72
|
+
@classmethod
|
|
73
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
74
|
+
"""Create an instance of VDSDataItem from a dict"""
|
|
75
|
+
if obj is None:
|
|
76
|
+
return None
|
|
77
|
+
|
|
78
|
+
if not isinstance(obj, dict):
|
|
79
|
+
return cls.model_validate(obj)
|
|
80
|
+
|
|
81
|
+
_obj = cls.model_validate({
|
|
82
|
+
"dftVDS": VDSData.from_dict(obj["dftVDS"]) if obj.get("dftVDS") is not None else None
|
|
83
|
+
})
|
|
84
|
+
return _obj
|
|
85
|
+
|
|
86
|
+
|