lithic 0.1.0.pre.alpha.2 → 0.1.0.pre.alpha.4

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 (494) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/lib/lithic/client.rb +8 -6
  4. data/lib/lithic/errors.rb +195 -158
  5. data/lib/lithic/models/account.rb +7 -0
  6. data/lib/lithic/models/account_holder.rb +13 -0
  7. data/lib/lithic/models/account_holder_create_params.rb +1 -0
  8. data/lib/lithic/models/account_holder_create_response.rb +3 -0
  9. data/lib/lithic/models/account_holder_list_documents_params.rb +1 -0
  10. data/lib/lithic/models/account_holder_list_documents_response.rb +1 -0
  11. data/lib/lithic/models/account_holder_list_params.rb +1 -0
  12. data/lib/lithic/models/account_holder_retrieve_document_params.rb +1 -0
  13. data/lib/lithic/models/account_holder_retrieve_params.rb +1 -0
  14. data/lib/lithic/models/account_holder_simulate_enrollment_document_review_params.rb +1 -0
  15. data/lib/lithic/models/account_holder_simulate_enrollment_review_params.rb +1 -0
  16. data/lib/lithic/models/account_holder_simulate_enrollment_review_response.rb +15 -0
  17. data/lib/lithic/models/account_holder_update_params.rb +1 -0
  18. data/lib/lithic/models/account_holder_update_response.rb +16 -0
  19. data/lib/lithic/models/account_holder_upload_document_params.rb +1 -0
  20. data/lib/lithic/models/account_list_params.rb +1 -0
  21. data/lib/lithic/models/account_retrieve_params.rb +1 -0
  22. data/lib/lithic/models/account_retrieve_spend_limits_params.rb +1 -0
  23. data/lib/lithic/models/account_spend_limits.rb +4 -0
  24. data/lib/lithic/models/account_update_params.rb +1 -0
  25. data/lib/lithic/models/aggregate_balance.rb +3 -0
  26. data/lib/lithic/models/aggregate_balance_list_params.rb +1 -0
  27. data/lib/lithic/models/api_status.rb +1 -0
  28. data/lib/lithic/models/auth_rules/auth_rule.rb +2 -0
  29. data/lib/lithic/models/auth_rules/auth_rule_condition.rb +4 -0
  30. data/lib/lithic/models/auth_rules/v2/backtest_create_params.rb +1 -0
  31. data/lib/lithic/models/auth_rules/v2/backtest_create_response.rb +1 -0
  32. data/lib/lithic/models/auth_rules/v2/backtest_results.rb +5 -0
  33. data/lib/lithic/models/auth_rules/v2/backtest_retrieve_params.rb +1 -0
  34. data/lib/lithic/models/auth_rules/v2_apply_params.rb +1 -0
  35. data/lib/lithic/models/auth_rules/v2_apply_response.rb +11 -0
  36. data/lib/lithic/models/auth_rules/v2_create_params.rb +1 -0
  37. data/lib/lithic/models/auth_rules/v2_create_response.rb +11 -0
  38. data/lib/lithic/models/auth_rules/v2_delete_params.rb +1 -0
  39. data/lib/lithic/models/auth_rules/v2_draft_params.rb +1 -0
  40. data/lib/lithic/models/auth_rules/v2_draft_response.rb +11 -0
  41. data/lib/lithic/models/auth_rules/v2_list_params.rb +1 -0
  42. data/lib/lithic/models/auth_rules/v2_list_response.rb +11 -0
  43. data/lib/lithic/models/auth_rules/v2_promote_params.rb +1 -0
  44. data/lib/lithic/models/auth_rules/v2_promote_response.rb +11 -0
  45. data/lib/lithic/models/auth_rules/v2_report_params.rb +1 -0
  46. data/lib/lithic/models/auth_rules/v2_report_response.rb +1 -0
  47. data/lib/lithic/models/auth_rules/v2_retrieve_params.rb +1 -0
  48. data/lib/lithic/models/auth_rules/v2_retrieve_response.rb +11 -0
  49. data/lib/lithic/models/auth_rules/v2_update_params.rb +1 -0
  50. data/lib/lithic/models/auth_rules/v2_update_response.rb +11 -0
  51. data/lib/lithic/models/auth_rules/velocity_limit_params.rb +4 -0
  52. data/lib/lithic/models/auth_stream_enrollment_retrieve_secret_params.rb +1 -0
  53. data/lib/lithic/models/auth_stream_enrollment_rotate_secret_params.rb +1 -0
  54. data/lib/lithic/models/auth_stream_secret.rb +1 -0
  55. data/lib/lithic/models/balance.rb +3 -0
  56. data/lib/lithic/models/balance_list_params.rb +1 -0
  57. data/lib/lithic/models/book_transfer_create_params.rb +1 -0
  58. data/lib/lithic/models/book_transfer_list_params.rb +1 -0
  59. data/lib/lithic/models/book_transfer_response.rb +9 -0
  60. data/lib/lithic/models/book_transfer_retrieve_params.rb +1 -0
  61. data/lib/lithic/models/book_transfer_reverse_params.rb +1 -0
  62. data/lib/lithic/models/card.rb +12 -0
  63. data/lib/lithic/models/card_convert_physical_params.rb +2 -1
  64. data/lib/lithic/models/card_create_params.rb +2 -1
  65. data/lib/lithic/models/card_embed_params.rb +1 -0
  66. data/lib/lithic/models/card_list_params.rb +1 -0
  67. data/lib/lithic/models/card_program.rb +1 -0
  68. data/lib/lithic/models/card_program_list_params.rb +1 -0
  69. data/lib/lithic/models/card_program_retrieve_params.rb +1 -0
  70. data/lib/lithic/models/card_provision_params.rb +1 -0
  71. data/lib/lithic/models/card_provision_response.rb +1 -0
  72. data/lib/lithic/models/card_reissue_params.rb +2 -1
  73. data/lib/lithic/models/card_renew_params.rb +2 -1
  74. data/lib/lithic/models/card_retrieve_params.rb +1 -0
  75. data/lib/lithic/models/card_retrieve_spend_limits_params.rb +1 -0
  76. data/lib/lithic/models/card_search_by_pan_params.rb +1 -0
  77. data/lib/lithic/models/card_spend_limits.rb +4 -0
  78. data/lib/lithic/models/card_update_params.rb +1 -0
  79. data/lib/lithic/models/cards/aggregate_balance_list_params.rb +1 -0
  80. data/lib/lithic/models/cards/aggregate_balance_list_response.rb +1 -0
  81. data/lib/lithic/models/cards/balance_list_params.rb +1 -0
  82. data/lib/lithic/models/cards/balance_list_response.rb +3 -0
  83. data/lib/lithic/models/cards/financial_transaction_list_params.rb +1 -0
  84. data/lib/lithic/models/cards/financial_transaction_retrieve_params.rb +1 -0
  85. data/lib/lithic/models/client_api_status_params.rb +1 -0
  86. data/lib/lithic/models/credit_products/extended_credit.rb +1 -0
  87. data/lib/lithic/models/credit_products/extended_credit_retrieve_params.rb +1 -0
  88. data/lib/lithic/models/credit_products/prime_rate_create_params.rb +1 -0
  89. data/lib/lithic/models/credit_products/prime_rate_retrieve_params.rb +1 -0
  90. data/lib/lithic/models/credit_products/prime_rate_retrieve_response.rb +1 -0
  91. data/lib/lithic/models/digital_card_art.rb +3 -0
  92. data/lib/lithic/models/digital_card_art_list_params.rb +1 -0
  93. data/lib/lithic/models/digital_card_art_retrieve_params.rb +1 -0
  94. data/lib/lithic/models/dispute.rb +7 -0
  95. data/lib/lithic/models/dispute_create_params.rb +1 -0
  96. data/lib/lithic/models/dispute_delete_evidence_params.rb +1 -0
  97. data/lib/lithic/models/dispute_delete_params.rb +1 -0
  98. data/lib/lithic/models/dispute_evidence.rb +3 -0
  99. data/lib/lithic/models/dispute_initiate_evidence_upload_params.rb +1 -0
  100. data/lib/lithic/models/dispute_list_evidences_params.rb +1 -0
  101. data/lib/lithic/models/dispute_list_params.rb +1 -0
  102. data/lib/lithic/models/dispute_retrieve_evidence_params.rb +1 -0
  103. data/lib/lithic/models/dispute_retrieve_params.rb +1 -0
  104. data/lib/lithic/models/dispute_update_params.rb +1 -0
  105. data/lib/lithic/models/document.rb +6 -0
  106. data/lib/lithic/models/event.rb +3 -0
  107. data/lib/lithic/models/event_list_attempts_params.rb +1 -0
  108. data/lib/lithic/models/event_list_params.rb +1 -0
  109. data/lib/lithic/models/event_retrieve_params.rb +1 -0
  110. data/lib/lithic/models/events/subscription_create_params.rb +1 -0
  111. data/lib/lithic/models/events/subscription_delete_params.rb +1 -0
  112. data/lib/lithic/models/events/subscription_list_attempts_params.rb +1 -0
  113. data/lib/lithic/models/events/subscription_list_params.rb +1 -0
  114. data/lib/lithic/models/events/subscription_recover_params.rb +1 -0
  115. data/lib/lithic/models/events/subscription_replay_missing_params.rb +1 -0
  116. data/lib/lithic/models/events/subscription_retrieve_params.rb +1 -0
  117. data/lib/lithic/models/events/subscription_retrieve_secret_params.rb +1 -0
  118. data/lib/lithic/models/events/subscription_retrieve_secret_response.rb +1 -0
  119. data/lib/lithic/models/events/subscription_rotate_secret_params.rb +1 -0
  120. data/lib/lithic/models/events/subscription_send_simulated_example_params.rb +1 -0
  121. data/lib/lithic/models/events/subscription_update_params.rb +1 -0
  122. data/lib/lithic/models/external_bank_account_create_params.rb +1 -0
  123. data/lib/lithic/models/external_bank_account_create_response.rb +11 -0
  124. data/lib/lithic/models/external_bank_account_list_params.rb +1 -0
  125. data/lib/lithic/models/external_bank_account_list_response.rb +11 -0
  126. data/lib/lithic/models/external_bank_account_retrieve_params.rb +1 -0
  127. data/lib/lithic/models/external_bank_account_retrieve_response.rb +11 -0
  128. data/lib/lithic/models/external_bank_account_retry_micro_deposits_params.rb +1 -0
  129. data/lib/lithic/models/external_bank_account_retry_micro_deposits_response.rb +11 -0
  130. data/lib/lithic/models/external_bank_account_retry_prenote_params.rb +1 -0
  131. data/lib/lithic/models/external_bank_account_retry_prenote_response.rb +7 -0
  132. data/lib/lithic/models/external_bank_account_update_params.rb +1 -0
  133. data/lib/lithic/models/external_bank_account_update_response.rb +11 -0
  134. data/lib/lithic/models/external_bank_accounts/micro_deposit_create_params.rb +1 -0
  135. data/lib/lithic/models/external_bank_accounts/micro_deposit_create_response.rb +11 -0
  136. data/lib/lithic/models/external_payment.rb +7 -0
  137. data/lib/lithic/models/external_payment_cancel_params.rb +1 -0
  138. data/lib/lithic/models/external_payment_create_params.rb +1 -0
  139. data/lib/lithic/models/external_payment_list_params.rb +1 -0
  140. data/lib/lithic/models/external_payment_release_params.rb +1 -0
  141. data/lib/lithic/models/external_payment_retrieve_params.rb +1 -0
  142. data/lib/lithic/models/external_payment_reverse_params.rb +1 -0
  143. data/lib/lithic/models/external_payment_settle_params.rb +1 -0
  144. data/lib/lithic/models/financial_account.rb +11 -0
  145. data/lib/lithic/models/financial_account_create_params.rb +1 -0
  146. data/lib/lithic/models/financial_account_list_params.rb +1 -0
  147. data/lib/lithic/models/financial_account_retrieve_params.rb +1 -0
  148. data/lib/lithic/models/financial_account_update_params.rb +1 -0
  149. data/lib/lithic/models/financial_account_update_status_params.rb +1 -0
  150. data/lib/lithic/models/financial_accounts/balance_list_params.rb +1 -0
  151. data/lib/lithic/models/financial_accounts/balance_list_response.rb +3 -0
  152. data/lib/lithic/models/financial_accounts/credit_configuration_retrieve_params.rb +1 -0
  153. data/lib/lithic/models/financial_accounts/credit_configuration_update_params.rb +1 -0
  154. data/lib/lithic/models/financial_accounts/financial_account_credit_config.rb +5 -0
  155. data/lib/lithic/models/financial_accounts/financial_transaction_list_params.rb +1 -0
  156. data/lib/lithic/models/financial_accounts/financial_transaction_retrieve_params.rb +1 -0
  157. data/lib/lithic/models/financial_accounts/loan_tape.rb +24 -0
  158. data/lib/lithic/models/financial_accounts/loan_tape_list_params.rb +1 -0
  159. data/lib/lithic/models/financial_accounts/loan_tape_retrieve_params.rb +1 -0
  160. data/lib/lithic/models/financial_accounts/statement.rb +17 -0
  161. data/lib/lithic/models/financial_accounts/statement_list_params.rb +1 -0
  162. data/lib/lithic/models/financial_accounts/statement_retrieve_params.rb +1 -0
  163. data/lib/lithic/models/financial_accounts/statements/line_item_list_params.rb +1 -0
  164. data/lib/lithic/models/financial_accounts/statements/statement_line_items.rb +2 -0
  165. data/lib/lithic/models/financial_transaction.rb +9 -0
  166. data/lib/lithic/models/kyb.rb +4 -0
  167. data/lib/lithic/models/kyb_business_entity.rb +1 -0
  168. data/lib/lithic/models/kyc.rb +3 -0
  169. data/lib/lithic/models/kyc_exempt.rb +4 -0
  170. data/lib/lithic/models/management_operation_create_params.rb +1 -0
  171. data/lib/lithic/models/management_operation_list_params.rb +1 -0
  172. data/lib/lithic/models/management_operation_retrieve_params.rb +1 -0
  173. data/lib/lithic/models/management_operation_reverse_params.rb +1 -0
  174. data/lib/lithic/models/management_operation_transaction.rb +7 -0
  175. data/lib/lithic/models/message_attempt.rb +3 -0
  176. data/lib/lithic/models/payment.rb +16 -0
  177. data/lib/lithic/models/payment_create_params.rb +2 -0
  178. data/lib/lithic/models/payment_create_response.rb +1 -0
  179. data/lib/lithic/models/payment_list_params.rb +1 -0
  180. data/lib/lithic/models/payment_retrieve_params.rb +1 -0
  181. data/lib/lithic/models/payment_retry_params.rb +1 -0
  182. data/lib/lithic/models/payment_retry_response.rb +1 -0
  183. data/lib/lithic/models/payment_simulate_action_params.rb +1 -0
  184. data/lib/lithic/models/payment_simulate_action_response.rb +3 -0
  185. data/lib/lithic/models/payment_simulate_receipt_params.rb +1 -0
  186. data/lib/lithic/models/payment_simulate_receipt_response.rb +3 -0
  187. data/lib/lithic/models/payment_simulate_release_params.rb +1 -0
  188. data/lib/lithic/models/payment_simulate_release_response.rb +3 -0
  189. data/lib/lithic/models/payment_simulate_return_params.rb +1 -0
  190. data/lib/lithic/models/payment_simulate_return_response.rb +3 -0
  191. data/lib/lithic/models/reports/settlement/network_total_list_params.rb +1 -0
  192. data/lib/lithic/models/reports/settlement/network_total_list_response.rb +4 -0
  193. data/lib/lithic/models/reports/settlement/network_total_retrieve_params.rb +1 -0
  194. data/lib/lithic/models/reports/settlement/network_total_retrieve_response.rb +4 -0
  195. data/lib/lithic/models/reports/settlement_list_details_params.rb +1 -0
  196. data/lib/lithic/models/reports/settlement_summary_params.rb +1 -0
  197. data/lib/lithic/models/responder_endpoint_check_status_params.rb +1 -0
  198. data/lib/lithic/models/responder_endpoint_create_params.rb +1 -0
  199. data/lib/lithic/models/responder_endpoint_create_response.rb +1 -0
  200. data/lib/lithic/models/responder_endpoint_delete_params.rb +1 -0
  201. data/lib/lithic/models/responder_endpoint_status.rb +1 -0
  202. data/lib/lithic/models/settlement_detail.rb +5 -0
  203. data/lib/lithic/models/settlement_summary_details.rb +2 -0
  204. data/lib/lithic/models/three_ds/authentication_retrieve_params.rb +1 -0
  205. data/lib/lithic/models/three_ds/authentication_retrieve_response.rb +45 -0
  206. data/lib/lithic/models/three_ds/authentication_simulate_otp_entry_params.rb +1 -0
  207. data/lib/lithic/models/three_ds/authentication_simulate_params.rb +1 -0
  208. data/lib/lithic/models/three_ds/authentication_simulate_response.rb +1 -0
  209. data/lib/lithic/models/three_ds/decisioning_challenge_response_params.rb +1 -0
  210. data/lib/lithic/models/three_ds/decisioning_retrieve_secret_params.rb +1 -0
  211. data/lib/lithic/models/three_ds/decisioning_retrieve_secret_response.rb +1 -0
  212. data/lib/lithic/models/three_ds/decisioning_rotate_secret_params.rb +1 -0
  213. data/lib/lithic/models/tokenization.rb +11 -0
  214. data/lib/lithic/models/tokenization_activate_params.rb +1 -0
  215. data/lib/lithic/models/tokenization_deactivate_params.rb +1 -0
  216. data/lib/lithic/models/tokenization_decisioning_retrieve_secret_params.rb +1 -0
  217. data/lib/lithic/models/tokenization_decisioning_rotate_secret_params.rb +1 -0
  218. data/lib/lithic/models/tokenization_decisioning_rotate_secret_response.rb +1 -0
  219. data/lib/lithic/models/tokenization_list_params.rb +1 -0
  220. data/lib/lithic/models/tokenization_pause_params.rb +1 -0
  221. data/lib/lithic/models/tokenization_resend_activation_code_params.rb +1 -0
  222. data/lib/lithic/models/tokenization_retrieve_params.rb +1 -0
  223. data/lib/lithic/models/tokenization_retrieve_response.rb +1 -0
  224. data/lib/lithic/models/tokenization_secret.rb +1 -0
  225. data/lib/lithic/models/tokenization_simulate_params.rb +1 -0
  226. data/lib/lithic/models/tokenization_simulate_response.rb +1 -0
  227. data/lib/lithic/models/tokenization_unpause_params.rb +1 -0
  228. data/lib/lithic/models/tokenization_update_digital_card_art_params.rb +1 -0
  229. data/lib/lithic/models/tokenization_update_digital_card_art_response.rb +1 -0
  230. data/lib/lithic/models/transaction.rb +60 -1
  231. data/lib/lithic/models/transaction_expire_authorization_params.rb +1 -0
  232. data/lib/lithic/models/transaction_list_params.rb +1 -0
  233. data/lib/lithic/models/transaction_retrieve_params.rb +1 -0
  234. data/lib/lithic/models/transaction_simulate_authorization_advice_params.rb +1 -0
  235. data/lib/lithic/models/transaction_simulate_authorization_advice_response.rb +1 -0
  236. data/lib/lithic/models/transaction_simulate_authorization_params.rb +1 -0
  237. data/lib/lithic/models/transaction_simulate_authorization_response.rb +1 -0
  238. data/lib/lithic/models/transaction_simulate_clearing_params.rb +1 -0
  239. data/lib/lithic/models/transaction_simulate_clearing_response.rb +1 -0
  240. data/lib/lithic/models/transaction_simulate_credit_authorization_params.rb +1 -0
  241. data/lib/lithic/models/transaction_simulate_credit_authorization_response.rb +1 -0
  242. data/lib/lithic/models/transaction_simulate_return_params.rb +1 -0
  243. data/lib/lithic/models/transaction_simulate_return_response.rb +1 -0
  244. data/lib/lithic/models/transaction_simulate_return_reversal_params.rb +1 -0
  245. data/lib/lithic/models/transaction_simulate_return_reversal_response.rb +1 -0
  246. data/lib/lithic/models/transaction_simulate_void_params.rb +1 -0
  247. data/lib/lithic/models/transaction_simulate_void_response.rb +1 -0
  248. data/lib/lithic/models/transactions/enhanced_commercial_data_retrieve_params.rb +1 -0
  249. data/lib/lithic/models/transactions/enhanced_commercial_data_retrieve_response.rb +1 -0
  250. data/lib/lithic/models/transactions/events/enhanced_commercial_data_retrieve_params.rb +1 -0
  251. data/lib/lithic/models/transactions/events/enhanced_data.rb +13 -0
  252. data/lib/lithic/models/transfer.rb +10 -0
  253. data/lib/lithic/models/transfer_create_params.rb +1 -0
  254. data/lib/lithic/resources/account_holders.rb +106 -218
  255. data/lib/lithic/resources/accounts.rb +34 -52
  256. data/lib/lithic/resources/aggregate_balances.rb +7 -4
  257. data/lib/lithic/resources/auth_rules/v2/backtests.rb +17 -16
  258. data/lib/lithic/resources/auth_rules/v2.rb +75 -91
  259. data/lib/lithic/resources/auth_rules.rb +2 -0
  260. data/lib/lithic/resources/auth_stream_enrollment.rb +10 -4
  261. data/lib/lithic/resources/balances.rb +10 -11
  262. data/lib/lithic/resources/book_transfers.rb +44 -65
  263. data/lib/lithic/resources/card_programs.rb +15 -15
  264. data/lib/lithic/resources/cards/aggregate_balances.rb +8 -6
  265. data/lib/lithic/resources/cards/balances.rb +10 -11
  266. data/lib/lithic/resources/cards/financial_transactions.rb +22 -30
  267. data/lib/lithic/resources/cards.rb +115 -305
  268. data/lib/lithic/resources/credit_products/extended_credit.rb +8 -5
  269. data/lib/lithic/resources/credit_products/prime_rates.rb +18 -18
  270. data/lib/lithic/resources/credit_products.rb +2 -0
  271. data/lib/lithic/resources/digital_card_art.rb +15 -18
  272. data/lib/lithic/resources/disputes.rb +76 -95
  273. data/lib/lithic/resources/events/subscriptions.rb +86 -105
  274. data/lib/lithic/resources/events.rb +31 -46
  275. data/lib/lithic/resources/external_bank_accounts/micro_deposits.rb +9 -7
  276. data/lib/lithic/resources/external_bank_accounts.rb +73 -108
  277. data/lib/lithic/resources/external_payments.rb +69 -91
  278. data/lib/lithic/resources/financial_accounts/balances.rb +10 -11
  279. data/lib/lithic/resources/financial_accounts/credit_configuration.rb +18 -18
  280. data/lib/lithic/resources/financial_accounts/financial_transactions.rb +22 -30
  281. data/lib/lithic/resources/financial_accounts/loan_tapes.rb +20 -26
  282. data/lib/lithic/resources/financial_accounts/statements/line_items.rb +12 -16
  283. data/lib/lithic/resources/financial_accounts/statements.rb +21 -28
  284. data/lib/lithic/resources/financial_accounts.rb +39 -41
  285. data/lib/lithic/resources/management_operations.rb +44 -62
  286. data/lib/lithic/resources/payments.rb +73 -94
  287. data/lib/lithic/resources/reports/settlement/network_totals.rb +24 -35
  288. data/lib/lithic/resources/reports/settlement.rb +17 -18
  289. data/lib/lithic/resources/reports.rb +2 -0
  290. data/lib/lithic/resources/responder_endpoints.rb +18 -14
  291. data/lib/lithic/resources/three_ds/authentication.rb +22 -23
  292. data/lib/lithic/resources/three_ds/decisioning.rb +16 -13
  293. data/lib/lithic/resources/three_ds.rb +2 -0
  294. data/lib/lithic/resources/tokenization_decisioning.rb +10 -4
  295. data/lib/lithic/resources/tokenizations.rb +70 -86
  296. data/lib/lithic/resources/transactions/enhanced_commercial_data.rb +8 -5
  297. data/lib/lithic/resources/transactions/events/enhanced_commercial_data.rb +8 -5
  298. data/lib/lithic/resources/transactions/events.rb +2 -0
  299. data/lib/lithic/resources/transactions.rb +81 -144
  300. data/lib/lithic/resources/transfers.rb +11 -16
  301. data/lib/lithic/transport/base_client.rb +9 -9
  302. data/lib/lithic/transport/pooled_net_requester.rb +1 -1
  303. data/lib/lithic/type/base_model.rb +10 -0
  304. data/lib/lithic/type/base_page.rb +1 -1
  305. data/lib/lithic/util.rb +8 -12
  306. data/lib/lithic/version.rb +1 -1
  307. data/rbi/lib/lithic/client.rbi +3 -3
  308. data/rbi/lib/lithic/errors.rbi +145 -115
  309. data/rbi/lib/lithic/models/account.rbi +1 -1
  310. data/rbi/lib/lithic/models/account_financial_account_type.rbi +2 -1
  311. data/rbi/lib/lithic/models/account_holder.rbi +8 -6
  312. data/rbi/lib/lithic/models/account_holder_create_params.rbi +2 -2
  313. data/rbi/lib/lithic/models/account_holder_create_response.rbi +2 -2
  314. data/rbi/lib/lithic/models/account_holder_simulate_enrollment_document_review_params.rbi +8 -1
  315. data/rbi/lib/lithic/models/account_holder_simulate_enrollment_review_params.rbi +8 -2
  316. data/rbi/lib/lithic/models/account_holder_simulate_enrollment_review_response.rbi +24 -4
  317. data/rbi/lib/lithic/models/account_holder_update_response.rbi +18 -2
  318. data/rbi/lib/lithic/models/account_holder_upload_document_params.rbi +1 -1
  319. data/rbi/lib/lithic/models/account_update_params.rbi +2 -1
  320. data/rbi/lib/lithic/models/aggregate_balance.rbi +1 -1
  321. data/rbi/lib/lithic/models/aggregate_balance_list_params.rbi +1 -1
  322. data/rbi/lib/lithic/models/auth_rules/auth_rule.rbi +2 -1
  323. data/rbi/lib/lithic/models/auth_rules/auth_rule_condition.rbi +1 -1
  324. data/rbi/lib/lithic/models/auth_rules/conditional_attribute.rbi +2 -1
  325. data/rbi/lib/lithic/models/auth_rules/v2_apply_response.rbi +3 -2
  326. data/rbi/lib/lithic/models/auth_rules/v2_create_params.rbi +2 -1
  327. data/rbi/lib/lithic/models/auth_rules/v2_create_response.rbi +2 -2
  328. data/rbi/lib/lithic/models/auth_rules/v2_draft_response.rbi +3 -2
  329. data/rbi/lib/lithic/models/auth_rules/v2_list_response.rbi +4 -2
  330. data/rbi/lib/lithic/models/auth_rules/v2_promote_response.rbi +2 -2
  331. data/rbi/lib/lithic/models/auth_rules/v2_retrieve_response.rbi +2 -2
  332. data/rbi/lib/lithic/models/auth_rules/v2_update_params.rbi +2 -1
  333. data/rbi/lib/lithic/models/auth_rules/v2_update_response.rbi +2 -2
  334. data/rbi/lib/lithic/models/auth_rules/velocity_limit_params.rbi +1 -1
  335. data/rbi/lib/lithic/models/auth_rules/velocity_limit_params_period_window.rbi +1 -1
  336. data/rbi/lib/lithic/models/balance.rbi +2 -1
  337. data/rbi/lib/lithic/models/balance_list_params.rbi +1 -1
  338. data/rbi/lib/lithic/models/book_transfer_create_params.rbi +3 -2
  339. data/rbi/lib/lithic/models/book_transfer_list_params.rbi +6 -3
  340. data/rbi/lib/lithic/models/book_transfer_response.rbi +8 -5
  341. data/rbi/lib/lithic/models/card.rbi +5 -5
  342. data/rbi/lib/lithic/models/card_convert_physical_params.rbi +3 -2
  343. data/rbi/lib/lithic/models/card_create_params.rbi +5 -4
  344. data/rbi/lib/lithic/models/card_list_params.rbi +1 -1
  345. data/rbi/lib/lithic/models/card_provision_params.rbi +1 -1
  346. data/rbi/lib/lithic/models/card_reissue_params.rbi +2 -2
  347. data/rbi/lib/lithic/models/card_renew_params.rbi +3 -2
  348. data/rbi/lib/lithic/models/card_update_params.rbi +3 -2
  349. data/rbi/lib/lithic/models/cards/balance_list_response.rbi +2 -1
  350. data/rbi/lib/lithic/models/cards/financial_transaction_list_params.rbi +3 -3
  351. data/rbi/lib/lithic/models/digital_card_art.rbi +2 -1
  352. data/rbi/lib/lithic/models/dispute.rbi +4 -3
  353. data/rbi/lib/lithic/models/dispute_create_params.rbi +2 -1
  354. data/rbi/lib/lithic/models/dispute_evidence.rbi +2 -1
  355. data/rbi/lib/lithic/models/dispute_list_params.rbi +2 -1
  356. data/rbi/lib/lithic/models/dispute_update_params.rbi +2 -1
  357. data/rbi/lib/lithic/models/document.rbi +4 -4
  358. data/rbi/lib/lithic/models/event.rbi +1 -1
  359. data/rbi/lib/lithic/models/event_list_attempts_params.rbi +2 -1
  360. data/rbi/lib/lithic/models/event_list_params.rbi +2 -1
  361. data/rbi/lib/lithic/models/event_subscription.rbi +2 -1
  362. data/rbi/lib/lithic/models/events/subscription_create_params.rbi +1 -1
  363. data/rbi/lib/lithic/models/events/subscription_list_attempts_params.rbi +1 -1
  364. data/rbi/lib/lithic/models/events/subscription_send_simulated_example_params.rbi +7 -1
  365. data/rbi/lib/lithic/models/events/subscription_update_params.rbi +1 -1
  366. data/rbi/lib/lithic/models/external_bank_account_create_params.rbi +2 -2
  367. data/rbi/lib/lithic/models/external_bank_account_create_response.rbi +5 -5
  368. data/rbi/lib/lithic/models/external_bank_account_list_params.rbi +3 -3
  369. data/rbi/lib/lithic/models/external_bank_account_list_response.rbi +5 -5
  370. data/rbi/lib/lithic/models/external_bank_account_retrieve_response.rbi +17 -5
  371. data/rbi/lib/lithic/models/external_bank_account_retry_micro_deposits_response.rbi +11 -3
  372. data/rbi/lib/lithic/models/external_bank_account_retry_prenote_response.rbi +9 -3
  373. data/rbi/lib/lithic/models/external_bank_account_update_params.rbi +1 -1
  374. data/rbi/lib/lithic/models/external_bank_account_update_response.rbi +5 -5
  375. data/rbi/lib/lithic/models/external_bank_accounts/micro_deposit_create_response.rbi +23 -3
  376. data/rbi/lib/lithic/models/external_payment.rbi +11 -7
  377. data/rbi/lib/lithic/models/external_payment_create_params.rbi +3 -3
  378. data/rbi/lib/lithic/models/external_payment_list_params.rbi +3 -3
  379. data/rbi/lib/lithic/models/external_payment_settle_params.rbi +1 -1
  380. data/rbi/lib/lithic/models/financial_account.rbi +17 -5
  381. data/rbi/lib/lithic/models/financial_account_create_params.rbi +1 -1
  382. data/rbi/lib/lithic/models/financial_account_list_params.rbi +2 -1
  383. data/rbi/lib/lithic/models/financial_account_update_status_params.rbi +8 -2
  384. data/rbi/lib/lithic/models/financial_accounts/balance_list_response.rbi +1 -1
  385. data/rbi/lib/lithic/models/financial_accounts/financial_account_credit_config.rbi +2 -0
  386. data/rbi/lib/lithic/models/financial_accounts/financial_transaction_list_params.rbi +21 -3
  387. data/rbi/lib/lithic/models/financial_accounts/loan_tape.rbi +10 -1
  388. data/rbi/lib/lithic/models/financial_accounts/statement.rbi +11 -2
  389. data/rbi/lib/lithic/models/financial_accounts/statements/statement_line_items.rbi +2 -0
  390. data/rbi/lib/lithic/models/financial_transaction.rbi +8 -5
  391. data/rbi/lib/lithic/models/instance_financial_account_type.rbi +2 -1
  392. data/rbi/lib/lithic/models/kyb.rbi +1 -1
  393. data/rbi/lib/lithic/models/kyc.rbi +1 -1
  394. data/rbi/lib/lithic/models/kyc_exempt.rbi +3 -2
  395. data/rbi/lib/lithic/models/management_operation_create_params.rbi +3 -3
  396. data/rbi/lib/lithic/models/management_operation_list_params.rbi +2 -2
  397. data/rbi/lib/lithic/models/management_operation_transaction.rbi +7 -7
  398. data/rbi/lib/lithic/models/message_attempt.rbi +1 -1
  399. data/rbi/lib/lithic/models/owner_type.rbi +1 -1
  400. data/rbi/lib/lithic/models/payment.rbi +11 -10
  401. data/rbi/lib/lithic/models/payment_create_params.rbi +5 -3
  402. data/rbi/lib/lithic/models/payment_list_params.rbi +6 -3
  403. data/rbi/lib/lithic/models/payment_simulate_action_params.rbi +2 -2
  404. data/rbi/lib/lithic/models/payment_simulate_action_response.rbi +1 -1
  405. data/rbi/lib/lithic/models/payment_simulate_receipt_params.rbi +1 -1
  406. data/rbi/lib/lithic/models/payment_simulate_receipt_response.rbi +1 -1
  407. data/rbi/lib/lithic/models/payment_simulate_release_response.rbi +1 -1
  408. data/rbi/lib/lithic/models/payment_simulate_return_response.rbi +1 -1
  409. data/rbi/lib/lithic/models/reports/settlement/network_total_list_params.rbi +1 -1
  410. data/rbi/lib/lithic/models/reports/settlement/network_total_list_response.rbi +7 -1
  411. data/rbi/lib/lithic/models/reports/settlement/network_total_retrieve_response.rbi +7 -1
  412. data/rbi/lib/lithic/models/responder_endpoint_check_status_params.rbi +1 -1
  413. data/rbi/lib/lithic/models/responder_endpoint_create_params.rbi +1 -1
  414. data/rbi/lib/lithic/models/responder_endpoint_delete_params.rbi +1 -1
  415. data/rbi/lib/lithic/models/settlement_detail.rbi +3 -2
  416. data/rbi/lib/lithic/models/settlement_summary_details.rbi +1 -1
  417. data/rbi/lib/lithic/models/spend_limit_duration.rbi +1 -1
  418. data/rbi/lib/lithic/models/three_ds/authentication_retrieve_response.rbi +53 -8
  419. data/rbi/lib/lithic/models/three_ds/authentication_simulate_params.rbi +7 -1
  420. data/rbi/lib/lithic/models/three_ds/challenge_result.rbi +1 -1
  421. data/rbi/lib/lithic/models/tokenization.rbi +8 -5
  422. data/rbi/lib/lithic/models/tokenization_list_params.rbi +1 -1
  423. data/rbi/lib/lithic/models/tokenization_resend_activation_code_params.rbi +7 -1
  424. data/rbi/lib/lithic/models/tokenization_simulate_params.rbi +2 -2
  425. data/rbi/lib/lithic/models/transaction.rbi +49 -22
  426. data/rbi/lib/lithic/models/transaction_list_params.rbi +4 -2
  427. data/rbi/lib/lithic/models/transaction_simulate_authorization_params.rbi +1 -1
  428. data/rbi/lib/lithic/models/transaction_simulate_void_params.rbi +1 -1
  429. data/rbi/lib/lithic/models/transactions/events/enhanced_data.rbi +16 -3
  430. data/rbi/lib/lithic/models/transfer.rbi +5 -5
  431. data/rbi/lib/lithic/models/verification_method.rbi +1 -1
  432. data/rbi/lib/lithic/resources/account_holders.rbi +1 -0
  433. data/rbi/lib/lithic/resources/accounts.rbi +1 -0
  434. data/rbi/lib/lithic/resources/aggregate_balances.rbi +1 -0
  435. data/rbi/lib/lithic/resources/auth_rules/v2/backtests.rbi +1 -0
  436. data/rbi/lib/lithic/resources/auth_rules/v2.rbi +1 -0
  437. data/rbi/lib/lithic/resources/auth_rules.rbi +1 -0
  438. data/rbi/lib/lithic/resources/auth_stream_enrollment.rbi +1 -0
  439. data/rbi/lib/lithic/resources/balances.rbi +1 -0
  440. data/rbi/lib/lithic/resources/book_transfers.rbi +1 -0
  441. data/rbi/lib/lithic/resources/card_programs.rbi +1 -0
  442. data/rbi/lib/lithic/resources/cards/aggregate_balances.rbi +1 -0
  443. data/rbi/lib/lithic/resources/cards/balances.rbi +1 -0
  444. data/rbi/lib/lithic/resources/cards/financial_transactions.rbi +1 -0
  445. data/rbi/lib/lithic/resources/cards.rbi +1 -0
  446. data/rbi/lib/lithic/resources/credit_products/extended_credit.rbi +1 -0
  447. data/rbi/lib/lithic/resources/credit_products/prime_rates.rbi +1 -0
  448. data/rbi/lib/lithic/resources/credit_products.rbi +1 -0
  449. data/rbi/lib/lithic/resources/digital_card_art.rbi +1 -0
  450. data/rbi/lib/lithic/resources/disputes.rbi +1 -0
  451. data/rbi/lib/lithic/resources/events/subscriptions.rbi +1 -0
  452. data/rbi/lib/lithic/resources/events.rbi +1 -0
  453. data/rbi/lib/lithic/resources/external_bank_accounts/micro_deposits.rbi +1 -0
  454. data/rbi/lib/lithic/resources/external_bank_accounts.rbi +1 -0
  455. data/rbi/lib/lithic/resources/external_payments.rbi +1 -0
  456. data/rbi/lib/lithic/resources/financial_accounts/balances.rbi +1 -0
  457. data/rbi/lib/lithic/resources/financial_accounts/credit_configuration.rbi +1 -0
  458. data/rbi/lib/lithic/resources/financial_accounts/financial_transactions.rbi +1 -0
  459. data/rbi/lib/lithic/resources/financial_accounts/loan_tapes.rbi +1 -0
  460. data/rbi/lib/lithic/resources/financial_accounts/statements/line_items.rbi +1 -0
  461. data/rbi/lib/lithic/resources/financial_accounts/statements.rbi +1 -0
  462. data/rbi/lib/lithic/resources/financial_accounts.rbi +1 -0
  463. data/rbi/lib/lithic/resources/management_operations.rbi +1 -0
  464. data/rbi/lib/lithic/resources/payments.rbi +1 -0
  465. data/rbi/lib/lithic/resources/reports/settlement/network_totals.rbi +1 -0
  466. data/rbi/lib/lithic/resources/reports/settlement.rbi +1 -0
  467. data/rbi/lib/lithic/resources/reports.rbi +1 -0
  468. data/rbi/lib/lithic/resources/responder_endpoints.rbi +1 -0
  469. data/rbi/lib/lithic/resources/three_ds/authentication.rbi +1 -0
  470. data/rbi/lib/lithic/resources/three_ds/decisioning.rbi +1 -0
  471. data/rbi/lib/lithic/resources/three_ds.rbi +1 -0
  472. data/rbi/lib/lithic/resources/tokenization_decisioning.rbi +1 -0
  473. data/rbi/lib/lithic/resources/tokenizations.rbi +1 -0
  474. data/rbi/lib/lithic/resources/transactions/enhanced_commercial_data.rbi +1 -0
  475. data/rbi/lib/lithic/resources/transactions/events/enhanced_commercial_data.rbi +1 -0
  476. data/rbi/lib/lithic/resources/transactions/events.rbi +1 -0
  477. data/rbi/lib/lithic/resources/transactions.rbi +1 -0
  478. data/rbi/lib/lithic/resources/transfers.rbi +1 -0
  479. data/rbi/lib/lithic/transport/base_client.rbi +3 -2
  480. data/rbi/lib/lithic/type/base_model.rbi +8 -0
  481. data/rbi/lib/lithic/util.rbi +2 -2
  482. data/rbi/lib/lithic/version.rbi +1 -1
  483. data/sig/lithic/client.rbs +1 -1
  484. data/sig/lithic/errors.rbs +112 -82
  485. data/sig/lithic/models/card_convert_physical_params.rbs +1 -1
  486. data/sig/lithic/models/card_create_params.rbs +1 -1
  487. data/sig/lithic/models/card_reissue_params.rbs +1 -1
  488. data/sig/lithic/models/card_renew_params.rbs +1 -1
  489. data/sig/lithic/models/transaction.rbs +1 -1
  490. data/sig/lithic/transport/base_client.rbs +1 -1
  491. data/sig/lithic/type/base_model.rbs +4 -0
  492. data/sig/lithic/util.rbs +2 -2
  493. data/sig/lithic/version.rbs +1 -1
  494. metadata +2 -2
