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