lithic 0.18.1 → 0.20.0

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 (174) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +66 -0
  3. data/README.md +1 -1
  4. data/lib/lithic/client.rb +4 -0
  5. data/lib/lithic/models/account_activity_list_params.rb +2 -0
  6. data/lib/lithic/models/account_activity_list_response.rb +2 -0
  7. data/lib/lithic/models/account_activity_retrieve_transaction_response.rb +2 -0
  8. data/lib/lithic/models/auth_rules/ach_payment_update_action.rb +1 -0
  9. data/lib/lithic/models/auth_rules/card_transaction_update_action.rb +1 -0
  10. data/lib/lithic/models/auth_rules/conditional_ach_action_parameters.rb +3 -0
  11. data/lib/lithic/models/auth_rules/v2_list_results_response.rb +2 -0
  12. data/lib/lithic/models/auth_rules/velocity_limit_params.rb +24 -1
  13. data/lib/lithic/models/auth_rules/velocity_limit_period.rb +1 -1
  14. data/lib/lithic/models/blockchain_recipient.rb +148 -0
  15. data/lib/lithic/models/blockchain_recipient_create_params.rb +74 -0
  16. data/lib/lithic/models/book_transfer_create_params.rb +4 -0
  17. data/lib/lithic/models/book_transfer_list_params.rb +1 -0
  18. data/lib/lithic/models/book_transfer_response.rb +4 -0
  19. data/lib/lithic/models/card.rb +2 -2
  20. data/lib/lithic/models/card_provision_params.rb +10 -8
  21. data/lib/lithic/models/card_reassign_account_params.rb +29 -0
  22. data/lib/lithic/models/dispute_v2.rb +178 -130
  23. data/lib/lithic/models/disputes_v2_list_params.rb +10 -1
  24. data/lib/lithic/models/embed_session_generated_webhook_event.rb +83 -0
  25. data/lib/lithic/models/embed_viewed_webhook_event.rb +85 -0
  26. data/lib/lithic/models/event.rb +44 -12
  27. data/lib/lithic/models/event_list_params.rb +23 -6
  28. data/lib/lithic/models/event_subscription.rb +23 -6
  29. data/lib/lithic/models/events/subscription_create_params.rb +23 -6
  30. data/lib/lithic/models/events/subscription_send_simulated_example_params.rb +2 -0
  31. data/lib/lithic/models/events/subscription_update_params.rb +23 -6
  32. data/lib/lithic/models/external_payment_list_params.rb +3 -3
  33. data/lib/lithic/models/financial_account.rb +14 -1
  34. data/lib/lithic/models/financial_accounts/balance_list_params.rb +4 -3
  35. data/lib/lithic/models/financial_accounts/statements/statement_line_items.rb +10 -0
  36. data/lib/lithic/models/financial_event.rb +8 -0
  37. data/lib/lithic/models/fraud/transaction_report_response.rb +8 -8
  38. data/lib/lithic/models/fraud/transaction_retrieve_response.rb +10 -8
  39. data/lib/lithic/models/parsed_webhook_event.rb +5 -1
  40. data/lib/lithic/models/payment.rb +91 -6
  41. data/lib/lithic/models/payment_list_params.rb +1 -0
  42. data/lib/lithic/models/tokenization_simulate_params.rb +2 -2
  43. data/lib/lithic/models/transaction_monitoring/case_entity.rb +13 -4
  44. data/lib/lithic/models/transaction_monitoring/case_list_params.rb +4 -2
  45. data/lib/lithic/models/transaction_monitoring/case_update_params.rb +5 -11
  46. data/lib/lithic/models/transaction_monitoring/monitoring_case.rb +5 -11
  47. data/lib/lithic/models/transaction_monitoring/queue.rb +10 -1
  48. data/lib/lithic/models/transaction_monitoring/queue_create_params.rb +14 -1
  49. data/lib/lithic/models/transaction_monitoring/queue_update_params.rb +15 -1
  50. data/lib/lithic/models/transaction_simulate_clearing_params.rb +4 -3
  51. data/lib/lithic/models.rb +10 -0
  52. data/lib/lithic/resources/blockchain_recipients.rb +57 -0
  53. data/lib/lithic/resources/card_authorizations.rb +1 -1
  54. data/lib/lithic/resources/cards.rb +34 -2
  55. data/lib/lithic/resources/disputes_v2.rb +3 -1
  56. data/lib/lithic/resources/external_payments.rb +1 -1
  57. data/lib/lithic/resources/three_ds/decisioning.rb +1 -1
  58. data/lib/lithic/resources/tokenizations.rb +1 -1
  59. data/lib/lithic/resources/transaction_monitoring/cases.rb +2 -2
  60. data/lib/lithic/resources/transaction_monitoring/queues.rb +12 -2
  61. data/lib/lithic/resources/transactions.rb +4 -3
  62. data/lib/lithic/resources/webhooks.rb +1 -1
  63. data/lib/lithic/version.rb +1 -1
  64. data/lib/lithic.rb +6 -1
  65. data/rbi/lithic/client.rbi +3 -0
  66. data/rbi/lithic/models/account_activity_list_params.rbi +10 -0
  67. data/rbi/lithic/models/account_activity_list_response.rbi +10 -0
  68. data/rbi/lithic/models/account_activity_retrieve_transaction_response.rbi +10 -0
  69. data/rbi/lithic/models/auth_rules/ach_payment_update_action.rbi +5 -0
  70. data/rbi/lithic/models/auth_rules/card_transaction_update_action.rbi +5 -0
  71. data/rbi/lithic/models/auth_rules/conditional_ach_action_parameters.rbi +8 -0
  72. data/rbi/lithic/models/auth_rules/v2_list_results_response.rbi +10 -0
  73. data/rbi/lithic/models/auth_rules/velocity_limit_params.rbi +30 -0
  74. data/rbi/lithic/models/auth_rules/velocity_limit_period.rbi +2 -2
  75. data/rbi/lithic/models/blockchain_recipient.rbi +209 -0
  76. data/rbi/lithic/models/blockchain_recipient_create_params.rbi +102 -0
  77. data/rbi/lithic/models/book_transfer_create_params.rbi +20 -0
  78. data/rbi/lithic/models/book_transfer_list_params.rbi +5 -0
  79. data/rbi/lithic/models/book_transfer_response.rbi +20 -0
  80. data/rbi/lithic/models/card.rbi +2 -2
  81. data/rbi/lithic/models/card_provision_params.rbi +16 -12
  82. data/rbi/lithic/models/card_reassign_account_params.rbi +49 -0
  83. data/rbi/lithic/models/dispute_v2.rbi +285 -181
  84. data/rbi/lithic/models/disputes_v2_list_params.rbi +13 -0
  85. data/rbi/lithic/models/embed_session_generated_webhook_event.rbi +157 -0
  86. data/rbi/lithic/models/embed_viewed_webhook_event.rbi +146 -0
  87. data/rbi/lithic/models/event.rbi +70 -18
  88. data/rbi/lithic/models/event_list_params.rbi +31 -6
  89. data/rbi/lithic/models/event_subscription.rbi +31 -6
  90. data/rbi/lithic/models/events/subscription_create_params.rbi +31 -6
  91. data/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +10 -0
  92. data/rbi/lithic/models/events/subscription_update_params.rbi +31 -6
  93. data/rbi/lithic/models/external_payment_list_params.rbi +3 -3
  94. data/rbi/lithic/models/financial_account.rbi +12 -0
  95. data/rbi/lithic/models/financial_accounts/balance_list_params.rbi +8 -6
  96. data/rbi/lithic/models/financial_accounts/statements/statement_line_items.rbi +50 -0
  97. data/rbi/lithic/models/financial_event.rbi +34 -0
  98. data/rbi/lithic/models/fraud/transaction_report_response.rbi +16 -29
  99. data/rbi/lithic/models/fraud/transaction_retrieve_response.rbi +16 -29
  100. data/rbi/lithic/models/parsed_webhook_event.rbi +2 -0
  101. data/rbi/lithic/models/payment.rbi +147 -4
  102. data/rbi/lithic/models/payment_list_params.rbi +2 -0
  103. data/rbi/lithic/models/tokenization_simulate_params.rbi +2 -2
  104. data/rbi/lithic/models/transaction_monitoring/case_entity.rbi +27 -5
  105. data/rbi/lithic/models/transaction_monitoring/case_list_params.rbi +6 -2
  106. data/rbi/lithic/models/transaction_monitoring/case_update_params.rbi +8 -33
  107. data/rbi/lithic/models/transaction_monitoring/monitoring_case.rbi +7 -31
  108. data/rbi/lithic/models/transaction_monitoring/queue.rbi +10 -0
  109. data/rbi/lithic/models/transaction_monitoring/queue_create_params.rbi +12 -0
  110. data/rbi/lithic/models/transaction_monitoring/queue_update_params.rbi +14 -0
  111. data/rbi/lithic/models/transaction_simulate_clearing_params.rbi +8 -6
  112. data/rbi/lithic/models.rbi +12 -0
  113. data/rbi/lithic/resources/blockchain_recipients.rbi +51 -0
  114. data/rbi/lithic/resources/card_authorizations.rbi +1 -1
  115. data/rbi/lithic/resources/cards.rbi +30 -6
  116. data/rbi/lithic/resources/disputes_v2.rbi +4 -0
  117. data/rbi/lithic/resources/external_payments.rbi +1 -1
  118. data/rbi/lithic/resources/financial_accounts/balances.rbi +4 -3
  119. data/rbi/lithic/resources/three_ds/decisioning.rbi +1 -1
  120. data/rbi/lithic/resources/tokenizations.rbi +1 -1
  121. data/rbi/lithic/resources/transaction_monitoring/cases.rbi +6 -11
  122. data/rbi/lithic/resources/transaction_monitoring/queues.rbi +11 -0
  123. data/rbi/lithic/resources/transactions.rbi +8 -6
  124. data/rbi/lithic/resources/webhooks.rbi +2 -0
  125. data/sig/lithic/client.rbs +2 -0
  126. data/sig/lithic/models/account_activity_list_params.rbs +4 -0
  127. data/sig/lithic/models/account_activity_list_response.rbs +4 -0
  128. data/sig/lithic/models/account_activity_retrieve_transaction_response.rbs +4 -0
  129. data/sig/lithic/models/auth_rules/ach_payment_update_action.rbs +2 -1
  130. data/sig/lithic/models/auth_rules/card_transaction_update_action.rbs +2 -1
  131. data/sig/lithic/models/auth_rules/conditional_ach_action_parameters.rbs +2 -0
  132. data/sig/lithic/models/auth_rules/v2_list_results_response.rbs +4 -2
  133. data/sig/lithic/models/auth_rules/velocity_limit_params.rbs +10 -0
  134. data/sig/lithic/models/blockchain_recipient.rbs +106 -0
  135. data/sig/lithic/models/blockchain_recipient_create_params.rbs +60 -0
  136. data/sig/lithic/models/book_transfer_create_params.rbs +8 -0
  137. data/sig/lithic/models/book_transfer_list_params.rbs +2 -0
  138. data/sig/lithic/models/book_transfer_response.rbs +8 -0
  139. data/sig/lithic/models/card_reassign_account_params.rbs +28 -0
  140. data/sig/lithic/models/dispute_v2.rbs +145 -101
  141. data/sig/lithic/models/disputes_v2_list_params.rbs +7 -0
  142. data/sig/lithic/models/embed_session_generated_webhook_event.rbs +66 -0
  143. data/sig/lithic/models/embed_viewed_webhook_event.rbs +68 -0
  144. data/sig/lithic/models/event.rbs +4 -0
  145. data/sig/lithic/models/event_list_params.rbs +4 -0
  146. data/sig/lithic/models/event_subscription.rbs +4 -0
  147. data/sig/lithic/models/events/subscription_create_params.rbs +4 -0
  148. data/sig/lithic/models/events/subscription_send_simulated_example_params.rbs +4 -0
  149. data/sig/lithic/models/events/subscription_update_params.rbs +4 -0
  150. data/sig/lithic/models/financial_account.rbs +5 -0
  151. data/sig/lithic/models/financial_accounts/statements/statement_line_items.rbs +20 -0
  152. data/sig/lithic/models/financial_event.rbs +16 -0
  153. data/sig/lithic/models/fraud/transaction_report_response.rbs +16 -26
  154. data/sig/lithic/models/fraud/transaction_retrieve_response.rbs +16 -26
  155. data/sig/lithic/models/parsed_webhook_event.rbs +2 -0
  156. data/sig/lithic/models/payment.rbs +46 -1
  157. data/sig/lithic/models/payment_list_params.rbs +2 -1
  158. data/sig/lithic/models/transaction_monitoring/case_entity.rbs +7 -5
  159. data/sig/lithic/models/transaction_monitoring/case_update_params.rbs +5 -7
  160. data/sig/lithic/models/transaction_monitoring/monitoring_case.rbs +4 -4
  161. data/sig/lithic/models/transaction_monitoring/queue.rbs +5 -0
  162. data/sig/lithic/models/transaction_monitoring/queue_create_params.rbs +9 -1
  163. data/sig/lithic/models/transaction_monitoring/queue_update_params.rbs +10 -1
  164. data/sig/lithic/models.rbs +10 -0
  165. data/sig/lithic/resources/blockchain_recipients.rbs +18 -0
  166. data/sig/lithic/resources/cards.rbs +6 -0
  167. data/sig/lithic/resources/disputes_v2.rbs +1 -0
  168. data/sig/lithic/resources/transaction_monitoring/cases.rbs +1 -1
  169. data/sig/lithic/resources/transaction_monitoring/queues.rbs +2 -0
  170. data/sig/lithic/resources/webhooks.rbs +2 -0
  171. metadata +20 -5
  172. data/lib/lithic/models/transaction_monitoring/resolution_outcome.rb +0 -28
  173. data/rbi/lithic/models/transaction_monitoring/resolution_outcome.rbi +0 -61
  174. data/sig/lithic/models/transaction_monitoring/resolution_outcome.rbs +0 -24
