lithic 0.1.0.pre.alpha.53 → 0.1.0.pre.alpha.55

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 (157) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +34 -0
  3. data/README.md +1 -1
  4. data/lib/lithic/internal/transport/base_client.rb +7 -1
  5. data/lib/lithic/internal/transport/pooled_net_requester.rb +6 -2
  6. data/lib/lithic/models/account_activity_list_response.rb +1 -0
  7. data/lib/lithic/models/account_activity_retrieve_transaction_response.rb +1 -0
  8. data/lib/lithic/models/account_holder_simulate_enrollment_review_response.rb +2 -2
  9. data/lib/lithic/models/account_holder_update_response.rb +4 -4
  10. data/lib/lithic/models/auth_rules/conditional_authorization_action_parameters.rb +252 -0
  11. data/lib/lithic/models/auth_rules/v2_create_params.rb +38 -284
  12. data/lib/lithic/models/auth_rules/v2_create_response.rb +8 -508
  13. data/lib/lithic/models/auth_rules/v2_draft_params.rb +4 -250
  14. data/lib/lithic/models/auth_rules/v2_draft_response.rb +8 -508
  15. data/lib/lithic/models/auth_rules/v2_list_response.rb +8 -508
  16. data/lib/lithic/models/auth_rules/v2_promote_response.rb +8 -508
  17. data/lib/lithic/models/auth_rules/v2_retrieve_features_response.rb +4 -11
  18. data/lib/lithic/models/auth_rules/v2_retrieve_response.rb +8 -508
  19. data/lib/lithic/models/auth_rules/v2_update_response.rb +8 -508
  20. data/lib/lithic/models/auth_rules/velocity_limit_params.rb +4 -7
  21. data/lib/lithic/models/auth_rules/velocity_limit_period.rb +154 -0
  22. data/lib/lithic/models/book_transfer_response.rb +5 -5
  23. data/lib/lithic/models/dispute.rb +510 -242
  24. data/lib/lithic/models/dispute_create_response.rb +326 -0
  25. data/lib/lithic/models/dispute_delete_response.rb +326 -0
  26. data/lib/lithic/models/dispute_list_response.rb +326 -0
  27. data/lib/lithic/models/dispute_retrieve_response.rb +326 -0
  28. data/lib/lithic/models/dispute_update_response.rb +326 -0
  29. data/lib/lithic/models/event.rb +213 -69
  30. data/lib/lithic/models/event_list_params.rb +112 -6
  31. data/lib/lithic/models/event_subscription.rb +112 -6
  32. data/lib/lithic/models/events/subscription_create_params.rb +112 -6
  33. data/lib/lithic/models/events/subscription_send_simulated_example_params.rb +12 -6
  34. data/lib/lithic/models/events/subscription_update_params.rb +112 -6
  35. data/lib/lithic/models/financial_account.rb +1 -65
  36. data/lib/lithic/models/financial_accounts/financial_account_credit_config.rb +1 -64
  37. data/lib/lithic/models/financial_accounts/loan_tape.rb +99 -3
  38. data/lib/lithic/models/financial_accounts/statement.rb +66 -2
  39. data/lib/lithic/models/financial_accounts/statements/statement_line_items.rb +1 -0
  40. data/lib/lithic/models/financial_transaction.rb +1 -0
  41. data/lib/lithic/models/payment.rb +29 -18
  42. data/lib/lithic/models/payment_simulate_action_params.rb +17 -1
  43. data/lib/lithic/models/tokenization.rb +189 -23
  44. data/lib/lithic/models/transaction.rb +12 -116
  45. data/lib/lithic/models/transactions/events/enhanced_data.rb +9 -9
  46. data/lib/lithic/models/transfer.rb +1 -0
  47. data/lib/lithic/resources/auth_rules/v2/backtests.rb +3 -5
  48. data/lib/lithic/resources/auth_rules/v2.rb +13 -56
  49. data/lib/lithic/resources/disputes.rb +10 -10
  50. data/lib/lithic/resources/payments.rb +5 -1
  51. data/lib/lithic/version.rb +1 -1
  52. data/lib/lithic.rb +8 -3
  53. data/manifest.yaml +1 -0
  54. data/rbi/lithic/internal/transport/base_client.rbi +5 -0
  55. data/rbi/lithic/internal/transport/pooled_net_requester.rbi +6 -2
  56. data/rbi/lithic/internal/type/base_model.rbi +8 -4
  57. data/rbi/lithic/models/account_activity_list_response.rbi +5 -0
  58. data/rbi/lithic/models/account_activity_retrieve_transaction_response.rbi +5 -0
  59. data/rbi/lithic/models/account_holder_simulate_enrollment_review_response.rbi +3 -6
  60. data/rbi/lithic/models/account_holder_update_response.rbi +6 -12
  61. data/rbi/lithic/models/auth_rules/conditional_authorization_action_parameters.rbi +577 -0
  62. data/rbi/lithic/models/auth_rules/v2_create_params.rbi +85 -679
  63. data/rbi/lithic/models/auth_rules/v2_create_response.rbi +4 -1146
  64. data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +4 -575
  65. data/rbi/lithic/models/auth_rules/v2_draft_response.rbi +4 -1146
  66. data/rbi/lithic/models/auth_rules/v2_list_response.rbi +4 -1146
  67. data/rbi/lithic/models/auth_rules/v2_promote_response.rbi +4 -1146
  68. data/rbi/lithic/models/auth_rules/v2_retrieve_features_response.rbi +9 -22
  69. data/rbi/lithic/models/auth_rules/v2_retrieve_response.rbi +4 -1146
  70. data/rbi/lithic/models/auth_rules/v2_update_response.rbi +4 -1146
  71. data/rbi/lithic/models/auth_rules/velocity_limit_params.rbi +17 -29
  72. data/rbi/lithic/models/auth_rules/velocity_limit_period.rbi +223 -0
  73. data/rbi/lithic/models/book_transfer_response.rbi +14 -11
  74. data/rbi/lithic/models/dispute.rbi +942 -395
  75. data/rbi/lithic/models/dispute_create_response.rbi +599 -0
  76. data/rbi/lithic/models/dispute_delete_response.rbi +599 -0
  77. data/rbi/lithic/models/dispute_list_response.rbi +582 -0
  78. data/rbi/lithic/models/dispute_retrieve_response.rbi +601 -0
  79. data/rbi/lithic/models/dispute_update_response.rbi +599 -0
  80. data/rbi/lithic/models/event.rbi +348 -111
  81. data/rbi/lithic/models/event_list_params.rbi +155 -25
  82. data/rbi/lithic/models/event_subscription.rbi +155 -25
  83. data/rbi/lithic/models/events/subscription_create_params.rbi +155 -25
  84. data/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +55 -25
  85. data/rbi/lithic/models/events/subscription_update_params.rbi +155 -25
  86. data/rbi/lithic/models/financial_account.rbi +3 -132
  87. data/rbi/lithic/models/financial_accounts/financial_account_credit_config.rbi +3 -136
  88. data/rbi/lithic/models/financial_accounts/loan_tape.rbi +132 -9
  89. data/rbi/lithic/models/financial_accounts/statement.rbi +88 -6
  90. data/rbi/lithic/models/financial_accounts/statements/statement_line_items.rbi +5 -0
  91. data/rbi/lithic/models/financial_transaction.rbi +5 -0
  92. data/rbi/lithic/models/payment.rbi +52 -28
  93. data/rbi/lithic/models/payment_simulate_action_params.rbi +22 -0
  94. data/rbi/lithic/models/tokenization.rbi +429 -34
  95. data/rbi/lithic/models/transaction.rbi +22 -246
  96. data/rbi/lithic/models/transactions/events/enhanced_data.rbi +12 -12
  97. data/rbi/lithic/models/transfer.rbi +5 -0
  98. data/rbi/lithic/resources/auth_rules/v2/backtests.rbi +0 -3
  99. data/rbi/lithic/resources/auth_rules/v2.rbi +24 -72
  100. data/rbi/lithic/resources/disputes.rbi +7 -5
  101. data/rbi/lithic/resources/payments.rbi +6 -0
  102. data/sig/lithic/internal/transport/base_client.rbs +2 -0
  103. data/sig/lithic/internal/transport/pooled_net_requester.rbs +4 -1
  104. data/sig/lithic/models/account_activity_list_response.rbs +2 -0
  105. data/sig/lithic/models/account_activity_retrieve_transaction_response.rbs +2 -0
  106. data/sig/lithic/models/account_holder_simulate_enrollment_review_response.rbs +4 -6
  107. data/sig/lithic/models/account_holder_update_response.rbs +8 -12
  108. data/sig/lithic/models/auth_rules/conditional_authorization_action_parameters.rbs +163 -0
  109. data/sig/lithic/models/auth_rules/v2_create_params.rbs +22 -188
  110. data/sig/lithic/models/auth_rules/v2_create_response.rbs +2 -318
  111. data/sig/lithic/models/auth_rules/v2_draft_params.rbs +1 -159
  112. data/sig/lithic/models/auth_rules/v2_draft_response.rbs +2 -318
  113. data/sig/lithic/models/auth_rules/v2_list_response.rbs +2 -318
  114. data/sig/lithic/models/auth_rules/v2_promote_response.rbs +2 -318
  115. data/sig/lithic/models/auth_rules/v2_retrieve_features_response.rbs +4 -4
  116. data/sig/lithic/models/auth_rules/v2_retrieve_response.rbs +2 -318
  117. data/sig/lithic/models/auth_rules/v2_update_response.rbs +2 -318
  118. data/sig/lithic/models/auth_rules/velocity_limit_params.rbs +4 -4
  119. data/sig/lithic/models/auth_rules/velocity_limit_period.rbs +91 -0
  120. data/sig/lithic/models/book_transfer_response.rbs +7 -7
  121. data/sig/lithic/models/dispute.rbs +417 -157
  122. data/sig/lithic/models/dispute_create_response.rbs +210 -0
  123. data/sig/lithic/models/dispute_delete_response.rbs +210 -0
  124. data/sig/lithic/models/dispute_list_response.rbs +210 -0
  125. data/sig/lithic/models/dispute_retrieve_response.rbs +210 -0
  126. data/sig/lithic/models/dispute_update_response.rbs +210 -0
  127. data/sig/lithic/models/event.rbs +25 -13
  128. data/sig/lithic/models/event_list_params.rbs +25 -13
  129. data/sig/lithic/models/event_subscription.rbs +25 -13
  130. data/sig/lithic/models/events/subscription_create_params.rbs +25 -13
  131. data/sig/lithic/models/events/subscription_send_simulated_example_params.rbs +25 -13
  132. data/sig/lithic/models/events/subscription_update_params.rbs +25 -13
  133. data/sig/lithic/models/financial_account.rbs +3 -45
  134. data/sig/lithic/models/financial_accounts/financial_account_credit_config.rbs +3 -49
  135. data/sig/lithic/models/financial_accounts/loan_tape.rbs +87 -9
  136. data/sig/lithic/models/financial_accounts/statement.rbs +58 -6
  137. data/sig/lithic/models/financial_accounts/statements/statement_line_items.rbs +2 -0
  138. data/sig/lithic/models/financial_transaction.rbs +2 -0
  139. data/sig/lithic/models/payment.rbs +16 -12
  140. data/sig/lithic/models/payment_simulate_action_params.rbs +14 -0
  141. data/sig/lithic/models/tokenization.rbs +160 -13
  142. data/sig/lithic/models/transaction.rbs +13 -94
  143. data/sig/lithic/models/transactions/events/enhanced_data.rbs +15 -15
  144. data/sig/lithic/models/transfer.rbs +2 -0
  145. data/sig/lithic/resources/auth_rules/v2.rbs +2 -12
  146. data/sig/lithic/resources/disputes.rbs +5 -5
  147. data/sig/lithic/resources/payments.rbs +2 -0
  148. metadata +23 -11
  149. data/lib/lithic/models/auth_rules/v2_apply_params.rb +0 -56
  150. data/lib/lithic/models/auth_rules/v2_apply_response.rb +0 -766
  151. data/lib/lithic/models/auth_rules/velocity_limit_params_period_window.rb +0 -248
  152. data/rbi/lithic/models/auth_rules/v2_apply_params.rbi +0 -86
  153. data/rbi/lithic/models/auth_rules/v2_apply_response.rbi +0 -1638
  154. data/rbi/lithic/models/auth_rules/velocity_limit_params_period_window.rbi +0 -557
  155. data/sig/lithic/models/auth_rules/v2_apply_params.rbs +0 -54
  156. data/sig/lithic/models/auth_rules/v2_apply_response.rbs +0 -509
  157. data/sig/lithic/models/auth_rules/velocity_limit_params_period_window.rbs +0 -223
