regula-documentreader-webclient 8.1.355rc0__py3-none-any.whl → 8.1.357.dev0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of regula-documentreader-webclient might be problematic. Click here for more details.

Files changed (289) hide show
  1. regula/documentreader/webclient/ext/__init__.py +0 -1
  2. regula/documentreader/webclient/ext/api/document_reader_api.py +2 -2
  3. regula/documentreader/webclient/ext/models/__init__.py +0 -2
  4. regula/documentreader/webclient/ext/models/authenticity/authenticity_check_list.py +64 -19
  5. regula/documentreader/webclient/ext/models/authenticity/fiber.py +7 -7
  6. regula/documentreader/webclient/ext/models/authenticity/ident.py +10 -9
  7. regula/documentreader/webclient/ext/models/authenticity/image_ident.py +8 -7
  8. regula/documentreader/webclient/ext/models/authenticity/ocr_security_text.py +7 -7
  9. regula/documentreader/webclient/ext/models/authenticity/security_feature.py +10 -8
  10. regula/documentreader/webclient/ext/models/images.py +4 -4
  11. regula/documentreader/webclient/ext/models/recognition_request.py +23 -24
  12. regula/documentreader/webclient/ext/models/recognition_response.py +6 -8
  13. regula/documentreader/webclient/ext/models/text.py +7 -12
  14. regula/documentreader/webclient/gen/__init__.py +100 -26
  15. regula/documentreader/webclient/gen/api/__init__.py +1 -2
  16. regula/documentreader/webclient/gen/api/healthcheck_api.py +687 -298
  17. regula/documentreader/webclient/gen/api/process_api.py +270 -125
  18. regula/documentreader/webclient/gen/api/transaction_api.py +1472 -673
  19. regula/documentreader/webclient/gen/api_client.py +583 -462
  20. regula/documentreader/webclient/gen/api_response.py +21 -0
  21. regula/documentreader/webclient/gen/configuration.py +222 -99
  22. regula/documentreader/webclient/gen/exceptions.py +81 -30
  23. regula/documentreader/webclient/gen/models/__init__.py +98 -25
  24. regula/documentreader/webclient/gen/models/area_array.py +85 -131
  25. regula/documentreader/webclient/gen/models/area_container.py +85 -157
  26. regula/documentreader/webclient/gen/models/auth_params.py +100 -526
  27. regula/documentreader/webclient/gen/models/authenticity_check_list.py +75 -136
  28. regula/documentreader/webclient/gen/models/authenticity_check_list_item.py +83 -0
  29. regula/documentreader/webclient/gen/models/authenticity_check_result.py +81 -160
  30. regula/documentreader/webclient/gen/models/authenticity_check_result_item.py +154 -217
  31. regula/documentreader/webclient/gen/models/authenticity_check_result_list_inner.py +174 -0
  32. regula/documentreader/webclient/gen/models/authenticity_result.py +68 -231
  33. regula/documentreader/webclient/gen/models/authenticity_result_type.py +35 -123
  34. regula/documentreader/webclient/gen/models/bar_code_module_type.py +32 -0
  35. regula/documentreader/webclient/gen/models/barcode_type.py +47 -0
  36. regula/documentreader/webclient/gen/models/bc_pdf417_info.py +75 -235
  37. regula/documentreader/webclient/gen/models/bc_roidetect.py +71 -183
  38. regula/documentreader/webclient/gen/models/binary_data.py +218 -0
  39. regula/documentreader/webclient/gen/models/byte_array_item.py +79 -0
  40. regula/documentreader/webclient/gen/models/byte_array_result.py +64 -233
  41. regula/documentreader/webclient/gen/models/candidates_list_item.py +83 -0
  42. regula/documentreader/webclient/gen/models/certificate_data.py +81 -0
  43. regula/documentreader/webclient/gen/models/check_diagnose.py +138 -329
  44. regula/documentreader/webclient/gen/models/check_result.py +15 -84
  45. regula/documentreader/webclient/gen/models/chosen_document_type.py +94 -334
  46. regula/documentreader/webclient/gen/models/chosen_document_type_result.py +80 -264
  47. regula/documentreader/webclient/gen/models/container_list.py +75 -134
  48. regula/documentreader/webclient/gen/models/container_list_list_inner.py +426 -0
  49. regula/documentreader/webclient/gen/models/critical.py +14 -82
  50. regula/documentreader/webclient/gen/models/cross_source_value_comparison.py +67 -156
  51. regula/documentreader/webclient/gen/models/data_module.py +74 -209
  52. regula/documentreader/webclient/gen/models/details_optical.py +83 -298
  53. regula/documentreader/webclient/gen/models/details_rfid.py +78 -268
  54. regula/documentreader/webclient/gen/models/device_info.py +76 -235
  55. regula/documentreader/webclient/gen/models/doc_bar_code_info.py +68 -230
  56. regula/documentreader/webclient/gen/models/doc_bar_code_info_fields_list.py +75 -135
  57. regula/documentreader/webclient/gen/models/doc_bar_code_info_item.py +83 -0
  58. regula/documentreader/webclient/gen/models/doc_graphics_info_item.py +83 -0
  59. regula/documentreader/webclient/gen/models/doc_visual_extended_field.py +105 -301
  60. regula/documentreader/webclient/gen/models/doc_visual_extended_field_item.py +83 -0
  61. regula/documentreader/webclient/gen/models/doc_visual_extended_info.py +75 -106
  62. regula/documentreader/webclient/gen/models/doc_visual_extended_info_item.py +83 -0
  63. regula/documentreader/webclient/gen/models/document_binary_info_result.py +90 -0
  64. regula/documentreader/webclient/gen/models/document_format.py +27 -105
  65. regula/documentreader/webclient/gen/models/document_image.py +63 -132
  66. regula/documentreader/webclient/gen/models/document_image_result.py +68 -231
  67. regula/documentreader/webclient/gen/models/document_position.py +111 -340
  68. regula/documentreader/webclient/gen/models/document_position_item.py +83 -0
  69. regula/documentreader/webclient/gen/models/document_position_result.py +68 -230
  70. regula/documentreader/webclient/gen/models/document_type.py +243 -539
  71. regula/documentreader/webclient/gen/models/document_type_recognition_result.py +15 -84
  72. regula/documentreader/webclient/gen/models/document_types_candidates.py +76 -131
  73. regula/documentreader/webclient/gen/models/document_types_candidates_list.py +76 -131
  74. regula/documentreader/webclient/gen/models/document_types_candidates_result.py +68 -230
  75. regula/documentreader/webclient/gen/models/documents_database.py +71 -191
  76. regula/documentreader/webclient/gen/models/encrypted_rcl_item.py +79 -0
  77. regula/documentreader/webclient/gen/models/encrypted_rcl_result.py +64 -233
  78. regula/documentreader/webclient/gen/models/error_coordinates.py +85 -0
  79. regula/documentreader/webclient/gen/models/face_api.py +88 -358
  80. regula/documentreader/webclient/gen/models/face_api_search.py +65 -159
  81. regula/documentreader/webclient/gen/models/face_detection.py +95 -0
  82. regula/documentreader/webclient/gen/models/face_detection_item.py +83 -0
  83. regula/documentreader/webclient/gen/models/face_detection_result.py +90 -0
  84. regula/documentreader/webclient/gen/models/face_item.py +109 -0
  85. regula/documentreader/webclient/gen/models/fdsid_list.py +91 -390
  86. regula/documentreader/webclient/gen/models/fiber_item.py +106 -0
  87. regula/documentreader/webclient/gen/models/fiber_result.py +103 -439
  88. regula/documentreader/webclient/gen/models/field_item.py +89 -0
  89. regula/documentreader/webclient/gen/models/file_image.py +81 -0
  90. regula/documentreader/webclient/gen/models/get_transactions_by_tag_response.py +66 -159
  91. regula/documentreader/webclient/gen/models/graph_data.py +95 -0
  92. regula/documentreader/webclient/gen/models/graphic_field.py +80 -271
  93. regula/documentreader/webclient/gen/models/graphic_field_type.py +40 -131
  94. regula/documentreader/webclient/gen/models/graphic_fields_list.py +75 -106
  95. regula/documentreader/webclient/gen/models/graphics_result.py +68 -231
  96. regula/documentreader/webclient/gen/models/healthcheck.py +117 -297
  97. regula/documentreader/webclient/gen/models/healthcheck_documents_database.py +91 -187
  98. regula/documentreader/webclient/gen/models/ident_item.py +110 -0
  99. regula/documentreader/webclient/gen/models/ident_result.py +107 -345
  100. regula/documentreader/webclient/gen/models/image_data.py +63 -132
  101. regula/documentreader/webclient/gen/models/image_qa.py +83 -304
  102. regula/documentreader/webclient/gen/models/image_quality_check.py +86 -263
  103. regula/documentreader/webclient/gen/models/image_quality_check_list.py +78 -133
  104. regula/documentreader/webclient/gen/models/image_quality_check_list_item.py +83 -0
  105. regula/documentreader/webclient/gen/models/image_quality_check_type.py +22 -97
  106. regula/documentreader/webclient/gen/models/image_quality_result.py +68 -231
  107. regula/documentreader/webclient/gen/models/image_transaction_data.py +61 -97
  108. regula/documentreader/webclient/gen/models/images.py +87 -133
  109. regula/documentreader/webclient/gen/models/images_available_source.py +64 -130
  110. regula/documentreader/webclient/gen/models/images_field.py +80 -162
  111. regula/documentreader/webclient/gen/models/images_field_value.py +94 -331
  112. regula/documentreader/webclient/gen/models/images_item.py +83 -0
  113. regula/documentreader/webclient/gen/models/images_result.py +68 -231
  114. regula/documentreader/webclient/gen/models/in_data.py +79 -131
  115. regula/documentreader/webclient/gen/models/in_data_transaction_images_field_value.py +72 -187
  116. regula/documentreader/webclient/gen/models/in_data_video.py +63 -131
  117. regula/documentreader/webclient/gen/models/input_barcode_type.py +33 -119
  118. regula/documentreader/webclient/gen/models/input_image_quality_checks.py +22 -97
  119. regula/documentreader/webclient/gen/models/lcid.py +179 -402
  120. regula/documentreader/webclient/gen/models/lexical_analysis_result.py +68 -234
  121. regula/documentreader/webclient/gen/models/license_item.py +79 -0
  122. regula/documentreader/webclient/gen/models/license_result.py +64 -233
  123. regula/documentreader/webclient/gen/models/light.py +61 -87
  124. regula/documentreader/webclient/gen/models/list_transactions_by_tag_response.py +75 -131
  125. regula/documentreader/webclient/gen/models/list_verified_fields.py +77 -105
  126. regula/documentreader/webclient/gen/models/list_verified_fields_item.py +83 -0
  127. regula/documentreader/webclient/gen/models/liveness_params.py +77 -247
  128. regula/documentreader/webclient/gen/models/log_level.py +17 -88
  129. regula/documentreader/webclient/gen/models/measure_system.py +14 -82
  130. regula/documentreader/webclient/gen/models/mrz_detect_mode_enum.py +15 -84
  131. regula/documentreader/webclient/gen/models/mrz_detector_result.py +90 -0
  132. regula/documentreader/webclient/gen/models/mrz_format.py +18 -90
  133. regula/documentreader/webclient/gen/models/mrz_position.py +124 -0
  134. regula/documentreader/webclient/gen/models/mrz_position_item.py +83 -0
  135. regula/documentreader/webclient/gen/models/mrz_position_result.py +90 -0
  136. regula/documentreader/webclient/gen/models/mrz_rows_item.py +91 -0
  137. regula/documentreader/webclient/gen/models/mrz_test_quality.py +105 -0
  138. regula/documentreader/webclient/gen/models/mrz_test_quality_item.py +83 -0
  139. regula/documentreader/webclient/gen/models/mrz_test_quality_result.py +90 -0
  140. regula/documentreader/webclient/gen/models/ocr_security_text_item.py +110 -0
  141. regula/documentreader/webclient/gen/models/ocr_security_text_result.py +107 -449
  142. regula/documentreader/webclient/gen/models/one_candidate.py +94 -334
  143. regula/documentreader/webclient/gen/models/one_candidate_item.py +87 -0
  144. regula/documentreader/webclient/gen/models/original_symbol.py +74 -167
  145. regula/documentreader/webclient/gen/models/out_data.py +75 -133
  146. regula/documentreader/webclient/gen/models/out_data_transaction_images_field_value.py +75 -213
  147. regula/documentreader/webclient/gen/models/p_array_field.py +103 -342
  148. regula/documentreader/webclient/gen/models/parsed_data.py +79 -0
  149. regula/documentreader/webclient/gen/models/parsing_error_codes.py +153 -0
  150. regula/documentreader/webclient/gen/models/parsing_notification_codes.py +237 -523
  151. regula/documentreader/webclient/gen/models/per_document_config.py +63 -131
  152. regula/documentreader/webclient/gen/models/photo_ident_item.py +110 -0
  153. regula/documentreader/webclient/gen/models/photo_ident_result.py +107 -423
  154. regula/documentreader/webclient/gen/models/point.py +63 -127
  155. regula/documentreader/webclient/gen/models/point_array.py +65 -97
  156. regula/documentreader/webclient/gen/models/points_container.py +75 -131
  157. regula/documentreader/webclient/gen/models/process_params.py +229 -1743
  158. regula/documentreader/webclient/gen/models/process_params_rfid.py +56 -97
  159. regula/documentreader/webclient/gen/models/process_request.py +113 -411
  160. regula/documentreader/webclient/gen/models/process_request_image.py +74 -159
  161. regula/documentreader/webclient/gen/models/process_response.py +96 -299
  162. regula/documentreader/webclient/gen/models/process_system_info.py +63 -131
  163. regula/documentreader/webclient/gen/models/processing_status.py +15 -84
  164. regula/documentreader/webclient/gen/models/raw_image_container_item.py +83 -0
  165. regula/documentreader/webclient/gen/models/raw_image_container_list.py +75 -131
  166. regula/documentreader/webclient/gen/models/rectangle_coordinates.py +71 -187
  167. regula/documentreader/webclient/gen/models/result.py +49 -133
  168. regula/documentreader/webclient/gen/models/result_item.py +195 -245
  169. regula/documentreader/webclient/gen/models/result_mrz_detector.py +93 -0
  170. regula/documentreader/webclient/gen/models/result_mrz_detector_item.py +83 -0
  171. regula/documentreader/webclient/gen/models/rfid_a_chip.py +33 -0
  172. regula/documentreader/webclient/gen/models/rfid_access_control_info.py +90 -0
  173. regula/documentreader/webclient/gen/models/rfid_access_control_procedure_type.py +35 -0
  174. regula/documentreader/webclient/gen/models/rfid_access_key.py +87 -0
  175. regula/documentreader/webclient/gen/models/rfid_application.py +101 -0
  176. regula/documentreader/webclient/gen/models/rfid_application_type.py +37 -0
  177. regula/documentreader/webclient/gen/models/rfid_attribute_data.py +81 -0
  178. regula/documentreader/webclient/gen/models/rfid_attribute_name.py +85 -0
  179. regula/documentreader/webclient/gen/models/rfid_authentication_procedure_type.py +31 -0
  180. regula/documentreader/webclient/gen/models/rfid_baud_rate.py +32 -0
  181. regula/documentreader/webclient/gen/models/rfid_card_properties_ext.py +123 -0
  182. regula/documentreader/webclient/gen/models/rfid_certificate_ex.py +130 -0
  183. regula/documentreader/webclient/gen/models/rfid_certificate_origin.py +36 -0
  184. regula/documentreader/webclient/gen/models/rfid_certificate_type.py +35 -0
  185. regula/documentreader/webclient/gen/models/rfid_data_file.py +118 -0
  186. regula/documentreader/webclient/gen/models/rfid_data_file_type.py +119 -0
  187. regula/documentreader/webclient/gen/models/rfid_data_group_type_tag.py +82 -0
  188. regula/documentreader/webclient/gen/models/rfid_dg1.py +111 -0
  189. regula/documentreader/webclient/gen/models/rfid_distinguished_name.py +95 -0
  190. regula/documentreader/webclient/gen/models/rfid_doc_visual_extended_field.py +120 -0
  191. regula/documentreader/webclient/gen/models/rfid_doc_visual_extended_field_item.py +85 -0
  192. regula/documentreader/webclient/gen/models/rfid_doc_visual_extended_info.py +89 -0
  193. regula/documentreader/webclient/gen/models/rfid_doc_visual_extended_info_item.py +83 -0
  194. regula/documentreader/webclient/gen/models/rfid_error_codes.py +141 -0
  195. regula/documentreader/webclient/gen/models/rfid_graphics_info_result.py +90 -0
  196. regula/documentreader/webclient/gen/models/rfid_location.py +15 -84
  197. regula/documentreader/webclient/gen/models/rfid_origin.py +71 -192
  198. regula/documentreader/webclient/gen/models/rfid_password_type.py +34 -0
  199. regula/documentreader/webclient/gen/models/rfid_pki_extension.py +81 -0
  200. regula/documentreader/webclient/gen/models/rfid_raw_data.py +81 -0
  201. regula/documentreader/webclient/gen/models/rfid_security_object.py +96 -0
  202. regula/documentreader/webclient/gen/models/rfid_session_data.py +150 -0
  203. regula/documentreader/webclient/gen/models/rfid_signer_info_ex.py +133 -0
  204. regula/documentreader/webclient/gen/models/rfid_terminal.py +84 -0
  205. regula/documentreader/webclient/gen/models/rfid_terminal_type.py +32 -0
  206. regula/documentreader/webclient/gen/models/rfid_text_data_result.py +90 -0
  207. regula/documentreader/webclient/gen/models/rfid_type.py +30 -0
  208. regula/documentreader/webclient/gen/models/rfid_validity.py +88 -0
  209. regula/documentreader/webclient/gen/models/rfidpkd_resource_type.py +35 -0
  210. regula/documentreader/webclient/gen/models/scenario.py +33 -117
  211. regula/documentreader/webclient/gen/models/security_feature_item.py +102 -0
  212. regula/documentreader/webclient/gen/models/security_feature_result.py +99 -345
  213. regula/documentreader/webclient/gen/models/security_feature_type.py +68 -185
  214. regula/documentreader/webclient/gen/models/security_object_certificates.py +83 -0
  215. regula/documentreader/webclient/gen/models/source.py +18 -88
  216. regula/documentreader/webclient/gen/models/source_validity.py +65 -129
  217. regula/documentreader/webclient/gen/models/status.py +86 -264
  218. regula/documentreader/webclient/gen/models/status_item.py +83 -0
  219. regula/documentreader/webclient/gen/models/status_result.py +68 -231
  220. regula/documentreader/webclient/gen/models/string_item.py +135 -0
  221. regula/documentreader/webclient/gen/models/string_recognition_result.py +81 -108
  222. regula/documentreader/webclient/gen/models/symbol.py +79 -0
  223. regula/documentreader/webclient/gen/models/symbol_candidate.py +72 -143
  224. regula/documentreader/webclient/gen/models/symbol_estimation_item.py +115 -0
  225. regula/documentreader/webclient/gen/models/symbol_recognition_result.py +87 -135
  226. regula/documentreader/webclient/gen/models/t_doc_binary_info.py +93 -0
  227. regula/documentreader/webclient/gen/models/t_doc_binary_info_item.py +83 -0
  228. regula/documentreader/webclient/gen/models/t_original_rfid_graphics_info.py +87 -0
  229. regula/documentreader/webclient/gen/models/t_original_rfid_graphics_info_item.py +83 -0
  230. regula/documentreader/webclient/gen/models/text.py +92 -214
  231. regula/documentreader/webclient/gen/models/text_available_source.py +67 -157
  232. regula/documentreader/webclient/gen/models/text_data_result.py +68 -230
  233. regula/documentreader/webclient/gen/models/text_field.py +115 -357
  234. regula/documentreader/webclient/gen/models/text_field_type.py +661 -1368
  235. regula/documentreader/webclient/gen/models/text_field_value.py +105 -307
  236. regula/documentreader/webclient/gen/models/text_item.py +83 -0
  237. regula/documentreader/webclient/gen/models/text_post_processing.py +16 -86
  238. regula/documentreader/webclient/gen/models/text_result.py +68 -231
  239. regula/documentreader/webclient/gen/models/transaction_image.py +61 -97
  240. regula/documentreader/webclient/gen/models/transaction_info.py +84 -302
  241. regula/documentreader/webclient/gen/models/transaction_process_get_response.py +79 -183
  242. regula/documentreader/webclient/gen/models/transaction_process_request.py +108 -299
  243. regula/documentreader/webclient/gen/models/transaction_process_response.py +107 -0
  244. regula/documentreader/webclient/gen/models/transaction_process_response_item.py +79 -0
  245. regula/documentreader/webclient/gen/models/transaction_process_result.py +93 -0
  246. regula/documentreader/webclient/gen/models/trf_ft_bytes.py +90 -0
  247. regula/documentreader/webclient/gen/models/trf_ft_string.py +85 -0
  248. regula/documentreader/webclient/gen/models/verification_result.py +17 -88
  249. regula/documentreader/webclient/gen/models/verified_field_map.py +85 -273
  250. regula/documentreader/webclient/gen/models/visibility.py +17 -88
  251. regula/documentreader/webclient/gen/models/visual_extended_field_item.py +112 -0
  252. regula/documentreader/webclient/gen/py.typed +0 -0
  253. regula/documentreader/webclient/gen/rest.py +132 -174
  254. {regula_documentreader_webclient-8.1.355rc0.dist-info → regula_documentreader_webclient-8.1.357.dev0.dist-info}/METADATA +17 -6
  255. regula_documentreader_webclient-8.1.357.dev0.dist-info/RECORD +263 -0
  256. {regula_documentreader_webclient-8.1.355rc0.dist-info → regula_documentreader_webclient-8.1.357.dev0.dist-info}/WHEEL +1 -1
  257. regula/documentreader/webclient/ext/models/raw_authenticity_result_item.py +0 -27
  258. regula/documentreader/webclient/ext/models/raw_result_item.py +0 -26
  259. regula/documentreader/webclient/gen/api/default_api.py +0 -160
  260. regula/documentreader/webclient/gen/models/authenticity_result_all_of.py +0 -120
  261. regula/documentreader/webclient/gen/models/byte_array_result_all_of.py +0 -122
  262. regula/documentreader/webclient/gen/models/chosen_document_type_result_all_of.py +0 -145
  263. regula/documentreader/webclient/gen/models/device_info2.py +0 -275
  264. regula/documentreader/webclient/gen/models/doc_bar_code_info_all_of.py +0 -119
  265. regula/documentreader/webclient/gen/models/document_image_result_all_of.py +0 -120
  266. regula/documentreader/webclient/gen/models/document_position_result_all_of.py +0 -119
  267. regula/documentreader/webclient/gen/models/document_types_candidates_result_all_of.py +0 -119
  268. regula/documentreader/webclient/gen/models/encrypted_rcl_result_all_of.py +0 -122
  269. regula/documentreader/webclient/gen/models/fiber_result_all_of.py +0 -343
  270. regula/documentreader/webclient/gen/models/graphics_result_all_of.py +0 -119
  271. regula/documentreader/webclient/gen/models/ident_result_all_of.py +0 -249
  272. regula/documentreader/webclient/gen/models/image_quality_result_all_of.py +0 -120
  273. regula/documentreader/webclient/gen/models/images_result_all_of.py +0 -120
  274. regula/documentreader/webclient/gen/models/in_data_rfid_session.py +0 -121
  275. regula/documentreader/webclient/gen/models/inline_response200.py +0 -197
  276. regula/documentreader/webclient/gen/models/inline_response2001.py +0 -333
  277. regula/documentreader/webclient/gen/models/lexical_analysis_result_all_of.py +0 -119
  278. regula/documentreader/webclient/gen/models/license_result_all_of.py +0 -122
  279. regula/documentreader/webclient/gen/models/ocr_security_text_result_all_of.py +0 -353
  280. regula/documentreader/webclient/gen/models/photo_ident_result_all_of.py +0 -327
  281. regula/documentreader/webclient/gen/models/security_feature_result_all_of.py +0 -249
  282. regula/documentreader/webclient/gen/models/status_result_all_of.py +0 -120
  283. regula/documentreader/webclient/gen/models/text_data_result_all_of.py +0 -119
  284. regula/documentreader/webclient/gen/models/text_result_all_of.py +0 -120
  285. regula/documentreader/webclient/gen/models/tfdsid_list.py +0 -372
  286. regula/documentreader/webclient/gen/models/transaction_images_field_value.py +0 -227
  287. regula/documentreader/webclient/gen/models/transaction_scenario_request.py +0 -119
  288. regula_documentreader_webclient-8.1.355rc0.dist-info/RECORD +0 -192
  289. {regula_documentreader_webclient-8.1.355rc0.dist-info → regula_documentreader_webclient-8.1.357.dev0.dist-info}/top_level.txt +0 -0
