regula-documentreader-webclient 8.1.353.dev0__py3-none-any.whl → 8.1.355rc0__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.
Potentially problematic release.
This version of regula-documentreader-webclient might be problematic. Click here for more details.
- regula/documentreader/webclient/ext/__init__.py +1 -0
- regula/documentreader/webclient/ext/api/document_reader_api.py +2 -2
- regula/documentreader/webclient/ext/models/__init__.py +2 -0
- regula/documentreader/webclient/ext/models/authenticity/authenticity_check_list.py +19 -64
- regula/documentreader/webclient/ext/models/authenticity/fiber.py +7 -7
- regula/documentreader/webclient/ext/models/authenticity/ident.py +9 -10
- regula/documentreader/webclient/ext/models/authenticity/image_ident.py +7 -8
- regula/documentreader/webclient/ext/models/authenticity/ocr_security_text.py +7 -7
- regula/documentreader/webclient/ext/models/authenticity/security_feature.py +8 -10
- regula/documentreader/webclient/ext/models/images.py +4 -4
- regula/documentreader/webclient/ext/models/raw_authenticity_result_item.py +27 -0
- regula/documentreader/webclient/ext/models/raw_result_item.py +26 -0
- regula/documentreader/webclient/ext/models/recognition_request.py +24 -23
- regula/documentreader/webclient/ext/models/recognition_response.py +8 -6
- regula/documentreader/webclient/ext/models/text.py +12 -7
- regula/documentreader/webclient/gen/__init__.py +26 -100
- regula/documentreader/webclient/gen/api/__init__.py +2 -1
- regula/documentreader/webclient/gen/api/default_api.py +160 -0
- regula/documentreader/webclient/gen/api/healthcheck_api.py +298 -687
- regula/documentreader/webclient/gen/api/process_api.py +125 -270
- regula/documentreader/webclient/gen/api/transaction_api.py +673 -1472
- regula/documentreader/webclient/gen/api_client.py +462 -583
- regula/documentreader/webclient/gen/configuration.py +99 -222
- regula/documentreader/webclient/gen/exceptions.py +30 -81
- regula/documentreader/webclient/gen/models/__init__.py +25 -98
- regula/documentreader/webclient/gen/models/area_array.py +131 -85
- regula/documentreader/webclient/gen/models/area_container.py +157 -85
- regula/documentreader/webclient/gen/models/auth_params.py +526 -100
- regula/documentreader/webclient/gen/models/authenticity_check_list.py +136 -75
- regula/documentreader/webclient/gen/models/authenticity_check_result.py +160 -81
- regula/documentreader/webclient/gen/models/authenticity_check_result_item.py +217 -154
- regula/documentreader/webclient/gen/models/authenticity_result.py +231 -68
- regula/documentreader/webclient/gen/models/authenticity_result_all_of.py +120 -0
- regula/documentreader/webclient/gen/models/authenticity_result_type.py +123 -35
- regula/documentreader/webclient/gen/models/bc_pdf417_info.py +235 -75
- regula/documentreader/webclient/gen/models/bc_roidetect.py +183 -71
- regula/documentreader/webclient/gen/models/byte_array_result.py +233 -64
- regula/documentreader/webclient/gen/models/byte_array_result_all_of.py +122 -0
- regula/documentreader/webclient/gen/models/check_diagnose.py +329 -138
- regula/documentreader/webclient/gen/models/check_result.py +84 -15
- regula/documentreader/webclient/gen/models/chosen_document_type.py +334 -94
- regula/documentreader/webclient/gen/models/chosen_document_type_result.py +264 -80
- regula/documentreader/webclient/gen/models/chosen_document_type_result_all_of.py +145 -0
- regula/documentreader/webclient/gen/models/container_list.py +134 -75
- regula/documentreader/webclient/gen/models/critical.py +82 -14
- regula/documentreader/webclient/gen/models/cross_source_value_comparison.py +156 -67
- regula/documentreader/webclient/gen/models/data_module.py +209 -74
- regula/documentreader/webclient/gen/models/details_optical.py +298 -83
- regula/documentreader/webclient/gen/models/details_rfid.py +268 -78
- regula/documentreader/webclient/gen/models/device_info.py +235 -76
- regula/documentreader/webclient/gen/models/device_info2.py +275 -0
- regula/documentreader/webclient/gen/models/doc_bar_code_info.py +230 -68
- regula/documentreader/webclient/gen/models/doc_bar_code_info_all_of.py +119 -0
- regula/documentreader/webclient/gen/models/doc_bar_code_info_fields_list.py +135 -75
- regula/documentreader/webclient/gen/models/doc_visual_extended_field.py +301 -105
- regula/documentreader/webclient/gen/models/doc_visual_extended_info.py +106 -75
- regula/documentreader/webclient/gen/models/document_format.py +105 -27
- regula/documentreader/webclient/gen/models/document_image.py +132 -63
- regula/documentreader/webclient/gen/models/document_image_result.py +231 -68
- regula/documentreader/webclient/gen/models/document_image_result_all_of.py +120 -0
- regula/documentreader/webclient/gen/models/document_position.py +340 -111
- regula/documentreader/webclient/gen/models/document_position_result.py +230 -68
- regula/documentreader/webclient/gen/models/document_position_result_all_of.py +119 -0
- regula/documentreader/webclient/gen/models/document_type.py +539 -243
- regula/documentreader/webclient/gen/models/document_type_recognition_result.py +84 -15
- regula/documentreader/webclient/gen/models/document_types_candidates.py +131 -76
- regula/documentreader/webclient/gen/models/document_types_candidates_list.py +131 -76
- regula/documentreader/webclient/gen/models/document_types_candidates_result.py +230 -68
- regula/documentreader/webclient/gen/models/document_types_candidates_result_all_of.py +119 -0
- regula/documentreader/webclient/gen/models/documents_database.py +191 -71
- regula/documentreader/webclient/gen/models/encrypted_rcl_result.py +233 -64
- regula/documentreader/webclient/gen/models/encrypted_rcl_result_all_of.py +122 -0
- regula/documentreader/webclient/gen/models/face_api.py +358 -88
- regula/documentreader/webclient/gen/models/face_api_search.py +159 -65
- regula/documentreader/webclient/gen/models/fdsid_list.py +390 -91
- regula/documentreader/webclient/gen/models/fiber_result.py +439 -103
- regula/documentreader/webclient/gen/models/fiber_result_all_of.py +343 -0
- regula/documentreader/webclient/gen/models/get_transactions_by_tag_response.py +159 -66
- regula/documentreader/webclient/gen/models/graphic_field.py +271 -80
- regula/documentreader/webclient/gen/models/graphic_field_type.py +131 -40
- regula/documentreader/webclient/gen/models/graphic_fields_list.py +106 -75
- regula/documentreader/webclient/gen/models/graphics_result.py +231 -68
- regula/documentreader/webclient/gen/models/graphics_result_all_of.py +119 -0
- regula/documentreader/webclient/gen/models/healthcheck.py +297 -117
- regula/documentreader/webclient/gen/models/healthcheck_documents_database.py +187 -91
- regula/documentreader/webclient/gen/models/ident_result.py +345 -107
- regula/documentreader/webclient/gen/models/ident_result_all_of.py +249 -0
- regula/documentreader/webclient/gen/models/image_data.py +132 -63
- regula/documentreader/webclient/gen/models/image_qa.py +304 -83
- regula/documentreader/webclient/gen/models/image_quality_check.py +263 -86
- regula/documentreader/webclient/gen/models/image_quality_check_list.py +133 -78
- regula/documentreader/webclient/gen/models/image_quality_check_type.py +97 -22
- regula/documentreader/webclient/gen/models/image_quality_result.py +231 -68
- regula/documentreader/webclient/gen/models/image_quality_result_all_of.py +120 -0
- regula/documentreader/webclient/gen/models/image_transaction_data.py +97 -61
- regula/documentreader/webclient/gen/models/images.py +133 -87
- regula/documentreader/webclient/gen/models/images_available_source.py +130 -64
- regula/documentreader/webclient/gen/models/images_field.py +162 -80
- regula/documentreader/webclient/gen/models/images_field_value.py +331 -94
- regula/documentreader/webclient/gen/models/images_result.py +231 -68
- regula/documentreader/webclient/gen/models/images_result_all_of.py +120 -0
- regula/documentreader/webclient/gen/models/in_data.py +131 -79
- regula/documentreader/webclient/gen/models/in_data_rfid_session.py +121 -0
- regula/documentreader/webclient/gen/models/in_data_transaction_images_field_value.py +187 -72
- regula/documentreader/webclient/gen/models/in_data_video.py +131 -63
- regula/documentreader/webclient/gen/models/inline_response200.py +197 -0
- regula/documentreader/webclient/gen/models/inline_response2001.py +333 -0
- regula/documentreader/webclient/gen/models/input_barcode_type.py +119 -33
- regula/documentreader/webclient/gen/models/input_image_quality_checks.py +97 -22
- regula/documentreader/webclient/gen/models/lcid.py +402 -179
- regula/documentreader/webclient/gen/models/lexical_analysis_result.py +234 -68
- regula/documentreader/webclient/gen/models/lexical_analysis_result_all_of.py +119 -0
- regula/documentreader/webclient/gen/models/license_result.py +233 -64
- regula/documentreader/webclient/gen/models/license_result_all_of.py +122 -0
- regula/documentreader/webclient/gen/models/light.py +87 -61
- regula/documentreader/webclient/gen/models/list_transactions_by_tag_response.py +131 -75
- regula/documentreader/webclient/gen/models/list_verified_fields.py +105 -77
- regula/documentreader/webclient/gen/models/liveness_params.py +247 -77
- regula/documentreader/webclient/gen/models/log_level.py +88 -17
- regula/documentreader/webclient/gen/models/measure_system.py +82 -14
- regula/documentreader/webclient/gen/models/mrz_detect_mode_enum.py +84 -15
- regula/documentreader/webclient/gen/models/mrz_format.py +90 -18
- regula/documentreader/webclient/gen/models/ocr_security_text_result.py +449 -107
- regula/documentreader/webclient/gen/models/ocr_security_text_result_all_of.py +353 -0
- regula/documentreader/webclient/gen/models/one_candidate.py +334 -94
- regula/documentreader/webclient/gen/models/original_symbol.py +167 -74
- regula/documentreader/webclient/gen/models/out_data.py +133 -75
- regula/documentreader/webclient/gen/models/out_data_transaction_images_field_value.py +213 -75
- regula/documentreader/webclient/gen/models/p_array_field.py +342 -103
- regula/documentreader/webclient/gen/models/parsing_notification_codes.py +523 -235
- regula/documentreader/webclient/gen/models/per_document_config.py +131 -63
- regula/documentreader/webclient/gen/models/photo_ident_result.py +423 -107
- regula/documentreader/webclient/gen/models/photo_ident_result_all_of.py +327 -0
- regula/documentreader/webclient/gen/models/point.py +127 -63
- regula/documentreader/webclient/gen/models/point_array.py +97 -65
- regula/documentreader/webclient/gen/models/points_container.py +131 -75
- regula/documentreader/webclient/gen/models/process_params.py +1743 -229
- regula/documentreader/webclient/gen/models/process_params_rfid.py +97 -56
- regula/documentreader/webclient/gen/models/process_request.py +411 -113
- regula/documentreader/webclient/gen/models/process_request_image.py +159 -74
- regula/documentreader/webclient/gen/models/process_response.py +299 -96
- regula/documentreader/webclient/gen/models/process_system_info.py +131 -63
- regula/documentreader/webclient/gen/models/processing_status.py +84 -15
- regula/documentreader/webclient/gen/models/raw_image_container_list.py +131 -75
- regula/documentreader/webclient/gen/models/rectangle_coordinates.py +187 -71
- regula/documentreader/webclient/gen/models/result.py +133 -49
- regula/documentreader/webclient/gen/models/result_item.py +245 -195
- regula/documentreader/webclient/gen/models/rfid_location.py +84 -15
- regula/documentreader/webclient/gen/models/rfid_origin.py +192 -71
- regula/documentreader/webclient/gen/models/scenario.py +117 -33
- regula/documentreader/webclient/gen/models/security_feature_result.py +345 -99
- regula/documentreader/webclient/gen/models/security_feature_result_all_of.py +249 -0
- regula/documentreader/webclient/gen/models/security_feature_type.py +185 -68
- regula/documentreader/webclient/gen/models/source.py +88 -18
- regula/documentreader/webclient/gen/models/source_validity.py +129 -65
- regula/documentreader/webclient/gen/models/status.py +264 -86
- regula/documentreader/webclient/gen/models/status_result.py +231 -68
- regula/documentreader/webclient/gen/models/status_result_all_of.py +120 -0
- regula/documentreader/webclient/gen/models/string_recognition_result.py +108 -81
- regula/documentreader/webclient/gen/models/symbol_candidate.py +143 -72
- regula/documentreader/webclient/gen/models/symbol_recognition_result.py +135 -87
- regula/documentreader/webclient/gen/models/text.py +214 -92
- regula/documentreader/webclient/gen/models/text_available_source.py +157 -67
- regula/documentreader/webclient/gen/models/text_data_result.py +230 -68
- regula/documentreader/webclient/gen/models/text_data_result_all_of.py +119 -0
- regula/documentreader/webclient/gen/models/text_field.py +357 -115
- regula/documentreader/webclient/gen/models/text_field_type.py +1367 -660
- regula/documentreader/webclient/gen/models/text_field_value.py +307 -105
- regula/documentreader/webclient/gen/models/text_post_processing.py +86 -16
- regula/documentreader/webclient/gen/models/text_result.py +231 -68
- regula/documentreader/webclient/gen/models/text_result_all_of.py +120 -0
- regula/documentreader/webclient/gen/models/tfdsid_list.py +372 -0
- regula/documentreader/webclient/gen/models/transaction_image.py +97 -61
- regula/documentreader/webclient/gen/models/transaction_images_field_value.py +227 -0
- regula/documentreader/webclient/gen/models/transaction_info.py +302 -84
- regula/documentreader/webclient/gen/models/transaction_process_get_response.py +183 -79
- regula/documentreader/webclient/gen/models/transaction_process_request.py +299 -108
- regula/documentreader/webclient/gen/models/transaction_scenario_request.py +119 -0
- regula/documentreader/webclient/gen/models/verification_result.py +88 -17
- regula/documentreader/webclient/gen/models/verified_field_map.py +273 -85
- regula/documentreader/webclient/gen/models/visibility.py +88 -17
- regula/documentreader/webclient/gen/rest.py +174 -132
- {regula_documentreader_webclient-8.1.353.dev0.dist-info → regula_documentreader_webclient-8.1.355rc0.dist-info}/METADATA +4 -6
- regula_documentreader_webclient-8.1.355rc0.dist-info/RECORD +192 -0
- regula/documentreader/webclient/gen/api_response.py +0 -21
- regula/documentreader/webclient/gen/models/authenticity_check_list_item.py +0 -83
- regula/documentreader/webclient/gen/models/authenticity_check_result_list_inner.py +0 -174
- regula/documentreader/webclient/gen/models/bar_code_module_type.py +0 -32
- regula/documentreader/webclient/gen/models/barcode_type.py +0 -47
- regula/documentreader/webclient/gen/models/binary_data.py +0 -218
- regula/documentreader/webclient/gen/models/byte_array_item.py +0 -79
- regula/documentreader/webclient/gen/models/candidates_list_item.py +0 -83
- regula/documentreader/webclient/gen/models/certificate_data.py +0 -81
- regula/documentreader/webclient/gen/models/container_list_list_inner.py +0 -426
- regula/documentreader/webclient/gen/models/doc_bar_code_info_item.py +0 -83
- regula/documentreader/webclient/gen/models/doc_graphics_info_item.py +0 -83
- regula/documentreader/webclient/gen/models/doc_visual_extended_field_item.py +0 -83
- regula/documentreader/webclient/gen/models/doc_visual_extended_info_item.py +0 -83
- regula/documentreader/webclient/gen/models/document_binary_info_result.py +0 -90
- regula/documentreader/webclient/gen/models/document_position_item.py +0 -83
- regula/documentreader/webclient/gen/models/encrypted_rcl_item.py +0 -79
- regula/documentreader/webclient/gen/models/error_coordinates.py +0 -85
- regula/documentreader/webclient/gen/models/face_detection.py +0 -95
- regula/documentreader/webclient/gen/models/face_detection_item.py +0 -83
- regula/documentreader/webclient/gen/models/face_detection_result.py +0 -90
- regula/documentreader/webclient/gen/models/face_item.py +0 -109
- regula/documentreader/webclient/gen/models/fiber_item.py +0 -106
- regula/documentreader/webclient/gen/models/field_item.py +0 -89
- regula/documentreader/webclient/gen/models/file_image.py +0 -81
- regula/documentreader/webclient/gen/models/graph_data.py +0 -95
- regula/documentreader/webclient/gen/models/ident_item.py +0 -110
- regula/documentreader/webclient/gen/models/image_quality_check_list_item.py +0 -83
- regula/documentreader/webclient/gen/models/images_item.py +0 -83
- regula/documentreader/webclient/gen/models/license_item.py +0 -79
- regula/documentreader/webclient/gen/models/list_verified_fields_item.py +0 -83
- regula/documentreader/webclient/gen/models/mrz_detector_result.py +0 -90
- regula/documentreader/webclient/gen/models/mrz_position.py +0 -124
- regula/documentreader/webclient/gen/models/mrz_position_item.py +0 -83
- regula/documentreader/webclient/gen/models/mrz_position_result.py +0 -90
- regula/documentreader/webclient/gen/models/mrz_rows_item.py +0 -91
- regula/documentreader/webclient/gen/models/mrz_test_quality.py +0 -105
- regula/documentreader/webclient/gen/models/mrz_test_quality_item.py +0 -83
- regula/documentreader/webclient/gen/models/mrz_test_quality_result.py +0 -90
- regula/documentreader/webclient/gen/models/ocr_security_text_item.py +0 -110
- regula/documentreader/webclient/gen/models/one_candidate_item.py +0 -87
- regula/documentreader/webclient/gen/models/parsed_data.py +0 -79
- regula/documentreader/webclient/gen/models/parsing_error_codes.py +0 -153
- regula/documentreader/webclient/gen/models/photo_ident_item.py +0 -110
- regula/documentreader/webclient/gen/models/raw_image_container_item.py +0 -83
- regula/documentreader/webclient/gen/models/result_mrz_detector.py +0 -93
- regula/documentreader/webclient/gen/models/result_mrz_detector_item.py +0 -83
- regula/documentreader/webclient/gen/models/rfid_a_chip.py +0 -33
- regula/documentreader/webclient/gen/models/rfid_access_control_info.py +0 -90
- regula/documentreader/webclient/gen/models/rfid_access_control_procedure_type.py +0 -35
- regula/documentreader/webclient/gen/models/rfid_access_key.py +0 -87
- regula/documentreader/webclient/gen/models/rfid_application.py +0 -101
- regula/documentreader/webclient/gen/models/rfid_application_type.py +0 -37
- regula/documentreader/webclient/gen/models/rfid_attribute_data.py +0 -81
- regula/documentreader/webclient/gen/models/rfid_attribute_name.py +0 -85
- regula/documentreader/webclient/gen/models/rfid_authentication_procedure_type.py +0 -31
- regula/documentreader/webclient/gen/models/rfid_baud_rate.py +0 -32
- regula/documentreader/webclient/gen/models/rfid_card_properties_ext.py +0 -123
- regula/documentreader/webclient/gen/models/rfid_certificate_ex.py +0 -130
- regula/documentreader/webclient/gen/models/rfid_certificate_origin.py +0 -36
- regula/documentreader/webclient/gen/models/rfid_certificate_type.py +0 -35
- regula/documentreader/webclient/gen/models/rfid_data_file.py +0 -118
- regula/documentreader/webclient/gen/models/rfid_data_file_type.py +0 -119
- regula/documentreader/webclient/gen/models/rfid_data_group_type_tag.py +0 -82
- regula/documentreader/webclient/gen/models/rfid_dg1.py +0 -111
- regula/documentreader/webclient/gen/models/rfid_distinguished_name.py +0 -95
- regula/documentreader/webclient/gen/models/rfid_doc_visual_extended_field.py +0 -120
- regula/documentreader/webclient/gen/models/rfid_doc_visual_extended_field_item.py +0 -85
- regula/documentreader/webclient/gen/models/rfid_doc_visual_extended_info.py +0 -89
- regula/documentreader/webclient/gen/models/rfid_doc_visual_extended_info_item.py +0 -83
- regula/documentreader/webclient/gen/models/rfid_error_codes.py +0 -141
- regula/documentreader/webclient/gen/models/rfid_graphics_info_result.py +0 -90
- regula/documentreader/webclient/gen/models/rfid_password_type.py +0 -34
- regula/documentreader/webclient/gen/models/rfid_pki_extension.py +0 -81
- regula/documentreader/webclient/gen/models/rfid_raw_data.py +0 -81
- regula/documentreader/webclient/gen/models/rfid_security_object.py +0 -96
- regula/documentreader/webclient/gen/models/rfid_session_data.py +0 -150
- regula/documentreader/webclient/gen/models/rfid_signer_info_ex.py +0 -133
- regula/documentreader/webclient/gen/models/rfid_terminal.py +0 -84
- regula/documentreader/webclient/gen/models/rfid_terminal_type.py +0 -32
- regula/documentreader/webclient/gen/models/rfid_text_data_result.py +0 -90
- regula/documentreader/webclient/gen/models/rfid_type.py +0 -30
- regula/documentreader/webclient/gen/models/rfid_validity.py +0 -88
- regula/documentreader/webclient/gen/models/rfidpkd_resource_type.py +0 -35
- regula/documentreader/webclient/gen/models/security_feature_item.py +0 -102
- regula/documentreader/webclient/gen/models/security_object_certificates.py +0 -83
- regula/documentreader/webclient/gen/models/status_item.py +0 -83
- regula/documentreader/webclient/gen/models/string_item.py +0 -135
- regula/documentreader/webclient/gen/models/symbol.py +0 -79
- regula/documentreader/webclient/gen/models/symbol_estimation_item.py +0 -115
- regula/documentreader/webclient/gen/models/t_doc_binary_info.py +0 -93
- regula/documentreader/webclient/gen/models/t_doc_binary_info_item.py +0 -83
- regula/documentreader/webclient/gen/models/t_original_rfid_graphics_info.py +0 -87
- regula/documentreader/webclient/gen/models/t_original_rfid_graphics_info_item.py +0 -83
- regula/documentreader/webclient/gen/models/text_item.py +0 -83
- regula/documentreader/webclient/gen/models/transaction_process_response.py +0 -107
- regula/documentreader/webclient/gen/models/transaction_process_response_item.py +0 -79
- regula/documentreader/webclient/gen/models/transaction_process_result.py +0 -93
- regula/documentreader/webclient/gen/models/trf_ft_bytes.py +0 -90
- regula/documentreader/webclient/gen/models/trf_ft_string.py +0 -85
- regula/documentreader/webclient/gen/models/visual_extended_field_item.py +0 -112
- regula/documentreader/webclient/gen/py.typed +0 -0
- regula_documentreader_webclient-8.1.353.dev0.dist-info/RECORD +0 -263
- {regula_documentreader_webclient-8.1.353.dev0.dist-info → regula_documentreader_webclient-8.1.355rc0.dist-info}/WHEEL +0 -0
- {regula_documentreader_webclient-8.1.353.dev0.dist-info → regula_documentreader_webclient-8.1.355rc0.dist-info}/top_level.txt +0 -0
|
@@ -1,135 +0,0 @@
|
|
|
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, StrictFloat, StrictInt
|
|
13
|
-
from typing import Any, ClassVar, Dict, List, Union
|
|
14
|
-
from regula.documentreader.webclient.gen.models.error_coordinates import ErrorCoordinates
|
|
15
|
-
from regula.documentreader.webclient.gen.models.field_item import FieldItem
|
|
16
|
-
from regula.documentreader.webclient.gen.models.rectangle_coordinates import RectangleCoordinates
|
|
17
|
-
from regula.documentreader.webclient.gen.models.symbol_estimation_item import SymbolEstimationItem
|
|
18
|
-
from typing import Optional, Set
|
|
19
|
-
from typing_extensions import Self
|
|
20
|
-
|
|
21
|
-
class StringItem(BaseModel):
|
|
22
|
-
"""
|
|
23
|
-
StringItem
|
|
24
|
-
""" # noqa: E501
|
|
25
|
-
alignment_symbols_in_string: StrictInt = Field(alias="ALIGNMENT_SYMBOLS_IN_STRING")
|
|
26
|
-
check_sums: StrictInt = Field(alias="CHECK_SUMS")
|
|
27
|
-
error_position: ErrorCoordinates = Field(alias="ErrorPOSITION")
|
|
28
|
-
field_count: StrictInt = Field(alias="FieldCount")
|
|
29
|
-
fields: List[FieldItem] = Field(alias="Fields")
|
|
30
|
-
strings_distance: StrictInt = Field(alias="STRINGS_DISTANCE")
|
|
31
|
-
strings_interval: StrictInt = Field(alias="STRINGS_INTERVAL")
|
|
32
|
-
string_filling: StrictInt = Field(alias="STRING_FILLING")
|
|
33
|
-
string_position: StrictInt = Field(alias="STRING_POSITION")
|
|
34
|
-
symbols_param: StrictInt = Field(alias="SYMBOLS_PARAM")
|
|
35
|
-
size_error_alignment: Union[StrictFloat, StrictInt] = Field(alias="SizeError_ALIGNMENT")
|
|
36
|
-
size_error_distance: Union[StrictFloat, StrictInt] = Field(alias="SizeError_DISTANCE")
|
|
37
|
-
size_error_interval: Union[StrictFloat, StrictInt] = Field(alias="SizeError_INTERVAL")
|
|
38
|
-
string_angle: Union[StrictFloat, StrictInt] = Field(alias="StringAngle")
|
|
39
|
-
string_borders: RectangleCoordinates = Field(alias="StringBorders")
|
|
40
|
-
symbols_count: StrictInt = Field(alias="SymbolsCount")
|
|
41
|
-
symbols_estimations: List[SymbolEstimationItem] = Field(alias="SymbolsEstimations")
|
|
42
|
-
__properties: ClassVar[List[str]] = ["ALIGNMENT_SYMBOLS_IN_STRING", "CHECK_SUMS", "ErrorPOSITION", "FieldCount", "Fields", "STRINGS_DISTANCE", "STRINGS_INTERVAL", "STRING_FILLING", "STRING_POSITION", "SYMBOLS_PARAM", "SizeError_ALIGNMENT", "SizeError_DISTANCE", "SizeError_INTERVAL", "StringAngle", "StringBorders", "SymbolsCount", "SymbolsEstimations"]
|
|
43
|
-
|
|
44
|
-
model_config = ConfigDict(
|
|
45
|
-
populate_by_name=True,
|
|
46
|
-
validate_assignment=True,
|
|
47
|
-
protected_namespaces=(),
|
|
48
|
-
)
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
def to_str(self) -> str:
|
|
52
|
-
"""Returns the string representation of the model using alias"""
|
|
53
|
-
return pprint.pformat(self.model_dump(by_alias=True))
|
|
54
|
-
|
|
55
|
-
def to_json(self) -> str:
|
|
56
|
-
"""Returns the JSON representation of the model using alias"""
|
|
57
|
-
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
58
|
-
return json.dumps(self.to_dict())
|
|
59
|
-
|
|
60
|
-
@classmethod
|
|
61
|
-
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
62
|
-
"""Create an instance of StringItem from a JSON string"""
|
|
63
|
-
return cls.from_dict(json.loads(json_str))
|
|
64
|
-
|
|
65
|
-
def to_dict(self) -> Dict[str, Any]:
|
|
66
|
-
"""Return the dictionary representation of the model using alias.
|
|
67
|
-
|
|
68
|
-
This has the following differences from calling pydantic's
|
|
69
|
-
`self.model_dump(by_alias=True)`:
|
|
70
|
-
|
|
71
|
-
* `None` is only added to the output dict for nullable fields that
|
|
72
|
-
were set at model initialization. Other fields with value `None`
|
|
73
|
-
are ignored.
|
|
74
|
-
"""
|
|
75
|
-
excluded_fields: Set[str] = set([
|
|
76
|
-
])
|
|
77
|
-
|
|
78
|
-
_dict = self.model_dump(
|
|
79
|
-
by_alias=True,
|
|
80
|
-
exclude=excluded_fields,
|
|
81
|
-
exclude_none=True,
|
|
82
|
-
)
|
|
83
|
-
# override the default output from pydantic by calling `to_dict()` of error_position
|
|
84
|
-
if self.error_position:
|
|
85
|
-
_dict['ErrorPOSITION'] = self.error_position.to_dict()
|
|
86
|
-
# override the default output from pydantic by calling `to_dict()` of each item in fields (list)
|
|
87
|
-
_items = []
|
|
88
|
-
if self.fields:
|
|
89
|
-
for _item_fields in self.fields:
|
|
90
|
-
if _item_fields:
|
|
91
|
-
_items.append(_item_fields.to_dict())
|
|
92
|
-
_dict['Fields'] = _items
|
|
93
|
-
# override the default output from pydantic by calling `to_dict()` of string_borders
|
|
94
|
-
if self.string_borders:
|
|
95
|
-
_dict['StringBorders'] = self.string_borders.to_dict()
|
|
96
|
-
# override the default output from pydantic by calling `to_dict()` of each item in symbols_estimations (list)
|
|
97
|
-
_items = []
|
|
98
|
-
if self.symbols_estimations:
|
|
99
|
-
for _item_symbols_estimations in self.symbols_estimations:
|
|
100
|
-
if _item_symbols_estimations:
|
|
101
|
-
_items.append(_item_symbols_estimations.to_dict())
|
|
102
|
-
_dict['SymbolsEstimations'] = _items
|
|
103
|
-
return _dict
|
|
104
|
-
|
|
105
|
-
@classmethod
|
|
106
|
-
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
107
|
-
"""Create an instance of StringItem from a dict"""
|
|
108
|
-
if obj is None:
|
|
109
|
-
return None
|
|
110
|
-
|
|
111
|
-
if not isinstance(obj, dict):
|
|
112
|
-
return cls.model_validate(obj)
|
|
113
|
-
|
|
114
|
-
_obj = cls.model_validate({
|
|
115
|
-
"ALIGNMENT_SYMBOLS_IN_STRING": obj.get("ALIGNMENT_SYMBOLS_IN_STRING"),
|
|
116
|
-
"CHECK_SUMS": obj.get("CHECK_SUMS"),
|
|
117
|
-
"ErrorPOSITION": ErrorCoordinates.from_dict(obj["ErrorPOSITION"]) if obj.get("ErrorPOSITION") is not None else None,
|
|
118
|
-
"FieldCount": obj.get("FieldCount"),
|
|
119
|
-
"Fields": [FieldItem.from_dict(_item) for _item in obj["Fields"]] if obj.get("Fields") is not None else None,
|
|
120
|
-
"STRINGS_DISTANCE": obj.get("STRINGS_DISTANCE"),
|
|
121
|
-
"STRINGS_INTERVAL": obj.get("STRINGS_INTERVAL"),
|
|
122
|
-
"STRING_FILLING": obj.get("STRING_FILLING"),
|
|
123
|
-
"STRING_POSITION": obj.get("STRING_POSITION"),
|
|
124
|
-
"SYMBOLS_PARAM": obj.get("SYMBOLS_PARAM"),
|
|
125
|
-
"SizeError_ALIGNMENT": obj.get("SizeError_ALIGNMENT"),
|
|
126
|
-
"SizeError_DISTANCE": obj.get("SizeError_DISTANCE"),
|
|
127
|
-
"SizeError_INTERVAL": obj.get("SizeError_INTERVAL"),
|
|
128
|
-
"StringAngle": obj.get("StringAngle"),
|
|
129
|
-
"StringBorders": RectangleCoordinates.from_dict(obj["StringBorders"]) if obj.get("StringBorders") is not None else None,
|
|
130
|
-
"SymbolsCount": obj.get("SymbolsCount"),
|
|
131
|
-
"SymbolsEstimations": [SymbolEstimationItem.from_dict(_item) for _item in obj["SymbolsEstimations"]] if obj.get("SymbolsEstimations") is not None else None
|
|
132
|
-
})
|
|
133
|
-
return _obj
|
|
134
|
-
|
|
135
|
-
|
|
@@ -1,79 +0,0 @@
|
|
|
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
|
|
13
|
-
from typing import Any, ClassVar, Dict, List
|
|
14
|
-
from typing import Optional, Set
|
|
15
|
-
from typing_extensions import Self
|
|
16
|
-
|
|
17
|
-
class Symbol(BaseModel):
|
|
18
|
-
"""
|
|
19
|
-
Symbol
|
|
20
|
-
""" # noqa: E501
|
|
21
|
-
bounding_rect: List[StrictInt] = Field(alias="boundingRect")
|
|
22
|
-
__properties: ClassVar[List[str]] = ["boundingRect"]
|
|
23
|
-
|
|
24
|
-
model_config = ConfigDict(
|
|
25
|
-
populate_by_name=True,
|
|
26
|
-
validate_assignment=True,
|
|
27
|
-
protected_namespaces=(),
|
|
28
|
-
)
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
def to_str(self) -> str:
|
|
32
|
-
"""Returns the string representation of the model using alias"""
|
|
33
|
-
return pprint.pformat(self.model_dump(by_alias=True))
|
|
34
|
-
|
|
35
|
-
def to_json(self) -> str:
|
|
36
|
-
"""Returns the JSON representation of the model using alias"""
|
|
37
|
-
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
38
|
-
return json.dumps(self.to_dict())
|
|
39
|
-
|
|
40
|
-
@classmethod
|
|
41
|
-
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
42
|
-
"""Create an instance of Symbol from a JSON string"""
|
|
43
|
-
return cls.from_dict(json.loads(json_str))
|
|
44
|
-
|
|
45
|
-
def to_dict(self) -> Dict[str, Any]:
|
|
46
|
-
"""Return the dictionary representation of the model using alias.
|
|
47
|
-
|
|
48
|
-
This has the following differences from calling pydantic's
|
|
49
|
-
`self.model_dump(by_alias=True)`:
|
|
50
|
-
|
|
51
|
-
* `None` is only added to the output dict for nullable fields that
|
|
52
|
-
were set at model initialization. Other fields with value `None`
|
|
53
|
-
are ignored.
|
|
54
|
-
"""
|
|
55
|
-
excluded_fields: Set[str] = set([
|
|
56
|
-
])
|
|
57
|
-
|
|
58
|
-
_dict = self.model_dump(
|
|
59
|
-
by_alias=True,
|
|
60
|
-
exclude=excluded_fields,
|
|
61
|
-
exclude_none=True,
|
|
62
|
-
)
|
|
63
|
-
return _dict
|
|
64
|
-
|
|
65
|
-
@classmethod
|
|
66
|
-
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
67
|
-
"""Create an instance of Symbol from a dict"""
|
|
68
|
-
if obj is None:
|
|
69
|
-
return None
|
|
70
|
-
|
|
71
|
-
if not isinstance(obj, dict):
|
|
72
|
-
return cls.model_validate(obj)
|
|
73
|
-
|
|
74
|
-
_obj = cls.model_validate({
|
|
75
|
-
"boundingRect": obj.get("boundingRect")
|
|
76
|
-
})
|
|
77
|
-
return _obj
|
|
78
|
-
|
|
79
|
-
|
|
@@ -1,115 +0,0 @@
|
|
|
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, StrictFloat, StrictInt
|
|
13
|
-
from typing import Any, ClassVar, Dict, List, Union
|
|
14
|
-
from regula.documentreader.webclient.gen.models.rectangle_coordinates import RectangleCoordinates
|
|
15
|
-
from typing import Optional, Set
|
|
16
|
-
from typing_extensions import Self
|
|
17
|
-
|
|
18
|
-
class SymbolEstimationItem(BaseModel):
|
|
19
|
-
"""
|
|
20
|
-
SymbolEstimationItem
|
|
21
|
-
""" # noqa: E501
|
|
22
|
-
alignment_nearest_symbols: StrictInt = Field(alias="ALIGNMENT_NEAREST_SYMBOLS")
|
|
23
|
-
contrast_print: StrictInt = Field(alias="CONTRAST_PRINT")
|
|
24
|
-
contrast_symbol: StrictInt = Field(alias="CONTRAST_SYMBOL")
|
|
25
|
-
char_symbol: StrictInt = Field(alias="CharSymbol")
|
|
26
|
-
edge: StrictInt = Field(alias="EDGE")
|
|
27
|
-
emptiness: StrictInt = Field(alias="EMPTINESS")
|
|
28
|
-
stain: StrictInt = Field(alias="STAIN")
|
|
29
|
-
symbols_interval: StrictInt = Field(alias="SYMBOLS_INTERVAL")
|
|
30
|
-
symbol_param: StrictInt = Field(alias="SYMBOL_PARAM")
|
|
31
|
-
symbol_size: StrictInt = Field(alias="SYMBOL_SIZE")
|
|
32
|
-
size_error_align_with_next: Union[StrictFloat, StrictInt] = Field(alias="SizeErrorAlignWithNext")
|
|
33
|
-
size_error_align_with_prev: Union[StrictFloat, StrictInt] = Field(alias="SizeErrorAlignWithPrev")
|
|
34
|
-
size_error_interv_with_next: Union[StrictFloat, StrictInt] = Field(alias="SizeErrorIntervWithNext")
|
|
35
|
-
size_error_interv_with_prev: Union[StrictFloat, StrictInt] = Field(alias="SizeErrorIntervWithPrev")
|
|
36
|
-
size_error_symbol_height: Union[StrictFloat, StrictInt] = Field(alias="SizeErrorSymbolHeight")
|
|
37
|
-
size_error_symbol_width: Union[StrictFloat, StrictInt] = Field(alias="SizeErrorSymbolWidth")
|
|
38
|
-
symbol_bounds: RectangleCoordinates = Field(alias="SymbolBounds")
|
|
39
|
-
__properties: ClassVar[List[str]] = ["ALIGNMENT_NEAREST_SYMBOLS", "CONTRAST_PRINT", "CONTRAST_SYMBOL", "CharSymbol", "EDGE", "EMPTINESS", "STAIN", "SYMBOLS_INTERVAL", "SYMBOL_PARAM", "SYMBOL_SIZE", "SizeErrorAlignWithNext", "SizeErrorAlignWithPrev", "SizeErrorIntervWithNext", "SizeErrorIntervWithPrev", "SizeErrorSymbolHeight", "SizeErrorSymbolWidth", "SymbolBounds"]
|
|
40
|
-
|
|
41
|
-
model_config = ConfigDict(
|
|
42
|
-
populate_by_name=True,
|
|
43
|
-
validate_assignment=True,
|
|
44
|
-
protected_namespaces=(),
|
|
45
|
-
)
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
def to_str(self) -> str:
|
|
49
|
-
"""Returns the string representation of the model using alias"""
|
|
50
|
-
return pprint.pformat(self.model_dump(by_alias=True))
|
|
51
|
-
|
|
52
|
-
def to_json(self) -> str:
|
|
53
|
-
"""Returns the JSON representation of the model using alias"""
|
|
54
|
-
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
55
|
-
return json.dumps(self.to_dict())
|
|
56
|
-
|
|
57
|
-
@classmethod
|
|
58
|
-
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
59
|
-
"""Create an instance of SymbolEstimationItem from a JSON string"""
|
|
60
|
-
return cls.from_dict(json.loads(json_str))
|
|
61
|
-
|
|
62
|
-
def to_dict(self) -> Dict[str, Any]:
|
|
63
|
-
"""Return the dictionary representation of the model using alias.
|
|
64
|
-
|
|
65
|
-
This has the following differences from calling pydantic's
|
|
66
|
-
`self.model_dump(by_alias=True)`:
|
|
67
|
-
|
|
68
|
-
* `None` is only added to the output dict for nullable fields that
|
|
69
|
-
were set at model initialization. Other fields with value `None`
|
|
70
|
-
are ignored.
|
|
71
|
-
"""
|
|
72
|
-
excluded_fields: Set[str] = set([
|
|
73
|
-
])
|
|
74
|
-
|
|
75
|
-
_dict = self.model_dump(
|
|
76
|
-
by_alias=True,
|
|
77
|
-
exclude=excluded_fields,
|
|
78
|
-
exclude_none=True,
|
|
79
|
-
)
|
|
80
|
-
# override the default output from pydantic by calling `to_dict()` of symbol_bounds
|
|
81
|
-
if self.symbol_bounds:
|
|
82
|
-
_dict['SymbolBounds'] = self.symbol_bounds.to_dict()
|
|
83
|
-
return _dict
|
|
84
|
-
|
|
85
|
-
@classmethod
|
|
86
|
-
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
87
|
-
"""Create an instance of SymbolEstimationItem from a dict"""
|
|
88
|
-
if obj is None:
|
|
89
|
-
return None
|
|
90
|
-
|
|
91
|
-
if not isinstance(obj, dict):
|
|
92
|
-
return cls.model_validate(obj)
|
|
93
|
-
|
|
94
|
-
_obj = cls.model_validate({
|
|
95
|
-
"ALIGNMENT_NEAREST_SYMBOLS": obj.get("ALIGNMENT_NEAREST_SYMBOLS"),
|
|
96
|
-
"CONTRAST_PRINT": obj.get("CONTRAST_PRINT"),
|
|
97
|
-
"CONTRAST_SYMBOL": obj.get("CONTRAST_SYMBOL"),
|
|
98
|
-
"CharSymbol": obj.get("CharSymbol"),
|
|
99
|
-
"EDGE": obj.get("EDGE"),
|
|
100
|
-
"EMPTINESS": obj.get("EMPTINESS"),
|
|
101
|
-
"STAIN": obj.get("STAIN"),
|
|
102
|
-
"SYMBOLS_INTERVAL": obj.get("SYMBOLS_INTERVAL"),
|
|
103
|
-
"SYMBOL_PARAM": obj.get("SYMBOL_PARAM"),
|
|
104
|
-
"SYMBOL_SIZE": obj.get("SYMBOL_SIZE"),
|
|
105
|
-
"SizeErrorAlignWithNext": obj.get("SizeErrorAlignWithNext"),
|
|
106
|
-
"SizeErrorAlignWithPrev": obj.get("SizeErrorAlignWithPrev"),
|
|
107
|
-
"SizeErrorIntervWithNext": obj.get("SizeErrorIntervWithNext"),
|
|
108
|
-
"SizeErrorIntervWithPrev": obj.get("SizeErrorIntervWithPrev"),
|
|
109
|
-
"SizeErrorSymbolHeight": obj.get("SizeErrorSymbolHeight"),
|
|
110
|
-
"SizeErrorSymbolWidth": obj.get("SizeErrorSymbolWidth"),
|
|
111
|
-
"SymbolBounds": RectangleCoordinates.from_dict(obj["SymbolBounds"]) if obj.get("SymbolBounds") is not None else None
|
|
112
|
-
})
|
|
113
|
-
return _obj
|
|
114
|
-
|
|
115
|
-
|
|
@@ -1,93 +0,0 @@
|
|
|
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, Optional
|
|
14
|
-
from regula.documentreader.webclient.gen.models.binary_data import BinaryData
|
|
15
|
-
from regula.documentreader.webclient.gen.models.rfid_raw_data import RfidRawData
|
|
16
|
-
from typing import Optional, Set
|
|
17
|
-
from typing_extensions import Self
|
|
18
|
-
|
|
19
|
-
class TDocBinaryInfo(BaseModel):
|
|
20
|
-
"""
|
|
21
|
-
TDocBinaryInfo
|
|
22
|
-
""" # noqa: E501
|
|
23
|
-
rfid_binary_data: Optional[BinaryData] = Field(default=None, alias="RFID_BINARY_DATA")
|
|
24
|
-
rfid_raw_data: Optional[List[RfidRawData]] = Field(default=None, alias="RFID_RAW_DATA")
|
|
25
|
-
__properties: ClassVar[List[str]] = ["RFID_BINARY_DATA", "RFID_RAW_DATA"]
|
|
26
|
-
|
|
27
|
-
model_config = ConfigDict(
|
|
28
|
-
populate_by_name=True,
|
|
29
|
-
validate_assignment=True,
|
|
30
|
-
protected_namespaces=(),
|
|
31
|
-
)
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
def to_str(self) -> str:
|
|
35
|
-
"""Returns the string representation of the model using alias"""
|
|
36
|
-
return pprint.pformat(self.model_dump(by_alias=True))
|
|
37
|
-
|
|
38
|
-
def to_json(self) -> str:
|
|
39
|
-
"""Returns the JSON representation of the model using alias"""
|
|
40
|
-
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
41
|
-
return json.dumps(self.to_dict())
|
|
42
|
-
|
|
43
|
-
@classmethod
|
|
44
|
-
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
45
|
-
"""Create an instance of TDocBinaryInfo from a JSON string"""
|
|
46
|
-
return cls.from_dict(json.loads(json_str))
|
|
47
|
-
|
|
48
|
-
def to_dict(self) -> Dict[str, Any]:
|
|
49
|
-
"""Return the dictionary representation of the model using alias.
|
|
50
|
-
|
|
51
|
-
This has the following differences from calling pydantic's
|
|
52
|
-
`self.model_dump(by_alias=True)`:
|
|
53
|
-
|
|
54
|
-
* `None` is only added to the output dict for nullable fields that
|
|
55
|
-
were set at model initialization. Other fields with value `None`
|
|
56
|
-
are ignored.
|
|
57
|
-
"""
|
|
58
|
-
excluded_fields: Set[str] = set([
|
|
59
|
-
])
|
|
60
|
-
|
|
61
|
-
_dict = self.model_dump(
|
|
62
|
-
by_alias=True,
|
|
63
|
-
exclude=excluded_fields,
|
|
64
|
-
exclude_none=True,
|
|
65
|
-
)
|
|
66
|
-
# override the default output from pydantic by calling `to_dict()` of rfid_binary_data
|
|
67
|
-
if self.rfid_binary_data:
|
|
68
|
-
_dict['RFID_BINARY_DATA'] = self.rfid_binary_data.to_dict()
|
|
69
|
-
# override the default output from pydantic by calling `to_dict()` of each item in rfid_raw_data (list)
|
|
70
|
-
_items = []
|
|
71
|
-
if self.rfid_raw_data:
|
|
72
|
-
for _item_rfid_raw_data in self.rfid_raw_data:
|
|
73
|
-
if _item_rfid_raw_data:
|
|
74
|
-
_items.append(_item_rfid_raw_data.to_dict())
|
|
75
|
-
_dict['RFID_RAW_DATA'] = _items
|
|
76
|
-
return _dict
|
|
77
|
-
|
|
78
|
-
@classmethod
|
|
79
|
-
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
80
|
-
"""Create an instance of TDocBinaryInfo from a dict"""
|
|
81
|
-
if obj is None:
|
|
82
|
-
return None
|
|
83
|
-
|
|
84
|
-
if not isinstance(obj, dict):
|
|
85
|
-
return cls.model_validate(obj)
|
|
86
|
-
|
|
87
|
-
_obj = cls.model_validate({
|
|
88
|
-
"RFID_BINARY_DATA": BinaryData.from_dict(obj["RFID_BINARY_DATA"]) if obj.get("RFID_BINARY_DATA") is not None else None,
|
|
89
|
-
"RFID_RAW_DATA": [RfidRawData.from_dict(_item) for _item in obj["RFID_RAW_DATA"]] if obj.get("RFID_RAW_DATA") is not None else None
|
|
90
|
-
})
|
|
91
|
-
return _obj
|
|
92
|
-
|
|
93
|
-
|
|
@@ -1,83 +0,0 @@
|
|
|
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.t_doc_binary_info import TDocBinaryInfo
|
|
15
|
-
from typing import Optional, Set
|
|
16
|
-
from typing_extensions import Self
|
|
17
|
-
|
|
18
|
-
class TDocBinaryInfoItem(BaseModel):
|
|
19
|
-
"""
|
|
20
|
-
TDocBinaryInfoItem
|
|
21
|
-
""" # noqa: E501
|
|
22
|
-
t_doc_binary_info: TDocBinaryInfo = Field(alias="TDocBinaryInfo")
|
|
23
|
-
__properties: ClassVar[List[str]] = ["TDocBinaryInfo"]
|
|
24
|
-
|
|
25
|
-
model_config = ConfigDict(
|
|
26
|
-
populate_by_name=True,
|
|
27
|
-
validate_assignment=True,
|
|
28
|
-
protected_namespaces=(),
|
|
29
|
-
)
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
def to_str(self) -> str:
|
|
33
|
-
"""Returns the string representation of the model using alias"""
|
|
34
|
-
return pprint.pformat(self.model_dump(by_alias=True))
|
|
35
|
-
|
|
36
|
-
def to_json(self) -> str:
|
|
37
|
-
"""Returns the JSON representation of the model using alias"""
|
|
38
|
-
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
39
|
-
return json.dumps(self.to_dict())
|
|
40
|
-
|
|
41
|
-
@classmethod
|
|
42
|
-
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
43
|
-
"""Create an instance of TDocBinaryInfoItem from a JSON string"""
|
|
44
|
-
return cls.from_dict(json.loads(json_str))
|
|
45
|
-
|
|
46
|
-
def to_dict(self) -> Dict[str, Any]:
|
|
47
|
-
"""Return the dictionary representation of the model using alias.
|
|
48
|
-
|
|
49
|
-
This has the following differences from calling pydantic's
|
|
50
|
-
`self.model_dump(by_alias=True)`:
|
|
51
|
-
|
|
52
|
-
* `None` is only added to the output dict for nullable fields that
|
|
53
|
-
were set at model initialization. Other fields with value `None`
|
|
54
|
-
are ignored.
|
|
55
|
-
"""
|
|
56
|
-
excluded_fields: Set[str] = set([
|
|
57
|
-
])
|
|
58
|
-
|
|
59
|
-
_dict = self.model_dump(
|
|
60
|
-
by_alias=True,
|
|
61
|
-
exclude=excluded_fields,
|
|
62
|
-
exclude_none=True,
|
|
63
|
-
)
|
|
64
|
-
# override the default output from pydantic by calling `to_dict()` of t_doc_binary_info
|
|
65
|
-
if self.t_doc_binary_info:
|
|
66
|
-
_dict['TDocBinaryInfo'] = self.t_doc_binary_info.to_dict()
|
|
67
|
-
return _dict
|
|
68
|
-
|
|
69
|
-
@classmethod
|
|
70
|
-
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
71
|
-
"""Create an instance of TDocBinaryInfoItem from a dict"""
|
|
72
|
-
if obj is None:
|
|
73
|
-
return None
|
|
74
|
-
|
|
75
|
-
if not isinstance(obj, dict):
|
|
76
|
-
return cls.model_validate(obj)
|
|
77
|
-
|
|
78
|
-
_obj = cls.model_validate({
|
|
79
|
-
"TDocBinaryInfo": TDocBinaryInfo.from_dict(obj["TDocBinaryInfo"]) if obj.get("TDocBinaryInfo") is not None else None
|
|
80
|
-
})
|
|
81
|
-
return _obj
|
|
82
|
-
|
|
83
|
-
|
|
@@ -1,87 +0,0 @@
|
|
|
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.graph_data import GraphData
|
|
15
|
-
from typing import Optional, Set
|
|
16
|
-
from typing_extensions import Self
|
|
17
|
-
|
|
18
|
-
class TOriginalRFIDGraphicsInfo(BaseModel):
|
|
19
|
-
"""
|
|
20
|
-
TOriginalRFIDGraphicsInfo
|
|
21
|
-
""" # noqa: E501
|
|
22
|
-
rfid_original_graph_data: List[GraphData] = Field(alias="RFID_ORIGINAL_GRAPH_DATA")
|
|
23
|
-
__properties: ClassVar[List[str]] = ["RFID_ORIGINAL_GRAPH_DATA"]
|
|
24
|
-
|
|
25
|
-
model_config = ConfigDict(
|
|
26
|
-
populate_by_name=True,
|
|
27
|
-
validate_assignment=True,
|
|
28
|
-
protected_namespaces=(),
|
|
29
|
-
)
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
def to_str(self) -> str:
|
|
33
|
-
"""Returns the string representation of the model using alias"""
|
|
34
|
-
return pprint.pformat(self.model_dump(by_alias=True))
|
|
35
|
-
|
|
36
|
-
def to_json(self) -> str:
|
|
37
|
-
"""Returns the JSON representation of the model using alias"""
|
|
38
|
-
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
39
|
-
return json.dumps(self.to_dict())
|
|
40
|
-
|
|
41
|
-
@classmethod
|
|
42
|
-
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
43
|
-
"""Create an instance of TOriginalRFIDGraphicsInfo from a JSON string"""
|
|
44
|
-
return cls.from_dict(json.loads(json_str))
|
|
45
|
-
|
|
46
|
-
def to_dict(self) -> Dict[str, Any]:
|
|
47
|
-
"""Return the dictionary representation of the model using alias.
|
|
48
|
-
|
|
49
|
-
This has the following differences from calling pydantic's
|
|
50
|
-
`self.model_dump(by_alias=True)`:
|
|
51
|
-
|
|
52
|
-
* `None` is only added to the output dict for nullable fields that
|
|
53
|
-
were set at model initialization. Other fields with value `None`
|
|
54
|
-
are ignored.
|
|
55
|
-
"""
|
|
56
|
-
excluded_fields: Set[str] = set([
|
|
57
|
-
])
|
|
58
|
-
|
|
59
|
-
_dict = self.model_dump(
|
|
60
|
-
by_alias=True,
|
|
61
|
-
exclude=excluded_fields,
|
|
62
|
-
exclude_none=True,
|
|
63
|
-
)
|
|
64
|
-
# override the default output from pydantic by calling `to_dict()` of each item in rfid_original_graph_data (list)
|
|
65
|
-
_items = []
|
|
66
|
-
if self.rfid_original_graph_data:
|
|
67
|
-
for _item_rfid_original_graph_data in self.rfid_original_graph_data:
|
|
68
|
-
if _item_rfid_original_graph_data:
|
|
69
|
-
_items.append(_item_rfid_original_graph_data.to_dict())
|
|
70
|
-
_dict['RFID_ORIGINAL_GRAPH_DATA'] = _items
|
|
71
|
-
return _dict
|
|
72
|
-
|
|
73
|
-
@classmethod
|
|
74
|
-
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
75
|
-
"""Create an instance of TOriginalRFIDGraphicsInfo from a dict"""
|
|
76
|
-
if obj is None:
|
|
77
|
-
return None
|
|
78
|
-
|
|
79
|
-
if not isinstance(obj, dict):
|
|
80
|
-
return cls.model_validate(obj)
|
|
81
|
-
|
|
82
|
-
_obj = cls.model_validate({
|
|
83
|
-
"RFID_ORIGINAL_GRAPH_DATA": [GraphData.from_dict(_item) for _item in obj["RFID_ORIGINAL_GRAPH_DATA"]] if obj.get("RFID_ORIGINAL_GRAPH_DATA") is not None else None
|
|
84
|
-
})
|
|
85
|
-
return _obj
|
|
86
|
-
|
|
87
|
-
|
|
@@ -1,83 +0,0 @@
|
|
|
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.t_original_rfid_graphics_info import TOriginalRFIDGraphicsInfo
|
|
15
|
-
from typing import Optional, Set
|
|
16
|
-
from typing_extensions import Self
|
|
17
|
-
|
|
18
|
-
class TOriginalRFIDGraphicsInfoItem(BaseModel):
|
|
19
|
-
"""
|
|
20
|
-
TOriginalRFIDGraphicsInfoItem
|
|
21
|
-
""" # noqa: E501
|
|
22
|
-
t_original_rfid_graphics_info: TOriginalRFIDGraphicsInfo = Field(alias="TOriginalRFIDGraphicsInfo")
|
|
23
|
-
__properties: ClassVar[List[str]] = ["TOriginalRFIDGraphicsInfo"]
|
|
24
|
-
|
|
25
|
-
model_config = ConfigDict(
|
|
26
|
-
populate_by_name=True,
|
|
27
|
-
validate_assignment=True,
|
|
28
|
-
protected_namespaces=(),
|
|
29
|
-
)
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
def to_str(self) -> str:
|
|
33
|
-
"""Returns the string representation of the model using alias"""
|
|
34
|
-
return pprint.pformat(self.model_dump(by_alias=True))
|
|
35
|
-
|
|
36
|
-
def to_json(self) -> str:
|
|
37
|
-
"""Returns the JSON representation of the model using alias"""
|
|
38
|
-
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
39
|
-
return json.dumps(self.to_dict())
|
|
40
|
-
|
|
41
|
-
@classmethod
|
|
42
|
-
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
43
|
-
"""Create an instance of TOriginalRFIDGraphicsInfoItem from a JSON string"""
|
|
44
|
-
return cls.from_dict(json.loads(json_str))
|
|
45
|
-
|
|
46
|
-
def to_dict(self) -> Dict[str, Any]:
|
|
47
|
-
"""Return the dictionary representation of the model using alias.
|
|
48
|
-
|
|
49
|
-
This has the following differences from calling pydantic's
|
|
50
|
-
`self.model_dump(by_alias=True)`:
|
|
51
|
-
|
|
52
|
-
* `None` is only added to the output dict for nullable fields that
|
|
53
|
-
were set at model initialization. Other fields with value `None`
|
|
54
|
-
are ignored.
|
|
55
|
-
"""
|
|
56
|
-
excluded_fields: Set[str] = set([
|
|
57
|
-
])
|
|
58
|
-
|
|
59
|
-
_dict = self.model_dump(
|
|
60
|
-
by_alias=True,
|
|
61
|
-
exclude=excluded_fields,
|
|
62
|
-
exclude_none=True,
|
|
63
|
-
)
|
|
64
|
-
# override the default output from pydantic by calling `to_dict()` of t_original_rfid_graphics_info
|
|
65
|
-
if self.t_original_rfid_graphics_info:
|
|
66
|
-
_dict['TOriginalRFIDGraphicsInfo'] = self.t_original_rfid_graphics_info.to_dict()
|
|
67
|
-
return _dict
|
|
68
|
-
|
|
69
|
-
@classmethod
|
|
70
|
-
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
71
|
-
"""Create an instance of TOriginalRFIDGraphicsInfoItem from a dict"""
|
|
72
|
-
if obj is None:
|
|
73
|
-
return None
|
|
74
|
-
|
|
75
|
-
if not isinstance(obj, dict):
|
|
76
|
-
return cls.model_validate(obj)
|
|
77
|
-
|
|
78
|
-
_obj = cls.model_validate({
|
|
79
|
-
"TOriginalRFIDGraphicsInfo": TOriginalRFIDGraphicsInfo.from_dict(obj["TOriginalRFIDGraphicsInfo"]) if obj.get("TOriginalRFIDGraphicsInfo") is not None else None
|
|
80
|
-
})
|
|
81
|
-
return _obj
|
|
82
|
-
|
|
83
|
-
|