@@ -102,7 +102,7 @@ module Lithic
102
102
  # The type of event that occurred. Possible values:
103
103
  #
104
104
  # - account_holder_document.updated: Occurs when an account holder's document
105
- # upload status has been updated
105
+ # upload status has been updated.
106
106
  # - account_holder.created: Occurs when a new account_holder is created.
107
107
  # - account_holder.updated: Occurs when an account_holder is updated.
108
108
  # - account_holder.verification: Occurs when an asynchronous account_holder's
@@ -166,10 +166,25 @@ module Lithic
166
166
  # This event will be deprecated in the future. We recommend using
167
167
  # `tokenization.updated` instead.
168
168
  #
169
- # - dispute_evidence.upload_failed: Occurs when a dispute evidence upload fails.
169
+ # - dispute_evidence.upload_failed: Occurs when an evidence upload fails for a
170
+ # dispute filed through the Chargebacks API (`/v1/disputes`).
171
+ #
172
+ # This event is not emitted for Managed Disputes.
173
+ #
170
174
  # - dispute_transaction.created: Occurs when a new dispute transaction is created
171
- # - dispute_transaction.updated: Occurs when a dispute transaction is updated
172
- # - dispute.updated: Occurs when a dispute is updated.
175
+ # for a Managed Disputes case.
176
+ # - dispute_transaction.updated: Occurs when a dispute transaction for a Managed
177
+ # Disputes case is updated.
178
+ # - dispute.updated: Occurs when a dispute filed through the Chargebacks API
179
+ # (`/v1/disputes`) is created or updated.
180
+ #
181
+ # This event is not emitted for Managed Disputes. Use
182
+ # `dispute_transaction.created` and `dispute_transaction.updated` instead.
183
+ #
184
+ # - embed.session_generated: Occurs when a card embed session is successfully
185
+ # generated.
186
+ # - embed.viewed: Occurs when a card detail is successfully revealed through an
187
+ # embed.
173
188
  # - external_bank_account.created: Occurs when an external bank account is
