lithic 0.7.0 → 0.8.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 (153) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +36 -0
  3. data/README.md +3 -3
  4. data/lib/lithic/client.rb +11 -0
  5. data/lib/lithic/models/account_activity_list_params.rb +2 -0
  6. data/lib/lithic/models/account_activity_list_response.rb +8 -2
  7. data/lib/lithic/models/account_activity_retrieve_transaction_response.rb +8 -2
  8. data/lib/lithic/models/auth_rules/auth_rule.rb +84 -8
  9. data/lib/lithic/models/auth_rules/auth_rule_version.rb +92 -0
  10. data/lib/lithic/models/auth_rules/rule_feature.rb +231 -0
  11. data/lib/lithic/models/auth_rules/typescript_code_parameters.rb +33 -0
  12. data/lib/lithic/models/auth_rules/v2/backtest_results.rb +9 -17
  13. data/lib/lithic/models/auth_rules/v2_create_params.rb +50 -10
  14. data/lib/lithic/models/auth_rules/v2_draft_params.rb +6 -3
  15. data/lib/lithic/models/auth_rules/v2_list_versions_params.rb +22 -0
  16. data/lib/lithic/models/auth_rules/v2_list_versions_response.rb +18 -0
  17. data/lib/lithic/models/auth_rules/v2_retrieve_features_response.rb +3 -83
  18. data/lib/lithic/models/auth_rules/v2_retrieve_report_response.rb +525 -1
  19. data/lib/lithic/models/auth_rules/v2_update_params.rb +17 -1
  20. data/lib/lithic/models/auth_rules/velocity_limit_filters.rb +87 -0
  21. data/lib/lithic/models/auth_rules/velocity_limit_params.rb +3 -84
  22. data/lib/lithic/models/digital_wallet_tokenization_approval_request_webhook_event.rb +69 -59
  23. data/lib/lithic/models/dispute_create_params.rb +11 -11
  24. data/lib/lithic/models/dispute_list_params.rb +3 -3
  25. data/lib/lithic/models/dispute_update_params.rb +9 -9
  26. data/lib/lithic/models/event.rb +0 -7
  27. data/lib/lithic/models/event_list_params.rb +0 -4
  28. data/lib/lithic/models/event_subscription.rb +0 -4
  29. data/lib/lithic/models/events/subscription_create_params.rb +0 -4
  30. data/lib/lithic/models/events/subscription_send_simulated_example_params.rb +0 -1
  31. data/lib/lithic/models/events/subscription_update_params.rb +0 -4
  32. data/lib/lithic/models/financial_account.rb +1 -0
  33. data/lib/lithic/models/financial_account_list_params.rb +1 -0
  34. data/lib/lithic/models/financial_accounts/interest_tier_schedule.rb +9 -1
  35. data/lib/lithic/models/financial_accounts/interest_tier_schedule_update_params.rb +9 -1
  36. data/lib/lithic/models/financial_accounts/statements/statement_line_items.rb +27 -2
  37. data/lib/lithic/models/hold.rb +147 -0
  38. data/lib/lithic/models/hold_create_params.rb +61 -0
  39. data/lib/lithic/models/hold_event.rb +110 -0
  40. data/lib/lithic/models/hold_list_params.rb +89 -0
  41. data/lib/lithic/models/hold_retrieve_params.rb +20 -0
  42. data/lib/lithic/models/hold_void_params.rb +29 -0
  43. data/lib/lithic/models/instance_financial_account_type.rb +1 -0
  44. data/lib/lithic/models/parsed_webhook_event.rb +2 -4
  45. data/lib/lithic/models/payment.rb +76 -12
  46. data/lib/lithic/models/payment_simulate_action_params.rb +1 -0
  47. data/lib/lithic/models.rb +12 -2
  48. data/lib/lithic/resources/account_activity.rb +2 -2
  49. data/lib/lithic/resources/auth_rules/v2.rb +24 -4
  50. data/lib/lithic/resources/disputes.rb +21 -21
  51. data/lib/lithic/resources/financial_accounts/interest_tier_schedule.rb +6 -2
  52. data/lib/lithic/resources/holds.rb +132 -0
  53. data/lib/lithic/resources/webhooks.rb +2 -3
  54. data/lib/lithic/version.rb +1 -1
  55. data/lib/lithic.rb +14 -1
  56. data/rbi/lithic/client.rbi +9 -0
  57. data/rbi/lithic/models/account_activity_list_params.rbi +10 -0
  58. data/rbi/lithic/models/account_activity_list_response.rbi +14 -2
  59. data/rbi/lithic/models/account_activity_retrieve_transaction_response.rbi +14 -2
  60. data/rbi/lithic/models/auth_rules/auth_rule.rbi +128 -4
  61. data/rbi/lithic/models/auth_rules/auth_rule_version.rbi +142 -0
  62. data/rbi/lithic/models/auth_rules/rule_feature.rbi +414 -0
  63. data/rbi/lithic/models/auth_rules/typescript_code_parameters.rbi +94 -0
  64. data/rbi/lithic/models/auth_rules/v2/backtest_results.rbi +12 -35
  65. data/rbi/lithic/models/auth_rules/v2_create_params.rbi +81 -12
  66. data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +8 -4
  67. data/rbi/lithic/models/auth_rules/v2_list_versions_params.rbi +40 -0
  68. data/rbi/lithic/models/auth_rules/v2_list_versions_response.rbi +36 -0
  69. data/rbi/lithic/models/auth_rules/v2_retrieve_features_response.rbi +4 -209
  70. data/rbi/lithic/models/auth_rules/v2_retrieve_report_response.rbi +1692 -3
  71. data/rbi/lithic/models/auth_rules/v2_update_params.rbi +24 -0
  72. data/rbi/lithic/models/auth_rules/velocity_limit_filters.rbi +205 -0
  73. data/rbi/lithic/models/auth_rules/velocity_limit_params.rbi +4 -206
  74. data/rbi/lithic/models/digital_wallet_tokenization_approval_request_webhook_event.rbi +154 -142
  75. data/rbi/lithic/models/dispute_create_params.rbi +11 -11
  76. data/rbi/lithic/models/dispute_list_params.rbi +3 -3
  77. data/rbi/lithic/models/dispute_update_params.rbi +9 -9
  78. data/rbi/lithic/models/event.rbi +0 -14
  79. data/rbi/lithic/models/event_list_params.rbi +0 -8
  80. data/rbi/lithic/models/event_subscription.rbi +0 -8
  81. data/rbi/lithic/models/events/subscription_create_params.rbi +0 -8
  82. data/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +0 -5
  83. data/rbi/lithic/models/events/subscription_update_params.rbi +0 -8
  84. data/rbi/lithic/models/financial_account.rbi +5 -0
  85. data/rbi/lithic/models/financial_account_list_params.rbi +5 -0
  86. data/rbi/lithic/models/financial_accounts/interest_tier_schedule.rbi +11 -0
  87. data/rbi/lithic/models/financial_accounts/interest_tier_schedule_update_params.rbi +11 -0
  88. data/rbi/lithic/models/financial_accounts/statements/statement_line_items.rbi +38 -3
  89. data/rbi/lithic/models/hold.rbi +183 -0
  90. data/rbi/lithic/models/hold_create_params.rbi +90 -0
  91. data/rbi/lithic/models/hold_event.rbi +148 -0
  92. data/rbi/lithic/models/hold_list_params.rbi +137 -0
  93. data/rbi/lithic/models/hold_retrieve_params.rbi +35 -0
  94. data/rbi/lithic/models/hold_void_params.rbi +49 -0
  95. data/rbi/lithic/models/instance_financial_account_type.rbi +5 -0
  96. data/rbi/lithic/models/parsed_webhook_event.rbi +0 -1
  97. data/rbi/lithic/models/payment.rbi +139 -13
  98. data/rbi/lithic/models/payment_simulate_action_params.rbi +5 -0
  99. data/rbi/lithic/models.rbi +12 -3
  100. data/rbi/lithic/resources/auth_rules/v2.rbi +16 -4
  101. data/rbi/lithic/resources/disputes.rbi +21 -21
  102. data/rbi/lithic/resources/financial_accounts/interest_tier_schedule.rbi +6 -0
  103. data/rbi/lithic/resources/holds.rbi +111 -0
  104. data/rbi/lithic/resources/webhooks.rbi +8 -2
  105. data/sig/lithic/client.rbs +5 -0
  106. data/sig/lithic/models/account_activity_list_params.rbs +4 -0
  107. data/sig/lithic/models/account_activity_list_response.rbs +5 -0
  108. data/sig/lithic/models/account_activity_retrieve_transaction_response.rbs +5 -0
  109. data/sig/lithic/models/auth_rules/auth_rule.rbs +42 -0
  110. data/sig/lithic/models/auth_rules/auth_rule_version.rbs +67 -0
  111. data/sig/lithic/models/auth_rules/rule_feature.rbs +173 -0
  112. data/sig/lithic/models/auth_rules/typescript_code_parameters.rbs +27 -0
  113. data/sig/lithic/models/auth_rules/v2/backtest_results.rbs +5 -18
  114. data/sig/lithic/models/auth_rules/v2_create_params.rbs +25 -0
  115. data/sig/lithic/models/auth_rules/v2_draft_params.rbs +1 -0
  116. data/sig/lithic/models/auth_rules/v2_list_versions_params.rbs +25 -0
  117. data/sig/lithic/models/auth_rules/v2_list_versions_response.rbs +18 -0
  118. data/sig/lithic/models/auth_rules/v2_retrieve_features_response.rbs +4 -80
  119. data/sig/lithic/models/auth_rules/v2_retrieve_report_response.rbs +658 -3
  120. data/sig/lithic/models/auth_rules/v2_update_params.rbs +16 -0
  121. data/sig/lithic/models/auth_rules/velocity_limit_filters.rbs +81 -0
  122. data/sig/lithic/models/auth_rules/velocity_limit_params.rbs +6 -82
  123. data/sig/lithic/models/digital_wallet_tokenization_approval_request_webhook_event.rbs +38 -38
  124. data/sig/lithic/models/event.rbs +0 -2
  125. data/sig/lithic/models/event_list_params.rbs +0 -2
  126. data/sig/lithic/models/event_subscription.rbs +0 -2
  127. data/sig/lithic/models/events/subscription_create_params.rbs +0 -2
  128. data/sig/lithic/models/events/subscription_send_simulated_example_params.rbs +0 -2
  129. data/sig/lithic/models/events/subscription_update_params.rbs +0 -2
  130. data/sig/lithic/models/financial_account.rbs +2 -0
  131. data/sig/lithic/models/financial_account_list_params.rbs +7 -1
  132. data/sig/lithic/models/financial_accounts/interest_tier_schedule.rbs +7 -0
  133. data/sig/lithic/models/financial_accounts/interest_tier_schedule_update_params.rbs +7 -0
  134. data/sig/lithic/models/financial_accounts/statements/statement_line_items.rbs +17 -3
  135. data/sig/lithic/models/hold.rbs +137 -0
  136. data/sig/lithic/models/hold_create_params.rbs +57 -0
  137. data/sig/lithic/models/hold_event.rbs +91 -0
  138. data/sig/lithic/models/hold_list_params.rbs +83 -0
  139. data/sig/lithic/models/hold_retrieve_params.rbs +23 -0
  140. data/sig/lithic/models/hold_void_params.rbs +28 -0
  141. data/sig/lithic/models/instance_financial_account_type.rbs +2 -0
  142. data/sig/lithic/models/parsed_webhook_event.rbs +0 -1
  143. data/sig/lithic/models/payment.rbs +23 -8
  144. data/sig/lithic/models/payment_simulate_action_params.rbs +2 -0
  145. data/sig/lithic/models.rbs +12 -2
  146. data/sig/lithic/resources/auth_rules/v2.rbs +5 -0
  147. data/sig/lithic/resources/financial_accounts/interest_tier_schedule.rbs +2 -0
  148. data/sig/lithic/resources/holds.rbs +39 -0
  149. data/sig/lithic/resources/webhooks.rbs +0 -1
  150. metadata +41 -5
  151. data/lib/lithic/models/tokenization_decisioning_request_webhook_event.rb +0 -159
  152. data/rbi/lithic/models/tokenization_decisioning_request_webhook_event.rbi +0 -331
  153. data/sig/lithic/models/tokenization_decisioning_request_webhook_event.rbs +0 -130
