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
@@ -15,37 +15,106 @@ module Lithic
15
15
  sig { returns(Time) }
16
16
  attr_accessor :created
17
17
 
18
- # Event types:
18
+ # The type of event that occurred. Possible values:
19
19
  #
20
- # - `account_holder.created` - Notification that a new account holder has been
21
- # created and was not rejected.
22
- # - `account_holder.updated` - Notification that an account holder was updated.
23
- # - `account_holder.verification` - Notification than an account holder's identity
24
- # verification is complete.
25
- # - `card.created` - Notification that a card has been created.
26
- # - `card.renewed` - Notification that a card has been renewed.
27
- # - `card.reissued` - Notification that a card has been reissued.
28
- # - `card.shipped` - Physical card shipment notification. See
29
- # https://docs.lithic.com/docs/cards#physical-card-shipped-webhook.
30
- # - `card.converted` - Notification that a virtual card has been converted to a
31
- # physical card.
32
- # - `card_transaction.updated` - Transaction Lifecycle webhook. See
33
- # https://docs.lithic.com/docs/transaction-webhooks.
34
- # - `dispute.updated` - A dispute has been updated.
35
- # - `dispute_transaction.created` - A new dispute transaction has been created.
36
- # - `dispute_transaction.updated` - A dispute transaction has been updated.
37
- # - `digital_wallet.tokenization_approval_request` - Card network's request to
38
- # Lithic to activate a digital wallet token.
39
- # - `digital_wallet.tokenization_result` - Notification of the end result of a
40
- # tokenization, whether successful or failed.
41
- # - `digital_wallet.tokenization_two_factor_authentication_code` - A code to be
42
- # passed to an end user to complete digital wallet authentication. See
43
- # https://docs.lithic.com/docs/tokenization-control#digital-wallet-tokenization-auth-code.
44
- # - `digital_wallet.tokenization_two_factor_authentication_code_sent` -
45
- # Notification that a two factor authentication code for activating a digital
46
- # wallet has been sent to the end user.
47
- # - `digital_wallet.tokenization_updated` - Notification that a digital wallet
48
- # tokenization's status has changed.
20
+ # - account_holder_document.updated: Occurs when an account holder's document
21
+ # upload status has been updated
22
+ # - account_holder.created: Occurs when a new account_holder is created.
23
+ # - account_holder.updated: Occurs when an account_holder is updated.
24
+ # - account_holder.verification: Occurs when an asynchronous account_holder's
25
+ # verification is completed.
26
+ # - auth_rules.backtest_report.created: Auth Rules backtest report created.
27
+ # - balance.updated: Financial Account Balance Update
28
+ # - book_transfer_transaction.created: Occurs when a book transfer transaction is
29
+ # created.
30
+ # - book_transfer_transaction.updated: Occurs when a book transfer transaction is
31
+ # updated.
32
+ # - card_transaction.enhanced_data.created: Occurs when L2/L3 enhanced commercial
33
+ # data is processed for a transaction event.
34
+ # - card_transaction.enhanced_data.updated: Occurs when L2/L3 enhanced commercial
35
+ # data is reprocessed for a transaction event.
36
+ # - card_transaction.updated: Occurs when a card transaction happens.
37
+ # - card.converted: Occurs when a card is converted from virtual to physical
38
+ # cards.
39
+ # - card.created: Occurs when a new card is created.
40
+ # - card.reissued: Occurs when a card is reissued.
41
+ # - card.renewed: Occurs when a card is renewed.
42
+ # - card.shipped: Occurs when a card is shipped.
43
+ # - digital_wallet.tokenization_approval_request: Occurs when a tokenization
44
+ # approval request is made. This event will be deprecated in the future. We
45
+ # recommend using `tokenization.approval_request` instead.
46
+ # - digital_wallet.tokenization_result: Occurs when a tokenization request
47
+ # succeeded or failed.
48
+ #
49
+ # This event will be deprecated in the future. We recommend using
50
+ # `tokenization.result` instead.
51
+ #
52
+ # - digital_wallet.tokenization_two_factor_authentication_code: Occurs when a
53
+ # tokenization request 2FA code is sent to the Lithic customer for self serve
54
+ # delivery.
55
+ #
56
+ # This event will be deprecated in the future. We recommend using
57
+ # `tokenization.two_factor_authentication_code` instead.
58
+ #
59
+ # - digital_wallet.tokenization_two_factor_authentication_code_sent: Occurs when a
60
+ # tokenization request 2FA code is sent to our downstream messaging providers
61
+ # for delivery.
62
+ #
63
+ # This event will be deprecated in the future. We recommend using
64
+ # `tokenization.two_factor_authentication_code_sent` instead.
65
+ #
66
+ # - digital_wallet.tokenization_updated: Occurs when a tokenization's status has
67
+ # changed.
68
+ #
69
+ # This event will be deprecated in the future. We recommend using
70
+ # `tokenization.updated` instead.
71
+ #
72
+ # - dispute_evidence.upload_failed: Occurs when a dispute evidence upload fails.
73
+ # - dispute_transaction.created: Occurs when a new dispute transaction is created
74
+ # - dispute_transaction.updated: Occurs when a dispute transaction is updated
75
+ # - dispute.updated: Occurs when a dispute is updated.
76
+ # - external_bank_account.created: Occurs when an external bank account is
77
+ # created.
78
+ # - external_bank_account.updated: Occurs when an external bank account is
79
+ # updated.
80
+ # - external_payment.created: Occurs when an external payment is created.
81
+ # - external_payment.updated: Occurs when an external payment is updated.
82
+ # - financial_account.created: Occurs when a financial account is created.
83
+ # - financial_account.updated: Occurs when a financial account is updated.
84
+ # - funding_event.created: Occurs when a funding event is created.
85
+ # - internal_transaction.created: Occurs when an internal adjustment is created.
86
+ # - internal_transaction.updated: Occurs when an internal adjustment is updated.
87
+ # - loan_tape.created: Occurs when a loan tape is created.
88
+ # - loan_tape.updated: Occurs when a loan tape is updated.
89
+ # - management_operation.created: Occurs when an management operation is created.
90
+ # - management_operation.updated: Occurs when an management operation is updated.
91
+ # - network_total.created: Occurs when a network total is created.
92
+ # - network_total.updated: Occurs when a network total is updated.
93
+ # - payment_transaction.created: Occurs when a payment transaction is created.
94
+ # - payment_transaction.updated: Occurs when a payment transaction is updated.
95
+ # - settlement_report.updated: Occurs when a settlement report is created or
96
+ # updated.
97
+ # - statements.created: Occurs when a statement has been created
98
+ # - three_ds_authentication.challenge: The `three_ds_authentication.challenge`
99
+ # event. Upon receiving this request, the Card Program should issue its own
100
+ # challenge to the cardholder. After a cardholder challenge is successfully
101
+ # completed, the Card Program needs to respond back to Lithic by call to
102
+ # [/v1/three_ds_decisioning/challenge_response](https://docs.lithic.com/reference/post_v1-three-ds-decisioning-challenge-response).
103
+ # Then the cardholder must navigate back to the merchant checkout flow to
104
+ # complete the transaction. Some merchants will include an `app_requestor_url`
105
+ # for app-based purchases; Lithic recommends triggering a redirect to that URL
106
+ # after the cardholder completes an app-based challenge.
107
+ # - three_ds_authentication.created: Occurs when a 3DS authentication is created.
108
+ # - three_ds_authentication.updated: Occurs when a 3DS authentication is updated
109
+ # (eg. challenge is completed).
110
+ # - tokenization.approval_request: Occurs when a tokenization approval request is
111
+ # made.
112
+ # - tokenization.result: Occurs when a tokenization request succeeded or failed.
113
+ # - tokenization.two_factor_authentication_code: Occurs when a tokenization
114
+ # request 2FA code is sent to the Lithic customer for self serve delivery.
115
+ # - tokenization.two_factor_authentication_code_sent: Occurs when a tokenization
116
+ # request 2FA code is sent to our downstream messaging providers for delivery.
117
+ # - tokenization.updated: Occurs when a tokenization's status has changed.
49
118
  sig { returns(Lithic::Event::EventType::TaggedSymbol) }