174
189
  # created.
175
190
  # - external_bank_account.updated: Occurs when an external bank account is
@@ -191,12 +206,12 @@ module Lithic
191
206
  # - payment_transaction.updated: Occurs when a payment transaction is updated.
192
207
  # - settlement_report.updated: Occurs when a settlement report is created or
193
208
  # updated.
194
- # - statements.created: Occurs when a statement has been created
209
+ # - statements.created: Occurs when a statement has been created.
195
210
  # - three_ds_authentication.challenge: The `three_ds_authentication.challenge`
196
211
  # event. Upon receiving this request, the Card Program should issue its own
197
212
  # challenge to the cardholder. After a cardholder challenge is successfully
198
213
  # completed, the Card Program needs to respond back to Lithic by call to
199
- # [/v1/three_ds_decisioning/challenge_response](https://docs.lithic.com/reference/post_v1-three-ds-decisioning-challenge-response).
214
+ # [/v1/three_ds_decisioning/challenge_response](https://docs.lithic.com/reference/postthreedschallengeresponse).
200
215
  # Then the cardholder must navigate back to the merchant checkout flow to
201
216
  # complete the transaction. Some merchants will include an `app_requestor_url`
202
217
  # for app-based purchases; Lithic recommends triggering a redirect to that URL
@@ -381,6 +396,16 @@ module Lithic
381
396
  :"dispute.updated",