@@ -23,26 +23,6 @@ module Lithic
23
23
  sig { returns(Time) }
24
24
  attr_accessor :created
25
25
 
26
- # Contains the metadata for the customer tokenization decision.
27
- sig do
28
- returns(
29
- T.nilable(
30
- Lithic::DigitalWalletTokenizationApprovalRequestWebhookEvent::CustomerTokenizationDecision
31
- )
32
- )
33
- end
34
- attr_reader :customer_tokenization_decision
35
-
36
- sig do
37
- params(
38
- customer_tokenization_decision:
39
- T.nilable(
40
- Lithic::DigitalWalletTokenizationApprovalRequestWebhookEvent::CustomerTokenizationDecision::OrHash
41
- )
42
- ).void
43
- end
44
- attr_writer :customer_tokenization_decision
45
-
46
26
  # Contains the metadata for the digital wallet being tokenized.
47
27
  sig { returns(Lithic::TokenMetadata) }
48
28
  attr_reader :digital_wallet_token_metadata
@@ -93,13 +73,34 @@ module Lithic
93
73
  end
94
74
  attr_writer :wallet_decisioning_info
95
75
 
76
+ # Contains the metadata for the customer tokenization decision.
77
+ sig do
78
+ returns(
79
+ T.nilable(
80
+ Lithic::DigitalWalletTokenizationApprovalRequestWebhookEvent::CustomerTokenizationDecision
81
+ )
82
+ )
83
+ end
84
+ attr_reader :customer_tokenization_decision
85
+
86
+ sig do
87
+ params(
88
+ customer_tokenization_decision:
89
+ T.nilable(
90
+ Lithic::DigitalWalletTokenizationApprovalRequestWebhookEvent::CustomerTokenizationDecision::OrHash
91
+ )
92
+ ).void
93
+ end
94
+ attr_writer :customer_tokenization_decision
95
+
96
96
  sig { returns(T.nilable(Lithic::Device)) }