@@ -6,20 +6,17 @@ module Lithic
6
6
  class Subscriptions
7
7
  # Create a new event subscription.
8
8
  #
9
- # @param params [Lithic::Models::Events::SubscriptionCreateParams, Hash{Symbol=>Object}] .
9
+ # @overload create(url:, description: nil, disabled: nil, event_types: nil, request_options: {})
10
10
  #
11
- # @option params [String] :url URL to which event webhooks will be sent. URL must be a valid HTTPS address.
12
- #
13
- # @option params [String] :description Event subscription description.
14
- #
15
- # @option params [Boolean] :disabled Whether the event subscription is active (false) or inactive (true).
16
- #
17
- # @option params [Array<Symbol, Lithic::Models::Events::SubscriptionCreateParams::EventType>] :event_types Indicates types of events that will be sent to this subscription. If left blank,
18
- # all types will be sent.
19
- #
20
- # @option params [Lithic::RequestOptions, Hash{Symbol=>Object}, nil] :request_options
11
+ # @param url [String]
12
+ # @param description [String]
13
+ # @param disabled [Boolean]
14
+ # @param event_types [Array<Symbol, Lithic::Models::Events::SubscriptionCreateParams::EventType>]
15
+ # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
21
16
  #
22
17
  # @return [Lithic::Models::EventSubscription]