382
397
  Lithic::Events::SubscriptionCreateParams::EventType::TaggedSymbol
383
398
  )
399
+ EMBED_SESSION_GENERATED =
400
+ T.let(
401
+ :"embed.session_generated",
402
+ Lithic::Events::SubscriptionCreateParams::EventType::TaggedSymbol
403
+ )
404
+ EMBED_VIEWED =
405
+ T.let(
406
+ :"embed.viewed",
407
+ Lithic::Events::SubscriptionCreateParams::EventType::TaggedSymbol
408
+ )
384
409
  EXTERNAL_BANK_ACCOUNT_CREATED =
385
410
  T.let(
386
411
  :"external_bank_account.created",
@@ -238,6 +238,16 @@ module Lithic
238
238
  :"dispute.updated",
239
239
  Lithic::Events::SubscriptionSendSimulatedExampleParams::EventType::TaggedSymbol
240
240
  )
241
+ EMBED_SESSION_GENERATED =
242
+ T.let(
243
+ :"embed.session_generated",
244
+ Lithic::Events::SubscriptionSendSimulatedExampleParams::EventType::TaggedSymbol
245
+ )
246
+ EMBED_VIEWED =
247
+ T.let(
248
+ :"embed.viewed",
249
+ Lithic::Events::SubscriptionSendSimulatedExampleParams::EventType::TaggedSymbol
250
+ )
241
251
  EXTERNAL_BANK_ACCOUNT_CREATED =