@@ -99,6 +99,106 @@ module Lithic
99
99
  def to_hash
100
100
  end
101
101
 
102
+ # The type of event that occurred. Possible values:
103
+ #
104
+ # - account_holder_document.updated: Occurs when an account holder's document
105
+ # upload status has been updated
106
+ # - account_holder.created: Occurs when a new account_holder is created.
107
+ # - account_holder.updated: Occurs when an account_holder is updated.
108
+ # - account_holder.verification: Occurs when an asynchronous account_holder's
109
+ # verification is completed.
110
+ # - auth_rules.backtest_report.created: Auth Rules backtest report created.
111
+ # - balance.updated: Financial Account Balance Update
112
+ # - book_transfer_transaction.created: Occurs when a book transfer transaction is
113
+ # created.
114
+ # - book_transfer_transaction.updated: Occurs when a book transfer transaction is
115
+ # updated.
116
+ # - card_transaction.enhanced_data.created: Occurs when L2/L3 enhanced commercial
117
+ # data is processed for a transaction event.
118
+ # - card_transaction.enhanced_data.updated: Occurs when L2/L3 enhanced commercial
119
+ # data is reprocessed for a transaction event.
120
+ # - card_transaction.updated: Occurs when a card transaction happens.
121
+ # - card.converted: Occurs when a card is converted from virtual to physical
122
+ # cards.
123
+ # - card.created: Occurs when a new card is created.
124
+ # - card.reissued: Occurs when a card is reissued.
125
+ # - card.renewed: Occurs when a card is renewed.
126
+ # - card.shipped: Occurs when a card is shipped.
127
+ # - digital_wallet.tokenization_approval_request: Occurs when a tokenization
128
+ # approval request is made. This event will be deprecated in the future. We
129
+ # recommend using `tokenization.approval_request` instead.
130
+ # - digital_wallet.tokenization_result: Occurs when a tokenization request
131
+ # succeeded or failed.
132
+ #
133
+ # This event will be deprecated in the future. We recommend using
134
+ # `tokenization.result` instead.
135
+ #
136
+ # - digital_wallet.tokenization_two_factor_authentication_code: Occurs when a
137
+ # tokenization request 2FA code is sent to the Lithic customer for self serve
138
+ # delivery.
139
+ #
140
+ # This event will be deprecated in the future. We recommend using
141
+ # `tokenization.two_factor_authentication_code` instead.
142
+ #
143
+ # - digital_wallet.tokenization_two_factor_authentication_code_sent: Occurs when a
144
+ # tokenization request 2FA code is sent to our downstream messaging providers
145
+ # for delivery.
146
+ #
147
+ # This event will be deprecated in the future. We recommend using
148
+ # `tokenization.two_factor_authentication_code_sent` instead.
149
+ #
150
+ # - digital_wallet.tokenization_updated: Occurs when a tokenization's status has
151
+ # changed.
152
+ #
153
+ # This event will be deprecated in the future. We recommend using
154
+ # `tokenization.updated` instead.
155
+ #
156
+ # - dispute_evidence.upload_failed: Occurs when a dispute evidence upload fails.
157
+ # - dispute_transaction.created: Occurs when a new dispute transaction is created
158
+ # - dispute_transaction.updated: Occurs when a dispute transaction is updated
159
+ # - dispute.updated: Occurs when a dispute is updated.
160
+ # - external_bank_account.created: Occurs when an external bank account is
161
+ # created.
162
+ # - external_bank_account.updated: Occurs when an external bank account is
163
+ # updated.
164
+ # - external_payment.created: Occurs when an external payment is created.
165
+ # - external_payment.updated: Occurs when an external payment is updated.
166
+ # - financial_account.created: Occurs when a financial account is created.
167
+ # - financial_account.updated: Occurs when a financial account is updated.
168
+ # - funding_event.created: Occurs when a funding event is created.
169
+ # - internal_transaction.created: Occurs when an internal adjustment is created.
170
+ # - internal_transaction.updated: Occurs when an internal adjustment is updated.
171
+ # - loan_tape.created: Occurs when a loan tape is created.
172
+ # - loan_tape.updated: Occurs when a loan tape is updated.
173
+ # - management_operation.created: Occurs when an management operation is created.
174
+ # - management_operation.updated: Occurs when an management operation is updated.
175
+ # - network_total.created: Occurs when a network total is created.
176
+ # - network_total.updated: Occurs when a network total is updated.
177
+ # - payment_transaction.created: Occurs when a payment transaction is created.
178
+ # - payment_transaction.updated: Occurs when a payment transaction is updated.
179
+ # - settlement_report.updated: Occurs when a settlement report is created or
180
+ # updated.
181
+ # - statements.created: Occurs when a statement has been created
182
+ # - three_ds_authentication.challenge: The `three_ds_authentication.challenge`
183
+ # event. Upon receiving this request, the Card Program should issue its own
184
+ # challenge to the cardholder. After a cardholder challenge is successfully
185
+ # completed, the Card Program needs to respond back to Lithic by call to
186
+ # [/v1/three_ds_decisioning/challenge_response](https://docs.lithic.com/reference/post_v1-three-ds-decisioning-challenge-response).
187
+ # Then the cardholder must navigate back to the merchant checkout flow to
188
+ # complete the transaction. Some merchants will include an `app_requestor_url`
189
+ # for app-based purchases; Lithic recommends triggering a redirect to that URL
190
+ # after the cardholder completes an app-based challenge.
191
+ # - three_ds_authentication.created: Occurs when a 3DS authentication is created.
192
+ # - three_ds_authentication.updated: Occurs when a 3DS authentication is updated
193
+ # (eg. challenge is completed).
194
+ # - tokenization.approval_request: Occurs when a tokenization approval request is
195
+ # made.
196
+ # - tokenization.result: Occurs when a tokenization request succeeded or failed.
197
+ # - tokenization.two_factor_authentication_code: Occurs when a tokenization
198
+ # request 2FA code is sent to the Lithic customer for self serve delivery.
199
+ # - tokenization.two_factor_authentication_code_sent: Occurs when a tokenization
200
+ # request 2FA code is sent to our downstream messaging providers for delivery.
201
+ # - tokenization.updated: Occurs when a tokenization's status has changed.
102
202
  module EventType
