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