242
252
  T.let(
243
253
  :"external_bank_account.created",
@@ -108,7 +108,7 @@ module Lithic
108
108
  # The type of event that occurred. Possible values:
109
109
  #
110
110
  # - account_holder_document.updated: Occurs when an account holder's document
111
- # upload status has been updated
111
+ # upload status has been updated.
112
112
  # - account_holder.created: Occurs when a new account_holder is created.
113
113
  # - account_holder.updated: Occurs when an account_holder is updated.
114
114
  # - account_holder.verification: Occurs when an asynchronous account_holder's
@@ -172,10 +172,25 @@ module Lithic
172
172
  # This event will be deprecated in the future. We recommend using
173
173
  # `tokenization.updated` instead.
174
174
  #
175
- # - dispute_evidence.upload_failed: Occurs when a dispute evidence upload fails.
175
+ # - dispute_evidence.upload_failed: Occurs when an evidence upload fails for a
176
+ # dispute filed through the Chargebacks API (`/v1/disputes`).
177
+ #
178
+ # This event is not emitted for Managed Disputes.
179
+ #
176
180
  # - dispute_transaction.created: Occurs when a new dispute transaction is created
177
- # - dispute_transaction.updated: Occurs when a dispute transaction is updated
178
- # - dispute.updated: Occurs when a dispute is updated.
181
+ # for a Managed Disputes case.
182
+ # - dispute_transaction.updated: Occurs when a dispute transaction for a Managed
183
+ # Disputes case is updated.
184
+ # - dispute.updated: Occurs when a dispute filed through the Chargebacks API
185
+ # (`/v1/disputes`) is created or updated.
186
+ #
187
+ # This event is not emitted for Managed Disputes. Use
188
+ # `dispute_transaction.created` and `dispute_transaction.updated` instead.
189
+ #
190
+ # - embed.session_generated: Occurs when a card embed session is successfully
191
+ # generated.
192
+ # - embed.viewed: Occurs when a card detail is successfully revealed through an
193
+ # embed.
179
194
  # - external_bank_account.created: Occurs when an external bank account is
180
195
  # created.
181
196
  # - external_bank_account.updated: Occurs when an external bank account is
@@ -197,12 +212,12 @@ module Lithic
197
212
  # - payment_transaction.updated: Occurs when a payment transaction is updated.
198
213
  # - settlement_report.updated: Occurs when a settlement report is created or
199
214
  # updated.
200
- # - statements.created: Occurs when a statement has been created
215
+ # - statements.created: Occurs when a statement has been created.
201
216
  # - three_ds_authentication.challenge: The `three_ds_authentication.challenge`
202
217
  # event. Upon receiving this request, the Card Program should issue its own
203
218
  # challenge to the cardholder. After a cardholder challenge is successfully
204
219
  # completed, the Card Program needs to respond back to Lithic by call to
205
- # [/v1/three_ds_decisioning/challenge_response](https://docs.lithic.com/reference/post_v1-three-ds-decisioning-challenge-response).
220
+ # [/v1/three_ds_decisioning/challenge_response](https://docs.lithic.com/reference/postthreedschallengeresponse).
206
221
  # Then the cardholder must navigate back to the merchant checkout flow to
207
222
  # complete the transaction. Some merchants will include an `app_requestor_url`
208
223
  # for app-based purchases; Lithic recommends triggering a redirect to that URL
@@ -387,6 +402,16 @@ module Lithic
387
402
  :"dispute.updated",
388
403
  Lithic::Events::SubscriptionUpdateParams::EventType::TaggedSymbol
389
404
  )
405
+ EMBED_SESSION_GENERATED =
406
+ T.let(
407
+ :"embed.session_generated",
408
+ Lithic::Events::SubscriptionUpdateParams::EventType::TaggedSymbol
409
+ )
410
+ EMBED_VIEWED =
411
+ T.let(
412
+ :"embed.viewed",
413
+ Lithic::Events::SubscriptionUpdateParams::EventType::TaggedSymbol
414
+ )
390
415
  EXTERNAL_BANK_ACCOUNT_CREATED =
391
416
  T.let(
392
417
  :"external_bank_account.created",
@@ -25,7 +25,7 @@ module Lithic
25
25
  sig { params(business_account_token: String).void }
26
26
  attr_writer :business_account_token
27
27
 
28
- # External Payment category to be returned.
28
+ # The external rail the funds moved on
29
29
  sig do
30
30
  returns(
31
31
  T.nilable(Lithic::ExternalPaymentListParams::Category::OrSymbol)
@@ -121,7 +121,7 @@ module Lithic
121
121
  # will be included. UTC time zone.
122
122
  begin_: nil,
123
123
  business_account_token: nil,
124
- # External Payment category to be returned.
124
+ # The external rail the funds moved on
125
125
  category: nil,
126
126
  # Date string in RFC 3339 format. Only entries created before the specified time
127
127
  # will be included. UTC time zone.
@@ -165,7 +165,7 @@ module Lithic
165
165
  def to_hash
166
166
  end
167
167
 
168
- # External Payment category to be returned.
168
+ # The external rail the funds moved on
169
169
  module Category
170
170
  extend Lithic::Internal::Type::Enum
171
171
 
@@ -59,6 +59,12 @@ module Lithic
59
59
  sig { returns(T.nilable(String)) }
60
60
  attr_accessor :account_number
61
61
 
62
+ # Provisioned blockchain deposit addresses for this financial account, keyed by
63
+ # the full name of the blockchain network that each address belongs to (e.g.
64
+ # `ETHEREUM`)
65
+ sig { returns(T.nilable(T::Hash[Symbol, String])) }
66
+ attr_accessor :blockchain_addresses
67
+
62
68
  sig { returns(T.nilable(String)) }
63
69
  attr_accessor :routing_number
64
70
 
@@ -77,6 +83,7 @@ module Lithic
77
83
  updated: Time,
78
84
  user_defined_status: T.nilable(String),
79
85
  account_number: T.nilable(String),
86
+ blockchain_addresses: T.nilable(T::Hash[Symbol, String]),
80
87
  routing_number: T.nilable(String)
81
88
  ).returns(T.attached_class)
82
89
  end
@@ -98,6 +105,10 @@ module Lithic
98
105
  # User-defined status for the financial account
99
106
  user_defined_status:,
100
107
  account_number: nil,
108
+ # Provisioned blockchain deposit addresses for this financial account, keyed by
109
+ # the full name of the blockchain network that each address belongs to (e.g.
110
+ # `ETHEREUM`)
111
+ blockchain_addresses: nil,
101
112
  routing_number: nil
102
113
  )
