regula-documentreader-webclient 8.1.354.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.354.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.354.dev0.dist-info/RECORD +0 -263
- {regula_documentreader_webclient-8.1.354.dev0.dist-info → regula_documentreader_webclient-8.1.355rc0.dist-info}/WHEEL +0 -0
- {regula_documentreader_webclient-8.1.354.dev0.dist-info → regula_documentreader_webclient-8.1.355rc0.dist-info}/top_level.txt +0 -0
|
@@ -3,1670 +3,871 @@
|
|
|
3
3
|
"""
|
|
4
4
|
Generated by: https://openapi-generator.tech
|
|
5
5
|
"""
|
|
6
|
-
|
|
7
|
-
from
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
from regula.documentreader.webclient.gen.
|
|
15
|
-
from regula.documentreader.webclient.gen.
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
from regula.documentreader.webclient.gen.rest import RESTResponseType
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
class TransactionApi:
|
|
6
|
+
|
|
7
|
+
from __future__ import absolute_import
|
|
8
|
+
|
|
9
|
+
import re # noqa: F401
|
|
10
|
+
|
|
11
|
+
# python 2 and python 3 compatibility library
|
|
12
|
+
import six
|
|
13
|
+
|
|
14
|
+
from regula.documentreader.webclient.gen.api_client import ApiClient
|
|
15
|
+
from regula.documentreader.webclient.gen.exceptions import ( # noqa: F401
|
|
16
|
+
ApiTypeError,
|
|
17
|
+
ApiValueError
|
|
18
|
+
)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class TransactionApi(object):
|
|
26
22
|
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
27
23
|
Ref: https://openapi-generator.tech
|
|
28
24
|
|
|
29
25
|
Do not edit the class manually.
|
|
30
26
|
"""
|
|
31
27
|
|
|
32
|
-
def __init__(self, api_client=None)
|
|
28
|
+
def __init__(self, api_client=None):
|
|
33
29
|
if api_client is None:
|
|
34
|
-
api_client = ApiClient
|
|
30
|
+
api_client = ApiClient()
|
|
35
31
|
self.api_client = api_client
|
|
36
32
|
|
|
33
|
+
def api_v2_tag_tag_id_delete(self, tag_id, **kwargs): # noqa: E501
|
|
34
|
+
"""Delete Reprocess transactions by tag # noqa: E501
|
|
37
35
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
self,
|
|
41
|
-
tag_id: Annotated[StrictStr, Field(description="Tag id")],
|
|
42
|
-
_request_timeout: Union[
|
|
43
|
-
None,
|
|
44
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
45
|
-
Tuple[
|
|
46
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
47
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
48
|
-
]
|
|
49
|
-
] = None,
|
|
50
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
51
|
-
_content_type: Optional[StrictStr] = None,
|
|
52
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
53
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
54
|
-
) -> object:
|
|
55
|
-
"""Delete Reprocess transactions by tag
|
|
36
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
37
|
+
asynchronous HTTP request, please pass async_req=True
|
|
56
38
|
|
|
39
|
+
>>> thread = api.api_v2_tag_tag_id_delete(tag_id, async_req=True)
|
|
40
|
+
>>> result = thread.get()
|
|
57
41
|
|
|
58
42
|
:param tag_id: Tag id (required)
|
|
59
43
|
:type tag_id: str
|
|
44
|
+
:param async_req: Whether to execute the request asynchronously.
|
|
45
|
+
:type async_req: bool, optional
|
|
46
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
47
|
+
be returned without reading/decoding response
|
|
48
|
+
data. Default is True.
|
|
49
|
+
:type _preload_content: bool, optional
|
|
60
50
|
:param _request_timeout: timeout setting for this request. If one
|
|
61
51
|
number provided, it will be total request
|
|
62
52
|
timeout. It can also be a pair (tuple) of
|
|
63
53
|
(connection, read) timeouts.
|
|
64
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
65
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
66
|
-
request; this effectively ignores the
|
|
67
|
-
authentication in the spec for a single request.
|
|
68
|
-
:type _request_auth: dict, optional
|
|
69
|
-
:param _content_type: force content-type for the request.
|
|
70
|
-
:type _content_type: str, Optional
|
|
71
|
-
:param _headers: set to override the headers for a single
|
|
72
|
-
request; this effectively ignores the headers
|
|
73
|
-
in the spec for a single request.
|
|
74
|
-
:type _headers: dict, optional
|
|
75
|
-
:param _host_index: set to override the host_index for a single
|
|
76
|
-
request; this effectively ignores the host_index
|
|
77
|
-
in the spec for a single request.
|
|
78
|
-
:type _host_index: int, optional
|
|
79
54
|
:return: Returns the result object.
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
_headers=_headers,
|
|
87
|
-
_host_index=_host_index
|
|
88
|
-
)
|
|
89
|
-
|
|
90
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
91
|
-
'204': "object",
|
|
92
|
-
'400': None,
|
|
93
|
-
'403': None,
|
|
94
|
-
}
|
|
95
|
-
response_data = self.api_client.call_api(
|
|
96
|
-
*_param,
|
|
97
|
-
_request_timeout=_request_timeout
|
|
98
|
-
)
|
|
99
|
-
response_data.read()
|
|
100
|
-
return self.api_client.response_deserialize(
|
|
101
|
-
response_data=response_data,
|
|
102
|
-
response_types_map=_response_types_map,
|
|
103
|
-
).data
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
@validate_call
|
|
107
|
-
def api_v2_tag_tag_id_delete_with_http_info(
|
|
108
|
-
self,
|
|
109
|
-
tag_id: Annotated[StrictStr, Field(description="Tag id")],
|
|
110
|
-
_request_timeout: Union[
|
|
111
|
-
None,
|
|
112
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
113
|
-
Tuple[
|
|
114
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
115
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
116
|
-
]
|
|
117
|
-
] = None,
|
|
118
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
119
|
-
_content_type: Optional[StrictStr] = None,
|
|
120
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
121
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
122
|
-
) -> ApiResponse[object]:
|
|
123
|
-
"""Delete Reprocess transactions by tag
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
:param tag_id: Tag id (required)
|
|
127
|
-
:type tag_id: str
|
|
128
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
129
|
-
number provided, it will be total request
|
|
130
|
-
timeout. It can also be a pair (tuple) of
|
|
131
|
-
(connection, read) timeouts.
|
|
132
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
133
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
134
|
-
request; this effectively ignores the
|
|
135
|
-
authentication in the spec for a single request.
|
|
136
|
-
:type _request_auth: dict, optional
|
|
137
|
-
:param _content_type: force content-type for the request.
|
|
138
|
-
:type _content_type: str, Optional
|
|
139
|
-
:param _headers: set to override the headers for a single
|
|
140
|
-
request; this effectively ignores the headers
|
|
141
|
-
in the spec for a single request.
|
|
142
|
-
:type _headers: dict, optional
|
|
143
|
-
:param _host_index: set to override the host_index for a single
|
|
144
|
-
request; this effectively ignores the host_index
|
|
145
|
-
in the spec for a single request.
|
|
146
|
-
:type _host_index: int, optional
|
|
147
|
-
:return: Returns the result object.
|
|
148
|
-
""" # noqa: E501
|
|
149
|
-
|
|
150
|
-
_param = self._api_v2_tag_tag_id_delete_serialize(
|
|
151
|
-
tag_id=tag_id,
|
|
152
|
-
_request_auth=_request_auth,
|
|
153
|
-
_content_type=_content_type,
|
|
154
|
-
_headers=_headers,
|
|
155
|
-
_host_index=_host_index
|
|
156
|
-
)
|
|
157
|
-
|
|
158
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
159
|
-
'204': "object",
|
|
160
|
-
'400': None,
|
|
161
|
-
'403': None,
|
|
162
|
-
}
|
|
163
|
-
response_data = self.api_client.call_api(
|
|
164
|
-
*_param,
|
|
165
|
-
_request_timeout=_request_timeout
|
|
166
|
-
)
|
|
167
|
-
response_data.read()
|
|
168
|
-
return self.api_client.response_deserialize(
|
|
169
|
-
response_data=response_data,
|
|
170
|
-
response_types_map=_response_types_map,
|
|
171
|
-
)
|
|
55
|
+
If the method is called asynchronously,
|
|
56
|
+
returns the request thread.
|
|
57
|
+
:rtype: object
|
|
58
|
+
"""
|
|
59
|
+
kwargs['_return_http_data_only'] = True
|
|
60
|
+
return self.api_v2_tag_tag_id_delete_with_http_info(tag_id, **kwargs) # noqa: E501
|
|
172
61
|
|
|
62
|
+
def api_v2_tag_tag_id_delete_with_http_info(self, tag_id, **kwargs): # noqa: E501
|
|
63
|
+
"""Delete Reprocess transactions by tag # noqa: E501
|
|
173
64
|
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
self,
|
|
177
|
-
tag_id: Annotated[StrictStr, Field(description="Tag id")],
|
|
178
|
-
_request_timeout: Union[
|
|
179
|
-
None,
|
|
180
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
181
|
-
Tuple[
|
|
182
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
183
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
184
|
-
]
|
|
185
|
-
] = None,
|
|
186
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
187
|
-
_content_type: Optional[StrictStr] = None,
|
|
188
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
189
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
190
|
-
) -> RESTResponseType:
|
|
191
|
-
"""Delete Reprocess transactions by tag
|
|
65
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
66
|
+
asynchronous HTTP request, please pass async_req=True
|
|
192
67
|
|
|
68
|
+
>>> thread = api.api_v2_tag_tag_id_delete_with_http_info(tag_id, async_req=True)
|
|
69
|
+
>>> result = thread.get()
|
|
193
70
|
|
|
194
71
|
:param tag_id: Tag id (required)
|
|
195
72
|
:type tag_id: str
|
|
73
|
+
:param async_req: Whether to execute the request asynchronously.
|
|
74
|
+
:type async_req: bool, optional
|
|
75
|
+
:param _return_http_data_only: response data without head status code
|
|
76
|
+
and headers
|
|
77
|
+
:type _return_http_data_only: bool, optional
|
|
78
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
79
|
+
be returned without reading/decoding response
|
|
80
|
+
data. Default is True.
|
|
81
|
+
:type _preload_content: bool, optional
|
|
196
82
|
:param _request_timeout: timeout setting for this request. If one
|
|
197
83
|
number provided, it will be total request
|
|
198
84
|
timeout. It can also be a pair (tuple) of
|
|
199
85
|
(connection, read) timeouts.
|
|
200
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
201
86
|
:param _request_auth: set to override the auth_settings for an a single
|
|
202
|
-
request; this effectively ignores the
|
|
203
|
-
|
|
87
|
+
request; this effectively ignores the authentication
|
|
88
|
+
in the spec for a single request.
|
|
204
89
|
:type _request_auth: dict, optional
|
|
205
|
-
:param _content_type: force content-type for the request.
|
|
206
|
-
:type _content_type: str, Optional
|
|
207
|
-
:param _headers: set to override the headers for a single
|
|
208
|
-
request; this effectively ignores the headers
|
|
209
|
-
in the spec for a single request.
|
|
210
|
-
:type _headers: dict, optional
|
|
211
|
-
:param _host_index: set to override the host_index for a single
|
|
212
|
-
request; this effectively ignores the host_index
|
|
213
|
-
in the spec for a single request.
|
|
214
|
-
:type _host_index: int, optional
|
|
215
90
|
:return: Returns the result object.
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
_request_auth=_request_auth,
|
|
221
|
-
_content_type=_content_type,
|
|
222
|
-
_headers=_headers,
|
|
223
|
-
_host_index=_host_index
|
|
224
|
-
)
|
|
225
|
-
|
|
226
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
227
|
-
'204': "object",
|
|
228
|
-
'400': None,
|
|
229
|
-
'403': None,
|
|
230
|
-
}
|
|
231
|
-
response_data = self.api_client.call_api(
|
|
232
|
-
*_param,
|
|
233
|
-
_request_timeout=_request_timeout
|
|
234
|
-
)
|
|
235
|
-
return response_data.response
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
def _api_v2_tag_tag_id_delete_serialize(
|
|
239
|
-
self,
|
|
240
|
-
tag_id,
|
|
241
|
-
_request_auth,
|
|
242
|
-
_content_type,
|
|
243
|
-
_headers,
|
|
244
|
-
_host_index,
|
|
245
|
-
) -> RequestSerialized:
|
|
91
|
+
If the method is called asynchronously,
|
|
92
|
+
returns the request thread.
|
|
93
|
+
:rtype: tuple(object, status_code(int), headers(HTTPHeaderDict))
|
|
94
|
+
"""
|
|
246
95
|
|
|
247
|
-
|
|
96
|
+
local_var_params = locals()
|
|
248
97
|
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
_path_params: Dict[str, str] = {}
|
|
253
|
-
_query_params: List[Tuple[str, str]] = []
|
|
254
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
255
|
-
_form_params: List[Tuple[str, str]] = []
|
|
256
|
-
_files: Dict[
|
|
257
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
258
|
-
] = {}
|
|
259
|
-
_body_params: Optional[bytes] = None
|
|
260
|
-
|
|
261
|
-
# process the path parameters
|
|
262
|
-
if tag_id is not None:
|
|
263
|
-
_path_params['tagId'] = tag_id
|
|
264
|
-
# process the query parameters
|
|
265
|
-
# process the header parameters
|
|
266
|
-
# process the form parameters
|
|
267
|
-
# process the body parameter
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
# set the HTTP header `Accept`
|
|
271
|
-
if 'Accept' not in _header_params:
|
|
272
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
273
|
-
[
|
|
274
|
-
'application/json'
|
|
275
|
-
]
|
|
276
|
-
)
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
# authentication setting
|
|
280
|
-
_auth_settings: List[str] = [
|
|
98
|
+
all_params = [
|
|
99
|
+
'tag_id'
|
|
281
100
|
]
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
body=_body_params,
|
|
290
|
-
post_params=_form_params,
|
|
291
|
-
files=_files,
|
|
292
|
-
auth_settings=_auth_settings,
|
|
293
|
-
collection_formats=_collection_formats,
|
|
294
|
-
_host=_host,
|
|
295
|
-
_request_auth=_request_auth
|
|
296
|
-
)
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
@validate_call
|
|
302
|
-
def api_v2_tag_tag_id_transactions_get(
|
|
303
|
-
self,
|
|
304
|
-
tag_id: Annotated[StrictStr, Field(description="Tag id")],
|
|
305
|
-
_request_timeout: Union[
|
|
306
|
-
None,
|
|
307
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
308
|
-
Tuple[
|
|
309
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
310
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
101
|
+
all_params.extend(
|
|
102
|
+
[
|
|
103
|
+
'async_req',
|
|
104
|
+
'_return_http_data_only',
|
|
105
|
+
'_preload_content',
|
|
106
|
+
'_request_timeout',
|
|
107
|
+
'_request_auth'
|
|
311
108
|
]
|
|
312
|
-
] = None,
|
|
313
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
314
|
-
_content_type: Optional[StrictStr] = None,
|
|
315
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
316
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
317
|
-
) -> ListTransactionsByTagResponse:
|
|
318
|
-
"""Get transactions by tag
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
:param tag_id: Tag id (required)
|
|
322
|
-
:type tag_id: str
|
|
323
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
324
|
-
number provided, it will be total request
|
|
325
|
-
timeout. It can also be a pair (tuple) of
|
|
326
|
-
(connection, read) timeouts.
|
|
327
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
328
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
329
|
-
request; this effectively ignores the
|
|
330
|
-
authentication in the spec for a single request.
|
|
331
|
-
:type _request_auth: dict, optional
|
|
332
|
-
:param _content_type: force content-type for the request.
|
|
333
|
-
:type _content_type: str, Optional
|
|
334
|
-
:param _headers: set to override the headers for a single
|
|
335
|
-
request; this effectively ignores the headers
|
|
336
|
-
in the spec for a single request.
|
|
337
|
-
:type _headers: dict, optional
|
|
338
|
-
:param _host_index: set to override the host_index for a single
|
|
339
|
-
request; this effectively ignores the host_index
|
|
340
|
-
in the spec for a single request.
|
|
341
|
-
:type _host_index: int, optional
|
|
342
|
-
:return: Returns the result object.
|
|
343
|
-
""" # noqa: E501
|
|
344
|
-
|
|
345
|
-
_param = self._api_v2_tag_tag_id_transactions_get_serialize(
|
|
346
|
-
tag_id=tag_id,
|
|
347
|
-
_request_auth=_request_auth,
|
|
348
|
-
_content_type=_content_type,
|
|
349
|
-
_headers=_headers,
|
|
350
|
-
_host_index=_host_index
|
|
351
109
|
)
|
|
352
110
|
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
111
|
+
for key, val in six.iteritems(local_var_params['kwargs']):
|
|
112
|
+
if key not in all_params:
|
|
113
|
+
raise ApiTypeError(
|
|
114
|
+
"Got an unexpected keyword argument '%s'"
|
|
115
|
+
" to method api_v2_tag_tag_id_delete" % key
|
|
116
|
+
)
|
|
117
|
+
local_var_params[key] = val
|
|
118
|
+
del local_var_params['kwargs']
|
|
119
|
+
# verify the required parameter 'tag_id' is set
|
|
120
|
+
if self.api_client.client_side_validation and ('tag_id' not in local_var_params or # noqa: E501
|
|
121
|
+
local_var_params['tag_id'] is None): # noqa: E501
|
|
122
|
+
raise ApiValueError("Missing the required parameter `tag_id` when calling `api_v2_tag_tag_id_delete`") # noqa: E501
|
|
123
|
+
|
|
124
|
+
collection_formats = {}
|
|
125
|
+
|
|
126
|
+
path_params = {}
|
|
127
|
+
if 'tag_id' in local_var_params:
|
|
128
|
+
path_params['tagId'] = local_var_params['tag_id'] # noqa: E501
|
|
129
|
+
|
|
130
|
+
query_params = []
|
|
131
|
+
|
|
132
|
+
header_params = {}
|
|
133
|
+
|
|
134
|
+
form_params = []
|
|
135
|
+
local_var_files = {}
|
|
136
|
+
|
|
137
|
+
body_params = None
|
|
138
|
+
# HTTP header `Accept`
|
|
139
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
140
|
+
['application/json']) # noqa: E501
|
|
141
|
+
|
|
142
|
+
# Authentication setting
|
|
143
|
+
auth_settings = [] # noqa: E501
|
|
144
|
+
|
|
145
|
+
response_types_map = {
|
|
146
|
+
204: "object",
|
|
147
|
+
400: None,
|
|
148
|
+
403: None,
|
|
357
149
|
}
|
|
358
|
-
response_data = self.api_client.call_api(
|
|
359
|
-
*_param,
|
|
360
|
-
_request_timeout=_request_timeout
|
|
361
|
-
)
|
|
362
|
-
response_data.read()
|
|
363
|
-
return self.api_client.response_deserialize(
|
|
364
|
-
response_data=response_data,
|
|
365
|
-
response_types_map=_response_types_map,
|
|
366
|
-
).data
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
@validate_call
|
|
370
|
-
def api_v2_tag_tag_id_transactions_get_with_http_info(
|
|
371
|
-
self,
|
|
372
|
-
tag_id: Annotated[StrictStr, Field(description="Tag id")],
|
|
373
|
-
_request_timeout: Union[
|
|
374
|
-
None,
|
|
375
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
376
|
-
Tuple[
|
|
377
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
378
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
379
|
-
]
|
|
380
|
-
] = None,
|
|
381
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
382
|
-
_content_type: Optional[StrictStr] = None,
|
|
383
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
384
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
385
|
-
) -> ApiResponse[ListTransactionsByTagResponse]:
|
|
386
|
-
"""Get transactions by tag
|
|
387
150
|
|
|
151
|
+
return self.api_client.call_api(
|
|
152
|
+
'/api/v2/tag/{tagId}', 'DELETE',
|
|
153
|
+
path_params,
|
|
154
|
+
query_params,
|
|
155
|
+
header_params,
|
|
156
|
+
body=body_params,
|
|
157
|
+
post_params=form_params,
|
|
158
|
+
files=local_var_files,
|
|
159
|
+
response_types_map=response_types_map,
|
|
160
|
+
auth_settings=auth_settings,
|
|
161
|
+
async_req=local_var_params.get('async_req'),
|
|
162
|
+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
|
163
|
+
_preload_content=local_var_params.get('_preload_content', True),
|
|
164
|
+
_request_timeout=local_var_params.get('_request_timeout'),
|
|
165
|
+
collection_formats=collection_formats,
|
|
166
|
+
_request_auth=local_var_params.get('_request_auth'))
|
|
167
|
+
|
|
168
|
+
def api_v2_tag_tag_id_transactions_get(self, tag_id, **kwargs): # noqa: E501
|
|
169
|
+
"""Get transactions by tag # noqa: E501
|
|
170
|
+
|
|
171
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
172
|
+
asynchronous HTTP request, please pass async_req=True
|
|
173
|
+
|
|
174
|
+
>>> thread = api.api_v2_tag_tag_id_transactions_get(tag_id, async_req=True)
|
|
175
|
+
>>> result = thread.get()
|
|
388
176
|
|
|
389
177
|
:param tag_id: Tag id (required)
|
|
390
178
|
:type tag_id: str
|
|
179
|
+
:param async_req: Whether to execute the request asynchronously.
|
|
180
|
+
:type async_req: bool, optional
|
|
181
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
182
|
+
be returned without reading/decoding response
|
|
183
|
+
data. Default is True.
|
|
184
|
+
:type _preload_content: bool, optional
|
|
391
185
|
:param _request_timeout: timeout setting for this request. If one
|
|
392
186
|
number provided, it will be total request
|
|
393
187
|
timeout. It can also be a pair (tuple) of
|
|
394
188
|
(connection, read) timeouts.
|
|
395
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
396
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
397
|
-
request; this effectively ignores the
|
|
398
|
-
authentication in the spec for a single request.
|
|
399
|
-
:type _request_auth: dict, optional
|
|
400
|
-
:param _content_type: force content-type for the request.
|
|
401
|
-
:type _content_type: str, Optional
|
|
402
|
-
:param _headers: set to override the headers for a single
|
|
403
|
-
request; this effectively ignores the headers
|
|
404
|
-
in the spec for a single request.
|
|
405
|
-
:type _headers: dict, optional
|
|
406
|
-
:param _host_index: set to override the host_index for a single
|
|
407
|
-
request; this effectively ignores the host_index
|
|
408
|
-
in the spec for a single request.
|
|
409
|
-
:type _host_index: int, optional
|
|
410
189
|
:return: Returns the result object.
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
_headers=_headers,
|
|
418
|
-
_host_index=_host_index
|
|
419
|
-
)
|
|
190
|
+
If the method is called asynchronously,
|
|
191
|
+
returns the request thread.
|
|
192
|
+
:rtype: ListTransactionsByTagResponse
|
|
193
|
+
"""
|
|
194
|
+
kwargs['_return_http_data_only'] = True
|
|
195
|
+
return self.api_v2_tag_tag_id_transactions_get_with_http_info(tag_id, **kwargs) # noqa: E501
|
|
420
196
|
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
'400': None,
|
|
424
|
-
'403': None,
|
|
425
|
-
}
|
|
426
|
-
response_data = self.api_client.call_api(
|
|
427
|
-
*_param,
|
|
428
|
-
_request_timeout=_request_timeout
|
|
429
|
-
)
|
|
430
|
-
response_data.read()
|
|
431
|
-
return self.api_client.response_deserialize(
|
|
432
|
-
response_data=response_data,
|
|
433
|
-
response_types_map=_response_types_map,
|
|
434
|
-
)
|
|
197
|
+
def api_v2_tag_tag_id_transactions_get_with_http_info(self, tag_id, **kwargs): # noqa: E501
|
|
198
|
+
"""Get transactions by tag # noqa: E501
|
|
435
199
|
|
|
200
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
201
|
+
asynchronous HTTP request, please pass async_req=True
|
|
436
202
|
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
self,
|
|
440
|
-
tag_id: Annotated[StrictStr, Field(description="Tag id")],
|
|
441
|
-
_request_timeout: Union[
|
|
442
|
-
None,
|
|
443
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
444
|
-
Tuple[
|
|
445
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
446
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
447
|
-
]
|
|
448
|
-
] = None,
|
|
449
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
450
|
-
_content_type: Optional[StrictStr] = None,
|
|
451
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
452
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
453
|
-
) -> RESTResponseType:
|
|
454
|
-
"""Get transactions by tag
|
|
455
|
-
|
|
203
|
+
>>> thread = api.api_v2_tag_tag_id_transactions_get_with_http_info(tag_id, async_req=True)
|
|
204
|
+
>>> result = thread.get()
|
|
456
205
|
|
|
457
206
|
:param tag_id: Tag id (required)
|
|
458
207
|
:type tag_id: str
|
|
208
|
+
:param async_req: Whether to execute the request asynchronously.
|
|
209
|
+
:type async_req: bool, optional
|
|
210
|
+
:param _return_http_data_only: response data without head status code
|
|
211
|
+
and headers
|
|
212
|
+
:type _return_http_data_only: bool, optional
|
|
213
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
214
|
+
be returned without reading/decoding response
|
|
215
|
+
data. Default is True.
|
|
216
|
+
:type _preload_content: bool, optional
|
|
459
217
|
:param _request_timeout: timeout setting for this request. If one
|
|
460
218
|
number provided, it will be total request
|
|
461
219
|
timeout. It can also be a pair (tuple) of
|
|
462
220
|
(connection, read) timeouts.
|
|
463
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
464
221
|
:param _request_auth: set to override the auth_settings for an a single
|
|
465
|
-
request; this effectively ignores the
|
|
466
|
-
|
|
222
|
+
request; this effectively ignores the authentication
|
|
223
|
+
in the spec for a single request.
|
|
467
224
|
:type _request_auth: dict, optional
|
|
468
|
-
:param _content_type: force content-type for the request.
|
|
469
|
-
:type _content_type: str, Optional
|
|
470
|
-
:param _headers: set to override the headers for a single
|
|
471
|
-
request; this effectively ignores the headers
|
|
472
|
-
in the spec for a single request.
|
|
473
|
-
:type _headers: dict, optional
|
|
474
|
-
:param _host_index: set to override the host_index for a single
|
|
475
|
-
request; this effectively ignores the host_index
|
|
476
|
-
in the spec for a single request.
|
|
477
|
-
:type _host_index: int, optional
|
|
478
225
|
:return: Returns the result object.
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
_request_auth=_request_auth,
|
|
484
|
-
_content_type=_content_type,
|
|
485
|
-
_headers=_headers,
|
|
486
|
-
_host_index=_host_index
|
|
487
|
-
)
|
|
488
|
-
|
|
489
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
490
|
-
'200': "ListTransactionsByTagResponse",
|
|
491
|
-
'400': None,
|
|
492
|
-
'403': None,
|
|
493
|
-
}
|
|
494
|
-
response_data = self.api_client.call_api(
|
|
495
|
-
*_param,
|
|
496
|
-
_request_timeout=_request_timeout
|
|
497
|
-
)
|
|
498
|
-
return response_data.response
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
def _api_v2_tag_tag_id_transactions_get_serialize(
|
|
502
|
-
self,
|
|
503
|
-
tag_id,
|
|
504
|
-
_request_auth,
|
|
505
|
-
_content_type,
|
|
506
|
-
_headers,
|
|
507
|
-
_host_index,
|
|
508
|
-
) -> RequestSerialized:
|
|
226
|
+
If the method is called asynchronously,
|
|
227
|
+
returns the request thread.
|
|
228
|
+
:rtype: tuple(ListTransactionsByTagResponse, status_code(int), headers(HTTPHeaderDict))
|
|
229
|
+
"""
|
|
509
230
|
|
|
510
|
-
|
|
231
|
+
local_var_params = locals()
|
|
511
232
|
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
_path_params: Dict[str, str] = {}
|
|
516
|
-
_query_params: List[Tuple[str, str]] = []
|
|
517
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
518
|
-
_form_params: List[Tuple[str, str]] = []
|
|
519
|
-
_files: Dict[
|
|
520
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
521
|
-
] = {}
|
|
522
|
-
_body_params: Optional[bytes] = None
|
|
523
|
-
|
|
524
|
-
# process the path parameters
|
|
525
|
-
if tag_id is not None:
|
|
526
|
-
_path_params['tagId'] = tag_id
|
|
527
|
-
# process the query parameters
|
|
528
|
-
# process the header parameters
|
|
529
|
-
# process the form parameters
|
|
530
|
-
# process the body parameter
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
# set the HTTP header `Accept`
|
|
534
|
-
if 'Accept' not in _header_params:
|
|
535
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
536
|
-
[
|
|
537
|
-
'application/json'
|
|
538
|
-
]
|
|
539
|
-
)
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
# authentication setting
|
|
543
|
-
_auth_settings: List[str] = [
|
|
233
|
+
all_params = [
|
|
234
|
+
'tag_id'
|
|
544
235
|
]
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
body=_body_params,
|
|
553
|
-
post_params=_form_params,
|
|
554
|
-
files=_files,
|
|
555
|
-
auth_settings=_auth_settings,
|
|
556
|
-
collection_formats=_collection_formats,
|
|
557
|
-
_host=_host,
|
|
558
|
-
_request_auth=_request_auth
|
|
559
|
-
)
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
@validate_call
|
|
565
|
-
def api_v2_transaction_transaction_id_file_get(
|
|
566
|
-
self,
|
|
567
|
-
transaction_id: Annotated[StrictStr, Field(description="Transaction id")],
|
|
568
|
-
name: Annotated[StrictStr, Field(description="File name")],
|
|
569
|
-
_request_timeout: Union[
|
|
570
|
-
None,
|
|
571
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
572
|
-
Tuple[
|
|
573
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
574
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
236
|
+
all_params.extend(
|
|
237
|
+
[
|
|
238
|
+
'async_req',
|
|
239
|
+
'_return_http_data_only',
|
|
240
|
+
'_preload_content',
|
|
241
|
+
'_request_timeout',
|
|
242
|
+
'_request_auth'
|
|
575
243
|
]
|
|
576
|
-
] = None,
|
|
577
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
578
|
-
_content_type: Optional[StrictStr] = None,
|
|
579
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
580
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
581
|
-
) -> bytearray:
|
|
582
|
-
"""Get Reprocess transaction file
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
:param transaction_id: Transaction id (required)
|
|
586
|
-
:type transaction_id: str
|
|
587
|
-
:param name: File name (required)
|
|
588
|
-
:type name: str
|
|
589
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
590
|
-
number provided, it will be total request
|
|
591
|
-
timeout. It can also be a pair (tuple) of
|
|
592
|
-
(connection, read) timeouts.
|
|
593
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
594
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
595
|
-
request; this effectively ignores the
|
|
596
|
-
authentication in the spec for a single request.
|
|
597
|
-
:type _request_auth: dict, optional
|
|
598
|
-
:param _content_type: force content-type for the request.
|
|
599
|
-
:type _content_type: str, Optional
|
|
600
|
-
:param _headers: set to override the headers for a single
|
|
601
|
-
request; this effectively ignores the headers
|
|
602
|
-
in the spec for a single request.
|
|
603
|
-
:type _headers: dict, optional
|
|
604
|
-
:param _host_index: set to override the host_index for a single
|
|
605
|
-
request; this effectively ignores the host_index
|
|
606
|
-
in the spec for a single request.
|
|
607
|
-
:type _host_index: int, optional
|
|
608
|
-
:return: Returns the result object.
|
|
609
|
-
""" # noqa: E501
|
|
610
|
-
|
|
611
|
-
_param = self._api_v2_transaction_transaction_id_file_get_serialize(
|
|
612
|
-
transaction_id=transaction_id,
|
|
613
|
-
name=name,
|
|
614
|
-
_request_auth=_request_auth,
|
|
615
|
-
_content_type=_content_type,
|
|
616
|
-
_headers=_headers,
|
|
617
|
-
_host_index=_host_index
|
|
618
244
|
)
|
|
619
245
|
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
246
|
+
for key, val in six.iteritems(local_var_params['kwargs']):
|
|
247
|
+
if key not in all_params:
|
|
248
|
+
raise ApiTypeError(
|
|
249
|
+
"Got an unexpected keyword argument '%s'"
|
|
250
|
+
" to method api_v2_tag_tag_id_transactions_get" % key
|
|
251
|
+
)
|
|
252
|
+
local_var_params[key] = val
|
|
253
|
+
del local_var_params['kwargs']
|
|
254
|
+
# verify the required parameter 'tag_id' is set
|
|
255
|
+
if self.api_client.client_side_validation and ('tag_id' not in local_var_params or # noqa: E501
|
|
256
|
+
local_var_params['tag_id'] is None): # noqa: E501
|
|
257
|
+
raise ApiValueError("Missing the required parameter `tag_id` when calling `api_v2_tag_tag_id_transactions_get`") # noqa: E501
|
|
258
|
+
|
|
259
|
+
collection_formats = {}
|
|
260
|
+
|
|
261
|
+
path_params = {}
|
|
262
|
+
if 'tag_id' in local_var_params:
|
|
263
|
+
path_params['tagId'] = local_var_params['tag_id'] # noqa: E501
|
|
264
|
+
|
|
265
|
+
query_params = []
|
|
266
|
+
|
|
267
|
+
header_params = {}
|
|
268
|
+
|
|
269
|
+
form_params = []
|
|
270
|
+
local_var_files = {}
|
|
271
|
+
|
|
272
|
+
body_params = None
|
|
273
|
+
# HTTP header `Accept`
|
|
274
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
275
|
+
['application/json']) # noqa: E501
|
|
276
|
+
|
|
277
|
+
# Authentication setting
|
|
278
|
+
auth_settings = [] # noqa: E501
|
|
279
|
+
|
|
280
|
+
response_types_map = {
|
|
281
|
+
200: "ListTransactionsByTagResponse",
|
|
282
|
+
400: None,
|
|
283
|
+
403: None,
|
|
623
284
|
}
|
|
624
|
-
response_data = self.api_client.call_api(
|
|
625
|
-
*_param,
|
|
626
|
-
_request_timeout=_request_timeout
|
|
627
|
-
)
|
|
628
|
-
response_data.read()
|
|
629
|
-
return self.api_client.response_deserialize(
|
|
630
|
-
response_data=response_data,
|
|
631
|
-
response_types_map=_response_types_map,
|
|
632
|
-
).data
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
@validate_call
|
|
636
|
-
def api_v2_transaction_transaction_id_file_get_with_http_info(
|
|
637
|
-
self,
|
|
638
|
-
transaction_id: Annotated[StrictStr, Field(description="Transaction id")],
|
|
639
|
-
name: Annotated[StrictStr, Field(description="File name")],
|
|
640
|
-
_request_timeout: Union[
|
|
641
|
-
None,
|
|
642
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
643
|
-
Tuple[
|
|
644
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
645
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
646
|
-
]
|
|
647
|
-
] = None,
|
|
648
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
649
|
-
_content_type: Optional[StrictStr] = None,
|
|
650
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
651
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
652
|
-
) -> ApiResponse[bytearray]:
|
|
653
|
-
"""Get Reprocess transaction file
|
|
654
285
|
|
|
286
|
+
return self.api_client.call_api(
|
|
287
|
+
'/api/v2/tag/{tagId}/transactions', 'GET',
|
|
288
|
+
path_params,
|
|
289
|
+
query_params,
|
|
290
|
+
header_params,
|
|
291
|
+
body=body_params,
|
|
292
|
+
post_params=form_params,
|
|
293
|
+
files=local_var_files,
|
|
294
|
+
response_types_map=response_types_map,
|
|
295
|
+
auth_settings=auth_settings,
|
|
296
|
+
async_req=local_var_params.get('async_req'),
|
|
297
|
+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
|
298
|
+
_preload_content=local_var_params.get('_preload_content', True),
|
|
299
|
+
_request_timeout=local_var_params.get('_request_timeout'),
|
|
300
|
+
collection_formats=collection_formats,
|
|
301
|
+
_request_auth=local_var_params.get('_request_auth'))
|
|
302
|
+
|
|
303
|
+
def api_v2_transaction_transaction_id_file_get(self, transaction_id, name, **kwargs): # noqa: E501
|
|
304
|
+
"""Get Reprocess transaction file # noqa: E501
|
|
305
|
+
|
|
306
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
307
|
+
asynchronous HTTP request, please pass async_req=True
|
|
308
|
+
|
|
309
|
+
>>> thread = api.api_v2_transaction_transaction_id_file_get(transaction_id, name, async_req=True)
|
|
310
|
+
>>> result = thread.get()
|
|
655
311
|
|
|
656
312
|
:param transaction_id: Transaction id (required)
|
|
657
313
|
:type transaction_id: str
|
|
658
314
|
:param name: File name (required)
|
|
659
315
|
:type name: str
|
|
316
|
+
:param async_req: Whether to execute the request asynchronously.
|
|
317
|
+
:type async_req: bool, optional
|
|
318
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
319
|
+
be returned without reading/decoding response
|
|
320
|
+
data. Default is True.
|
|
321
|
+
:type _preload_content: bool, optional
|
|
660
322
|
:param _request_timeout: timeout setting for this request. If one
|
|
661
323
|
number provided, it will be total request
|
|
662
324
|
timeout. It can also be a pair (tuple) of
|
|
663
325
|
(connection, read) timeouts.
|
|
664
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
665
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
666
|
-
request; this effectively ignores the
|
|
667
|
-
authentication in the spec for a single request.
|
|
668
|
-
:type _request_auth: dict, optional
|
|
669
|
-
:param _content_type: force content-type for the request.
|
|
670
|
-
:type _content_type: str, Optional
|
|
671
|
-
:param _headers: set to override the headers for a single
|
|
672
|
-
request; this effectively ignores the headers
|
|
673
|
-
in the spec for a single request.
|
|
674
|
-
:type _headers: dict, optional
|
|
675
|
-
:param _host_index: set to override the host_index for a single
|
|
676
|
-
request; this effectively ignores the host_index
|
|
677
|
-
in the spec for a single request.
|
|
678
|
-
:type _host_index: int, optional
|
|
679
326
|
:return: Returns the result object.
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
_content_type=_content_type,
|
|
687
|
-
_headers=_headers,
|
|
688
|
-
_host_index=_host_index
|
|
689
|
-
)
|
|
690
|
-
|
|
691
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
692
|
-
'200': "bytearray",
|
|
693
|
-
'404': None,
|
|
694
|
-
}
|
|
695
|
-
response_data = self.api_client.call_api(
|
|
696
|
-
*_param,
|
|
697
|
-
_request_timeout=_request_timeout
|
|
698
|
-
)
|
|
699
|
-
response_data.read()
|
|
700
|
-
return self.api_client.response_deserialize(
|
|
701
|
-
response_data=response_data,
|
|
702
|
-
response_types_map=_response_types_map,
|
|
703
|
-
)
|
|
327
|
+
If the method is called asynchronously,
|
|
328
|
+
returns the request thread.
|
|
329
|
+
:rtype: file
|
|
330
|
+
"""
|
|
331
|
+
kwargs['_return_http_data_only'] = True
|
|
332
|
+
return self.api_v2_transaction_transaction_id_file_get_with_http_info(transaction_id, name, **kwargs) # noqa: E501
|
|
704
333
|
|
|
334
|
+
def api_v2_transaction_transaction_id_file_get_with_http_info(self, transaction_id, name, **kwargs): # noqa: E501
|
|
335
|
+
"""Get Reprocess transaction file # noqa: E501
|
|
705
336
|
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
self,
|
|
709
|
-
transaction_id: Annotated[StrictStr, Field(description="Transaction id")],
|
|
710
|
-
name: Annotated[StrictStr, Field(description="File name")],
|
|
711
|
-
_request_timeout: Union[
|
|
712
|
-
None,
|
|
713
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
714
|
-
Tuple[
|
|
715
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
716
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
717
|
-
]
|
|
718
|
-
] = None,
|
|
719
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
720
|
-
_content_type: Optional[StrictStr] = None,
|
|
721
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
722
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
723
|
-
) -> RESTResponseType:
|
|
724
|
-
"""Get Reprocess transaction file
|
|
337
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
338
|
+
asynchronous HTTP request, please pass async_req=True
|
|
725
339
|
|
|
340
|
+
>>> thread = api.api_v2_transaction_transaction_id_file_get_with_http_info(transaction_id, name, async_req=True)
|
|
341
|
+
>>> result = thread.get()
|
|
726
342
|
|
|
727
343
|
:param transaction_id: Transaction id (required)
|
|
728
344
|
:type transaction_id: str
|
|
729
345
|
:param name: File name (required)
|
|
730
346
|
:type name: str
|
|
347
|
+
:param async_req: Whether to execute the request asynchronously.
|
|
348
|
+
:type async_req: bool, optional
|
|
349
|
+
:param _return_http_data_only: response data without head status code
|
|
350
|
+
and headers
|
|
351
|
+
:type _return_http_data_only: bool, optional
|
|
352
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
353
|
+
be returned without reading/decoding response
|
|
354
|
+
data. Default is True.
|
|
355
|
+
:type _preload_content: bool, optional
|
|
731
356
|
:param _request_timeout: timeout setting for this request. If one
|
|
732
357
|
number provided, it will be total request
|
|
733
358
|
timeout. It can also be a pair (tuple) of
|
|
734
359
|
(connection, read) timeouts.
|
|
735
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
736
360
|
:param _request_auth: set to override the auth_settings for an a single
|
|
737
|
-
request; this effectively ignores the
|
|
738
|
-
|
|
361
|
+
request; this effectively ignores the authentication
|
|
362
|
+
in the spec for a single request.
|
|
739
363
|
:type _request_auth: dict, optional
|
|
740
|
-
:param _content_type: force content-type for the request.
|
|
741
|
-
:type _content_type: str, Optional
|
|
742
|
-
:param _headers: set to override the headers for a single
|
|
743
|
-
request; this effectively ignores the headers
|
|
744
|
-
in the spec for a single request.
|
|
745
|
-
:type _headers: dict, optional
|
|
746
|
-
:param _host_index: set to override the host_index for a single
|
|
747
|
-
request; this effectively ignores the host_index
|
|
748
|
-
in the spec for a single request.
|
|
749
|
-
:type _host_index: int, optional
|
|
750
364
|
:return: Returns the result object.
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
name=name,
|
|
756
|
-
_request_auth=_request_auth,
|
|
757
|
-
_content_type=_content_type,
|
|
758
|
-
_headers=_headers,
|
|
759
|
-
_host_index=_host_index
|
|
760
|
-
)
|
|
761
|
-
|
|
762
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
763
|
-
'200': "bytearray",
|
|
764
|
-
'404': None,
|
|
765
|
-
}
|
|
766
|
-
response_data = self.api_client.call_api(
|
|
767
|
-
*_param,
|
|
768
|
-
_request_timeout=_request_timeout
|
|
769
|
-
)
|
|
770
|
-
return response_data.response
|
|
365
|
+
If the method is called asynchronously,
|
|
366
|
+
returns the request thread.
|
|
367
|
+
:rtype: tuple(file, status_code(int), headers(HTTPHeaderDict))
|
|
368
|
+
"""
|
|
771
369
|
|
|
370
|
+
local_var_params = locals()
|
|
772
371
|
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
name,
|
|
777
|
-
_request_auth,
|
|
778
|
-
_content_type,
|
|
779
|
-
_headers,
|
|
780
|
-
_host_index,
|
|
781
|
-
) -> RequestSerialized:
|
|
782
|
-
|
|
783
|
-
_host = None
|
|
784
|
-
|
|
785
|
-
_collection_formats: Dict[str, str] = {
|
|
786
|
-
}
|
|
787
|
-
|
|
788
|
-
_path_params: Dict[str, str] = {}
|
|
789
|
-
_query_params: List[Tuple[str, str]] = []
|
|
790
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
791
|
-
_form_params: List[Tuple[str, str]] = []
|
|
792
|
-
_files: Dict[
|
|
793
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
794
|
-
] = {}
|
|
795
|
-
_body_params: Optional[bytes] = None
|
|
796
|
-
|
|
797
|
-
# process the path parameters
|
|
798
|
-
if transaction_id is not None:
|
|
799
|
-
_path_params['transactionId'] = transaction_id
|
|
800
|
-
# process the query parameters
|
|
801
|
-
if name is not None:
|
|
802
|
-
|
|
803
|
-
_query_params.append(('name', name))
|
|
804
|
-
|
|
805
|
-
# process the header parameters
|
|
806
|
-
# process the form parameters
|
|
807
|
-
# process the body parameter
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
# set the HTTP header `Accept`
|
|
811
|
-
if 'Accept' not in _header_params:
|
|
812
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
813
|
-
[
|
|
814
|
-
'application/octet-stream'
|
|
815
|
-
]
|
|
816
|
-
)
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
# authentication setting
|
|
820
|
-
_auth_settings: List[str] = [
|
|
372
|
+
all_params = [
|
|
373
|
+
'transaction_id',
|
|
374
|
+
'name'
|
|
821
375
|
]
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
body=_body_params,
|
|
830
|
-
post_params=_form_params,
|
|
831
|
-
files=_files,
|
|
832
|
-
auth_settings=_auth_settings,
|
|
833
|
-
collection_formats=_collection_formats,
|
|
834
|
-
_host=_host,
|
|
835
|
-
_request_auth=_request_auth
|
|
836
|
-
)
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
@validate_call
|
|
842
|
-
def api_v2_transaction_transaction_id_get(
|
|
843
|
-
self,
|
|
844
|
-
transaction_id: Annotated[StrictStr, Field(description="Transaction id")],
|
|
845
|
-
_request_timeout: Union[
|
|
846
|
-
None,
|
|
847
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
848
|
-
Tuple[
|
|
849
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
850
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
376
|
+
all_params.extend(
|
|
377
|
+
[
|
|
378
|
+
'async_req',
|
|
379
|
+
'_return_http_data_only',
|
|
380
|
+
'_preload_content',
|
|
381
|
+
'_request_timeout',
|
|
382
|
+
'_request_auth'
|
|
851
383
|
]
|
|
852
|
-
] = None,
|
|
853
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
854
|
-
_content_type: Optional[StrictStr] = None,
|
|
855
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
856
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
857
|
-
) -> TransactionProcessGetResponse:
|
|
858
|
-
"""Get Reprocess transaction data
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
:param transaction_id: Transaction id (required)
|
|
862
|
-
:type transaction_id: str
|
|
863
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
864
|
-
number provided, it will be total request
|
|
865
|
-
timeout. It can also be a pair (tuple) of
|
|
866
|
-
(connection, read) timeouts.
|
|
867
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
868
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
869
|
-
request; this effectively ignores the
|
|
870
|
-
authentication in the spec for a single request.
|
|
871
|
-
:type _request_auth: dict, optional
|
|
872
|
-
:param _content_type: force content-type for the request.
|
|
873
|
-
:type _content_type: str, Optional
|
|
874
|
-
:param _headers: set to override the headers for a single
|
|
875
|
-
request; this effectively ignores the headers
|
|
876
|
-
in the spec for a single request.
|
|
877
|
-
:type _headers: dict, optional
|
|
878
|
-
:param _host_index: set to override the host_index for a single
|
|
879
|
-
request; this effectively ignores the host_index
|
|
880
|
-
in the spec for a single request.
|
|
881
|
-
:type _host_index: int, optional
|
|
882
|
-
:return: Returns the result object.
|
|
883
|
-
""" # noqa: E501
|
|
884
|
-
|
|
885
|
-
_param = self._api_v2_transaction_transaction_id_get_serialize(
|
|
886
|
-
transaction_id=transaction_id,
|
|
887
|
-
_request_auth=_request_auth,
|
|
888
|
-
_content_type=_content_type,
|
|
889
|
-
_headers=_headers,
|
|
890
|
-
_host_index=_host_index
|
|
891
384
|
)
|
|
892
385
|
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
386
|
+
for key, val in six.iteritems(local_var_params['kwargs']):
|
|
387
|
+
if key not in all_params:
|
|
388
|
+
raise ApiTypeError(
|
|
389
|
+
"Got an unexpected keyword argument '%s'"
|
|
390
|
+
" to method api_v2_transaction_transaction_id_file_get" % key
|
|
391
|
+
)
|
|
392
|
+
local_var_params[key] = val
|
|
393
|
+
del local_var_params['kwargs']
|
|
394
|
+
# verify the required parameter 'transaction_id' is set
|
|
395
|
+
if self.api_client.client_side_validation and ('transaction_id' not in local_var_params or # noqa: E501
|
|
396
|
+
local_var_params['transaction_id'] is None): # noqa: E501
|
|
397
|
+
raise ApiValueError("Missing the required parameter `transaction_id` when calling `api_v2_transaction_transaction_id_file_get`") # noqa: E501
|
|
398
|
+
# verify the required parameter 'name' is set
|
|
399
|
+
if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501
|
|
400
|
+
local_var_params['name'] is None): # noqa: E501
|
|
401
|
+
raise ApiValueError("Missing the required parameter `name` when calling `api_v2_transaction_transaction_id_file_get`") # noqa: E501
|
|
402
|
+
|
|
403
|
+
collection_formats = {}
|
|
404
|
+
|
|
405
|
+
path_params = {}
|
|
406
|
+
if 'transaction_id' in local_var_params:
|
|
407
|
+
path_params['transactionId'] = local_var_params['transaction_id'] # noqa: E501
|
|
408
|
+
|
|
409
|
+
query_params = []
|
|
410
|
+
if 'name' in local_var_params and local_var_params['name'] is not None: # noqa: E501
|
|
411
|
+
query_params.append(('name', local_var_params['name'])) # noqa: E501
|
|
412
|
+
|
|
413
|
+
header_params = {}
|
|
414
|
+
|
|
415
|
+
form_params = []
|
|
416
|
+
local_var_files = {}
|
|
417
|
+
|
|
418
|
+
body_params = None
|
|
419
|
+
# HTTP header `Accept`
|
|
420
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
421
|
+
['application/octet-stream']) # noqa: E501
|
|
422
|
+
|
|
423
|
+
# Authentication setting
|
|
424
|
+
auth_settings = [] # noqa: E501
|
|
425
|
+
|
|
426
|
+
response_types_map = {
|
|
427
|
+
200: "file",
|
|
428
|
+
404: None,
|
|
897
429
|
}
|
|
898
|
-
response_data = self.api_client.call_api(
|
|
899
|
-
*_param,
|
|
900
|
-
_request_timeout=_request_timeout
|
|
901
|
-
)
|
|
902
|
-
response_data.read()
|
|
903
|
-
return self.api_client.response_deserialize(
|
|
904
|
-
response_data=response_data,
|
|
905
|
-
response_types_map=_response_types_map,
|
|
906
|
-
).data
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
@validate_call
|
|
910
|
-
def api_v2_transaction_transaction_id_get_with_http_info(
|
|
911
|
-
self,
|
|
912
|
-
transaction_id: Annotated[StrictStr, Field(description="Transaction id")],
|
|
913
|
-
_request_timeout: Union[
|
|
914
|
-
None,
|
|
915
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
916
|
-
Tuple[
|
|
917
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
918
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
919
|
-
]
|
|
920
|
-
] = None,
|
|
921
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
922
|
-
_content_type: Optional[StrictStr] = None,
|
|
923
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
924
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
925
|
-
) -> ApiResponse[TransactionProcessGetResponse]:
|
|
926
|
-
"""Get Reprocess transaction data
|
|
927
430
|
|
|
431
|
+
return self.api_client.call_api(
|
|
432
|
+
'/api/v2/transaction/{transactionId}/file', 'GET',
|
|
433
|
+
path_params,
|
|
434
|
+
query_params,
|
|
435
|
+
header_params,
|
|
436
|
+
body=body_params,
|
|
437
|
+
post_params=form_params,
|
|
438
|
+
files=local_var_files,
|
|
439
|
+
response_types_map=response_types_map,
|
|
440
|
+
auth_settings=auth_settings,
|
|
441
|
+
async_req=local_var_params.get('async_req'),
|
|
442
|
+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
|
443
|
+
_preload_content=local_var_params.get('_preload_content', True),
|
|
444
|
+
_request_timeout=local_var_params.get('_request_timeout'),
|
|
445
|
+
collection_formats=collection_formats,
|
|
446
|
+
_request_auth=local_var_params.get('_request_auth'))
|
|
447
|
+
|
|
448
|
+
def api_v2_transaction_transaction_id_get(self, transaction_id, **kwargs): # noqa: E501
|
|
449
|
+
"""Get Reprocess transaction data # noqa: E501
|
|
450
|
+
|
|
451
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
452
|
+
asynchronous HTTP request, please pass async_req=True
|
|
453
|
+
|
|
454
|
+
>>> thread = api.api_v2_transaction_transaction_id_get(transaction_id, async_req=True)
|
|
455
|
+
>>> result = thread.get()
|
|
928
456
|
|
|
929
457
|
:param transaction_id: Transaction id (required)
|
|
930
458
|
:type transaction_id: str
|
|
459
|
+
:param async_req: Whether to execute the request asynchronously.
|
|
460
|
+
:type async_req: bool, optional
|
|
461
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
462
|
+
be returned without reading/decoding response
|
|
463
|
+
data. Default is True.
|
|
464
|
+
:type _preload_content: bool, optional
|
|
931
465
|
:param _request_timeout: timeout setting for this request. If one
|
|
932
466
|
number provided, it will be total request
|
|
933
467
|
timeout. It can also be a pair (tuple) of
|
|
934
468
|
(connection, read) timeouts.
|
|
935
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
936
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
937
|
-
request; this effectively ignores the
|
|
938
|
-
authentication in the spec for a single request.
|
|
939
|
-
:type _request_auth: dict, optional
|
|
940
|
-
:param _content_type: force content-type for the request.
|
|
941
|
-
:type _content_type: str, Optional
|
|
942
|
-
:param _headers: set to override the headers for a single
|
|
943
|
-
request; this effectively ignores the headers
|
|
944
|
-
in the spec for a single request.
|
|
945
|
-
:type _headers: dict, optional
|
|
946
|
-
:param _host_index: set to override the host_index for a single
|
|
947
|
-
request; this effectively ignores the host_index
|
|
948
|
-
in the spec for a single request.
|
|
949
|
-
:type _host_index: int, optional
|
|
950
469
|
:return: Returns the result object.
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
_headers=_headers,
|
|
958
|
-
_host_index=_host_index
|
|
959
|
-
)
|
|
960
|
-
|
|
961
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
962
|
-
'200': "TransactionProcessGetResponse",
|
|
963
|
-
'400': None,
|
|
964
|
-
'403': None,
|
|
965
|
-
}
|
|
966
|
-
response_data = self.api_client.call_api(
|
|
967
|
-
*_param,
|
|
968
|
-
_request_timeout=_request_timeout
|
|
969
|
-
)
|
|
970
|
-
response_data.read()
|
|
971
|
-
return self.api_client.response_deserialize(
|
|
972
|
-
response_data=response_data,
|
|
973
|
-
response_types_map=_response_types_map,
|
|
974
|
-
)
|
|
470
|
+
If the method is called asynchronously,
|
|
471
|
+
returns the request thread.
|
|
472
|
+
:rtype: TransactionProcessGetResponse
|
|
473
|
+
"""
|
|
474
|
+
kwargs['_return_http_data_only'] = True
|
|
475
|
+
return self.api_v2_transaction_transaction_id_get_with_http_info(transaction_id, **kwargs) # noqa: E501
|
|
975
476
|
|
|
477
|
+
def api_v2_transaction_transaction_id_get_with_http_info(self, transaction_id, **kwargs): # noqa: E501
|
|
478
|
+
"""Get Reprocess transaction data # noqa: E501
|
|
976
479
|
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
self,
|
|
980
|
-
transaction_id: Annotated[StrictStr, Field(description="Transaction id")],
|
|
981
|
-
_request_timeout: Union[
|
|
982
|
-
None,
|
|
983
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
984
|
-
Tuple[
|
|
985
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
986
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
987
|
-
]
|
|
988
|
-
] = None,
|
|
989
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
990
|
-
_content_type: Optional[StrictStr] = None,
|
|
991
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
992
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
993
|
-
) -> RESTResponseType:
|
|
994
|
-
"""Get Reprocess transaction data
|
|
480
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
481
|
+
asynchronous HTTP request, please pass async_req=True
|
|
995
482
|
|
|
483
|
+
>>> thread = api.api_v2_transaction_transaction_id_get_with_http_info(transaction_id, async_req=True)
|
|
484
|
+
>>> result = thread.get()
|
|
996
485
|
|
|
997
486
|
:param transaction_id: Transaction id (required)
|
|
998
487
|
:type transaction_id: str
|
|
488
|
+
:param async_req: Whether to execute the request asynchronously.
|
|
489
|
+
:type async_req: bool, optional
|
|
490
|
+
:param _return_http_data_only: response data without head status code
|
|
491
|
+
and headers
|
|
492
|
+
:type _return_http_data_only: bool, optional
|
|
493
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
494
|
+
be returned without reading/decoding response
|
|
495
|
+
data. Default is True.
|
|
496
|
+
:type _preload_content: bool, optional
|
|
999
497
|
:param _request_timeout: timeout setting for this request. If one
|
|
1000
498
|
number provided, it will be total request
|
|
1001
499
|
timeout. It can also be a pair (tuple) of
|
|
1002
500
|
(connection, read) timeouts.
|
|
1003
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
1004
501
|
:param _request_auth: set to override the auth_settings for an a single
|
|
1005
|
-
request; this effectively ignores the
|
|
1006
|
-
|
|
502
|
+
request; this effectively ignores the authentication
|
|
503
|
+
in the spec for a single request.
|
|
1007
504
|
:type _request_auth: dict, optional
|
|
1008
|
-
:param _content_type: force content-type for the request.
|
|
1009
|
-
:type _content_type: str, Optional
|
|
1010
|
-
:param _headers: set to override the headers for a single
|
|
1011
|
-
request; this effectively ignores the headers
|
|
1012
|
-
in the spec for a single request.
|
|
1013
|
-
:type _headers: dict, optional
|
|
1014
|
-
:param _host_index: set to override the host_index for a single
|
|
1015
|
-
request; this effectively ignores the host_index
|
|
1016
|
-
in the spec for a single request.
|
|
1017
|
-
:type _host_index: int, optional
|
|
1018
505
|
:return: Returns the result object.
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
_request_auth=_request_auth,
|
|
1024
|
-
_content_type=_content_type,
|
|
1025
|
-
_headers=_headers,
|
|
1026
|
-
_host_index=_host_index
|
|
1027
|
-
)
|
|
1028
|
-
|
|
1029
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
1030
|
-
'200': "TransactionProcessGetResponse",
|
|
1031
|
-
'400': None,
|
|
1032
|
-
'403': None,
|
|
1033
|
-
}
|
|
1034
|
-
response_data = self.api_client.call_api(
|
|
1035
|
-
*_param,
|
|
1036
|
-
_request_timeout=_request_timeout
|
|
1037
|
-
)
|
|
1038
|
-
return response_data.response
|
|
506
|
+
If the method is called asynchronously,
|
|
507
|
+
returns the request thread.
|
|
508
|
+
:rtype: tuple(TransactionProcessGetResponse, status_code(int), headers(HTTPHeaderDict))
|
|
509
|
+
"""
|
|
1039
510
|
|
|
511
|
+
local_var_params = locals()
|
|
1040
512
|
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
transaction_id,
|
|
1044
|
-
_request_auth,
|
|
1045
|
-
_content_type,
|
|
1046
|
-
_headers,
|
|
1047
|
-
_host_index,
|
|
1048
|
-
) -> RequestSerialized:
|
|
1049
|
-
|
|
1050
|
-
_host = None
|
|
1051
|
-
|
|
1052
|
-
_collection_formats: Dict[str, str] = {
|
|
1053
|
-
}
|
|
1054
|
-
|
|
1055
|
-
_path_params: Dict[str, str] = {}
|
|
1056
|
-
_query_params: List[Tuple[str, str]] = []
|
|
1057
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1058
|
-
_form_params: List[Tuple[str, str]] = []
|
|
1059
|
-
_files: Dict[
|
|
1060
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1061
|
-
] = {}
|
|
1062
|
-
_body_params: Optional[bytes] = None
|
|
1063
|
-
|
|
1064
|
-
# process the path parameters
|
|
1065
|
-
if transaction_id is not None:
|
|
1066
|
-
_path_params['transactionId'] = transaction_id
|
|
1067
|
-
# process the query parameters
|
|
1068
|
-
# process the header parameters
|
|
1069
|
-
# process the form parameters
|
|
1070
|
-
# process the body parameter
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
# set the HTTP header `Accept`
|
|
1074
|
-
if 'Accept' not in _header_params:
|
|
1075
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1076
|
-
[
|
|
1077
|
-
'application/json'
|
|
1078
|
-
]
|
|
1079
|
-
)
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
# authentication setting
|
|
1083
|
-
_auth_settings: List[str] = [
|
|
513
|
+
all_params = [
|
|
514
|
+
'transaction_id'
|
|
1084
515
|
]
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
body=_body_params,
|
|
1093
|
-
post_params=_form_params,
|
|
1094
|
-
files=_files,
|
|
1095
|
-
auth_settings=_auth_settings,
|
|
1096
|
-
collection_formats=_collection_formats,
|
|
1097
|
-
_host=_host,
|
|
1098
|
-
_request_auth=_request_auth
|
|
1099
|
-
)
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
@validate_call
|
|
1105
|
-
def api_v2_transaction_transaction_id_process_post(
|
|
1106
|
-
self,
|
|
1107
|
-
transaction_id: Annotated[StrictStr, Field(description="Transaction id")],
|
|
1108
|
-
transaction_process_request: TransactionProcessRequest,
|
|
1109
|
-
_request_timeout: Union[
|
|
1110
|
-
None,
|
|
1111
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1112
|
-
Tuple[
|
|
1113
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1114
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
516
|
+
all_params.extend(
|
|
517
|
+
[
|
|
518
|
+
'async_req',
|
|
519
|
+
'_return_http_data_only',
|
|
520
|
+
'_preload_content',
|
|
521
|
+
'_request_timeout',
|
|
522
|
+
'_request_auth'
|
|
1115
523
|
]
|
|
1116
|
-
] = None,
|
|
1117
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1118
|
-
_content_type: Optional[StrictStr] = None,
|
|
1119
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1120
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1121
|
-
) -> TransactionProcessResult:
|
|
1122
|
-
"""Reprocess
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
:param transaction_id: Transaction id (required)
|
|
1126
|
-
:type transaction_id: str
|
|
1127
|
-
:param transaction_process_request: (required)
|
|
1128
|
-
:type transaction_process_request: TransactionProcessRequest
|
|
1129
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1130
|
-
number provided, it will be total request
|
|
1131
|
-
timeout. It can also be a pair (tuple) of
|
|
1132
|
-
(connection, read) timeouts.
|
|
1133
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
1134
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
1135
|
-
request; this effectively ignores the
|
|
1136
|
-
authentication in the spec for a single request.
|
|
1137
|
-
:type _request_auth: dict, optional
|
|
1138
|
-
:param _content_type: force content-type for the request.
|
|
1139
|
-
:type _content_type: str, Optional
|
|
1140
|
-
:param _headers: set to override the headers for a single
|
|
1141
|
-
request; this effectively ignores the headers
|
|
1142
|
-
in the spec for a single request.
|
|
1143
|
-
:type _headers: dict, optional
|
|
1144
|
-
:param _host_index: set to override the host_index for a single
|
|
1145
|
-
request; this effectively ignores the host_index
|
|
1146
|
-
in the spec for a single request.
|
|
1147
|
-
:type _host_index: int, optional
|
|
1148
|
-
:return: Returns the result object.
|
|
1149
|
-
""" # noqa: E501
|
|
1150
|
-
|
|
1151
|
-
_param = self._api_v2_transaction_transaction_id_process_post_serialize(
|
|
1152
|
-
transaction_id=transaction_id,
|
|
1153
|
-
transaction_process_request=transaction_process_request,
|
|
1154
|
-
_request_auth=_request_auth,
|
|
1155
|
-
_content_type=_content_type,
|
|
1156
|
-
_headers=_headers,
|
|
1157
|
-
_host_index=_host_index
|
|
1158
524
|
)
|
|
1159
525
|
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
526
|
+
for key, val in six.iteritems(local_var_params['kwargs']):
|
|
527
|
+
if key not in all_params:
|
|
528
|
+
raise ApiTypeError(
|
|
529
|
+
"Got an unexpected keyword argument '%s'"
|
|
530
|
+
" to method api_v2_transaction_transaction_id_get" % key
|
|
531
|
+
)
|
|
532
|
+
local_var_params[key] = val
|
|
533
|
+
del local_var_params['kwargs']
|
|
534
|
+
# verify the required parameter 'transaction_id' is set
|
|
535
|
+
if self.api_client.client_side_validation and ('transaction_id' not in local_var_params or # noqa: E501
|
|
536
|
+
local_var_params['transaction_id'] is None): # noqa: E501
|
|
537
|
+
raise ApiValueError("Missing the required parameter `transaction_id` when calling `api_v2_transaction_transaction_id_get`") # noqa: E501
|
|
538
|
+
|
|
539
|
+
collection_formats = {}
|
|
540
|
+
|
|
541
|
+
path_params = {}
|
|
542
|
+
if 'transaction_id' in local_var_params:
|
|
543
|
+
path_params['transactionId'] = local_var_params['transaction_id'] # noqa: E501
|
|
544
|
+
|
|
545
|
+
query_params = []
|
|
546
|
+
|
|
547
|
+
header_params = {}
|
|
548
|
+
|
|
549
|
+
form_params = []
|
|
550
|
+
local_var_files = {}
|
|
551
|
+
|
|
552
|
+
body_params = None
|
|
553
|
+
# HTTP header `Accept`
|
|
554
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
555
|
+
['application/json']) # noqa: E501
|
|
556
|
+
|
|
557
|
+
# Authentication setting
|
|
558
|
+
auth_settings = [] # noqa: E501
|
|
559
|
+
|
|
560
|
+
response_types_map = {
|
|
561
|
+
200: "TransactionProcessGetResponse",
|
|
562
|
+
400: None,
|
|
563
|
+
403: None,
|
|
1164
564
|
}
|
|
1165
|
-
response_data = self.api_client.call_api(
|
|
1166
|
-
*_param,
|
|
1167
|
-
_request_timeout=_request_timeout
|
|
1168
|
-
)
|
|
1169
|
-
response_data.read()
|
|
1170
|
-
return self.api_client.response_deserialize(
|
|
1171
|
-
response_data=response_data,
|
|
1172
|
-
response_types_map=_response_types_map,
|
|
1173
|
-
).data
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
@validate_call
|
|
1177
|
-
def api_v2_transaction_transaction_id_process_post_with_http_info(
|
|
1178
|
-
self,
|
|
1179
|
-
transaction_id: Annotated[StrictStr, Field(description="Transaction id")],
|
|
1180
|
-
transaction_process_request: TransactionProcessRequest,
|
|
1181
|
-
_request_timeout: Union[
|
|
1182
|
-
None,
|
|
1183
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1184
|
-
Tuple[
|
|
1185
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1186
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
1187
|
-
]
|
|
1188
|
-
] = None,
|
|
1189
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1190
|
-
_content_type: Optional[StrictStr] = None,
|
|
1191
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1192
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1193
|
-
) -> ApiResponse[TransactionProcessResult]:
|
|
1194
|
-
"""Reprocess
|
|
1195
565
|
|
|
566
|
+
return self.api_client.call_api(
|
|
567
|
+
'/api/v2/transaction/{transactionId}', 'GET',
|
|
568
|
+
path_params,
|
|
569
|
+
query_params,
|
|
570
|
+
header_params,
|
|
571
|
+
body=body_params,
|
|
572
|
+
post_params=form_params,
|
|
573
|
+
files=local_var_files,
|
|
574
|
+
response_types_map=response_types_map,
|
|
575
|
+
auth_settings=auth_settings,
|
|
576
|
+
async_req=local_var_params.get('async_req'),
|
|
577
|
+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
|
578
|
+
_preload_content=local_var_params.get('_preload_content', True),
|
|
579
|
+
_request_timeout=local_var_params.get('_request_timeout'),
|
|
580
|
+
collection_formats=collection_formats,
|
|
581
|
+
_request_auth=local_var_params.get('_request_auth'))
|
|
582
|
+
|
|
583
|
+
def api_v2_transaction_transaction_id_process_post(self, transaction_id, transaction_process_request, **kwargs): # noqa: E501
|
|
584
|
+
"""Reprocess # noqa: E501
|
|
585
|
+
|
|
586
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
587
|
+
asynchronous HTTP request, please pass async_req=True
|
|
588
|
+
|
|
589
|
+
>>> thread = api.api_v2_transaction_transaction_id_process_post(transaction_id, transaction_process_request, async_req=True)
|
|
590
|
+
>>> result = thread.get()
|
|
1196
591
|
|
|
1197
592
|
:param transaction_id: Transaction id (required)
|
|
1198
593
|
:type transaction_id: str
|
|
1199
594
|
:param transaction_process_request: (required)
|
|
1200
595
|
:type transaction_process_request: TransactionProcessRequest
|
|
596
|
+
:param async_req: Whether to execute the request asynchronously.
|
|
597
|
+
:type async_req: bool, optional
|
|
598
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
599
|
+
be returned without reading/decoding response
|
|
600
|
+
data. Default is True.
|
|
601
|
+
:type _preload_content: bool, optional
|
|
1201
602
|
:param _request_timeout: timeout setting for this request. If one
|
|
1202
603
|
number provided, it will be total request
|
|
1203
604
|
timeout. It can also be a pair (tuple) of
|
|
1204
605
|
(connection, read) timeouts.
|
|
1205
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
1206
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
1207
|
-
request; this effectively ignores the
|
|
1208
|
-
authentication in the spec for a single request.
|
|
1209
|
-
:type _request_auth: dict, optional
|
|
1210
|
-
:param _content_type: force content-type for the request.
|
|
1211
|
-
:type _content_type: str, Optional
|
|
1212
|
-
:param _headers: set to override the headers for a single
|
|
1213
|
-
request; this effectively ignores the headers
|
|
1214
|
-
in the spec for a single request.
|
|
1215
|
-
:type _headers: dict, optional
|
|
1216
|
-
:param _host_index: set to override the host_index for a single
|
|
1217
|
-
request; this effectively ignores the host_index
|
|
1218
|
-
in the spec for a single request.
|
|
1219
|
-
:type _host_index: int, optional
|
|
1220
606
|
:return: Returns the result object.
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
_content_type=_content_type,
|
|
1228
|
-
_headers=_headers,
|
|
1229
|
-
_host_index=_host_index
|
|
1230
|
-
)
|
|
1231
|
-
|
|
1232
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
1233
|
-
'200': "TransactionProcessResult",
|
|
1234
|
-
'400': None,
|
|
1235
|
-
'403': None,
|
|
1236
|
-
}
|
|
1237
|
-
response_data = self.api_client.call_api(
|
|
1238
|
-
*_param,
|
|
1239
|
-
_request_timeout=_request_timeout
|
|
1240
|
-
)
|
|
1241
|
-
response_data.read()
|
|
1242
|
-
return self.api_client.response_deserialize(
|
|
1243
|
-
response_data=response_data,
|
|
1244
|
-
response_types_map=_response_types_map,
|
|
1245
|
-
)
|
|
607
|
+
If the method is called asynchronously,
|
|
608
|
+
returns the request thread.
|
|
609
|
+
:rtype: InlineResponse200
|
|
610
|
+
"""
|
|
611
|
+
kwargs['_return_http_data_only'] = True
|
|
612
|
+
return self.api_v2_transaction_transaction_id_process_post_with_http_info(transaction_id, transaction_process_request, **kwargs) # noqa: E501
|
|
1246
613
|
|
|
614
|
+
def api_v2_transaction_transaction_id_process_post_with_http_info(self, transaction_id, transaction_process_request, **kwargs): # noqa: E501
|
|
615
|
+
"""Reprocess # noqa: E501
|
|
1247
616
|
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
self,
|
|
1251
|
-
transaction_id: Annotated[StrictStr, Field(description="Transaction id")],
|
|
1252
|
-
transaction_process_request: TransactionProcessRequest,
|
|
1253
|
-
_request_timeout: Union[
|
|
1254
|
-
None,
|
|
1255
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1256
|
-
Tuple[
|
|
1257
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1258
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
1259
|
-
]
|
|
1260
|
-
] = None,
|
|
1261
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1262
|
-
_content_type: Optional[StrictStr] = None,
|
|
1263
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1264
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1265
|
-
) -> RESTResponseType:
|
|
1266
|
-
"""Reprocess
|
|
617
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
618
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1267
619
|
|
|
620
|
+
>>> thread = api.api_v2_transaction_transaction_id_process_post_with_http_info(transaction_id, transaction_process_request, async_req=True)
|
|
621
|
+
>>> result = thread.get()
|
|
1268
622
|
|
|
1269
623
|
:param transaction_id: Transaction id (required)
|
|
1270
624
|
:type transaction_id: str
|
|
1271
625
|
:param transaction_process_request: (required)
|
|
1272
626
|
:type transaction_process_request: TransactionProcessRequest
|
|
627
|
+
:param async_req: Whether to execute the request asynchronously.
|
|
628
|
+
:type async_req: bool, optional
|
|
629
|
+
:param _return_http_data_only: response data without head status code
|
|
630
|
+
and headers
|
|
631
|
+
:type _return_http_data_only: bool, optional
|
|
632
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
633
|
+
be returned without reading/decoding response
|
|
634
|
+
data. Default is True.
|
|
635
|
+
:type _preload_content: bool, optional
|
|
1273
636
|
:param _request_timeout: timeout setting for this request. If one
|
|
1274
637
|
number provided, it will be total request
|
|
1275
638
|
timeout. It can also be a pair (tuple) of
|
|
1276
639
|
(connection, read) timeouts.
|
|
1277
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
1278
640
|
:param _request_auth: set to override the auth_settings for an a single
|
|
1279
|
-
request; this effectively ignores the
|
|
1280
|
-
|
|
641
|
+
request; this effectively ignores the authentication
|
|
642
|
+
in the spec for a single request.
|
|
1281
643
|
:type _request_auth: dict, optional
|
|
1282
|
-
:param _content_type: force content-type for the request.
|
|
1283
|
-
:type _content_type: str, Optional
|
|
1284
|
-
:param _headers: set to override the headers for a single
|
|
1285
|
-
request; this effectively ignores the headers
|
|
1286
|
-
in the spec for a single request.
|
|
1287
|
-
:type _headers: dict, optional
|
|
1288
|
-
:param _host_index: set to override the host_index for a single
|
|
1289
|
-
request; this effectively ignores the host_index
|
|
1290
|
-
in the spec for a single request.
|
|
1291
|
-
:type _host_index: int, optional
|
|
1292
644
|
:return: Returns the result object.
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
transaction_process_request=transaction_process_request,
|
|
1298
|
-
_request_auth=_request_auth,
|
|
1299
|
-
_content_type=_content_type,
|
|
1300
|
-
_headers=_headers,
|
|
1301
|
-
_host_index=_host_index
|
|
1302
|
-
)
|
|
645
|
+
If the method is called asynchronously,
|
|
646
|
+
returns the request thread.
|
|
647
|
+
:rtype: tuple(InlineResponse200, status_code(int), headers(HTTPHeaderDict))
|
|
648
|
+
"""
|
|
1303
649
|
|
|
1304
|
-
|
|
1305
|
-
'200': "TransactionProcessResult",
|
|
1306
|
-
'400': None,
|
|
1307
|
-
'403': None,
|
|
1308
|
-
}
|
|
1309
|
-
response_data = self.api_client.call_api(
|
|
1310
|
-
*_param,
|
|
1311
|
-
_request_timeout=_request_timeout
|
|
1312
|
-
)
|
|
1313
|
-
return response_data.response
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
def _api_v2_transaction_transaction_id_process_post_serialize(
|
|
1317
|
-
self,
|
|
1318
|
-
transaction_id,
|
|
1319
|
-
transaction_process_request,
|
|
1320
|
-
_request_auth,
|
|
1321
|
-
_content_type,
|
|
1322
|
-
_headers,
|
|
1323
|
-
_host_index,
|
|
1324
|
-
) -> RequestSerialized:
|
|
1325
|
-
|
|
1326
|
-
_host = None
|
|
1327
|
-
|
|
1328
|
-
_collection_formats: Dict[str, str] = {
|
|
1329
|
-
}
|
|
1330
|
-
|
|
1331
|
-
_path_params: Dict[str, str] = {}
|
|
1332
|
-
_query_params: List[Tuple[str, str]] = []
|
|
1333
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1334
|
-
_form_params: List[Tuple[str, str]] = []
|
|
1335
|
-
_files: Dict[
|
|
1336
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1337
|
-
] = {}
|
|
1338
|
-
_body_params: Optional[bytes] = None
|
|
1339
|
-
|
|
1340
|
-
# process the path parameters
|
|
1341
|
-
if transaction_id is not None:
|
|
1342
|
-
_path_params['transactionId'] = transaction_id
|
|
1343
|
-
# process the query parameters
|
|
1344
|
-
# process the header parameters
|
|
1345
|
-
# process the form parameters
|
|
1346
|
-
# process the body parameter
|
|
1347
|
-
if transaction_process_request is not None:
|
|
1348
|
-
_body_params = transaction_process_request
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
# set the HTTP header `Accept`
|
|
1352
|
-
if 'Accept' not in _header_params:
|
|
1353
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1354
|
-
[
|
|
1355
|
-
'application/json'
|
|
1356
|
-
]
|
|
1357
|
-
)
|
|
1358
|
-
|
|
1359
|
-
# set the HTTP header `Content-Type`
|
|
1360
|
-
if _content_type:
|
|
1361
|
-
_header_params['Content-Type'] = _content_type
|
|
1362
|
-
else:
|
|
1363
|
-
_default_content_type = (
|
|
1364
|
-
self.api_client.select_header_content_type(
|
|
1365
|
-
[
|
|
1366
|
-
'application/json'
|
|
1367
|
-
]
|
|
1368
|
-
)
|
|
1369
|
-
)
|
|
1370
|
-
if _default_content_type is not None:
|
|
1371
|
-
_header_params['Content-Type'] = _default_content_type
|
|
650
|
+
local_var_params = locals()
|
|
1372
651
|
|
|
1373
|
-
|
|
1374
|
-
|
|
652
|
+
all_params = [
|
|
653
|
+
'transaction_id',
|
|
654
|
+
'transaction_process_request'
|
|
1375
655
|
]
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
body=_body_params,
|
|
1384
|
-
post_params=_form_params,
|
|
1385
|
-
files=_files,
|
|
1386
|
-
auth_settings=_auth_settings,
|
|
1387
|
-
collection_formats=_collection_formats,
|
|
1388
|
-
_host=_host,
|
|
1389
|
-
_request_auth=_request_auth
|
|
1390
|
-
)
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
@validate_call
|
|
1396
|
-
def api_v2_transaction_transaction_id_results_get(
|
|
1397
|
-
self,
|
|
1398
|
-
transaction_id: Annotated[StrictStr, Field(description="Transaction id")],
|
|
1399
|
-
with_images: Annotated[Optional[StrictBool], Field(description="With base64 images or url")] = None,
|
|
1400
|
-
_request_timeout: Union[
|
|
1401
|
-
None,
|
|
1402
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1403
|
-
Tuple[
|
|
1404
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1405
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
656
|
+
all_params.extend(
|
|
657
|
+
[
|
|
658
|
+
'async_req',
|
|
659
|
+
'_return_http_data_only',
|
|
660
|
+
'_preload_content',
|
|
661
|
+
'_request_timeout',
|
|
662
|
+
'_request_auth'
|
|
1406
663
|
]
|
|
1407
|
-
] = None,
|
|
1408
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1409
|
-
_content_type: Optional[StrictStr] = None,
|
|
1410
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1411
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1412
|
-
) -> ProcessResponse:
|
|
1413
|
-
"""Get Reprocess transaction result
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
:param transaction_id: Transaction id (required)
|
|
1417
|
-
:type transaction_id: str
|
|
1418
|
-
:param with_images: With base64 images or url
|
|
1419
|
-
:type with_images: bool
|
|
1420
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1421
|
-
number provided, it will be total request
|
|
1422
|
-
timeout. It can also be a pair (tuple) of
|
|
1423
|
-
(connection, read) timeouts.
|
|
1424
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
1425
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
1426
|
-
request; this effectively ignores the
|
|
1427
|
-
authentication in the spec for a single request.
|
|
1428
|
-
:type _request_auth: dict, optional
|
|
1429
|
-
:param _content_type: force content-type for the request.
|
|
1430
|
-
:type _content_type: str, Optional
|
|
1431
|
-
:param _headers: set to override the headers for a single
|
|
1432
|
-
request; this effectively ignores the headers
|
|
1433
|
-
in the spec for a single request.
|
|
1434
|
-
:type _headers: dict, optional
|
|
1435
|
-
:param _host_index: set to override the host_index for a single
|
|
1436
|
-
request; this effectively ignores the host_index
|
|
1437
|
-
in the spec for a single request.
|
|
1438
|
-
:type _host_index: int, optional
|
|
1439
|
-
:return: Returns the result object.
|
|
1440
|
-
""" # noqa: E501
|
|
1441
|
-
|
|
1442
|
-
_param = self._api_v2_transaction_transaction_id_results_get_serialize(
|
|
1443
|
-
transaction_id=transaction_id,
|
|
1444
|
-
with_images=with_images,
|
|
1445
|
-
_request_auth=_request_auth,
|
|
1446
|
-
_content_type=_content_type,
|
|
1447
|
-
_headers=_headers,
|
|
1448
|
-
_host_index=_host_index
|
|
1449
664
|
)
|
|
1450
665
|
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
666
|
+
for key, val in six.iteritems(local_var_params['kwargs']):
|
|
667
|
+
if key not in all_params:
|
|
668
|
+
raise ApiTypeError(
|
|
669
|
+
"Got an unexpected keyword argument '%s'"
|
|
670
|
+
" to method api_v2_transaction_transaction_id_process_post" % key
|
|
671
|
+
)
|
|
672
|
+
local_var_params[key] = val
|
|
673
|
+
del local_var_params['kwargs']
|
|
674
|
+
# verify the required parameter 'transaction_id' is set
|
|
675
|
+
if self.api_client.client_side_validation and ('transaction_id' not in local_var_params or # noqa: E501
|
|
676
|
+
local_var_params['transaction_id'] is None): # noqa: E501
|
|
677
|
+
raise ApiValueError("Missing the required parameter `transaction_id` when calling `api_v2_transaction_transaction_id_process_post`") # noqa: E501
|
|
678
|
+
# verify the required parameter 'transaction_process_request' is set
|
|
679
|
+
if self.api_client.client_side_validation and ('transaction_process_request' not in local_var_params or # noqa: E501
|
|
680
|
+
local_var_params['transaction_process_request'] is None): # noqa: E501
|
|
681
|
+
raise ApiValueError("Missing the required parameter `transaction_process_request` when calling `api_v2_transaction_transaction_id_process_post`") # noqa: E501
|
|
682
|
+
|
|
683
|
+
collection_formats = {}
|
|
684
|
+
|
|
685
|
+
path_params = {}
|
|
686
|
+
if 'transaction_id' in local_var_params:
|
|
687
|
+
path_params['transactionId'] = local_var_params['transaction_id'] # noqa: E501
|
|
688
|
+
|
|
689
|
+
query_params = []
|
|
690
|
+
|
|
691
|
+
header_params = {}
|
|
692
|
+
|
|
693
|
+
form_params = []
|
|
694
|
+
local_var_files = {}
|
|
695
|
+
|
|
696
|
+
body_params = None
|
|
697
|
+
if 'transaction_process_request' in local_var_params:
|
|
698
|
+
body_params = local_var_params['transaction_process_request']
|
|
699
|
+
# HTTP header `Accept`
|
|
700
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
701
|
+
['application/json']) # noqa: E501
|
|
702
|
+
|
|
703
|
+
# HTTP header `Content-Type`
|
|
704
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
705
|
+
['application/json']) # noqa: E501
|
|
706
|
+
|
|
707
|
+
# Authentication setting
|
|
708
|
+
auth_settings = [] # noqa: E501
|
|
709
|
+
|
|
710
|
+
response_types_map = {
|
|
711
|
+
200: "InlineResponse200",
|
|
712
|
+
400: None,
|
|
713
|
+
403: None,
|
|
1455
714
|
}
|
|
1456
|
-
response_data = self.api_client.call_api(
|
|
1457
|
-
*_param,
|
|
1458
|
-
_request_timeout=_request_timeout
|
|
1459
|
-
)
|
|
1460
|
-
response_data.read()
|
|
1461
|
-
return self.api_client.response_deserialize(
|
|
1462
|
-
response_data=response_data,
|
|
1463
|
-
response_types_map=_response_types_map,
|
|
1464
|
-
).data
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
@validate_call
|
|
1468
|
-
def api_v2_transaction_transaction_id_results_get_with_http_info(
|
|
1469
|
-
self,
|
|
1470
|
-
transaction_id: Annotated[StrictStr, Field(description="Transaction id")],
|
|
1471
|
-
with_images: Annotated[Optional[StrictBool], Field(description="With base64 images or url")] = None,
|
|
1472
|
-
_request_timeout: Union[
|
|
1473
|
-
None,
|
|
1474
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1475
|
-
Tuple[
|
|
1476
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1477
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
1478
|
-
]
|
|
1479
|
-
] = None,
|
|
1480
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1481
|
-
_content_type: Optional[StrictStr] = None,
|
|
1482
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1483
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1484
|
-
) -> ApiResponse[ProcessResponse]:
|
|
1485
|
-
"""Get Reprocess transaction result
|
|
1486
715
|
|
|
716
|
+
return self.api_client.call_api(
|
|
717
|
+
'/api/v2/transaction/{transactionId}/process', 'POST',
|
|
718
|
+
path_params,
|
|
719
|
+
query_params,
|
|
720
|
+
header_params,
|
|
721
|
+
body=body_params,
|
|
722
|
+
post_params=form_params,
|
|
723
|
+
files=local_var_files,
|
|
724
|
+
response_types_map=response_types_map,
|
|
725
|
+
auth_settings=auth_settings,
|
|
726
|
+
async_req=local_var_params.get('async_req'),
|
|
727
|
+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
|
728
|
+
_preload_content=local_var_params.get('_preload_content', True),
|
|
729
|
+
_request_timeout=local_var_params.get('_request_timeout'),
|
|
730
|
+
collection_formats=collection_formats,
|
|
731
|
+
_request_auth=local_var_params.get('_request_auth'))
|
|
732
|
+
|
|
733
|
+
def api_v2_transaction_transaction_id_results_get(self, transaction_id, **kwargs): # noqa: E501
|
|
734
|
+
"""Get Reprocess transaction result # noqa: E501
|
|
735
|
+
|
|
736
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
737
|
+
asynchronous HTTP request, please pass async_req=True
|
|
738
|
+
|
|
739
|
+
>>> thread = api.api_v2_transaction_transaction_id_results_get(transaction_id, async_req=True)
|
|
740
|
+
>>> result = thread.get()
|
|
1487
741
|
|
|
1488
742
|
:param transaction_id: Transaction id (required)
|
|
1489
743
|
:type transaction_id: str
|
|
1490
744
|
:param with_images: With base64 images or url
|
|
1491
745
|
:type with_images: bool
|
|
746
|
+
:param async_req: Whether to execute the request asynchronously.
|
|
747
|
+
:type async_req: bool, optional
|
|
748
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
749
|
+
be returned without reading/decoding response
|
|
750
|
+
data. Default is True.
|
|
751
|
+
:type _preload_content: bool, optional
|
|
1492
752
|
:param _request_timeout: timeout setting for this request. If one
|
|
1493
753
|
number provided, it will be total request
|
|
1494
754
|
timeout. It can also be a pair (tuple) of
|
|
1495
755
|
(connection, read) timeouts.
|
|
1496
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
1497
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
1498
|
-
request; this effectively ignores the
|
|
1499
|
-
authentication in the spec for a single request.
|
|
1500
|
-
:type _request_auth: dict, optional
|
|
1501
|
-
:param _content_type: force content-type for the request.
|
|
1502
|
-
:type _content_type: str, Optional
|
|
1503
|
-
:param _headers: set to override the headers for a single
|
|
1504
|
-
request; this effectively ignores the headers
|
|
1505
|
-
in the spec for a single request.
|
|
1506
|
-
:type _headers: dict, optional
|
|
1507
|
-
:param _host_index: set to override the host_index for a single
|
|
1508
|
-
request; this effectively ignores the host_index
|
|
1509
|
-
in the spec for a single request.
|
|
1510
|
-
:type _host_index: int, optional
|
|
1511
756
|
:return: Returns the result object.
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
_content_type=_content_type,
|
|
1519
|
-
_headers=_headers,
|
|
1520
|
-
_host_index=_host_index
|
|
1521
|
-
)
|
|
1522
|
-
|
|
1523
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
1524
|
-
'200': "ProcessResponse",
|
|
1525
|
-
'400': None,
|
|
1526
|
-
'403': None,
|
|
1527
|
-
}
|
|
1528
|
-
response_data = self.api_client.call_api(
|
|
1529
|
-
*_param,
|
|
1530
|
-
_request_timeout=_request_timeout
|
|
1531
|
-
)
|
|
1532
|
-
response_data.read()
|
|
1533
|
-
return self.api_client.response_deserialize(
|
|
1534
|
-
response_data=response_data,
|
|
1535
|
-
response_types_map=_response_types_map,
|
|
1536
|
-
)
|
|
757
|
+
If the method is called asynchronously,
|
|
758
|
+
returns the request thread.
|
|
759
|
+
:rtype: InlineResponse2001
|
|
760
|
+
"""
|
|
761
|
+
kwargs['_return_http_data_only'] = True
|
|
762
|
+
return self.api_v2_transaction_transaction_id_results_get_with_http_info(transaction_id, **kwargs) # noqa: E501
|
|
1537
763
|
|
|
764
|
+
def api_v2_transaction_transaction_id_results_get_with_http_info(self, transaction_id, **kwargs): # noqa: E501
|
|
765
|
+
"""Get Reprocess transaction result # noqa: E501
|
|
1538
766
|
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
self,
|
|
1542
|
-
transaction_id: Annotated[StrictStr, Field(description="Transaction id")],
|
|
1543
|
-
with_images: Annotated[Optional[StrictBool], Field(description="With base64 images or url")] = None,
|
|
1544
|
-
_request_timeout: Union[
|
|
1545
|
-
None,
|
|
1546
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1547
|
-
Tuple[
|
|
1548
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1549
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
1550
|
-
]
|
|
1551
|
-
] = None,
|
|
1552
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1553
|
-
_content_type: Optional[StrictStr] = None,
|
|
1554
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1555
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1556
|
-
) -> RESTResponseType:
|
|
1557
|
-
"""Get Reprocess transaction result
|
|
767
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
768
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1558
769
|
|
|
770
|
+
>>> thread = api.api_v2_transaction_transaction_id_results_get_with_http_info(transaction_id, async_req=True)
|
|
771
|
+
>>> result = thread.get()
|
|
1559
772
|
|
|
1560
773
|
:param transaction_id: Transaction id (required)
|
|
1561
774
|
:type transaction_id: str
|
|
1562
775
|
:param with_images: With base64 images or url
|
|
1563
776
|
:type with_images: bool
|
|
777
|
+
:param async_req: Whether to execute the request asynchronously.
|
|
778
|
+
:type async_req: bool, optional
|
|
779
|
+
:param _return_http_data_only: response data without head status code
|
|
780
|
+
and headers
|
|
781
|
+
:type _return_http_data_only: bool, optional
|
|
782
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
783
|
+
be returned without reading/decoding response
|
|
784
|
+
data. Default is True.
|
|
785
|
+
:type _preload_content: bool, optional
|
|
1564
786
|
:param _request_timeout: timeout setting for this request. If one
|
|
1565
787
|
number provided, it will be total request
|
|
1566
788
|
timeout. It can also be a pair (tuple) of
|
|
1567
789
|
(connection, read) timeouts.
|
|
1568
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
1569
790
|
:param _request_auth: set to override the auth_settings for an a single
|
|
1570
|
-
request; this effectively ignores the
|
|
1571
|
-
|
|
791
|
+
request; this effectively ignores the authentication
|
|
792
|
+
in the spec for a single request.
|
|
1572
793
|
:type _request_auth: dict, optional
|
|
1573
|
-
:param _content_type: force content-type for the request.
|
|
1574
|
-
:type _content_type: str, Optional
|
|
1575
|
-
:param _headers: set to override the headers for a single
|
|
1576
|
-
request; this effectively ignores the headers
|
|
1577
|
-
in the spec for a single request.
|
|
1578
|
-
:type _headers: dict, optional
|
|
1579
|
-
:param _host_index: set to override the host_index for a single
|
|
1580
|
-
request; this effectively ignores the host_index
|
|
1581
|
-
in the spec for a single request.
|
|
1582
|
-
:type _host_index: int, optional
|
|
1583
794
|
:return: Returns the result object.
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
with_images=with_images,
|
|
1589
|
-
_request_auth=_request_auth,
|
|
1590
|
-
_content_type=_content_type,
|
|
1591
|
-
_headers=_headers,
|
|
1592
|
-
_host_index=_host_index
|
|
1593
|
-
)
|
|
1594
|
-
|
|
1595
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
1596
|
-
'200': "ProcessResponse",
|
|
1597
|
-
'400': None,
|
|
1598
|
-
'403': None,
|
|
1599
|
-
}
|
|
1600
|
-
response_data = self.api_client.call_api(
|
|
1601
|
-
*_param,
|
|
1602
|
-
_request_timeout=_request_timeout
|
|
1603
|
-
)
|
|
1604
|
-
return response_data.response
|
|
1605
|
-
|
|
795
|
+
If the method is called asynchronously,
|
|
796
|
+
returns the request thread.
|
|
797
|
+
:rtype: tuple(InlineResponse2001, status_code(int), headers(HTTPHeaderDict))
|
|
798
|
+
"""
|
|
1606
799
|
|
|
1607
|
-
|
|
1608
|
-
self,
|
|
1609
|
-
transaction_id,
|
|
1610
|
-
with_images,
|
|
1611
|
-
_request_auth,
|
|
1612
|
-
_content_type,
|
|
1613
|
-
_headers,
|
|
1614
|
-
_host_index,
|
|
1615
|
-
) -> RequestSerialized:
|
|
800
|
+
local_var_params = locals()
|
|
1616
801
|
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
}
|
|
1621
|
-
|
|
1622
|
-
_path_params: Dict[str, str] = {}
|
|
1623
|
-
_query_params: List[Tuple[str, str]] = []
|
|
1624
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1625
|
-
_form_params: List[Tuple[str, str]] = []
|
|
1626
|
-
_files: Dict[
|
|
1627
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1628
|
-
] = {}
|
|
1629
|
-
_body_params: Optional[bytes] = None
|
|
1630
|
-
|
|
1631
|
-
# process the path parameters
|
|
1632
|
-
if transaction_id is not None:
|
|
1633
|
-
_path_params['transactionId'] = transaction_id
|
|
1634
|
-
# process the query parameters
|
|
1635
|
-
if with_images is not None:
|
|
1636
|
-
|
|
1637
|
-
_query_params.append(('withImages', with_images))
|
|
1638
|
-
|
|
1639
|
-
# process the header parameters
|
|
1640
|
-
# process the form parameters
|
|
1641
|
-
# process the body parameter
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
# set the HTTP header `Accept`
|
|
1645
|
-
if 'Accept' not in _header_params:
|
|
1646
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1647
|
-
[
|
|
1648
|
-
'application/json'
|
|
1649
|
-
]
|
|
1650
|
-
)
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
# authentication setting
|
|
1654
|
-
_auth_settings: List[str] = [
|
|
802
|
+
all_params = [
|
|
803
|
+
'transaction_id',
|
|
804
|
+
'with_images'
|
|
1655
805
|
]
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
post_params=_form_params,
|
|
1665
|
-
files=_files,
|
|
1666
|
-
auth_settings=_auth_settings,
|
|
1667
|
-
collection_formats=_collection_formats,
|
|
1668
|
-
_host=_host,
|
|
1669
|
-
_request_auth=_request_auth
|
|
806
|
+
all_params.extend(
|
|
807
|
+
[
|
|
808
|
+
'async_req',
|
|
809
|
+
'_return_http_data_only',
|
|
810
|
+
'_preload_content',
|
|
811
|
+
'_request_timeout',
|
|
812
|
+
'_request_auth'
|
|
813
|
+
]
|
|
1670
814
|
)
|
|
1671
815
|
|
|
816
|
+
for key, val in six.iteritems(local_var_params['kwargs']):
|
|
817
|
+
if key not in all_params:
|
|
818
|
+
raise ApiTypeError(
|
|
819
|
+
"Got an unexpected keyword argument '%s'"
|
|
820
|
+
" to method api_v2_transaction_transaction_id_results_get" % key
|
|
821
|
+
)
|
|
822
|
+
local_var_params[key] = val
|
|
823
|
+
del local_var_params['kwargs']
|
|
824
|
+
# verify the required parameter 'transaction_id' is set
|
|
825
|
+
if self.api_client.client_side_validation and ('transaction_id' not in local_var_params or # noqa: E501
|
|
826
|
+
local_var_params['transaction_id'] is None): # noqa: E501
|
|
827
|
+
raise ApiValueError("Missing the required parameter `transaction_id` when calling `api_v2_transaction_transaction_id_results_get`") # noqa: E501
|
|
828
|
+
|
|
829
|
+
collection_formats = {}
|
|
830
|
+
|
|
831
|
+
path_params = {}
|
|
832
|
+
if 'transaction_id' in local_var_params:
|
|
833
|
+
path_params['transactionId'] = local_var_params['transaction_id'] # noqa: E501
|
|
834
|
+
|
|
835
|
+
query_params = []
|
|
836
|
+
if 'with_images' in local_var_params and local_var_params['with_images'] is not None: # noqa: E501
|
|
837
|
+
query_params.append(('withImages', local_var_params['with_images'])) # noqa: E501
|
|
838
|
+
|
|
839
|
+
header_params = {}
|
|
840
|
+
|
|
841
|
+
form_params = []
|
|
842
|
+
local_var_files = {}
|
|
843
|
+
|
|
844
|
+
body_params = None
|
|
845
|
+
# HTTP header `Accept`
|
|
846
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
847
|
+
['application/json']) # noqa: E501
|
|
848
|
+
|
|
849
|
+
# Authentication setting
|
|
850
|
+
auth_settings = [] # noqa: E501
|
|
851
|
+
|
|
852
|
+
response_types_map = {
|
|
853
|
+
200: "InlineResponse2001",
|
|
854
|
+
400: None,
|
|
855
|
+
403: None,
|
|
856
|
+
}
|
|
1672
857
|
|
|
858
|
+
return self.api_client.call_api(
|
|
859
|
+
'/api/v2/transaction/{transactionId}/results', 'GET',
|
|
860
|
+
path_params,
|
|
861
|
+
query_params,
|
|
862
|
+
header_params,
|
|
863
|
+
body=body_params,
|
|
864
|
+
post_params=form_params,
|
|
865
|
+
files=local_var_files,
|
|
866
|
+
response_types_map=response_types_map,
|
|
867
|
+
auth_settings=auth_settings,
|
|
868
|
+
async_req=local_var_params.get('async_req'),
|
|
869
|
+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
|
870
|
+
_preload_content=local_var_params.get('_preload_content', True),
|
|
871
|
+
_request_timeout=local_var_params.get('_request_timeout'),
|
|
872
|
+
collection_formats=collection_formats,
|
|
873
|
+
_request_auth=local_var_params.get('_request_auth'))
|