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,1853 @@
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
19
+ from typing import Any, Dict, Optional
20
+ from typing_extensions import Annotated
21
+ from unit_finance_sdk.models.create_counterparty201_response import CreateCounterparty201Response
22
+ from unit_finance_sdk.models.create_counterparty_body import CreateCounterpartyBody
23
+ from unit_finance_sdk.models.get_counterparty_balance200_response import GetCounterpartyBalance200Response
24
+ from unit_finance_sdk.models.list_counterparties200_response import ListCounterparties200Response
25
+ from unit_finance_sdk.models.update_counterparty200_response import UpdateCounterparty200Response
26
+ from unit_finance_sdk.models.update_counterparty_request import UpdateCounterpartyRequest
27
+
28
+ from unit_finance_sdk.api_client import ApiClient, RequestSerialized
29
+ from unit_finance_sdk.api_response import ApiResponse
30
+ from unit_finance_sdk.rest import RESTResponseType
31
+
32
+
33
+ class CounterpartiesApi:
34
+ """NOTE: This class is auto generated by OpenAPI Generator
35
+ Ref: https://openapi-generator.tech
36
+
37
+ Do not edit the class manually.
38
+ """
39
+
40
+ def __init__(self, api_client=None) -> None:
41
+ if api_client is None:
42
+ api_client = ApiClient.get_default()
43
+ self.api_client = api_client
44
+
45
+
46
+ @validate_call
47
+ def create_counterparty(
48
+ self,
49
+ create_counterparty_body: CreateCounterpartyBody,
50
+ _request_timeout: Union[
51
+ None,
52
+ Annotated[StrictFloat, Field(gt=0)],
53
+ Tuple[
54
+ Annotated[StrictFloat, Field(gt=0)],
55
+ Annotated[StrictFloat, Field(gt=0)]
56
+ ]
57
+ ] = None,
58
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
59
+ _content_type: Optional[StrictStr] = None,
60
+ _headers: Optional[Dict[StrictStr, Any]] = None,
61
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
62
+ ) -> CreateCounterparty201Response:
63
+ """Create a counterparty
64
+
65
+ Creates an ACH counterparty for a specific customer. The request body is one of CreateCounterpartyRequest (account/routing number) or CreateCounterpartyWithPlaidTokenRequest (Plaid processor token).
66
+
67
+ :param create_counterparty_body: (required)
68
+ :type create_counterparty_body: CreateCounterpartyBody
69
+ :param _request_timeout: timeout setting for this request. If one
70
+ number provided, it will be total request
71
+ timeout. It can also be a pair (tuple) of
72
+ (connection, read) timeouts.
73
+ :type _request_timeout: int, tuple(int, int), optional
74
+ :param _request_auth: set to override the auth_settings for an a single
75
+ request; this effectively ignores the
76
+ authentication in the spec for a single request.
77
+ :type _request_auth: dict, optional
78
+ :param _content_type: force content-type for the request.
79
+ :type _content_type: str, Optional
80
+ :param _headers: set to override the headers for a single
81
+ request; this effectively ignores the headers
82
+ in the spec for a single request.
83
+ :type _headers: dict, optional
84
+ :param _host_index: set to override the host_index for a single
85
+ request; this effectively ignores the host_index
86
+ in the spec for a single request.
87
+ :type _host_index: int, optional
88
+ :return: Returns the result object.
89
+ """ # noqa: E501
90
+
91
+ _param = self._create_counterparty_serialize(
92
+ create_counterparty_body=create_counterparty_body,
93
+ _request_auth=_request_auth,
94
+ _content_type=_content_type,
95
+ _headers=_headers,
96
+ _host_index=_host_index
97
+ )
98
+
99
+ _response_types_map: Dict[str, Optional[str]] = {
100
+ '201': "CreateCounterparty201Response",
101
+ '400': "ErrorDocument",
102
+ '401': "ErrorDocument",
103
+ '404': "ErrorDocument",
104
+ }
105
+ response_data = self.api_client.call_api(
106
+ *_param,
107
+ _request_timeout=_request_timeout
108
+ )
109
+ response_data.read()
110
+ return self.api_client.response_deserialize(
111
+ response_data=response_data,
112
+ response_types_map=_response_types_map,
113
+ ).data
114
+
115
+
116
+ @validate_call
117
+ def create_counterparty_with_http_info(
118
+ self,
119
+ create_counterparty_body: CreateCounterpartyBody,
120
+ _request_timeout: Union[
121
+ None,
122
+ Annotated[StrictFloat, Field(gt=0)],
123
+ Tuple[
124
+ Annotated[StrictFloat, Field(gt=0)],
125
+ Annotated[StrictFloat, Field(gt=0)]
126
+ ]
127
+ ] = None,
128
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
129
+ _content_type: Optional[StrictStr] = None,
130
+ _headers: Optional[Dict[StrictStr, Any]] = None,
131
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
132
+ ) -> ApiResponse[CreateCounterparty201Response]:
133
+ """Create a counterparty
134
+
135
+ Creates an ACH counterparty for a specific customer. The request body is one of CreateCounterpartyRequest (account/routing number) or CreateCounterpartyWithPlaidTokenRequest (Plaid processor token).
136
+
137
+ :param create_counterparty_body: (required)
138
+ :type create_counterparty_body: CreateCounterpartyBody
139
+ :param _request_timeout: timeout setting for this request. If one
140
+ number provided, it will be total request
141
+ timeout. It can also be a pair (tuple) of
142
+ (connection, read) timeouts.
143
+ :type _request_timeout: int, tuple(int, int), optional
144
+ :param _request_auth: set to override the auth_settings for an a single
145
+ request; this effectively ignores the
146
+ authentication in the spec for a single request.
147
+ :type _request_auth: dict, optional
148
+ :param _content_type: force content-type for the request.
149
+ :type _content_type: str, Optional
150
+ :param _headers: set to override the headers for a single
151
+ request; this effectively ignores the headers
152
+ in the spec for a single request.
153
+ :type _headers: dict, optional
154
+ :param _host_index: set to override the host_index for a single
155
+ request; this effectively ignores the host_index
156
+ in the spec for a single request.
157
+ :type _host_index: int, optional
158
+ :return: Returns the result object.
159
+ """ # noqa: E501
160
+
161
+ _param = self._create_counterparty_serialize(
162
+ create_counterparty_body=create_counterparty_body,
163
+ _request_auth=_request_auth,
164
+ _content_type=_content_type,
165
+ _headers=_headers,
166
+ _host_index=_host_index
167
+ )
168
+
169
+ _response_types_map: Dict[str, Optional[str]] = {
170
+ '201': "CreateCounterparty201Response",
171
+ '400': "ErrorDocument",
172
+ '401': "ErrorDocument",
173
+ '404': "ErrorDocument",
174
+ }
175
+ response_data = self.api_client.call_api(
176
+ *_param,
177
+ _request_timeout=_request_timeout
178
+ )
179
+ response_data.read()
180
+ return self.api_client.response_deserialize(
181
+ response_data=response_data,
182
+ response_types_map=_response_types_map,
183
+ )
184
+
185
+
186
+ @validate_call
187
+ def create_counterparty_without_preload_content(
188
+ self,
189
+ create_counterparty_body: CreateCounterpartyBody,
190
+ _request_timeout: Union[
191
+ None,
192
+ Annotated[StrictFloat, Field(gt=0)],
193
+ Tuple[
194
+ Annotated[StrictFloat, Field(gt=0)],
195
+ Annotated[StrictFloat, Field(gt=0)]
196
+ ]
197
+ ] = None,
198
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
199
+ _content_type: Optional[StrictStr] = None,
200
+ _headers: Optional[Dict[StrictStr, Any]] = None,
201
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
202
+ ) -> RESTResponseType:
203
+ """Create a counterparty
204
+
205
+ Creates an ACH counterparty for a specific customer. The request body is one of CreateCounterpartyRequest (account/routing number) or CreateCounterpartyWithPlaidTokenRequest (Plaid processor token).
206
+
207
+ :param create_counterparty_body: (required)
208
+ :type create_counterparty_body: CreateCounterpartyBody
209
+ :param _request_timeout: timeout setting for this request. If one
210
+ number provided, it will be total request
211
+ timeout. It can also be a pair (tuple) of
212
+ (connection, read) timeouts.
213
+ :type _request_timeout: int, tuple(int, int), optional
214
+ :param _request_auth: set to override the auth_settings for an a single
215
+ request; this effectively ignores the
216
+ authentication in the spec for a single request.
217
+ :type _request_auth: dict, optional
218
+ :param _content_type: force content-type for the request.
219
+ :type _content_type: str, Optional
220
+ :param _headers: set to override the headers for a single
221
+ request; this effectively ignores the headers
222
+ in the spec for a single request.
223
+ :type _headers: dict, optional
224
+ :param _host_index: set to override the host_index for a single
225
+ request; this effectively ignores the host_index
226
+ in the spec for a single request.
227
+ :type _host_index: int, optional
228
+ :return: Returns the result object.
229
+ """ # noqa: E501
230
+
231
+ _param = self._create_counterparty_serialize(
232
+ create_counterparty_body=create_counterparty_body,
233
+ _request_auth=_request_auth,
234
+ _content_type=_content_type,
235
+ _headers=_headers,
236
+ _host_index=_host_index
237
+ )
238
+
239
+ _response_types_map: Dict[str, Optional[str]] = {
240
+ '201': "CreateCounterparty201Response",
241
+ '400': "ErrorDocument",
242
+ '401': "ErrorDocument",
243
+ '404': "ErrorDocument",
244
+ }
245
+ response_data = self.api_client.call_api(
246
+ *_param,
247
+ _request_timeout=_request_timeout
248
+ )
249
+ return response_data.response
250
+
251
+
252
+ def _create_counterparty_serialize(
253
+ self,
254
+ create_counterparty_body,
255
+ _request_auth,
256
+ _content_type,
257
+ _headers,
258
+ _host_index,
259
+ ) -> RequestSerialized:
260
+
261
+ _host = None
262
+
263
+ _collection_formats: Dict[str, str] = {
264
+ }
265
+
266
+ _path_params: Dict[str, str] = {}
267
+ _query_params: List[Tuple[str, str]] = []
268
+ _header_params: Dict[str, Optional[str]] = _headers or {}
269
+ _form_params: List[Tuple[str, str]] = []
270
+ _files: Dict[
271
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
272
+ ] = {}
273
+ _body_params: Optional[bytes] = None
274
+
275
+ # process the path parameters
276
+ # process the query parameters
277
+ # process the header parameters
278
+ # process the form parameters
279
+ # process the body parameter
280
+ if create_counterparty_body is not None:
281
+ _body_params = create_counterparty_body
282
+
283
+
284
+ # set the HTTP header `Accept`
285
+ if 'Accept' not in _header_params:
286
+ _header_params['Accept'] = self.api_client.select_header_accept(
287
+ [
288
+ 'application/vnd.api+json'
289
+ ]
290
+ )
291
+
292
+ # set the HTTP header `Content-Type`
293
+ if _content_type:
294
+ _header_params['Content-Type'] = _content_type
295
+ else:
296
+ _default_content_type = (
297
+ self.api_client.select_header_content_type(
298
+ [
299
+ 'application/vnd.api+json'
300
+ ]
301
+ )
302
+ )
303
+ if _default_content_type is not None:
304
+ _header_params['Content-Type'] = _default_content_type
305
+
306
+ # authentication setting
307
+ _auth_settings: List[str] = [
308
+ 'bearerAuth'
309
+ ]
310
+
311
+ return self.api_client.param_serialize(
312
+ method='POST',
313
+ resource_path='/counterparties',
314
+ path_params=_path_params,
315
+ query_params=_query_params,
316
+ header_params=_header_params,
317
+ body=_body_params,
318
+ post_params=_form_params,
319
+ files=_files,
320
+ auth_settings=_auth_settings,
321
+ collection_formats=_collection_formats,
322
+ _host=_host,
323
+ _request_auth=_request_auth
324
+ )
325
+
326
+
327
+
328
+
329
+ @validate_call
330
+ def delete_counterparty(
331
+ self,
332
+ counterparty_id: StrictStr,
333
+ body: Optional[Dict[str, Any]] = None,
334
+ _request_timeout: Union[
335
+ None,
336
+ Annotated[StrictFloat, Field(gt=0)],
337
+ Tuple[
338
+ Annotated[StrictFloat, Field(gt=0)],
339
+ Annotated[StrictFloat, Field(gt=0)]
340
+ ]
341
+ ] = None,
342
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
343
+ _content_type: Optional[StrictStr] = None,
344
+ _headers: Optional[Dict[StrictStr, Any]] = None,
345
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
346
+ ) -> None:
347
+ """Delete a counterparty
348
+
349
+ Delete a counterparty resource by id.
350
+
351
+ :param counterparty_id: (required)
352
+ :type counterparty_id: str
353
+ :param body:
354
+ :type body: object
355
+ :param _request_timeout: timeout setting for this request. If one
356
+ number provided, it will be total request
357
+ timeout. It can also be a pair (tuple) of
358
+ (connection, read) timeouts.
359
+ :type _request_timeout: int, tuple(int, int), optional
360
+ :param _request_auth: set to override the auth_settings for an a single
361
+ request; this effectively ignores the
362
+ authentication in the spec for a single request.
363
+ :type _request_auth: dict, optional
364
+ :param _content_type: force content-type for the request.
365
+ :type _content_type: str, Optional
366
+ :param _headers: set to override the headers for a single
367
+ request; this effectively ignores the headers
368
+ in the spec for a single request.
369
+ :type _headers: dict, optional
370
+ :param _host_index: set to override the host_index for a single
371
+ request; this effectively ignores the host_index
372
+ in the spec for a single request.
373
+ :type _host_index: int, optional
374
+ :return: Returns the result object.
375
+ """ # noqa: E501
376
+
377
+ _param = self._delete_counterparty_serialize(
378
+ counterparty_id=counterparty_id,
379
+ body=body,
380
+ _request_auth=_request_auth,
381
+ _content_type=_content_type,
382
+ _headers=_headers,
383
+ _host_index=_host_index
384
+ )
385
+
386
+ _response_types_map: Dict[str, Optional[str]] = {
387
+ '204': None,
388
+ '400': "ErrorDocument",
389
+ '401': "ErrorDocument",
390
+ '404': "ErrorDocument",
391
+ }
392
+ response_data = self.api_client.call_api(
393
+ *_param,
394
+ _request_timeout=_request_timeout
395
+ )
396
+ response_data.read()
397
+ return self.api_client.response_deserialize(
398
+ response_data=response_data,
399
+ response_types_map=_response_types_map,
400
+ ).data
401
+
402
+
403
+ @validate_call
404
+ def delete_counterparty_with_http_info(
405
+ self,
406
+ counterparty_id: StrictStr,
407
+ body: Optional[Dict[str, Any]] = None,
408
+ _request_timeout: Union[
409
+ None,
410
+ Annotated[StrictFloat, Field(gt=0)],
411
+ Tuple[
412
+ Annotated[StrictFloat, Field(gt=0)],
413
+ Annotated[StrictFloat, Field(gt=0)]
414
+ ]
415
+ ] = None,
416
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
417
+ _content_type: Optional[StrictStr] = None,
418
+ _headers: Optional[Dict[StrictStr, Any]] = None,
419
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
420
+ ) -> ApiResponse[None]:
421
+ """Delete a counterparty
422
+
423
+ Delete a counterparty resource by id.
424
+
425
+ :param counterparty_id: (required)
426
+ :type counterparty_id: str
427
+ :param body:
428
+ :type body: object
429
+ :param _request_timeout: timeout setting for this request. If one
430
+ number provided, it will be total request
431
+ timeout. It can also be a pair (tuple) of
432
+ (connection, read) timeouts.
433
+ :type _request_timeout: int, tuple(int, int), optional
434
+ :param _request_auth: set to override the auth_settings for an a single
435
+ request; this effectively ignores the
436
+ authentication in the spec for a single request.
437
+ :type _request_auth: dict, optional
438
+ :param _content_type: force content-type for the request.
439
+ :type _content_type: str, Optional
440
+ :param _headers: set to override the headers for a single
441
+ request; this effectively ignores the headers
442
+ in the spec for a single request.
443
+ :type _headers: dict, optional
444
+ :param _host_index: set to override the host_index for a single
445
+ request; this effectively ignores the host_index
446
+ in the spec for a single request.
447
+ :type _host_index: int, optional
448
+ :return: Returns the result object.
449
+ """ # noqa: E501
450
+
451
+ _param = self._delete_counterparty_serialize(
452
+ counterparty_id=counterparty_id,
453
+ body=body,
454
+ _request_auth=_request_auth,
455
+ _content_type=_content_type,
456
+ _headers=_headers,
457
+ _host_index=_host_index
458
+ )
459
+
460
+ _response_types_map: Dict[str, Optional[str]] = {
461
+ '204': None,
462
+ '400': "ErrorDocument",
463
+ '401': "ErrorDocument",
464
+ '404': "ErrorDocument",
465
+ }
466
+ response_data = self.api_client.call_api(
467
+ *_param,
468
+ _request_timeout=_request_timeout
469
+ )
470
+ response_data.read()
471
+ return self.api_client.response_deserialize(
472
+ response_data=response_data,
473
+ response_types_map=_response_types_map,
474
+ )
475
+
476
+
477
+ @validate_call
478
+ def delete_counterparty_without_preload_content(
479
+ self,
480
+ counterparty_id: StrictStr,
481
+ body: Optional[Dict[str, Any]] = None,
482
+ _request_timeout: Union[
483
+ None,
484
+ Annotated[StrictFloat, Field(gt=0)],
485
+ Tuple[
486
+ Annotated[StrictFloat, Field(gt=0)],
487
+ Annotated[StrictFloat, Field(gt=0)]
488
+ ]
489
+ ] = None,
490
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
491
+ _content_type: Optional[StrictStr] = None,
492
+ _headers: Optional[Dict[StrictStr, Any]] = None,
493
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
494
+ ) -> RESTResponseType:
495
+ """Delete a counterparty
496
+
497
+ Delete a counterparty resource by id.
498
+
499
+ :param counterparty_id: (required)
500
+ :type counterparty_id: str
501
+ :param body:
502
+ :type body: object
503
+ :param _request_timeout: timeout setting for this request. If one
504
+ number provided, it will be total request
505
+ timeout. It can also be a pair (tuple) of
506
+ (connection, read) timeouts.
507
+ :type _request_timeout: int, tuple(int, int), optional
508
+ :param _request_auth: set to override the auth_settings for an a single
509
+ request; this effectively ignores the
510
+ authentication in the spec for a single request.
511
+ :type _request_auth: dict, optional
512
+ :param _content_type: force content-type for the request.
513
+ :type _content_type: str, Optional
514
+ :param _headers: set to override the headers for a single
515
+ request; this effectively ignores the headers
516
+ in the spec for a single request.
517
+ :type _headers: dict, optional
518
+ :param _host_index: set to override the host_index for a single
519
+ request; this effectively ignores the host_index
520
+ in the spec for a single request.
521
+ :type _host_index: int, optional
522
+ :return: Returns the result object.
523
+ """ # noqa: E501
524
+
525
+ _param = self._delete_counterparty_serialize(
526
+ counterparty_id=counterparty_id,
527
+ body=body,
528
+ _request_auth=_request_auth,
529
+ _content_type=_content_type,
530
+ _headers=_headers,
531
+ _host_index=_host_index
532
+ )
533
+
534
+ _response_types_map: Dict[str, Optional[str]] = {
535
+ '204': None,
536
+ '400': "ErrorDocument",
537
+ '401': "ErrorDocument",
538
+ '404': "ErrorDocument",
539
+ }
540
+ response_data = self.api_client.call_api(
541
+ *_param,
542
+ _request_timeout=_request_timeout
543
+ )
544
+ return response_data.response
545
+
546
+
547
+ def _delete_counterparty_serialize(
548
+ self,
549
+ counterparty_id,
550
+ body,
551
+ _request_auth,
552
+ _content_type,
553
+ _headers,
554
+ _host_index,
555
+ ) -> RequestSerialized:
556
+
557
+ _host = None
558
+
559
+ _collection_formats: Dict[str, str] = {
560
+ }
561
+
562
+ _path_params: Dict[str, str] = {}
563
+ _query_params: List[Tuple[str, str]] = []
564
+ _header_params: Dict[str, Optional[str]] = _headers or {}
565
+ _form_params: List[Tuple[str, str]] = []
566
+ _files: Dict[
567
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
568
+ ] = {}
569
+ _body_params: Optional[bytes] = None
570
+
571
+ # process the path parameters
572
+ if counterparty_id is not None:
573
+ _path_params['counterpartyId'] = counterparty_id
574
+ # process the query parameters
575
+ # process the header parameters
576
+ # process the form parameters
577
+ # process the body parameter
578
+ if body is not None:
579
+ _body_params = body
580
+
581
+
582
+ # set the HTTP header `Accept`
583
+ if 'Accept' not in _header_params:
584
+ _header_params['Accept'] = self.api_client.select_header_accept(
585
+ [
586
+ 'application/vnd.api+json'
587
+ ]
588
+ )
589
+
590
+ # set the HTTP header `Content-Type`
591
+ if _content_type:
592
+ _header_params['Content-Type'] = _content_type
593
+ else:
594
+ _default_content_type = (
595
+ self.api_client.select_header_content_type(
596
+ [
597
+ 'application/vnd.api+json'
598
+ ]
599
+ )
600
+ )
601
+ if _default_content_type is not None:
602
+ _header_params['Content-Type'] = _default_content_type
603
+
604
+ # authentication setting
605
+ _auth_settings: List[str] = [
606
+ 'bearerAuth'
607
+ ]
608
+
609
+ return self.api_client.param_serialize(
610
+ method='DELETE',
611
+ resource_path='/counterparties/{counterpartyId}',
612
+ path_params=_path_params,
613
+ query_params=_query_params,
614
+ header_params=_header_params,
615
+ body=_body_params,
616
+ post_params=_form_params,
617
+ files=_files,
618
+ auth_settings=_auth_settings,
619
+ collection_formats=_collection_formats,
620
+ _host=_host,
621
+ _request_auth=_request_auth
622
+ )
623
+
624
+
625
+
626
+
627
+ @validate_call
628
+ def get_counterparty(
629
+ self,
630
+ counterparty_id: StrictStr,
631
+ _request_timeout: Union[
632
+ None,
633
+ Annotated[StrictFloat, Field(gt=0)],
634
+ Tuple[
635
+ Annotated[StrictFloat, Field(gt=0)],
636
+ Annotated[StrictFloat, Field(gt=0)]
637
+ ]
638
+ ] = None,
639
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
640
+ _content_type: Optional[StrictStr] = None,
641
+ _headers: Optional[Dict[StrictStr, Any]] = None,
642
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
643
+ ) -> CreateCounterparty201Response:
644
+ """Get a counterparty by id
645
+
646
+ Get a counterparty resource by id.
647
+
648
+ :param counterparty_id: (required)
649
+ :type counterparty_id: str
650
+ :param _request_timeout: timeout setting for this request. If one
651
+ number provided, it will be total request
652
+ timeout. It can also be a pair (tuple) of
653
+ (connection, read) timeouts.
654
+ :type _request_timeout: int, tuple(int, int), optional
655
+ :param _request_auth: set to override the auth_settings for an a single
656
+ request; this effectively ignores the
657
+ authentication in the spec for a single request.
658
+ :type _request_auth: dict, optional
659
+ :param _content_type: force content-type for the request.
660
+ :type _content_type: str, Optional
661
+ :param _headers: set to override the headers for a single
662
+ request; this effectively ignores the headers
663
+ in the spec for a single request.
664
+ :type _headers: dict, optional
665
+ :param _host_index: set to override the host_index for a single
666
+ request; this effectively ignores the host_index
667
+ in the spec for a single request.
668
+ :type _host_index: int, optional
669
+ :return: Returns the result object.
670
+ """ # noqa: E501
671
+
672
+ _param = self._get_counterparty_serialize(
673
+ counterparty_id=counterparty_id,
674
+ _request_auth=_request_auth,
675
+ _content_type=_content_type,
676
+ _headers=_headers,
677
+ _host_index=_host_index
678
+ )
679
+
680
+ _response_types_map: Dict[str, Optional[str]] = {
681
+ '200': "CreateCounterparty201Response",
682
+ '400': "ErrorDocument",
683
+ '401': "ErrorDocument",
684
+ '404': "ErrorDocument",
685
+ }
686
+ response_data = self.api_client.call_api(
687
+ *_param,
688
+ _request_timeout=_request_timeout
689
+ )
690
+ response_data.read()
691
+ return self.api_client.response_deserialize(
692
+ response_data=response_data,
693
+ response_types_map=_response_types_map,
694
+ ).data
695
+
696
+
697
+ @validate_call
698
+ def get_counterparty_with_http_info(
699
+ self,
700
+ counterparty_id: StrictStr,
701
+ _request_timeout: Union[
702
+ None,
703
+ Annotated[StrictFloat, Field(gt=0)],
704
+ Tuple[
705
+ Annotated[StrictFloat, Field(gt=0)],
706
+ Annotated[StrictFloat, Field(gt=0)]
707
+ ]
708
+ ] = None,
709
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
710
+ _content_type: Optional[StrictStr] = None,
711
+ _headers: Optional[Dict[StrictStr, Any]] = None,
712
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
713
+ ) -> ApiResponse[CreateCounterparty201Response]:
714
+ """Get a counterparty by id
715
+
716
+ Get a counterparty resource by id.
717
+
718
+ :param counterparty_id: (required)
719
+ :type counterparty_id: str
720
+ :param _request_timeout: timeout setting for this request. If one
721
+ number provided, it will be total request
722
+ timeout. It can also be a pair (tuple) of
723
+ (connection, read) timeouts.
724
+ :type _request_timeout: int, tuple(int, int), optional
725
+ :param _request_auth: set to override the auth_settings for an a single
726
+ request; this effectively ignores the
727
+ authentication in the spec for a single request.
728
+ :type _request_auth: dict, optional
729
+ :param _content_type: force content-type for the request.
730
+ :type _content_type: str, Optional
731
+ :param _headers: set to override the headers for a single
732
+ request; this effectively ignores the headers
733
+ in the spec for a single request.
734
+ :type _headers: dict, optional
735
+ :param _host_index: set to override the host_index for a single
736
+ request; this effectively ignores the host_index
737
+ in the spec for a single request.
738
+ :type _host_index: int, optional
739
+ :return: Returns the result object.
740
+ """ # noqa: E501
741
+
742
+ _param = self._get_counterparty_serialize(
743
+ counterparty_id=counterparty_id,
744
+ _request_auth=_request_auth,
745
+ _content_type=_content_type,
746
+ _headers=_headers,
747
+ _host_index=_host_index
748
+ )
749
+
750
+ _response_types_map: Dict[str, Optional[str]] = {
751
+ '200': "CreateCounterparty201Response",
752
+ '400': "ErrorDocument",
753
+ '401': "ErrorDocument",
754
+ '404': "ErrorDocument",
755
+ }
756
+ response_data = self.api_client.call_api(
757
+ *_param,
758
+ _request_timeout=_request_timeout
759
+ )
760
+ response_data.read()
761
+ return self.api_client.response_deserialize(
762
+ response_data=response_data,
763
+ response_types_map=_response_types_map,
764
+ )
765
+
766
+
767
+ @validate_call
768
+ def get_counterparty_without_preload_content(
769
+ self,
770
+ counterparty_id: StrictStr,
771
+ _request_timeout: Union[
772
+ None,
773
+ Annotated[StrictFloat, Field(gt=0)],
774
+ Tuple[
775
+ Annotated[StrictFloat, Field(gt=0)],
776
+ Annotated[StrictFloat, Field(gt=0)]
777
+ ]
778
+ ] = None,
779
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
780
+ _content_type: Optional[StrictStr] = None,
781
+ _headers: Optional[Dict[StrictStr, Any]] = None,
782
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
783
+ ) -> RESTResponseType:
784
+ """Get a counterparty by id
785
+
786
+ Get a counterparty resource by id.
787
+
788
+ :param counterparty_id: (required)
789
+ :type counterparty_id: str
790
+ :param _request_timeout: timeout setting for this request. If one
791
+ number provided, it will be total request
792
+ timeout. It can also be a pair (tuple) of
793
+ (connection, read) timeouts.
794
+ :type _request_timeout: int, tuple(int, int), optional
795
+ :param _request_auth: set to override the auth_settings for an a single
796
+ request; this effectively ignores the
797
+ authentication in the spec for a single request.
798
+ :type _request_auth: dict, optional
799
+ :param _content_type: force content-type for the request.
800
+ :type _content_type: str, Optional
801
+ :param _headers: set to override the headers for a single
802
+ request; this effectively ignores the headers
803
+ in the spec for a single request.
804
+ :type _headers: dict, optional
805
+ :param _host_index: set to override the host_index for a single
806
+ request; this effectively ignores the host_index
807
+ in the spec for a single request.
808
+ :type _host_index: int, optional
809
+ :return: Returns the result object.
810
+ """ # noqa: E501
811
+
812
+ _param = self._get_counterparty_serialize(
813
+ counterparty_id=counterparty_id,
814
+ _request_auth=_request_auth,
815
+ _content_type=_content_type,
816
+ _headers=_headers,
817
+ _host_index=_host_index
818
+ )
819
+
820
+ _response_types_map: Dict[str, Optional[str]] = {
821
+ '200': "CreateCounterparty201Response",
822
+ '400': "ErrorDocument",
823
+ '401': "ErrorDocument",
824
+ '404': "ErrorDocument",
825
+ }
826
+ response_data = self.api_client.call_api(
827
+ *_param,
828
+ _request_timeout=_request_timeout
829
+ )
830
+ return response_data.response
831
+
832
+
833
+ def _get_counterparty_serialize(
834
+ self,
835
+ counterparty_id,
836
+ _request_auth,
837
+ _content_type,
838
+ _headers,
839
+ _host_index,
840
+ ) -> RequestSerialized:
841
+
842
+ _host = None
843
+
844
+ _collection_formats: Dict[str, str] = {
845
+ }
846
+
847
+ _path_params: Dict[str, str] = {}
848
+ _query_params: List[Tuple[str, str]] = []
849
+ _header_params: Dict[str, Optional[str]] = _headers or {}
850
+ _form_params: List[Tuple[str, str]] = []
851
+ _files: Dict[
852
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
853
+ ] = {}
854
+ _body_params: Optional[bytes] = None
855
+
856
+ # process the path parameters
857
+ if counterparty_id is not None:
858
+ _path_params['counterpartyId'] = counterparty_id
859
+ # process the query parameters
860
+ # process the header parameters
861
+ # process the form parameters
862
+ # process the body parameter
863
+
864
+
865
+ # set the HTTP header `Accept`
866
+ if 'Accept' not in _header_params:
867
+ _header_params['Accept'] = self.api_client.select_header_accept(
868
+ [
869
+ 'application/vnd.api+json'
870
+ ]
871
+ )
872
+
873
+
874
+ # authentication setting
875
+ _auth_settings: List[str] = [
876
+ 'bearerAuth'
877
+ ]
878
+
879
+ return self.api_client.param_serialize(
880
+ method='GET',
881
+ resource_path='/counterparties/{counterpartyId}',
882
+ path_params=_path_params,
883
+ query_params=_query_params,
884
+ header_params=_header_params,
885
+ body=_body_params,
886
+ post_params=_form_params,
887
+ files=_files,
888
+ auth_settings=_auth_settings,
889
+ collection_formats=_collection_formats,
890
+ _host=_host,
891
+ _request_auth=_request_auth
892
+ )
893
+
894
+
895
+
896
+
897
+ @validate_call
898
+ def get_counterparty_balance(
899
+ self,
900
+ counterparty_id: StrictStr,
901
+ _request_timeout: Union[
902
+ None,
903
+ Annotated[StrictFloat, Field(gt=0)],
904
+ Tuple[
905
+ Annotated[StrictFloat, Field(gt=0)],
906
+ Annotated[StrictFloat, Field(gt=0)]
907
+ ]
908
+ ] = None,
909
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
910
+ _content_type: Optional[StrictStr] = None,
911
+ _headers: Optional[Dict[StrictStr, Any]] = None,
912
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
913
+ ) -> GetCounterpartyBalance200Response:
914
+ """Get a counterparty balance by id
915
+
916
+ Get a counterparty balance resource by id.
917
+
918
+ :param counterparty_id: (required)
919
+ :type counterparty_id: str
920
+ :param _request_timeout: timeout setting for this request. If one
921
+ number provided, it will be total request
922
+ timeout. It can also be a pair (tuple) of
923
+ (connection, read) timeouts.
924
+ :type _request_timeout: int, tuple(int, int), optional
925
+ :param _request_auth: set to override the auth_settings for an a single
926
+ request; this effectively ignores the
927
+ authentication in the spec for a single request.
928
+ :type _request_auth: dict, optional
929
+ :param _content_type: force content-type for the request.
930
+ :type _content_type: str, Optional
931
+ :param _headers: set to override the headers for a single
932
+ request; this effectively ignores the headers
933
+ in the spec for a single request.
934
+ :type _headers: dict, optional
935
+ :param _host_index: set to override the host_index for a single
936
+ request; this effectively ignores the host_index
937
+ in the spec for a single request.
938
+ :type _host_index: int, optional
939
+ :return: Returns the result object.
940
+ """ # noqa: E501
941
+
942
+ _param = self._get_counterparty_balance_serialize(
943
+ counterparty_id=counterparty_id,
944
+ _request_auth=_request_auth,
945
+ _content_type=_content_type,
946
+ _headers=_headers,
947
+ _host_index=_host_index
948
+ )
949
+
950
+ _response_types_map: Dict[str, Optional[str]] = {
951
+ '200': "GetCounterpartyBalance200Response",
952
+ '400': "ErrorDocument",
953
+ '401': "ErrorDocument",
954
+ '404': "ErrorDocument",
955
+ }
956
+ response_data = self.api_client.call_api(
957
+ *_param,
958
+ _request_timeout=_request_timeout
959
+ )
960
+ response_data.read()
961
+ return self.api_client.response_deserialize(
962
+ response_data=response_data,
963
+ response_types_map=_response_types_map,
964
+ ).data
965
+
966
+
967
+ @validate_call
968
+ def get_counterparty_balance_with_http_info(
969
+ self,
970
+ counterparty_id: StrictStr,
971
+ _request_timeout: Union[
972
+ None,
973
+ Annotated[StrictFloat, Field(gt=0)],
974
+ Tuple[
975
+ Annotated[StrictFloat, Field(gt=0)],
976
+ Annotated[StrictFloat, Field(gt=0)]
977
+ ]
978
+ ] = None,
979
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
980
+ _content_type: Optional[StrictStr] = None,
981
+ _headers: Optional[Dict[StrictStr, Any]] = None,
982
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
983
+ ) -> ApiResponse[GetCounterpartyBalance200Response]:
984
+ """Get a counterparty balance by id
985
+
986
+ Get a counterparty balance resource by id.
987
+
988
+ :param counterparty_id: (required)
989
+ :type counterparty_id: str
990
+ :param _request_timeout: timeout setting for this request. If one
991
+ number provided, it will be total request
992
+ timeout. It can also be a pair (tuple) of
993
+ (connection, read) timeouts.
994
+ :type _request_timeout: int, tuple(int, int), optional
995
+ :param _request_auth: set to override the auth_settings for an a single
996
+ request; this effectively ignores the
997
+ authentication in the spec for a single request.
998
+ :type _request_auth: dict, optional
999
+ :param _content_type: force content-type for the request.
1000
+ :type _content_type: str, Optional
1001
+ :param _headers: set to override the headers for a single
1002
+ request; this effectively ignores the headers
1003
+ in the spec for a single request.
1004
+ :type _headers: dict, optional
1005
+ :param _host_index: set to override the host_index for a single
1006
+ request; this effectively ignores the host_index
1007
+ in the spec for a single request.
1008
+ :type _host_index: int, optional
1009
+ :return: Returns the result object.
1010
+ """ # noqa: E501
1011
+
1012
+ _param = self._get_counterparty_balance_serialize(
1013
+ counterparty_id=counterparty_id,
1014
+ _request_auth=_request_auth,
1015
+ _content_type=_content_type,
1016
+ _headers=_headers,
1017
+ _host_index=_host_index
1018
+ )
1019
+
1020
+ _response_types_map: Dict[str, Optional[str]] = {
1021
+ '200': "GetCounterpartyBalance200Response",
1022
+ '400': "ErrorDocument",
1023
+ '401': "ErrorDocument",
1024
+ '404': "ErrorDocument",
1025
+ }
1026
+ response_data = self.api_client.call_api(
1027
+ *_param,
1028
+ _request_timeout=_request_timeout
1029
+ )
1030
+ response_data.read()
1031
+ return self.api_client.response_deserialize(
1032
+ response_data=response_data,
1033
+ response_types_map=_response_types_map,
1034
+ )
1035
+
1036
+
1037
+ @validate_call
1038
+ def get_counterparty_balance_without_preload_content(
1039
+ self,
1040
+ counterparty_id: StrictStr,
1041
+ _request_timeout: Union[
1042
+ None,
1043
+ Annotated[StrictFloat, Field(gt=0)],
1044
+ Tuple[
1045
+ Annotated[StrictFloat, Field(gt=0)],
1046
+ Annotated[StrictFloat, Field(gt=0)]
1047
+ ]
1048
+ ] = None,
1049
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1050
+ _content_type: Optional[StrictStr] = None,
1051
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1052
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1053
+ ) -> RESTResponseType:
1054
+ """Get a counterparty balance by id
1055
+
1056
+ Get a counterparty balance resource by id.
1057
+
1058
+ :param counterparty_id: (required)
1059
+ :type counterparty_id: str
1060
+ :param _request_timeout: timeout setting for this request. If one
1061
+ number provided, it will be total request
1062
+ timeout. It can also be a pair (tuple) of
1063
+ (connection, read) timeouts.
1064
+ :type _request_timeout: int, tuple(int, int), optional
1065
+ :param _request_auth: set to override the auth_settings for an a single
1066
+ request; this effectively ignores the
1067
+ authentication in the spec for a single request.
1068
+ :type _request_auth: dict, optional
1069
+ :param _content_type: force content-type for the request.
1070
+ :type _content_type: str, Optional
1071
+ :param _headers: set to override the headers for a single
1072
+ request; this effectively ignores the headers
1073
+ in the spec for a single request.
1074
+ :type _headers: dict, optional
1075
+ :param _host_index: set to override the host_index for a single
1076
+ request; this effectively ignores the host_index
1077
+ in the spec for a single request.
1078
+ :type _host_index: int, optional
1079
+ :return: Returns the result object.
1080
+ """ # noqa: E501
1081
+
1082
+ _param = self._get_counterparty_balance_serialize(
1083
+ counterparty_id=counterparty_id,
1084
+ _request_auth=_request_auth,
1085
+ _content_type=_content_type,
1086
+ _headers=_headers,
1087
+ _host_index=_host_index
1088
+ )
1089
+
1090
+ _response_types_map: Dict[str, Optional[str]] = {
1091
+ '200': "GetCounterpartyBalance200Response",
1092
+ '400': "ErrorDocument",
1093
+ '401': "ErrorDocument",
1094
+ '404': "ErrorDocument",
1095
+ }
1096
+ response_data = self.api_client.call_api(
1097
+ *_param,
1098
+ _request_timeout=_request_timeout
1099
+ )
1100
+ return response_data.response
1101
+
1102
+
1103
+ def _get_counterparty_balance_serialize(
1104
+ self,
1105
+ counterparty_id,
1106
+ _request_auth,
1107
+ _content_type,
1108
+ _headers,
1109
+ _host_index,
1110
+ ) -> RequestSerialized:
1111
+
1112
+ _host = None
1113
+
1114
+ _collection_formats: Dict[str, str] = {
1115
+ }
1116
+
1117
+ _path_params: Dict[str, str] = {}
1118
+ _query_params: List[Tuple[str, str]] = []
1119
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1120
+ _form_params: List[Tuple[str, str]] = []
1121
+ _files: Dict[
1122
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1123
+ ] = {}
1124
+ _body_params: Optional[bytes] = None
1125
+
1126
+ # process the path parameters
1127
+ if counterparty_id is not None:
1128
+ _path_params['counterpartyId'] = counterparty_id
1129
+ # process the query parameters
1130
+ # process the header parameters
1131
+ # process the form parameters
1132
+ # process the body parameter
1133
+
1134
+
1135
+ # set the HTTP header `Accept`
1136
+ if 'Accept' not in _header_params:
1137
+ _header_params['Accept'] = self.api_client.select_header_accept(
1138
+ [
1139
+ 'application/vnd.api+json'
1140
+ ]
1141
+ )
1142
+
1143
+
1144
+ # authentication setting
1145
+ _auth_settings: List[str] = [
1146
+ 'bearerAuth'
1147
+ ]
1148
+
1149
+ return self.api_client.param_serialize(
1150
+ method='GET',
1151
+ resource_path='/counterparties/{counterpartyId}/balance',
1152
+ path_params=_path_params,
1153
+ query_params=_query_params,
1154
+ header_params=_header_params,
1155
+ body=_body_params,
1156
+ post_params=_form_params,
1157
+ files=_files,
1158
+ auth_settings=_auth_settings,
1159
+ collection_formats=_collection_formats,
1160
+ _host=_host,
1161
+ _request_auth=_request_auth
1162
+ )
1163
+
1164
+
1165
+
1166
+
1167
+ @validate_call
1168
+ def list_counterparties(
1169
+ self,
1170
+ page_limit: Annotated[Optional[StrictStr], Field(description="Optional. Maximum number of resources that will be returned. Maximum is 1000 resources. See Pagination.")] = None,
1171
+ page_offset: Annotated[Optional[StrictStr], Field(description="Optional. Number of resources to skip. See Pagination.")] = None,
1172
+ filter_customer_id: Annotated[Optional[StrictStr], Field(description="Optional. Filters the results by the specified customer id.")] = None,
1173
+ filter_account_number: Annotated[Optional[StrictStr], Field(description="Optional. Filters the results by the specified account number.")] = None,
1174
+ filter_routing_number: Annotated[Optional[StrictStr], Field(description="Optional. Filters the results by the specified routing number.")] = None,
1175
+ filter_tags: Annotated[Optional[StrictStr], Field(description="Optional. Filter Counterparties by Tags.")] = None,
1176
+ filter_permissions: Annotated[Optional[StrictStr], Field(description="Optional. Filters the results by the specified counterparty permissions either CreditOnly, DebitOnly, CreditAndDebit. Usage example: *filter[permissions][0]=CreditOnly&filter[permissions][1]=CreditAndDebit*")] = None,
1177
+ sort: Annotated[Optional[StrictStr], Field(description="Optional. sort=createdAt for ascending order or sort=-createdAt (leading minus sign) for descending order.")] = None,
1178
+ _request_timeout: Union[
1179
+ None,
1180
+ Annotated[StrictFloat, Field(gt=0)],
1181
+ Tuple[
1182
+ Annotated[StrictFloat, Field(gt=0)],
1183
+ Annotated[StrictFloat, Field(gt=0)]
1184
+ ]
1185
+ ] = None,
1186
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1187
+ _content_type: Optional[StrictStr] = None,
1188
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1189
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1190
+ ) -> ListCounterparties200Response:
1191
+ """List counterparties
1192
+
1193
+ List counterparties. Filtering and paging can be applied.
1194
+
1195
+ :param page_limit: Optional. Maximum number of resources that will be returned. Maximum is 1000 resources. See Pagination.
1196
+ :type page_limit: str
1197
+ :param page_offset: Optional. Number of resources to skip. See Pagination.
1198
+ :type page_offset: str
1199
+ :param filter_customer_id: Optional. Filters the results by the specified customer id.
1200
+ :type filter_customer_id: str
1201
+ :param filter_account_number: Optional. Filters the results by the specified account number.
1202
+ :type filter_account_number: str
1203
+ :param filter_routing_number: Optional. Filters the results by the specified routing number.
1204
+ :type filter_routing_number: str
1205
+ :param filter_tags: Optional. Filter Counterparties by Tags.
1206
+ :type filter_tags: str
1207
+ :param filter_permissions: Optional. Filters the results by the specified counterparty permissions either CreditOnly, DebitOnly, CreditAndDebit. Usage example: *filter[permissions][0]=CreditOnly&filter[permissions][1]=CreditAndDebit*
1208
+ :type filter_permissions: str
1209
+ :param sort: Optional. sort=createdAt for ascending order or sort=-createdAt (leading minus sign) for descending order.
1210
+ :type sort: str
1211
+ :param _request_timeout: timeout setting for this request. If one
1212
+ number provided, it will be total request
1213
+ timeout. It can also be a pair (tuple) of
1214
+ (connection, read) timeouts.
1215
+ :type _request_timeout: int, tuple(int, int), optional
1216
+ :param _request_auth: set to override the auth_settings for an a single
1217
+ request; this effectively ignores the
1218
+ authentication in the spec for a single request.
1219
+ :type _request_auth: dict, optional
1220
+ :param _content_type: force content-type for the request.
1221
+ :type _content_type: str, Optional
1222
+ :param _headers: set to override the headers for a single
1223
+ request; this effectively ignores the headers
1224
+ in the spec for a single request.
1225
+ :type _headers: dict, optional
1226
+ :param _host_index: set to override the host_index for a single
1227
+ request; this effectively ignores the host_index
1228
+ in the spec for a single request.
1229
+ :type _host_index: int, optional
1230
+ :return: Returns the result object.
1231
+ """ # noqa: E501
1232
+
1233
+ _param = self._list_counterparties_serialize(
1234
+ page_limit=page_limit,
1235
+ page_offset=page_offset,
1236
+ filter_customer_id=filter_customer_id,
1237
+ filter_account_number=filter_account_number,
1238
+ filter_routing_number=filter_routing_number,
1239
+ filter_tags=filter_tags,
1240
+ filter_permissions=filter_permissions,
1241
+ sort=sort,
1242
+ _request_auth=_request_auth,
1243
+ _content_type=_content_type,
1244
+ _headers=_headers,
1245
+ _host_index=_host_index
1246
+ )
1247
+
1248
+ _response_types_map: Dict[str, Optional[str]] = {
1249
+ '200': "ListCounterparties200Response",
1250
+ '400': "ErrorDocument",
1251
+ '401': "ErrorDocument",
1252
+ '404': "ErrorDocument",
1253
+ }
1254
+ response_data = self.api_client.call_api(
1255
+ *_param,
1256
+ _request_timeout=_request_timeout
1257
+ )
1258
+ response_data.read()
1259
+ return self.api_client.response_deserialize(
1260
+ response_data=response_data,
1261
+ response_types_map=_response_types_map,
1262
+ ).data
1263
+
1264
+
1265
+ @validate_call
1266
+ def list_counterparties_with_http_info(
1267
+ self,
1268
+ page_limit: Annotated[Optional[StrictStr], Field(description="Optional. Maximum number of resources that will be returned. Maximum is 1000 resources. See Pagination.")] = None,
1269
+ page_offset: Annotated[Optional[StrictStr], Field(description="Optional. Number of resources to skip. See Pagination.")] = None,
1270
+ filter_customer_id: Annotated[Optional[StrictStr], Field(description="Optional. Filters the results by the specified customer id.")] = None,
1271
+ filter_account_number: Annotated[Optional[StrictStr], Field(description="Optional. Filters the results by the specified account number.")] = None,
1272
+ filter_routing_number: Annotated[Optional[StrictStr], Field(description="Optional. Filters the results by the specified routing number.")] = None,
1273
+ filter_tags: Annotated[Optional[StrictStr], Field(description="Optional. Filter Counterparties by Tags.")] = None,
1274
+ filter_permissions: Annotated[Optional[StrictStr], Field(description="Optional. Filters the results by the specified counterparty permissions either CreditOnly, DebitOnly, CreditAndDebit. Usage example: *filter[permissions][0]=CreditOnly&filter[permissions][1]=CreditAndDebit*")] = None,
1275
+ sort: Annotated[Optional[StrictStr], Field(description="Optional. sort=createdAt for ascending order or sort=-createdAt (leading minus sign) for descending order.")] = None,
1276
+ _request_timeout: Union[
1277
+ None,
1278
+ Annotated[StrictFloat, Field(gt=0)],
1279
+ Tuple[
1280
+ Annotated[StrictFloat, Field(gt=0)],
1281
+ Annotated[StrictFloat, Field(gt=0)]
1282
+ ]
1283
+ ] = None,
1284
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1285
+ _content_type: Optional[StrictStr] = None,
1286
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1287
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1288
+ ) -> ApiResponse[ListCounterparties200Response]:
1289
+ """List counterparties
1290
+
1291
+ List counterparties. Filtering and paging can be applied.
1292
+
1293
+ :param page_limit: Optional. Maximum number of resources that will be returned. Maximum is 1000 resources. See Pagination.
1294
+ :type page_limit: str
1295
+ :param page_offset: Optional. Number of resources to skip. See Pagination.
1296
+ :type page_offset: str
1297
+ :param filter_customer_id: Optional. Filters the results by the specified customer id.
1298
+ :type filter_customer_id: str
1299
+ :param filter_account_number: Optional. Filters the results by the specified account number.
1300
+ :type filter_account_number: str
1301
+ :param filter_routing_number: Optional. Filters the results by the specified routing number.
1302
+ :type filter_routing_number: str
1303
+ :param filter_tags: Optional. Filter Counterparties by Tags.
1304
+ :type filter_tags: str
1305
+ :param filter_permissions: Optional. Filters the results by the specified counterparty permissions either CreditOnly, DebitOnly, CreditAndDebit. Usage example: *filter[permissions][0]=CreditOnly&filter[permissions][1]=CreditAndDebit*
1306
+ :type filter_permissions: str
1307
+ :param sort: Optional. sort=createdAt for ascending order or sort=-createdAt (leading minus sign) for descending order.
1308
+ :type sort: str
1309
+ :param _request_timeout: timeout setting for this request. If one
1310
+ number provided, it will be total request
1311
+ timeout. It can also be a pair (tuple) of
1312
+ (connection, read) timeouts.
1313
+ :type _request_timeout: int, tuple(int, int), optional
1314
+ :param _request_auth: set to override the auth_settings for an a single
1315
+ request; this effectively ignores the
1316
+ authentication in the spec for a single request.
1317
+ :type _request_auth: dict, optional
1318
+ :param _content_type: force content-type for the request.
1319
+ :type _content_type: str, Optional
1320
+ :param _headers: set to override the headers for a single
1321
+ request; this effectively ignores the headers
1322
+ in the spec for a single request.
1323
+ :type _headers: dict, optional
1324
+ :param _host_index: set to override the host_index for a single
1325
+ request; this effectively ignores the host_index
1326
+ in the spec for a single request.
1327
+ :type _host_index: int, optional
1328
+ :return: Returns the result object.
1329
+ """ # noqa: E501
1330
+
1331
+ _param = self._list_counterparties_serialize(
1332
+ page_limit=page_limit,
1333
+ page_offset=page_offset,
1334
+ filter_customer_id=filter_customer_id,
1335
+ filter_account_number=filter_account_number,
1336
+ filter_routing_number=filter_routing_number,
1337
+ filter_tags=filter_tags,
1338
+ filter_permissions=filter_permissions,
1339
+ sort=sort,
1340
+ _request_auth=_request_auth,
1341
+ _content_type=_content_type,
1342
+ _headers=_headers,
1343
+ _host_index=_host_index
1344
+ )
1345
+
1346
+ _response_types_map: Dict[str, Optional[str]] = {
1347
+ '200': "ListCounterparties200Response",
1348
+ '400': "ErrorDocument",
1349
+ '401': "ErrorDocument",
1350
+ '404': "ErrorDocument",
1351
+ }
1352
+ response_data = self.api_client.call_api(
1353
+ *_param,
1354
+ _request_timeout=_request_timeout
1355
+ )
1356
+ response_data.read()
1357
+ return self.api_client.response_deserialize(
1358
+ response_data=response_data,
1359
+ response_types_map=_response_types_map,
1360
+ )
1361
+
1362
+
1363
+ @validate_call
1364
+ def list_counterparties_without_preload_content(
1365
+ self,
1366
+ page_limit: Annotated[Optional[StrictStr], Field(description="Optional. Maximum number of resources that will be returned. Maximum is 1000 resources. See Pagination.")] = None,
1367
+ page_offset: Annotated[Optional[StrictStr], Field(description="Optional. Number of resources to skip. See Pagination.")] = None,
1368
+ filter_customer_id: Annotated[Optional[StrictStr], Field(description="Optional. Filters the results by the specified customer id.")] = None,
1369
+ filter_account_number: Annotated[Optional[StrictStr], Field(description="Optional. Filters the results by the specified account number.")] = None,
1370
+ filter_routing_number: Annotated[Optional[StrictStr], Field(description="Optional. Filters the results by the specified routing number.")] = None,
1371
+ filter_tags: Annotated[Optional[StrictStr], Field(description="Optional. Filter Counterparties by Tags.")] = None,
1372
+ filter_permissions: Annotated[Optional[StrictStr], Field(description="Optional. Filters the results by the specified counterparty permissions either CreditOnly, DebitOnly, CreditAndDebit. Usage example: *filter[permissions][0]=CreditOnly&filter[permissions][1]=CreditAndDebit*")] = None,
1373
+ sort: Annotated[Optional[StrictStr], Field(description="Optional. sort=createdAt for ascending order or sort=-createdAt (leading minus sign) for descending order.")] = None,
1374
+ _request_timeout: Union[
1375
+ None,
1376
+ Annotated[StrictFloat, Field(gt=0)],
1377
+ Tuple[
1378
+ Annotated[StrictFloat, Field(gt=0)],
1379
+ Annotated[StrictFloat, Field(gt=0)]
1380
+ ]
1381
+ ] = None,
1382
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1383
+ _content_type: Optional[StrictStr] = None,
1384
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1385
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1386
+ ) -> RESTResponseType:
1387
+ """List counterparties
1388
+
1389
+ List counterparties. Filtering and paging can be applied.
1390
+
1391
+ :param page_limit: Optional. Maximum number of resources that will be returned. Maximum is 1000 resources. See Pagination.
1392
+ :type page_limit: str
1393
+ :param page_offset: Optional. Number of resources to skip. See Pagination.
1394
+ :type page_offset: str
1395
+ :param filter_customer_id: Optional. Filters the results by the specified customer id.
1396
+ :type filter_customer_id: str
1397
+ :param filter_account_number: Optional. Filters the results by the specified account number.
1398
+ :type filter_account_number: str
1399
+ :param filter_routing_number: Optional. Filters the results by the specified routing number.
1400
+ :type filter_routing_number: str
1401
+ :param filter_tags: Optional. Filter Counterparties by Tags.
1402
+ :type filter_tags: str
1403
+ :param filter_permissions: Optional. Filters the results by the specified counterparty permissions either CreditOnly, DebitOnly, CreditAndDebit. Usage example: *filter[permissions][0]=CreditOnly&filter[permissions][1]=CreditAndDebit*
1404
+ :type filter_permissions: str
1405
+ :param sort: Optional. sort=createdAt for ascending order or sort=-createdAt (leading minus sign) for descending order.
1406
+ :type sort: str
1407
+ :param _request_timeout: timeout setting for this request. If one
1408
+ number provided, it will be total request
1409
+ timeout. It can also be a pair (tuple) of
1410
+ (connection, read) timeouts.
1411
+ :type _request_timeout: int, tuple(int, int), optional
1412
+ :param _request_auth: set to override the auth_settings for an a single
1413
+ request; this effectively ignores the
1414
+ authentication in the spec for a single request.
1415
+ :type _request_auth: dict, optional
1416
+ :param _content_type: force content-type for the request.
1417
+ :type _content_type: str, Optional
1418
+ :param _headers: set to override the headers for a single
1419
+ request; this effectively ignores the headers
1420
+ in the spec for a single request.
1421
+ :type _headers: dict, optional
1422
+ :param _host_index: set to override the host_index for a single
1423
+ request; this effectively ignores the host_index
1424
+ in the spec for a single request.
1425
+ :type _host_index: int, optional
1426
+ :return: Returns the result object.
1427
+ """ # noqa: E501
1428
+
1429
+ _param = self._list_counterparties_serialize(
1430
+ page_limit=page_limit,
1431
+ page_offset=page_offset,
1432
+ filter_customer_id=filter_customer_id,
1433
+ filter_account_number=filter_account_number,
1434
+ filter_routing_number=filter_routing_number,
1435
+ filter_tags=filter_tags,
1436
+ filter_permissions=filter_permissions,
1437
+ sort=sort,
1438
+ _request_auth=_request_auth,
1439
+ _content_type=_content_type,
1440
+ _headers=_headers,
1441
+ _host_index=_host_index
1442
+ )
1443
+
1444
+ _response_types_map: Dict[str, Optional[str]] = {
1445
+ '200': "ListCounterparties200Response",
1446
+ '400': "ErrorDocument",
1447
+ '401': "ErrorDocument",
1448
+ '404': "ErrorDocument",
1449
+ }
1450
+ response_data = self.api_client.call_api(
1451
+ *_param,
1452
+ _request_timeout=_request_timeout
1453
+ )
1454
+ return response_data.response
1455
+
1456
+
1457
+ def _list_counterparties_serialize(
1458
+ self,
1459
+ page_limit,
1460
+ page_offset,
1461
+ filter_customer_id,
1462
+ filter_account_number,
1463
+ filter_routing_number,
1464
+ filter_tags,
1465
+ filter_permissions,
1466
+ sort,
1467
+ _request_auth,
1468
+ _content_type,
1469
+ _headers,
1470
+ _host_index,
1471
+ ) -> RequestSerialized:
1472
+
1473
+ _host = None
1474
+
1475
+ _collection_formats: Dict[str, str] = {
1476
+ }
1477
+
1478
+ _path_params: Dict[str, str] = {}
1479
+ _query_params: List[Tuple[str, str]] = []
1480
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1481
+ _form_params: List[Tuple[str, str]] = []
1482
+ _files: Dict[
1483
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1484
+ ] = {}
1485
+ _body_params: Optional[bytes] = None
1486
+
1487
+ # process the path parameters
1488
+ # process the query parameters
1489
+ if page_limit is not None:
1490
+
1491
+ _query_params.append(('page[limit]', page_limit))
1492
+
1493
+ if page_offset is not None:
1494
+
1495
+ _query_params.append(('page[offset]', page_offset))
1496
+
1497
+ if filter_customer_id is not None:
1498
+
1499
+ _query_params.append(('filter[customerId]', filter_customer_id))
1500
+
1501
+ if filter_account_number is not None:
1502
+
1503
+ _query_params.append(('filter[accountNumber]', filter_account_number))
1504
+
1505
+ if filter_routing_number is not None:
1506
+
1507
+ _query_params.append(('filter[routingNumber]', filter_routing_number))
1508
+
1509
+ if filter_tags is not None:
1510
+
1511
+ _query_params.append(('filter[tags]', filter_tags))
1512
+
1513
+ if filter_permissions is not None:
1514
+
1515
+ _query_params.append(('filter[permissions][]', filter_permissions))
1516
+
1517
+ if sort is not None:
1518
+
1519
+ _query_params.append(('sort', sort))
1520
+
1521
+ # process the header parameters
1522
+ # process the form parameters
1523
+ # process the body parameter
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
+
1535
+ # authentication setting
1536
+ _auth_settings: List[str] = [
1537
+ 'bearerAuth'
1538
+ ]
1539
+
1540
+ return self.api_client.param_serialize(
1541
+ method='GET',
1542
+ resource_path='/counterparties',
1543
+ path_params=_path_params,
1544
+ query_params=_query_params,
1545
+ header_params=_header_params,
1546
+ body=_body_params,
1547
+ post_params=_form_params,
1548
+ files=_files,
1549
+ auth_settings=_auth_settings,
1550
+ collection_formats=_collection_formats,
1551
+ _host=_host,
1552
+ _request_auth=_request_auth
1553
+ )
1554
+
1555
+
1556
+
1557
+
1558
+ @validate_call
1559
+ def update_counterparty(
1560
+ self,
1561
+ counterparty_id: StrictStr,
1562
+ update_counterparty_request: UpdateCounterpartyRequest,
1563
+ _request_timeout: Union[
1564
+ None,
1565
+ Annotated[StrictFloat, Field(gt=0)],
1566
+ Tuple[
1567
+ Annotated[StrictFloat, Field(gt=0)],
1568
+ Annotated[StrictFloat, Field(gt=0)]
1569
+ ]
1570
+ ] = None,
1571
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1572
+ _content_type: Optional[StrictStr] = None,
1573
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1574
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1575
+ ) -> UpdateCounterparty200Response:
1576
+ """Update a counterparty
1577
+
1578
+ Update a Counterparty. Relink existing counterparty with a new Plaid processor token.
1579
+
1580
+ :param counterparty_id: (required)
1581
+ :type counterparty_id: str
1582
+ :param update_counterparty_request: (required)
1583
+ :type update_counterparty_request: UpdateCounterpartyRequest
1584
+ :param _request_timeout: timeout setting for this request. If one
1585
+ number provided, it will be total request
1586
+ timeout. It can also be a pair (tuple) of
1587
+ (connection, read) timeouts.
1588
+ :type _request_timeout: int, tuple(int, int), optional
1589
+ :param _request_auth: set to override the auth_settings for an a single
1590
+ request; this effectively ignores the
1591
+ authentication in the spec for a single request.
1592
+ :type _request_auth: dict, optional
1593
+ :param _content_type: force content-type for the request.
1594
+ :type _content_type: str, Optional
1595
+ :param _headers: set to override the headers for a single
1596
+ request; this effectively ignores the headers
1597
+ in the spec for a single request.
1598
+ :type _headers: dict, optional
1599
+ :param _host_index: set to override the host_index for a single
1600
+ request; this effectively ignores the host_index
1601
+ in the spec for a single request.
1602
+ :type _host_index: int, optional
1603
+ :return: Returns the result object.
1604
+ """ # noqa: E501
1605
+
1606
+ _param = self._update_counterparty_serialize(
1607
+ counterparty_id=counterparty_id,
1608
+ update_counterparty_request=update_counterparty_request,
1609
+ _request_auth=_request_auth,
1610
+ _content_type=_content_type,
1611
+ _headers=_headers,
1612
+ _host_index=_host_index
1613
+ )
1614
+
1615
+ _response_types_map: Dict[str, Optional[str]] = {
1616
+ '200': "UpdateCounterparty200Response",
1617
+ '400': "ErrorDocument",
1618
+ '401': "ErrorDocument",
1619
+ '404': "ErrorDocument",
1620
+ }
1621
+ response_data = self.api_client.call_api(
1622
+ *_param,
1623
+ _request_timeout=_request_timeout
1624
+ )
1625
+ response_data.read()
1626
+ return self.api_client.response_deserialize(
1627
+ response_data=response_data,
1628
+ response_types_map=_response_types_map,
1629
+ ).data
1630
+
1631
+
1632
+ @validate_call
1633
+ def update_counterparty_with_http_info(
1634
+ self,
1635
+ counterparty_id: StrictStr,
1636
+ update_counterparty_request: UpdateCounterpartyRequest,
1637
+ _request_timeout: Union[
1638
+ None,
1639
+ Annotated[StrictFloat, Field(gt=0)],
1640
+ Tuple[
1641
+ Annotated[StrictFloat, Field(gt=0)],
1642
+ Annotated[StrictFloat, Field(gt=0)]
1643
+ ]
1644
+ ] = None,
1645
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1646
+ _content_type: Optional[StrictStr] = None,
1647
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1648
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1649
+ ) -> ApiResponse[UpdateCounterparty200Response]:
1650
+ """Update a counterparty
1651
+
1652
+ Update a Counterparty. Relink existing counterparty with a new Plaid processor token.
1653
+
1654
+ :param counterparty_id: (required)
1655
+ :type counterparty_id: str
1656
+ :param update_counterparty_request: (required)
1657
+ :type update_counterparty_request: UpdateCounterpartyRequest
1658
+ :param _request_timeout: timeout setting for this request. If one
1659
+ number provided, it will be total request
1660
+ timeout. It can also be a pair (tuple) of
1661
+ (connection, read) timeouts.
1662
+ :type _request_timeout: int, tuple(int, int), optional
1663
+ :param _request_auth: set to override the auth_settings for an a single
1664
+ request; this effectively ignores the
1665
+ authentication in the spec for a single request.
1666
+ :type _request_auth: dict, optional
1667
+ :param _content_type: force content-type for the request.
1668
+ :type _content_type: str, Optional
1669
+ :param _headers: set to override the headers for a single
1670
+ request; this effectively ignores the headers
1671
+ in the spec for a single request.
1672
+ :type _headers: dict, optional
1673
+ :param _host_index: set to override the host_index for a single
1674
+ request; this effectively ignores the host_index
1675
+ in the spec for a single request.
1676
+ :type _host_index: int, optional
1677
+ :return: Returns the result object.
1678
+ """ # noqa: E501
1679
+
1680
+ _param = self._update_counterparty_serialize(
1681
+ counterparty_id=counterparty_id,
1682
+ update_counterparty_request=update_counterparty_request,
1683
+ _request_auth=_request_auth,
1684
+ _content_type=_content_type,
1685
+ _headers=_headers,
1686
+ _host_index=_host_index
1687
+ )
1688
+
1689
+ _response_types_map: Dict[str, Optional[str]] = {
1690
+ '200': "UpdateCounterparty200Response",
1691
+ '400': "ErrorDocument",
1692
+ '401': "ErrorDocument",
1693
+ '404': "ErrorDocument",
1694
+ }
1695
+ response_data = self.api_client.call_api(
1696
+ *_param,
1697
+ _request_timeout=_request_timeout
1698
+ )
1699
+ response_data.read()
1700
+ return self.api_client.response_deserialize(
1701
+ response_data=response_data,
1702
+ response_types_map=_response_types_map,
1703
+ )
1704
+
1705
+
1706
+ @validate_call
1707
+ def update_counterparty_without_preload_content(
1708
+ self,
1709
+ counterparty_id: StrictStr,
1710
+ update_counterparty_request: UpdateCounterpartyRequest,
1711
+ _request_timeout: Union[
1712
+ None,
1713
+ Annotated[StrictFloat, Field(gt=0)],
1714
+ Tuple[
1715
+ Annotated[StrictFloat, Field(gt=0)],
1716
+ Annotated[StrictFloat, Field(gt=0)]
1717
+ ]
1718
+ ] = None,
1719
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1720
+ _content_type: Optional[StrictStr] = None,
1721
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1722
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1723
+ ) -> RESTResponseType:
1724
+ """Update a counterparty
1725
+
1726
+ Update a Counterparty. Relink existing counterparty with a new Plaid processor token.
1727
+
1728
+ :param counterparty_id: (required)
1729
+ :type counterparty_id: str
1730
+ :param update_counterparty_request: (required)
1731
+ :type update_counterparty_request: UpdateCounterpartyRequest
1732
+ :param _request_timeout: timeout setting for this request. If one
1733
+ number provided, it will be total request
1734
+ timeout. It can also be a pair (tuple) of
1735
+ (connection, read) timeouts.
1736
+ :type _request_timeout: int, tuple(int, int), optional
1737
+ :param _request_auth: set to override the auth_settings for an a single
1738
+ request; this effectively ignores the
1739
+ authentication in the spec for a single request.
1740
+ :type _request_auth: dict, optional
1741
+ :param _content_type: force content-type for the request.
1742
+ :type _content_type: str, Optional
1743
+ :param _headers: set to override the headers for a single
1744
+ request; this effectively ignores the headers
1745
+ in the spec for a single request.
1746
+ :type _headers: dict, optional
1747
+ :param _host_index: set to override the host_index for a single
1748
+ request; this effectively ignores the host_index
1749
+ in the spec for a single request.
1750
+ :type _host_index: int, optional
1751
+ :return: Returns the result object.
1752
+ """ # noqa: E501
1753
+
1754
+ _param = self._update_counterparty_serialize(
1755
+ counterparty_id=counterparty_id,
1756
+ update_counterparty_request=update_counterparty_request,
1757
+ _request_auth=_request_auth,
1758
+ _content_type=_content_type,
1759
+ _headers=_headers,
1760
+ _host_index=_host_index
1761
+ )
1762
+
1763
+ _response_types_map: Dict[str, Optional[str]] = {
1764
+ '200': "UpdateCounterparty200Response",
1765
+ '400': "ErrorDocument",
1766
+ '401': "ErrorDocument",
1767
+ '404': "ErrorDocument",
1768
+ }
1769
+ response_data = self.api_client.call_api(
1770
+ *_param,
1771
+ _request_timeout=_request_timeout
1772
+ )
1773
+ return response_data.response
1774
+
1775
+
1776
+ def _update_counterparty_serialize(
1777
+ self,
1778
+ counterparty_id,
1779
+ update_counterparty_request,
1780
+ _request_auth,
1781
+ _content_type,
1782
+ _headers,
1783
+ _host_index,
1784
+ ) -> RequestSerialized:
1785
+
1786
+ _host = None
1787
+
1788
+ _collection_formats: Dict[str, str] = {
1789
+ }
1790
+
1791
+ _path_params: Dict[str, str] = {}
1792
+ _query_params: List[Tuple[str, str]] = []
1793
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1794
+ _form_params: List[Tuple[str, str]] = []
1795
+ _files: Dict[
1796
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1797
+ ] = {}
1798
+ _body_params: Optional[bytes] = None
1799
+
1800
+ # process the path parameters
1801
+ if counterparty_id is not None:
1802
+ _path_params['counterpartyId'] = counterparty_id
1803
+ # process the query parameters
1804
+ # process the header parameters
1805
+ # process the form parameters
1806
+ # process the body parameter
1807
+ if update_counterparty_request is not None:
1808
+ _body_params = update_counterparty_request
1809
+
1810
+
1811
+ # set the HTTP header `Accept`
1812
+ if 'Accept' not in _header_params:
1813
+ _header_params['Accept'] = self.api_client.select_header_accept(
1814
+ [
1815
+ 'application/vnd.api+json'
1816
+ ]
1817
+ )
1818
+
1819
+ # set the HTTP header `Content-Type`
1820
+ if _content_type:
1821
+ _header_params['Content-Type'] = _content_type
1822
+ else:
1823
+ _default_content_type = (
1824
+ self.api_client.select_header_content_type(
1825
+ [
1826
+ 'application/vnd.api+json'
1827
+ ]
1828
+ )
1829
+ )
1830
+ if _default_content_type is not None:
1831
+ _header_params['Content-Type'] = _default_content_type
1832
+
1833
+ # authentication setting
1834
+ _auth_settings: List[str] = [
1835
+ 'bearerAuth'
1836
+ ]
1837
+
1838
+ return self.api_client.param_serialize(
1839
+ method='PATCH',
1840
+ resource_path='/counterparties/{counterpartyId}',
1841
+ path_params=_path_params,
1842
+ query_params=_query_params,
1843
+ header_params=_header_params,
1844
+ body=_body_params,
1845
+ post_params=_form_params,
1846
+ files=_files,
1847
+ auth_settings=_auth_settings,
1848
+ collection_formats=_collection_formats,
1849
+ _host=_host,
1850
+ _request_auth=_request_auth
1851
+ )
1852
+
1853
+