103
203
  extend Lithic::Internal::Type::Enum
104
204
 
@@ -108,6 +208,11 @@ module Lithic
108
208
  end
109
209
  OrSymbol = T.type_alias { T.any(Symbol, String) }
110
210
 
211
+ ACCOUNT_HOLDER_DOCUMENT_UPDATED =
212
+ T.let(
213
+ :"account_holder_document.updated",
214
+ Lithic::Events::SubscriptionCreateParams::EventType::TaggedSymbol
215
+ )
111
216
  ACCOUNT_HOLDER_CREATED =
112
217
  T.let(
113
218
  :"account_holder.created",
@@ -123,6 +228,11 @@ module Lithic
123
228
  :"account_holder.verification",
124
229
  Lithic::Events::SubscriptionCreateParams::EventType::TaggedSymbol
125
230
  )
231
+ AUTH_RULES_BACKTEST_REPORT_CREATED =
232
+ T.let(
233
+ :"auth_rules.backtest_report.created",
234
+ Lithic::Events::SubscriptionCreateParams::EventType::TaggedSymbol
235
+ )
126
236
  BALANCE_UPDATED =
127
237
  T.let(
128
238
  :"balance.updated",
@@ -133,19 +243,24 @@ module Lithic
133
243
  :"book_transfer_transaction.created",
134
244
  Lithic::Events::SubscriptionCreateParams::EventType::TaggedSymbol
135
245
  )