103
114
  end
@@ -119,6 +130,7 @@ module Lithic
119
130
  updated: Time,
120
131
  user_defined_status: T.nilable(String),
121
132
  account_number: T.nilable(String),
133
+ blockchain_addresses: T.nilable(T::Hash[Symbol, String]),
122
134
  routing_number: T.nilable(String)
123
135
  }
124
136
  )
@@ -25,9 +25,10 @@ module Lithic
25
25
  sig { params(balance_date: Time).void }
26
26
  attr_writer :balance_date
27
27
 
28
- # Balance after a given financial event occured. For example, passing the
29
- # event_token of a $5 CARD_CLEARING financial event will return a balance
30
- # decreased by $5
28
+ # Balance after a given financial event occured. Note: if an account receives
29
+ # multiple events around the same time whose financial impacts cancel out, a
30
+ # balance lookup by one of those event tokens may return 404, since their combined
31
+ # impact on the account is zero.
31
32
  sig { returns(T.nilable(String)) }
32
33
  attr_reader :last_transaction_event_token
33
34
 
@@ -46,9 +47,10 @@ module Lithic
46
47
  financial_account_token:,
47
48
  # UTC date of the balance to retrieve. Defaults to latest available balance
48
49
  balance_date: nil,
49
- # Balance after a given financial event occured. For example, passing the
50
- # event_token of a $5 CARD_CLEARING financial event will return a balance
51
- # decreased by $5
50
+ # Balance after a given financial event occured. Note: if an account receives
51
+ # multiple events around the same time whose financial impacts cancel out, a
52
+ # balance lookup by one of those event tokens may return 404, since their combined
53
+ # impact on the account is zero.
52
54
  last_transaction_event_token: nil,
53
55
  request_options: {}
54
56
  )
@@ -233,6 +233,11 @@ module Lithic
233
233
  :WIRE,
234
234
  Lithic::FinancialAccounts::Statements::StatementLineItems::Data::Category::TaggedSymbol
235
235
  )
236
+ STABLECOIN =
237
+ T.let(
238
+ :STABLECOIN,
239
+ Lithic::FinancialAccounts::Statements::StatementLineItems::Data::Category::TaggedSymbol
240
+ )
236
241
  BALANCE_OR_FUNDING =
237
242
  T.let(
238
243
  :BALANCE_OR_FUNDING,
@@ -333,6 +338,11 @@ module Lithic
333
338
  :PROGRAM_FUNDING,
334
339
  Lithic::FinancialAccounts::Statements::StatementLineItems::Data::Category::TaggedSymbol
335
340
  )
341
+ PROGRAM_TRANSFER =
342
+ T.let(
343
+ :PROGRAM_TRANSFER,
344
+ Lithic::FinancialAccounts::Statements::StatementLineItems::Data::Category::TaggedSymbol
345
+ )
336
346
 
337
347
  sig do
338
348
  override.returns(
@@ -762,6 +772,16 @@ module Lithic
762
772
  :LITHIC_NETWORK_PAYMENT,
763
773
  Lithic::FinancialAccounts::Statements::StatementLineItems::Data::EventType::TaggedSymbol
764
774
  )
775
+ LITHIC_PROGRAM_TRANSFER =
776
+ T.let(
777
+ :LITHIC_PROGRAM_TRANSFER,
778
+ Lithic::FinancialAccounts::Statements::StatementLineItems::Data::EventType::TaggedSymbol
779
+ )
780
+ BANK_PROGRAM_TRANSFER =
781
+ T.let(
782
+ :BANK_PROGRAM_TRANSFER,
783
+ Lithic::FinancialAccounts::Statements::StatementLineItems::Data::EventType::TaggedSymbol
784
+ )
765
785
  ANNUAL =
766
786
  T.let(
767
787
  :ANNUAL,
@@ -797,6 +817,36 @@ module Lithic
797
817
  :ACCOUNT_TO_ACCOUNT,
798
818
  Lithic::FinancialAccounts::Statements::StatementLineItems::Data::EventType::TaggedSymbol
799
819
  )
820
+ STABLECOIN_RECEIVED =
821
+ T.let(
822
+ :STABLECOIN_RECEIVED,
823
+ Lithic::FinancialAccounts::Statements::StatementLineItems::Data::EventType::TaggedSymbol
824
+ )
825
+ STABLECOIN_INITIATED =
826
+ T.let(
827
+ :STABLECOIN_INITIATED,
828
+ Lithic::FinancialAccounts::Statements::StatementLineItems::Data::EventType::TaggedSymbol
829
+ )
830
+ STABLECOIN_REVIEWED =
831
+ T.let(
832
+ :STABLECOIN_REVIEWED,
833
+ Lithic::FinancialAccounts::Statements::StatementLineItems::Data::EventType::TaggedSymbol
834
+ )
835
+ STABLECOIN_SENT =
836
+ T.let(
837
+ :STABLECOIN_SENT,
838
+ Lithic::FinancialAccounts::Statements::StatementLineItems::Data::EventType::TaggedSymbol
839
+ )
840
+ STABLECOIN_SETTLED =
841
+ T.let(
842
+ :STABLECOIN_SETTLED,
843
+ Lithic::FinancialAccounts::Statements::StatementLineItems::Data::EventType::TaggedSymbol
844
+ )
845
+ STABLECOIN_REJECTED =
846
+ T.let(
847
+ :STABLECOIN_REJECTED,
848
+ Lithic::FinancialAccounts::Statements::StatementLineItems::Data::EventType::TaggedSymbol
849
+ )
800
850
 