18
+ #
19
+ # @see Lithic::Models::Events::SubscriptionCreateParams
23
20
  def create(params)
24
21
  parsed, options = Lithic::Models::Events::SubscriptionCreateParams.dump_request(params)
25
22
  @client.request(
@@ -33,17 +30,18 @@ module Lithic
33
30
 
34
31
  # Get an event subscription.
35
32
  #
36
- # @param event_subscription_token [String]
37
- #
38
- # @param params [Lithic::Models::Events::SubscriptionRetrieveParams, Hash{Symbol=>Object}] .
33
+ # @overload retrieve(event_subscription_token, request_options: {})
39
34
  #
40
- # @option params [Lithic::RequestOptions, Hash{Symbol=>Object}, nil] :request_options
35
+ # @param event_subscription_token [String]
36
+ # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
41
37
  #
42
38
  # @return [Lithic::Models::EventSubscription]
39
+ #
40
+ # @see Lithic::Models::Events::SubscriptionRetrieveParams
43
41
  def retrieve(event_subscription_token, params = {})
44
42
  @client.request(
45
43
  method: :get,
46
- path: ["v1/event_subscriptions/%0s", event_subscription_token],
44
+ path: ["v1/event_subscriptions/%1$s", event_subscription_token],
47
45
  model: Lithic::Models::EventSubscription,
48
46
  options: params[:request_options]
49
47
  )
@@ -51,27 +49,23 @@ module Lithic
51
49
 
52
50
  # Update an event subscription.
53
51
  #
54
- # @param event_subscription_token [String]
55
- #
56
- # @param params [Lithic::Models::Events::SubscriptionUpdateParams, Hash{Symbol=>Object}] .
57
- #
58
- # @option params [String] :url URL to which event webhooks will be sent. URL must be a valid HTTPS address.
52
+ # @overload update(event_subscription_token, url:, description: nil, disabled: nil, event_types: nil, request_options: {})
59
53
  #
60
- # @option params [String] :description Event subscription description.
61
- #
62
- # @option params [Boolean] :disabled Whether the event subscription is active (false) or inactive (true).
63
- #
64
- # @option params [Array<Symbol, Lithic::Models::Events::SubscriptionUpdateParams::EventType>] :event_types Indicates types of events that will be sent to this subscription. If left blank,
65
- # all types will be sent.
66
- #
67
- # @option params [Lithic::RequestOptions, Hash{Symbol=>Object}, nil] :request_options
54
+ # @param event_subscription_token [String]
55
+ # @param url [String]
56
+ # @param description [String]
57
+ # @param disabled [Boolean]
58
+ # @param event_types [Array<Symbol, Lithic::Models::Events::SubscriptionUpdateParams::EventType>]
59
+ # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
68
60
  #
69
61
  # @return [Lithic::Models::EventSubscription]
62
+ #
63
+ # @see Lithic::Models::Events::SubscriptionUpdateParams
70
64
  def update(event_subscription_token, params)
71
65
  parsed, options = Lithic::Models::Events::SubscriptionUpdateParams.dump_request(params)
72
66
  @client.request(
73
67
  method: :patch,
74
- path: ["v1/event_subscriptions/%0s", event_subscription_token],
68
+ path: ["v1/event_subscriptions/%1$s", event_subscription_token],
75
69
  body: parsed,
76
70
  model: Lithic::Models::EventSubscription,
77
71
  options: options
@@ -80,19 +74,16 @@ module Lithic
80
74
 
81
75
  # List all the event subscriptions.
82
76
  #
83
- # @param params [Lithic::Models::Events::SubscriptionListParams, Hash{Symbol=>Object}] .
84
- #
85
- # @option params [String] :ending_before A cursor representing an item's token before which a page of results should end.
86
- # Used to retrieve the previous page of results before this item.
87
- #
88
- # @option params [Integer] :page_size Page size (for pagination).
89
- #
90
- # @option params [String] :starting_after A cursor representing an item's token after which a page of results should
91
- # begin. Used to retrieve the next page of results after this item.
77
+ # @overload list(ending_before: nil, page_size: nil, starting_after: nil, request_options: {})
92
78
  #
93
- # @option params [Lithic::RequestOptions, Hash{Symbol=>Object}, nil] :request_options
79
+ # @param ending_before [String]
80
+ # @param page_size [Integer]
81
+ # @param starting_after [String]
82
+ # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
94
83
  #
95
84
  # @return [Lithic::CursorPage<Lithic::Models::EventSubscription>]
85
+ #
86
+ # @see Lithic::Models::Events::SubscriptionListParams
96
87
  def list(params = {})
97
88
  parsed, options = Lithic::Models::Events::SubscriptionListParams.dump_request(params)
98
89
  @client.request(
@@ -107,17 +98,18 @@ module Lithic
107
98
 
108
99
  # Delete an event subscription.
109
100
  #
110
- # @param event_subscription_token [String]
111
- #
112
- # @param params [Lithic::Models::Events::SubscriptionDeleteParams, Hash{Symbol=>Object}] .
101
+ # @overload delete(event_subscription_token, request_options: {})
113
102
  #
114
- # @option params [Lithic::RequestOptions, Hash{Symbol=>Object}, nil] :request_options
103
+ # @param event_subscription_token [String]
104
+ # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
115
105
  #
116
106
  # @return [nil]
107
+ #
108
+ # @see Lithic::Models::Events::SubscriptionDeleteParams
117
109
  def delete(event_subscription_token, params = {})
118
110
  @client.request(
119
111
  method: :delete,
120
- path: ["v1/event_subscriptions/%0s", event_subscription_token],
112
+ path: ["v1/event_subscriptions/%1$s", event_subscription_token],
121
113
  model: NilClass,
122
114
  options: params[:request_options]
123
115
  )
@@ -125,34 +117,25 @@ module Lithic
125
117
 
126
118
  # List all the message attempts for a given event subscription.
127
119
  #
128
- # @param event_subscription_token [String]
129
- #
130
- # @param params [Lithic::Models::Events::SubscriptionListAttemptsParams, Hash{Symbol=>Object}] .
131
- #
132
- # @option params [Time] :begin_ Date string in RFC 3339 format. Only entries created after the specified time
133
- # will be included. UTC time zone.
134
- #
135
- # @option params [Time] :end_ Date string in RFC 3339 format. Only entries created before the specified time
136
- # will be included. UTC time zone.
137
- #
138
- # @option params [String] :ending_before A cursor representing an item's token before which a page of results should end.
139
- # Used to retrieve the previous page of results before this item.
140
- #
141
- # @option params [Integer] :page_size Page size (for pagination).
120
+ # @overload list_attempts(event_subscription_token, begin_: nil, end_: nil, ending_before: nil, page_size: nil, starting_after: nil, status: nil, request_options: {})
142
121
  #
143
- # @option params [String] :starting_after A cursor representing an item's token after which a page of results should
144
- # begin. Used to retrieve the next page of results after this item.
145
- #
146
- # @option params [Symbol, Lithic::Models::Events::SubscriptionListAttemptsParams::Status] :status
147
- #
148
- # @option params [Lithic::RequestOptions, Hash{Symbol=>Object}, nil] :request_options
122
+ # @param event_subscription_token [String]
123
+ # @param begin_ [Time]
124
+ # @param end_ [Time]
125
+ # @param ending_before [String]
126
+ # @param page_size [Integer]
127
+ # @param starting_after [String]
128
+ # @param status [Symbol, Lithic::Models::Events::SubscriptionListAttemptsParams::Status]
129
+ # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
149
130
  #
150
131
  # @return [Lithic::CursorPage<Lithic::Models::MessageAttempt>]
132
+ #
133
+ # @see Lithic::Models::Events::SubscriptionListAttemptsParams
151
134
  def list_attempts(event_subscription_token, params = {})
152
135
  parsed, options = Lithic::Models::Events::SubscriptionListAttemptsParams.dump_request(params)
153
136
  @client.request(
154
137
  method: :get,
155
- path: ["v1/event_subscriptions/%0s/attempts", event_subscription_token],
138
+ path: ["v1/event_subscriptions/%1$s/attempts", event_subscription_token],
156
139
  query: parsed,
157
140
  page: Lithic::CursorPage,
158
141
  model: Lithic::Models::MessageAttempt,
@@ -162,24 +145,21 @@ module Lithic
162
145
 
163
146
  # Resend all failed messages since a given time.
164
147
  #
165
- # @param event_subscription_token [String]
166
- #
167
- # @param params [Lithic::Models::Events::SubscriptionRecoverParams, Hash{Symbol=>Object}] .
168
- #
169
- # @option params [Time] :begin_ Date string in RFC 3339 format. Only entries created after the specified time
170
- # will be included. UTC time zone.
171
- #
172
- # @option params [Time] :end_ Date string in RFC 3339 format. Only entries created before the specified time
173
- # will be included. UTC time zone.
148
+ # @overload recover(event_subscription_token, begin_: nil, end_: nil, request_options: {})
174
149
  #
175
- # @option params [Lithic::RequestOptions, Hash{Symbol=>Object}, nil] :request_options
150
+ # @param event_subscription_token [String]
151
+ # @param begin_ [Time]
152
+ # @param end_ [Time]
153
+ # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
176
154
  #
177
155
  # @return [nil]
156
+ #
157
+ # @see Lithic::Models::Events::SubscriptionRecoverParams
178
158
  def recover(event_subscription_token, params = {})
179
159
  parsed, options = Lithic::Models::Events::SubscriptionRecoverParams.dump_request(params)
180
160
  @client.request(
181
161
  method: :post,
182
- path: ["v1/event_subscriptions/%0s/recover", event_subscription_token],
162
+ path: ["v1/event_subscriptions/%1$s/recover", event_subscription_token],
183
163
  query: parsed,
184
164
  model: NilClass,
185
165
  options: options
@@ -192,24 +172,21 @@ module Lithic
192
172
  # [Retry Schedule](https://docs.lithic.com/docs/events-api#retry-schedule) for
193
173
  # details.
194
174
  #
195
- # @param event_subscription_token [String]
196
- #
197
- # @param params [Lithic::Models::Events::SubscriptionReplayMissingParams, Hash{Symbol=>Object}] .
175
+ # @overload replay_missing(event_subscription_token, begin_: nil, end_: nil, request_options: {})
198
176
  #
199
- # @option params [Time] :begin_ Date string in RFC 3339 format. Only entries created after the specified time
200
- # will be included. UTC time zone.
201
- #
202
- # @option params [Time] :end_ Date string in RFC 3339 format. Only entries created before the specified time
203
- # will be included. UTC time zone.
204
- #
205
- # @option params [Lithic::RequestOptions, Hash{Symbol=>Object}, nil] :request_options
177
+ # @param event_subscription_token [String]
178
+ # @param begin_ [Time]
179
+ # @param end_ [Time]
180
+ # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
206
181
  #
207
182
  # @return [nil]
183
+ #
184
+ # @see Lithic::Models::Events::SubscriptionReplayMissingParams
208
185
  def replay_missing(event_subscription_token, params = {})
209
186
  parsed, options = Lithic::Models::Events::SubscriptionReplayMissingParams.dump_request(params)
210
187
  @client.request(
211
188
  method: :post,
212
- path: ["v1/event_subscriptions/%0s/replay_missing", event_subscription_token],
189
+ path: ["v1/event_subscriptions/%1$s/replay_missing", event_subscription_token],
213
190
  query: parsed,
214
191
  model: NilClass,
215
192
  options: options
@@ -218,17 +195,18 @@ module Lithic
218
195
 
219
196
  # Get the secret for an event subscription.
220
197
  #
221
- # @param event_subscription_token [String]
222
- #
223
- # @param params [Lithic::Models::Events::SubscriptionRetrieveSecretParams, Hash{Symbol=>Object}] .
198
+ # @overload retrieve_secret(event_subscription_token, request_options: {})
224
199
  #
225
- # @option params [Lithic::RequestOptions, Hash{Symbol=>Object}, nil] :request_options
200
+ # @param event_subscription_token [String]
201
+ # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
226
202
  #
227
203
  # @return [Lithic::Models::Events::SubscriptionRetrieveSecretResponse]
204
+ #
205
+ # @see Lithic::Models::Events::SubscriptionRetrieveSecretParams
228
206
  def retrieve_secret(event_subscription_token, params = {})
229
207
  @client.request(
230
208
  method: :get,
231
- path: ["v1/event_subscriptions/%0s/secret", event_subscription_token],
209
+ path: ["v1/event_subscriptions/%1$s/secret", event_subscription_token],
232
210
  model: Lithic::Models::Events::SubscriptionRetrieveSecretResponse,
233
211
  options: params[:request_options]
234
212
  )
@@ -237,17 +215,18 @@ module Lithic
237
215
  # Rotate the secret for an event subscription. The previous secret will be valid
238
216
  # for the next 24 hours.
239
217
  #
240
- # @param event_subscription_token [String]
241
- #
242
- # @param params [Lithic::Models::Events::SubscriptionRotateSecretParams, Hash{Symbol=>Object}] .
218
+ # @overload rotate_secret(event_subscription_token, request_options: {})
243
219
  #
244
- # @option params [Lithic::RequestOptions, Hash{Symbol=>Object}, nil] :request_options
220
+ # @param event_subscription_token [String]
221
+ # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
245
222
  #
246
223
  # @return [nil]
224
+ #
225
+ # @see Lithic::Models::Events::SubscriptionRotateSecretParams
247
226
  def rotate_secret(event_subscription_token, params = {})
248
227
  @client.request(
249
228
  method: :post,
250
- path: ["v1/event_subscriptions/%0s/secret/rotate", event_subscription_token],
229
+ path: ["v1/event_subscriptions/%1$s/secret/rotate", event_subscription_token],
251
230
  model: NilClass,
252
231
  options: params[:request_options]
253
232
  )
@@ -255,26 +234,28 @@ module Lithic
255
234
 
256
235
  # Send an example message for event.
257
236
  #
258
- # @param event_subscription_token [String]
259
- #
260
- # @param params [Lithic::Models::Events::SubscriptionSendSimulatedExampleParams, Hash{Symbol=>Object}] .
261
- #
262
- # @option params [Symbol, Lithic::Models::Events::SubscriptionSendSimulatedExampleParams::EventType] :event_type Event type to send example message for.
237
+ # @overload send_simulated_example(event_subscription_token, event_type: nil, request_options: {})
263
238
  #
264
- # @option params [Lithic::RequestOptions, Hash{Symbol=>Object}, nil] :request_options
239
+ # @param event_subscription_token [String]
240
+ # @param event_type [Symbol, Lithic::Models::Events::SubscriptionSendSimulatedExampleParams::EventType]
241
+ # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
265
242
  #
266
243
  # @return [nil]
244
+ #
245
+ # @see Lithic::Models::Events::SubscriptionSendSimulatedExampleParams
267
246
  def send_simulated_example(event_subscription_token, params = {})
268
247
  parsed, options = Lithic::Models::Events::SubscriptionSendSimulatedExampleParams.dump_request(params)
269
248
  @client.request(
270
249
  method: :post,
271
- path: ["v1/simulate/event_subscriptions/%0s/send_example", event_subscription_token],
250
+ path: ["v1/simulate/event_subscriptions/%1$s/send_example", event_subscription_token],
272
251
  body: parsed,
273
252
  model: NilClass,
274
253
  options: options
275
254
  )
276
255
  end
277
256
 
257
+ # @api private
258
+ #
278
259
  # @param client [Lithic::Client]
279
260
  def initialize(client:)
280
261
  @client = client
@@ -8,17 +8,18 @@ module Lithic
8
8
 
9
9
  # Get an event.
10
10
  #
11
- # @param event_token [String]
12
- #
13
- # @param params [Lithic::Models::EventRetrieveParams, Hash{Symbol=>Object}] .
11
+ # @overload retrieve(event_token, request_options: {})
14
12
  #
15
- # @option params [Lithic::RequestOptions, Hash{Symbol=>Object}, nil] :request_options
13
+ # @param event_token [String]
14
+ # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
16
15
  #
17
16
  # @return [Lithic::Models::Event]
17
+ #
18
+ # @see Lithic::Models::EventRetrieveParams
18
19
  def retrieve(event_token, params = {})
19
20
  @client.request(
20
21
  method: :get,
21
- path: ["v1/events/%0s", event_token],
22
+ path: ["v1/events/%1$s", event_token],
22
23
  model: Lithic::Models::Event,
23
24
  options: params[:request_options]
24
25
  )
@@ -26,29 +27,20 @@ module Lithic
26
27
 
27
28
  # List all events.
28
29
  #
29
- # @param params [Lithic::Models::EventListParams, Hash{Symbol=>Object}] .
30
- #
31
- # @option params [Time] :begin_ Date string in RFC 3339 format. Only entries created after the specified time
32
- # will be included. UTC time zone.
33
- #
34
- # @option params [Time] :end_ Date string in RFC 3339 format. Only entries created before the specified time
35
- # will be included. UTC time zone.
30
+ # @overload list(begin_: nil, end_: nil, ending_before: nil, event_types: nil, page_size: nil, starting_after: nil, with_content: nil, request_options: {})
36
31
  #
37
- # @option params [String] :ending_before A cursor representing an item's token before which a page of results should end.
38
- # Used to retrieve the previous page of results before this item.
39
- #
40
- # @option params [Array<Symbol, Lithic::Models::EventListParams::EventType>] :event_types Event types to filter events by.
41
- #
42
- # @option params [Integer] :page_size Page size (for pagination).
43
- #
44
- # @option params [String] :starting_after A cursor representing an item's token after which a page of results should
45
- # begin. Used to retrieve the next page of results after this item.
46
- #
47
- # @option params [Boolean] :with_content Whether to include the event payload content in the response.
48
- #
49
- # @option params [Lithic::RequestOptions, Hash{Symbol=>Object}, nil] :request_options
32
+ # @param begin_ [Time]
33
+ # @param end_ [Time]
34
+ # @param ending_before [String]
35
+ # @param event_types [Array<Symbol, Lithic::Models::EventListParams::EventType>]
36
+ # @param page_size [Integer]
37
+ # @param starting_after [String]
38
+ # @param with_content [Boolean]
39
+ # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
50
40
  #
51
41
  # @return [Lithic::CursorPage<Lithic::Models::Event>]
42
+ #
43
+ # @see Lithic::Models::EventListParams
52
44
  def list(params = {})
53
45
  parsed, options = Lithic::Models::EventListParams.dump_request(params)
54
46
  @client.request(
@@ -63,34 +55,25 @@ module Lithic
63
55
 
64
56
  # List all the message attempts for a given event.
65
57
  #
66
- # @param event_token [String]
67
- #
68
- # @param params [Lithic::Models::EventListAttemptsParams, Hash{Symbol=>Object}] .
69
- #
70
- # @option params [Time] :begin_ Date string in RFC 3339 format. Only entries created after the specified time
71
- # will be included. UTC time zone.
72
- #
73
- # @option params [Time] :end_ Date string in RFC 3339 format. Only entries created before the specified time
74
- # will be included. UTC time zone.
75
- #
76
- # @option params [String] :ending_before A cursor representing an item's token before which a page of results should end.
77
- # Used to retrieve the previous page of results before this item.
78
- #
79
- # @option params [Integer] :page_size Page size (for pagination).
58
+ # @overload list_attempts(event_token, begin_: nil, end_: nil, ending_before: nil, page_size: nil, starting_after: nil, status: nil, request_options: {})
80
59
  #
81
- # @option params [String] :starting_after A cursor representing an item's token after which a page of results should
82
- # begin. Used to retrieve the next page of results after this item.
83
- #
84
- # @option params [Symbol, Lithic::Models::EventListAttemptsParams::Status] :status
85
- #
86
- # @option params [Lithic::RequestOptions, Hash{Symbol=>Object}, nil] :request_options
60
+ # @param event_token [String]
61
+ # @param begin_ [Time]
62
+ # @param end_ [Time]
63
+ # @param ending_before [String]
64
+ # @param page_size [Integer]
65
+ # @param starting_after [String]
66
+ # @param status [Symbol, Lithic::Models::EventListAttemptsParams::Status]
67
+ # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
87
68
  #
88
69
  # @return [Lithic::CursorPage<Lithic::Models::MessageAttempt>]
70
+ #
71
+ # @see Lithic::Models::EventListAttemptsParams
89
72
  def list_attempts(event_token, params = {})
90
73
  parsed, options = Lithic::Models::EventListAttemptsParams.dump_request(params)
91
74
  @client.request(
92
75
  method: :get,
93
- path: ["v1/events/%0s/attempts", event_token],
76
+ path: ["v1/events/%1$s/attempts", event_token],
94
77
  query: parsed,
95
78
  page: Lithic::CursorPage,
96
79
  model: Lithic::Models::MessageAttempt,
@@ -98,6 +81,8 @@ module Lithic
98
81
  )
99
82
  end
100
83
 
84
+ # @api private
85
+ #
101
86
  # @param client [Lithic::Client]
102
87
  def initialize(client:)
103
88
  @client = client
@@ -6,26 +6,28 @@ module Lithic
6
6
  class MicroDeposits
7
7
  # Verify the external bank account by providing the micro deposit amounts.
8
8
  #
9
- # @param external_bank_account_token [String]
10
- #
11
- # @param params [Lithic::Models::ExternalBankAccounts::MicroDepositCreateParams, Hash{Symbol=>Object}] .
12
- #
13
- # @option params [Array<Integer>] :micro_deposits
9
+ # @overload create(external_bank_account_token, micro_deposits:, request_options: {})
14
10
  #
15
- # @option params [Lithic::RequestOptions, Hash{Symbol=>Object}, nil] :request_options
11
+ # @param external_bank_account_token [String]
12
+ # @param micro_deposits [Array<Integer>]
13
+ # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
16
14
  #
17
15
  # @return [Lithic::Models::ExternalBankAccounts::MicroDepositCreateResponse]
16
+ #
17
+ # @see Lithic::Models::ExternalBankAccounts::MicroDepositCreateParams
18
18
  def create(external_bank_account_token, params)
19
19
  parsed, options = Lithic::Models::ExternalBankAccounts::MicroDepositCreateParams.dump_request(params)
20
20
  @client.request(
21
21
  method: :post,
22
- path: ["v1/external_bank_accounts/%0s/micro_deposits", external_bank_account_token],
22
+ path: ["v1/external_bank_accounts/%1$s/micro_deposits", external_bank_account_token],
23
23
  body: parsed,
24
24
  model: Lithic::Models::ExternalBankAccounts::MicroDepositCreateResponse,
25
25
  options: options
26
26
  )
27
27
  end
28
28
 
29
+ # @api private
30
+ #
29
31
  # @param client [Lithic::Client]
30
32
  def initialize(client:)
31
33
  @client = client