50
119
  attr_accessor :event_type
51
120
 
@@ -68,37 +137,106 @@ module Lithic
68
137
  #
69
138
  # If no timezone is specified, UTC will be used.
70
139
  created:,
71
- # Event types:
140
+ # The type of event that occurred. Possible values:
141
+ #
142
+ # - account_holder_document.updated: Occurs when an account holder's document
143
+ # upload status has been updated
144
+ # - account_holder.created: Occurs when a new account_holder is created.
145
+ # - account_holder.updated: Occurs when an account_holder is updated.
146
+ # - account_holder.verification: Occurs when an asynchronous account_holder's
147
+ # verification is completed.
148
+ # - auth_rules.backtest_report.created: Auth Rules backtest report created.
149
+ # - balance.updated: Financial Account Balance Update
150
+ # - book_transfer_transaction.created: Occurs when a book transfer transaction is
151
+ # created.
152
+ # - book_transfer_transaction.updated: Occurs when a book transfer transaction is
153
+ # updated.
154
+ # - card_transaction.enhanced_data.created: Occurs when L2/L3 enhanced commercial
155
+ # data is processed for a transaction event.
156
+ # - card_transaction.enhanced_data.updated: Occurs when L2/L3 enhanced commercial
157
+ # data is reprocessed for a transaction event.
158
+ # - card_transaction.updated: Occurs when a card transaction happens.
159
+ # - card.converted: Occurs when a card is converted from virtual to physical
160
+ # cards.
161
+ # - card.created: Occurs when a new card is created.
162
+ # - card.reissued: Occurs when a card is reissued.
163
+ # - card.renewed: Occurs when a card is renewed.
164
+ # - card.shipped: Occurs when a card is shipped.
165
+ # - digital_wallet.tokenization_approval_request: Occurs when a tokenization
166
+ # approval request is made. This event will be deprecated in the future. We
167
+ # recommend using `tokenization.approval_request` instead.
168
+ # - digital_wallet.tokenization_result: Occurs when a tokenization request
169
+ # succeeded or failed.
170
+ #
171
+ # This event will be deprecated in the future. We recommend using
172
+ # `tokenization.result` instead.
173
+ #
174
+ # - digital_wallet.tokenization_two_factor_authentication_code: Occurs when a
175
+ # tokenization request 2FA code is sent to the Lithic customer for self serve
176
+ # delivery.
72
177
  #