801
851
  sig do
802
852
  override.returns(
@@ -447,6 +447,16 @@ module Lithic
447
447
  :LITHIC_NETWORK_PAYMENT,
448
448
  Lithic::FinancialEvent::Type::TaggedSymbol
449
449
  )
450
+ LITHIC_PROGRAM_TRANSFER =
451
+ T.let(
452
+ :LITHIC_PROGRAM_TRANSFER,
453
+ Lithic::FinancialEvent::Type::TaggedSymbol
454
+ )
455
+ BANK_PROGRAM_TRANSFER =
456
+ T.let(
457
+ :BANK_PROGRAM_TRANSFER,
458
+ Lithic::FinancialEvent::Type::TaggedSymbol
459
+ )
450
460
  ANNUAL = T.let(:ANNUAL, Lithic::FinancialEvent::Type::TaggedSymbol)
451
461
  ANNUAL_REVERSAL =
452
462
  T.let(:ANNUAL_REVERSAL, Lithic::FinancialEvent::Type::TaggedSymbol)
@@ -459,6 +469,30 @@ module Lithic
459
469
  T.let(:MONTHLY_REVERSAL, Lithic::FinancialEvent::Type::TaggedSymbol)
460
470
  ACCOUNT_TO_ACCOUNT =
461
471
  T.let(:ACCOUNT_TO_ACCOUNT, Lithic::FinancialEvent::Type::TaggedSymbol)
472
+ STABLECOIN_RECEIVED =
473
+ T.let(
474
+ :STABLECOIN_RECEIVED,
475
+ Lithic::FinancialEvent::Type::TaggedSymbol
476
+ )
477
+ STABLECOIN_INITIATED =
478
+ T.let(
479
+ :STABLECOIN_INITIATED,
480
+ Lithic::FinancialEvent::Type::TaggedSymbol
481
+ )
482
+ STABLECOIN_REVIEWED =
483
+ T.let(
484
+ :STABLECOIN_REVIEWED,
485
+ Lithic::FinancialEvent::Type::TaggedSymbol
486
+ )
487
+ STABLECOIN_SENT =
488
+ T.let(:STABLECOIN_SENT, Lithic::FinancialEvent::Type::TaggedSymbol)
489
+ STABLECOIN_SETTLED =
490
+ T.let(:STABLECOIN_SETTLED, Lithic::FinancialEvent::Type::TaggedSymbol)
491
+ STABLECOIN_REJECTED =
492
+ T.let(
493
+ :STABLECOIN_REJECTED,
494
+ Lithic::FinancialEvent::Type::TaggedSymbol
495
+ )
462
496
 
463
497
  sig do
464
498
  override.returns(T::Array[Lithic::FinancialEvent::Type::TaggedSymbol])
@@ -40,17 +40,11 @@ module Lithic
40
40
 
41
41
  # Provides additional context or details about the fraud report.
42
42
  sig { returns(T.nilable(String)) }
43
- attr_reader :comment
44
-
45
- sig { params(comment: String).void }
46
- attr_writer :comment
43
+ attr_accessor :comment
47
44
 
48
45
  # Timestamp representing when the fraud report was created.
49
46
  sig { returns(T.nilable(Time)) }
50
- attr_reader :created_at
51
-
52
- sig { params(created_at: Time).void }
53
- attr_writer :created_at
47
+ attr_accessor :created_at
54
48
 
55
49
  # Specifies the type or category of fraud that the transaction is suspected or
56
50
  # confirmed to involve, string (enum) supporting the following values:
@@ -80,33 +74,24 @@ module Lithic
80
74
  )
81
75
  )
82
76
  end
83
- attr_reader :fraud_type
84
-
85
- sig do
86
- params(
87
- fraud_type:
88
- Lithic::Models::Fraud::TransactionReportResponse::FraudType::OrSymbol
89
- ).void
90
- end
91
- attr_writer :fraud_type
77
+ attr_accessor :fraud_type
92
78
 
93
79
  # Timestamp representing the last update to the fraud report.
94
80
  sig { returns(T.nilable(Time)) }
95
- attr_reader :updated_at
96
-
97
- sig { params(updated_at: Time).void }
98
- attr_writer :updated_at
81
+ attr_accessor :updated_at
99
82
 
100
83
  sig do