136
- CARD_CREATED =
246
+ BOOK_TRANSFER_TRANSACTION_UPDATED =
137
247
  T.let(
138
- :"card.created",
248
+ :"book_transfer_transaction.updated",
139
249
  Lithic::Events::SubscriptionCreateParams::EventType::TaggedSymbol
140
250
  )
141
- CARD_RENEWED =
251
+ CARD_TRANSACTION_ENHANCED_DATA_CREATED =
142
252
  T.let(
143
- :"card.renewed",
253
+ :"card_transaction.enhanced_data.created",
144
254
  Lithic::Events::SubscriptionCreateParams::EventType::TaggedSymbol
145
255
  )
146
- CARD_REISSUED =
256
+ CARD_TRANSACTION_ENHANCED_DATA_UPDATED =
147
257
  T.let(
148
- :"card.reissued",
258
+ :"card_transaction.enhanced_data.updated",
259
+ Lithic::Events::SubscriptionCreateParams::EventType::TaggedSymbol
260
+ )
261
+ CARD_TRANSACTION_UPDATED =
262
+ T.let(
263
+ :"card_transaction.updated",
149
264
  Lithic::Events::SubscriptionCreateParams::EventType::TaggedSymbol
150
265
  )
151
266
  CARD_CONVERTED =
@@ -153,14 +268,24 @@ module Lithic
153
268
  :"card.converted",
154
269
  Lithic::Events::SubscriptionCreateParams::EventType::TaggedSymbol
155
270
  )
156
- CARD_SHIPPED =
271
+ CARD_CREATED =
157
272
  T.let(
158
- :"card.shipped",
273
+ :"card.created",
159
274
  Lithic::Events::SubscriptionCreateParams::EventType::TaggedSymbol
160
275
  )
161
- CARD_TRANSACTION_UPDATED =
276
+ CARD_REISSUED =
162
277
  T.let(
163
- :"card_transaction.updated",
278
+ :"card.reissued",
279
+ Lithic::Events::SubscriptionCreateParams::EventType::TaggedSymbol
280
+ )
281
+ CARD_RENEWED =
282
+ T.let(
283
+ :"card.renewed",
284
+ Lithic::Events::SubscriptionCreateParams::EventType::TaggedSymbol
285
+ )
286
+ CARD_SHIPPED =
287
+ T.let(
288
+ :"card.shipped",
164
289
  Lithic::Events::SubscriptionCreateParams::EventType::TaggedSymbol
165
290
  )
166
291
  DIGITAL_WALLET_TOKENIZATION_APPROVAL_REQUEST =
@@ -188,11 +313,6 @@ module Lithic
188
313
  :"digital_wallet.tokenization_updated",
189
314
  Lithic::Events::SubscriptionCreateParams::EventType::TaggedSymbol
190
315
  )
191
- DISPUTE_UPDATED =
192
- T.let(
193
- :"dispute.updated",
194
- Lithic::Events::SubscriptionCreateParams::EventType::TaggedSymbol
195
- )
196
316
  DISPUTE_EVIDENCE_UPLOAD_FAILED =
197
317
  T.let(
198
318
  :"dispute_evidence.upload_failed",
@@ -208,6 +328,11 @@ module Lithic
208
328
  :"dispute_transaction.updated",
209
329
  Lithic::Events::SubscriptionCreateParams::EventType::TaggedSymbol
210
330
  )