73
- # - `account_holder.created` - Notification that a new account holder has been
74
- # created and was not rejected.
75
- # - `account_holder.updated` - Notification that an account holder was updated.
76
- # - `account_holder.verification` - Notification than an account holder's identity
77
- # verification is complete.
78
- # - `card.created` - Notification that a card has been created.
79
- # - `card.renewed` - Notification that a card has been renewed.
80
- # - `card.reissued` - Notification that a card has been reissued.
81
- # - `card.shipped` - Physical card shipment notification. See
82
- # https://docs.lithic.com/docs/cards#physical-card-shipped-webhook.
83
- # - `card.converted` - Notification that a virtual card has been converted to a
84
- # physical card.
85
- # - `card_transaction.updated` - Transaction Lifecycle webhook. See
86
- # https://docs.lithic.com/docs/transaction-webhooks.
87
- # - `dispute.updated` - A dispute has been updated.
88
- # - `dispute_transaction.created` - A new dispute transaction has been created.
89
- # - `dispute_transaction.updated` - A dispute transaction has been updated.
90
- # - `digital_wallet.tokenization_approval_request` - Card network's request to
91
- # Lithic to activate a digital wallet token.
92
- # - `digital_wallet.tokenization_result` - Notification of the end result of a
93
- # tokenization, whether successful or failed.
94
- # - `digital_wallet.tokenization_two_factor_authentication_code` - A code to be
95
- # passed to an end user to complete digital wallet authentication. See
96
- # https://docs.lithic.com/docs/tokenization-control#digital-wallet-tokenization-auth-code.
97
- # - `digital_wallet.tokenization_two_factor_authentication_code_sent` -
98
- # Notification that a two factor authentication code for activating a digital
99
- # wallet has been sent to the end user.
100
- # - `digital_wallet.tokenization_updated` - Notification that a digital wallet
101
- # tokenization's status has changed.
178
+ # This event will be deprecated in the future. We recommend using
179
+ # `tokenization.two_factor_authentication_code` instead.
180
+ #
181
+ # - digital_wallet.tokenization_two_factor_authentication_code_sent: Occurs when a
182
+ # tokenization request 2FA code is sent to our downstream messaging providers
183
+ # for delivery.
184
+ #
185
+ # This event will be deprecated in the future. We recommend using
186
+ # `tokenization.two_factor_authentication_code_sent` instead.
187
+ #
188
+ # - digital_wallet.tokenization_updated: Occurs when a tokenization's status has
189
+ # changed.
190
+ #
191
+ # This event will be deprecated in the future. We recommend using
192
+ # `tokenization.updated` instead.
193
+ #
194
+ # - dispute_evidence.upload_failed: Occurs when a dispute evidence upload fails.
195
+ # - dispute_transaction.created: Occurs when a new dispute transaction is created
196
+ # - dispute_transaction.updated: Occurs when a dispute transaction is updated
197
+ # - dispute.updated: Occurs when a dispute is updated.
198
+ # - external_bank_account.created: Occurs when an external bank account is
199
+ # created.
200
+ # - external_bank_account.updated: Occurs when an external bank account is
201
+ # updated.
202
+ # - external_payment.created: Occurs when an external payment is created.
203
+ # - external_payment.updated: Occurs when an external payment is updated.
204
+ # - financial_account.created: Occurs when a financial account is created.
205
+ # - financial_account.updated: Occurs when a financial account is updated.
206
+ # - funding_event.created: Occurs when a funding event is created.
207
+ # - internal_transaction.created: Occurs when an internal adjustment is created.
208
+ # - internal_transaction.updated: Occurs when an internal adjustment is updated.
209
+ # - loan_tape.created: Occurs when a loan tape is created.
210
+ # - loan_tape.updated: Occurs when a loan tape is updated.
211
+ # - management_operation.created: Occurs when an management operation is created.
212
+ # - management_operation.updated: Occurs when an management operation is updated.
213
+ # - network_total.created: Occurs when a network total is created.
214
+ # - network_total.updated: Occurs when a network total is updated.
215
+ # - payment_transaction.created: Occurs when a payment transaction is created.
216
+ # - payment_transaction.updated: Occurs when a payment transaction is updated.
217
+ # - settlement_report.updated: Occurs when a settlement report is created or
218
+ # updated.
219
+ # - statements.created: Occurs when a statement has been created
220
+ # - three_ds_authentication.challenge: The `three_ds_authentication.challenge`
221
+ # event. Upon receiving this request, the Card Program should issue its own
222
+ # challenge to the cardholder. After a cardholder challenge is successfully
223
+ # completed, the Card Program needs to respond back to Lithic by call to
224
+ # [/v1/three_ds_decisioning/challenge_response](https://docs.lithic.com/reference/post_v1-three-ds-decisioning-challenge-response).
225
+ # Then the cardholder must navigate back to the merchant checkout flow to
226
+ # complete the transaction. Some merchants will include an `app_requestor_url`
227
+ # for app-based purchases; Lithic recommends triggering a redirect to that URL
228
+ # after the cardholder completes an app-based challenge.
229
+ # - three_ds_authentication.created: Occurs when a 3DS authentication is created.
230
+ # - three_ds_authentication.updated: Occurs when a 3DS authentication is updated
231
+ # (eg. challenge is completed).
232
+ # - tokenization.approval_request: Occurs when a tokenization approval request is
233
+ # made.
234
+ # - tokenization.result: Occurs when a tokenization request succeeded or failed.
235
+ # - tokenization.two_factor_authentication_code: Occurs when a tokenization
236
+ # request 2FA code is sent to the Lithic customer for self serve delivery.
237
+ # - tokenization.two_factor_authentication_code_sent: Occurs when a tokenization
238
+ # request 2FA code is sent to our downstream messaging providers for delivery.
239
+ # - tokenization.updated: Occurs when a tokenization's status has changed.
102
240
  event_type:,