101
84
  params(
102
85
  fraud_status:
103
86
  Lithic::Models::Fraud::TransactionReportResponse::FraudStatus::OrSymbol,
104
87
  transaction_token: String,
105
- comment: String,
106
- created_at: Time,
88
+ comment: T.nilable(String),
89
+ created_at: T.nilable(Time),
107
90
  fraud_type:
108
- Lithic::Models::Fraud::TransactionReportResponse::FraudType::OrSymbol,
109
- updated_at: Time
91
+ T.nilable(
92
+ Lithic::Models::Fraud::TransactionReportResponse::FraudType::OrSymbol
93
+ ),
94
+ updated_at: T.nilable(Time)
110
95
  ).returns(T.attached_class)
111
96
  end
112
97
  def self.new(
@@ -165,11 +150,13 @@ module Lithic
165
150
  fraud_status:
166
151
  Lithic::Models::Fraud::TransactionReportResponse::FraudStatus::TaggedSymbol,
167
152
  transaction_token: String,
168
- comment: String,
169
- created_at: Time,
153
+ comment: T.nilable(String),
154
+ created_at: T.nilable(Time),
170
155
  fraud_type:
171
- Lithic::Models::Fraud::TransactionReportResponse::FraudType::TaggedSymbol,
172
- updated_at: Time
156
+ T.nilable(
157
+ Lithic::Models::Fraud::TransactionReportResponse::FraudType::TaggedSymbol
158
+ ),
159
+ updated_at: T.nilable(Time)
173
160
  }
174
161
  )
175
162
  end
@@ -40,17 +40,11 @@ module Lithic
40
40
 
41
41
  # Provides additional context or details about the fraud report.
42
42
  sig { returns(T.nilable(String)) }
43
- attr_reader :comment
44
-
45
- sig { params(comment: String).void }
46
- attr_writer :comment
43
+ attr_accessor :comment
47
44
 
48
45
  # Timestamp representing when the fraud report was created.
49
46
  sig { returns(T.nilable(Time)) }
50
- attr_reader :created_at
51
-
52
- sig { params(created_at: Time).void }
53
- attr_writer :created_at
47
+ attr_accessor :created_at
54
48
 
55
49
  # Specifies the type or category of fraud that the transaction is suspected or
56
50
  # confirmed to involve, string (enum) supporting the following values:
@@ -80,33 +74,24 @@ module Lithic
80
74
  )
81
75
  )
82
76
  end
83
- attr_reader :fraud_type
84
-
85
- sig do
86
- params(
87
- fraud_type:
88
- Lithic::Models::Fraud::TransactionRetrieveResponse::FraudType::OrSymbol
89
- ).void
90
- end
91
- attr_writer :fraud_type
77
+ attr_accessor :fraud_type
92
78
 
93
79
  # Timestamp representing the last update to the fraud report.
94
80
  sig { returns(T.nilable(Time)) }
95
- attr_reader :updated_at
96
-
97
- sig { params(updated_at: Time).void }
98
- attr_writer :updated_at
81
+ attr_accessor :updated_at
99
82
 
100
83
  sig do
101
84
  params(
102
85
  fraud_status:
103
86
  Lithic::Models::Fraud::TransactionRetrieveResponse::FraudStatus::OrSymbol,
104
87
  transaction_token: String,
105
- comment: String,
106
- created_at: Time,
88
+ comment: T.nilable(String),
89
+ created_at: T.nilable(Time),
107
90
  fraud_type:
108
- Lithic::Models::Fraud::TransactionRetrieveResponse::FraudType::OrSymbol,
109
- updated_at: Time
91
+ T.nilable(
92
+ Lithic::Models::Fraud::TransactionRetrieveResponse::FraudType::OrSymbol
93
+ ),
94
+ updated_at: T.nilable(Time)
110
95
  ).returns(T.attached_class)
111
96
  end
112
97
  def self.new(
@@ -165,11 +150,13 @@ module Lithic
165
150
  fraud_status:
166
151
  Lithic::Models::Fraud::TransactionRetrieveResponse::FraudStatus::TaggedSymbol,
167
152
  transaction_token: String,
168
- comment: String,
169
- created_at: Time,
153
+ comment: T.nilable(String),
154
+ created_at: T.nilable(Time),
170
155
  fraud_type:
171
- Lithic::Models::Fraud::TransactionRetrieveResponse::FraudType::TaggedSymbol,
172
- updated_at: Time
156
+ T.nilable(
157
+ Lithic::Models::Fraud::TransactionRetrieveResponse::FraudType::TaggedSymbol
158
+ ),
159
+ updated_at: T.nilable(Time)
173
160
  }
174
161
  )
175
162
  end
@@ -43,6 +43,8 @@ module Lithic
43
43
  Lithic::DigitalWalletTokenizationUpdatedWebhookEvent,
44
44
  Lithic::DisputeUpdatedWebhookEvent,
45
45
  Lithic::DisputeEvidenceUploadFailedWebhookEvent,
46
+ Lithic::EmbedSessionGeneratedWebhookEvent,
47
+ Lithic::EmbedViewedWebhookEvent,
46
48
  Lithic::ExternalBankAccountCreatedWebhookEvent,
47
49
  Lithic::ExternalBankAccountUpdatedWebhookEvent,
48
50
  Lithic::ExternalPaymentCreatedWebhookEvent,