331
+ DISPUTE_UPDATED =
332
+ T.let(
333
+ :"dispute.updated",
334
+ Lithic::Events::SubscriptionCreateParams::EventType::TaggedSymbol
335
+ )
211
336
  EXTERNAL_BANK_ACCOUNT_CREATED =
212
337
  T.let(
213
338
  :"external_bank_account.created",
@@ -243,6 +368,16 @@ module Lithic
243
368
  :"funding_event.created",
244
369
  Lithic::Events::SubscriptionCreateParams::EventType::TaggedSymbol
245
370
  )
371
+ INTERNAL_TRANSACTION_CREATED =
372
+ T.let(
373
+ :"internal_transaction.created",
374
+ Lithic::Events::SubscriptionCreateParams::EventType::TaggedSymbol
375
+ )
376
+ INTERNAL_TRANSACTION_UPDATED =
377
+ T.let(
378
+ :"internal_transaction.updated",
379
+ Lithic::Events::SubscriptionCreateParams::EventType::TaggedSymbol
380
+ )
246
381
  LOAN_TAPE_CREATED =
247
382
  T.let(
248
383
  :"loan_tape.created",
@@ -283,16 +418,6 @@ module Lithic
283
418
  :"payment_transaction.updated",
284
419
  Lithic::Events::SubscriptionCreateParams::EventType::TaggedSymbol
285
420
  )
286
- INTERNAL_TRANSACTION_CREATED =
287
- T.let(
288
- :"internal_transaction.created",
289
- Lithic::Events::SubscriptionCreateParams::EventType::TaggedSymbol
290
- )
291
- INTERNAL_TRANSACTION_UPDATED =
292
- T.let(
293
- :"internal_transaction.updated",
294
- Lithic::Events::SubscriptionCreateParams::EventType::TaggedSymbol
295
- )
296
421
  SETTLEMENT_REPORT_UPDATED =
297
422
  T.let(
298
423
  :"settlement_report.updated",
@@ -303,6 +428,11 @@ module Lithic
303
428
  :"statements.created",
304
429
  Lithic::Events::SubscriptionCreateParams::EventType::TaggedSymbol
305
430
  )
431
+ THREE_DS_AUTHENTICATION_CHALLENGE =
432
+ T.let(
433
+ :"three_ds_authentication.challenge",
434
+ Lithic::Events::SubscriptionCreateParams::EventType::TaggedSymbol
435
+ )
306
436
  THREE_DS_AUTHENTICATION_CREATED =
307
437
  T.let(
308
438
  :"three_ds_authentication.created",
@@ -72,6 +72,11 @@ module Lithic
72
72
  end
73
73
  OrSymbol = T.type_alias { T.any(Symbol, String) }
74
74
 
75
+ ACCOUNT_HOLDER_DOCUMENT_UPDATED =
76
+ T.let(
77
+ :"account_holder_document.updated",
78
+ Lithic::Events::SubscriptionSendSimulatedExampleParams::EventType::TaggedSymbol
79
+ )
75
80
  ACCOUNT_HOLDER_CREATED =
76
81
  T.let(
77
82
  :"account_holder.created",
@@ -87,6 +92,11 @@ module Lithic
87
92
  :"account_holder.verification",
88
93
  Lithic::Events::SubscriptionSendSimulatedExampleParams::EventType::TaggedSymbol
89
94
  )
95
+ AUTH_RULES_BACKTEST_REPORT_CREATED =
96
+ T.let(
97
+ :"auth_rules.backtest_report.created",
98
+ Lithic::Events::SubscriptionSendSimulatedExampleParams::EventType::TaggedSymbol
99
+ )
90
100
  BALANCE_UPDATED =
91
101
  T.let(
92
102
  :"balance.updated",
@@ -97,19 +107,24 @@ module Lithic
97
107
  :"book_transfer_transaction.created",
98
108
  Lithic::Events::SubscriptionSendSimulatedExampleParams::EventType::TaggedSymbol
99
109
  )
100
- CARD_CREATED =
110
+ BOOK_TRANSFER_TRANSACTION_UPDATED =
101
111
  T.let(
102
- :"card.created",
112
+ :"book_transfer_transaction.updated",
103
113
  Lithic::Events::SubscriptionSendSimulatedExampleParams::EventType::TaggedSymbol
104
114
  )
105
- CARD_RENEWED =
115
+ CARD_TRANSACTION_ENHANCED_DATA_CREATED =
106
116
  T.let(
107
- :"card.renewed",
117
+ :"card_transaction.enhanced_data.created",
108
118
  Lithic::Events::SubscriptionSendSimulatedExampleParams::EventType::TaggedSymbol
109
119
  )
110
- CARD_REISSUED =
120
+ CARD_TRANSACTION_ENHANCED_DATA_UPDATED =
111
121
  T.let(
112
- :"card.reissued",
122
+ :"card_transaction.enhanced_data.updated",
123
+ Lithic::Events::SubscriptionSendSimulatedExampleParams::EventType::TaggedSymbol
124
+ )
125
+ CARD_TRANSACTION_UPDATED =
126
+ T.let(
127
+ :"card_transaction.updated",
113
128
  Lithic::Events::SubscriptionSendSimulatedExampleParams::EventType::TaggedSymbol
114
129
  )
115
130
  CARD_CONVERTED =
@@ -117,14 +132,24 @@ module Lithic
117
132
  :"card.converted",
118
133
  Lithic::Events::SubscriptionSendSimulatedExampleParams::EventType::TaggedSymbol
119
134
  )
120
- CARD_SHIPPED =
135
+ CARD_CREATED =
121
136
  T.let(
122
- :"card.shipped",
137
+ :"card.created",
123
138
  Lithic::Events::SubscriptionSendSimulatedExampleParams::EventType::TaggedSymbol
124
139
  )