@@ -3,871 +3,1670 @@
3
3
  """
4
4
  Generated by: https://openapi-generator.tech
5
5
  """
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):
6
+ import warnings
7
+ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
8
+ from typing import Any, Dict, List, Optional, Tuple, Union
9
+ from typing_extensions import Annotated
10
+
11
+ from pydantic import Field, StrictBool, StrictBytes, StrictStr
12
+ from typing import Any, Dict, Optional, Tuple, Union
13
+ from typing_extensions import Annotated
14
+ from regula.documentreader.webclient.gen.models.list_transactions_by_tag_response import ListTransactionsByTagResponse
15
+ from regula.documentreader.webclient.gen.models.process_response import ProcessResponse
16
+ from regula.documentreader.webclient.gen.models.transaction_process_get_response import TransactionProcessGetResponse
17
+ from regula.documentreader.webclient.gen.models.transaction_process_request import TransactionProcessRequest
18
+ from regula.documentreader.webclient.gen.models.transaction_process_result import TransactionProcessResult
19
+
20
+ from regula.documentreader.webclient.gen.api_client import ApiClient, RequestSerialized
21
+ from regula.documentreader.webclient.gen.api_response import ApiResponse
22
+ from regula.documentreader.webclient.gen.rest import RESTResponseType
23
+
24
+
25
+ class TransactionApi:
22
26
  """NOTE: This class is auto generated by OpenAPI Generator
23
27
  Ref: https://openapi-generator.tech
24
28
 
25
29
  Do not edit the class manually.
26
30
  """