103
241
  payload:
104
242
  )
@@ -117,43 +255,117 @@ module Lithic
117
255
  def to_hash
118
256
  end
119
257
 
120
- # Event types:
258
+ # The type of event that occurred. Possible values:
259
+ #
260
+ # - account_holder_document.updated: Occurs when an account holder's document
261
+ # upload status has been updated
262
+ # - account_holder.created: Occurs when a new account_holder is created.
263
+ # - account_holder.updated: Occurs when an account_holder is updated.
264
+ # - account_holder.verification: Occurs when an asynchronous account_holder's
265
+ # verification is completed.
266
+ # - auth_rules.backtest_report.created: Auth Rules backtest report created.
267
+ # - balance.updated: Financial Account Balance Update
268
+ # - book_transfer_transaction.created: Occurs when a book transfer transaction is
269
+ # created.
270
+ # - book_transfer_transaction.updated: Occurs when a book transfer transaction is
271
+ # updated.
272
+ # - card_transaction.enhanced_data.created: Occurs when L2/L3 enhanced commercial
273
+ # data is processed for a transaction event.
274
+ # - card_transaction.enhanced_data.updated: Occurs when L2/L3 enhanced commercial
275
+ # data is reprocessed for a transaction event.
276
+ # - card_transaction.updated: Occurs when a card transaction happens.
277
+ # - card.converted: Occurs when a card is converted from virtual to physical
278
+ # cards.
279
+ # - card.created: Occurs when a new card is created.
280
+ # - card.reissued: Occurs when a card is reissued.
281
+ # - card.renewed: Occurs when a card is renewed.
282
+ # - card.shipped: Occurs when a card is shipped.
283
+ # - digital_wallet.tokenization_approval_request: Occurs when a tokenization
284
+ # approval request is made. This event will be deprecated in the future. We
285
+ # recommend using `tokenization.approval_request` instead.
286
+ # - digital_wallet.tokenization_result: Occurs when a tokenization request
287
+ # succeeded or failed.
288
+ #
289
+ # This event will be deprecated in the future. We recommend using
290
+ # `tokenization.result` instead.
291
+ #
292
+ # - digital_wallet.tokenization_two_factor_authentication_code: Occurs when a
293
+ # tokenization request 2FA code is sent to the Lithic customer for self serve
294
+ # delivery.
295
+ #
296
+ # This event will be deprecated in the future. We recommend using
297
+ # `tokenization.two_factor_authentication_code` instead.
298
+ #
299
+ # - digital_wallet.tokenization_two_factor_authentication_code_sent: Occurs when a
300
+ # tokenization request 2FA code is sent to our downstream messaging providers
301
+ # for delivery.
121
302
  #
