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