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