122
- # - `account_holder.created` - Notification that a new account holder has been
123
- # created and was not rejected.
124
- # - `account_holder.updated` - Notification that an account holder was updated.
125
- # - `account_holder.verification` - Notification than an account holder's identity
126
- # verification is complete.
127
- # - `card.created` - Notification that a card has been created.
128
- # - `card.renewed` - Notification that a card has been renewed.
129
- # - `card.reissued` - Notification that a card has been reissued.
130
- # - `card.shipped` - Physical card shipment notification. See
131
- # https://docs.lithic.com/docs/cards#physical-card-shipped-webhook.
132
- # - `card.converted` - Notification that a virtual card has been converted to a
133
- # physical card.
134
- # - `card_transaction.updated` - Transaction Lifecycle webhook. See
135
- # https://docs.lithic.com/docs/transaction-webhooks.
136
- # - `dispute.updated` - A dispute has been updated.
137
- # - `dispute_transaction.created` - A new dispute transaction has been created.
138
- # - `dispute_transaction.updated` - A dispute transaction has been updated.
139
- # - `digital_wallet.tokenization_approval_request` - Card network's request to
140
- # Lithic to activate a digital wallet token.
141
- # - `digital_wallet.tokenization_result` - Notification of the end result of a
142
- # tokenization, whether successful or failed.
143
- # - `digital_wallet.tokenization_two_factor_authentication_code` - A code to be
144
- # passed to an end user to complete digital wallet authentication. See
145
- # https://docs.lithic.com/docs/tokenization-control#digital-wallet-tokenization-auth-code.
146
- # - `digital_wallet.tokenization_two_factor_authentication_code_sent` -
147
- # Notification that a two factor authentication code for activating a digital
148
- # wallet has been sent to the end user.
149
- # - `digital_wallet.tokenization_updated` - Notification that a digital wallet
150
- # tokenization's status has changed.
303
+ # This event will be deprecated in the future. We recommend using
304
+ # `tokenization.two_factor_authentication_code_sent` instead.
305
+ #
306
+ # - digital_wallet.tokenization_updated: Occurs when a tokenization's status has
307
+ # changed.
308
+ #
309
+ # This event will be deprecated in the future. We recommend using
310
+ # `tokenization.updated` instead.
311
+ #
312
+ # - dispute_evidence.upload_failed: Occurs when a dispute evidence upload fails.
313
+ # - dispute_transaction.created: Occurs when a new dispute transaction is created
314
+ # - dispute_transaction.updated: Occurs when a dispute transaction is updated
315
+ # - dispute.updated: Occurs when a dispute is updated.
316
+ # - external_bank_account.created: Occurs when an external bank account is
317
+ # created.
318
+ # - external_bank_account.updated: Occurs when an external bank account is
319
+ # updated.
320
+ # - external_payment.created: Occurs when an external payment is created.
321
+ # - external_payment.updated: Occurs when an external payment is updated.
322
+ # - financial_account.created: Occurs when a financial account is created.
323
+ # - financial_account.updated: Occurs when a financial account is updated.
324
+ # - funding_event.created: Occurs when a funding event is created.
325
+ # - internal_transaction.created: Occurs when an internal adjustment is created.
326
+ # - internal_transaction.updated: Occurs when an internal adjustment is updated.
327
+ # - loan_tape.created: Occurs when a loan tape is created.
328
+ # - loan_tape.updated: Occurs when a loan tape is updated.
329
+ # - management_operation.created: Occurs when an management operation is created.
330
+ # - management_operation.updated: Occurs when an management operation is updated.
331
+ # - network_total.created: Occurs when a network total is created.
332
+ # - network_total.updated: Occurs when a network total is updated.
333
+ # - payment_transaction.created: Occurs when a payment transaction is created.
334
+ # - payment_transaction.updated: Occurs when a payment transaction is updated.
335
+ # - settlement_report.updated: Occurs when a settlement report is created or
336
+ # updated.
337
+ # - statements.created: Occurs when a statement has been created
338
+ # - three_ds_authentication.challenge: The `three_ds_authentication.challenge`
339
+ # event. Upon receiving this request, the Card Program should issue its own
340
+ # challenge to the cardholder. After a cardholder challenge is successfully
341
+ # completed, the Card Program needs to respond back to Lithic by call to
342
+ # [/v1/three_ds_decisioning/challenge_response](https://docs.lithic.com/reference/post_v1-three-ds-decisioning-challenge-response).
343
+ # Then the cardholder must navigate back to the merchant checkout flow to
344
+ # complete the transaction. Some merchants will include an `app_requestor_url`
345
+ # for app-based purchases; Lithic recommends triggering a redirect to that URL
346
+ # after the cardholder completes an app-based challenge.
347
+ # - three_ds_authentication.created: Occurs when a 3DS authentication is created.
348
+ # - three_ds_authentication.updated: Occurs when a 3DS authentication is updated
349
+ # (eg. challenge is completed).
350
+ # - tokenization.approval_request: Occurs when a tokenization approval request is
351
+ # made.
352
+ # - tokenization.result: Occurs when a tokenization request succeeded or failed.
353
+ # - tokenization.two_factor_authentication_code: Occurs when a tokenization
354
+ # request 2FA code is sent to the Lithic customer for self serve delivery.
355
+ # - tokenization.two_factor_authentication_code_sent: Occurs when a tokenization
356
+ # request 2FA code is sent to our downstream messaging providers for delivery.
357
+ # - tokenization.updated: Occurs when a tokenization's status has changed.
151
358
  module EventType
