unit-openapi-python-sdk 0.9.0__py3-none-any.whl → 0.11.0__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.
Files changed (541) hide show
  1. unit_finance_sdk/__init__.py +13 -1
  2. unit_finance_sdk/api/__init__.py +1 -0
  3. unit_finance_sdk/api/accounts_api.py +1 -1
  4. unit_finance_sdk/api/application_documents_api.py +2142 -0
  5. unit_finance_sdk/api/applications_api.py +1 -1
  6. unit_finance_sdk/api/cards_api.py +1 -1
  7. unit_finance_sdk/api/check_deposits_api.py +1 -1
  8. unit_finance_sdk/api/counterparties_api.py +1 -1
  9. unit_finance_sdk/api/customers_api.py +1 -1
  10. unit_finance_sdk/api/fees_api.py +1 -1
  11. unit_finance_sdk/api/payments_api.py +1 -1
  12. unit_finance_sdk/api/transactions_api.py +1 -1
  13. unit_finance_sdk/api_client.py +1 -1
  14. unit_finance_sdk/configuration.py +2 -2
  15. unit_finance_sdk/exceptions.py +1 -1
  16. unit_finance_sdk/models/__init__.py +6 -1
  17. unit_finance_sdk/models/account_end_of_day.py +1 -1
  18. unit_finance_sdk/models/account_end_of_day_attributes.py +1 -1
  19. unit_finance_sdk/models/account_end_of_day_relationships.py +1 -1
  20. unit_finance_sdk/models/account_hold.py +1 -1
  21. unit_finance_sdk/models/account_hold_attributes.py +1 -1
  22. unit_finance_sdk/models/account_low_balance_closure_transaction.py +1 -1
  23. unit_finance_sdk/models/account_low_balance_closure_transaction_attributes.py +1 -1
  24. unit_finance_sdk/models/account_low_balance_closure_transaction_relationships.py +1 -1
  25. unit_finance_sdk/models/ach_counterparty.py +1 -1
  26. unit_finance_sdk/models/ach_counterparty_attributes.py +1 -1
  27. unit_finance_sdk/models/ach_payment.py +1 -1
  28. unit_finance_sdk/models/ach_payment_attributes.py +1 -1
  29. unit_finance_sdk/models/ach_payment_relationships.py +1 -1
  30. unit_finance_sdk/models/ach_received_payment.py +1 -1
  31. unit_finance_sdk/models/ach_received_payment_attributes.py +1 -1
  32. unit_finance_sdk/models/ach_received_payment_relationships.py +1 -1
  33. unit_finance_sdk/models/add_account_owners200_response.py +1 -1
  34. unit_finance_sdk/models/add_account_owners_request.py +1 -1
  35. unit_finance_sdk/models/address_type.py +1 -1
  36. unit_finance_sdk/models/adjustment_transaction.py +1 -1
  37. unit_finance_sdk/models/adjustment_transaction_attributes.py +1 -1
  38. unit_finance_sdk/models/annual_income_type.py +1 -1
  39. unit_finance_sdk/models/annual_revenue_type.py +1 -1
  40. unit_finance_sdk/models/application_document.py +1 -1
  41. unit_finance_sdk/models/application_document_attributes.py +1 -1
  42. unit_finance_sdk/models/archive_customer_data.py +1 -1
  43. unit_finance_sdk/models/archive_customer_data_attributes.py +1 -1
  44. unit_finance_sdk/models/archive_customer_request.py +1 -1
  45. unit_finance_sdk/models/atm_transaction.py +1 -1
  46. unit_finance_sdk/models/atm_transaction_attributes.py +1 -1
  47. unit_finance_sdk/models/atm_transaction_relationships.py +1 -1
  48. unit_finance_sdk/models/authorized_user_type.py +1 -1
  49. unit_finance_sdk/models/batch_release.py +1 -1
  50. unit_finance_sdk/models/batch_release_attributes.py +1 -1
  51. unit_finance_sdk/models/batch_release_relationships.py +1 -1
  52. unit_finance_sdk/models/beneficial_owner.py +1 -1
  53. unit_finance_sdk/models/beneficial_owner_attributes.py +1 -1
  54. unit_finance_sdk/models/beneficial_owner_request_type.py +1 -1
  55. unit_finance_sdk/models/beneficial_owner_type.py +1 -1
  56. unit_finance_sdk/models/book_payment.py +1 -1
  57. unit_finance_sdk/models/book_payment_attributes.py +1 -1
  58. unit_finance_sdk/models/book_payment_relationships.py +1 -1
  59. unit_finance_sdk/models/book_transaction.py +1 -1
  60. unit_finance_sdk/models/book_transaction_attributes.py +1 -1
  61. unit_finance_sdk/models/book_transaction_relationships.py +1 -1
  62. unit_finance_sdk/models/business_annual_revenue_type.py +1 -1
  63. unit_finance_sdk/models/business_application.py +1 -1
  64. unit_finance_sdk/models/business_application_attributes.py +1 -1
  65. unit_finance_sdk/models/business_application_relationships.py +1 -1
  66. unit_finance_sdk/models/business_contact_type.py +1 -1
  67. unit_finance_sdk/models/business_credit_card.py +1 -1
  68. unit_finance_sdk/models/business_customer.py +1 -1
  69. unit_finance_sdk/models/business_customer_attributes.py +1 -1
  70. unit_finance_sdk/models/business_customer_relationships.py +1 -1
  71. unit_finance_sdk/models/business_debit_card.py +1 -1
  72. unit_finance_sdk/models/business_debit_card_attributes.py +1 -1
  73. unit_finance_sdk/models/business_number_of_employees_type.py +1 -1
  74. unit_finance_sdk/models/business_vertical_type.py +1 -1
  75. unit_finance_sdk/models/business_virtual_credit_card.py +1 -1
  76. unit_finance_sdk/models/business_virtual_debit_card.py +1 -1
  77. unit_finance_sdk/models/business_virtual_debit_card_attributes.py +1 -1
  78. unit_finance_sdk/models/business_wallet_customer.py +1 -1
  79. unit_finance_sdk/models/business_wallet_customer_attributes.py +1 -1
  80. unit_finance_sdk/models/business_wallet_customer_relationships.py +1 -1
  81. unit_finance_sdk/models/cancel_application201_response.py +1 -1
  82. unit_finance_sdk/models/cancel_application_data.py +1 -1
  83. unit_finance_sdk/models/cancel_application_data_attributes.py +1 -1
  84. unit_finance_sdk/models/cancel_application_request.py +1 -1
  85. unit_finance_sdk/models/cancel_payment200_response.py +1 -1
  86. unit_finance_sdk/models/cancel_payment200_response_data.py +1 -1
  87. unit_finance_sdk/models/card_reversal_transaction.py +1 -1
  88. unit_finance_sdk/models/card_reversal_transaction_attributes.py +1 -1
  89. unit_finance_sdk/models/card_reversal_transaction_relationships.py +1 -1
  90. unit_finance_sdk/models/card_transaction.py +1 -1
  91. unit_finance_sdk/models/card_transaction_attributes.py +1 -1
  92. unit_finance_sdk/models/card_transaction_attributes_card_verification_data.py +1 -1
  93. unit_finance_sdk/models/card_transaction_attributes_merchant.py +1 -1
  94. unit_finance_sdk/models/card_transaction_relationships.py +1 -1
  95. unit_finance_sdk/models/cash_deposit_barcode.py +1 -1
  96. unit_finance_sdk/models/cash_deposit_barcode_attributes.py +1 -1
  97. unit_finance_sdk/models/cash_deposit_barcode_relationships.py +1 -1
  98. unit_finance_sdk/models/cash_deposit_transaction.py +1 -1
  99. unit_finance_sdk/models/cash_deposit_transaction_attributes.py +1 -1
  100. unit_finance_sdk/models/cash_flow_type.py +1 -1
  101. unit_finance_sdk/models/chargeback_transaction.py +1 -1
  102. unit_finance_sdk/models/chargeback_transaction_attributes.py +1 -1
  103. unit_finance_sdk/models/chargeback_transaction_relationships.py +1 -1
  104. unit_finance_sdk/models/check_counterparty_type.py +1 -1
  105. unit_finance_sdk/models/check_deposit.py +1 -1
  106. unit_finance_sdk/models/check_deposit_attributes.py +1 -1
  107. unit_finance_sdk/models/check_deposit_relationships.py +1 -1
  108. unit_finance_sdk/models/check_deposit_transaction.py +1 -1
  109. unit_finance_sdk/models/check_deposit_transaction_attributes.py +1 -1
  110. unit_finance_sdk/models/check_deposit_transaction_relationships.py +1 -1
  111. unit_finance_sdk/models/check_payment_transaction.py +1 -1
  112. unit_finance_sdk/models/check_payment_transaction_relationships.py +1 -1
  113. unit_finance_sdk/models/clear_ach_debit_payment200_response.py +1 -1
  114. unit_finance_sdk/models/close_account_request.py +1 -1
  115. unit_finance_sdk/models/close_card200_response.py +1 -1
  116. unit_finance_sdk/models/close_credit_account_data.py +1 -1
  117. unit_finance_sdk/models/close_credit_account_data_attributes.py +1 -1
  118. unit_finance_sdk/models/close_credit_account_request.py +1 -1
  119. unit_finance_sdk/models/close_deposit_account_data.py +1 -1
  120. unit_finance_sdk/models/close_deposit_account_data_attributes.py +1 -1
  121. unit_finance_sdk/models/close_deposit_account_request.py +1 -1
  122. unit_finance_sdk/models/close_wallet_data.py +1 -1
  123. unit_finance_sdk/models/close_wallet_data_attributes.py +1 -1
  124. unit_finance_sdk/models/close_wallet_request.py +1 -1
  125. unit_finance_sdk/models/coordinates_type.py +1 -1
  126. unit_finance_sdk/models/counterparty_balance.py +1 -1
  127. unit_finance_sdk/models/counterparty_balance_attributes.py +1 -1
  128. unit_finance_sdk/models/counterparty_balance_relationships.py +1 -1
  129. unit_finance_sdk/models/counterparty_type.py +1 -1
  130. unit_finance_sdk/models/create_a_book_payment_data.py +1 -1
  131. unit_finance_sdk/models/create_a_book_payment_data_attributes.py +1 -1
  132. unit_finance_sdk/models/create_a_book_payment_data_relationships.py +1 -1
  133. unit_finance_sdk/models/create_a_book_payment_request.py +1 -1
  134. unit_finance_sdk/models/create_a_wire_payment_data.py +1 -1
  135. unit_finance_sdk/models/create_a_wire_payment_data_attributes.py +1 -1
  136. unit_finance_sdk/models/create_a_wire_payment_request.py +1 -1
  137. unit_finance_sdk/models/create_account201_response.py +1 -1
  138. unit_finance_sdk/models/create_account_hold201_response.py +1 -1
  139. unit_finance_sdk/models/create_account_hold_data.py +1 -1
  140. unit_finance_sdk/models/create_account_hold_data_attributes.py +1 -1
  141. unit_finance_sdk/models/create_account_hold_request.py +1 -1
  142. unit_finance_sdk/models/create_account_request.py +1 -1
  143. unit_finance_sdk/models/create_ach_payment_data.py +1 -1
  144. unit_finance_sdk/models/create_ach_payment_data_attributes.py +1 -1
  145. unit_finance_sdk/models/create_ach_payment_existing_counterparty_data.py +1 -1
  146. unit_finance_sdk/models/create_ach_payment_existing_counterparty_data_attributes.py +1 -1
  147. unit_finance_sdk/models/create_ach_payment_existing_counterparty_data_relationships.py +1 -1
  148. unit_finance_sdk/models/create_ach_payment_existing_counterparty_request.py +1 -1
  149. unit_finance_sdk/models/create_ach_payment_plaid_token_data.py +1 -1
  150. unit_finance_sdk/models/create_ach_payment_plaid_token_data_attributes.py +1 -1
  151. unit_finance_sdk/models/create_ach_payment_plaid_token_request.py +1 -1
  152. unit_finance_sdk/models/create_ach_payment_request.py +1 -1
  153. unit_finance_sdk/models/create_application201_response.py +1 -1
  154. unit_finance_sdk/models/create_application201_response_included_inner.py +1 -1
  155. unit_finance_sdk/models/create_application_document200_response.py +105 -0
  156. unit_finance_sdk/models/create_application_request.py +1 -1
  157. unit_finance_sdk/models/create_batch_releases201_response.py +1 -1
  158. unit_finance_sdk/models/create_batch_releases_data.py +1 -1
  159. unit_finance_sdk/models/create_batch_releases_data_attributes.py +1 -1
  160. unit_finance_sdk/models/create_batch_releases_request.py +1 -1
  161. unit_finance_sdk/models/create_bulk_payment201_response.py +1 -1
  162. unit_finance_sdk/models/create_bulk_payment201_response_data.py +1 -1
  163. unit_finance_sdk/models/create_bulk_payment201_response_data_attributes.py +1 -1
  164. unit_finance_sdk/models/create_bulk_payment_request.py +1 -1
  165. unit_finance_sdk/models/create_bulk_payment_request_data_inner.py +1 -1
  166. unit_finance_sdk/models/create_business_application_data.py +1 -1
  167. unit_finance_sdk/models/create_business_application_data_attributes.py +1 -1
  168. unit_finance_sdk/models/create_business_application_request.py +1 -1
  169. unit_finance_sdk/models/create_business_credit_card_data.py +1 -1
  170. unit_finance_sdk/models/create_business_credit_card_data_attributes.py +1 -1
  171. unit_finance_sdk/models/create_business_credit_card_request.py +1 -1
  172. unit_finance_sdk/models/create_business_debit_card_data.py +1 -1
  173. unit_finance_sdk/models/create_business_debit_card_request.py +1 -1
  174. unit_finance_sdk/models/create_business_virtual_credit_card_data.py +1 -1
  175. unit_finance_sdk/models/create_business_virtual_credit_card_data_attributes.py +1 -1
  176. unit_finance_sdk/models/create_business_virtual_credit_card_request.py +1 -1
  177. unit_finance_sdk/models/create_business_virtual_debit_card_data.py +1 -1
  178. unit_finance_sdk/models/create_business_virtual_debit_card_data_attributes.py +1 -1
  179. unit_finance_sdk/models/create_business_virtual_debit_card_request.py +1 -1
  180. unit_finance_sdk/models/create_business_wallet_customer201_response.py +1 -1
  181. unit_finance_sdk/models/create_business_wallet_customer_data.py +1 -1
  182. unit_finance_sdk/models/create_business_wallet_customer_data_attributes.py +1 -1
  183. unit_finance_sdk/models/create_business_wallet_customer_request.py +1 -1
  184. unit_finance_sdk/models/create_card201_response.py +1 -1
  185. unit_finance_sdk/models/create_card201_response_data.py +1 -1
  186. unit_finance_sdk/models/create_card_request.py +1 -1
  187. unit_finance_sdk/models/create_check_deposit201_response.py +1 -1
  188. unit_finance_sdk/models/create_check_deposit_data.py +1 -1
  189. unit_finance_sdk/models/create_check_deposit_data_attributes.py +1 -1
  190. unit_finance_sdk/models/create_check_deposit_request.py +1 -1
  191. unit_finance_sdk/models/create_check_deposit_send_link201_response.py +1 -1
  192. unit_finance_sdk/models/create_check_deposit_send_link201_response_data.py +1 -1
  193. unit_finance_sdk/models/create_check_deposit_send_link_data.py +1 -1
  194. unit_finance_sdk/models/create_check_deposit_send_link_data_attributes.py +1 -1
  195. unit_finance_sdk/models/create_check_deposit_send_link_data_relationships.py +1 -1
  196. unit_finance_sdk/models/create_check_deposit_send_link_request.py +1 -1
  197. unit_finance_sdk/models/create_counterparty201_response.py +1 -1
  198. unit_finance_sdk/models/create_counterparty_body.py +1 -1
  199. unit_finance_sdk/models/create_counterparty_data.py +1 -1
  200. unit_finance_sdk/models/create_counterparty_data_attributes.py +1 -1
  201. unit_finance_sdk/models/create_counterparty_request.py +1 -1
  202. unit_finance_sdk/models/create_counterparty_with_plaid_token_data.py +1 -1
  203. unit_finance_sdk/models/create_counterparty_with_plaid_token_data_attributes.py +1 -1
  204. unit_finance_sdk/models/create_counterparty_with_plaid_token_request.py +1 -1
  205. unit_finance_sdk/models/create_credit_account_data.py +1 -1
  206. unit_finance_sdk/models/create_credit_account_data_attributes.py +1 -1
  207. unit_finance_sdk/models/create_credit_account_request.py +1 -1
  208. unit_finance_sdk/models/create_deposit_account_data.py +1 -1
  209. unit_finance_sdk/models/create_deposit_account_data_attributes.py +1 -1
  210. unit_finance_sdk/models/create_deposit_account_data_relationships.py +1 -1
  211. unit_finance_sdk/models/create_deposit_account_request.py +1 -1
  212. unit_finance_sdk/models/create_fee201_response.py +1 -1
  213. unit_finance_sdk/models/create_fee_data.py +1 -1
  214. unit_finance_sdk/models/create_fee_data_attributes.py +1 -1
  215. unit_finance_sdk/models/create_fee_data_relationships.py +1 -1
  216. unit_finance_sdk/models/create_fee_request.py +1 -1
  217. unit_finance_sdk/models/create_individual_application_data.py +1 -1
  218. unit_finance_sdk/models/create_individual_application_data_attributes.py +1 -1
  219. unit_finance_sdk/models/create_individual_application_request.py +1 -1
  220. unit_finance_sdk/models/create_individual_debit_card_data.py +1 -1
  221. unit_finance_sdk/models/create_individual_debit_card_data_attributes.py +1 -1
  222. unit_finance_sdk/models/create_individual_debit_card_request.py +1 -1
  223. unit_finance_sdk/models/create_individual_virtual_debit_card_data.py +1 -1
  224. unit_finance_sdk/models/create_individual_virtual_debit_card_data_attributes.py +1 -1
  225. unit_finance_sdk/models/create_individual_virtual_debit_card_request.py +1 -1
  226. unit_finance_sdk/models/create_payment201_response.py +1 -1
  227. unit_finance_sdk/models/create_payment201_response_data.py +1 -1
  228. unit_finance_sdk/models/create_payment_request.py +1 -1
  229. unit_finance_sdk/models/create_recurring_credit_ach_payment_data.py +1 -1
  230. unit_finance_sdk/models/create_recurring_credit_ach_payment_data_attributes.py +1 -1
  231. unit_finance_sdk/models/create_recurring_credit_ach_payment_request.py +1 -1
  232. unit_finance_sdk/models/create_recurring_credit_book_payment_data.py +1 -1
  233. unit_finance_sdk/models/create_recurring_credit_book_payment_data_attributes.py +1 -1
  234. unit_finance_sdk/models/create_recurring_credit_book_payment_request.py +1 -1
  235. unit_finance_sdk/models/create_recurring_debit_ach_payment_data.py +1 -1
  236. unit_finance_sdk/models/create_recurring_debit_ach_payment_data_attributes.py +1 -1
  237. unit_finance_sdk/models/create_recurring_debit_ach_payment_request.py +1 -1
  238. unit_finance_sdk/models/create_recurring_payment201_response.py +1 -1
  239. unit_finance_sdk/models/create_recurring_payment_request.py +1 -1
  240. unit_finance_sdk/models/create_schedule_type.py +1 -1
  241. unit_finance_sdk/models/create_sole_proprietor_application_data.py +1 -1
  242. unit_finance_sdk/models/create_sole_proprietor_application_data_attributes.py +1 -1
  243. unit_finance_sdk/models/create_sole_proprietor_application_request.py +1 -1
  244. unit_finance_sdk/models/create_wallet_data.py +1 -1
  245. unit_finance_sdk/models/create_wallet_data_attributes.py +1 -1
  246. unit_finance_sdk/models/create_wallet_request.py +1 -1
  247. unit_finance_sdk/models/credit_account.py +1 -1
  248. unit_finance_sdk/models/credit_account_attributes.py +1 -1
  249. unit_finance_sdk/models/credit_account_relationships.py +1 -1
  250. unit_finance_sdk/models/currency_conversion_type.py +1 -1
  251. unit_finance_sdk/models/deposit_account.py +1 -1
  252. unit_finance_sdk/models/deposit_account_attributes.py +1 -1
  253. unit_finance_sdk/models/deposit_account_relationships.py +1 -1
  254. unit_finance_sdk/models/device_fingerprint_type.py +1 -1
  255. unit_finance_sdk/models/dishonored_ach_transaction.py +1 -1
  256. unit_finance_sdk/models/dishonored_ach_transaction_attributes.py +1 -1
  257. unit_finance_sdk/models/dispute_transaction.py +1 -1
  258. unit_finance_sdk/models/dispute_transaction_attributes.py +1 -1
  259. unit_finance_sdk/models/dispute_transaction_relationships.py +1 -1
  260. unit_finance_sdk/models/error_document.py +1 -1
  261. unit_finance_sdk/models/error_document_errors_inner.py +1 -1
  262. unit_finance_sdk/models/error_document_errors_inner_source.py +1 -1
  263. unit_finance_sdk/models/fee.py +1 -1
  264. unit_finance_sdk/models/fee_attributes.py +1 -1
  265. unit_finance_sdk/models/fee_relationships.py +1 -1
  266. unit_finance_sdk/models/fee_reversal.py +1 -1
  267. unit_finance_sdk/models/fee_reversal_attributes.py +1 -1
  268. unit_finance_sdk/models/fee_reversal_relationships.py +1 -1
  269. unit_finance_sdk/models/fee_reversal_transaction.py +1 -1
  270. unit_finance_sdk/models/fee_reversal_transaction_relationships.py +1 -1
  271. unit_finance_sdk/models/fee_transaction.py +1 -1
  272. unit_finance_sdk/models/freeze_account_request.py +1 -1
  273. unit_finance_sdk/models/freeze_card_data.py +1 -1
  274. unit_finance_sdk/models/freeze_card_data_attributes.py +1 -1
  275. unit_finance_sdk/models/freeze_card_request.py +1 -1
  276. unit_finance_sdk/models/freeze_credit_account_data.py +1 -1
  277. unit_finance_sdk/models/freeze_credit_account_request.py +1 -1
  278. unit_finance_sdk/models/freeze_deposit_account_data.py +1 -1
  279. unit_finance_sdk/models/freeze_deposit_account_data_attributes.py +1 -1
  280. unit_finance_sdk/models/freeze_deposit_account_request.py +1 -1
  281. unit_finance_sdk/models/freeze_wallet_data.py +1 -1
  282. unit_finance_sdk/models/freeze_wallet_data_attributes.py +1 -1
  283. unit_finance_sdk/models/freeze_wallet_request.py +1 -1
  284. unit_finance_sdk/models/full_name_type.py +1 -1
  285. unit_finance_sdk/models/generate_barcode_data.py +1 -1
  286. unit_finance_sdk/models/generate_barcode_data_attributes.py +1 -1
  287. unit_finance_sdk/models/generate_barcode_data_relationships.py +1 -1
  288. unit_finance_sdk/models/generate_cash_deposit_barcode200_response.py +1 -1
  289. unit_finance_sdk/models/generate_cash_deposit_barcode_request.py +1 -1
  290. unit_finance_sdk/models/get_account_balance_history200_response.py +1 -1
  291. unit_finance_sdk/models/get_account_limits200_response.py +1 -1
  292. unit_finance_sdk/models/get_account_limits200_response_data.py +1 -1
  293. unit_finance_sdk/models/get_available_deposit_products200_response.py +1 -1
  294. unit_finance_sdk/models/get_available_deposit_products200_response_data_inner.py +1 -1
  295. unit_finance_sdk/models/get_available_deposit_products200_response_data_inner_attributes.py +1 -1
  296. unit_finance_sdk/models/get_card200_response.py +1 -1
  297. unit_finance_sdk/models/get_card_pin_status200_response.py +1 -1
  298. unit_finance_sdk/models/get_check_deposit200_response.py +1 -1
  299. unit_finance_sdk/models/get_counterparty_balance200_response.py +1 -1
  300. unit_finance_sdk/models/get_customer200_response.py +1 -1
  301. unit_finance_sdk/models/get_expected_ach_completion_date200_response.py +1 -1
  302. unit_finance_sdk/models/get_expected_ach_completion_date200_response_data.py +1 -1
  303. unit_finance_sdk/models/get_expected_ach_completion_date_data.py +1 -1
  304. unit_finance_sdk/models/get_expected_ach_completion_date_data_attributes.py +1 -1
  305. unit_finance_sdk/models/get_expected_ach_completion_date_request.py +1 -1
  306. unit_finance_sdk/models/get_received_payment200_response.py +1 -1
  307. unit_finance_sdk/models/get_transaction200_response.py +1 -1
  308. unit_finance_sdk/models/get_wire_drawdown200_response.py +1 -1
  309. unit_finance_sdk/models/individual_application.py +1 -1
  310. unit_finance_sdk/models/individual_application_attributes.py +1 -1
  311. unit_finance_sdk/models/individual_application_relationships.py +1 -1
  312. unit_finance_sdk/models/individual_customer.py +1 -1
  313. unit_finance_sdk/models/individual_customer_relationships.py +1 -1
  314. unit_finance_sdk/models/individual_debit_card.py +1 -1
  315. unit_finance_sdk/models/individual_debit_card_attributes.py +1 -1
  316. unit_finance_sdk/models/individual_virtual_debit_card.py +1 -1
  317. unit_finance_sdk/models/individual_virtual_debit_card_attributes.py +1 -1
  318. unit_finance_sdk/models/industry_type.py +1 -1
  319. unit_finance_sdk/models/interest_share_transaction.py +1 -1
  320. unit_finance_sdk/models/interest_share_transaction_relationships.py +1 -1
  321. unit_finance_sdk/models/interest_transaction.py +1 -1
  322. unit_finance_sdk/models/list200_response.py +1 -1
  323. unit_finance_sdk/models/list200_response_data_inner.py +1 -1
  324. unit_finance_sdk/models/list_account_holds200_response.py +1 -1
  325. unit_finance_sdk/models/list_accounts200_response.py +1 -1
  326. unit_finance_sdk/models/list_accounts200_response_data_inner.py +1 -1
  327. unit_finance_sdk/models/list_application_documents200_response.py +109 -0
  328. unit_finance_sdk/models/list_cards200_response.py +1 -1
  329. unit_finance_sdk/models/list_cards200_response_data_inner.py +1 -1
  330. unit_finance_sdk/models/list_check_deposits200_response.py +1 -1
  331. unit_finance_sdk/models/list_counterparties200_response.py +1 -1
  332. unit_finance_sdk/models/list_customers200_response.py +1 -1
  333. unit_finance_sdk/models/list_customers200_response_data_inner.py +1 -1
  334. unit_finance_sdk/models/list_received_payments200_response.py +1 -1
  335. unit_finance_sdk/models/list_received_payments200_response_data_inner.py +1 -1
  336. unit_finance_sdk/models/list_recurring_payments200_response.py +1 -1
  337. unit_finance_sdk/models/list_recurring_payments200_response_data_inner.py +1 -1
  338. unit_finance_sdk/models/list_store_locations200_response.py +1 -1
  339. unit_finance_sdk/models/list_transactions200_response.py +1 -1
  340. unit_finance_sdk/models/list_transactions200_response_included_inner.py +1 -1
  341. unit_finance_sdk/models/list_wire_drawdowns200_response.py +1 -1
  342. unit_finance_sdk/models/meta.py +1 -1
  343. unit_finance_sdk/models/meta_pagination.py +1 -1
  344. unit_finance_sdk/models/negative_balance_coverage_transaction.py +1 -1
  345. unit_finance_sdk/models/number_of_employees_type.py +1 -1
  346. unit_finance_sdk/models/occupation_type.py +1 -1
  347. unit_finance_sdk/models/officer.py +1 -1
  348. unit_finance_sdk/models/officer_attributes.py +1 -1
  349. unit_finance_sdk/models/officer_relationships.py +1 -1
  350. unit_finance_sdk/models/officer_request_type.py +1 -1
  351. unit_finance_sdk/models/officer_type.py +1 -1
  352. unit_finance_sdk/models/originated_ach_transaction.py +1 -1
  353. unit_finance_sdk/models/originated_ach_transaction_attributes.py +1 -1
  354. unit_finance_sdk/models/originated_ach_transaction_relationships.py +1 -1
  355. unit_finance_sdk/models/payment_advance_transaction.py +1 -1
  356. unit_finance_sdk/models/payment_advance_transaction_attributes.py +1 -1
  357. unit_finance_sdk/models/payment_advance_transaction_relationships.py +1 -1
  358. unit_finance_sdk/models/payment_canceled_transaction.py +1 -1
  359. unit_finance_sdk/models/payment_canceled_transaction_relationships.py +1 -1
  360. unit_finance_sdk/models/phone_type.py +1 -1
  361. unit_finance_sdk/models/pin_status.py +1 -1
  362. unit_finance_sdk/models/pin_status_attributes.py +1 -1
  363. unit_finance_sdk/models/product_type.py +1 -1
  364. unit_finance_sdk/models/purchase_transaction.py +1 -1
  365. unit_finance_sdk/models/purchase_transaction_attributes.py +1 -1
  366. unit_finance_sdk/models/purchase_transaction_attributes_merchant.py +1 -1
  367. unit_finance_sdk/models/purchase_transaction_relationships.py +1 -1
  368. unit_finance_sdk/models/push_to_card_reversal_transaction.py +1 -1
  369. unit_finance_sdk/models/push_to_card_reversal_transaction_relationships.py +1 -1
  370. unit_finance_sdk/models/push_to_card_transaction.py +1 -1
  371. unit_finance_sdk/models/push_to_card_transaction_relationships.py +1 -1
  372. unit_finance_sdk/models/real_time_counterparty_type.py +1 -1
  373. unit_finance_sdk/models/realtime_received_payment.py +1 -1
  374. unit_finance_sdk/models/realtime_received_payment_attributes.py +1 -1
  375. unit_finance_sdk/models/realtime_received_payment_relationships.py +1 -1
  376. unit_finance_sdk/models/received_ach_transaction.py +1 -1
  377. unit_finance_sdk/models/received_ach_transaction_attributes.py +1 -1
  378. unit_finance_sdk/models/recurring_credit_ach_payment.py +1 -1
  379. unit_finance_sdk/models/recurring_credit_ach_payment_attributes.py +1 -1
  380. unit_finance_sdk/models/recurring_credit_ach_payment_relationships.py +1 -1
  381. unit_finance_sdk/models/recurring_credit_book_payment.py +1 -1
  382. unit_finance_sdk/models/recurring_credit_book_payment_attributes.py +1 -1
  383. unit_finance_sdk/models/recurring_credit_book_payment_relationships.py +1 -1
  384. unit_finance_sdk/models/recurring_debit_ach_payment.py +1 -1
  385. unit_finance_sdk/models/relationship.py +1 -1
  386. unit_finance_sdk/models/relationship_data.py +1 -1
  387. unit_finance_sdk/models/release_account_hold_data.py +1 -1
  388. unit_finance_sdk/models/release_account_hold_data_attributes.py +1 -1
  389. unit_finance_sdk/models/release_account_hold_request.py +1 -1
  390. unit_finance_sdk/models/release_transaction.py +1 -1
  391. unit_finance_sdk/models/release_transaction_attributes.py +1 -1
  392. unit_finance_sdk/models/remove_account_owners_request.py +1 -1
  393. unit_finance_sdk/models/reopen_account200_response.py +1 -1
  394. unit_finance_sdk/models/reopen_account200_response_data.py +1 -1
  395. unit_finance_sdk/models/repaid_payment_advance_transaction.py +1 -1
  396. unit_finance_sdk/models/repaid_payment_advance_transaction_attributes.py +1 -1
  397. unit_finance_sdk/models/repaid_payment_advance_transaction_relationships.py +1 -1
  398. unit_finance_sdk/models/replace_card200_response.py +1 -1
  399. unit_finance_sdk/models/replace_card200_response_data.py +1 -1
  400. unit_finance_sdk/models/replace_card_data.py +1 -1
  401. unit_finance_sdk/models/replace_card_data_attributes.py +1 -1
  402. unit_finance_sdk/models/replace_card_request.py +1 -1
  403. unit_finance_sdk/models/requested_product_type.py +1 -1
  404. unit_finance_sdk/models/resource_identifier.py +1 -1
  405. unit_finance_sdk/models/returned_ach_transaction.py +1 -1
  406. unit_finance_sdk/models/returned_ach_transaction_attributes.py +1 -1
  407. unit_finance_sdk/models/returned_ach_transaction_relationships.py +1 -1
  408. unit_finance_sdk/models/returned_check_deposit_transaction.py +1 -1
  409. unit_finance_sdk/models/returned_check_deposit_transaction_attributes.py +1 -1
  410. unit_finance_sdk/models/returned_check_payment_transaction.py +1 -1
  411. unit_finance_sdk/models/returned_check_payment_transaction_attributes.py +1 -1
  412. unit_finance_sdk/models/returned_received_ach_transaction.py +1 -1
  413. unit_finance_sdk/models/returned_received_ach_transaction_attributes.py +1 -1
  414. unit_finance_sdk/models/returned_received_ach_transaction_relationships.py +1 -1
  415. unit_finance_sdk/models/returned_wire_transaction.py +1 -1
  416. unit_finance_sdk/models/returned_wire_transaction_attributes.py +1 -1
  417. unit_finance_sdk/models/reverse_fee201_response.py +1 -1
  418. unit_finance_sdk/models/reverse_fee_data.py +1 -1
  419. unit_finance_sdk/models/reverse_fee_data_attributes.py +1 -1
  420. unit_finance_sdk/models/reverse_fee_data_relationships.py +1 -1
  421. unit_finance_sdk/models/reverse_fee_request.py +1 -1
  422. unit_finance_sdk/models/reward_transaction.py +1 -1
  423. unit_finance_sdk/models/reward_transaction_attributes.py +1 -1
  424. unit_finance_sdk/models/reward_transaction_relationships.py +1 -1
  425. unit_finance_sdk/models/rich_merchant_data_type.py +1 -1
  426. unit_finance_sdk/models/rich_merchant_data_type_address.py +1 -1
  427. unit_finance_sdk/models/rich_merchant_data_type_categories_inner.py +1 -1
  428. unit_finance_sdk/models/schedule_type.py +1 -1
  429. unit_finance_sdk/models/send_drawdown_payment200_response.py +1 -1
  430. unit_finance_sdk/models/send_drawdown_payment_data.py +1 -1
  431. unit_finance_sdk/models/send_drawdown_payment_data_attributes.py +1 -1
  432. unit_finance_sdk/models/send_drawdown_payment_request.py +1 -1
  433. unit_finance_sdk/models/sole_proprietor_annual_revenue_type.py +1 -1
  434. unit_finance_sdk/models/sole_proprietor_number_of_employees_type.py +1 -1
  435. unit_finance_sdk/models/source_of_income_type.py +1 -1
  436. unit_finance_sdk/models/store_location.py +1 -1
  437. unit_finance_sdk/models/store_location_attributes.py +1 -1
  438. unit_finance_sdk/models/to_many_relationship.py +1 -1
  439. unit_finance_sdk/models/total_accrued_interest_type.py +1 -1
  440. unit_finance_sdk/models/transaction.py +1 -1
  441. unit_finance_sdk/models/update_account_request.py +1 -1
  442. unit_finance_sdk/models/update_ach_payment_data.py +1 -1
  443. unit_finance_sdk/models/update_ach_payment_data_attributes.py +1 -1
  444. unit_finance_sdk/models/update_ach_payment_request.py +1 -1
  445. unit_finance_sdk/models/update_ach_received_payment_data.py +1 -1
  446. unit_finance_sdk/models/update_ach_received_payment_data_attributes.py +1 -1
  447. unit_finance_sdk/models/update_ach_received_payment_request.py +1 -1
  448. unit_finance_sdk/models/update_application_request.py +1 -1
  449. unit_finance_sdk/models/update_book_payment_data.py +1 -1
  450. unit_finance_sdk/models/update_book_payment_data_attributes.py +1 -1
  451. unit_finance_sdk/models/update_book_payment_request.py +1 -1
  452. unit_finance_sdk/models/update_book_transaction_data.py +1 -1
  453. unit_finance_sdk/models/update_book_transaction_data_attributes.py +1 -1
  454. unit_finance_sdk/models/update_book_transaction_request.py +1 -1
  455. unit_finance_sdk/models/update_business_application_data.py +1 -1
  456. unit_finance_sdk/models/update_business_application_data_attributes.py +1 -1
  457. unit_finance_sdk/models/update_business_application_request.py +1 -1
  458. unit_finance_sdk/models/update_business_beneficial_owner201_response.py +1 -1
  459. unit_finance_sdk/models/update_business_beneficial_owner_data.py +1 -1
  460. unit_finance_sdk/models/update_business_beneficial_owner_data_attributes.py +1 -1
  461. unit_finance_sdk/models/update_business_beneficial_owner_data_relationships.py +1 -1
  462. unit_finance_sdk/models/update_business_beneficial_owner_request.py +1 -1
  463. unit_finance_sdk/models/update_business_customer_data.py +1 -1
  464. unit_finance_sdk/models/update_business_customer_data_attributes.py +1 -1
  465. unit_finance_sdk/models/update_business_customer_officer200_response.py +1 -1
  466. unit_finance_sdk/models/update_business_customer_officer_data.py +1 -1
  467. unit_finance_sdk/models/update_business_customer_officer_data_attributes.py +1 -1
  468. unit_finance_sdk/models/update_business_customer_officer_request.py +1 -1
  469. unit_finance_sdk/models/update_business_customer_request.py +1 -1
  470. unit_finance_sdk/models/update_business_officer_data.py +1 -1
  471. unit_finance_sdk/models/update_business_officer_data_attributes.py +1 -1
  472. unit_finance_sdk/models/update_business_officer_request.py +1 -1
  473. unit_finance_sdk/models/update_card200_response.py +1 -1
  474. unit_finance_sdk/models/update_card200_response_data.py +1 -1
  475. unit_finance_sdk/models/update_card_data.py +1 -1
  476. unit_finance_sdk/models/update_card_data_attributes.py +1 -1
  477. unit_finance_sdk/models/update_card_request.py +1 -1
  478. unit_finance_sdk/models/update_chargeback_transaction_data.py +1 -1
  479. unit_finance_sdk/models/update_chargeback_transaction_data_attributes.py +1 -1
  480. unit_finance_sdk/models/update_chargeback_transaction_request.py +1 -1
  481. unit_finance_sdk/models/update_check_deposit_request.py +1 -1
  482. unit_finance_sdk/models/update_counterparty200_response.py +1 -1
  483. unit_finance_sdk/models/update_counterparty_data.py +1 -1
  484. unit_finance_sdk/models/update_counterparty_data_attributes.py +1 -1
  485. unit_finance_sdk/models/update_counterparty_request.py +1 -1
  486. unit_finance_sdk/models/update_credit_account_data.py +1 -1
  487. unit_finance_sdk/models/update_credit_account_data_attributes.py +1 -1
  488. unit_finance_sdk/models/update_credit_account_request.py +1 -1
  489. unit_finance_sdk/models/update_customer200_response.py +1 -1
  490. unit_finance_sdk/models/update_customer_request.py +1 -1
  491. unit_finance_sdk/models/update_data.py +1 -1
  492. unit_finance_sdk/models/update_data_attributes.py +1 -1
  493. unit_finance_sdk/models/update_deposit_account_data.py +1 -1
  494. unit_finance_sdk/models/update_deposit_account_data_attributes.py +1 -1
  495. unit_finance_sdk/models/update_deposit_account_request.py +1 -1
  496. unit_finance_sdk/models/update_individual_application_data.py +1 -1
  497. unit_finance_sdk/models/update_individual_application_data_attributes.py +1 -1
  498. unit_finance_sdk/models/update_individual_application_request.py +1 -1
  499. unit_finance_sdk/models/update_individual_customer_data.py +1 -1
  500. unit_finance_sdk/models/update_individual_customer_data_attributes.py +1 -1
  501. unit_finance_sdk/models/update_individual_customer_request.py +1 -1
  502. unit_finance_sdk/models/update_payment200_response.py +1 -1
  503. unit_finance_sdk/models/update_payment200_response_data.py +1 -1
  504. unit_finance_sdk/models/update_payment_request.py +1 -1
  505. unit_finance_sdk/models/update_realtime_received_payment_data.py +1 -1
  506. unit_finance_sdk/models/update_realtime_received_payment_request.py +1 -1
  507. unit_finance_sdk/models/update_received_payment200_response.py +1 -1
  508. unit_finance_sdk/models/update_received_payment_request.py +1 -1
  509. unit_finance_sdk/models/update_sole_proprietor_application_data.py +1 -1
  510. unit_finance_sdk/models/update_sole_proprietor_application_data_attributes.py +1 -1
  511. unit_finance_sdk/models/update_sole_proprietor_application_request.py +1 -1
  512. unit_finance_sdk/models/update_tags_data.py +1 -1
  513. unit_finance_sdk/models/update_tags_data_attributes.py +1 -1
  514. unit_finance_sdk/models/update_tags_request.py +1 -1
  515. unit_finance_sdk/models/update_transaction200_response.py +1 -1
  516. unit_finance_sdk/models/update_transaction_request.py +1 -1
  517. unit_finance_sdk/models/update_wallet_data.py +1 -1
  518. unit_finance_sdk/models/update_wallet_data_attributes.py +1 -1
  519. unit_finance_sdk/models/update_wallet_request.py +1 -1
  520. unit_finance_sdk/models/verify_document_data.py +114 -0
  521. unit_finance_sdk/models/verify_document_data_attributes.py +101 -0
  522. unit_finance_sdk/models/verify_document_request.py +105 -0
  523. unit_finance_sdk/models/wallet_account.py +1 -1
  524. unit_finance_sdk/models/wallet_account_attributes.py +1 -1
  525. unit_finance_sdk/models/wire_counterparty_type.py +1 -1
  526. unit_finance_sdk/models/wire_drawdown.py +1 -1
  527. unit_finance_sdk/models/wire_drawdown_attributes.py +1 -1
  528. unit_finance_sdk/models/wire_drawdown_relationships.py +1 -1
  529. unit_finance_sdk/models/wire_payment.py +1 -1
  530. unit_finance_sdk/models/wire_payment_attributes.py +1 -1
  531. unit_finance_sdk/models/wire_payment_relationships.py +1 -1
  532. unit_finance_sdk/models/wire_transaction.py +1 -1
  533. unit_finance_sdk/models/wire_transaction_attributes.py +1 -1
  534. unit_finance_sdk/models/write_off_transaction.py +1 -1
  535. unit_finance_sdk/rest.py +1 -1
  536. unit_openapi_python_sdk-0.11.0.dist-info/METADATA +97 -0
  537. unit_openapi_python_sdk-0.11.0.dist-info/RECORD +541 -0
  538. unit_openapi_python_sdk-0.9.0.dist-info/METADATA +0 -730
  539. unit_openapi_python_sdk-0.9.0.dist-info/RECORD +0 -535
  540. {unit_openapi_python_sdk-0.9.0.dist-info → unit_openapi_python_sdk-0.11.0.dist-info}/WHEEL +0 -0
  541. {unit_openapi_python_sdk-0.9.0.dist-info → unit_openapi_python_sdk-0.11.0.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,2142 @@
1
+ """
2
+ Unit API
3
+
4
+ JSON:API-compliant banking API.
5
+
6
+ The version of the OpenAPI document: 0.10.0
7
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+
9
+ Do not edit the class manually.
10
+ """ # noqa: E501
11
+
12
+
13
+ import warnings
14
+ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
15
+ from typing import Any, Dict, List, Optional, Tuple, Union
16
+ from typing_extensions import Annotated
17
+
18
+ from pydantic import StrictBytes, StrictStr
19
+ from typing import Any, Dict, Optional, Tuple, Union
20
+ from unit_finance_sdk.models.create_application_document200_response import CreateApplicationDocument200Response
21
+ from unit_finance_sdk.models.list_application_documents200_response import ListApplicationDocuments200Response
22
+ from unit_finance_sdk.models.verify_document_request import VerifyDocumentRequest
23
+
24
+ from unit_finance_sdk.api_client import ApiClient, RequestSerialized
25
+ from unit_finance_sdk.api_response import ApiResponse
26
+ from unit_finance_sdk.rest import RESTResponseType
27
+
28
+
29
+ class ApplicationDocumentsApi:
30
+ """NOTE: This class is auto generated by OpenAPI Generator
31
+ Ref: https://openapi-generator.tech
32
+
33
+ Do not edit the class manually.
34
+ """
35
+
36
+ def __init__(self, api_client=None) -> None:
37
+ if api_client is None:
38
+ api_client = ApiClient.get_default()
39
+ self.api_client = api_client
40
+
41
+
42
+ @validate_call
43
+ def create_application_document(
44
+ self,
45
+ application_id: StrictStr,
46
+ body: Optional[Dict[str, Any]] = None,
47
+ _request_timeout: Union[
48
+ None,
49
+ Annotated[StrictFloat, Field(gt=0)],
50
+ Tuple[
51
+ Annotated[StrictFloat, Field(gt=0)],
52
+ Annotated[StrictFloat, Field(gt=0)]
53
+ ]
54
+ ] = None,
55
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
56
+ _content_type: Optional[StrictStr] = None,
57
+ _headers: Optional[Dict[StrictStr, Any]] = None,
58
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
59
+ ) -> CreateApplicationDocument200Response:
60
+ """Create an application document
61
+
62
+ Unit allows you to create (and store) **custom documents**. This feature allows you to run additional document verifications on your side - these are documents that are not required by Unit for the evaluation of the application. Once you create a custom document resource, you can upload and store the document by using the relevant endpoints.
63
+
64
+ :param application_id: (required)
65
+ :type application_id: str
66
+ :param body:
67
+ :type body: object
68
+ :param _request_timeout: timeout setting for this request. If one
69
+ number provided, it will be total request
70
+ timeout. It can also be a pair (tuple) of
71
+ (connection, read) timeouts.
72
+ :type _request_timeout: int, tuple(int, int), optional
73
+ :param _request_auth: set to override the auth_settings for an a single
74
+ request; this effectively ignores the
75
+ authentication in the spec for a single request.
76
+ :type _request_auth: dict, optional
77
+ :param _content_type: force content-type for the request.
78
+ :type _content_type: str, Optional
79
+ :param _headers: set to override the headers for a single
80
+ request; this effectively ignores the headers
81
+ in the spec for a single request.
82
+ :type _headers: dict, optional
83
+ :param _host_index: set to override the host_index for a single
84
+ request; this effectively ignores the host_index
85
+ in the spec for a single request.
86
+ :type _host_index: int, optional
87
+ :return: Returns the result object.
88
+ """ # noqa: E501
89
+
90
+ _param = self._create_application_document_serialize(
91
+ application_id=application_id,
92
+ body=body,
93
+ _request_auth=_request_auth,
94
+ _content_type=_content_type,
95
+ _headers=_headers,
96
+ _host_index=_host_index
97
+ )
98
+
99
+ _response_types_map: Dict[str, Optional[str]] = {
100
+ '200': "CreateApplicationDocument200Response",
101
+ '400': "ErrorDocument",
102
+ '401': "ErrorDocument",
103
+ '404': "ErrorDocument",
104
+ }
105
+ response_data = self.api_client.call_api(
106
+ *_param,
107
+ _request_timeout=_request_timeout
108
+ )
109
+ response_data.read()
110
+ return self.api_client.response_deserialize(
111
+ response_data=response_data,
112
+ response_types_map=_response_types_map,
113
+ ).data
114
+
115
+
116
+ @validate_call
117
+ def create_application_document_with_http_info(
118
+ self,
119
+ application_id: StrictStr,
120
+ body: Optional[Dict[str, Any]] = None,
121
+ _request_timeout: Union[
122
+ None,
123
+ Annotated[StrictFloat, Field(gt=0)],
124
+ Tuple[
125
+ Annotated[StrictFloat, Field(gt=0)],
126
+ Annotated[StrictFloat, Field(gt=0)]
127
+ ]
128
+ ] = None,
129
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
130
+ _content_type: Optional[StrictStr] = None,
131
+ _headers: Optional[Dict[StrictStr, Any]] = None,
132
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
133
+ ) -> ApiResponse[CreateApplicationDocument200Response]:
134
+ """Create an application document
135
+
136
+ Unit allows you to create (and store) **custom documents**. This feature allows you to run additional document verifications on your side - these are documents that are not required by Unit for the evaluation of the application. Once you create a custom document resource, you can upload and store the document by using the relevant endpoints.
137
+
138
+ :param application_id: (required)
139
+ :type application_id: str
140
+ :param body:
141
+ :type body: object
142
+ :param _request_timeout: timeout setting for this request. If one
143
+ number provided, it will be total request
144
+ timeout. It can also be a pair (tuple) of
145
+ (connection, read) timeouts.
146
+ :type _request_timeout: int, tuple(int, int), optional
147
+ :param _request_auth: set to override the auth_settings for an a single
148
+ request; this effectively ignores the
149
+ authentication in the spec for a single request.
150
+ :type _request_auth: dict, optional
151
+ :param _content_type: force content-type for the request.
152
+ :type _content_type: str, Optional
153
+ :param _headers: set to override the headers for a single
154
+ request; this effectively ignores the headers
155
+ in the spec for a single request.
156
+ :type _headers: dict, optional
157
+ :param _host_index: set to override the host_index for a single
158
+ request; this effectively ignores the host_index
159
+ in the spec for a single request.
160
+ :type _host_index: int, optional
161
+ :return: Returns the result object.
162
+ """ # noqa: E501
163
+
164
+ _param = self._create_application_document_serialize(
165
+ application_id=application_id,
166
+ body=body,
167
+ _request_auth=_request_auth,
168
+ _content_type=_content_type,
169
+ _headers=_headers,
170
+ _host_index=_host_index
171
+ )
172
+
173
+ _response_types_map: Dict[str, Optional[str]] = {
174
+ '200': "CreateApplicationDocument200Response",
175
+ '400': "ErrorDocument",
176
+ '401': "ErrorDocument",
177
+ '404': "ErrorDocument",
178
+ }
179
+ response_data = self.api_client.call_api(
180
+ *_param,
181
+ _request_timeout=_request_timeout
182
+ )
183
+ response_data.read()
184
+ return self.api_client.response_deserialize(
185
+ response_data=response_data,
186
+ response_types_map=_response_types_map,
187
+ )
188
+
189
+
190
+ @validate_call
191
+ def create_application_document_without_preload_content(
192
+ self,
193
+ application_id: StrictStr,
194
+ body: Optional[Dict[str, Any]] = None,
195
+ _request_timeout: Union[
196
+ None,
197
+ Annotated[StrictFloat, Field(gt=0)],
198
+ Tuple[
199
+ Annotated[StrictFloat, Field(gt=0)],
200
+ Annotated[StrictFloat, Field(gt=0)]
201
+ ]
202
+ ] = None,
203
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
204
+ _content_type: Optional[StrictStr] = None,
205
+ _headers: Optional[Dict[StrictStr, Any]] = None,
206
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
207
+ ) -> RESTResponseType:
208
+ """Create an application document
209
+
210
+ Unit allows you to create (and store) **custom documents**. This feature allows you to run additional document verifications on your side - these are documents that are not required by Unit for the evaluation of the application. Once you create a custom document resource, you can upload and store the document by using the relevant endpoints.
211
+
212
+ :param application_id: (required)
213
+ :type application_id: str
214
+ :param body:
215
+ :type body: object
216
+ :param _request_timeout: timeout setting for this request. If one
217
+ number provided, it will be total request
218
+ timeout. It can also be a pair (tuple) of
219
+ (connection, read) timeouts.
220
+ :type _request_timeout: int, tuple(int, int), optional
221
+ :param _request_auth: set to override the auth_settings for an a single
222
+ request; this effectively ignores the
223
+ authentication in the spec for a single request.
224
+ :type _request_auth: dict, optional
225
+ :param _content_type: force content-type for the request.
226
+ :type _content_type: str, Optional
227
+ :param _headers: set to override the headers for a single
228
+ request; this effectively ignores the headers
229
+ in the spec for a single request.
230
+ :type _headers: dict, optional
231
+ :param _host_index: set to override the host_index for a single
232
+ request; this effectively ignores the host_index
233
+ in the spec for a single request.
234
+ :type _host_index: int, optional
235
+ :return: Returns the result object.
236
+ """ # noqa: E501
237
+
238
+ _param = self._create_application_document_serialize(
239
+ application_id=application_id,
240
+ body=body,
241
+ _request_auth=_request_auth,
242
+ _content_type=_content_type,
243
+ _headers=_headers,
244
+ _host_index=_host_index
245
+ )
246
+
247
+ _response_types_map: Dict[str, Optional[str]] = {
248
+ '200': "CreateApplicationDocument200Response",
249
+ '400': "ErrorDocument",
250
+ '401': "ErrorDocument",
251
+ '404': "ErrorDocument",
252
+ }
253
+ response_data = self.api_client.call_api(
254
+ *_param,
255
+ _request_timeout=_request_timeout
256
+ )
257
+ return response_data.response
258
+
259
+
260
+ def _create_application_document_serialize(
261
+ self,
262
+ application_id,
263
+ body,
264
+ _request_auth,
265
+ _content_type,
266
+ _headers,
267
+ _host_index,
268
+ ) -> RequestSerialized:
269
+
270
+ _host = None
271
+
272
+ _collection_formats: Dict[str, str] = {
273
+ }
274
+
275
+ _path_params: Dict[str, str] = {}
276
+ _query_params: List[Tuple[str, str]] = []
277
+ _header_params: Dict[str, Optional[str]] = _headers or {}
278
+ _form_params: List[Tuple[str, str]] = []
279
+ _files: Dict[
280
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
281
+ ] = {}
282
+ _body_params: Optional[bytes] = None
283
+
284
+ # process the path parameters
285
+ if application_id is not None:
286
+ _path_params['applicationId'] = application_id
287
+ # process the query parameters
288
+ # process the header parameters
289
+ # process the form parameters
290
+ # process the body parameter
291
+ if body is not None:
292
+ _body_params = body
293
+
294
+
295
+ # set the HTTP header `Accept`
296
+ if 'Accept' not in _header_params:
297
+ _header_params['Accept'] = self.api_client.select_header_accept(
298
+ [
299
+ 'application/vnd.api+json'
300
+ ]
301
+ )
302
+
303
+ # set the HTTP header `Content-Type`
304
+ if _content_type:
305
+ _header_params['Content-Type'] = _content_type
306
+ else:
307
+ _default_content_type = (
308
+ self.api_client.select_header_content_type(
309
+ [
310
+ 'application/vnd.api+json'
311
+ ]
312
+ )
313
+ )
314
+ if _default_content_type is not None:
315
+ _header_params['Content-Type'] = _default_content_type
316
+
317
+ # authentication setting
318
+ _auth_settings: List[str] = [
319
+ 'bearerAuth'
320
+ ]
321
+
322
+ return self.api_client.param_serialize(
323
+ method='POST',
324
+ resource_path='/applications/{applicationId}/documents',
325
+ path_params=_path_params,
326
+ query_params=_query_params,
327
+ header_params=_header_params,
328
+ body=_body_params,
329
+ post_params=_form_params,
330
+ files=_files,
331
+ auth_settings=_auth_settings,
332
+ collection_formats=_collection_formats,
333
+ _host=_host,
334
+ _request_auth=_request_auth
335
+ )
336
+
337
+
338
+
339
+
340
+ @validate_call
341
+ def download_application_document(
342
+ self,
343
+ application_id: StrictStr,
344
+ document_id: StrictStr,
345
+ _request_timeout: Union[
346
+ None,
347
+ Annotated[StrictFloat, Field(gt=0)],
348
+ Tuple[
349
+ Annotated[StrictFloat, Field(gt=0)],
350
+ Annotated[StrictFloat, Field(gt=0)]
351
+ ]
352
+ ] = None,
353
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
354
+ _content_type: Optional[StrictStr] = None,
355
+ _headers: Optional[Dict[StrictStr, Any]] = None,
356
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
357
+ ) -> bytes:
358
+ """Download an application document
359
+
360
+ Download the application document file.
361
+
362
+ :param application_id: (required)
363
+ :type application_id: str
364
+ :param document_id: (required)
365
+ :type document_id: str
366
+ :param _request_timeout: timeout setting for this request. If one
367
+ number provided, it will be total request
368
+ timeout. It can also be a pair (tuple) of
369
+ (connection, read) timeouts.
370
+ :type _request_timeout: int, tuple(int, int), optional
371
+ :param _request_auth: set to override the auth_settings for an a single
372
+ request; this effectively ignores the
373
+ authentication in the spec for a single request.
374
+ :type _request_auth: dict, optional
375
+ :param _content_type: force content-type for the request.
376
+ :type _content_type: str, Optional
377
+ :param _headers: set to override the headers for a single
378
+ request; this effectively ignores the headers
379
+ in the spec for a single request.
380
+ :type _headers: dict, optional
381
+ :param _host_index: set to override the host_index for a single
382
+ request; this effectively ignores the host_index
383
+ in the spec for a single request.
384
+ :type _host_index: int, optional
385
+ :return: Returns the result object.
386
+ """ # noqa: E501
387
+
388
+ _param = self._download_application_document_serialize(
389
+ application_id=application_id,
390
+ document_id=document_id,
391
+ _request_auth=_request_auth,
392
+ _content_type=_content_type,
393
+ _headers=_headers,
394
+ _host_index=_host_index
395
+ )
396
+
397
+ _response_types_map: Dict[str, Optional[str]] = {
398
+ '200': "bytes",
399
+ '400': "ErrorDocument",
400
+ '401': "ErrorDocument",
401
+ '404': "ErrorDocument",
402
+ }
403
+ response_data = self.api_client.call_api(
404
+ *_param,
405
+ _request_timeout=_request_timeout
406
+ )
407
+ response_data.read()
408
+ return self.api_client.response_deserialize(
409
+ response_data=response_data,
410
+ response_types_map=_response_types_map,
411
+ ).data
412
+
413
+
414
+ @validate_call
415
+ def download_application_document_with_http_info(
416
+ self,
417
+ application_id: StrictStr,
418
+ document_id: StrictStr,
419
+ _request_timeout: Union[
420
+ None,
421
+ Annotated[StrictFloat, Field(gt=0)],
422
+ Tuple[
423
+ Annotated[StrictFloat, Field(gt=0)],
424
+ Annotated[StrictFloat, Field(gt=0)]
425
+ ]
426
+ ] = None,
427
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
428
+ _content_type: Optional[StrictStr] = None,
429
+ _headers: Optional[Dict[StrictStr, Any]] = None,
430
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
431
+ ) -> ApiResponse[bytes]:
432
+ """Download an application document
433
+
434
+ Download the application document file.
435
+
436
+ :param application_id: (required)
437
+ :type application_id: str
438
+ :param document_id: (required)
439
+ :type document_id: str
440
+ :param _request_timeout: timeout setting for this request. If one
441
+ number provided, it will be total request
442
+ timeout. It can also be a pair (tuple) of
443
+ (connection, read) timeouts.
444
+ :type _request_timeout: int, tuple(int, int), optional
445
+ :param _request_auth: set to override the auth_settings for an a single
446
+ request; this effectively ignores the
447
+ authentication in the spec for a single request.
448
+ :type _request_auth: dict, optional
449
+ :param _content_type: force content-type for the request.
450
+ :type _content_type: str, Optional
451
+ :param _headers: set to override the headers for a single
452
+ request; this effectively ignores the headers
453
+ in the spec for a single request.
454
+ :type _headers: dict, optional
455
+ :param _host_index: set to override the host_index for a single
456
+ request; this effectively ignores the host_index
457
+ in the spec for a single request.
458
+ :type _host_index: int, optional
459
+ :return: Returns the result object.
460
+ """ # noqa: E501
461
+
462
+ _param = self._download_application_document_serialize(
463
+ application_id=application_id,
464
+ document_id=document_id,
465
+ _request_auth=_request_auth,
466
+ _content_type=_content_type,
467
+ _headers=_headers,
468
+ _host_index=_host_index
469
+ )
470
+
471
+ _response_types_map: Dict[str, Optional[str]] = {
472
+ '200': "bytes",
473
+ '400': "ErrorDocument",
474
+ '401': "ErrorDocument",
475
+ '404': "ErrorDocument",
476
+ }
477
+ response_data = self.api_client.call_api(
478
+ *_param,
479
+ _request_timeout=_request_timeout
480
+ )
481
+ response_data.read()
482
+ return self.api_client.response_deserialize(
483
+ response_data=response_data,
484
+ response_types_map=_response_types_map,
485
+ )
486
+
487
+
488
+ @validate_call
489
+ def download_application_document_without_preload_content(
490
+ self,
491
+ application_id: StrictStr,
492
+ document_id: StrictStr,
493
+ _request_timeout: Union[
494
+ None,
495
+ Annotated[StrictFloat, Field(gt=0)],
496
+ Tuple[
497
+ Annotated[StrictFloat, Field(gt=0)],
498
+ Annotated[StrictFloat, Field(gt=0)]
499
+ ]
500
+ ] = None,
501
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
502
+ _content_type: Optional[StrictStr] = None,
503
+ _headers: Optional[Dict[StrictStr, Any]] = None,
504
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
505
+ ) -> RESTResponseType:
506
+ """Download an application document
507
+
508
+ Download the application document file.
509
+
510
+ :param application_id: (required)
511
+ :type application_id: str
512
+ :param document_id: (required)
513
+ :type document_id: str
514
+ :param _request_timeout: timeout setting for this request. If one
515
+ number provided, it will be total request
516
+ timeout. It can also be a pair (tuple) of
517
+ (connection, read) timeouts.
518
+ :type _request_timeout: int, tuple(int, int), optional
519
+ :param _request_auth: set to override the auth_settings for an a single
520
+ request; this effectively ignores the
521
+ authentication in the spec for a single request.
522
+ :type _request_auth: dict, optional
523
+ :param _content_type: force content-type for the request.
524
+ :type _content_type: str, Optional
525
+ :param _headers: set to override the headers for a single
526
+ request; this effectively ignores the headers
527
+ in the spec for a single request.
528
+ :type _headers: dict, optional
529
+ :param _host_index: set to override the host_index for a single
530
+ request; this effectively ignores the host_index
531
+ in the spec for a single request.
532
+ :type _host_index: int, optional
533
+ :return: Returns the result object.
534
+ """ # noqa: E501
535
+
536
+ _param = self._download_application_document_serialize(
537
+ application_id=application_id,
538
+ document_id=document_id,
539
+ _request_auth=_request_auth,
540
+ _content_type=_content_type,
541
+ _headers=_headers,
542
+ _host_index=_host_index
543
+ )
544
+
545
+ _response_types_map: Dict[str, Optional[str]] = {
546
+ '200': "bytes",
547
+ '400': "ErrorDocument",
548
+ '401': "ErrorDocument",
549
+ '404': "ErrorDocument",
550
+ }
551
+ response_data = self.api_client.call_api(
552
+ *_param,
553
+ _request_timeout=_request_timeout
554
+ )
555
+ return response_data.response
556
+
557
+
558
+ def _download_application_document_serialize(
559
+ self,
560
+ application_id,
561
+ document_id,
562
+ _request_auth,
563
+ _content_type,
564
+ _headers,
565
+ _host_index,
566
+ ) -> RequestSerialized:
567
+
568
+ _host = None
569
+
570
+ _collection_formats: Dict[str, str] = {
571
+ }
572
+
573
+ _path_params: Dict[str, str] = {}
574
+ _query_params: List[Tuple[str, str]] = []
575
+ _header_params: Dict[str, Optional[str]] = _headers or {}
576
+ _form_params: List[Tuple[str, str]] = []
577
+ _files: Dict[
578
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
579
+ ] = {}
580
+ _body_params: Optional[bytes] = None
581
+
582
+ # process the path parameters
583
+ if application_id is not None:
584
+ _path_params['applicationId'] = application_id
585
+ if document_id is not None:
586
+ _path_params['documentId'] = document_id
587
+ # process the query parameters
588
+ # process the header parameters
589
+ # process the form parameters
590
+ # process the body parameter
591
+
592
+
593
+ # set the HTTP header `Accept`
594
+ if 'Accept' not in _header_params:
595
+ _header_params['Accept'] = self.api_client.select_header_accept(
596
+ [
597
+ 'application/pdf',
598
+ 'image/jpeg',
599
+ 'image/png',
600
+ 'application/vnd.api+json'
601
+ ]
602
+ )
603
+
604
+
605
+ # authentication setting
606
+ _auth_settings: List[str] = [
607
+ 'bearerAuth'
608
+ ]
609
+
610
+ return self.api_client.param_serialize(
611
+ method='GET',
612
+ resource_path='/applications/{applicationId}/documents/{documentId}/download',
613
+ path_params=_path_params,
614
+ query_params=_query_params,
615
+ header_params=_header_params,
616
+ body=_body_params,
617
+ post_params=_form_params,
618
+ files=_files,
619
+ auth_settings=_auth_settings,
620
+ collection_formats=_collection_formats,
621
+ _host=_host,
622
+ _request_auth=_request_auth
623
+ )
624
+
625
+
626
+
627
+
628
+ @validate_call
629
+ def download_application_document_back_side(
630
+ self,
631
+ application_id: StrictStr,
632
+ document_id: StrictStr,
633
+ _request_timeout: Union[
634
+ None,
635
+ Annotated[StrictFloat, Field(gt=0)],
636
+ Tuple[
637
+ Annotated[StrictFloat, Field(gt=0)],
638
+ Annotated[StrictFloat, Field(gt=0)]
639
+ ]
640
+ ] = None,
641
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
642
+ _content_type: Optional[StrictStr] = None,
643
+ _headers: Optional[Dict[StrictStr, Any]] = None,
644
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
645
+ ) -> bytes:
646
+ """Download an application document back-side
647
+
648
+ Download the application document back-side file.
649
+
650
+ :param application_id: (required)
651
+ :type application_id: str
652
+ :param document_id: (required)
653
+ :type document_id: str
654
+ :param _request_timeout: timeout setting for this request. If one
655
+ number provided, it will be total request
656
+ timeout. It can also be a pair (tuple) of
657
+ (connection, read) timeouts.
658
+ :type _request_timeout: int, tuple(int, int), optional
659
+ :param _request_auth: set to override the auth_settings for an a single
660
+ request; this effectively ignores the
661
+ authentication in the spec for a single request.
662
+ :type _request_auth: dict, optional
663
+ :param _content_type: force content-type for the request.
664
+ :type _content_type: str, Optional
665
+ :param _headers: set to override the headers for a single
666
+ request; this effectively ignores the headers
667
+ in the spec for a single request.
668
+ :type _headers: dict, optional
669
+ :param _host_index: set to override the host_index for a single
670
+ request; this effectively ignores the host_index
671
+ in the spec for a single request.
672
+ :type _host_index: int, optional
673
+ :return: Returns the result object.
674
+ """ # noqa: E501
675
+
676
+ _param = self._download_application_document_back_side_serialize(
677
+ application_id=application_id,
678
+ document_id=document_id,
679
+ _request_auth=_request_auth,
680
+ _content_type=_content_type,
681
+ _headers=_headers,
682
+ _host_index=_host_index
683
+ )
684
+
685
+ _response_types_map: Dict[str, Optional[str]] = {
686
+ '200': "bytes",
687
+ '400': "ErrorDocument",
688
+ '401': "ErrorDocument",
689
+ '404': "ErrorDocument",
690
+ }
691
+ response_data = self.api_client.call_api(
692
+ *_param,
693
+ _request_timeout=_request_timeout
694
+ )
695
+ response_data.read()
696
+ return self.api_client.response_deserialize(
697
+ response_data=response_data,
698
+ response_types_map=_response_types_map,
699
+ ).data
700
+
701
+
702
+ @validate_call
703
+ def download_application_document_back_side_with_http_info(
704
+ self,
705
+ application_id: StrictStr,
706
+ document_id: StrictStr,
707
+ _request_timeout: Union[
708
+ None,
709
+ Annotated[StrictFloat, Field(gt=0)],
710
+ Tuple[
711
+ Annotated[StrictFloat, Field(gt=0)],
712
+ Annotated[StrictFloat, Field(gt=0)]
713
+ ]
714
+ ] = None,
715
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
716
+ _content_type: Optional[StrictStr] = None,
717
+ _headers: Optional[Dict[StrictStr, Any]] = None,
718
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
719
+ ) -> ApiResponse[bytes]:
720
+ """Download an application document back-side
721
+
722
+ Download the application document back-side file.
723
+
724
+ :param application_id: (required)
725
+ :type application_id: str
726
+ :param document_id: (required)
727
+ :type document_id: str
728
+ :param _request_timeout: timeout setting for this request. If one
729
+ number provided, it will be total request
730
+ timeout. It can also be a pair (tuple) of
731
+ (connection, read) timeouts.
732
+ :type _request_timeout: int, tuple(int, int), optional
733
+ :param _request_auth: set to override the auth_settings for an a single
734
+ request; this effectively ignores the
735
+ authentication in the spec for a single request.
736
+ :type _request_auth: dict, optional
737
+ :param _content_type: force content-type for the request.
738
+ :type _content_type: str, Optional
739
+ :param _headers: set to override the headers for a single
740
+ request; this effectively ignores the headers
741
+ in the spec for a single request.
742
+ :type _headers: dict, optional
743
+ :param _host_index: set to override the host_index for a single
744
+ request; this effectively ignores the host_index
745
+ in the spec for a single request.
746
+ :type _host_index: int, optional
747
+ :return: Returns the result object.
748
+ """ # noqa: E501
749
+
750
+ _param = self._download_application_document_back_side_serialize(
751
+ application_id=application_id,
752
+ document_id=document_id,
753
+ _request_auth=_request_auth,
754
+ _content_type=_content_type,
755
+ _headers=_headers,
756
+ _host_index=_host_index
757
+ )
758
+
759
+ _response_types_map: Dict[str, Optional[str]] = {
760
+ '200': "bytes",
761
+ '400': "ErrorDocument",
762
+ '401': "ErrorDocument",
763
+ '404': "ErrorDocument",
764
+ }
765
+ response_data = self.api_client.call_api(
766
+ *_param,
767
+ _request_timeout=_request_timeout
768
+ )
769
+ response_data.read()
770
+ return self.api_client.response_deserialize(
771
+ response_data=response_data,
772
+ response_types_map=_response_types_map,
773
+ )
774
+
775
+
776
+ @validate_call
777
+ def download_application_document_back_side_without_preload_content(
778
+ self,
779
+ application_id: StrictStr,
780
+ document_id: StrictStr,
781
+ _request_timeout: Union[
782
+ None,
783
+ Annotated[StrictFloat, Field(gt=0)],
784
+ Tuple[
785
+ Annotated[StrictFloat, Field(gt=0)],
786
+ Annotated[StrictFloat, Field(gt=0)]
787
+ ]
788
+ ] = None,
789
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
790
+ _content_type: Optional[StrictStr] = None,
791
+ _headers: Optional[Dict[StrictStr, Any]] = None,
792
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
793
+ ) -> RESTResponseType:
794
+ """Download an application document back-side
795
+
796
+ Download the application document back-side file.
797
+
798
+ :param application_id: (required)
799
+ :type application_id: str
800
+ :param document_id: (required)
801
+ :type document_id: str
802
+ :param _request_timeout: timeout setting for this request. If one
803
+ number provided, it will be total request
804
+ timeout. It can also be a pair (tuple) of
805
+ (connection, read) timeouts.
806
+ :type _request_timeout: int, tuple(int, int), optional
807
+ :param _request_auth: set to override the auth_settings for an a single
808
+ request; this effectively ignores the
809
+ authentication in the spec for a single request.
810
+ :type _request_auth: dict, optional
811
+ :param _content_type: force content-type for the request.
812
+ :type _content_type: str, Optional
813
+ :param _headers: set to override the headers for a single
814
+ request; this effectively ignores the headers
815
+ in the spec for a single request.
816
+ :type _headers: dict, optional
817
+ :param _host_index: set to override the host_index for a single
818
+ request; this effectively ignores the host_index
819
+ in the spec for a single request.
820
+ :type _host_index: int, optional
821
+ :return: Returns the result object.
822
+ """ # noqa: E501
823
+
824
+ _param = self._download_application_document_back_side_serialize(
825
+ application_id=application_id,
826
+ document_id=document_id,
827
+ _request_auth=_request_auth,
828
+ _content_type=_content_type,
829
+ _headers=_headers,
830
+ _host_index=_host_index
831
+ )
832
+
833
+ _response_types_map: Dict[str, Optional[str]] = {
834
+ '200': "bytes",
835
+ '400': "ErrorDocument",
836
+ '401': "ErrorDocument",
837
+ '404': "ErrorDocument",
838
+ }
839
+ response_data = self.api_client.call_api(
840
+ *_param,
841
+ _request_timeout=_request_timeout
842
+ )
843
+ return response_data.response
844
+
845
+
846
+ def _download_application_document_back_side_serialize(
847
+ self,
848
+ application_id,
849
+ document_id,
850
+ _request_auth,
851
+ _content_type,
852
+ _headers,
853
+ _host_index,
854
+ ) -> RequestSerialized:
855
+
856
+ _host = None
857
+
858
+ _collection_formats: Dict[str, str] = {
859
+ }
860
+
861
+ _path_params: Dict[str, str] = {}
862
+ _query_params: List[Tuple[str, str]] = []
863
+ _header_params: Dict[str, Optional[str]] = _headers or {}
864
+ _form_params: List[Tuple[str, str]] = []
865
+ _files: Dict[
866
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
867
+ ] = {}
868
+ _body_params: Optional[bytes] = None
869
+
870
+ # process the path parameters
871
+ if application_id is not None:
872
+ _path_params['applicationId'] = application_id
873
+ if document_id is not None:
874
+ _path_params['documentId'] = document_id
875
+ # process the query parameters
876
+ # process the header parameters
877
+ # process the form parameters
878
+ # process the body parameter
879
+
880
+
881
+ # set the HTTP header `Accept`
882
+ if 'Accept' not in _header_params:
883
+ _header_params['Accept'] = self.api_client.select_header_accept(
884
+ [
885
+ 'application/pdf',
886
+ 'image/jpeg',
887
+ 'image/png',
888
+ 'application/vnd.api+json'
889
+ ]
890
+ )
891
+
892
+
893
+ # authentication setting
894
+ _auth_settings: List[str] = [
895
+ 'bearerAuth'
896
+ ]
897
+
898
+ return self.api_client.param_serialize(
899
+ method='GET',
900
+ resource_path='/applications/{applicationId}/documents/{documentId}/download/back',
901
+ path_params=_path_params,
902
+ query_params=_query_params,
903
+ header_params=_header_params,
904
+ body=_body_params,
905
+ post_params=_form_params,
906
+ files=_files,
907
+ auth_settings=_auth_settings,
908
+ collection_formats=_collection_formats,
909
+ _host=_host,
910
+ _request_auth=_request_auth
911
+ )
912
+
913
+
914
+
915
+
916
+ @validate_call
917
+ def list_application_documents(
918
+ self,
919
+ application_id: StrictStr,
920
+ _request_timeout: Union[
921
+ None,
922
+ Annotated[StrictFloat, Field(gt=0)],
923
+ Tuple[
924
+ Annotated[StrictFloat, Field(gt=0)],
925
+ Annotated[StrictFloat, Field(gt=0)]
926
+ ]
927
+ ] = None,
928
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
929
+ _content_type: Optional[StrictStr] = None,
930
+ _headers: Optional[Dict[StrictStr, Any]] = None,
931
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
932
+ ) -> ListApplicationDocuments200Response:
933
+ """List application documents
934
+
935
+ List application documents.
936
+
937
+ :param application_id: (required)
938
+ :type application_id: str
939
+ :param _request_timeout: timeout setting for this request. If one
940
+ number provided, it will be total request
941
+ timeout. It can also be a pair (tuple) of
942
+ (connection, read) timeouts.
943
+ :type _request_timeout: int, tuple(int, int), optional
944
+ :param _request_auth: set to override the auth_settings for an a single
945
+ request; this effectively ignores the
946
+ authentication in the spec for a single request.
947
+ :type _request_auth: dict, optional
948
+ :param _content_type: force content-type for the request.
949
+ :type _content_type: str, Optional
950
+ :param _headers: set to override the headers for a single
951
+ request; this effectively ignores the headers
952
+ in the spec for a single request.
953
+ :type _headers: dict, optional
954
+ :param _host_index: set to override the host_index for a single
955
+ request; this effectively ignores the host_index
956
+ in the spec for a single request.
957
+ :type _host_index: int, optional
958
+ :return: Returns the result object.
959
+ """ # noqa: E501
960
+
961
+ _param = self._list_application_documents_serialize(
962
+ application_id=application_id,
963
+ _request_auth=_request_auth,
964
+ _content_type=_content_type,
965
+ _headers=_headers,
966
+ _host_index=_host_index
967
+ )
968
+
969
+ _response_types_map: Dict[str, Optional[str]] = {
970
+ '200': "ListApplicationDocuments200Response",
971
+ '400': "ErrorDocument",
972
+ '401': "ErrorDocument",
973
+ '404': "ErrorDocument",
974
+ }
975
+ response_data = self.api_client.call_api(
976
+ *_param,
977
+ _request_timeout=_request_timeout
978
+ )
979
+ response_data.read()
980
+ return self.api_client.response_deserialize(
981
+ response_data=response_data,
982
+ response_types_map=_response_types_map,
983
+ ).data
984
+
985
+
986
+ @validate_call
987
+ def list_application_documents_with_http_info(
988
+ self,
989
+ application_id: StrictStr,
990
+ _request_timeout: Union[
991
+ None,
992
+ Annotated[StrictFloat, Field(gt=0)],
993
+ Tuple[
994
+ Annotated[StrictFloat, Field(gt=0)],
995
+ Annotated[StrictFloat, Field(gt=0)]
996
+ ]
997
+ ] = None,
998
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
999
+ _content_type: Optional[StrictStr] = None,
1000
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1001
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1002
+ ) -> ApiResponse[ListApplicationDocuments200Response]:
1003
+ """List application documents
1004
+
1005
+ List application documents.
1006
+
1007
+ :param application_id: (required)
1008
+ :type application_id: str
1009
+ :param _request_timeout: timeout setting for this request. If one
1010
+ number provided, it will be total request
1011
+ timeout. It can also be a pair (tuple) of
1012
+ (connection, read) timeouts.
1013
+ :type _request_timeout: int, tuple(int, int), optional
1014
+ :param _request_auth: set to override the auth_settings for an a single
1015
+ request; this effectively ignores the
1016
+ authentication in the spec for a single request.
1017
+ :type _request_auth: dict, optional
1018
+ :param _content_type: force content-type for the request.
1019
+ :type _content_type: str, Optional
1020
+ :param _headers: set to override the headers for a single
1021
+ request; this effectively ignores the headers
1022
+ in the spec for a single request.
1023
+ :type _headers: dict, optional
1024
+ :param _host_index: set to override the host_index for a single
1025
+ request; this effectively ignores the host_index
1026
+ in the spec for a single request.
1027
+ :type _host_index: int, optional
1028
+ :return: Returns the result object.
1029
+ """ # noqa: E501
1030
+
1031
+ _param = self._list_application_documents_serialize(
1032
+ application_id=application_id,
1033
+ _request_auth=_request_auth,
1034
+ _content_type=_content_type,
1035
+ _headers=_headers,
1036
+ _host_index=_host_index
1037
+ )
1038
+
1039
+ _response_types_map: Dict[str, Optional[str]] = {
1040
+ '200': "ListApplicationDocuments200Response",
1041
+ '400': "ErrorDocument",
1042
+ '401': "ErrorDocument",
1043
+ '404': "ErrorDocument",
1044
+ }
1045
+ response_data = self.api_client.call_api(
1046
+ *_param,
1047
+ _request_timeout=_request_timeout
1048
+ )
1049
+ response_data.read()
1050
+ return self.api_client.response_deserialize(
1051
+ response_data=response_data,
1052
+ response_types_map=_response_types_map,
1053
+ )
1054
+
1055
+
1056
+ @validate_call
1057
+ def list_application_documents_without_preload_content(
1058
+ self,
1059
+ application_id: StrictStr,
1060
+ _request_timeout: Union[
1061
+ None,
1062
+ Annotated[StrictFloat, Field(gt=0)],
1063
+ Tuple[
1064
+ Annotated[StrictFloat, Field(gt=0)],
1065
+ Annotated[StrictFloat, Field(gt=0)]
1066
+ ]
1067
+ ] = None,
1068
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1069
+ _content_type: Optional[StrictStr] = None,
1070
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1071
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1072
+ ) -> RESTResponseType:
1073
+ """List application documents
1074
+
1075
+ List application documents.
1076
+
1077
+ :param application_id: (required)
1078
+ :type application_id: str
1079
+ :param _request_timeout: timeout setting for this request. If one
1080
+ number provided, it will be total request
1081
+ timeout. It can also be a pair (tuple) of
1082
+ (connection, read) timeouts.
1083
+ :type _request_timeout: int, tuple(int, int), optional
1084
+ :param _request_auth: set to override the auth_settings for an a single
1085
+ request; this effectively ignores the
1086
+ authentication in the spec for a single request.
1087
+ :type _request_auth: dict, optional
1088
+ :param _content_type: force content-type for the request.
1089
+ :type _content_type: str, Optional
1090
+ :param _headers: set to override the headers for a single
1091
+ request; this effectively ignores the headers
1092
+ in the spec for a single request.
1093
+ :type _headers: dict, optional
1094
+ :param _host_index: set to override the host_index for a single
1095
+ request; this effectively ignores the host_index
1096
+ in the spec for a single request.
1097
+ :type _host_index: int, optional
1098
+ :return: Returns the result object.
1099
+ """ # noqa: E501
1100
+
1101
+ _param = self._list_application_documents_serialize(
1102
+ application_id=application_id,
1103
+ _request_auth=_request_auth,
1104
+ _content_type=_content_type,
1105
+ _headers=_headers,
1106
+ _host_index=_host_index
1107
+ )
1108
+
1109
+ _response_types_map: Dict[str, Optional[str]] = {
1110
+ '200': "ListApplicationDocuments200Response",
1111
+ '400': "ErrorDocument",
1112
+ '401': "ErrorDocument",
1113
+ '404': "ErrorDocument",
1114
+ }
1115
+ response_data = self.api_client.call_api(
1116
+ *_param,
1117
+ _request_timeout=_request_timeout
1118
+ )
1119
+ return response_data.response
1120
+
1121
+
1122
+ def _list_application_documents_serialize(
1123
+ self,
1124
+ application_id,
1125
+ _request_auth,
1126
+ _content_type,
1127
+ _headers,
1128
+ _host_index,
1129
+ ) -> RequestSerialized:
1130
+
1131
+ _host = None
1132
+
1133
+ _collection_formats: Dict[str, str] = {
1134
+ }
1135
+
1136
+ _path_params: Dict[str, str] = {}
1137
+ _query_params: List[Tuple[str, str]] = []
1138
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1139
+ _form_params: List[Tuple[str, str]] = []
1140
+ _files: Dict[
1141
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1142
+ ] = {}
1143
+ _body_params: Optional[bytes] = None
1144
+
1145
+ # process the path parameters
1146
+ if application_id is not None:
1147
+ _path_params['applicationId'] = application_id
1148
+ # process the query parameters
1149
+ # process the header parameters
1150
+ # process the form parameters
1151
+ # process the body parameter
1152
+
1153
+
1154
+ # set the HTTP header `Accept`
1155
+ if 'Accept' not in _header_params:
1156
+ _header_params['Accept'] = self.api_client.select_header_accept(
1157
+ [
1158
+ 'application/vnd.api+json'
1159
+ ]
1160
+ )
1161
+
1162
+
1163
+ # authentication setting
1164
+ _auth_settings: List[str] = [
1165
+ 'bearerAuth'
1166
+ ]
1167
+
1168
+ return self.api_client.param_serialize(
1169
+ method='GET',
1170
+ resource_path='/applications/{applicationId}/documents',
1171
+ path_params=_path_params,
1172
+ query_params=_query_params,
1173
+ header_params=_header_params,
1174
+ body=_body_params,
1175
+ post_params=_form_params,
1176
+ files=_files,
1177
+ auth_settings=_auth_settings,
1178
+ collection_formats=_collection_formats,
1179
+ _host=_host,
1180
+ _request_auth=_request_auth
1181
+ )
1182
+
1183
+
1184
+
1185
+
1186
+ @validate_call
1187
+ def upload_application_document(
1188
+ self,
1189
+ application_id: StrictStr,
1190
+ document_id: StrictStr,
1191
+ body: Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]],
1192
+ _request_timeout: Union[
1193
+ None,
1194
+ Annotated[StrictFloat, Field(gt=0)],
1195
+ Tuple[
1196
+ Annotated[StrictFloat, Field(gt=0)],
1197
+ Annotated[StrictFloat, Field(gt=0)]
1198
+ ]
1199
+ ] = None,
1200
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1201
+ _content_type: Optional[StrictStr] = None,
1202
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1203
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1204
+ ) -> CreateApplicationDocument200Response:
1205
+ """Upload an application document
1206
+
1207
+ Uploads a document file. Supported file types are `pdf`, `jpeg` or `png`. This endpoint is not available when `archived`=`true`.
1208
+
1209
+ :param application_id: (required)
1210
+ :type application_id: str
1211
+ :param document_id: (required)
1212
+ :type document_id: str
1213
+ :param body: (required)
1214
+ :type body: bytes
1215
+ :param _request_timeout: timeout setting for this request. If one
1216
+ number provided, it will be total request
1217
+ timeout. It can also be a pair (tuple) of
1218
+ (connection, read) timeouts.
1219
+ :type _request_timeout: int, tuple(int, int), optional
1220
+ :param _request_auth: set to override the auth_settings for an a single
1221
+ request; this effectively ignores the
1222
+ authentication in the spec for a single request.
1223
+ :type _request_auth: dict, optional
1224
+ :param _content_type: force content-type for the request.
1225
+ :type _content_type: str, Optional
1226
+ :param _headers: set to override the headers for a single
1227
+ request; this effectively ignores the headers
1228
+ in the spec for a single request.
1229
+ :type _headers: dict, optional
1230
+ :param _host_index: set to override the host_index for a single
1231
+ request; this effectively ignores the host_index
1232
+ in the spec for a single request.
1233
+ :type _host_index: int, optional
1234
+ :return: Returns the result object.
1235
+ """ # noqa: E501
1236
+
1237
+ _param = self._upload_application_document_serialize(
1238
+ application_id=application_id,
1239
+ document_id=document_id,
1240
+ body=body,
1241
+ _request_auth=_request_auth,
1242
+ _content_type=_content_type,
1243
+ _headers=_headers,
1244
+ _host_index=_host_index
1245
+ )
1246
+
1247
+ _response_types_map: Dict[str, Optional[str]] = {
1248
+ '200': "CreateApplicationDocument200Response",
1249
+ '400': "ErrorDocument",
1250
+ '401': "ErrorDocument",
1251
+ '404': "ErrorDocument",
1252
+ }
1253
+ response_data = self.api_client.call_api(
1254
+ *_param,
1255
+ _request_timeout=_request_timeout
1256
+ )
1257
+ response_data.read()
1258
+ return self.api_client.response_deserialize(
1259
+ response_data=response_data,
1260
+ response_types_map=_response_types_map,
1261
+ ).data
1262
+
1263
+
1264
+ @validate_call
1265
+ def upload_application_document_with_http_info(
1266
+ self,
1267
+ application_id: StrictStr,
1268
+ document_id: StrictStr,
1269
+ body: Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]],
1270
+ _request_timeout: Union[
1271
+ None,
1272
+ Annotated[StrictFloat, Field(gt=0)],
1273
+ Tuple[
1274
+ Annotated[StrictFloat, Field(gt=0)],
1275
+ Annotated[StrictFloat, Field(gt=0)]
1276
+ ]
1277
+ ] = None,
1278
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1279
+ _content_type: Optional[StrictStr] = None,
1280
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1281
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1282
+ ) -> ApiResponse[CreateApplicationDocument200Response]:
1283
+ """Upload an application document
1284
+
1285
+ Uploads a document file. Supported file types are `pdf`, `jpeg` or `png`. This endpoint is not available when `archived`=`true`.
1286
+
1287
+ :param application_id: (required)
1288
+ :type application_id: str
1289
+ :param document_id: (required)
1290
+ :type document_id: str
1291
+ :param body: (required)
1292
+ :type body: bytes
1293
+ :param _request_timeout: timeout setting for this request. If one
1294
+ number provided, it will be total request
1295
+ timeout. It can also be a pair (tuple) of
1296
+ (connection, read) timeouts.
1297
+ :type _request_timeout: int, tuple(int, int), optional
1298
+ :param _request_auth: set to override the auth_settings for an a single
1299
+ request; this effectively ignores the
1300
+ authentication in the spec for a single request.
1301
+ :type _request_auth: dict, optional
1302
+ :param _content_type: force content-type for the request.
1303
+ :type _content_type: str, Optional
1304
+ :param _headers: set to override the headers for a single
1305
+ request; this effectively ignores the headers
1306
+ in the spec for a single request.
1307
+ :type _headers: dict, optional
1308
+ :param _host_index: set to override the host_index for a single
1309
+ request; this effectively ignores the host_index
1310
+ in the spec for a single request.
1311
+ :type _host_index: int, optional
1312
+ :return: Returns the result object.
1313
+ """ # noqa: E501
1314
+
1315
+ _param = self._upload_application_document_serialize(
1316
+ application_id=application_id,
1317
+ document_id=document_id,
1318
+ body=body,
1319
+ _request_auth=_request_auth,
1320
+ _content_type=_content_type,
1321
+ _headers=_headers,
1322
+ _host_index=_host_index
1323
+ )
1324
+
1325
+ _response_types_map: Dict[str, Optional[str]] = {
1326
+ '200': "CreateApplicationDocument200Response",
1327
+ '400': "ErrorDocument",
1328
+ '401': "ErrorDocument",
1329
+ '404': "ErrorDocument",
1330
+ }
1331
+ response_data = self.api_client.call_api(
1332
+ *_param,
1333
+ _request_timeout=_request_timeout
1334
+ )
1335
+ response_data.read()
1336
+ return self.api_client.response_deserialize(
1337
+ response_data=response_data,
1338
+ response_types_map=_response_types_map,
1339
+ )
1340
+
1341
+
1342
+ @validate_call
1343
+ def upload_application_document_without_preload_content(
1344
+ self,
1345
+ application_id: StrictStr,
1346
+ document_id: StrictStr,
1347
+ body: Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]],
1348
+ _request_timeout: Union[
1349
+ None,
1350
+ Annotated[StrictFloat, Field(gt=0)],
1351
+ Tuple[
1352
+ Annotated[StrictFloat, Field(gt=0)],
1353
+ Annotated[StrictFloat, Field(gt=0)]
1354
+ ]
1355
+ ] = None,
1356
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1357
+ _content_type: Optional[StrictStr] = None,
1358
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1359
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1360
+ ) -> RESTResponseType:
1361
+ """Upload an application document
1362
+
1363
+ Uploads a document file. Supported file types are `pdf`, `jpeg` or `png`. This endpoint is not available when `archived`=`true`.
1364
+
1365
+ :param application_id: (required)
1366
+ :type application_id: str
1367
+ :param document_id: (required)
1368
+ :type document_id: str
1369
+ :param body: (required)
1370
+ :type body: bytes
1371
+ :param _request_timeout: timeout setting for this request. If one
1372
+ number provided, it will be total request
1373
+ timeout. It can also be a pair (tuple) of
1374
+ (connection, read) timeouts.
1375
+ :type _request_timeout: int, tuple(int, int), optional
1376
+ :param _request_auth: set to override the auth_settings for an a single
1377
+ request; this effectively ignores the
1378
+ authentication in the spec for a single request.
1379
+ :type _request_auth: dict, optional
1380
+ :param _content_type: force content-type for the request.
1381
+ :type _content_type: str, Optional
1382
+ :param _headers: set to override the headers for a single
1383
+ request; this effectively ignores the headers
1384
+ in the spec for a single request.
1385
+ :type _headers: dict, optional
1386
+ :param _host_index: set to override the host_index for a single
1387
+ request; this effectively ignores the host_index
1388
+ in the spec for a single request.
1389
+ :type _host_index: int, optional
1390
+ :return: Returns the result object.
1391
+ """ # noqa: E501
1392
+
1393
+ _param = self._upload_application_document_serialize(
1394
+ application_id=application_id,
1395
+ document_id=document_id,
1396
+ body=body,
1397
+ _request_auth=_request_auth,
1398
+ _content_type=_content_type,
1399
+ _headers=_headers,
1400
+ _host_index=_host_index
1401
+ )
1402
+
1403
+ _response_types_map: Dict[str, Optional[str]] = {
1404
+ '200': "CreateApplicationDocument200Response",
1405
+ '400': "ErrorDocument",
1406
+ '401': "ErrorDocument",
1407
+ '404': "ErrorDocument",
1408
+ }
1409
+ response_data = self.api_client.call_api(
1410
+ *_param,
1411
+ _request_timeout=_request_timeout
1412
+ )
1413
+ return response_data.response
1414
+
1415
+
1416
+ def _upload_application_document_serialize(
1417
+ self,
1418
+ application_id,
1419
+ document_id,
1420
+ body,
1421
+ _request_auth,
1422
+ _content_type,
1423
+ _headers,
1424
+ _host_index,
1425
+ ) -> RequestSerialized:
1426
+
1427
+ _host = None
1428
+
1429
+ _collection_formats: Dict[str, str] = {
1430
+ }
1431
+
1432
+ _path_params: Dict[str, str] = {}
1433
+ _query_params: List[Tuple[str, str]] = []
1434
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1435
+ _form_params: List[Tuple[str, str]] = []
1436
+ _files: Dict[
1437
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1438
+ ] = {}
1439
+ _body_params: Optional[bytes] = None
1440
+
1441
+ # process the path parameters
1442
+ if application_id is not None:
1443
+ _path_params['applicationId'] = application_id
1444
+ if document_id is not None:
1445
+ _path_params['documentId'] = document_id
1446
+ # process the query parameters
1447
+ # process the header parameters
1448
+ # process the form parameters
1449
+ # process the body parameter
1450
+ if body is not None:
1451
+ # convert to byte array if the input is a file name (str)
1452
+ if isinstance(body, str):
1453
+ with open(body, "rb") as _fp:
1454
+ _body_params = _fp.read()
1455
+ elif isinstance(body, tuple):
1456
+ # drop the filename from the tuple
1457
+ _body_params = body[1]
1458
+ else:
1459
+ _body_params = body
1460
+
1461
+
1462
+ # set the HTTP header `Accept`
1463
+ if 'Accept' not in _header_params:
1464
+ _header_params['Accept'] = self.api_client.select_header_accept(
1465
+ [
1466
+ 'application/vnd.api+json'
1467
+ ]
1468
+ )
1469
+
1470
+ # set the HTTP header `Content-Type`
1471
+ if _content_type:
1472
+ _header_params['Content-Type'] = _content_type
1473
+ else:
1474
+ _default_content_type = (
1475
+ self.api_client.select_header_content_type(
1476
+ [
1477
+ 'application/pdf',
1478
+ 'image/jpeg',
1479
+ 'image/png'
1480
+ ]
1481
+ )
1482
+ )
1483
+ if _default_content_type is not None:
1484
+ _header_params['Content-Type'] = _default_content_type
1485
+
1486
+ # authentication setting
1487
+ _auth_settings: List[str] = [
1488
+ 'bearerAuth'
1489
+ ]
1490
+
1491
+ return self.api_client.param_serialize(
1492
+ method='PUT',
1493
+ resource_path='/applications/{applicationId}/documents/{documentId}',
1494
+ path_params=_path_params,
1495
+ query_params=_query_params,
1496
+ header_params=_header_params,
1497
+ body=_body_params,
1498
+ post_params=_form_params,
1499
+ files=_files,
1500
+ auth_settings=_auth_settings,
1501
+ collection_formats=_collection_formats,
1502
+ _host=_host,
1503
+ _request_auth=_request_auth
1504
+ )
1505
+
1506
+
1507
+
1508
+
1509
+ @validate_call
1510
+ def upload_application_document_back_side(
1511
+ self,
1512
+ application_id: StrictStr,
1513
+ document_id: StrictStr,
1514
+ body: Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]],
1515
+ _request_timeout: Union[
1516
+ None,
1517
+ Annotated[StrictFloat, Field(gt=0)],
1518
+ Tuple[
1519
+ Annotated[StrictFloat, Field(gt=0)],
1520
+ Annotated[StrictFloat, Field(gt=0)]
1521
+ ]
1522
+ ] = None,
1523
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1524
+ _content_type: Optional[StrictStr] = None,
1525
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1526
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1527
+ ) -> CreateApplicationDocument200Response:
1528
+ """Upload an application document back-side
1529
+
1530
+ Uploads the back-side of a document. Supported file types are `pdf`, `jpeg` or `png`. This endpoint is not available when `archived`=`true`.
1531
+
1532
+ :param application_id: (required)
1533
+ :type application_id: str
1534
+ :param document_id: (required)
1535
+ :type document_id: str
1536
+ :param body: (required)
1537
+ :type body: bytes
1538
+ :param _request_timeout: timeout setting for this request. If one
1539
+ number provided, it will be total request
1540
+ timeout. It can also be a pair (tuple) of
1541
+ (connection, read) timeouts.
1542
+ :type _request_timeout: int, tuple(int, int), optional
1543
+ :param _request_auth: set to override the auth_settings for an a single
1544
+ request; this effectively ignores the
1545
+ authentication in the spec for a single request.
1546
+ :type _request_auth: dict, optional
1547
+ :param _content_type: force content-type for the request.
1548
+ :type _content_type: str, Optional
1549
+ :param _headers: set to override the headers for a single
1550
+ request; this effectively ignores the headers
1551
+ in the spec for a single request.
1552
+ :type _headers: dict, optional
1553
+ :param _host_index: set to override the host_index for a single
1554
+ request; this effectively ignores the host_index
1555
+ in the spec for a single request.
1556
+ :type _host_index: int, optional
1557
+ :return: Returns the result object.
1558
+ """ # noqa: E501
1559
+
1560
+ _param = self._upload_application_document_back_side_serialize(
1561
+ application_id=application_id,
1562
+ document_id=document_id,
1563
+ body=body,
1564
+ _request_auth=_request_auth,
1565
+ _content_type=_content_type,
1566
+ _headers=_headers,
1567
+ _host_index=_host_index
1568
+ )
1569
+
1570
+ _response_types_map: Dict[str, Optional[str]] = {
1571
+ '200': "CreateApplicationDocument200Response",
1572
+ '400': "ErrorDocument",
1573
+ '401': "ErrorDocument",
1574
+ '404': "ErrorDocument",
1575
+ }
1576
+ response_data = self.api_client.call_api(
1577
+ *_param,
1578
+ _request_timeout=_request_timeout
1579
+ )
1580
+ response_data.read()
1581
+ return self.api_client.response_deserialize(
1582
+ response_data=response_data,
1583
+ response_types_map=_response_types_map,
1584
+ ).data
1585
+
1586
+
1587
+ @validate_call
1588
+ def upload_application_document_back_side_with_http_info(
1589
+ self,
1590
+ application_id: StrictStr,
1591
+ document_id: StrictStr,
1592
+ body: Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]],
1593
+ _request_timeout: Union[
1594
+ None,
1595
+ Annotated[StrictFloat, Field(gt=0)],
1596
+ Tuple[
1597
+ Annotated[StrictFloat, Field(gt=0)],
1598
+ Annotated[StrictFloat, Field(gt=0)]
1599
+ ]
1600
+ ] = None,
1601
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1602
+ _content_type: Optional[StrictStr] = None,
1603
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1604
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1605
+ ) -> ApiResponse[CreateApplicationDocument200Response]:
1606
+ """Upload an application document back-side
1607
+
1608
+ Uploads the back-side of a document. Supported file types are `pdf`, `jpeg` or `png`. This endpoint is not available when `archived`=`true`.
1609
+
1610
+ :param application_id: (required)
1611
+ :type application_id: str
1612
+ :param document_id: (required)
1613
+ :type document_id: str
1614
+ :param body: (required)
1615
+ :type body: bytes
1616
+ :param _request_timeout: timeout setting for this request. If one
1617
+ number provided, it will be total request
1618
+ timeout. It can also be a pair (tuple) of
1619
+ (connection, read) timeouts.
1620
+ :type _request_timeout: int, tuple(int, int), optional
1621
+ :param _request_auth: set to override the auth_settings for an a single
1622
+ request; this effectively ignores the
1623
+ authentication in the spec for a single request.
1624
+ :type _request_auth: dict, optional
1625
+ :param _content_type: force content-type for the request.
1626
+ :type _content_type: str, Optional
1627
+ :param _headers: set to override the headers for a single
1628
+ request; this effectively ignores the headers
1629
+ in the spec for a single request.
1630
+ :type _headers: dict, optional
1631
+ :param _host_index: set to override the host_index for a single
1632
+ request; this effectively ignores the host_index
1633
+ in the spec for a single request.
1634
+ :type _host_index: int, optional
1635
+ :return: Returns the result object.
1636
+ """ # noqa: E501
1637
+
1638
+ _param = self._upload_application_document_back_side_serialize(
1639
+ application_id=application_id,
1640
+ document_id=document_id,
1641
+ body=body,
1642
+ _request_auth=_request_auth,
1643
+ _content_type=_content_type,
1644
+ _headers=_headers,
1645
+ _host_index=_host_index
1646
+ )
1647
+
1648
+ _response_types_map: Dict[str, Optional[str]] = {
1649
+ '200': "CreateApplicationDocument200Response",
1650
+ '400': "ErrorDocument",
1651
+ '401': "ErrorDocument",
1652
+ '404': "ErrorDocument",
1653
+ }
1654
+ response_data = self.api_client.call_api(
1655
+ *_param,
1656
+ _request_timeout=_request_timeout
1657
+ )
1658
+ response_data.read()
1659
+ return self.api_client.response_deserialize(
1660
+ response_data=response_data,
1661
+ response_types_map=_response_types_map,
1662
+ )
1663
+
1664
+
1665
+ @validate_call
1666
+ def upload_application_document_back_side_without_preload_content(
1667
+ self,
1668
+ application_id: StrictStr,
1669
+ document_id: StrictStr,
1670
+ body: Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]],
1671
+ _request_timeout: Union[
1672
+ None,
1673
+ Annotated[StrictFloat, Field(gt=0)],
1674
+ Tuple[
1675
+ Annotated[StrictFloat, Field(gt=0)],
1676
+ Annotated[StrictFloat, Field(gt=0)]
1677
+ ]
1678
+ ] = None,
1679
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1680
+ _content_type: Optional[StrictStr] = None,
1681
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1682
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1683
+ ) -> RESTResponseType:
1684
+ """Upload an application document back-side
1685
+
1686
+ Uploads the back-side of a document. Supported file types are `pdf`, `jpeg` or `png`. This endpoint is not available when `archived`=`true`.
1687
+
1688
+ :param application_id: (required)
1689
+ :type application_id: str
1690
+ :param document_id: (required)
1691
+ :type document_id: str
1692
+ :param body: (required)
1693
+ :type body: bytes
1694
+ :param _request_timeout: timeout setting for this request. If one
1695
+ number provided, it will be total request
1696
+ timeout. It can also be a pair (tuple) of
1697
+ (connection, read) timeouts.
1698
+ :type _request_timeout: int, tuple(int, int), optional
1699
+ :param _request_auth: set to override the auth_settings for an a single
1700
+ request; this effectively ignores the
1701
+ authentication in the spec for a single request.
1702
+ :type _request_auth: dict, optional
1703
+ :param _content_type: force content-type for the request.
1704
+ :type _content_type: str, Optional
1705
+ :param _headers: set to override the headers for a single
1706
+ request; this effectively ignores the headers
1707
+ in the spec for a single request.
1708
+ :type _headers: dict, optional
1709
+ :param _host_index: set to override the host_index for a single
1710
+ request; this effectively ignores the host_index
1711
+ in the spec for a single request.
1712
+ :type _host_index: int, optional
1713
+ :return: Returns the result object.
1714
+ """ # noqa: E501
1715
+
1716
+ _param = self._upload_application_document_back_side_serialize(
1717
+ application_id=application_id,
1718
+ document_id=document_id,
1719
+ body=body,
1720
+ _request_auth=_request_auth,
1721
+ _content_type=_content_type,
1722
+ _headers=_headers,
1723
+ _host_index=_host_index
1724
+ )
1725
+
1726
+ _response_types_map: Dict[str, Optional[str]] = {
1727
+ '200': "CreateApplicationDocument200Response",
1728
+ '400': "ErrorDocument",
1729
+ '401': "ErrorDocument",
1730
+ '404': "ErrorDocument",
1731
+ }
1732
+ response_data = self.api_client.call_api(
1733
+ *_param,
1734
+ _request_timeout=_request_timeout
1735
+ )
1736
+ return response_data.response
1737
+
1738
+
1739
+ def _upload_application_document_back_side_serialize(
1740
+ self,
1741
+ application_id,
1742
+ document_id,
1743
+ body,
1744
+ _request_auth,
1745
+ _content_type,
1746
+ _headers,
1747
+ _host_index,
1748
+ ) -> RequestSerialized:
1749
+
1750
+ _host = None
1751
+
1752
+ _collection_formats: Dict[str, str] = {
1753
+ }
1754
+
1755
+ _path_params: Dict[str, str] = {}
1756
+ _query_params: List[Tuple[str, str]] = []
1757
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1758
+ _form_params: List[Tuple[str, str]] = []
1759
+ _files: Dict[
1760
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1761
+ ] = {}
1762
+ _body_params: Optional[bytes] = None
1763
+
1764
+ # process the path parameters
1765
+ if application_id is not None:
1766
+ _path_params['applicationId'] = application_id
1767
+ if document_id is not None:
1768
+ _path_params['documentId'] = document_id
1769
+ # process the query parameters
1770
+ # process the header parameters
1771
+ # process the form parameters
1772
+ # process the body parameter
1773
+ if body is not None:
1774
+ # convert to byte array if the input is a file name (str)
1775
+ if isinstance(body, str):
1776
+ with open(body, "rb") as _fp:
1777
+ _body_params = _fp.read()
1778
+ elif isinstance(body, tuple):
1779
+ # drop the filename from the tuple
1780
+ _body_params = body[1]
1781
+ else:
1782
+ _body_params = body
1783
+
1784
+
1785
+ # set the HTTP header `Accept`
1786
+ if 'Accept' not in _header_params:
1787
+ _header_params['Accept'] = self.api_client.select_header_accept(
1788
+ [
1789
+ 'application/vnd.api+json'
1790
+ ]
1791
+ )
1792
+
1793
+ # set the HTTP header `Content-Type`
1794
+ if _content_type:
1795
+ _header_params['Content-Type'] = _content_type
1796
+ else:
1797
+ _default_content_type = (
1798
+ self.api_client.select_header_content_type(
1799
+ [
1800
+ 'application/pdf',
1801
+ 'image/jpeg',
1802
+ 'image/png'
1803
+ ]
1804
+ )
1805
+ )
1806
+ if _default_content_type is not None:
1807
+ _header_params['Content-Type'] = _default_content_type
1808
+
1809
+ # authentication setting
1810
+ _auth_settings: List[str] = [
1811
+ 'bearerAuth'
1812
+ ]
1813
+
1814
+ return self.api_client.param_serialize(
1815
+ method='PUT',
1816
+ resource_path='/applications/{applicationId}/documents/{documentId}/back',
1817
+ path_params=_path_params,
1818
+ query_params=_query_params,
1819
+ header_params=_header_params,
1820
+ body=_body_params,
1821
+ post_params=_form_params,
1822
+ files=_files,
1823
+ auth_settings=_auth_settings,
1824
+ collection_formats=_collection_formats,
1825
+ _host=_host,
1826
+ _request_auth=_request_auth
1827
+ )
1828
+
1829
+
1830
+
1831
+
1832
+ @validate_call
1833
+ def verify_application_document(
1834
+ self,
1835
+ application_id: StrictStr,
1836
+ document_id: StrictStr,
1837
+ verify_document_request: VerifyDocumentRequest,
1838
+ _request_timeout: Union[
1839
+ None,
1840
+ Annotated[StrictFloat, Field(gt=0)],
1841
+ Tuple[
1842
+ Annotated[StrictFloat, Field(gt=0)],
1843
+ Annotated[StrictFloat, Field(gt=0)]
1844
+ ]
1845
+ ] = None,
1846
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1847
+ _content_type: Optional[StrictStr] = None,
1848
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1849
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1850
+ ) -> CreateApplicationDocument200Response:
1851
+ """Verify document
1852
+
1853
+ Verify Selfie Verification document
1854
+
1855
+ :param application_id: (required)
1856
+ :type application_id: str
1857
+ :param document_id: (required)
1858
+ :type document_id: str
1859
+ :param verify_document_request: (required)
1860
+ :type verify_document_request: VerifyDocumentRequest
1861
+ :param _request_timeout: timeout setting for this request. If one
1862
+ number provided, it will be total request
1863
+ timeout. It can also be a pair (tuple) of
1864
+ (connection, read) timeouts.
1865
+ :type _request_timeout: int, tuple(int, int), optional
1866
+ :param _request_auth: set to override the auth_settings for an a single
1867
+ request; this effectively ignores the
1868
+ authentication in the spec for a single request.
1869
+ :type _request_auth: dict, optional
1870
+ :param _content_type: force content-type for the request.
1871
+ :type _content_type: str, Optional
1872
+ :param _headers: set to override the headers for a single
1873
+ request; this effectively ignores the headers
1874
+ in the spec for a single request.
1875
+ :type _headers: dict, optional
1876
+ :param _host_index: set to override the host_index for a single
1877
+ request; this effectively ignores the host_index
1878
+ in the spec for a single request.
1879
+ :type _host_index: int, optional
1880
+ :return: Returns the result object.
1881
+ """ # noqa: E501
1882
+
1883
+ _param = self._verify_application_document_serialize(
1884
+ application_id=application_id,
1885
+ document_id=document_id,
1886
+ verify_document_request=verify_document_request,
1887
+ _request_auth=_request_auth,
1888
+ _content_type=_content_type,
1889
+ _headers=_headers,
1890
+ _host_index=_host_index
1891
+ )
1892
+
1893
+ _response_types_map: Dict[str, Optional[str]] = {
1894
+ '200': "CreateApplicationDocument200Response",
1895
+ '400': "ErrorDocument",
1896
+ '401': "ErrorDocument",
1897
+ '404': "ErrorDocument",
1898
+ }
1899
+ response_data = self.api_client.call_api(
1900
+ *_param,
1901
+ _request_timeout=_request_timeout
1902
+ )
1903
+ response_data.read()
1904
+ return self.api_client.response_deserialize(
1905
+ response_data=response_data,
1906
+ response_types_map=_response_types_map,
1907
+ ).data
1908
+
1909
+
1910
+ @validate_call
1911
+ def verify_application_document_with_http_info(
1912
+ self,
1913
+ application_id: StrictStr,
1914
+ document_id: StrictStr,
1915
+ verify_document_request: VerifyDocumentRequest,
1916
+ _request_timeout: Union[
1917
+ None,
1918
+ Annotated[StrictFloat, Field(gt=0)],
1919
+ Tuple[
1920
+ Annotated[StrictFloat, Field(gt=0)],
1921
+ Annotated[StrictFloat, Field(gt=0)]
1922
+ ]
1923
+ ] = None,
1924
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1925
+ _content_type: Optional[StrictStr] = None,
1926
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1927
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1928
+ ) -> ApiResponse[CreateApplicationDocument200Response]:
1929
+ """Verify document
1930
+
1931
+ Verify Selfie Verification document
1932
+
1933
+ :param application_id: (required)
1934
+ :type application_id: str
1935
+ :param document_id: (required)
1936
+ :type document_id: str
1937
+ :param verify_document_request: (required)
1938
+ :type verify_document_request: VerifyDocumentRequest
1939
+ :param _request_timeout: timeout setting for this request. If one
1940
+ number provided, it will be total request
1941
+ timeout. It can also be a pair (tuple) of
1942
+ (connection, read) timeouts.
1943
+ :type _request_timeout: int, tuple(int, int), optional
1944
+ :param _request_auth: set to override the auth_settings for an a single
1945
+ request; this effectively ignores the
1946
+ authentication in the spec for a single request.
1947
+ :type _request_auth: dict, optional
1948
+ :param _content_type: force content-type for the request.
1949
+ :type _content_type: str, Optional
1950
+ :param _headers: set to override the headers for a single
1951
+ request; this effectively ignores the headers
1952
+ in the spec for a single request.
1953
+ :type _headers: dict, optional
1954
+ :param _host_index: set to override the host_index for a single
1955
+ request; this effectively ignores the host_index
1956
+ in the spec for a single request.
1957
+ :type _host_index: int, optional
1958
+ :return: Returns the result object.
1959
+ """ # noqa: E501
1960
+
1961
+ _param = self._verify_application_document_serialize(
1962
+ application_id=application_id,
1963
+ document_id=document_id,
1964
+ verify_document_request=verify_document_request,
1965
+ _request_auth=_request_auth,
1966
+ _content_type=_content_type,
1967
+ _headers=_headers,
1968
+ _host_index=_host_index
1969
+ )
1970
+
1971
+ _response_types_map: Dict[str, Optional[str]] = {
1972
+ '200': "CreateApplicationDocument200Response",
1973
+ '400': "ErrorDocument",
1974
+ '401': "ErrorDocument",
1975
+ '404': "ErrorDocument",
1976
+ }
1977
+ response_data = self.api_client.call_api(
1978
+ *_param,
1979
+ _request_timeout=_request_timeout
1980
+ )
1981
+ response_data.read()
1982
+ return self.api_client.response_deserialize(
1983
+ response_data=response_data,
1984
+ response_types_map=_response_types_map,
1985
+ )
1986
+
1987
+
1988
+ @validate_call
1989
+ def verify_application_document_without_preload_content(
1990
+ self,
1991
+ application_id: StrictStr,
1992
+ document_id: StrictStr,
1993
+ verify_document_request: VerifyDocumentRequest,
1994
+ _request_timeout: Union[
1995
+ None,
1996
+ Annotated[StrictFloat, Field(gt=0)],
1997
+ Tuple[
1998
+ Annotated[StrictFloat, Field(gt=0)],
1999
+ Annotated[StrictFloat, Field(gt=0)]
2000
+ ]
2001
+ ] = None,
2002
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2003
+ _content_type: Optional[StrictStr] = None,
2004
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2005
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2006
+ ) -> RESTResponseType:
2007
+ """Verify document
2008
+
2009
+ Verify Selfie Verification document
2010
+
2011
+ :param application_id: (required)
2012
+ :type application_id: str
2013
+ :param document_id: (required)
2014
+ :type document_id: str
2015
+ :param verify_document_request: (required)
2016
+ :type verify_document_request: VerifyDocumentRequest
2017
+ :param _request_timeout: timeout setting for this request. If one
2018
+ number provided, it will be total request
2019
+ timeout. It can also be a pair (tuple) of
2020
+ (connection, read) timeouts.
2021
+ :type _request_timeout: int, tuple(int, int), optional
2022
+ :param _request_auth: set to override the auth_settings for an a single
2023
+ request; this effectively ignores the
2024
+ authentication in the spec for a single request.
2025
+ :type _request_auth: dict, optional
2026
+ :param _content_type: force content-type for the request.
2027
+ :type _content_type: str, Optional
2028
+ :param _headers: set to override the headers for a single
2029
+ request; this effectively ignores the headers
2030
+ in the spec for a single request.
2031
+ :type _headers: dict, optional
2032
+ :param _host_index: set to override the host_index for a single
2033
+ request; this effectively ignores the host_index
2034
+ in the spec for a single request.
2035
+ :type _host_index: int, optional
2036
+ :return: Returns the result object.
2037
+ """ # noqa: E501
2038
+
2039
+ _param = self._verify_application_document_serialize(
2040
+ application_id=application_id,
2041
+ document_id=document_id,
2042
+ verify_document_request=verify_document_request,
2043
+ _request_auth=_request_auth,
2044
+ _content_type=_content_type,
2045
+ _headers=_headers,
2046
+ _host_index=_host_index
2047
+ )
2048
+
2049
+ _response_types_map: Dict[str, Optional[str]] = {
2050
+ '200': "CreateApplicationDocument200Response",
2051
+ '400': "ErrorDocument",
2052
+ '401': "ErrorDocument",
2053
+ '404': "ErrorDocument",
2054
+ }
2055
+ response_data = self.api_client.call_api(
2056
+ *_param,
2057
+ _request_timeout=_request_timeout
2058
+ )
2059
+ return response_data.response
2060
+
2061
+
2062
+ def _verify_application_document_serialize(
2063
+ self,
2064
+ application_id,
2065
+ document_id,
2066
+ verify_document_request,
2067
+ _request_auth,
2068
+ _content_type,
2069
+ _headers,
2070
+ _host_index,
2071
+ ) -> RequestSerialized:
2072
+
2073
+ _host = None
2074
+
2075
+ _collection_formats: Dict[str, str] = {
2076
+ }
2077
+
2078
+ _path_params: Dict[str, str] = {}
2079
+ _query_params: List[Tuple[str, str]] = []
2080
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2081
+ _form_params: List[Tuple[str, str]] = []
2082
+ _files: Dict[
2083
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2084
+ ] = {}
2085
+ _body_params: Optional[bytes] = None
2086
+
2087
+ # process the path parameters
2088
+ if application_id is not None:
2089
+ _path_params['applicationId'] = application_id
2090
+ if document_id is not None:
2091
+ _path_params['documentId'] = document_id
2092
+ # process the query parameters
2093
+ # process the header parameters
2094
+ # process the form parameters
2095
+ # process the body parameter
2096
+ if verify_document_request is not None:
2097
+ _body_params = verify_document_request
2098
+
2099
+
2100
+ # set the HTTP header `Accept`
2101
+ if 'Accept' not in _header_params:
2102
+ _header_params['Accept'] = self.api_client.select_header_accept(
2103
+ [
2104
+ 'application/vnd.api+json'
2105
+ ]
2106
+ )
2107
+
2108
+ # set the HTTP header `Content-Type`
2109
+ if _content_type:
2110
+ _header_params['Content-Type'] = _content_type
2111
+ else:
2112
+ _default_content_type = (
2113
+ self.api_client.select_header_content_type(
2114
+ [
2115
+ 'application/vnd.api+json'
2116
+ ]
2117
+ )
2118
+ )
2119
+ if _default_content_type is not None:
2120
+ _header_params['Content-Type'] = _default_content_type
2121
+
2122
+ # authentication setting
2123
+ _auth_settings: List[str] = [
2124
+ 'bearerAuth'
2125
+ ]
2126
+
2127
+ return self.api_client.param_serialize(
2128
+ method='POST',
2129
+ resource_path='/application/{applicationId}/documents/{documentId}/verify',
2130
+ path_params=_path_params,
2131
+ query_params=_query_params,
2132
+ header_params=_header_params,
2133
+ body=_body_params,
2134
+ post_params=_form_params,
2135
+ files=_files,
2136
+ auth_settings=_auth_settings,
2137
+ collection_formats=_collection_formats,
2138
+ _host=_host,
2139
+ _request_auth=_request_auth
2140
+ )
2141
+
2142
+