27
31
 
28
- def __init__(self, api_client=None):
32
+ def __init__(self, api_client=None) -> None:
29
33
  if api_client is None:
30
- api_client = ApiClient()
34
+ api_client = ApiClient.get_default()
31
35
  self.api_client = api_client
32
36
 
33
- def api_v2_tag_tag_id_delete(self, tag_id, **kwargs): # noqa: E501
34
- """Delete Reprocess transactions by tag # noqa: E501
35
37
 
36
- This method makes a synchronous HTTP request by default. To make an
37
- asynchronous HTTP request, please pass async_req=True
38
+ @validate_call
39
+ def api_v2_tag_tag_id_delete(
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
38
56
 
39
- >>> thread = api.api_v2_tag_tag_id_delete(tag_id, async_req=True)
40
- >>> result = thread.get()
41
57
 
42
58
  :param tag_id: Tag id (required)
43
59
  :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
50
60
  :param _request_timeout: timeout setting for this request. If one
51
61
  number provided, it will be total request
52
62
  timeout. It can also be a pair (tuple) of
53
63
  (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
54
79
  :return: Returns the result object.
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
80
+ """ # noqa: E501
81
+
82
+ _param = self._api_v2_tag_tag_id_delete_serialize(
83
+ tag_id=tag_id,
84
+ _request_auth=_request_auth,
85
+ _content_type=_content_type,
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
+ )
61
172
 
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
64
173
 