152
359
  extend Lithic::Internal::Type::Enum
153
360
 
154
361
  TaggedSymbol = T.type_alias { T.all(Symbol, Lithic::Event::EventType) }
155
362
  OrSymbol = T.type_alias { T.any(Symbol, String) }
156
363
 
364
+ ACCOUNT_HOLDER_DOCUMENT_UPDATED =
365
+ T.let(
366
+ :"account_holder_document.updated",
367
+ Lithic::Event::EventType::TaggedSymbol
368
+ )
157
369
  ACCOUNT_HOLDER_CREATED =
158
370
  T.let(
159
371
  :"account_holder.created",
@@ -169,6 +381,11 @@ module Lithic
169
381
  :"account_holder.verification",
170
382
  Lithic::Event::EventType::TaggedSymbol
171
383
  )
384
+ AUTH_RULES_BACKTEST_REPORT_CREATED =
385
+ T.let(
386
+ :"auth_rules.backtest_report.created",
387
+ Lithic::Event::EventType::TaggedSymbol
388
+ )
172
389
  BALANCE_UPDATED =
173
390
  T.let(:"balance.updated", Lithic::Event::EventType::TaggedSymbol)
174
391
  BOOK_TRANSFER_TRANSACTION_CREATED =
@@ -176,21 +393,36 @@ module Lithic
176
393
  :"book_transfer_transaction.created",
