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,1497 @@
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 Optional
20
+ from typing_extensions import Annotated
21
+ from unit_finance_sdk.models.get_transaction200_response import GetTransaction200Response
22
+ from unit_finance_sdk.models.list_transactions200_response import ListTransactions200Response
23
+ from unit_finance_sdk.models.update_tags_request import UpdateTagsRequest
24
+ from unit_finance_sdk.models.update_transaction200_response import UpdateTransaction200Response
25
+ from unit_finance_sdk.models.update_transaction_request import UpdateTransactionRequest
26
+
27
+ from unit_finance_sdk.api_client import ApiClient, RequestSerialized
28
+ from unit_finance_sdk.api_response import ApiResponse
29
+ from unit_finance_sdk.rest import RESTResponseType
30
+
31
+
32
+ class TransactionsApi:
33
+ """NOTE: This class is auto generated by OpenAPI Generator
34
+ Ref: https://openapi-generator.tech
35
+
36
+ Do not edit the class manually.
37
+ """
38
+
39
+ def __init__(self, api_client=None) -> None:
40
+ if api_client is None:
41
+ api_client = ApiClient.get_default()
42
+ self.api_client = api_client
43
+
44
+
45
+ @validate_call
46
+ def get_transaction(
47
+ self,
48
+ account_id: StrictStr,
49
+ transaction_id: StrictStr,
50
+ filter_customer_id: Annotated[Optional[StrictStr], Field(description="Optional. Filters the result by the specified customer id.")] = None,
51
+ include: Annotated[Optional[StrictStr], Field(description="Optional. A comma-separated list of related resources to include in the response. Related resources include: customer, account. See Getting Related Resources")] = None,
52
+ _request_timeout: Union[
53
+ None,
54
+ Annotated[StrictFloat, Field(gt=0)],
55
+ Tuple[
56
+ Annotated[StrictFloat, Field(gt=0)],
57
+ Annotated[StrictFloat, Field(gt=0)]
58
+ ]
59
+ ] = None,
60
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
61
+ _content_type: Optional[StrictStr] = None,
62
+ _headers: Optional[Dict[StrictStr, Any]] = None,
63
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
64
+ ) -> GetTransaction200Response:
65
+ """Get a transaction
66
+
67
+ Get a transaction by transaction id and account id.
68
+
69
+ :param account_id: (required)
70
+ :type account_id: str
71
+ :param transaction_id: (required)
72
+ :type transaction_id: str
73
+ :param filter_customer_id: Optional. Filters the result by the specified customer id.
74
+ :type filter_customer_id: str
75
+ :param include: Optional. A comma-separated list of related resources to include in the response. Related resources include: customer, account. See Getting Related Resources
76
+ :type include: str
77
+ :param _request_timeout: timeout setting for this request. If one
78
+ number provided, it will be total request
79
+ timeout. It can also be a pair (tuple) of
80
+ (connection, read) timeouts.
81
+ :type _request_timeout: int, tuple(int, int), optional
82
+ :param _request_auth: set to override the auth_settings for an a single
83
+ request; this effectively ignores the
84
+ authentication in the spec for a single request.
85
+ :type _request_auth: dict, optional
86
+ :param _content_type: force content-type for the request.
87
+ :type _content_type: str, Optional
88
+ :param _headers: set to override the headers for a single
89
+ request; this effectively ignores the headers
90
+ in the spec for a single request.
91
+ :type _headers: dict, optional
92
+ :param _host_index: set to override the host_index for a single
93
+ request; this effectively ignores the host_index
94
+ in the spec for a single request.
95
+ :type _host_index: int, optional
96
+ :return: Returns the result object.
97
+ """ # noqa: E501
98
+
99
+ _param = self._get_transaction_serialize(
100
+ account_id=account_id,
101
+ transaction_id=transaction_id,
102
+ filter_customer_id=filter_customer_id,
103
+ include=include,
104
+ _request_auth=_request_auth,
105
+ _content_type=_content_type,
106
+ _headers=_headers,
107
+ _host_index=_host_index
108
+ )
109
+
110
+ _response_types_map: Dict[str, Optional[str]] = {
111
+ '200': "GetTransaction200Response",
112
+ }
113
+ response_data = self.api_client.call_api(
114
+ *_param,
115
+ _request_timeout=_request_timeout
116
+ )
117
+ response_data.read()
118
+ return self.api_client.response_deserialize(
119
+ response_data=response_data,
120
+ response_types_map=_response_types_map,
121
+ ).data
122
+
123
+
124
+ @validate_call
125
+ def get_transaction_with_http_info(
126
+ self,
127
+ account_id: StrictStr,
128
+ transaction_id: StrictStr,
129
+ filter_customer_id: Annotated[Optional[StrictStr], Field(description="Optional. Filters the result by the specified customer id.")] = None,
130
+ include: Annotated[Optional[StrictStr], Field(description="Optional. A comma-separated list of related resources to include in the response. Related resources include: customer, account. See Getting Related Resources")] = None,
131
+ _request_timeout: Union[
132
+ None,
133
+ Annotated[StrictFloat, Field(gt=0)],
134
+ Tuple[
135
+ Annotated[StrictFloat, Field(gt=0)],
136
+ Annotated[StrictFloat, Field(gt=0)]
137
+ ]
138
+ ] = None,
139
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
140
+ _content_type: Optional[StrictStr] = None,
141
+ _headers: Optional[Dict[StrictStr, Any]] = None,
142
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
143
+ ) -> ApiResponse[GetTransaction200Response]:
144
+ """Get a transaction
145
+
146
+ Get a transaction by transaction id and account id.
147
+
148
+ :param account_id: (required)
149
+ :type account_id: str
150
+ :param transaction_id: (required)
151
+ :type transaction_id: str
152
+ :param filter_customer_id: Optional. Filters the result by the specified customer id.
153
+ :type filter_customer_id: str
154
+ :param include: Optional. A comma-separated list of related resources to include in the response. Related resources include: customer, account. See Getting Related Resources
155
+ :type include: str
156
+ :param _request_timeout: timeout setting for this request. If one
157
+ number provided, it will be total request
158
+ timeout. It can also be a pair (tuple) of
159
+ (connection, read) timeouts.
160
+ :type _request_timeout: int, tuple(int, int), optional
161
+ :param _request_auth: set to override the auth_settings for an a single
162
+ request; this effectively ignores the
163
+ authentication in the spec for a single request.
164
+ :type _request_auth: dict, optional
165
+ :param _content_type: force content-type for the request.
166
+ :type _content_type: str, Optional
167
+ :param _headers: set to override the headers for a single
168
+ request; this effectively ignores the headers
169
+ in the spec for a single request.
170
+ :type _headers: dict, optional
171
+ :param _host_index: set to override the host_index for a single
172
+ request; this effectively ignores the host_index
173
+ in the spec for a single request.
174
+ :type _host_index: int, optional
175
+ :return: Returns the result object.
176
+ """ # noqa: E501
177
+
178
+ _param = self._get_transaction_serialize(
179
+ account_id=account_id,
180
+ transaction_id=transaction_id,
181
+ filter_customer_id=filter_customer_id,
182
+ include=include,
183
+ _request_auth=_request_auth,
184
+ _content_type=_content_type,
185
+ _headers=_headers,
186
+ _host_index=_host_index
187
+ )
188
+
189
+ _response_types_map: Dict[str, Optional[str]] = {
190
+ '200': "GetTransaction200Response",
191
+ }
192
+ response_data = self.api_client.call_api(
193
+ *_param,
194
+ _request_timeout=_request_timeout
195
+ )
196
+ response_data.read()
197
+ return self.api_client.response_deserialize(
198
+ response_data=response_data,
199
+ response_types_map=_response_types_map,
200
+ )
201
+
202
+
203
+ @validate_call
204
+ def get_transaction_without_preload_content(
205
+ self,
206
+ account_id: StrictStr,
207
+ transaction_id: StrictStr,
208
+ filter_customer_id: Annotated[Optional[StrictStr], Field(description="Optional. Filters the result by the specified customer id.")] = None,
209
+ include: Annotated[Optional[StrictStr], Field(description="Optional. A comma-separated list of related resources to include in the response. Related resources include: customer, account. See Getting Related Resources")] = None,
210
+ _request_timeout: Union[
211
+ None,
212
+ Annotated[StrictFloat, Field(gt=0)],
213
+ Tuple[
214
+ Annotated[StrictFloat, Field(gt=0)],
215
+ Annotated[StrictFloat, Field(gt=0)]
216
+ ]
217
+ ] = None,
218
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
219
+ _content_type: Optional[StrictStr] = None,
220
+ _headers: Optional[Dict[StrictStr, Any]] = None,
221
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
222
+ ) -> RESTResponseType:
223
+ """Get a transaction
224
+
225
+ Get a transaction by transaction id and account id.
226
+
227
+ :param account_id: (required)
228
+ :type account_id: str
229
+ :param transaction_id: (required)
230
+ :type transaction_id: str
231
+ :param filter_customer_id: Optional. Filters the result by the specified customer id.
232
+ :type filter_customer_id: str
233
+ :param include: Optional. A comma-separated list of related resources to include in the response. Related resources include: customer, account. See Getting Related Resources
234
+ :type include: str
235
+ :param _request_timeout: timeout setting for this request. If one
236
+ number provided, it will be total request
237
+ timeout. It can also be a pair (tuple) of
238
+ (connection, read) timeouts.
239
+ :type _request_timeout: int, tuple(int, int), optional
240
+ :param _request_auth: set to override the auth_settings for an a single
241
+ request; this effectively ignores the
242
+ authentication in the spec for a single request.
243
+ :type _request_auth: dict, optional
244
+ :param _content_type: force content-type for the request.
245
+ :type _content_type: str, Optional
246
+ :param _headers: set to override the headers for a single
247
+ request; this effectively ignores the headers
248
+ in the spec for a single request.
249
+ :type _headers: dict, optional
250
+ :param _host_index: set to override the host_index for a single
251
+ request; this effectively ignores the host_index
252
+ in the spec for a single request.
253
+ :type _host_index: int, optional
254
+ :return: Returns the result object.
255
+ """ # noqa: E501
256
+
257
+ _param = self._get_transaction_serialize(
258
+ account_id=account_id,
259
+ transaction_id=transaction_id,
260
+ filter_customer_id=filter_customer_id,
261
+ include=include,
262
+ _request_auth=_request_auth,
263
+ _content_type=_content_type,
264
+ _headers=_headers,
265
+ _host_index=_host_index
266
+ )
267
+
268
+ _response_types_map: Dict[str, Optional[str]] = {
269
+ '200': "GetTransaction200Response",
270
+ }
271
+ response_data = self.api_client.call_api(
272
+ *_param,
273
+ _request_timeout=_request_timeout
274
+ )
275
+ return response_data.response
276
+
277
+
278
+ def _get_transaction_serialize(
279
+ self,
280
+ account_id,
281
+ transaction_id,
282
+ filter_customer_id,
283
+ include,
284
+ _request_auth,
285
+ _content_type,
286
+ _headers,
287
+ _host_index,
288
+ ) -> RequestSerialized:
289
+
290
+ _host = None
291
+
292
+ _collection_formats: Dict[str, str] = {
293
+ }
294
+
295
+ _path_params: Dict[str, str] = {}
296
+ _query_params: List[Tuple[str, str]] = []
297
+ _header_params: Dict[str, Optional[str]] = _headers or {}
298
+ _form_params: List[Tuple[str, str]] = []
299
+ _files: Dict[
300
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
301
+ ] = {}
302
+ _body_params: Optional[bytes] = None
303
+
304
+ # process the path parameters
305
+ if account_id is not None:
306
+ _path_params['accountId'] = account_id
307
+ if transaction_id is not None:
308
+ _path_params['transactionId'] = transaction_id
309
+ # process the query parameters
310
+ if filter_customer_id is not None:
311
+
312
+ _query_params.append(('filter[customerId]', filter_customer_id))
313
+
314
+ if include is not None:
315
+
316
+ _query_params.append(('include', include))
317
+
318
+ # process the header parameters
319
+ # process the form parameters
320
+ # process the body parameter
321
+
322
+
323
+ # set the HTTP header `Accept`
324
+ if 'Accept' not in _header_params:
325
+ _header_params['Accept'] = self.api_client.select_header_accept(
326
+ [
327
+ 'application/vnd.api+json'
328
+ ]
329
+ )
330
+
331
+
332
+ # authentication setting
333
+ _auth_settings: List[str] = [
334
+ 'bearerAuth'
335
+ ]
336
+
337
+ return self.api_client.param_serialize(
338
+ method='GET',
339
+ resource_path='/accounts/{accountId}/transactions/{transactionId}',
340
+ path_params=_path_params,
341
+ query_params=_query_params,
342
+ header_params=_header_params,
343
+ body=_body_params,
344
+ post_params=_form_params,
345
+ files=_files,
346
+ auth_settings=_auth_settings,
347
+ collection_formats=_collection_formats,
348
+ _host=_host,
349
+ _request_auth=_request_auth
350
+ )
351
+
352
+
353
+
354
+
355
+ @validate_call
356
+ def list_transactions(
357
+ self,
358
+ page_limit: Annotated[Optional[StrictStr], Field(description="Optional. Maximum number of resources that will be returned. Maximum is 1000 resources. See Pagination.")] = None,
359
+ page_offset: Annotated[Optional[StrictStr], Field(description="Optional. Number of resources to skip. See Pagination.")] = None,
360
+ filter_account_id: Annotated[Optional[StrictStr], Field(description="Optional. Filters the results by the specified account id.")] = None,
361
+ filter_account_ids: Annotated[Optional[StrictStr], Field(description="Optional. Filters the results by the specified account ids. Usage example: *filter[accountIds][0]=10000&filter[accountIds][1]=10001*")] = None,
362
+ filter_customer_id: Annotated[Optional[StrictStr], Field(description="Optional. Filters the results by the specified customer id.")] = None,
363
+ filter_query: Annotated[Optional[StrictStr], Field(description="Optional. search term according to the Full-Text Search Rules.")] = None,
364
+ filter_tags: Annotated[Optional[StrictStr], Field(description="Optional. Filter Transactions by Tags.")] = None,
365
+ filter_since: Annotated[Optional[StrictStr], Field(description="Optional. Filters the Transactions that occurred *after* the specified date. e.g. 2020-01-13T16:01:19.346Z")] = None,
366
+ filter_until: Annotated[Optional[StrictStr], Field(description="Optional. Filters the Transactions that occurred *before* the specified date. e.g. 2020-01-02T20:06:23.486Z")] = None,
367
+ filter_card_id: Annotated[Optional[StrictStr], Field(description="Optional. Filters the results by the specified card id.")] = None,
368
+ filter_type: Annotated[Optional[StrictStr], Field(description="Optional. Filter Transactions by Transaction type. Possible values include: OriginatedAch, ReceivedAch, ReturnedAch, DishonoredAch, Book, Purchase, Atm, Fee, Reversal, CardTransaction, BatchRelease, Wire, ReturnedWire, Dispute, Adjustment, Interest, Reward, CheckDeposit, ReturnedCheckDeposit, PaymentCanceled, CustomerRepayment. Usage example: *filter[type][0]=OriginatedAch&filter[type][1]=ReceivedAch*")] = None,
369
+ filter_from_amount: Annotated[Optional[StrictStr], Field(description="Optional. Filters the Transactions that have an amount that is *higher or equal to* the specified amount (in cents). e.g. 5000")] = None,
370
+ filter_to_amount: Annotated[Optional[StrictStr], Field(description="Optional. Filters the Transactions that have an amount that is *lower or equal to* the specified amount (in cents). e.g. 7000")] = None,
371
+ filter_direction: Annotated[Optional[StrictStr], Field(description="Optional. Filter Transactions by direction (Debit, Credit). Usage example: *filter[direction][0]=Debit*")] = None,
372
+ filter_exclude_fees: Annotated[Optional[StrictStr], Field(description="Optional. Filter Fee type Transactions.")] = None,
373
+ filter_account_type: Annotated[Optional[StrictStr], Field(description="Optional. Filter Transactions by account type (deposit, credit).")] = None,
374
+ sort: Annotated[Optional[StrictStr], Field(description="Optional. Leave empty or provide sort=createdAt for ascending order. Provide sort=-createdAt (leading minus sign) for descending order.")] = None,
375
+ include: Annotated[Optional[StrictStr], Field(description="Optional. A comma-separated list of related resources to include in the response. Related resources include: customer, account. See Getting Related Resources")] = None,
376
+ _request_timeout: Union[
377
+ None,
378
+ Annotated[StrictFloat, Field(gt=0)],
379
+ Tuple[
380
+ Annotated[StrictFloat, Field(gt=0)],
381
+ Annotated[StrictFloat, Field(gt=0)]
382
+ ]
383
+ ] = None,
384
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
385
+ _content_type: Optional[StrictStr] = None,
386
+ _headers: Optional[Dict[StrictStr, Any]] = None,
387
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
388
+ ) -> ListTransactions200Response:
389
+ """List transactions
390
+
391
+ List transaction resources. Filtering and sorting can be applied. Paging is available only when filtering by customer id or account id.
392
+
393
+ :param page_limit: Optional. Maximum number of resources that will be returned. Maximum is 1000 resources. See Pagination.
394
+ :type page_limit: str
395
+ :param page_offset: Optional. Number of resources to skip. See Pagination.
396
+ :type page_offset: str
397
+ :param filter_account_id: Optional. Filters the results by the specified account id.
398
+ :type filter_account_id: str
399
+ :param filter_account_ids: Optional. Filters the results by the specified account ids. Usage example: *filter[accountIds][0]=10000&filter[accountIds][1]=10001*
400
+ :type filter_account_ids: str
401
+ :param filter_customer_id: Optional. Filters the results by the specified customer id.
402
+ :type filter_customer_id: str
403
+ :param filter_query: Optional. search term according to the Full-Text Search Rules.
404
+ :type filter_query: str
405
+ :param filter_tags: Optional. Filter Transactions by Tags.
406
+ :type filter_tags: str
407
+ :param filter_since: Optional. Filters the Transactions that occurred *after* the specified date. e.g. 2020-01-13T16:01:19.346Z
408
+ :type filter_since: str
409
+ :param filter_until: Optional. Filters the Transactions that occurred *before* the specified date. e.g. 2020-01-02T20:06:23.486Z
410
+ :type filter_until: str
411
+ :param filter_card_id: Optional. Filters the results by the specified card id.
412
+ :type filter_card_id: str
413
+ :param filter_type: Optional. Filter Transactions by Transaction type. Possible values include: OriginatedAch, ReceivedAch, ReturnedAch, DishonoredAch, Book, Purchase, Atm, Fee, Reversal, CardTransaction, BatchRelease, Wire, ReturnedWire, Dispute, Adjustment, Interest, Reward, CheckDeposit, ReturnedCheckDeposit, PaymentCanceled, CustomerRepayment. Usage example: *filter[type][0]=OriginatedAch&filter[type][1]=ReceivedAch*
414
+ :type filter_type: str
415
+ :param filter_from_amount: Optional. Filters the Transactions that have an amount that is *higher or equal to* the specified amount (in cents). e.g. 5000
416
+ :type filter_from_amount: str
417
+ :param filter_to_amount: Optional. Filters the Transactions that have an amount that is *lower or equal to* the specified amount (in cents). e.g. 7000
418
+ :type filter_to_amount: str
419
+ :param filter_direction: Optional. Filter Transactions by direction (Debit, Credit). Usage example: *filter[direction][0]=Debit*
420
+ :type filter_direction: str
421
+ :param filter_exclude_fees: Optional. Filter Fee type Transactions.
422
+ :type filter_exclude_fees: str
423
+ :param filter_account_type: Optional. Filter Transactions by account type (deposit, credit).
424
+ :type filter_account_type: str
425
+ :param sort: Optional. Leave empty or provide sort=createdAt for ascending order. Provide sort=-createdAt (leading minus sign) for descending order.
426
+ :type sort: str
427
+ :param include: Optional. A comma-separated list of related resources to include in the response. Related resources include: customer, account. See Getting Related Resources
428
+ :type include: str
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._list_transactions_serialize(
452
+ page_limit=page_limit,
453
+ page_offset=page_offset,
454
+ filter_account_id=filter_account_id,
455
+ filter_account_ids=filter_account_ids,
456
+ filter_customer_id=filter_customer_id,
457
+ filter_query=filter_query,
458
+ filter_tags=filter_tags,
459
+ filter_since=filter_since,
460
+ filter_until=filter_until,
461
+ filter_card_id=filter_card_id,
462
+ filter_type=filter_type,
463
+ filter_from_amount=filter_from_amount,
464
+ filter_to_amount=filter_to_amount,
465
+ filter_direction=filter_direction,
466
+ filter_exclude_fees=filter_exclude_fees,
467
+ filter_account_type=filter_account_type,
468
+ sort=sort,
469
+ include=include,
470
+ _request_auth=_request_auth,
471
+ _content_type=_content_type,
472
+ _headers=_headers,
473
+ _host_index=_host_index
474
+ )
475
+
476
+ _response_types_map: Dict[str, Optional[str]] = {
477
+ '200': "ListTransactions200Response",
478
+ }
479
+ response_data = self.api_client.call_api(
480
+ *_param,
481
+ _request_timeout=_request_timeout
482
+ )
483
+ response_data.read()
484
+ return self.api_client.response_deserialize(
485
+ response_data=response_data,
486
+ response_types_map=_response_types_map,
487
+ ).data
488
+
489
+
490
+ @validate_call
491
+ def list_transactions_with_http_info(
492
+ self,
493
+ page_limit: Annotated[Optional[StrictStr], Field(description="Optional. Maximum number of resources that will be returned. Maximum is 1000 resources. See Pagination.")] = None,
494
+ page_offset: Annotated[Optional[StrictStr], Field(description="Optional. Number of resources to skip. See Pagination.")] = None,
495
+ filter_account_id: Annotated[Optional[StrictStr], Field(description="Optional. Filters the results by the specified account id.")] = None,
496
+ filter_account_ids: Annotated[Optional[StrictStr], Field(description="Optional. Filters the results by the specified account ids. Usage example: *filter[accountIds][0]=10000&filter[accountIds][1]=10001*")] = None,
497
+ filter_customer_id: Annotated[Optional[StrictStr], Field(description="Optional. Filters the results by the specified customer id.")] = None,
498
+ filter_query: Annotated[Optional[StrictStr], Field(description="Optional. search term according to the Full-Text Search Rules.")] = None,
499
+ filter_tags: Annotated[Optional[StrictStr], Field(description="Optional. Filter Transactions by Tags.")] = None,
500
+ filter_since: Annotated[Optional[StrictStr], Field(description="Optional. Filters the Transactions that occurred *after* the specified date. e.g. 2020-01-13T16:01:19.346Z")] = None,
501
+ filter_until: Annotated[Optional[StrictStr], Field(description="Optional. Filters the Transactions that occurred *before* the specified date. e.g. 2020-01-02T20:06:23.486Z")] = None,
502
+ filter_card_id: Annotated[Optional[StrictStr], Field(description="Optional. Filters the results by the specified card id.")] = None,
503
+ filter_type: Annotated[Optional[StrictStr], Field(description="Optional. Filter Transactions by Transaction type. Possible values include: OriginatedAch, ReceivedAch, ReturnedAch, DishonoredAch, Book, Purchase, Atm, Fee, Reversal, CardTransaction, BatchRelease, Wire, ReturnedWire, Dispute, Adjustment, Interest, Reward, CheckDeposit, ReturnedCheckDeposit, PaymentCanceled, CustomerRepayment. Usage example: *filter[type][0]=OriginatedAch&filter[type][1]=ReceivedAch*")] = None,
504
+ filter_from_amount: Annotated[Optional[StrictStr], Field(description="Optional. Filters the Transactions that have an amount that is *higher or equal to* the specified amount (in cents). e.g. 5000")] = None,
505
+ filter_to_amount: Annotated[Optional[StrictStr], Field(description="Optional. Filters the Transactions that have an amount that is *lower or equal to* the specified amount (in cents). e.g. 7000")] = None,
506
+ filter_direction: Annotated[Optional[StrictStr], Field(description="Optional. Filter Transactions by direction (Debit, Credit). Usage example: *filter[direction][0]=Debit*")] = None,
507
+ filter_exclude_fees: Annotated[Optional[StrictStr], Field(description="Optional. Filter Fee type Transactions.")] = None,
508
+ filter_account_type: Annotated[Optional[StrictStr], Field(description="Optional. Filter Transactions by account type (deposit, credit).")] = None,
509
+ sort: Annotated[Optional[StrictStr], Field(description="Optional. Leave empty or provide sort=createdAt for ascending order. Provide sort=-createdAt (leading minus sign) for descending order.")] = None,
510
+ include: Annotated[Optional[StrictStr], Field(description="Optional. A comma-separated list of related resources to include in the response. Related resources include: customer, account. See Getting Related Resources")] = None,
511
+ _request_timeout: Union[
512
+ None,
513
+ Annotated[StrictFloat, Field(gt=0)],
514
+ Tuple[
515
+ Annotated[StrictFloat, Field(gt=0)],
516
+ Annotated[StrictFloat, Field(gt=0)]
517
+ ]
518
+ ] = None,
519
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
520
+ _content_type: Optional[StrictStr] = None,
521
+ _headers: Optional[Dict[StrictStr, Any]] = None,
522
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
523
+ ) -> ApiResponse[ListTransactions200Response]:
524
+ """List transactions
525
+
526
+ List transaction resources. Filtering and sorting can be applied. Paging is available only when filtering by customer id or account id.
527
+
528
+ :param page_limit: Optional. Maximum number of resources that will be returned. Maximum is 1000 resources. See Pagination.
529
+ :type page_limit: str
530
+ :param page_offset: Optional. Number of resources to skip. See Pagination.
531
+ :type page_offset: str
532
+ :param filter_account_id: Optional. Filters the results by the specified account id.
533
+ :type filter_account_id: str
534
+ :param filter_account_ids: Optional. Filters the results by the specified account ids. Usage example: *filter[accountIds][0]=10000&filter[accountIds][1]=10001*
535
+ :type filter_account_ids: str
536
+ :param filter_customer_id: Optional. Filters the results by the specified customer id.
537
+ :type filter_customer_id: str
538
+ :param filter_query: Optional. search term according to the Full-Text Search Rules.
539
+ :type filter_query: str
540
+ :param filter_tags: Optional. Filter Transactions by Tags.
541
+ :type filter_tags: str
542
+ :param filter_since: Optional. Filters the Transactions that occurred *after* the specified date. e.g. 2020-01-13T16:01:19.346Z
543
+ :type filter_since: str
544
+ :param filter_until: Optional. Filters the Transactions that occurred *before* the specified date. e.g. 2020-01-02T20:06:23.486Z
545
+ :type filter_until: str
546
+ :param filter_card_id: Optional. Filters the results by the specified card id.
547
+ :type filter_card_id: str
548
+ :param filter_type: Optional. Filter Transactions by Transaction type. Possible values include: OriginatedAch, ReceivedAch, ReturnedAch, DishonoredAch, Book, Purchase, Atm, Fee, Reversal, CardTransaction, BatchRelease, Wire, ReturnedWire, Dispute, Adjustment, Interest, Reward, CheckDeposit, ReturnedCheckDeposit, PaymentCanceled, CustomerRepayment. Usage example: *filter[type][0]=OriginatedAch&filter[type][1]=ReceivedAch*
549
+ :type filter_type: str
550
+ :param filter_from_amount: Optional. Filters the Transactions that have an amount that is *higher or equal to* the specified amount (in cents). e.g. 5000
551
+ :type filter_from_amount: str
552
+ :param filter_to_amount: Optional. Filters the Transactions that have an amount that is *lower or equal to* the specified amount (in cents). e.g. 7000
553
+ :type filter_to_amount: str
554
+ :param filter_direction: Optional. Filter Transactions by direction (Debit, Credit). Usage example: *filter[direction][0]=Debit*
555
+ :type filter_direction: str
556
+ :param filter_exclude_fees: Optional. Filter Fee type Transactions.
557
+ :type filter_exclude_fees: str
558
+ :param filter_account_type: Optional. Filter Transactions by account type (deposit, credit).
559
+ :type filter_account_type: str
560
+ :param sort: Optional. Leave empty or provide sort=createdAt for ascending order. Provide sort=-createdAt (leading minus sign) for descending order.
561
+ :type sort: str
562
+ :param include: Optional. A comma-separated list of related resources to include in the response. Related resources include: customer, account. See Getting Related Resources
563
+ :type include: str
564
+ :param _request_timeout: timeout setting for this request. If one
565
+ number provided, it will be total request
566
+ timeout. It can also be a pair (tuple) of
567
+ (connection, read) timeouts.
568
+ :type _request_timeout: int, tuple(int, int), optional
569
+ :param _request_auth: set to override the auth_settings for an a single
570
+ request; this effectively ignores the
571
+ authentication in the spec for a single request.
572
+ :type _request_auth: dict, optional
573
+ :param _content_type: force content-type for the request.
574
+ :type _content_type: str, Optional
575
+ :param _headers: set to override the headers for a single
576
+ request; this effectively ignores the headers
577
+ in the spec for a single request.
578
+ :type _headers: dict, optional
579
+ :param _host_index: set to override the host_index for a single
580
+ request; this effectively ignores the host_index
581
+ in the spec for a single request.
582
+ :type _host_index: int, optional
583
+ :return: Returns the result object.
584
+ """ # noqa: E501
585
+
586
+ _param = self._list_transactions_serialize(
587
+ page_limit=page_limit,
588
+ page_offset=page_offset,
589
+ filter_account_id=filter_account_id,
590
+ filter_account_ids=filter_account_ids,
591
+ filter_customer_id=filter_customer_id,
592
+ filter_query=filter_query,
593
+ filter_tags=filter_tags,
594
+ filter_since=filter_since,
595
+ filter_until=filter_until,
596
+ filter_card_id=filter_card_id,
597
+ filter_type=filter_type,
598
+ filter_from_amount=filter_from_amount,
599
+ filter_to_amount=filter_to_amount,
600
+ filter_direction=filter_direction,
601
+ filter_exclude_fees=filter_exclude_fees,
602
+ filter_account_type=filter_account_type,
603
+ sort=sort,
604
+ include=include,
605
+ _request_auth=_request_auth,
606
+ _content_type=_content_type,
607
+ _headers=_headers,
608
+ _host_index=_host_index
609
+ )
610
+
611
+ _response_types_map: Dict[str, Optional[str]] = {
612
+ '200': "ListTransactions200Response",
613
+ }
614
+ response_data = self.api_client.call_api(
615
+ *_param,
616
+ _request_timeout=_request_timeout
617
+ )
618
+ response_data.read()
619
+ return self.api_client.response_deserialize(
620
+ response_data=response_data,
621
+ response_types_map=_response_types_map,
622
+ )
623
+
624
+
625
+ @validate_call
626
+ def list_transactions_without_preload_content(
627
+ self,
628
+ page_limit: Annotated[Optional[StrictStr], Field(description="Optional. Maximum number of resources that will be returned. Maximum is 1000 resources. See Pagination.")] = None,
629
+ page_offset: Annotated[Optional[StrictStr], Field(description="Optional. Number of resources to skip. See Pagination.")] = None,
630
+ filter_account_id: Annotated[Optional[StrictStr], Field(description="Optional. Filters the results by the specified account id.")] = None,
631
+ filter_account_ids: Annotated[Optional[StrictStr], Field(description="Optional. Filters the results by the specified account ids. Usage example: *filter[accountIds][0]=10000&filter[accountIds][1]=10001*")] = None,
632
+ filter_customer_id: Annotated[Optional[StrictStr], Field(description="Optional. Filters the results by the specified customer id.")] = None,
633
+ filter_query: Annotated[Optional[StrictStr], Field(description="Optional. search term according to the Full-Text Search Rules.")] = None,
634
+ filter_tags: Annotated[Optional[StrictStr], Field(description="Optional. Filter Transactions by Tags.")] = None,
635
+ filter_since: Annotated[Optional[StrictStr], Field(description="Optional. Filters the Transactions that occurred *after* the specified date. e.g. 2020-01-13T16:01:19.346Z")] = None,
636
+ filter_until: Annotated[Optional[StrictStr], Field(description="Optional. Filters the Transactions that occurred *before* the specified date. e.g. 2020-01-02T20:06:23.486Z")] = None,
637
+ filter_card_id: Annotated[Optional[StrictStr], Field(description="Optional. Filters the results by the specified card id.")] = None,
638
+ filter_type: Annotated[Optional[StrictStr], Field(description="Optional. Filter Transactions by Transaction type. Possible values include: OriginatedAch, ReceivedAch, ReturnedAch, DishonoredAch, Book, Purchase, Atm, Fee, Reversal, CardTransaction, BatchRelease, Wire, ReturnedWire, Dispute, Adjustment, Interest, Reward, CheckDeposit, ReturnedCheckDeposit, PaymentCanceled, CustomerRepayment. Usage example: *filter[type][0]=OriginatedAch&filter[type][1]=ReceivedAch*")] = None,
639
+ filter_from_amount: Annotated[Optional[StrictStr], Field(description="Optional. Filters the Transactions that have an amount that is *higher or equal to* the specified amount (in cents). e.g. 5000")] = None,
640
+ filter_to_amount: Annotated[Optional[StrictStr], Field(description="Optional. Filters the Transactions that have an amount that is *lower or equal to* the specified amount (in cents). e.g. 7000")] = None,
641
+ filter_direction: Annotated[Optional[StrictStr], Field(description="Optional. Filter Transactions by direction (Debit, Credit). Usage example: *filter[direction][0]=Debit*")] = None,
642
+ filter_exclude_fees: Annotated[Optional[StrictStr], Field(description="Optional. Filter Fee type Transactions.")] = None,
643
+ filter_account_type: Annotated[Optional[StrictStr], Field(description="Optional. Filter Transactions by account type (deposit, credit).")] = None,
644
+ sort: Annotated[Optional[StrictStr], Field(description="Optional. Leave empty or provide sort=createdAt for ascending order. Provide sort=-createdAt (leading minus sign) for descending order.")] = None,
645
+ include: Annotated[Optional[StrictStr], Field(description="Optional. A comma-separated list of related resources to include in the response. Related resources include: customer, account. See Getting Related Resources")] = None,
646
+ _request_timeout: Union[
647
+ None,
648
+ Annotated[StrictFloat, Field(gt=0)],
649
+ Tuple[
650
+ Annotated[StrictFloat, Field(gt=0)],
651
+ Annotated[StrictFloat, Field(gt=0)]
652
+ ]
653
+ ] = None,
654
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
655
+ _content_type: Optional[StrictStr] = None,
656
+ _headers: Optional[Dict[StrictStr, Any]] = None,
657
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
658
+ ) -> RESTResponseType:
659
+ """List transactions
660
+
661
+ List transaction resources. Filtering and sorting can be applied. Paging is available only when filtering by customer id or account id.
662
+
663
+ :param page_limit: Optional. Maximum number of resources that will be returned. Maximum is 1000 resources. See Pagination.
664
+ :type page_limit: str
665
+ :param page_offset: Optional. Number of resources to skip. See Pagination.
666
+ :type page_offset: str
667
+ :param filter_account_id: Optional. Filters the results by the specified account id.
668
+ :type filter_account_id: str
669
+ :param filter_account_ids: Optional. Filters the results by the specified account ids. Usage example: *filter[accountIds][0]=10000&filter[accountIds][1]=10001*
670
+ :type filter_account_ids: str
671
+ :param filter_customer_id: Optional. Filters the results by the specified customer id.
672
+ :type filter_customer_id: str
673
+ :param filter_query: Optional. search term according to the Full-Text Search Rules.
674
+ :type filter_query: str
675
+ :param filter_tags: Optional. Filter Transactions by Tags.
676
+ :type filter_tags: str
677
+ :param filter_since: Optional. Filters the Transactions that occurred *after* the specified date. e.g. 2020-01-13T16:01:19.346Z
678
+ :type filter_since: str
679
+ :param filter_until: Optional. Filters the Transactions that occurred *before* the specified date. e.g. 2020-01-02T20:06:23.486Z
680
+ :type filter_until: str
681
+ :param filter_card_id: Optional. Filters the results by the specified card id.
682
+ :type filter_card_id: str
683
+ :param filter_type: Optional. Filter Transactions by Transaction type. Possible values include: OriginatedAch, ReceivedAch, ReturnedAch, DishonoredAch, Book, Purchase, Atm, Fee, Reversal, CardTransaction, BatchRelease, Wire, ReturnedWire, Dispute, Adjustment, Interest, Reward, CheckDeposit, ReturnedCheckDeposit, PaymentCanceled, CustomerRepayment. Usage example: *filter[type][0]=OriginatedAch&filter[type][1]=ReceivedAch*
684
+ :type filter_type: str
685
+ :param filter_from_amount: Optional. Filters the Transactions that have an amount that is *higher or equal to* the specified amount (in cents). e.g. 5000
686
+ :type filter_from_amount: str
687
+ :param filter_to_amount: Optional. Filters the Transactions that have an amount that is *lower or equal to* the specified amount (in cents). e.g. 7000
688
+ :type filter_to_amount: str
689
+ :param filter_direction: Optional. Filter Transactions by direction (Debit, Credit). Usage example: *filter[direction][0]=Debit*
690
+ :type filter_direction: str
691
+ :param filter_exclude_fees: Optional. Filter Fee type Transactions.
692
+ :type filter_exclude_fees: str
693
+ :param filter_account_type: Optional. Filter Transactions by account type (deposit, credit).
694
+ :type filter_account_type: str
695
+ :param sort: Optional. Leave empty or provide sort=createdAt for ascending order. Provide sort=-createdAt (leading minus sign) for descending order.
696
+ :type sort: str
697
+ :param include: Optional. A comma-separated list of related resources to include in the response. Related resources include: customer, account. See Getting Related Resources
698
+ :type include: str
699
+ :param _request_timeout: timeout setting for this request. If one
700
+ number provided, it will be total request
701
+ timeout. It can also be a pair (tuple) of
702
+ (connection, read) timeouts.
703
+ :type _request_timeout: int, tuple(int, int), optional
704
+ :param _request_auth: set to override the auth_settings for an a single
705
+ request; this effectively ignores the
706
+ authentication in the spec for a single request.
707
+ :type _request_auth: dict, optional
708
+ :param _content_type: force content-type for the request.
709
+ :type _content_type: str, Optional
710
+ :param _headers: set to override the headers for a single
711
+ request; this effectively ignores the headers
712
+ in the spec for a single request.
713
+ :type _headers: dict, optional
714
+ :param _host_index: set to override the host_index for a single
715
+ request; this effectively ignores the host_index
716
+ in the spec for a single request.
717
+ :type _host_index: int, optional
718
+ :return: Returns the result object.
719
+ """ # noqa: E501
720
+
721
+ _param = self._list_transactions_serialize(
722
+ page_limit=page_limit,
723
+ page_offset=page_offset,
724
+ filter_account_id=filter_account_id,
725
+ filter_account_ids=filter_account_ids,
726
+ filter_customer_id=filter_customer_id,
727
+ filter_query=filter_query,
728
+ filter_tags=filter_tags,
729
+ filter_since=filter_since,
730
+ filter_until=filter_until,
731
+ filter_card_id=filter_card_id,
732
+ filter_type=filter_type,
733
+ filter_from_amount=filter_from_amount,
734
+ filter_to_amount=filter_to_amount,
735
+ filter_direction=filter_direction,
736
+ filter_exclude_fees=filter_exclude_fees,
737
+ filter_account_type=filter_account_type,
738
+ sort=sort,
739
+ include=include,
740
+ _request_auth=_request_auth,
741
+ _content_type=_content_type,
742
+ _headers=_headers,
743
+ _host_index=_host_index
744
+ )
745
+
746
+ _response_types_map: Dict[str, Optional[str]] = {
747
+ '200': "ListTransactions200Response",
748
+ }
749
+ response_data = self.api_client.call_api(
750
+ *_param,
751
+ _request_timeout=_request_timeout
752
+ )
753
+ return response_data.response
754
+
755
+
756
+ def _list_transactions_serialize(
757
+ self,
758
+ page_limit,
759
+ page_offset,
760
+ filter_account_id,
761
+ filter_account_ids,
762
+ filter_customer_id,
763
+ filter_query,
764
+ filter_tags,
765
+ filter_since,
766
+ filter_until,
767
+ filter_card_id,
768
+ filter_type,
769
+ filter_from_amount,
770
+ filter_to_amount,
771
+ filter_direction,
772
+ filter_exclude_fees,
773
+ filter_account_type,
774
+ sort,
775
+ include,
776
+ _request_auth,
777
+ _content_type,
778
+ _headers,
779
+ _host_index,
780
+ ) -> RequestSerialized:
781
+
782
+ _host = None
783
+
784
+ _collection_formats: Dict[str, str] = {
785
+ }
786
+
787
+ _path_params: Dict[str, str] = {}
788
+ _query_params: List[Tuple[str, str]] = []
789
+ _header_params: Dict[str, Optional[str]] = _headers or {}
790
+ _form_params: List[Tuple[str, str]] = []
791
+ _files: Dict[
792
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
793
+ ] = {}
794
+ _body_params: Optional[bytes] = None
795
+
796
+ # process the path parameters
797
+ # process the query parameters
798
+ if page_limit is not None:
799
+
800
+ _query_params.append(('page[limit]', page_limit))
801
+
802
+ if page_offset is not None:
803
+
804
+ _query_params.append(('page[offset]', page_offset))
805
+
806
+ if filter_account_id is not None:
807
+
808
+ _query_params.append(('filter[accountId]', filter_account_id))
809
+
810
+ if filter_account_ids is not None:
811
+
812
+ _query_params.append(('filter[accountIds][]', filter_account_ids))
813
+
814
+ if filter_customer_id is not None:
815
+
816
+ _query_params.append(('filter[customerId]', filter_customer_id))
817
+
818
+ if filter_query is not None:
819
+
820
+ _query_params.append(('filter[query]', filter_query))
821
+
822
+ if filter_tags is not None:
823
+
824
+ _query_params.append(('filter[tags]', filter_tags))
825
+
826
+ if filter_since is not None:
827
+
828
+ _query_params.append(('filter[since]', filter_since))
829
+
830
+ if filter_until is not None:
831
+
832
+ _query_params.append(('filter[until]', filter_until))
833
+
834
+ if filter_card_id is not None:
835
+
836
+ _query_params.append(('filter[cardId]', filter_card_id))
837
+
838
+ if filter_type is not None:
839
+
840
+ _query_params.append(('filter[type][]', filter_type))
841
+
842
+ if filter_from_amount is not None:
843
+
844
+ _query_params.append(('filter[fromAmount]', filter_from_amount))
845
+
846
+ if filter_to_amount is not None:
847
+
848
+ _query_params.append(('filter[toAmount]', filter_to_amount))
849
+
850
+ if filter_direction is not None:
851
+
852
+ _query_params.append(('filter[direction][]', filter_direction))
853
+
854
+ if filter_exclude_fees is not None:
855
+
856
+ _query_params.append(('filter[excludeFees]', filter_exclude_fees))
857
+
858
+ if filter_account_type is not None:
859
+
860
+ _query_params.append(('filter[accountType]', filter_account_type))
861
+
862
+ if sort is not None:
863
+
864
+ _query_params.append(('sort', sort))
865
+
866
+ if include is not None:
867
+
868
+ _query_params.append(('include', include))
869
+
870
+ # process the header parameters
871
+ # process the form parameters
872
+ # process the body parameter
873
+
874
+
875
+ # set the HTTP header `Accept`
876
+ if 'Accept' not in _header_params:
877
+ _header_params['Accept'] = self.api_client.select_header_accept(
878
+ [
879
+ 'application/vnd.api+json'
880
+ ]
881
+ )
882
+
883
+
884
+ # authentication setting
885
+ _auth_settings: List[str] = [
886
+ 'bearerAuth'
887
+ ]
888
+
889
+ return self.api_client.param_serialize(
890
+ method='GET',
891
+ resource_path='/transactions',
892
+ path_params=_path_params,
893
+ query_params=_query_params,
894
+ header_params=_header_params,
895
+ body=_body_params,
896
+ post_params=_form_params,
897
+ files=_files,
898
+ auth_settings=_auth_settings,
899
+ collection_formats=_collection_formats,
900
+ _host=_host,
901
+ _request_auth=_request_auth
902
+ )
903
+
904
+
905
+
906
+
907
+ @validate_call
908
+ def update_transaction(
909
+ self,
910
+ transaction_id: StrictStr,
911
+ update_transaction_request: UpdateTransactionRequest,
912
+ _request_timeout: Union[
913
+ None,
914
+ Annotated[StrictFloat, Field(gt=0)],
915
+ Tuple[
916
+ Annotated[StrictFloat, Field(gt=0)],
917
+ Annotated[StrictFloat, Field(gt=0)]
918
+ ]
919
+ ] = None,
920
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
921
+ _content_type: Optional[StrictStr] = None,
922
+ _headers: Optional[Dict[StrictStr, Any]] = None,
923
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
924
+ ) -> UpdateTransaction200Response:
925
+ """Update a transaction
926
+
927
+ Update a transaction. The request body is one of UpdateBookTransactionRequest (bookTransaction) or UpdateChargebackTransactionRequest (chargebackTransaction), discriminated by data.type.
928
+
929
+ :param transaction_id: (required)
930
+ :type transaction_id: str
931
+ :param update_transaction_request: (required)
932
+ :type update_transaction_request: UpdateTransactionRequest
933
+ :param _request_timeout: timeout setting for this request. If one
934
+ number provided, it will be total request
935
+ timeout. It can also be a pair (tuple) of
936
+ (connection, read) timeouts.
937
+ :type _request_timeout: int, tuple(int, int), optional
938
+ :param _request_auth: set to override the auth_settings for an a single
939
+ request; this effectively ignores the
940
+ authentication in the spec for a single request.
941
+ :type _request_auth: dict, optional
942
+ :param _content_type: force content-type for the request.
943
+ :type _content_type: str, Optional
944
+ :param _headers: set to override the headers for a single
945
+ request; this effectively ignores the headers
946
+ in the spec for a single request.
947
+ :type _headers: dict, optional
948
+ :param _host_index: set to override the host_index for a single
949
+ request; this effectively ignores the host_index
950
+ in the spec for a single request.
951
+ :type _host_index: int, optional
952
+ :return: Returns the result object.
953
+ """ # noqa: E501
954
+
955
+ _param = self._update_transaction_serialize(
956
+ transaction_id=transaction_id,
957
+ update_transaction_request=update_transaction_request,
958
+ _request_auth=_request_auth,
959
+ _content_type=_content_type,
960
+ _headers=_headers,
961
+ _host_index=_host_index
962
+ )
963
+
964
+ _response_types_map: Dict[str, Optional[str]] = {
965
+ '200': "UpdateTransaction200Response",
966
+ }
967
+ response_data = self.api_client.call_api(
968
+ *_param,
969
+ _request_timeout=_request_timeout
970
+ )
971
+ response_data.read()
972
+ return self.api_client.response_deserialize(
973
+ response_data=response_data,
974
+ response_types_map=_response_types_map,
975
+ ).data
976
+
977
+
978
+ @validate_call
979
+ def update_transaction_with_http_info(
980
+ self,
981
+ transaction_id: StrictStr,
982
+ update_transaction_request: UpdateTransactionRequest,
983
+ _request_timeout: Union[
984
+ None,
985
+ Annotated[StrictFloat, Field(gt=0)],
986
+ Tuple[
987
+ Annotated[StrictFloat, Field(gt=0)],
988
+ Annotated[StrictFloat, Field(gt=0)]
989
+ ]
990
+ ] = None,
991
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
992
+ _content_type: Optional[StrictStr] = None,
993
+ _headers: Optional[Dict[StrictStr, Any]] = None,
994
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
995
+ ) -> ApiResponse[UpdateTransaction200Response]:
996
+ """Update a transaction
997
+
998
+ Update a transaction. The request body is one of UpdateBookTransactionRequest (bookTransaction) or UpdateChargebackTransactionRequest (chargebackTransaction), discriminated by data.type.
999
+
1000
+ :param transaction_id: (required)
1001
+ :type transaction_id: str
1002
+ :param update_transaction_request: (required)
1003
+ :type update_transaction_request: UpdateTransactionRequest
1004
+ :param _request_timeout: timeout setting for this request. If one
1005
+ number provided, it will be total request
1006
+ timeout. It can also be a pair (tuple) of
1007
+ (connection, read) timeouts.
1008
+ :type _request_timeout: int, tuple(int, int), optional
1009
+ :param _request_auth: set to override the auth_settings for an a single
1010
+ request; this effectively ignores the
1011
+ authentication in the spec for a single request.
1012
+ :type _request_auth: dict, optional
1013
+ :param _content_type: force content-type for the request.
1014
+ :type _content_type: str, Optional
1015
+ :param _headers: set to override the headers for a single
1016
+ request; this effectively ignores the headers
1017
+ in the spec for a single request.
1018
+ :type _headers: dict, optional
1019
+ :param _host_index: set to override the host_index for a single
1020
+ request; this effectively ignores the host_index
1021
+ in the spec for a single request.
1022
+ :type _host_index: int, optional
1023
+ :return: Returns the result object.
1024
+ """ # noqa: E501
1025
+
1026
+ _param = self._update_transaction_serialize(
1027
+ transaction_id=transaction_id,
1028
+ update_transaction_request=update_transaction_request,
1029
+ _request_auth=_request_auth,
1030
+ _content_type=_content_type,
1031
+ _headers=_headers,
1032
+ _host_index=_host_index
1033
+ )
1034
+
1035
+ _response_types_map: Dict[str, Optional[str]] = {
1036
+ '200': "UpdateTransaction200Response",
1037
+ }
1038
+ response_data = self.api_client.call_api(
1039
+ *_param,
1040
+ _request_timeout=_request_timeout
1041
+ )
1042
+ response_data.read()
1043
+ return self.api_client.response_deserialize(
1044
+ response_data=response_data,
1045
+ response_types_map=_response_types_map,
1046
+ )
1047
+
1048
+
1049
+ @validate_call
1050
+ def update_transaction_without_preload_content(
1051
+ self,
1052
+ transaction_id: StrictStr,
1053
+ update_transaction_request: UpdateTransactionRequest,
1054
+ _request_timeout: Union[
1055
+ None,
1056
+ Annotated[StrictFloat, Field(gt=0)],
1057
+ Tuple[
1058
+ Annotated[StrictFloat, Field(gt=0)],
1059
+ Annotated[StrictFloat, Field(gt=0)]
1060
+ ]
1061
+ ] = None,
1062
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1063
+ _content_type: Optional[StrictStr] = None,
1064
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1065
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1066
+ ) -> RESTResponseType:
1067
+ """Update a transaction
1068
+
1069
+ Update a transaction. The request body is one of UpdateBookTransactionRequest (bookTransaction) or UpdateChargebackTransactionRequest (chargebackTransaction), discriminated by data.type.
1070
+
1071
+ :param transaction_id: (required)
1072
+ :type transaction_id: str
1073
+ :param update_transaction_request: (required)
1074
+ :type update_transaction_request: UpdateTransactionRequest
1075
+ :param _request_timeout: timeout setting for this request. If one
1076
+ number provided, it will be total request
1077
+ timeout. It can also be a pair (tuple) of
1078
+ (connection, read) timeouts.
1079
+ :type _request_timeout: int, tuple(int, int), optional
1080
+ :param _request_auth: set to override the auth_settings for an a single
1081
+ request; this effectively ignores the
1082
+ authentication in the spec for a single request.
1083
+ :type _request_auth: dict, optional
1084
+ :param _content_type: force content-type for the request.
1085
+ :type _content_type: str, Optional
1086
+ :param _headers: set to override the headers for a single
1087
+ request; this effectively ignores the headers
1088
+ in the spec for a single request.
1089
+ :type _headers: dict, optional
1090
+ :param _host_index: set to override the host_index for a single
1091
+ request; this effectively ignores the host_index
1092
+ in the spec for a single request.
1093
+ :type _host_index: int, optional
1094
+ :return: Returns the result object.
1095
+ """ # noqa: E501
1096
+
1097
+ _param = self._update_transaction_serialize(
1098
+ transaction_id=transaction_id,
1099
+ update_transaction_request=update_transaction_request,
1100
+ _request_auth=_request_auth,
1101
+ _content_type=_content_type,
1102
+ _headers=_headers,
1103
+ _host_index=_host_index
1104
+ )
1105
+
1106
+ _response_types_map: Dict[str, Optional[str]] = {
1107
+ '200': "UpdateTransaction200Response",
1108
+ }
1109
+ response_data = self.api_client.call_api(
1110
+ *_param,
1111
+ _request_timeout=_request_timeout
1112
+ )
1113
+ return response_data.response
1114
+
1115
+
1116
+ def _update_transaction_serialize(
1117
+ self,
1118
+ transaction_id,
1119
+ update_transaction_request,
1120
+ _request_auth,
1121
+ _content_type,
1122
+ _headers,
1123
+ _host_index,
1124
+ ) -> RequestSerialized:
1125
+
1126
+ _host = None
1127
+
1128
+ _collection_formats: Dict[str, str] = {
1129
+ }
1130
+
1131
+ _path_params: Dict[str, str] = {}
1132
+ _query_params: List[Tuple[str, str]] = []
1133
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1134
+ _form_params: List[Tuple[str, str]] = []
1135
+ _files: Dict[
1136
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1137
+ ] = {}
1138
+ _body_params: Optional[bytes] = None
1139
+
1140
+ # process the path parameters
1141
+ if transaction_id is not None:
1142
+ _path_params['transactionId'] = transaction_id
1143
+ # process the query parameters
1144
+ # process the header parameters
1145
+ # process the form parameters
1146
+ # process the body parameter
1147
+ if update_transaction_request is not None:
1148
+ _body_params = update_transaction_request
1149
+
1150
+
1151
+ # set the HTTP header `Accept`
1152
+ if 'Accept' not in _header_params:
1153
+ _header_params['Accept'] = self.api_client.select_header_accept(
1154
+ [
1155
+ 'application/vnd.api+json'
1156
+ ]
1157
+ )
1158
+
1159
+ # set the HTTP header `Content-Type`
1160
+ if _content_type:
1161
+ _header_params['Content-Type'] = _content_type
1162
+ else:
1163
+ _default_content_type = (
1164
+ self.api_client.select_header_content_type(
1165
+ [
1166
+ 'application/vnd.api+json'
1167
+ ]
1168
+ )
1169
+ )
1170
+ if _default_content_type is not None:
1171
+ _header_params['Content-Type'] = _default_content_type
1172
+
1173
+ # authentication setting
1174
+ _auth_settings: List[str] = [
1175
+ 'bearerAuth'
1176
+ ]
1177
+
1178
+ return self.api_client.param_serialize(
1179
+ method='PATCH',
1180
+ resource_path='/transactions/{transactionId}',
1181
+ path_params=_path_params,
1182
+ query_params=_query_params,
1183
+ header_params=_header_params,
1184
+ body=_body_params,
1185
+ post_params=_form_params,
1186
+ files=_files,
1187
+ auth_settings=_auth_settings,
1188
+ collection_formats=_collection_formats,
1189
+ _host=_host,
1190
+ _request_auth=_request_auth
1191
+ )
1192
+
1193
+
1194
+
1195
+
1196
+ @validate_call
1197
+ def update_transaction_tags(
1198
+ self,
1199
+ account_id: StrictStr,
1200
+ transaction_id: StrictStr,
1201
+ update_tags_request: UpdateTagsRequest,
1202
+ _request_timeout: Union[
1203
+ None,
1204
+ Annotated[StrictFloat, Field(gt=0)],
1205
+ Tuple[
1206
+ Annotated[StrictFloat, Field(gt=0)],
1207
+ Annotated[StrictFloat, Field(gt=0)]
1208
+ ]
1209
+ ] = None,
1210
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1211
+ _content_type: Optional[StrictStr] = None,
1212
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1213
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1214
+ ) -> UpdateTransaction200Response:
1215
+ """Update transaction tags
1216
+
1217
+ Update Tags Transaction.
1218
+
1219
+ :param account_id: (required)
1220
+ :type account_id: str
1221
+ :param transaction_id: (required)
1222
+ :type transaction_id: str
1223
+ :param update_tags_request: (required)
1224
+ :type update_tags_request: UpdateTagsRequest
1225
+ :param _request_timeout: timeout setting for this request. If one
1226
+ number provided, it will be total request
1227
+ timeout. It can also be a pair (tuple) of
1228
+ (connection, read) timeouts.
1229
+ :type _request_timeout: int, tuple(int, int), optional
1230
+ :param _request_auth: set to override the auth_settings for an a single
1231
+ request; this effectively ignores the
1232
+ authentication in the spec for a single request.
1233
+ :type _request_auth: dict, optional
1234
+ :param _content_type: force content-type for the request.
1235
+ :type _content_type: str, Optional
1236
+ :param _headers: set to override the headers for a single
1237
+ request; this effectively ignores the headers
1238
+ in the spec for a single request.
1239
+ :type _headers: dict, optional
1240
+ :param _host_index: set to override the host_index for a single
1241
+ request; this effectively ignores the host_index
1242
+ in the spec for a single request.
1243
+ :type _host_index: int, optional
1244
+ :return: Returns the result object.
1245
+ """ # noqa: E501
1246
+
1247
+ _param = self._update_transaction_tags_serialize(
1248
+ account_id=account_id,
1249
+ transaction_id=transaction_id,
1250
+ update_tags_request=update_tags_request,
1251
+ _request_auth=_request_auth,
1252
+ _content_type=_content_type,
1253
+ _headers=_headers,
1254
+ _host_index=_host_index
1255
+ )
1256
+
1257
+ _response_types_map: Dict[str, Optional[str]] = {
1258
+ '200': "UpdateTransaction200Response",
1259
+ }
1260
+ response_data = self.api_client.call_api(
1261
+ *_param,
1262
+ _request_timeout=_request_timeout
1263
+ )
1264
+ response_data.read()
1265
+ return self.api_client.response_deserialize(
1266
+ response_data=response_data,
1267
+ response_types_map=_response_types_map,
1268
+ ).data
1269
+
1270
+
1271
+ @validate_call
1272
+ def update_transaction_tags_with_http_info(
1273
+ self,
1274
+ account_id: StrictStr,
1275
+ transaction_id: StrictStr,
1276
+ update_tags_request: UpdateTagsRequest,
1277
+ _request_timeout: Union[
1278
+ None,
1279
+ Annotated[StrictFloat, Field(gt=0)],
1280
+ Tuple[
1281
+ Annotated[StrictFloat, Field(gt=0)],
1282
+ Annotated[StrictFloat, Field(gt=0)]
1283
+ ]
1284
+ ] = None,
1285
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1286
+ _content_type: Optional[StrictStr] = None,
1287
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1288
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1289
+ ) -> ApiResponse[UpdateTransaction200Response]:
1290
+ """Update transaction tags
1291
+
1292
+ Update Tags Transaction.
1293
+
1294
+ :param account_id: (required)
1295
+ :type account_id: str
1296
+ :param transaction_id: (required)
1297
+ :type transaction_id: str
1298
+ :param update_tags_request: (required)
1299
+ :type update_tags_request: UpdateTagsRequest
1300
+ :param _request_timeout: timeout setting for this request. If one
1301
+ number provided, it will be total request
1302
+ timeout. It can also be a pair (tuple) of
1303
+ (connection, read) timeouts.
1304
+ :type _request_timeout: int, tuple(int, int), optional
1305
+ :param _request_auth: set to override the auth_settings for an a single
1306
+ request; this effectively ignores the
1307
+ authentication in the spec for a single request.
1308
+ :type _request_auth: dict, optional
1309
+ :param _content_type: force content-type for the request.
1310
+ :type _content_type: str, Optional
1311
+ :param _headers: set to override the headers for a single
1312
+ request; this effectively ignores the headers
1313
+ in the spec for a single request.
1314
+ :type _headers: dict, optional
1315
+ :param _host_index: set to override the host_index for a single
1316
+ request; this effectively ignores the host_index
1317
+ in the spec for a single request.
1318
+ :type _host_index: int, optional
1319
+ :return: Returns the result object.
1320
+ """ # noqa: E501
1321
+
1322
+ _param = self._update_transaction_tags_serialize(
1323
+ account_id=account_id,
1324
+ transaction_id=transaction_id,
1325
+ update_tags_request=update_tags_request,
1326
+ _request_auth=_request_auth,
1327
+ _content_type=_content_type,
1328
+ _headers=_headers,
1329
+ _host_index=_host_index
1330
+ )
1331
+
1332
+ _response_types_map: Dict[str, Optional[str]] = {
1333
+ '200': "UpdateTransaction200Response",
1334
+ }
1335
+ response_data = self.api_client.call_api(
1336
+ *_param,
1337
+ _request_timeout=_request_timeout
1338
+ )
1339
+ response_data.read()
1340
+ return self.api_client.response_deserialize(
1341
+ response_data=response_data,
1342
+ response_types_map=_response_types_map,
1343
+ )
1344
+
1345
+
1346
+ @validate_call
1347
+ def update_transaction_tags_without_preload_content(
1348
+ self,
1349
+ account_id: StrictStr,
1350
+ transaction_id: StrictStr,
1351
+ update_tags_request: UpdateTagsRequest,
1352
+ _request_timeout: Union[
1353
+ None,
1354
+ Annotated[StrictFloat, Field(gt=0)],
1355
+ Tuple[
1356
+ Annotated[StrictFloat, Field(gt=0)],
1357
+ Annotated[StrictFloat, Field(gt=0)]
1358
+ ]
1359
+ ] = None,
1360
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1361
+ _content_type: Optional[StrictStr] = None,
1362
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1363
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1364
+ ) -> RESTResponseType:
1365
+ """Update transaction tags
1366
+
1367
+ Update Tags Transaction.
1368
+
1369
+ :param account_id: (required)
1370
+ :type account_id: str
1371
+ :param transaction_id: (required)
1372
+ :type transaction_id: str
1373
+ :param update_tags_request: (required)
1374
+ :type update_tags_request: UpdateTagsRequest
1375
+ :param _request_timeout: timeout setting for this request. If one
1376
+ number provided, it will be total request
1377
+ timeout. It can also be a pair (tuple) of
1378
+ (connection, read) timeouts.
1379
+ :type _request_timeout: int, tuple(int, int), optional
1380
+ :param _request_auth: set to override the auth_settings for an a single
1381
+ request; this effectively ignores the
1382
+ authentication in the spec for a single request.
1383
+ :type _request_auth: dict, optional
1384
+ :param _content_type: force content-type for the request.
1385
+ :type _content_type: str, Optional
1386
+ :param _headers: set to override the headers for a single
1387
+ request; this effectively ignores the headers
1388
+ in the spec for a single request.
1389
+ :type _headers: dict, optional
1390
+ :param _host_index: set to override the host_index for a single
1391
+ request; this effectively ignores the host_index
1392
+ in the spec for a single request.
1393
+ :type _host_index: int, optional
1394
+ :return: Returns the result object.
1395
+ """ # noqa: E501
1396
+
1397
+ _param = self._update_transaction_tags_serialize(
1398
+ account_id=account_id,
1399
+ transaction_id=transaction_id,
1400
+ update_tags_request=update_tags_request,
1401
+ _request_auth=_request_auth,
1402
+ _content_type=_content_type,
1403
+ _headers=_headers,
1404
+ _host_index=_host_index
1405
+ )
1406
+
1407
+ _response_types_map: Dict[str, Optional[str]] = {
1408
+ '200': "UpdateTransaction200Response",
1409
+ }
1410
+ response_data = self.api_client.call_api(
1411
+ *_param,
1412
+ _request_timeout=_request_timeout
1413
+ )
1414
+ return response_data.response
1415
+
1416
+
1417
+ def _update_transaction_tags_serialize(
1418
+ self,
1419
+ account_id,
1420
+ transaction_id,
1421
+ update_tags_request,
1422
+ _request_auth,
1423
+ _content_type,
1424
+ _headers,
1425
+ _host_index,
1426
+ ) -> RequestSerialized:
1427
+
1428
+ _host = None
1429
+
1430
+ _collection_formats: Dict[str, str] = {
1431
+ }
1432
+
1433
+ _path_params: Dict[str, str] = {}
1434
+ _query_params: List[Tuple[str, str]] = []
1435
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1436
+ _form_params: List[Tuple[str, str]] = []
1437
+ _files: Dict[
1438
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1439
+ ] = {}
1440
+ _body_params: Optional[bytes] = None
1441
+
1442
+ # process the path parameters
1443
+ if account_id is not None:
1444
+ _path_params['accountId'] = account_id
1445
+ if transaction_id is not None:
1446
+ _path_params['transactionId'] = transaction_id
1447
+ # process the query parameters
1448
+ # process the header parameters
1449
+ # process the form parameters
1450
+ # process the body parameter
1451
+ if update_tags_request is not None:
1452
+ _body_params = update_tags_request
1453
+
1454
+
1455
+ # set the HTTP header `Accept`
1456
+ if 'Accept' not in _header_params:
1457
+ _header_params['Accept'] = self.api_client.select_header_accept(
1458
+ [
1459
+ 'application/vnd.api+json'
1460
+ ]
1461
+ )
1462
+
1463
+ # set the HTTP header `Content-Type`
1464
+ if _content_type:
1465
+ _header_params['Content-Type'] = _content_type
1466
+ else:
1467
+ _default_content_type = (
1468
+ self.api_client.select_header_content_type(
1469
+ [
1470
+ 'application/vnd.api+json'
1471
+ ]
1472
+ )
1473
+ )
1474
+ if _default_content_type is not None:
1475
+ _header_params['Content-Type'] = _default_content_type
1476
+
1477
+ # authentication setting
1478
+ _auth_settings: List[str] = [
1479
+ 'bearerAuth'
1480
+ ]
1481
+
1482
+ return self.api_client.param_serialize(
1483
+ method='PATCH',
1484
+ resource_path='/accounts/{accountId}/transactions/{transactionId}',
1485
+ path_params=_path_params,
1486
+ query_params=_query_params,
1487
+ header_params=_header_params,
1488
+ body=_body_params,
1489
+ post_params=_form_params,
1490
+ files=_files,
1491
+ auth_settings=_auth_settings,
1492
+ collection_formats=_collection_formats,
1493
+ _host=_host,
1494
+ _request_auth=_request_auth
1495
+ )
1496
+
1497
+