125
- CARD_TRANSACTION_UPDATED =
140
+ CARD_REISSUED =
126
141
  T.let(
127
- :"card_transaction.updated",
142
+ :"card.reissued",
143
+ Lithic::Events::SubscriptionSendSimulatedExampleParams::EventType::TaggedSymbol
144
+ )
145
+ CARD_RENEWED =
146
+ T.let(
147
+ :"card.renewed",
148
+ Lithic::Events::SubscriptionSendSimulatedExampleParams::EventType::TaggedSymbol
149
+ )
150
+ CARD_SHIPPED =
151
+ T.let(
152
+ :"card.shipped",
128
153
  Lithic::Events::SubscriptionSendSimulatedExampleParams::EventType::TaggedSymbol
129
154
  )
130
155
  DIGITAL_WALLET_TOKENIZATION_APPROVAL_REQUEST =
@@ -152,11 +177,6 @@ module Lithic
152
177
  :"digital_wallet.tokenization_updated",
153
178
  Lithic::Events::SubscriptionSendSimulatedExampleParams::EventType::TaggedSymbol
154
179
  )
155
- DISPUTE_UPDATED =
156
- T.let(
157
- :"dispute.updated",
158
- Lithic::Events::SubscriptionSendSimulatedExampleParams::EventType::TaggedSymbol
159
- )
160
180
  DISPUTE_EVIDENCE_UPLOAD_FAILED =
161
181
  T.let(
162
182
  :"dispute_evidence.upload_failed",
@@ -172,6 +192,11 @@ module Lithic
172
192
  :"dispute_transaction.updated",
173
193
  Lithic::Events::SubscriptionSendSimulatedExampleParams::EventType::TaggedSymbol
174
194
  )
195
+ DISPUTE_UPDATED =
196
+ T.let(
197
+ :"dispute.updated",
198
+ Lithic::Events::SubscriptionSendSimulatedExampleParams::EventType::TaggedSymbol
199
+ )
175
200
  EXTERNAL_BANK_ACCOUNT_CREATED =
176
201
  T.let(
177
202
  :"external_bank_account.created",
@@ -207,6 +232,16 @@ module Lithic
207
232
  :"funding_event.created",
208
233
  Lithic::Events::SubscriptionSendSimulatedExampleParams::EventType::TaggedSymbol
209
234
  )
235
+ INTERNAL_TRANSACTION_CREATED =
236
+ T.let(
237
+ :"internal_transaction.created",
238
+ Lithic::Events::SubscriptionSendSimulatedExampleParams::EventType::TaggedSymbol
239
+ )
240
+ INTERNAL_TRANSACTION_UPDATED =
241
+ T.let(
242
+ :"internal_transaction.updated",
243
+ Lithic::Events::SubscriptionSendSimulatedExampleParams::EventType::TaggedSymbol
244
+ )
210
245
  LOAN_TAPE_CREATED =
211
246
  T.let(
212
247
  :"loan_tape.created",
@@ -247,16 +282,6 @@ module Lithic
247
282
  :"payment_transaction.updated",
248
283
  Lithic::Events::SubscriptionSendSimulatedExampleParams::EventType::TaggedSymbol
249
284
  )
250
- INTERNAL_TRANSACTION_CREATED =
251
- T.let(
252
- :"internal_transaction.created",
253
- Lithic::Events::SubscriptionSendSimulatedExampleParams::EventType::TaggedSymbol
254
- )
255
- INTERNAL_TRANSACTION_UPDATED =
256
- T.let(
257
- :"internal_transaction.updated",
258
- Lithic::Events::SubscriptionSendSimulatedExampleParams::EventType::TaggedSymbol
259
- )
260
285
  SETTLEMENT_REPORT_UPDATED =
261
286
  T.let(
262
287
  :"settlement_report.updated",
@@ -267,6 +292,11 @@ module Lithic
267
292
  :"statements.created",
268
293
  Lithic::Events::SubscriptionSendSimulatedExampleParams::EventType::TaggedSymbol
269
294
  )
295
+ THREE_DS_AUTHENTICATION_CHALLENGE =
296
+ T.let(
297
+ :"three_ds_authentication.challenge",
298
+ Lithic::Events::SubscriptionSendSimulatedExampleParams::EventType::TaggedSymbol
299
+ )
270
300
  THREE_DS_AUTHENTICATION_CREATED =