177
394
  Lithic::Event::EventType::TaggedSymbol
178
395
  )
396
+ BOOK_TRANSFER_TRANSACTION_UPDATED =
397
+ T.let(
398
+ :"book_transfer_transaction.updated",
399
+ Lithic::Event::EventType::TaggedSymbol
400
+ )
401
+ CARD_TRANSACTION_ENHANCED_DATA_CREATED =
402
+ T.let(
403
+ :"card_transaction.enhanced_data.created",
404
+ Lithic::Event::EventType::TaggedSymbol
405
+ )
406
+ CARD_TRANSACTION_ENHANCED_DATA_UPDATED =
407
+ T.let(
408
+ :"card_transaction.enhanced_data.updated",
409
+ Lithic::Event::EventType::TaggedSymbol
410
+ )
411
+ CARD_TRANSACTION_UPDATED =
412
+ T.let(
413
+ :"card_transaction.updated",
414
+ Lithic::Event::EventType::TaggedSymbol
415
+ )
416
+ CARD_CONVERTED =
417
+ T.let(:"card.converted", Lithic::Event::EventType::TaggedSymbol)
179
418
  CARD_CREATED =
180
419
  T.let(:"card.created", Lithic::Event::EventType::TaggedSymbol)
181
- CARD_RENEWED =
182
- T.let(:"card.renewed", Lithic::Event::EventType::TaggedSymbol)
183
420
  CARD_REISSUED =
