lithic 0.1.0.pre.alpha.54 → 0.1.0.pre.alpha.56

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 (229) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +39 -0
  3. data/README.md +1 -1
  4. data/lib/lithic/client.rb +4 -0
  5. data/lib/lithic/models/account_activity_list_response.rb +60 -148
  6. data/lib/lithic/models/account_activity_retrieve_transaction_response.rb +60 -151
  7. data/lib/lithic/models/account_holder_simulate_enrollment_review_response.rb +2 -2
  8. data/lib/lithic/models/account_holder_update_response.rb +4 -4
  9. data/lib/lithic/models/auth_rules/auth_rule_condition.rb +8 -51
  10. data/lib/lithic/models/auth_rules/conditional_3ds_action_parameters.rb +8 -51
  11. data/lib/lithic/models/auth_rules/conditional_ach_action_parameters.rb +260 -0
  12. data/lib/lithic/models/auth_rules/conditional_authorization_action_parameters.rb +207 -0
  13. data/lib/lithic/models/auth_rules/conditional_operation.rb +26 -0
  14. data/lib/lithic/models/auth_rules/conditional_tokenization_action_parameters.rb +254 -0
  15. data/lib/lithic/models/auth_rules/conditional_value.rb +27 -0
  16. data/lib/lithic/models/auth_rules/v2_create_params.rb +46 -283
  17. data/lib/lithic/models/auth_rules/v2_create_response.rb +23 -510
  18. data/lib/lithic/models/auth_rules/v2_draft_params.rb +6 -248
  19. data/lib/lithic/models/auth_rules/v2_draft_response.rb +23 -510
  20. data/lib/lithic/models/auth_rules/v2_list_params.rb +3 -0
  21. data/lib/lithic/models/auth_rules/v2_list_response.rb +23 -510
  22. data/lib/lithic/models/auth_rules/v2_promote_response.rb +23 -510
  23. data/lib/lithic/models/auth_rules/v2_retrieve_features_response.rb +4 -11
  24. data/lib/lithic/models/auth_rules/v2_retrieve_response.rb +23 -510
  25. data/lib/lithic/models/auth_rules/v2_update_response.rb +23 -510
  26. data/lib/lithic/models/auth_rules/velocity_limit_params.rb +4 -7
  27. data/lib/lithic/models/auth_rules/velocity_limit_period.rb +154 -0
  28. data/lib/lithic/models/book_transfer_response.rb +6 -5
  29. data/lib/lithic/models/category_details.rb +27 -0
  30. data/lib/lithic/models/dispute_v2.rb +555 -0
  31. data/lib/lithic/models/disputes_v2_list_params.rb +84 -0
  32. data/lib/lithic/models/disputes_v2_retrieve_params.rb +14 -0
  33. data/lib/lithic/models/event.rb +213 -69
  34. data/lib/lithic/models/event_list_params.rb +112 -6
  35. data/lib/lithic/models/event_subscription.rb +112 -6
  36. data/lib/lithic/models/events/subscription_create_params.rb +112 -6
  37. data/lib/lithic/models/events/subscription_send_simulated_example_params.rb +12 -6
  38. data/lib/lithic/models/events/subscription_update_params.rb +112 -6
  39. data/lib/lithic/models/external_bank_account_address.rb +2 -2
  40. data/lib/lithic/models/external_bank_account_create_response.rb +18 -18
  41. data/lib/lithic/models/external_bank_account_list_response.rb +18 -18
  42. data/lib/lithic/models/external_bank_account_retrieve_response.rb +18 -18
  43. data/lib/lithic/models/external_bank_account_retry_micro_deposits_response.rb +18 -18
  44. data/lib/lithic/models/external_bank_account_retry_prenote_response.rb +18 -18
  45. data/lib/lithic/models/external_bank_account_unpause_params.rb +14 -0
  46. data/lib/lithic/models/external_bank_account_unpause_response.rb +242 -0
  47. data/lib/lithic/models/external_bank_account_update_response.rb +18 -18
  48. data/lib/lithic/models/external_bank_accounts/micro_deposit_create_response.rb +18 -18
  49. data/lib/lithic/models/external_payment.rb +3 -2
  50. data/lib/lithic/models/external_payment_list_params.rb +1 -0
  51. data/lib/lithic/models/financial_account.rb +5 -68
  52. data/lib/lithic/models/financial_accounts/category_balances.rb +29 -0
  53. data/lib/lithic/models/financial_accounts/financial_account_credit_config.rb +1 -64
  54. data/lib/lithic/models/financial_accounts/loan_tape.rb +35 -424
  55. data/lib/lithic/models/financial_accounts/statement.rb +73 -211
  56. data/lib/lithic/models/financial_event.rb +148 -0
  57. data/lib/lithic/models/financial_transaction.rb +3 -146
  58. data/lib/lithic/models/management_operation_list_params.rb +1 -0
  59. data/lib/lithic/models/management_operation_transaction.rb +5 -4
  60. data/lib/lithic/models/merchant.rb +70 -0
  61. data/lib/lithic/models/payment.rb +16 -14
  62. data/lib/lithic/models/payment_return_params.rb +62 -0
  63. data/lib/lithic/models/payment_simulate_action_params.rb +17 -1
  64. data/lib/lithic/models/statement_totals.rb +100 -0
  65. data/lib/lithic/models/three_ds/authentication_retrieve_response.rb +9 -9
  66. data/lib/lithic/models/tokenization.rb +189 -23
  67. data/lib/lithic/models/transaction.rb +15 -185
  68. data/lib/lithic/models/transactions/events/enhanced_data.rb +52 -43
  69. data/lib/lithic/models/transfer.rb +3 -146
  70. data/lib/lithic/models.rb +18 -0
  71. data/lib/lithic/resources/auth_rules/v2/backtests.rb +3 -5
  72. data/lib/lithic/resources/auth_rules/v2.rb +13 -56
  73. data/lib/lithic/resources/disputes_v2.rb +74 -0
  74. data/lib/lithic/resources/external_bank_accounts.rb +19 -0
  75. data/lib/lithic/resources/payments.rb +53 -1
  76. data/lib/lithic/version.rb +1 -1
  77. data/lib/lithic.rb +18 -3
  78. data/rbi/lithic/client.rbi +3 -0
  79. data/rbi/lithic/models/account_activity_list_response.rbi +121 -544
  80. data/rbi/lithic/models/account_activity_retrieve_transaction_response.rbi +121 -544
  81. data/rbi/lithic/models/account_holder_simulate_enrollment_review_response.rbi +3 -6
  82. data/rbi/lithic/models/account_holder_update_response.rbi +6 -12
  83. data/rbi/lithic/models/auth_rules/auth_rule_condition.rbi +13 -139
  84. data/rbi/lithic/models/auth_rules/conditional_3ds_action_parameters.rbi +13 -153
  85. data/rbi/lithic/models/auth_rules/conditional_ach_action_parameters.rbi +789 -0
  86. data/rbi/lithic/models/auth_rules/conditional_authorization_action_parameters.rbi +437 -0
  87. data/rbi/lithic/models/auth_rules/conditional_operation.rbi +74 -0
  88. data/rbi/lithic/models/auth_rules/conditional_tokenization_action_parameters.rbi +674 -0
  89. data/rbi/lithic/models/auth_rules/conditional_value.rbi +28 -0
  90. data/rbi/lithic/models/auth_rules/v2_create_params.rbi +112 -680
  91. data/rbi/lithic/models/auth_rules/v2_create_response.rbi +33 -1149
  92. data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +12 -575
  93. data/rbi/lithic/models/auth_rules/v2_draft_response.rbi +33 -1149
  94. data/rbi/lithic/models/auth_rules/v2_list_params.rbi +15 -0
  95. data/rbi/lithic/models/auth_rules/v2_list_response.rbi +33 -1149
  96. data/rbi/lithic/models/auth_rules/v2_promote_response.rbi +33 -1149
  97. data/rbi/lithic/models/auth_rules/v2_retrieve_features_response.rbi +9 -22
  98. data/rbi/lithic/models/auth_rules/v2_retrieve_response.rbi +33 -1149
  99. data/rbi/lithic/models/auth_rules/v2_update_response.rbi +33 -1149
  100. data/rbi/lithic/models/auth_rules/velocity_limit_params.rbi +17 -29
  101. data/rbi/lithic/models/auth_rules/velocity_limit_period.rbi +223 -0
  102. data/rbi/lithic/models/book_transfer_response.rbi +16 -11
  103. data/rbi/lithic/models/category_details.rbi +43 -0
  104. data/rbi/lithic/models/dispute_v2.rbi +965 -0
  105. data/rbi/lithic/models/disputes_v2_list_params.rbi +129 -0
  106. data/rbi/lithic/models/disputes_v2_retrieve_params.rbi +27 -0
  107. data/rbi/lithic/models/event.rbi +348 -111
  108. data/rbi/lithic/models/event_list_params.rbi +155 -25
  109. data/rbi/lithic/models/event_subscription.rbi +155 -25
  110. data/rbi/lithic/models/events/subscription_create_params.rbi +155 -25
  111. data/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +55 -25
  112. data/rbi/lithic/models/events/subscription_update_params.rbi +155 -25
  113. data/rbi/lithic/models/external_bank_account_address.rbi +3 -6
  114. data/rbi/lithic/models/external_bank_account_create_response.rbi +31 -51
  115. data/rbi/lithic/models/external_bank_account_list_response.rbi +31 -51
  116. data/rbi/lithic/models/external_bank_account_retrieve_response.rbi +31 -51
  117. data/rbi/lithic/models/external_bank_account_retry_micro_deposits_response.rbi +31 -51
  118. data/rbi/lithic/models/external_bank_account_retry_prenote_response.rbi +31 -51
  119. data/rbi/lithic/models/external_bank_account_unpause_params.rbi +30 -0
  120. data/rbi/lithic/models/external_bank_account_unpause_response.rbi +375 -0
  121. data/rbi/lithic/models/external_bank_account_update_response.rbi +31 -51
  122. data/rbi/lithic/models/external_bank_accounts/micro_deposit_create_response.rbi +31 -51
  123. data/rbi/lithic/models/external_payment.rbi +5 -6
  124. data/rbi/lithic/models/external_payment_list_params.rbi +5 -0
  125. data/rbi/lithic/models/financial_account.rbi +15 -136
  126. data/rbi/lithic/models/financial_accounts/category_balances.rbi +42 -0
  127. data/rbi/lithic/models/financial_accounts/financial_account_credit_config.rbi +3 -136
  128. data/rbi/lithic/models/financial_accounts/loan_tape.rbi +47 -679
  129. data/rbi/lithic/models/financial_accounts/statement.rbi +118 -348
  130. data/rbi/lithic/models/financial_event.rbi +409 -0
  131. data/rbi/lithic/models/financial_transaction.rbi +3 -509
  132. data/rbi/lithic/models/management_operation_list_params.rbi +5 -0
  133. data/rbi/lithic/models/management_operation_transaction.rbi +11 -12
  134. data/rbi/lithic/models/merchant.rbi +89 -0
  135. data/rbi/lithic/models/payment.rbi +27 -21
  136. data/rbi/lithic/models/payment_return_params.rbi +85 -0
  137. data/rbi/lithic/models/payment_simulate_action_params.rbi +22 -0
  138. data/rbi/lithic/models/statement_totals.rbi +128 -0
  139. data/rbi/lithic/models/three_ds/authentication_retrieve_response.rbi +12 -12
  140. data/rbi/lithic/models/tokenization.rbi +429 -34
  141. data/rbi/lithic/models/transaction.rbi +26 -336
  142. data/rbi/lithic/models/transactions/events/enhanced_data.rbi +77 -136
  143. data/rbi/lithic/models/transfer.rbi +4 -436
  144. data/rbi/lithic/models.rbi +19 -0
  145. data/rbi/lithic/resources/auth_rules/v2/backtests.rbi +0 -3
  146. data/rbi/lithic/resources/auth_rules/v2.rbi +29 -72
  147. data/rbi/lithic/resources/disputes_v2.rbi +64 -0
  148. data/rbi/lithic/resources/external_bank_accounts.rbi +10 -0
  149. data/rbi/lithic/resources/payments.rbi +52 -0
  150. data/sig/lithic/client.rbs +2 -0
  151. data/sig/lithic/models/account_activity_list_response.rbs +67 -221
  152. data/sig/lithic/models/account_activity_retrieve_transaction_response.rbs +67 -221
  153. data/sig/lithic/models/account_holder_simulate_enrollment_review_response.rbs +4 -6
  154. data/sig/lithic/models/account_holder_update_response.rbs +8 -12
  155. data/sig/lithic/models/auth_rules/auth_rule_condition.rbs +10 -61
  156. data/sig/lithic/models/auth_rules/conditional_3ds_action_parameters.rbs +10 -61
  157. data/sig/lithic/models/auth_rules/conditional_ach_action_parameters.rbs +293 -0
  158. data/sig/lithic/models/auth_rules/conditional_authorization_action_parameters.rbs +112 -0
  159. data/sig/lithic/models/auth_rules/conditional_operation.rbs +34 -0
  160. data/sig/lithic/models/auth_rules/conditional_tokenization_action_parameters.rbs +237 -0
  161. data/sig/lithic/models/auth_rules/conditional_value.rbs +15 -0
  162. data/sig/lithic/models/auth_rules/v2_create_params.rbs +32 -188
  163. data/sig/lithic/models/auth_rules/v2_create_response.rbs +15 -319
  164. data/sig/lithic/models/auth_rules/v2_draft_params.rbs +3 -159
  165. data/sig/lithic/models/auth_rules/v2_draft_response.rbs +15 -319
  166. data/sig/lithic/models/auth_rules/v2_list_params.rbs +9 -1
  167. data/sig/lithic/models/auth_rules/v2_list_response.rbs +15 -319
  168. data/sig/lithic/models/auth_rules/v2_promote_response.rbs +15 -319
  169. data/sig/lithic/models/auth_rules/v2_retrieve_features_response.rbs +4 -4
  170. data/sig/lithic/models/auth_rules/v2_retrieve_response.rbs +15 -319
  171. data/sig/lithic/models/auth_rules/v2_update_response.rbs +15 -319
  172. data/sig/lithic/models/auth_rules/velocity_limit_params.rbs +4 -4
  173. data/sig/lithic/models/auth_rules/velocity_limit_period.rbs +91 -0
  174. data/sig/lithic/models/book_transfer_response.rbs +10 -8
  175. data/sig/lithic/models/category_details.rbs +26 -0
  176. data/sig/lithic/models/dispute_v2.rbs +438 -0
  177. data/sig/lithic/models/disputes_v2_list_params.rbs +77 -0
  178. data/sig/lithic/models/disputes_v2_retrieve_params.rbs +15 -0
  179. data/sig/lithic/models/event.rbs +25 -13
  180. data/sig/lithic/models/event_list_params.rbs +25 -13
  181. data/sig/lithic/models/event_subscription.rbs +25 -13
  182. data/sig/lithic/models/events/subscription_create_params.rbs +25 -13
  183. data/sig/lithic/models/events/subscription_send_simulated_example_params.rbs +25 -13
  184. data/sig/lithic/models/events/subscription_update_params.rbs +25 -13
  185. data/sig/lithic/models/external_bank_account_address.rbs +4 -6
  186. data/sig/lithic/models/external_bank_account_create_response.rbs +36 -56
  187. data/sig/lithic/models/external_bank_account_list_response.rbs +36 -56
  188. data/sig/lithic/models/external_bank_account_retrieve_response.rbs +36 -56
  189. data/sig/lithic/models/external_bank_account_retry_micro_deposits_response.rbs +36 -56
  190. data/sig/lithic/models/external_bank_account_retry_prenote_response.rbs +36 -56
  191. data/sig/lithic/models/external_bank_account_unpause_params.rbs +15 -0
  192. data/sig/lithic/models/external_bank_account_unpause_response.rbs +162 -0
  193. data/sig/lithic/models/external_bank_account_update_response.rbs +36 -56
  194. data/sig/lithic/models/external_bank_accounts/micro_deposit_create_response.rbs +36 -56
  195. data/sig/lithic/models/external_payment.rbs +7 -7
  196. data/sig/lithic/models/external_payment_list_params.rbs +3 -1
  197. data/sig/lithic/models/financial_account.rbs +7 -49
  198. data/sig/lithic/models/financial_accounts/category_balances.rbs +24 -0
  199. data/sig/lithic/models/financial_accounts/financial_account_credit_config.rbs +3 -49
  200. data/sig/lithic/models/financial_accounts/loan_tape.rbs +48 -386
  201. data/sig/lithic/models/financial_accounts/statement.rbs +59 -192
  202. data/sig/lithic/models/financial_event.rbs +216 -0
  203. data/sig/lithic/models/financial_transaction.rbs +4 -217
  204. data/sig/lithic/models/management_operation_list_params.rbs +3 -1
  205. data/sig/lithic/models/management_operation_transaction.rbs +11 -13
  206. data/sig/lithic/models/merchant.rbs +50 -0
  207. data/sig/lithic/models/payment.rbs +17 -15
  208. data/sig/lithic/models/payment_return_params.rbs +46 -0
  209. data/sig/lithic/models/payment_simulate_action_params.rbs +14 -0
  210. data/sig/lithic/models/statement_totals.rbs +76 -0
  211. data/sig/lithic/models/tokenization.rbs +160 -13
  212. data/sig/lithic/models/transaction.rbs +17 -145
  213. data/sig/lithic/models/transactions/events/enhanced_data.rbs +78 -124
  214. data/sig/lithic/models/transfer.rbs +6 -219
  215. data/sig/lithic/models.rbs +18 -0
  216. data/sig/lithic/resources/auth_rules/v2.rbs +2 -12
  217. data/sig/lithic/resources/disputes_v2.rbs +24 -0
  218. data/sig/lithic/resources/external_bank_accounts.rbs +5 -0
  219. data/sig/lithic/resources/payments.rbs +12 -0
  220. metadata +56 -11
  221. data/lib/lithic/models/auth_rules/v2_apply_params.rb +0 -56
  222. data/lib/lithic/models/auth_rules/v2_apply_response.rb +0 -766
  223. data/lib/lithic/models/auth_rules/velocity_limit_params_period_window.rb +0 -248
  224. data/rbi/lithic/models/auth_rules/v2_apply_params.rbi +0 -86
  225. data/rbi/lithic/models/auth_rules/v2_apply_response.rbi +0 -1638
  226. data/rbi/lithic/models/auth_rules/velocity_limit_params_period_window.rbi +0 -557
  227. data/sig/lithic/models/auth_rules/v2_apply_params.rbs +0 -54
  228. data/sig/lithic/models/auth_rules/v2_apply_response.rbs +0 -509
  229. data/sig/lithic/models/auth_rules/velocity_limit_params_period_window.rbs +0 -223
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0cafb9995bee6a1f6538ae3f917907ec64d021442bdadc54d796f527e4b8a398
4
- data.tar.gz: 7d0de20d92faba1f2f0951f3fc446653743b9fff0510677e927311cf4cef1ddb
3
+ metadata.gz: b44eacfefc91b5275622e47ad95610f40e77dd05ac4ae73997c735f8cbe79dd0
4
+ data.tar.gz: 95f7d8cd0c3155e92475ef6c6abfbac39679d9a03e051e607dbcd873e9f8d365
5
5
  SHA512:
6
- metadata.gz: 92d1c6cb2842552f0630d9d9c748ea67f84739d99b7470c46d252a6c8a0c6903ad653b221f118e34872a76e38f0293965ebc1d045b56359b131386225f890010
7
- data.tar.gz: 3adb703444bf3e91ff3105312e561b615ea5df93ac6a6be10b626f2c6b5dd32ddc9222d355dff361f7065b0470a1ec5729566a05e80e5413e9dcfbf187fafa71
6
+ metadata.gz: 8de2401589036a78070cb0121b427a2fca523805e212cf0dee1a6c285eed2c296535f076fc6bc5d75a7c8c048eadb93111c70e86d9c79176544f09a942bcebe4
7
+ data.tar.gz: b26a2c18388a207255893b34065c936ec98f8027a852a57115da38e19007d5605bfa665403e13087eb6eee1699cadb746241d321292119727a55e66506f07f0e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,44 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.0-alpha.56 (2025-11-20)
4
+
5
+ Full Changelog: [v0.1.0-alpha.55...v0.1.0-alpha.56](https://github.com/lithic-com/lithic-ruby/compare/v0.1.0-alpha.55...v0.1.0-alpha.56)
6
+
7
+ ### Features
8
+
9
+ * **api:** add disputes V2 endpoints ([0730dce](https://github.com/lithic-com/lithic-ruby/commit/0730dcede8d11f0b56c0beb90c692552b229c6fb))
10
+ * **api:** Add Payoff Details ([e21e546](https://github.com/lithic-com/lithic-ruby/commit/e21e5460240174de29a51d67c8206220e3cf19d1))
11
+ * **api:** add return payment method ([0730dce](https://github.com/lithic-com/lithic-ruby/commit/0730dcede8d11f0b56c0beb90c692552b229c6fb))
12
+ * **api:** add Tokenization and ACH Rules ([0730dce](https://github.com/lithic-com/lithic-ruby/commit/0730dcede8d11f0b56c0beb90c692552b229c6fb))
13
+ * **api:** add unpause external_bank_accounts API method ([0730dce](https://github.com/lithic-com/lithic-ruby/commit/0730dcede8d11f0b56c0beb90c692552b229c6fb))
14
+ * **api:** extract some common schemas into models ([0730dce](https://github.com/lithic-com/lithic-ruby/commit/0730dcede8d11f0b56c0beb90c692552b229c6fb))
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * **api:** change allowed phone number length from 18 to 16 ([0730dce](https://github.com/lithic-com/lithic-ruby/commit/0730dcede8d11f0b56c0beb90c692552b229c6fb))
20
+ * **api:** mark certain optional fields as nullable ([0730dce](https://github.com/lithic-com/lithic-ruby/commit/0730dcede8d11f0b56c0beb90c692552b229c6fb))
21
+ * **api:** Modify return type of returns API to payment-transaction ([e21e546](https://github.com/lithic-com/lithic-ruby/commit/e21e5460240174de29a51d67c8206220e3cf19d1))
22
+
23
+ ## 0.1.0-alpha.55 (2025-11-11)
24
+
25
+ Full Changelog: [v0.1.0-alpha.54...v0.1.0-alpha.55](https://github.com/lithic-com/lithic-ruby/compare/v0.1.0-alpha.54...v0.1.0-alpha.55)
26
+
27
+ ### Features
28
+
29
+ * **api:** add payment_details ([413b65a](https://github.com/lithic-com/lithic-ruby/commit/413b65a7028d3277f1e4f3419fd643e7c0730966))
30
+ * **api:** deprecate auth rule apply endpoint and fix several schemas ([7b9a282](https://github.com/lithic-com/lithic-ruby/commit/7b9a282603b666e314c6445439cfb839c479eada))
31
+ * **api:** new fields in Statements APIs ([be8c6ea](https://github.com/lithic-com/lithic-ruby/commit/be8c6ea99b996707b3848cba8e0109c47fc1715e))
32
+ * **api:** re-add rules metadata to tokenization events ([da13854](https://github.com/lithic-com/lithic-ruby/commit/da13854e8c9794024b786da4584ffbe492999c6a))
33
+ * **api:** remove deprecated fields from Cardholder Authentication object ([da13854](https://github.com/lithic-com/lithic-ruby/commit/da13854e8c9794024b786da4584ffbe492999c6a))
34
+
35
+
36
+ ### Bug Fixes
37
+
38
+ * **api:** adjust Auth Rules spec for better SDK structure ([da13854](https://github.com/lithic-com/lithic-ruby/commit/da13854e8c9794024b786da4584ffbe492999c6a))
39
+ * **api:** fix oneOf -> anyOf in account holder update ([413b65a](https://github.com/lithic-com/lithic-ruby/commit/413b65a7028d3277f1e4f3419fd643e7c0730966))
40
+ * **api:** fixing spec for Tokenizations and Enhanced data ([be8c6ea](https://github.com/lithic-com/lithic-ruby/commit/be8c6ea99b996707b3848cba8e0109c47fc1715e))
41
+
3
42
  ## 0.1.0-alpha.54 (2025-11-04)
4
43
 
5
44
  Full Changelog: [v0.1.0-alpha.53...v0.1.0-alpha.54](https://github.com/lithic-com/lithic-ruby/compare/v0.1.0-alpha.53...v0.1.0-alpha.54)
data/README.md CHANGED
@@ -15,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application
15
15
  <!-- x-release-please-start-version -->
16
16
 
17
17
  ```ruby
18
- gem "lithic", "~> 0.1.0.pre.alpha.54"
18
+ gem "lithic", "~> 0.1.0.pre.alpha.56"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
data/lib/lithic/client.rb CHANGED
@@ -53,6 +53,9 @@ module Lithic
53
53
  # @return [Lithic::Resources::Disputes]
54
54
  attr_reader :disputes
55
55
 
56
+ # @return [Lithic::Resources::DisputesV2]
57
+ attr_reader :disputes_v2
58
+
56
59
  # @return [Lithic::Resources::Events]
57
60
  attr_reader :events
58
61
 
@@ -194,6 +197,7 @@ module Lithic
194
197
  @balances = Lithic::Resources::Balances.new(client: self)
195
198
  @aggregate_balances = Lithic::Resources::AggregateBalances.new(client: self)
196
199
  @disputes = Lithic::Resources::Disputes.new(client: self)
200
+ @disputes_v2 = Lithic::Resources::DisputesV2.new(client: self)
197
201
  @events = Lithic::Resources::Events.new(client: self)
198
202
  @transfers = Lithic::Resources::Transfers.new(client: self)
199
203
  @financial_accounts = Lithic::Resources::FinancialAccounts.new(client: self)
@@ -64,9 +64,8 @@ module Lithic
64
64
  # @!attribute events
65
65
  # List of transaction events
66
66
  #
67
- # @return [Array<Lithic::Models::AccountActivityListResponse::Internal::Event>]
68
- required :events,
69
- -> { Lithic::Internal::Type::ArrayOf[Lithic::Models::AccountActivityListResponse::Internal::Event] }
67
+ # @return [Array<Lithic::Models::FinancialEvent>]
68
+ required :events, -> { Lithic::Internal::Type::ArrayOf[Lithic::FinancialEvent] }
70
69
 
71
70
  # @!attribute family
72
71
  # INTERNAL - Financial Transaction
@@ -123,7 +122,7 @@ module Lithic
123
122
  #
124
123
  # @param descriptor [String] Transaction descriptor
125
124
  #
126
- # @param events [Array<Lithic::Models::AccountActivityListResponse::Internal::Event>] List of transaction events
125
+ # @param events [Array<Lithic::Models::FinancialEvent>] List of transaction events
127
126
  #
128
127
  # @param financial_account_token [String] Financial account token associated with the transaction
129
128
  #
@@ -168,149 +167,6 @@ module Lithic
168
167
  # @return [Array<Symbol>]
169
168
  end
170
169
 
171
- class Event < Lithic::Internal::Type::BaseModel
172
- # @!attribute token
173
- # Globally unique identifier.
174
- #
175
- # @return [String, nil]
176
- optional :token, String
177
-
178
- # @!attribute amount
179
- # Amount of the financial event that has been settled in the currency's smallest
180
- # unit (e.g., cents).
181
- #
182
- # @return [Integer, nil]
183
- optional :amount, Integer
184
-
185
- # @!attribute created
186
- # Date and time when the financial event occurred. UTC time zone.
187
- #
188
- # @return [Time, nil]
189
- optional :created, Time
190
-
191
- # @!attribute result
192
- # APPROVED financial events were successful while DECLINED financial events were
193
- # declined by user, Lithic, or the network.
194
- #
195
- # @return [Symbol, Lithic::Models::AccountActivityListResponse::Internal::Event::Result, nil]
196
- optional :result, enum: -> { Lithic::Models::AccountActivityListResponse::Internal::Event::Result }
197
-
198
- # @!attribute type
199
- #
200
- # @return [Symbol, Lithic::Models::AccountActivityListResponse::Internal::Event::Type, nil]
201
- optional :type, enum: -> { Lithic::Models::AccountActivityListResponse::Internal::Event::Type }
202
-
203
- # @!method initialize(token: nil, amount: nil, created: nil, result: nil, type: nil)
204
- # Some parameter documentations has been truncated, see
205
- # {Lithic::Models::AccountActivityListResponse::Internal::Event} for more details.
206
- #
207
- # Financial Event
208
- #
209
- # @param token [String] Globally unique identifier.
210
- #
211
- # @param amount [Integer] Amount of the financial event that has been settled in the currency's smallest u
212
- #
213
- # @param created [Time] Date and time when the financial event occurred. UTC time zone.
214
- #
215
- # @param result [Symbol, Lithic::Models::AccountActivityListResponse::Internal::Event::Result] APPROVED financial events were successful while DECLINED financial events were d
216
- #
217
- # @param type [Symbol, Lithic::Models::AccountActivityListResponse::Internal::Event::Type]
218
-
219
- # APPROVED financial events were successful while DECLINED financial events were
220
- # declined by user, Lithic, or the network.
221
- #
222
- # @see Lithic::Models::AccountActivityListResponse::Internal::Event#result
223
- module Result
224
- extend Lithic::Internal::Type::Enum
225
-
226
- APPROVED = :APPROVED
227
- DECLINED = :DECLINED
228
-
229
- # @!method self.values
230
- # @return [Array<Symbol>]
231
- end
232
-
233
- # @see Lithic::Models::AccountActivityListResponse::Internal::Event#type
234
- module Type
235
- extend Lithic::Internal::Type::Enum
236
-
237
- ACH_ORIGINATION_CANCELLED = :ACH_ORIGINATION_CANCELLED
238
- ACH_ORIGINATION_INITIATED = :ACH_ORIGINATION_INITIATED
239
- ACH_ORIGINATION_PROCESSED = :ACH_ORIGINATION_PROCESSED
240
- ACH_ORIGINATION_RELEASED = :ACH_ORIGINATION_RELEASED
241
- ACH_ORIGINATION_REJECTED = :ACH_ORIGINATION_REJECTED
242
- ACH_ORIGINATION_REVIEWED = :ACH_ORIGINATION_REVIEWED
243
- ACH_ORIGINATION_SETTLED = :ACH_ORIGINATION_SETTLED
244
- ACH_RECEIPT_PROCESSED = :ACH_RECEIPT_PROCESSED
245
- ACH_RECEIPT_RELEASED = :ACH_RECEIPT_RELEASED
246
- ACH_RECEIPT_SETTLED = :ACH_RECEIPT_SETTLED
247
- ACH_RETURN_INITIATED = :ACH_RETURN_INITIATED
248
- ACH_RETURN_PROCESSED = :ACH_RETURN_PROCESSED
249
- ACH_RETURN_REJECTED = :ACH_RETURN_REJECTED
250
- ACH_RETURN_SETTLED = :ACH_RETURN_SETTLED
251
- AUTHORIZATION = :AUTHORIZATION
252
- AUTHORIZATION_ADVICE = :AUTHORIZATION_ADVICE
253
- AUTHORIZATION_EXPIRY = :AUTHORIZATION_EXPIRY
254
- AUTHORIZATION_REVERSAL = :AUTHORIZATION_REVERSAL
255
- BALANCE_INQUIRY = :BALANCE_INQUIRY
256
- BILLING_ERROR = :BILLING_ERROR
257
- BILLING_ERROR_REVERSAL = :BILLING_ERROR_REVERSAL
258
- CARD_TO_CARD = :CARD_TO_CARD
259
- CASH_BACK = :CASH_BACK
260
- CASH_BACK_REVERSAL = :CASH_BACK_REVERSAL
261
- CLEARING = :CLEARING
262
- COLLECTION = :COLLECTION
263
- CORRECTION_CREDIT = :CORRECTION_CREDIT
264
- CORRECTION_DEBIT = :CORRECTION_DEBIT
265
- CREDIT_AUTHORIZATION = :CREDIT_AUTHORIZATION
266
- CREDIT_AUTHORIZATION_ADVICE = :CREDIT_AUTHORIZATION_ADVICE
267
- CURRENCY_CONVERSION = :CURRENCY_CONVERSION
268
- CURRENCY_CONVERSION_REVERSAL = :CURRENCY_CONVERSION_REVERSAL
269
- DISPUTE_WON = :DISPUTE_WON
270
- EXTERNAL_ACH_CANCELED = :EXTERNAL_ACH_CANCELED
271
- EXTERNAL_ACH_INITIATED = :EXTERNAL_ACH_INITIATED
272
- EXTERNAL_ACH_RELEASED = :EXTERNAL_ACH_RELEASED
273
- EXTERNAL_ACH_REVERSED = :EXTERNAL_ACH_REVERSED
274
- EXTERNAL_ACH_SETTLED = :EXTERNAL_ACH_SETTLED
275
- EXTERNAL_CHECK_CANCELED = :EXTERNAL_CHECK_CANCELED
276
- EXTERNAL_CHECK_INITIATED = :EXTERNAL_CHECK_INITIATED
277
- EXTERNAL_CHECK_RELEASED = :EXTERNAL_CHECK_RELEASED
278
- EXTERNAL_CHECK_REVERSED = :EXTERNAL_CHECK_REVERSED
279
- EXTERNAL_CHECK_SETTLED = :EXTERNAL_CHECK_SETTLED
280
- EXTERNAL_TRANSFER_CANCELED = :EXTERNAL_TRANSFER_CANCELED
281
- EXTERNAL_TRANSFER_INITIATED = :EXTERNAL_TRANSFER_INITIATED
282
- EXTERNAL_TRANSFER_RELEASED = :EXTERNAL_TRANSFER_RELEASED
283
- EXTERNAL_TRANSFER_REVERSED = :EXTERNAL_TRANSFER_REVERSED
284
- EXTERNAL_TRANSFER_SETTLED = :EXTERNAL_TRANSFER_SETTLED
285
- EXTERNAL_WIRE_CANCELED = :EXTERNAL_WIRE_CANCELED
286
- EXTERNAL_WIRE_INITIATED = :EXTERNAL_WIRE_INITIATED
287
- EXTERNAL_WIRE_RELEASED = :EXTERNAL_WIRE_RELEASED
288
- EXTERNAL_WIRE_REVERSED = :EXTERNAL_WIRE_REVERSED
289
- EXTERNAL_WIRE_SETTLED = :EXTERNAL_WIRE_SETTLED
290
- FINANCIAL_AUTHORIZATION = :FINANCIAL_AUTHORIZATION
291
- FINANCIAL_CREDIT_AUTHORIZATION = :FINANCIAL_CREDIT_AUTHORIZATION
292
- INTEREST = :INTEREST
293
- INTEREST_REVERSAL = :INTEREST_REVERSAL
294
- INTERNAL_ADJUSTMENT = :INTERNAL_ADJUSTMENT
295
- LATE_PAYMENT = :LATE_PAYMENT
296
- LATE_PAYMENT_REVERSAL = :LATE_PAYMENT_REVERSAL
297
- LOSS_WRITE_OFF = :LOSS_WRITE_OFF
298
- PROVISIONAL_CREDIT = :PROVISIONAL_CREDIT
299
- PROVISIONAL_CREDIT_REVERSAL = :PROVISIONAL_CREDIT_REVERSAL
300
- SERVICE = :SERVICE
301
- RETURN = :RETURN
302
- RETURN_REVERSAL = :RETURN_REVERSAL
303
- TRANSFER = :TRANSFER
304
- TRANSFER_INSUFFICIENT_FUNDS = :TRANSFER_INSUFFICIENT_FUNDS
305
- RETURNED_PAYMENT = :RETURNED_PAYMENT
306
- RETURNED_PAYMENT_REVERSAL = :RETURNED_PAYMENT_REVERSAL
307
- LITHIC_NETWORK_PAYMENT = :LITHIC_NETWORK_PAYMENT
308
-
309
- # @!method self.values
310
- # @return [Array<Symbol>]
311
- end
312
- end
313
-
314
170
  # Transaction result
315
171
  #
316
172
  # @see Lithic::Models::AccountActivityListResponse::Internal#result
@@ -335,6 +191,7 @@ module Lithic
335
191
  DECLINED = :DECLINED
336
192
  REVERSED = :REVERSED
337
193
  CANCELED = :CANCELED
194
+ RETURNED = :RETURNED
338
195
 
339
196
  # @!method self.values
340
197
  # @return [Array<Symbol>]
@@ -342,8 +199,63 @@ module Lithic
342
199
  end
343
200
 
344
201
  class Card < Lithic::Models::Transaction
345
- # @!method initialize
202
+ # @!attribute token
203
+ # Unique identifier for the transaction
204
+ #
205
+ # @return [String]
206
+ required :token, String
207
+
208
+ # @!attribute created
209
+ # ISO 8601 timestamp of when the transaction was created
210
+ #
211
+ # @return [Time]
212
+ required :created, Time
213
+
214
+ # @!attribute family
215
+ # CARD - Card Transaction
216
+ #
217
+ # @return [Symbol, :CARD]
218
+ required :family, const: :CARD
219
+
220
+ # @!attribute status
221
+ # The status of the transaction
222
+ #
223
+ # @return [Symbol, Lithic::Models::AccountActivityListResponse::Card::Status]
224
+ required :status, enum: -> { Lithic::Models::AccountActivityListResponse::Card::Status }
225
+
226
+ # @!attribute updated
227
+ # ISO 8601 timestamp of when the transaction was last updated
228
+ #
229
+ # @return [Time]
230
+ required :updated, Time
231
+
232
+ # @!method initialize(token:, created:, status:, updated:, family: :CARD)
346
233
  # Card transaction with ledger base properties
234
+ #
235
+ # @param token [String] Unique identifier for the transaction
236
+ #
237
+ # @param created [Time] ISO 8601 timestamp of when the transaction was created
238
+ #
239
+ # @param status [Symbol, Lithic::Models::AccountActivityListResponse::Card::Status] The status of the transaction
240
+ #
241
+ # @param updated [Time] ISO 8601 timestamp of when the transaction was last updated
242
+ #
243
+ # @param family [Symbol, :CARD] CARD - Card Transaction
244
+
245
+ # The status of the transaction
246
+ module Status
247
+ extend Lithic::Internal::Type::Enum
248
+
249
+ PENDING = :PENDING
250
+ SETTLED = :SETTLED
251
+ DECLINED = :DECLINED
252
+ REVERSED = :REVERSED
253
+ CANCELED = :CANCELED
254
+ RETURNED = :RETURNED
255
+
256
+ # @!method self.values
257
+ # @return [Array<Symbol>]
258
+ end
347
259
  end
348
260
 
349
261
  # @!method self.variants
@@ -65,9 +65,8 @@ module Lithic
65
65
  # @!attribute events
66
66
  # List of transaction events
67
67
  #
68
- # @return [Array<Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event>]
69
- required :events,
70
- -> { Lithic::Internal::Type::ArrayOf[Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event] }
68
+ # @return [Array<Lithic::Models::FinancialEvent>]
69
+ required :events, -> { Lithic::Internal::Type::ArrayOf[Lithic::FinancialEvent] }
71
70
 
72
71
  # @!attribute family
73
72
  # INTERNAL - Financial Transaction
@@ -126,7 +125,7 @@ module Lithic
126
125
  #
127
126
  # @param descriptor [String] Transaction descriptor
128
127
  #
129
- # @param events [Array<Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event>] List of transaction events
128
+ # @param events [Array<Lithic::Models::FinancialEvent>] List of transaction events
130
129
  #
131
130
  # @param financial_account_token [String] Financial account token associated with the transaction
132
131
  #
@@ -171,152 +170,6 @@ module Lithic
171
170
  # @return [Array<Symbol>]
172
171
  end
173
172
 
174
- class Event < Lithic::Internal::Type::BaseModel
175
- # @!attribute token
176
- # Globally unique identifier.
177
- #
178
- # @return [String, nil]
179
- optional :token, String
180
-
181
- # @!attribute amount
182
- # Amount of the financial event that has been settled in the currency's smallest
183
- # unit (e.g., cents).
184
- #
185
- # @return [Integer, nil]
186
- optional :amount, Integer
187
-
188
- # @!attribute created
189
- # Date and time when the financial event occurred. UTC time zone.
190
- #
191
- # @return [Time, nil]
192
- optional :created, Time
193
-
194
- # @!attribute result
195
- # APPROVED financial events were successful while DECLINED financial events were
196
- # declined by user, Lithic, or the network.
197
- #
198
- # @return [Symbol, Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::Result, nil]
199
- optional :result,
200
- enum: -> { Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::Result }
201
-
202
- # @!attribute type
203
- #
204
- # @return [Symbol, Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::Type, nil]
205
- optional :type,
206
- enum: -> { Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::Type }
207
-
208
- # @!method initialize(token: nil, amount: nil, created: nil, result: nil, type: nil)
209
- # Some parameter documentations has been truncated, see
210
- # {Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event}
211
- # for more details.
212
- #
213
- # Financial Event
214
- #
215
- # @param token [String] Globally unique identifier.
216
- #
217
- # @param amount [Integer] Amount of the financial event that has been settled in the currency's smallest u
218
- #
219
- # @param created [Time] Date and time when the financial event occurred. UTC time zone.
220
- #
221
- # @param result [Symbol, Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::Result] APPROVED financial events were successful while DECLINED financial events were d
222
- #
223
- # @param type [Symbol, Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::Type]
224
-
225
- # APPROVED financial events were successful while DECLINED financial events were
226
- # declined by user, Lithic, or the network.
227
- #
228
- # @see Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event#result
229
- module Result
230
- extend Lithic::Internal::Type::Enum
231
-
232
- APPROVED = :APPROVED
233
- DECLINED = :DECLINED
234
-
235
- # @!method self.values
236
- # @return [Array<Symbol>]
237
- end
238
-
239
- # @see Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event#type
240
- module Type
241
- extend Lithic::Internal::Type::Enum
242
-
243
- ACH_ORIGINATION_CANCELLED = :ACH_ORIGINATION_CANCELLED
244
- ACH_ORIGINATION_INITIATED = :ACH_ORIGINATION_INITIATED
245
- ACH_ORIGINATION_PROCESSED = :ACH_ORIGINATION_PROCESSED
246
- ACH_ORIGINATION_RELEASED = :ACH_ORIGINATION_RELEASED
247
- ACH_ORIGINATION_REJECTED = :ACH_ORIGINATION_REJECTED
248
- ACH_ORIGINATION_REVIEWED = :ACH_ORIGINATION_REVIEWED
249
- ACH_ORIGINATION_SETTLED = :ACH_ORIGINATION_SETTLED
250
- ACH_RECEIPT_PROCESSED = :ACH_RECEIPT_PROCESSED
251
- ACH_RECEIPT_RELEASED = :ACH_RECEIPT_RELEASED
252
- ACH_RECEIPT_SETTLED = :ACH_RECEIPT_SETTLED
253
- ACH_RETURN_INITIATED = :ACH_RETURN_INITIATED
254
- ACH_RETURN_PROCESSED = :ACH_RETURN_PROCESSED
255
- ACH_RETURN_REJECTED = :ACH_RETURN_REJECTED
256
- ACH_RETURN_SETTLED = :ACH_RETURN_SETTLED
257
- AUTHORIZATION = :AUTHORIZATION
258
- AUTHORIZATION_ADVICE = :AUTHORIZATION_ADVICE
259
- AUTHORIZATION_EXPIRY = :AUTHORIZATION_EXPIRY
260
- AUTHORIZATION_REVERSAL = :AUTHORIZATION_REVERSAL
261
- BALANCE_INQUIRY = :BALANCE_INQUIRY
262
- BILLING_ERROR = :BILLING_ERROR
263
- BILLING_ERROR_REVERSAL = :BILLING_ERROR_REVERSAL
264
- CARD_TO_CARD = :CARD_TO_CARD
265
- CASH_BACK = :CASH_BACK
266
- CASH_BACK_REVERSAL = :CASH_BACK_REVERSAL
267
- CLEARING = :CLEARING
268
- COLLECTION = :COLLECTION
269
- CORRECTION_CREDIT = :CORRECTION_CREDIT
270
- CORRECTION_DEBIT = :CORRECTION_DEBIT
271
- CREDIT_AUTHORIZATION = :CREDIT_AUTHORIZATION
272
- CREDIT_AUTHORIZATION_ADVICE = :CREDIT_AUTHORIZATION_ADVICE
273
- CURRENCY_CONVERSION = :CURRENCY_CONVERSION
274
- CURRENCY_CONVERSION_REVERSAL = :CURRENCY_CONVERSION_REVERSAL
275
- DISPUTE_WON = :DISPUTE_WON
276
- EXTERNAL_ACH_CANCELED = :EXTERNAL_ACH_CANCELED
277
- EXTERNAL_ACH_INITIATED = :EXTERNAL_ACH_INITIATED
278
- EXTERNAL_ACH_RELEASED = :EXTERNAL_ACH_RELEASED
279
- EXTERNAL_ACH_REVERSED = :EXTERNAL_ACH_REVERSED
280
- EXTERNAL_ACH_SETTLED = :EXTERNAL_ACH_SETTLED
281
- EXTERNAL_CHECK_CANCELED = :EXTERNAL_CHECK_CANCELED
282
- EXTERNAL_CHECK_INITIATED = :EXTERNAL_CHECK_INITIATED
283
- EXTERNAL_CHECK_RELEASED = :EXTERNAL_CHECK_RELEASED
284
- EXTERNAL_CHECK_REVERSED = :EXTERNAL_CHECK_REVERSED
285
- EXTERNAL_CHECK_SETTLED = :EXTERNAL_CHECK_SETTLED
286
- EXTERNAL_TRANSFER_CANCELED = :EXTERNAL_TRANSFER_CANCELED
287
- EXTERNAL_TRANSFER_INITIATED = :EXTERNAL_TRANSFER_INITIATED
288
- EXTERNAL_TRANSFER_RELEASED = :EXTERNAL_TRANSFER_RELEASED
289
- EXTERNAL_TRANSFER_REVERSED = :EXTERNAL_TRANSFER_REVERSED
290
- EXTERNAL_TRANSFER_SETTLED = :EXTERNAL_TRANSFER_SETTLED
291
- EXTERNAL_WIRE_CANCELED = :EXTERNAL_WIRE_CANCELED
292
- EXTERNAL_WIRE_INITIATED = :EXTERNAL_WIRE_INITIATED
293
- EXTERNAL_WIRE_RELEASED = :EXTERNAL_WIRE_RELEASED
294
- EXTERNAL_WIRE_REVERSED = :EXTERNAL_WIRE_REVERSED
295
- EXTERNAL_WIRE_SETTLED = :EXTERNAL_WIRE_SETTLED
296
- FINANCIAL_AUTHORIZATION = :FINANCIAL_AUTHORIZATION
297
- FINANCIAL_CREDIT_AUTHORIZATION = :FINANCIAL_CREDIT_AUTHORIZATION
298
- INTEREST = :INTEREST
299
- INTEREST_REVERSAL = :INTEREST_REVERSAL
300
- INTERNAL_ADJUSTMENT = :INTERNAL_ADJUSTMENT
301
- LATE_PAYMENT = :LATE_PAYMENT
302
- LATE_PAYMENT_REVERSAL = :LATE_PAYMENT_REVERSAL
303
- LOSS_WRITE_OFF = :LOSS_WRITE_OFF
304
- PROVISIONAL_CREDIT = :PROVISIONAL_CREDIT
305
- PROVISIONAL_CREDIT_REVERSAL = :PROVISIONAL_CREDIT_REVERSAL
306
- SERVICE = :SERVICE
307
- RETURN = :RETURN
308
- RETURN_REVERSAL = :RETURN_REVERSAL
309
- TRANSFER = :TRANSFER
310
- TRANSFER_INSUFFICIENT_FUNDS = :TRANSFER_INSUFFICIENT_FUNDS
311
- RETURNED_PAYMENT = :RETURNED_PAYMENT
312
- RETURNED_PAYMENT_REVERSAL = :RETURNED_PAYMENT_REVERSAL
313
- LITHIC_NETWORK_PAYMENT = :LITHIC_NETWORK_PAYMENT
314
-
315
- # @!method self.values
316
- # @return [Array<Symbol>]
317
- end
318
- end
319
-
320
173
  # Transaction result
321
174
  #
322
175
  # @see Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal#result
@@ -341,6 +194,7 @@ module Lithic
341
194
  DECLINED = :DECLINED
342
195
  REVERSED = :REVERSED
343
196
  CANCELED = :CANCELED
197
+ RETURNED = :RETURNED
344
198
 
345
199
  # @!method self.values
346
200
  # @return [Array<Symbol>]
@@ -348,8 +202,63 @@ module Lithic
348
202
  end
349
203
 
350
204
  class Card < Lithic::Models::Transaction
351
- # @!method initialize
205
+ # @!attribute token
206
+ # Unique identifier for the transaction
207
+ #
208
+ # @return [String]
209
+ required :token, String
210
+
211
+ # @!attribute created
212
+ # ISO 8601 timestamp of when the transaction was created
213
+ #
214
+ # @return [Time]
215
+ required :created, Time
216
+
217
+ # @!attribute family
218
+ # CARD - Card Transaction
219
+ #
220
+ # @return [Symbol, :CARD]
221
+ required :family, const: :CARD
222
+
223
+ # @!attribute status
224
+ # The status of the transaction
225
+ #
226
+ # @return [Symbol, Lithic::Models::AccountActivityRetrieveTransactionResponse::Card::Status]
227
+ required :status, enum: -> { Lithic::Models::AccountActivityRetrieveTransactionResponse::Card::Status }
228
+
229
+ # @!attribute updated
230
+ # ISO 8601 timestamp of when the transaction was last updated
231
+ #
232
+ # @return [Time]
233
+ required :updated, Time
234
+
235
+ # @!method initialize(token:, created:, status:, updated:, family: :CARD)
352
236
  # Card transaction with ledger base properties
237
+ #
238
+ # @param token [String] Unique identifier for the transaction
239
+ #
240
+ # @param created [Time] ISO 8601 timestamp of when the transaction was created
241
+ #
242
+ # @param status [Symbol, Lithic::Models::AccountActivityRetrieveTransactionResponse::Card::Status] The status of the transaction
243
+ #
244
+ # @param updated [Time] ISO 8601 timestamp of when the transaction was last updated
245
+ #
246
+ # @param family [Symbol, :CARD] CARD - Card Transaction
247
+
248
+ # The status of the transaction
249
+ module Status
250
+ extend Lithic::Internal::Type::Enum
251
+
252
+ PENDING = :PENDING
253
+ SETTLED = :SETTLED
254
+ DECLINED = :DECLINED
255
+ REVERSED = :REVERSED
256
+ CANCELED = :CANCELED
257
+ RETURNED = :RETURNED
258
+
259
+ # @!method self.values
260
+ # @return [Array<Symbol>]
261
+ end
353
262
  end
354
263
 
355
264
  # @!method self.variants
@@ -40,7 +40,7 @@ module Lithic
40
40
  # with the AUTHORIZED_USER in this field.
41
41
  #
42
42
  # @return [String, nil]
43
- optional :business_account_token, String
43
+ optional :business_account_token, String, nil?: true
44
44
 
45
45
  # @!attribute business_entity
46
46
  # Only present when user_type == "BUSINESS". Information about the business for
@@ -179,7 +179,7 @@ module Lithic
179
179
  #
180
180
  # @param beneficial_owner_individuals [Array<Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::BeneficialOwnerIndividual>] Only present when user_type == "BUSINESS". You must submit a list of all direct
181
181
  #
182
- # @param business_account_token [String] Only applicable for customers using the KYC-Exempt workflow to enroll authorized
182
+ # @param business_account_token [String, nil] Only applicable for customers using the KYC-Exempt workflow to enroll authorized
183
183
  #
184
184
  # @param business_entity [Lithic::Models::KYBBusinessEntity] Only present when user_type == "BUSINESS". Information about the business for wh
185
185
  #
@@ -47,7 +47,7 @@ module Lithic
47
47
  # with the AUTHORIZED_USER in this field.
48
48
  #
49
49
  # @return [String, nil]
50
- optional :business_account_token, String
50
+ optional :business_account_token, String, nil?: true
51
51
 
52
52
  # @!attribute business_entity
53
53
  # Only present when user_type == "BUSINESS". Information about the business for
@@ -187,7 +187,7 @@ module Lithic
187
187
  #
188
188
  # @param beneficial_owner_individuals [Array<Lithic::Models::AccountHolderUpdateResponse::KYBKYCPatchResponse::BeneficialOwnerIndividual>] Only present when user_type == "BUSINESS". You must submit a list of all direct
189
189
  #
190
- # @param business_account_token [String] Only applicable for customers using the KYC-Exempt workflow to enroll authorized
190
+ # @param business_account_token [String, nil] Only applicable for customers using the KYC-Exempt workflow to enroll authorized
191
191
  #
192
192
  # @param business_entity [Lithic::Models::KYBBusinessEntity] Only present when user_type == "BUSINESS". Information about the business for wh
193
193
  #
@@ -813,7 +813,7 @@ module Lithic
813
813
  # The token for the business account that the account holder is associated with
814
814
  #
815
815
  # @return [String, nil]
816
- optional :business_account_token, String
816
+ optional :business_account_token, String, nil?: true
817
817
 
818
818
  # @!attribute email
819
819
  # The email for the account holder
@@ -850,7 +850,7 @@ module Lithic
850
850
  #
851
851
  # @param address [Lithic::Models::AccountHolderUpdateResponse::PatchResponse::Address] The address for the account holder
852
852
  #
853
- # @param business_account_token [String] The token for the business account that the account holder is associated with
853
+ # @param business_account_token [String, nil] The token for the business account that the account holder is associated with
854
854
  #
855
855
  # @param email [String] The email for the account holder
856
856
  #