271
301
  T.let(
272
302
  :"three_ds_authentication.created",
@@ -99,6 +99,106 @@ module Lithic
99
99
  def to_hash
100
100
  end
101
101
 
102
+ # The type of event that occurred. Possible values:
103
+ #
104
+ # - account_holder_document.updated: Occurs when an account holder's document
105
+ # upload status has been updated
106
+ # - account_holder.created: Occurs when a new account_holder is created.
107
+ # - account_holder.updated: Occurs when an account_holder is updated.
108
+ # - account_holder.verification: Occurs when an asynchronous account_holder's
109
+ # verification is completed.
110
+ # - auth_rules.backtest_report.created: Auth Rules backtest report created.
111
+ # - balance.updated: Financial Account Balance Update
112
+ # - book_transfer_transaction.created: Occurs when a book transfer transaction is
113
+ # created.
114
+ # - book_transfer_transaction.updated: Occurs when a book transfer transaction is
115
+ # updated.
116
+ # - card_transaction.enhanced_data.created: Occurs when L2/L3 enhanced commercial
117
+ # data is processed for a transaction event.
118
+ # - card_transaction.enhanced_data.updated: Occurs when L2/L3 enhanced commercial
119
+ # data is reprocessed for a transaction event.
120
+ # - card_transaction.updated: Occurs when a card transaction happens.
121
+ # - card.converted: Occurs when a card is converted from virtual to physical
122
+ # cards.
123
+ # - card.created: Occurs when a new card is created.
124
+ # - card.reissued: Occurs when a card is reissued.
125
+ # - card.renewed: Occurs when a card is renewed.
126
+ # - card.shipped: Occurs when a card is shipped.
127
+ # - digital_wallet.tokenization_approval_request: Occurs when a tokenization
128
+ # approval request is made. This event will be deprecated in the future. We
129
+ # recommend using `tokenization.approval_request` instead.
130
+ # - digital_wallet.tokenization_result: Occurs when a tokenization request
131
+ # succeeded or failed.
132
+ #
133
+ # This event will be deprecated in the future. We recommend using
134
+ # `tokenization.result` instead.
135
+ #
136
+ # - digital_wallet.tokenization_two_factor_authentication_code: Occurs when a
137
+ # tokenization request 2FA code is sent to the Lithic customer for self serve
138
+ # delivery.
139
+ #
140
+ # This event will be deprecated in the future. We recommend using
141
+ # `tokenization.two_factor_authentication_code` instead.
142
+ #
143
+ # - digital_wallet.tokenization_two_factor_authentication_code_sent: Occurs when a
144
+ # tokenization request 2FA code is sent to our downstream messaging providers
145
+ # for delivery.
146
+ #
147
+ # This event will be deprecated in the future. We recommend using
148
+ # `tokenization.two_factor_authentication_code_sent` instead.
149
+ #
150
+ # - digital_wallet.tokenization_updated: Occurs when a tokenization's status has
151
+ # changed.
152
+ #
153
+ # This event will be deprecated in the future. We recommend using
154
+ # `tokenization.updated` instead.
155
+ #
156
+ # - dispute_evidence.upload_failed: Occurs when a dispute evidence upload fails.
157
+ # - dispute_transaction.created: Occurs when a new dispute transaction is created
158
+ # - dispute_transaction.updated: Occurs when a dispute transaction is updated
159
+ # - dispute.updated: Occurs when a dispute is updated.
160
+ # - external_bank_account.created: Occurs when an external bank account is
161
+ # created.
162
+ # - external_bank_account.updated: Occurs when an external bank account is
163
+ # updated.
164
+ # - external_payment.created: Occurs when an external payment is created.
165
+ # - external_payment.updated: Occurs when an external payment is updated.
166
+ # - financial_account.created: Occurs when a financial account is created.
167
+ # - financial_account.updated: Occurs when a financial account is updated.
168
+ # - funding_event.created: Occurs when a funding event is created.
169
+ # - internal_transaction.created: Occurs when an internal adjustment is created.
170
+ # - internal_transaction.updated: Occurs when an internal adjustment is updated.
171
+ # - loan_tape.created: Occurs when a loan tape is created.
172
+ # - loan_tape.updated: Occurs when a loan tape is updated.
173
+ # - management_operation.created: Occurs when an management operation is created.
174
+ # - management_operation.updated: Occurs when an management operation is updated.
175
+ # - network_total.created: Occurs when a network total is created.
176
+ # - network_total.updated: Occurs when a network total is updated.
177
+ # - payment_transaction.created: Occurs when a payment transaction is created.
178
+ # - payment_transaction.updated: Occurs when a payment transaction is updated.
179
+ # - settlement_report.updated: Occurs when a settlement report is created or
180
+ # updated.
181
+ # - statements.created: Occurs when a statement has been created
182
+ # - three_ds_authentication.challenge: The `three_ds_authentication.challenge`
183
+ # event. Upon receiving this request, the Card Program should issue its own
184
+ # challenge to the cardholder. After a cardholder challenge is successfully
185
+ # completed, the Card Program needs to respond back to Lithic by call to
186
+ # [/v1/three_ds_decisioning/challenge_response](https://docs.lithic.com/reference/post_v1-three-ds-decisioning-challenge-response).
187
+ # Then the cardholder must navigate back to the merchant checkout flow to
188
+ # complete the transaction. Some merchants will include an `app_requestor_url`
189
+ # for app-based purchases; Lithic recommends triggering a redirect to that URL
190
+ # after the cardholder completes an app-based challenge.
191
+ # - three_ds_authentication.created: Occurs when a 3DS authentication is created.
192
+ # - three_ds_authentication.updated: Occurs when a 3DS authentication is updated
193
+ # (eg. challenge is completed).
194
+ # - tokenization.approval_request: Occurs when a tokenization approval request is
195
+ # made.
196
+ # - tokenization.result: Occurs when a tokenization request succeeded or failed.
197
+ # - tokenization.two_factor_authentication_code: Occurs when a tokenization
198
+ # request 2FA code is sent to the Lithic customer for self serve delivery.
199
+ # - tokenization.two_factor_authentication_code_sent: Occurs when a tokenization
200
+ # request 2FA code is sent to our downstream messaging providers for delivery.
201
+ # - tokenization.updated: Occurs when a tokenization's status has changed.
102
202
  module EventType
103
203
  extend Lithic::Internal::Type::Enum
104
204
 
@@ -108,6 +208,11 @@ module Lithic
108
208
  end
109
209
  OrSymbol = T.type_alias { T.any(Symbol, String) }
110
210
 
211
+ ACCOUNT_HOLDER_DOCUMENT_UPDATED =
212
+ T.let(
213
+ :"account_holder_document.updated",
214
+ Lithic::Events::SubscriptionUpdateParams::EventType::TaggedSymbol
215
+ )
111
216
  ACCOUNT_HOLDER_CREATED =
112
217
  T.let(
113
218
  :"account_holder.created",
@@ -123,6 +228,11 @@ module Lithic
123
228
  :"account_holder.verification",
124
229
  Lithic::Events::SubscriptionUpdateParams::EventType::TaggedSymbol
125
230
  )
231
+ AUTH_RULES_BACKTEST_REPORT_CREATED =
232
+ T.let(
233
+ :"auth_rules.backtest_report.created",
234
+ Lithic::Events::SubscriptionUpdateParams::EventType::TaggedSymbol
235
+ )
126
236
  BALANCE_UPDATED =
127
237
  T.let(
128
238
  :"balance.updated",
@@ -133,19 +243,24 @@ module Lithic
133
243
  :"book_transfer_transaction.created",
134
244
  Lithic::Events::SubscriptionUpdateParams::EventType::TaggedSymbol
135
245
  )
136
- CARD_CREATED =
246
+ BOOK_TRANSFER_TRANSACTION_UPDATED =
137
247
  T.let(
138
- :"card.created",
248
+ :"book_transfer_transaction.updated",
139
249
  Lithic::Events::SubscriptionUpdateParams::EventType::TaggedSymbol
140
250
  )
141
- CARD_RENEWED =
251
+ CARD_TRANSACTION_ENHANCED_DATA_CREATED =
142
252
  T.let(
143
- :"card.renewed",
253
+ :"card_transaction.enhanced_data.created",
144
254
  Lithic::Events::SubscriptionUpdateParams::EventType::TaggedSymbol
145
255
  )
146
- CARD_REISSUED =
256
+ CARD_TRANSACTION_ENHANCED_DATA_UPDATED =
147
257
  T.let(
148
- :"card.reissued",
258
+ :"card_transaction.enhanced_data.updated",
259
+ Lithic::Events::SubscriptionUpdateParams::EventType::TaggedSymbol
260
+ )
261
+ CARD_TRANSACTION_UPDATED =
262
+ T.let(
263
+ :"card_transaction.updated",
149
264
  Lithic::Events::SubscriptionUpdateParams::EventType::TaggedSymbol
150
265
  )
151
266
  CARD_CONVERTED =
@@ -153,14 +268,24 @@ module Lithic
153
268
  :"card.converted",
154
269
  Lithic::Events::SubscriptionUpdateParams::EventType::TaggedSymbol
155
270
  )