97
97
  attr_reader :device
98
98
 
99
99
  sig { params(device: Lithic::Device::OrHash).void }
100
100
  attr_writer :device
101
101
 
102
- # Results from rules that were evaluated for this tokenization
102
+ # Results from rules that were evaluated for this tokenization. Only populated in
103
+ # webhook events, not in the initial decisioning request
103
104
  sig { returns(T.nilable(T::Array[Lithic::TokenizationRuleResult])) }
104
105
  attr_reader :rule_results
105
106
 
@@ -110,7 +111,8 @@ module Lithic
110
111
  end
111
112
  attr_writer :rule_results
112
113
 
113
- # List of reasons why the tokenization was declined
114
+ # List of reasons why the tokenization was declined. Only populated in webhook
115
+ # events, not in the initial decisioning request
114
116
  sig do
115
117
  returns(
116
118
  T.nilable(T::Array[Lithic::TokenizationDeclineReason::TaggedSymbol])
@@ -144,7 +146,8 @@ module Lithic
144
146
  end
145
147
  attr_writer :tokenization_source
146
148
 
147
- # List of reasons why two-factor authentication was required
149
+ # List of reasons why two-factor authentication was required. Only populated in
150
+ # webhook events, not in the initial decisioning request
148
151
  sig do
149
152
  returns(
150
153
  T.nilable(T::Array[Lithic::TokenizationTfaReason::TaggedSymbol])
@@ -160,15 +163,17 @@ module Lithic
160
163
  end
161
164
  attr_writer :tokenization_tfa_reasons
162
165
 
166
+ # Payload for digital wallet tokenization approval requests. Used for both the
167
+ # decisioning responder request (sent to the customer's endpoint for a real-time
168
+ # decision) and the subsequent webhook event (sent after the decision is made).
169
+ # Fields like customer_tokenization_decision, tokenization_decline_reasons,
170
+ # tokenization_tfa_reasons, and rule_results are only populated in the webhook
171
+ # event, not in the initial decisioning request.
163
172
  sig do
164
173
  params(
165
174
  account_token: String,
166
175
  card_token: String,
167
176
  created: Time,
168
- customer_tokenization_decision:
169
- T.nilable(
170
- Lithic::DigitalWalletTokenizationApprovalRequestWebhookEvent::CustomerTokenizationDecision::OrHash
171
- ),
172
177
  digital_wallet_token_metadata: Lithic::TokenMetadata::OrHash,
173
178
  event_type:
174
179
  Lithic::DigitalWalletTokenizationApprovalRequestWebhookEvent::EventType::OrSymbol,
@@ -178,6 +183,10 @@ module Lithic
178
183
  Lithic::DigitalWalletTokenizationApprovalRequestWebhookEvent::TokenizationChannel::OrSymbol,
179
184
  tokenization_token: String,
180
185
  wallet_decisioning_info: Lithic::WalletDecisioningInfo::OrHash,
186
+ customer_tokenization_decision:
187
+ T.nilable(
188
+ Lithic::DigitalWalletTokenizationApprovalRequestWebhookEvent::CustomerTokenizationDecision::OrHash
189
+ ),
181
190
  device: Lithic::Device::OrHash,
182
191
  rule_results: T::Array[Lithic::TokenizationRuleResult::OrHash],
183
192
  tokenization_decline_reasons:
@@ -195,8 +204,6 @@ module Lithic
195
204
  card_token:,
196
205
  # Indicate when the request was received from Mastercard or Visa
197
206
  created:,
198
- # Contains the metadata for the customer tokenization decision.
199
- customer_tokenization_decision:,
200
207
  # Contains the metadata for the digital wallet being tokenized.
201
208
  digital_wallet_token_metadata:,
202
209
  # The name of this event
@@ -209,14 +216,19 @@ module Lithic
209
216
  # Unique identifier for the digital wallet token attempt
210
217
  tokenization_token:,
211
218
  wallet_decisioning_info:,
219
+ # Contains the metadata for the customer tokenization decision.
220
+ customer_tokenization_decision: nil,
212
221
  device: nil,
213
- # Results from rules that were evaluated for this tokenization
222
+ # Results from rules that were evaluated for this tokenization. Only populated in
223
+ # webhook events, not in the initial decisioning request
214
224
  rule_results: nil,
215
- # List of reasons why the tokenization was declined
225
+ # List of reasons why the tokenization was declined. Only populated in webhook
226
+ # events, not in the initial decisioning request
216
227
  tokenization_decline_reasons: nil,
217
228
  # The source of the tokenization.
218
229
  tokenization_source: nil,
219
- # List of reasons why two-factor authentication was required
230
+ # List of reasons why two-factor authentication was required. Only populated in
231
+ # webhook events, not in the initial decisioning request
220
232
  tokenization_tfa_reasons: nil
221
233
  )
222
234
  end
@@ -227,10 +239,6 @@ module Lithic
227
239
  account_token: String,
228
240
  card_token: String,
229
241
  created: Time,
230
- customer_tokenization_decision:
231
- T.nilable(
232
- Lithic::DigitalWalletTokenizationApprovalRequestWebhookEvent::CustomerTokenizationDecision
233
- ),
234
242
  digital_wallet_token_metadata: Lithic::TokenMetadata,
235
243
  event_type:
236
244
  Lithic::DigitalWalletTokenizationApprovalRequestWebhookEvent::EventType::TaggedSymbol,
@@ -240,6 +248,10 @@ module Lithic
240
248
  Lithic::DigitalWalletTokenizationApprovalRequestWebhookEvent::TokenizationChannel::TaggedSymbol,
241
249
  tokenization_token: String,
242
250
  wallet_decisioning_info: Lithic::WalletDecisioningInfo,
251
+ customer_tokenization_decision:
252
+ T.nilable(
253
+ Lithic::DigitalWalletTokenizationApprovalRequestWebhookEvent::CustomerTokenizationDecision
254
+ ),
243
255
  device: Lithic::Device,
244
256
  rule_results: T::Array[Lithic::TokenizationRuleResult],
245
257
  tokenization_decline_reasons:
@@ -254,6 +266,112 @@ module Lithic
254
266
  def to_hash
255
267
  end
256
268
 
269
+ # The name of this event
270
+ module EventType
271
+ extend Lithic::Internal::Type::Enum
272
+
273
+ TaggedSymbol =
274
+ T.type_alias do
275
+ T.all(
276
+ Symbol,
277
+ Lithic::DigitalWalletTokenizationApprovalRequestWebhookEvent::EventType
278
+ )
279
+ end
280
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
281
+
282
+ DIGITAL_WALLET_TOKENIZATION_APPROVAL_REQUEST =
283
+ T.let(
284
+ :"digital_wallet.tokenization_approval_request",
285
+ Lithic::DigitalWalletTokenizationApprovalRequestWebhookEvent::EventType::TaggedSymbol
286
+ )
287
+
288
+ sig do
289
+ override.returns(
290
+ T::Array[
291
+ Lithic::DigitalWalletTokenizationApprovalRequestWebhookEvent::EventType::TaggedSymbol
292
+ ]
293
+ )
294
+ end
295
+ def self.values
296
+ end
297
+ end
298
+
299
+ # Whether Lithic decisioned on the token, and if so, what the decision was.
300
+ # APPROVED/VERIFICATION_REQUIRED/DENIED.
301
+ module IssuerDecision
302
+ extend Lithic::Internal::Type::Enum
303
+
304
+ TaggedSymbol =
305
+ T.type_alias do
306
+ T.all(
307
+ Symbol,
308
+ Lithic::DigitalWalletTokenizationApprovalRequestWebhookEvent::IssuerDecision
309
+ )
310
+ end
311
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
312
+
313
+ APPROVED =
314
+ T.let(
315
+ :APPROVED,
316
+ Lithic::DigitalWalletTokenizationApprovalRequestWebhookEvent::IssuerDecision::TaggedSymbol
317
+ )
318
+ DENIED =
319
+ T.let(
320
+ :DENIED,
321
+ Lithic::DigitalWalletTokenizationApprovalRequestWebhookEvent::IssuerDecision::TaggedSymbol
322
+ )
323
+ VERIFICATION_REQUIRED =
324
+ T.let(
325
+ :VERIFICATION_REQUIRED,
326
+ Lithic::DigitalWalletTokenizationApprovalRequestWebhookEvent::IssuerDecision::TaggedSymbol
327
+ )
328
+
329
+ sig do
330
+ override.returns(
331
+ T::Array[
332
+ Lithic::DigitalWalletTokenizationApprovalRequestWebhookEvent::IssuerDecision::TaggedSymbol
333
+ ]
334
+ )
335
+ end
336
+ def self.values
337
+ end
338
+ end
339
+
340
+ # The channel through which the tokenization was made.
341
+ module TokenizationChannel
342
+ extend Lithic::Internal::Type::Enum
343
+
344
+ TaggedSymbol =
345
+ T.type_alias do
346
+ T.all(
347
+ Symbol,
348
+ Lithic::DigitalWalletTokenizationApprovalRequestWebhookEvent::TokenizationChannel
349
+ )
350
+ end
351
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
352
+
353
+ DIGITAL_WALLET =
354
+ T.let(
355
+ :DIGITAL_WALLET,
356
+ Lithic::DigitalWalletTokenizationApprovalRequestWebhookEvent::TokenizationChannel::TaggedSymbol
357
+ )
358
+ MERCHANT =
359
+ T.let(
360
+ :MERCHANT,
361
+ Lithic::DigitalWalletTokenizationApprovalRequestWebhookEvent::TokenizationChannel::TaggedSymbol
362
+ )
363
+
364
+ sig do
365
+ override.returns(
366
+ T::Array[
367
+ Lithic::DigitalWalletTokenizationApprovalRequestWebhookEvent::TokenizationChannel::TaggedSymbol
368
+ ]
369
+ )
370
+ end
371
+ def self.values
372
+ end
373
+ end
374
+
257
375
  class CustomerTokenizationDecision < Lithic::Internal::Type::BaseModel
258
376
  OrHash =
259
377
  T.type_alias do
@@ -381,112 +499,6 @@ module Lithic
381
499
  end
382
500
  end
383
501
 
384
- # The name of this event
385
- module EventType
386
- extend Lithic::Internal::Type::Enum
387
-
388
- TaggedSymbol =
389
- T.type_alias do
390
- T.all(
391
- Symbol,
392
- Lithic::DigitalWalletTokenizationApprovalRequestWebhookEvent::EventType
393
- )
394
- end
395
- OrSymbol = T.type_alias { T.any(Symbol, String) }
396
-
397
- DIGITAL_WALLET_TOKENIZATION_APPROVAL_REQUEST =
398
- T.let(
399
- :"digital_wallet.tokenization_approval_request",
400
- Lithic::DigitalWalletTokenizationApprovalRequestWebhookEvent::EventType::TaggedSymbol
401
- )
402
-
403
- sig do
404
- override.returns(
405
- T::Array[
406
- Lithic::DigitalWalletTokenizationApprovalRequestWebhookEvent::EventType::TaggedSymbol
407
- ]
408
- )
409
- end
410
- def self.values
411
- end
412
- end
413
-
414
- # Whether Lithic decisioned on the token, and if so, what the decision was.
415
- # APPROVED/VERIFICATION_REQUIRED/DENIED.
416
- module IssuerDecision
417
- extend Lithic::Internal::Type::Enum
418
-
419
- TaggedSymbol =
420
- T.type_alias do
421
- T.all(
422
- Symbol,
423
- Lithic::DigitalWalletTokenizationApprovalRequestWebhookEvent::IssuerDecision
424
- )
425
- end
426
- OrSymbol = T.type_alias { T.any(Symbol, String) }
427
-
428
- APPROVED =
429
- T.let(
430
- :APPROVED,
431
- Lithic::DigitalWalletTokenizationApprovalRequestWebhookEvent::IssuerDecision::TaggedSymbol
432
- )
433
- DENIED =
434
- T.let(
435
- :DENIED,
436
- Lithic::DigitalWalletTokenizationApprovalRequestWebhookEvent::IssuerDecision::TaggedSymbol
437
- )
438
- VERIFICATION_REQUIRED =
439
- T.let(
440
- :VERIFICATION_REQUIRED,
441
- Lithic::DigitalWalletTokenizationApprovalRequestWebhookEvent::IssuerDecision::TaggedSymbol
442
- )
443
-
444
- sig do
445
- override.returns(
446
- T::Array[
447
- Lithic::DigitalWalletTokenizationApprovalRequestWebhookEvent::IssuerDecision::TaggedSymbol
448
- ]
449
- )
450
- end
451
- def self.values
452
- end
453
- end
454
-
455
- # The channel through which the tokenization was made.
456
- module TokenizationChannel
457
- extend Lithic::Internal::Type::Enum
458
-
459
- TaggedSymbol =
460
- T.type_alias do
461
- T.all(
462
- Symbol,
463
- Lithic::DigitalWalletTokenizationApprovalRequestWebhookEvent::TokenizationChannel
464
- )
465
- end
466
- OrSymbol = T.type_alias { T.any(Symbol, String) }
467
-
468
- DIGITAL_WALLET =
469
- T.let(
470
- :DIGITAL_WALLET,
471
- Lithic::DigitalWalletTokenizationApprovalRequestWebhookEvent::TokenizationChannel::TaggedSymbol
472
- )
473
- MERCHANT =
474
- T.let(
475
- :MERCHANT,
476
- Lithic::DigitalWalletTokenizationApprovalRequestWebhookEvent::TokenizationChannel::TaggedSymbol
477
- )
478
-
479
- sig do
480
- override.returns(
481
- T::Array[
482
- Lithic::DigitalWalletTokenizationApprovalRequestWebhookEvent::TokenizationChannel::TaggedSymbol
483
- ]
484
- )
485
- end
486
- def self.values
487
- end
488
- end
489
-
490
502
  # The source of the tokenization.
491
503
  module TokenizationSource
492
504
  extend Lithic::Internal::Type::Enum
@@ -11,26 +11,26 @@ module Lithic
11
11
  T.any(Lithic::DisputeCreateParams, Lithic::Internal::AnyHash)
12
12
  end
13
13
 
14
- # Amount to dispute
14
+ # Amount for chargeback
15
15
  sig { returns(Integer) }
16
16
  attr_accessor :amount
17
17
 
18
- # Reason for dispute
18
+ # Reason for chargeback
19
19
  sig { returns(Lithic::DisputeCreateParams::Reason::OrSymbol) }
20
20
  attr_accessor :reason
21
21
 
22
- # Transaction to dispute
22
+ # Transaction for chargeback
23
23
  sig { returns(String) }
24
24
  attr_accessor :transaction_token
25
25
 
26
- # Date the customer filed the dispute
26
+ # Date the customer filed the chargeback request
27
27
  sig { returns(T.nilable(Time)) }
28
28
  attr_reader :customer_filed_date
29
29
 
30
30
  sig { params(customer_filed_date: Time).void }
31
31
  attr_writer :customer_filed_date
32
32
 
33
- # Customer description of dispute
33
+ # Customer description
34
34
  sig { returns(T.nilable(String)) }
35
35
  attr_reader :customer_note
36
36
 
@@ -48,15 +48,15 @@ module Lithic
48
48
  ).returns(T.attached_class)
49
49
  end
50
50
  def self.new(
51
- # Amount to dispute
51
+ # Amount for chargeback
52
52
  amount:,
53
- # Reason for dispute
53
+ # Reason for chargeback
54
54
  reason:,
55
- # Transaction to dispute
55
+ # Transaction for chargeback
56
56
  transaction_token:,
57
- # Date the customer filed the dispute
57
+ # Date the customer filed the chargeback request
58
58
  customer_filed_date: nil,
59
- # Customer description of dispute
59
+ # Customer description
60
60
  customer_note: nil,
61
61
  request_options: {}
62
62
  )
@@ -77,7 +77,7 @@ module Lithic
77
77
  def to_hash
78
78
  end
79
79
 
80
- # Reason for dispute
80
+ # Reason for chargeback
81
81
  module Reason
82
82
  extend Lithic::Internal::Type::Enum
83
83
 
@@ -50,7 +50,7 @@ module Lithic
50
50
  sig { params(starting_after: String).void }
51
51
  attr_writer :starting_after
52
52
 
53
- # List disputes of a specific status.
53
+ # Filter by status.
54
54
  sig { returns(T.nilable(Lithic::DisputeListParams::Status::OrSymbol)) }
55
55
  attr_reader :status
56
56
 
@@ -91,7 +91,7 @@ module Lithic
91
91
  # A cursor representing an item's token after which a page of results should
92
92
  # begin. Used to retrieve the next page of results after this item.
93
93
  starting_after: nil,
94
- # List disputes of a specific status.
94
+ # Filter by status.
95
95
  status: nil,
96
96
  # Transaction tokens to filter by.
97
97
  transaction_tokens: nil,
@@ -116,7 +116,7 @@ module Lithic
116
116
  def to_hash
117
117
  end
118
118
 
119
- # List disputes of a specific status.
119
+ # Filter by status.
120
120
  module Status
121
121
  extend Lithic::Internal::Type::Enum
122
122
 
@@ -14,28 +14,28 @@ module Lithic
14
14
  sig { returns(String) }
15
15
  attr_accessor :dispute_token
16
16
 
17
- # Amount to dispute
17
+ # Amount for chargeback
18
18
  sig { returns(T.nilable(Integer)) }
19
19
  attr_reader :amount
20
20
 
21
21
  sig { params(amount: Integer).void }
22
22
  attr_writer :amount
23
23
 
24
- # Date the customer filed the dispute
24
+ # Date the customer filed the chargeback request
25
25
  sig { returns(T.nilable(Time)) }
26
26
  attr_reader :customer_filed_date
27
27
 
28
28
  sig { params(customer_filed_date: Time).void }
29
29
  attr_writer :customer_filed_date
30
30
 
31
- # Customer description of dispute
31
+ # Customer description
32
32
  sig { returns(T.nilable(String)) }
33
33
  attr_reader :customer_note
34
34
 
35
35
  sig { params(customer_note: String).void }
36
36
  attr_writer :customer_note
37
37
 
38
- # Reason for dispute
38
+ # Reason for chargeback
39
39
  sig { returns(T.nilable(Lithic::DisputeUpdateParams::Reason::OrSymbol)) }
40
40
  attr_reader :reason
41
41
 
@@ -54,13 +54,13 @@ module Lithic
54
54
  end
55
55
  def self.new(
56
56
  dispute_token:,
57
- # Amount to dispute
57
+ # Amount for chargeback
58
58
  amount: nil,
59
- # Date the customer filed the dispute
59
+ # Date the customer filed the chargeback request
60
60
  customer_filed_date: nil,
61
- # Customer description of dispute
61
+ # Customer description
62
62
  customer_note: nil,
63
- # Reason for dispute
63
+ # Reason for chargeback
64
64
  reason: nil,
65
65
  request_options: {}
66
66
  )
@@ -81,7 +81,7 @@ module Lithic
81
81
  def to_hash
82
82
  end
83
83
 
84
- # Reason for dispute
84
+ # Reason for chargeback
85
85
  module Reason
86
86
  extend Lithic::Internal::Type::Enum
87
87
 
@@ -41,9 +41,6 @@ module Lithic
41
41
  # - card.renewed: Occurs when a card is renewed.
42
42
  # - card.shipped: Occurs when a card is shipped.
43
43
  # - card.updated: Occurs when a card is updated.
44
- # - digital_wallet.tokenization_approval_request: Occurs when a tokenization
45
- # approval request is made. This event will be deprecated in the future. We
46
- # recommend using `tokenization.approval_request` instead.
47
44
  # - digital_wallet.tokenization_result: Occurs when a tokenization request
48
45
  # succeeded or failed.
49
46
  #
@@ -164,9 +161,6 @@ module Lithic
164
161
  # - card.renewed: Occurs when a card is renewed.
165
162
  # - card.shipped: Occurs when a card is shipped.
166
163
  # - card.updated: Occurs when a card is updated.
167
- # - digital_wallet.tokenization_approval_request: Occurs when a tokenization
168
- # approval request is made. This event will be deprecated in the future. We
169
- # recommend using `tokenization.approval_request` instead.
170
164
  # - digital_wallet.tokenization_result: Occurs when a tokenization request
171
165
  # succeeded or failed.
172
166
  #
@@ -283,9 +277,6 @@ module Lithic
283
277
  # - card.renewed: Occurs when a card is renewed.
284
278
  # - card.shipped: Occurs when a card is shipped.
285
279
  # - card.updated: Occurs when a card is updated.
286
- # - digital_wallet.tokenization_approval_request: Occurs when a tokenization
287
- # approval request is made. This event will be deprecated in the future. We
288
- # recommend using `tokenization.approval_request` instead.
289
280
  # - digital_wallet.tokenization_result: Occurs when a tokenization request
290
281
  # succeeded or failed.
291
282
  #
@@ -428,11 +419,6 @@ module Lithic
428
419
  T.let(:"card.shipped", Lithic::Event::EventType::TaggedSymbol)
429
420
  CARD_UPDATED =
430
421
  T.let(:"card.updated", Lithic::Event::EventType::TaggedSymbol)
431
- DIGITAL_WALLET_TOKENIZATION_APPROVAL_REQUEST =
432
- T.let(
433
- :"digital_wallet.tokenization_approval_request",
434
- Lithic::Event::EventType::TaggedSymbol
435
- )
436
422
  DIGITAL_WALLET_TOKENIZATION_RESULT =
437
423
  T.let(
438
424
  :"digital_wallet.tokenization_result",
@@ -150,9 +150,6 @@ module Lithic
150
150
  # - card.renewed: Occurs when a card is renewed.
151
151
  # - card.shipped: Occurs when a card is shipped.
152
152
  # - card.updated: Occurs when a card is updated.
153
- # - digital_wallet.tokenization_approval_request: Occurs when a tokenization
154
- # approval request is made. This event will be deprecated in the future. We
155
- # recommend using `tokenization.approval_request` instead.
156
153
  # - digital_wallet.tokenization_result: Occurs when a tokenization request
157
154
  # succeeded or failed.
158
155
  #
@@ -317,11 +314,6 @@ module Lithic
317
314
  :"card.updated",
318
315
  Lithic::EventListParams::EventType::TaggedSymbol
319
316
  )
320
- DIGITAL_WALLET_TOKENIZATION_APPROVAL_REQUEST =
321
- T.let(
322
- :"digital_wallet.tokenization_approval_request",
323
- Lithic::EventListParams::EventType::TaggedSymbol
324
- )
325
317
  DIGITAL_WALLET_TOKENIZATION_RESULT =
326
318
  T.let(
327
319
  :"digital_wallet.tokenization_result",
@@ -98,9 +98,6 @@ module Lithic
98
98
  # - card.renewed: Occurs when a card is renewed.
99
99
  # - card.shipped: Occurs when a card is shipped.
100
100
  # - card.updated: Occurs when a card is updated.
101
- # - digital_wallet.tokenization_approval_request: Occurs when a tokenization
102
- # approval request is made. This event will be deprecated in the future. We
103
- # recommend using `tokenization.approval_request` instead.
104
101
  # - digital_wallet.tokenization_result: Occurs when a tokenization request
105
102
  # succeeded or failed.
106
103
  #
@@ -265,11 +262,6 @@ module Lithic
265
262
  :"card.updated",
266
263
  Lithic::EventSubscription::EventType::TaggedSymbol
267
264
  )
268
- DIGITAL_WALLET_TOKENIZATION_APPROVAL_REQUEST =
269
- T.let(
270
- :"digital_wallet.tokenization_approval_request",
271
- Lithic::EventSubscription::EventType::TaggedSymbol
272
- )
273
265
  DIGITAL_WALLET_TOKENIZATION_RESULT =
274
266
  T.let(
275
267
  :"digital_wallet.tokenization_result",
@@ -125,9 +125,6 @@ module Lithic
125
125
  # - card.renewed: Occurs when a card is renewed.
126
126
  # - card.shipped: Occurs when a card is shipped.
127
127
  # - card.updated: Occurs when a card is updated.
128
- # - digital_wallet.tokenization_approval_request: Occurs when a tokenization
129
- # approval request is made. This event will be deprecated in the future. We
130
- # recommend using `tokenization.approval_request` instead.
131
128
  # - digital_wallet.tokenization_result: Occurs when a tokenization request
132
129
  # succeeded or failed.
133
130
  #
@@ -294,11 +291,6 @@ module Lithic
294
291
  :"card.updated",
295
292
  Lithic::Events::SubscriptionCreateParams::EventType::TaggedSymbol
296
293
  )
297
- DIGITAL_WALLET_TOKENIZATION_APPROVAL_REQUEST =
298
- T.let(
299
- :"digital_wallet.tokenization_approval_request",
300
- Lithic::Events::SubscriptionCreateParams::EventType::TaggedSymbol
301
- )
302
294
  DIGITAL_WALLET_TOKENIZATION_RESULT =
303
295
  T.let(
304
296
  :"digital_wallet.tokenization_result",
@@ -163,11 +163,6 @@ module Lithic
163
163
  :"card.updated",
164
164
  Lithic::Events::SubscriptionSendSimulatedExampleParams::EventType::TaggedSymbol
165
165
  )
166
- DIGITAL_WALLET_TOKENIZATION_APPROVAL_REQUEST =
167
- T.let(
168
- :"digital_wallet.tokenization_approval_request",
169
- Lithic::Events::SubscriptionSendSimulatedExampleParams::EventType::TaggedSymbol
170
- )
171
166
  DIGITAL_WALLET_TOKENIZATION_RESULT =
172
167
  T.let(
173
168
  :"digital_wallet.tokenization_result",
@@ -131,9 +131,6 @@ module Lithic
131
131
  # - card.renewed: Occurs when a card is renewed.
132
132
  # - card.shipped: Occurs when a card is shipped.
133
133
  # - card.updated: Occurs when a card is updated.
134
- # - digital_wallet.tokenization_approval_request: Occurs when a tokenization
135
- # approval request is made. This event will be deprecated in the future. We
136
- # recommend using `tokenization.approval_request` instead.
137
134
  # - digital_wallet.tokenization_result: Occurs when a tokenization request
138
135
  # succeeded or failed.
139
136
  #
@@ -300,11 +297,6 @@ module Lithic
300
297
  :"card.updated",
301
298
  Lithic::Events::SubscriptionUpdateParams::EventType::TaggedSymbol
302
299
  )
303
- DIGITAL_WALLET_TOKENIZATION_APPROVAL_REQUEST =
304
- T.let(
305
- :"digital_wallet.tokenization_approval_request",
306
- Lithic::Events::SubscriptionUpdateParams::EventType::TaggedSymbol
307
- )
308
300
  DIGITAL_WALLET_TOKENIZATION_RESULT =
309
301
  T.let(
310
302
  :"digital_wallet.tokenization_result",