184
421
  T.let(:"card.reissued", Lithic::Event::EventType::TaggedSymbol)
185
- CARD_CONVERTED =
186
- T.let(:"card.converted", Lithic::Event::EventType::TaggedSymbol)
422
+ CARD_RENEWED =
423
+ T.let(:"card.renewed", Lithic::Event::EventType::TaggedSymbol)
187
424
  CARD_SHIPPED =
188
425
  T.let(:"card.shipped", Lithic::Event::EventType::TaggedSymbol)
189
- CARD_TRANSACTION_UPDATED =
190
- T.let(
191
- :"card_transaction.updated",
192
- Lithic::Event::EventType::TaggedSymbol
193
- )
194
426
  DIGITAL_WALLET_TOKENIZATION_APPROVAL_REQUEST =
195
427
  T.let(
196
428
  :"digital_wallet.tokenization_approval_request",
@@ -216,8 +448,6 @@ module Lithic
216
448
  :"digital_wallet.tokenization_updated",
217
449
  Lithic::Event::EventType::TaggedSymbol
218
450
  )
219
- DISPUTE_UPDATED =
220
- T.let(:"dispute.updated", Lithic::Event::EventType::TaggedSymbol)
221
451
  DISPUTE_EVIDENCE_UPLOAD_FAILED =
222
452
  T.let(
223
453
  :"dispute_evidence.upload_failed",
@@ -233,6 +463,8 @@ module Lithic
233
463
  :"dispute_transaction.updated",
234
464
  Lithic::Event::EventType::TaggedSymbol
235
465
  )
466
+ DISPUTE_UPDATED =
467
+ T.let(:"dispute.updated", Lithic::Event::EventType::TaggedSymbol)
236
468
  EXTERNAL_BANK_ACCOUNT_CREATED =
237
469
  T.let(
238
470
  :"external_bank_account.created",
@@ -268,6 +500,16 @@ module Lithic
268
500
  :"funding_event.created",
269
501
  Lithic::Event::EventType::TaggedSymbol
270
502
  )
503
+ INTERNAL_TRANSACTION_CREATED =
504
+ T.let(
505
+ :"internal_transaction.created",
506
+ Lithic::Event::EventType::TaggedSymbol
507
+ )
508
+ INTERNAL_TRANSACTION_UPDATED =
509
+ T.let(
510
+ :"internal_transaction.updated",
511
+ Lithic::Event::EventType::TaggedSymbol
512
+ )
271
513
  LOAN_TAPE_CREATED =
272
514
  T.let(:"loan_tape.created", Lithic::Event::EventType::TaggedSymbol)
273
515
  LOAN_TAPE_UPDATED =
@@ -302,16 +544,6 @@ module Lithic
302
544
  :"payment_transaction.updated",
303
545
  Lithic::Event::EventType::TaggedSymbol
304
546
  )
305
- INTERNAL_TRANSACTION_CREATED =
306
- T.let(
307
- :"internal_transaction.created",
308
- Lithic::Event::EventType::TaggedSymbol
309
- )
310
- INTERNAL_TRANSACTION_UPDATED =
311
- T.let(
312
- :"internal_transaction.updated",
313
- Lithic::Event::EventType::TaggedSymbol
314
- )
315
547
  SETTLEMENT_REPORT_UPDATED =
316
548
  T.let(
317
549
  :"settlement_report.updated",
@@ -319,6 +551,11 @@ module Lithic
319
551
  )
320
552
  STATEMENTS_CREATED =
321
553
  T.let(:"statements.created", Lithic::Event::EventType::TaggedSymbol)
554
+ THREE_DS_AUTHENTICATION_CHALLENGE =
555
+ T.let(
556
+ :"three_ds_authentication.challenge",
557
+ Lithic::Event::EventType::TaggedSymbol
558
+ )
322
559
  THREE_DS_AUTHENTICATION_CREATED =
323
560
  T.let(
324
561
  :"three_ds_authentication.created",