156
- CARD_SHIPPED =
271
+ CARD_CREATED =
157
272
  T.let(
158
- :"card.shipped",
273
+ :"card.created",
159
274
  Lithic::Events::SubscriptionUpdateParams::EventType::TaggedSymbol
160
275
  )
161
- CARD_TRANSACTION_UPDATED =
276
+ CARD_REISSUED =
162
277
  T.let(
163
- :"card_transaction.updated",
278
+ :"card.reissued",
279
+ Lithic::Events::SubscriptionUpdateParams::EventType::TaggedSymbol
280
+ )
281
+ CARD_RENEWED =
282
+ T.let(
283
+ :"card.renewed",
284
+ Lithic::Events::SubscriptionUpdateParams::EventType::TaggedSymbol
285
+ )
286
+ CARD_SHIPPED =
287
+ T.let(
288
+ :"card.shipped",
164
289
  Lithic::Events::SubscriptionUpdateParams::EventType::TaggedSymbol
165
290
  )
166
291
  DIGITAL_WALLET_TOKENIZATION_APPROVAL_REQUEST =
@@ -188,11 +313,6 @@ module Lithic
188
313
  :"digital_wallet.tokenization_updated",
189
314
  Lithic::Events::SubscriptionUpdateParams::EventType::TaggedSymbol
190
315
  )
191
- DISPUTE_UPDATED =
192
- T.let(
193
- :"dispute.updated",
194
- Lithic::Events::SubscriptionUpdateParams::EventType::TaggedSymbol
195
- )
196
316
  DISPUTE_EVIDENCE_UPLOAD_FAILED =
197
317
  T.let(
198
318
  :"dispute_evidence.upload_failed",
@@ -208,6 +328,11 @@ module Lithic
208
328
  :"dispute_transaction.updated",
209
329
  Lithic::Events::SubscriptionUpdateParams::EventType::TaggedSymbol
210
330
  )
331
+ DISPUTE_UPDATED =
332
+ T.let(
333
+ :"dispute.updated",
334
+ Lithic::Events::SubscriptionUpdateParams::EventType::TaggedSymbol
335
+ )
211
336
  EXTERNAL_BANK_ACCOUNT_CREATED =
212
337
  T.let(
213
338
  :"external_bank_account.created",
@@ -243,6 +368,16 @@ module Lithic
243
368
  :"funding_event.created",
244
369
  Lithic::Events::SubscriptionUpdateParams::EventType::TaggedSymbol
245
370
  )
371
+ INTERNAL_TRANSACTION_CREATED =
372
+ T.let(
373
+ :"internal_transaction.created",
374
+ Lithic::Events::SubscriptionUpdateParams::EventType::TaggedSymbol
375
+ )
376
+ INTERNAL_TRANSACTION_UPDATED =
377
+ T.let(
378
+ :"internal_transaction.updated",
379
+ Lithic::Events::SubscriptionUpdateParams::EventType::TaggedSymbol
380
+ )
246
381
  LOAN_TAPE_CREATED =
247
382
  T.let(
248
383
  :"loan_tape.created",
@@ -283,16 +418,6 @@ module Lithic
283
418
  :"payment_transaction.updated",
284
419
  Lithic::Events::SubscriptionUpdateParams::EventType::TaggedSymbol
285
420
  )
286
- INTERNAL_TRANSACTION_CREATED =
287
- T.let(
288
- :"internal_transaction.created",
289
- Lithic::Events::SubscriptionUpdateParams::EventType::TaggedSymbol
290
- )
291
- INTERNAL_TRANSACTION_UPDATED =
292
- T.let(
293
- :"internal_transaction.updated",
294
- Lithic::Events::SubscriptionUpdateParams::EventType::TaggedSymbol
295
- )
296
421
  SETTLEMENT_REPORT_UPDATED =
297
422
  T.let(
298
423
  :"settlement_report.updated",
@@ -303,6 +428,11 @@ module Lithic
303
428
  :"statements.created",
304
429
  Lithic::Events::SubscriptionUpdateParams::EventType::TaggedSymbol
305
430
  )
431
+ THREE_DS_AUTHENTICATION_CHALLENGE =
432
+ T.let(
433
+ :"three_ds_authentication.challenge",
434
+ Lithic::Events::SubscriptionUpdateParams::EventType::TaggedSymbol
435
+ )
306
436
  THREE_DS_AUTHENTICATION_CREATED =
307
437
  T.let(
308
438
  :"three_ds_authentication.created",