65
- This method makes a synchronous HTTP request by default. To make an
66
- asynchronous HTTP request, please pass async_req=True
174
+ @validate_call
175
+ def api_v2_tag_tag_id_delete_without_preload_content(
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
67
192
 
68
- >>> thread = api.api_v2_tag_tag_id_delete_with_http_info(tag_id, async_req=True)
69
- >>> result = thread.get()
70
193
 
71
194
  :param tag_id: Tag id (required)
72
195
  :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
82
196
  :param _request_timeout: timeout setting for this request. If one
83
197
  number provided, it will be total request
84
198
  timeout. It can also be a pair (tuple) of
85
199
  (connection, read) timeouts.
200
+ :type _request_timeout: int, tuple(int, int), optional
86
201
  :param _request_auth: set to override the auth_settings for an a single
87
- request; this effectively ignores the authentication
88
- in the spec for a single request.
202
+ request; this effectively ignores the
203
+ authentication in the spec for a single request.
89
204
  :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
90
215
  :return: Returns the result object.
91
- If the method is called asynchronously,
92
- returns the request thread.
93
- :rtype: tuple(object, status_code(int), headers(HTTPHeaderDict))
94
- """
216
+ """ # noqa: E501
217
+
218
+ _param = self._api_v2_tag_tag_id_delete_serialize(
219
+ tag_id=tag_id,
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:
95
246
 
96
- local_var_params = locals()
247
+ _host = None
97
248
 
98
- all_params = [
99
- 'tag_id'
249
+ _collection_formats: Dict[str, str] = {
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] = [
100
281
  ]
101
- all_params.extend(
102
- [
103
- 'async_req',
104
- '_return_http_data_only',
105
- '_preload_content',
106
- '_request_timeout',
107
- '_request_auth'
282
+
283
+ return self.api_client.param_serialize(
284
+ method='DELETE',
285
+ resource_path='/api/v2/tag/{tagId}',
286
+ path_params=_path_params,
287
+ query_params=_query_params,
288
+ header_params=_header_params,
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)]
108
311
  ]
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
109
351
  )
110
352
 
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,
353
+ _response_types_map: Dict[str, Optional[str]] = {
354
+ '200': "ListTransactionsByTagResponse",
355
+ '400': None,
356
+ '403': None,
149
357
  }
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
150
387
 
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()
176
388
 
177
389
  :param tag_id: Tag id (required)
178
390
  :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
185
391
  :param _request_timeout: timeout setting for this request. If one
186
392
  number provided, it will be total request
187
393
  timeout. It can also be a pair (tuple) of
188
394
  (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
189
410
  :return: Returns the result object.
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
411
+ """ # noqa: E501
412
+
413
+ _param = self._api_v2_tag_tag_id_transactions_get_serialize(
414
+ tag_id=tag_id,
415
+ _request_auth=_request_auth,
416
+ _content_type=_content_type,
417
+ _headers=_headers,
418
+ _host_index=_host_index
419
+ )
196
420
 
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
421
+ _response_types_map: Dict[str, Optional[str]] = {
422
+ '200': "ListTransactionsByTagResponse",
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
+ )
199
435
 
200
- This method makes a synchronous HTTP request by default. To make an
201
- asynchronous HTTP request, please pass async_req=True
202
436
 
203
- >>> thread = api.api_v2_tag_tag_id_transactions_get_with_http_info(tag_id, async_req=True)
204
- >>> result = thread.get()
437
+ @validate_call
438
+ def api_v2_tag_tag_id_transactions_get_without_preload_content(
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
+
205
456
 
206
457
  :param tag_id: Tag id (required)
207
458
  :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
217
459
  :param _request_timeout: timeout setting for this request. If one
218
460
  number provided, it will be total request
219
461
  timeout. It can also be a pair (tuple) of
220
462
  (connection, read) timeouts.
463
+ :type _request_timeout: int, tuple(int, int), optional
221
464
  :param _request_auth: set to override the auth_settings for an a single
222
- request; this effectively ignores the authentication
223
- in the spec for a single request.
465
+ request; this effectively ignores the
466
+ authentication in the spec for a single request.
224
467
  :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
225
478
  :return: Returns the result object.
226
- If the method is called asynchronously,
227
- returns the request thread.
228
- :rtype: tuple(ListTransactionsByTagResponse, status_code(int), headers(HTTPHeaderDict))
229
- """
479
+ """ # noqa: E501
480
+
481
+ _param = self._api_v2_tag_tag_id_transactions_get_serialize(
482
+ tag_id=tag_id,
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:
230
509
 
231
- local_var_params = locals()
510
+ _host = None
232
511
 
233
- all_params = [
234
- 'tag_id'
512
+ _collection_formats: Dict[str, str] = {
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] = [
235
544
  ]
236
- all_params.extend(
237
- [
238
- 'async_req',
239
- '_return_http_data_only',
240
- '_preload_content',
241
- '_request_timeout',
242
- '_request_auth'
545
+
546
+ return self.api_client.param_serialize(
547
+ method='GET',
548
+ resource_path='/api/v2/tag/{tagId}/transactions',
549
+ path_params=_path_params,
550
+ query_params=_query_params,
551
+ header_params=_header_params,
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)]
243
575
  ]
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
244
618
  )
245
619
 
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,
620
+ _response_types_map: Dict[str, Optional[str]] = {
621
+ '200': "bytearray",
622
+ '404': None,
284
623
  }
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
285
654
 
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()
311
655
 
312
656
  :param transaction_id: Transaction id (required)
313
657
  :type transaction_id: str
314
658
  :param name: File name (required)
315
659
  :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
322
660
  :param _request_timeout: timeout setting for this request. If one
323
661
  number provided, it will be total request
324
662
  timeout. It can also be a pair (tuple) of
325
663
  (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
326
679
  :return: Returns the result object.
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
680
+ """ # noqa: E501
681
+
682
+ _param = self._api_v2_transaction_transaction_id_file_get_serialize(
683
+ transaction_id=transaction_id,
684
+ name=name,
685
+ _request_auth=_request_auth,
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
+ )
333
704
 
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
336
705
 
337
- This method makes a synchronous HTTP request by default. To make an
338
- asynchronous HTTP request, please pass async_req=True
706
+ @validate_call
707
+ def api_v2_transaction_transaction_id_file_get_without_preload_content(
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
339
725
 
340
- >>> thread = api.api_v2_transaction_transaction_id_file_get_with_http_info(transaction_id, name, async_req=True)
341
- >>> result = thread.get()
342
726
 
343
727
  :param transaction_id: Transaction id (required)
344
728
  :type transaction_id: str
345
729
  :param name: File name (required)
346
730
  :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
356
731
  :param _request_timeout: timeout setting for this request. If one
357
732
  number provided, it will be total request
358
733
  timeout. It can also be a pair (tuple) of
359
734
  (connection, read) timeouts.
735
+ :type _request_timeout: int, tuple(int, int), optional
360
736
  :param _request_auth: set to override the auth_settings for an a single
361
- request; this effectively ignores the authentication
362
- in the spec for a single request.
737
+ request; this effectively ignores the
738
+ authentication in the spec for a single request.
363
739
  :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
364
750
  :return: Returns the result object.
365
- If the method is called asynchronously,
366
- returns the request thread.
367
- :rtype: tuple(file, status_code(int), headers(HTTPHeaderDict))
368
- """
751
+ """ # noqa: E501
752
+
753
+ _param = self._api_v2_transaction_transaction_id_file_get_serialize(
754
+ transaction_id=transaction_id,
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
369
771
 
370
- local_var_params = locals()
371
772
 
372
- all_params = [
373
- 'transaction_id',
374
- 'name'
773
+ def _api_v2_transaction_transaction_id_file_get_serialize(
774
+ self,
775
+ transaction_id,
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] = [
375
821
  ]
376
- all_params.extend(
377
- [
378
- 'async_req',
379
- '_return_http_data_only',
380
- '_preload_content',
381
- '_request_timeout',
382
- '_request_auth'
822
+
823
+ return self.api_client.param_serialize(
824
+ method='GET',
825
+ resource_path='/api/v2/transaction/{transactionId}/file',
826
+ path_params=_path_params,
827
+ query_params=_query_params,
828
+ header_params=_header_params,
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)]
383
851
  ]
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
384
891
  )
385
892
 
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,
893
+ _response_types_map: Dict[str, Optional[str]] = {
894
+ '200': "TransactionProcessGetResponse",
895
+ '400': None,
896
+ '403': None,
429
897
  }
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
430
927
 
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()
456
928
 
457
929
  :param transaction_id: Transaction id (required)
458
930
  :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
465
931
  :param _request_timeout: timeout setting for this request. If one
466
932
  number provided, it will be total request
467
933
  timeout. It can also be a pair (tuple) of
468
934
  (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
469
950
  :return: Returns the result object.
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
951
+ """ # noqa: E501
952
+
953
+ _param = self._api_v2_transaction_transaction_id_get_serialize(
954
+ transaction_id=transaction_id,
955
+ _request_auth=_request_auth,
956
+ _content_type=_content_type,
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
+ )
476
975
 
477
- def api_v2_transaction_transaction_id_get_with_http_info(self, transaction_id, **kwargs): # noqa: E501
478
- """Get Reprocess transaction data # noqa: E501
479
976
 
480
- This method makes a synchronous HTTP request by default. To make an
481
- asynchronous HTTP request, please pass async_req=True
977
+ @validate_call
978
+ def api_v2_transaction_transaction_id_get_without_preload_content(
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
482
995
 
483
- >>> thread = api.api_v2_transaction_transaction_id_get_with_http_info(transaction_id, async_req=True)
484
- >>> result = thread.get()
485
996
 
486
997
  :param transaction_id: Transaction id (required)
487
998
  :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
497
999
  :param _request_timeout: timeout setting for this request. If one
498
1000
  number provided, it will be total request
499
1001
  timeout. It can also be a pair (tuple) of
500
1002
  (connection, read) timeouts.
1003
+ :type _request_timeout: int, tuple(int, int), optional
501
1004
  :param _request_auth: set to override the auth_settings for an a single
502
- request; this effectively ignores the authentication
503
- in the spec for a single request.
1005
+ request; this effectively ignores the
1006
+ authentication in the spec for a single request.
504
1007
  :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
505
1018
  :return: Returns the result object.
506
- If the method is called asynchronously,
507
- returns the request thread.
508
- :rtype: tuple(TransactionProcessGetResponse, status_code(int), headers(HTTPHeaderDict))
509
- """
1019
+ """ # noqa: E501
1020
+
1021
+ _param = self._api_v2_transaction_transaction_id_get_serialize(
1022
+ transaction_id=transaction_id,
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
510
1039
 
511
- local_var_params = locals()
512
1040
 
513
- all_params = [
514
- 'transaction_id'
1041
+ def _api_v2_transaction_transaction_id_get_serialize(
1042
+ self,
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] = [
515
1084
  ]
516
- all_params.extend(
517
- [
518
- 'async_req',
519
- '_return_http_data_only',
520
- '_preload_content',
521
- '_request_timeout',
522
- '_request_auth'
1085
+
1086
+ return self.api_client.param_serialize(
1087
+ method='GET',
1088
+ resource_path='/api/v2/transaction/{transactionId}',
1089
+ path_params=_path_params,
1090
+ query_params=_query_params,
1091
+ header_params=_header_params,
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)]
523
1115
  ]
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
524
1158
  )
525
1159
 
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,
1160
+ _response_types_map: Dict[str, Optional[str]] = {
1161
+ '200': "TransactionProcessResult",
1162
+ '400': None,
1163
+ '403': None,
564
1164
  }
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
565
1195
 
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()
591
1196
 
592
1197
  :param transaction_id: Transaction id (required)
593
1198
  :type transaction_id: str
594
1199
  :param transaction_process_request: (required)
595
1200
  :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
602
1201
  :param _request_timeout: timeout setting for this request. If one
603
1202
  number provided, it will be total request
604
1203
  timeout. It can also be a pair (tuple) of
605
1204
  (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
606
1220
  :return: Returns the result object.
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
1221
+ """ # noqa: E501
1222
+
1223
+ _param = self._api_v2_transaction_transaction_id_process_post_serialize(
1224
+ transaction_id=transaction_id,
1225
+ transaction_process_request=transaction_process_request,
1226
+ _request_auth=_request_auth,
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
+ )
613
1246
 
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
616
1247
 
617
- This method makes a synchronous HTTP request by default. To make an
618
- asynchronous HTTP request, please pass async_req=True
1248
+ @validate_call
1249
+ def api_v2_transaction_transaction_id_process_post_without_preload_content(
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
619
1267
 
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()
622
1268
 
623
1269
  :param transaction_id: Transaction id (required)
624
1270
  :type transaction_id: str
625
1271
  :param transaction_process_request: (required)
626
1272
  :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
636
1273
  :param _request_timeout: timeout setting for this request. If one
637
1274
  number provided, it will be total request
638
1275
  timeout. It can also be a pair (tuple) of
639
1276
  (connection, read) timeouts.
1277
+ :type _request_timeout: int, tuple(int, int), optional
640
1278
  :param _request_auth: set to override the auth_settings for an a single
641
- request; this effectively ignores the authentication
642
- in the spec for a single request.
1279
+ request; this effectively ignores the
1280
+ authentication in the spec for a single request.
643
1281
  :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
644
1292
  :return: Returns the result object.
645
- If the method is called asynchronously,
646
- returns the request thread.
647
- :rtype: tuple(InlineResponse200, status_code(int), headers(HTTPHeaderDict))
648
- """
1293
+ """ # noqa: E501
1294
+
1295
+ _param = self._api_v2_transaction_transaction_id_process_post_serialize(
1296
+ transaction_id=transaction_id,
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
+ )
649
1303
 
650
- local_var_params = locals()
1304
+ _response_types_map: Dict[str, Optional[str]] = {
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
651
1372
 
652
- all_params = [
653
- 'transaction_id',
654
- 'transaction_process_request'
1373
+ # authentication setting
1374
+ _auth_settings: List[str] = [
655
1375
  ]
656
- all_params.extend(
657
- [
658
- 'async_req',
659
- '_return_http_data_only',
660
- '_preload_content',
661
- '_request_timeout',
662
- '_request_auth'
1376
+
1377
+ return self.api_client.param_serialize(
1378
+ method='POST',
1379
+ resource_path='/api/v2/transaction/{transactionId}/process',
1380
+ path_params=_path_params,
1381
+ query_params=_query_params,
1382
+ header_params=_header_params,
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)]
663
1406
  ]
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
664
1449
  )
665
1450
 
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,
1451
+ _response_types_map: Dict[str, Optional[str]] = {
1452
+ '200': "ProcessResponse",
1453
+ '400': None,
1454
+ '403': None,
714
1455
  }
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
715
1486
 
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()
741
1487
 
742
1488
  :param transaction_id: Transaction id (required)
743
1489
  :type transaction_id: str
744
1490
  :param with_images: With base64 images or url
745
1491
  :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
752
1492
  :param _request_timeout: timeout setting for this request. If one
753
1493
  number provided, it will be total request
754
1494
  timeout. It can also be a pair (tuple) of
755
1495
  (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
756
1511
  :return: Returns the result object.
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
1512
+ """ # noqa: E501
1513
+
1514
+ _param = self._api_v2_transaction_transaction_id_results_get_serialize(
1515
+ transaction_id=transaction_id,
1516
+ with_images=with_images,
1517
+ _request_auth=_request_auth,
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
+ )
763
1537
 
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
766
1538
 
767
- This method makes a synchronous HTTP request by default. To make an
768
- asynchronous HTTP request, please pass async_req=True
1539
+ @validate_call
1540
+ def api_v2_transaction_transaction_id_results_get_without_preload_content(
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
769
1558
 
770
- >>> thread = api.api_v2_transaction_transaction_id_results_get_with_http_info(transaction_id, async_req=True)
771
- >>> result = thread.get()
772
1559
 
773
1560
  :param transaction_id: Transaction id (required)
774
1561
  :type transaction_id: str
775
1562
  :param with_images: With base64 images or url
776
1563
  :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
786
1564
  :param _request_timeout: timeout setting for this request. If one
787
1565
  number provided, it will be total request
788
1566
  timeout. It can also be a pair (tuple) of
789
1567
  (connection, read) timeouts.
1568
+ :type _request_timeout: int, tuple(int, int), optional
790
1569
  :param _request_auth: set to override the auth_settings for an a single
791
- request; this effectively ignores the authentication
792
- in the spec for a single request.
1570
+ request; this effectively ignores the
1571
+ authentication in the spec for a single request.
793
1572
  :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
794
1583
  :return: Returns the result object.
795
- If the method is called asynchronously,
796
- returns the request thread.
797
- :rtype: tuple(InlineResponse2001, status_code(int), headers(HTTPHeaderDict))
798
- """
1584
+ """ # noqa: E501
1585
+
1586
+ _param = self._api_v2_transaction_transaction_id_results_get_serialize(
1587
+ transaction_id=transaction_id,
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
+
799
1606
 
800
- local_var_params = locals()
1607
+ def _api_v2_transaction_transaction_id_results_get_serialize(
1608
+ self,
1609
+ transaction_id,
1610
+ with_images,
1611
+ _request_auth,
1612
+ _content_type,
1613
+ _headers,
1614
+ _host_index,
1615
+ ) -> RequestSerialized:
801
1616
 
802
- all_params = [
803
- 'transaction_id',
804
- 'with_images'
1617
+ _host = None
1618
+
1619
+ _collection_formats: Dict[str, str] = {
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] = [
805
1655
  ]
806
- all_params.extend(
807
- [
808
- 'async_req',
809
- '_return_http_data_only',
810
- '_preload_content',
811
- '_request_timeout',
812
- '_request_auth'
813
- ]
1656
+
1657
+ return self.api_client.param_serialize(
1658
+ method='GET',
1659
+ resource_path='/api/v2/transaction/{transactionId}/results',
1660
+ path_params=_path_params,
1661
+ query_params=_query_params,
1662
+ header_params=_header_params,
1663
+ body=_body_params,
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
814
1670
  )
815
1671
 
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
- }
857
1672
 
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'))