lithic 0.4.0 → 0.5.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 (61) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +33 -0
  3. data/README.md +10 -1
  4. data/lib/lithic/internal/transport/pooled_net_requester.rb +1 -1
  5. data/lib/lithic/internal/util.rb +1 -1
  6. data/lib/lithic/models/account_holder.rb +14 -5
  7. data/lib/lithic/models/account_holder_create_params.rb +10 -1
  8. data/lib/lithic/models/account_holder_simulate_enrollment_review_params.rb +1 -0
  9. data/lib/lithic/models/account_holder_simulate_enrollment_review_response.rb +14 -5
  10. data/lib/lithic/models/account_holder_update_params.rb +10 -1
  11. data/lib/lithic/models/account_holder_update_response.rb +14 -5
  12. data/lib/lithic/models/account_holder_updated_webhook_event.rb +10 -1
  13. data/lib/lithic/models/auth_rules/conditional_ach_action_parameters.rb +3 -3
  14. data/lib/lithic/models/auth_rules/conditional_tokenization_action_parameters.rb +47 -21
  15. data/lib/lithic/models/auth_rules/v2_list_results_params.rb +70 -0
  16. data/lib/lithic/models/auth_rules/v2_list_results_response.rb +740 -0
  17. data/lib/lithic/models/book_transfer_create_params.rb +9 -1
  18. data/lib/lithic/models/card_authorization_approval_request_webhook_event.rb +178 -25
  19. data/lib/lithic/models/kyb.rb +10 -1
  20. data/lib/lithic/models/parsed_webhook_event.rb +10 -1
  21. data/lib/lithic/resources/account_holders.rb +6 -2
  22. data/lib/lithic/resources/auth_rules/v2.rb +42 -0
  23. data/lib/lithic/resources/book_transfers.rb +3 -1
  24. data/lib/lithic/version.rb +1 -1
  25. data/lib/lithic.rb +2 -0
  26. data/rbi/lithic/internal/util.rbi +1 -1
  27. data/rbi/lithic/models/account_holder.rbi +19 -6
  28. data/rbi/lithic/models/account_holder_create_params.rbi +13 -0
  29. data/rbi/lithic/models/account_holder_simulate_enrollment_review_params.rbi +5 -0
  30. data/rbi/lithic/models/account_holder_simulate_enrollment_review_response.rbi +19 -6
  31. data/rbi/lithic/models/account_holder_update_params.rbi +13 -0
  32. data/rbi/lithic/models/account_holder_update_response.rbi +19 -6
  33. data/rbi/lithic/models/account_holder_updated_webhook_event.rbi +13 -0
  34. data/rbi/lithic/models/auth_rules/conditional_ach_action_parameters.rbi +3 -3
  35. data/rbi/lithic/models/auth_rules/conditional_tokenization_action_parameters.rbi +69 -30
  36. data/rbi/lithic/models/auth_rules/v2_list_results_params.rbi +112 -0
  37. data/rbi/lithic/models/auth_rules/v2_list_results_response.rbi +1826 -0
  38. data/rbi/lithic/models/book_transfer_create_params.rbi +11 -0
  39. data/rbi/lithic/models/card_authorization_approval_request_webhook_event.rbi +337 -36
  40. data/rbi/lithic/models/kyb.rbi +13 -0
  41. data/rbi/lithic/models/parsed_webhook_event.rbi +13 -0
  42. data/rbi/lithic/resources/account_holders.rbi +8 -0
  43. data/rbi/lithic/resources/auth_rules/v2.rbi +42 -0
  44. data/rbi/lithic/resources/book_transfers.rbi +3 -0
  45. data/sig/lithic/models/account_holder.rbs +7 -0
  46. data/sig/lithic/models/account_holder_create_params.rbs +7 -0
  47. data/sig/lithic/models/account_holder_simulate_enrollment_review_params.rbs +2 -1
  48. data/sig/lithic/models/account_holder_simulate_enrollment_review_response.rbs +7 -0
  49. data/sig/lithic/models/account_holder_update_params.rbs +7 -0
  50. data/sig/lithic/models/account_holder_update_response.rbs +7 -0
  51. data/sig/lithic/models/account_holder_updated_webhook_event.rbs +7 -0
  52. data/sig/lithic/models/auth_rules/v2_list_results_params.rbs +65 -0
  53. data/sig/lithic/models/auth_rules/v2_list_results_response.rbs +752 -0
  54. data/sig/lithic/models/book_transfer_create_params.rbs +7 -0
  55. data/sig/lithic/models/card_authorization_approval_request_webhook_event.rbs +96 -0
  56. data/sig/lithic/models/kyb.rbs +7 -0
  57. data/sig/lithic/models/parsed_webhook_event.rbs +7 -0
  58. data/sig/lithic/resources/account_holders.rbs +2 -0
  59. data/sig/lithic/resources/auth_rules/v2.rbs +10 -0
  60. data/sig/lithic/resources/book_transfers.rbs +1 -0
  61. metadata +8 -2
@@ -0,0 +1,752 @@
1
+ module Lithic
2
+ module Models
3
+ module AuthRules
4
+ type v2_list_results_response =
5
+ Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult
6
+ | Lithic::Models::AuthRules::V2ListResultsResponse::Authentication3DSResult
7
+ | Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult
8
+ | Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult
9
+
10
+ module V2ListResultsResponse
11
+ extend Lithic::Internal::Type::Union
12
+
13
+ type authorization_result =
14
+ {
15
+ token: String,
16
+ actions: ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action],
17
+ auth_rule_token: String,
18
+ evaluation_time: Time,
19
+ event_stream: :AUTHORIZATION,
20
+ event_token: String,
21
+ mode: Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::mode,
22
+ rule_version: Integer
23
+ }
24
+
25
+ class AuthorizationResult < Lithic::Internal::Type::BaseModel
26
+ attr_accessor token: String
27
+
28
+ attr_accessor actions: ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action]
29
+
30
+ attr_accessor auth_rule_token: String
31
+
32
+ attr_accessor evaluation_time: Time
33
+
34
+ attr_accessor event_stream: :AUTHORIZATION
35
+
36
+ attr_accessor event_token: String
37
+
38
+ attr_accessor mode: Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::mode
39
+
40
+ attr_accessor rule_version: Integer
41
+
42
+ def initialize: (
43
+ token: String,
44
+ actions: ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action],
45
+ auth_rule_token: String,
46
+ evaluation_time: Time,
47
+ event_token: String,
48
+ mode: Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::mode,
49
+ rule_version: Integer,
50
+ ?event_stream: :AUTHORIZATION
51
+ ) -> void
52
+
53
+ def to_hash: -> {
54
+ token: String,
55
+ actions: ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action],
56
+ auth_rule_token: String,
57
+ evaluation_time: Time,
58
+ event_stream: :AUTHORIZATION,
59
+ event_token: String,
60
+ mode: Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::mode,
61
+ rule_version: Integer
62
+ }
63
+
64
+ type action =
65
+ {
66
+ type: Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::type_,
67
+ explanation: String
68
+ }
69
+
70
+ class Action < Lithic::Internal::Type::BaseModel
71
+ attr_accessor type: Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::type_
72
+
73
+ attr_reader explanation: String?
74
+
75
+ def explanation=: (String) -> String
76
+
77
+ def initialize: (
78
+ type: Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::type_,
79
+ ?explanation: String
80
+ ) -> void
81
+
82
+ def to_hash: -> {
83
+ type: Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::type_,
84
+ explanation: String
85
+ }
86
+
87
+ type type_ = :DECLINE | :CHALLENGE
88
+
89
+ module Type
90
+ extend Lithic::Internal::Type::Enum
91
+
92
+ DECLINE: :DECLINE
93
+ CHALLENGE: :CHALLENGE
94
+
95
+ def self?.values: -> ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::type_]
96
+ end
97
+ end
98
+
99
+ type mode = :ACTIVE | :INACTIVE
100
+
101
+ module Mode
102
+ extend Lithic::Internal::Type::Enum
103
+
104
+ ACTIVE: :ACTIVE
105
+ INACTIVE: :INACTIVE
106
+
107
+ def self?.values: -> ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::mode]
108
+ end
109
+ end
110
+
111
+ type authentication3_ds_result =
112
+ {
113
+ token: String,
114
+ actions: ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::Authentication3DSResult::Action],
115
+ auth_rule_token: String,
116
+ evaluation_time: Time,
117
+ event_stream: :THREE_DS_AUTHENTICATION,
118
+ event_token: String,
119
+ mode: Lithic::Models::AuthRules::V2ListResultsResponse::Authentication3DSResult::mode,
120
+ rule_version: Integer
121
+ }
122
+
123
+ class Authentication3DSResult < Lithic::Internal::Type::BaseModel
124
+ attr_accessor token: String
125
+
126
+ attr_accessor actions: ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::Authentication3DSResult::Action]
127
+
128
+ attr_accessor auth_rule_token: String
129
+
130
+ attr_accessor evaluation_time: Time
131
+
132
+ attr_accessor event_stream: :THREE_DS_AUTHENTICATION
133
+
134
+ attr_accessor event_token: String
135
+
136
+ attr_accessor mode: Lithic::Models::AuthRules::V2ListResultsResponse::Authentication3DSResult::mode
137
+
138
+ attr_accessor rule_version: Integer
139
+
140
+ def initialize: (
141
+ token: String,
142
+ actions: ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::Authentication3DSResult::Action],
143
+ auth_rule_token: String,
144
+ evaluation_time: Time,
145
+ event_token: String,
146
+ mode: Lithic::Models::AuthRules::V2ListResultsResponse::Authentication3DSResult::mode,
147
+ rule_version: Integer,
148
+ ?event_stream: :THREE_DS_AUTHENTICATION
149
+ ) -> void
150
+
151
+ def to_hash: -> {
152
+ token: String,
153
+ actions: ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::Authentication3DSResult::Action],
154
+ auth_rule_token: String,
155
+ evaluation_time: Time,
156
+ event_stream: :THREE_DS_AUTHENTICATION,
157
+ event_token: String,
158
+ mode: Lithic::Models::AuthRules::V2ListResultsResponse::Authentication3DSResult::mode,
159
+ rule_version: Integer
160
+ }
161
+
162
+ type action =
163
+ {
164
+ type: Lithic::Models::AuthRules::V2ListResultsResponse::Authentication3DSResult::Action::type_,
165
+ explanation: String
166
+ }
167
+
168
+ class Action < Lithic::Internal::Type::BaseModel
169
+ attr_accessor type: Lithic::Models::AuthRules::V2ListResultsResponse::Authentication3DSResult::Action::type_
170
+
171
+ attr_reader explanation: String?
172
+
173
+ def explanation=: (String) -> String
174
+
175
+ def initialize: (
176
+ type: Lithic::Models::AuthRules::V2ListResultsResponse::Authentication3DSResult::Action::type_,
177
+ ?explanation: String
178
+ ) -> void
179
+
180
+ def to_hash: -> {
181
+ type: Lithic::Models::AuthRules::V2ListResultsResponse::Authentication3DSResult::Action::type_,
182
+ explanation: String
183
+ }
184
+
185
+ type type_ = :DECLINE | :CHALLENGE
186
+
187
+ module Type
188
+ extend Lithic::Internal::Type::Enum
189
+
190
+ DECLINE: :DECLINE
191
+ CHALLENGE: :CHALLENGE
192
+
193
+ def self?.values: -> ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::Authentication3DSResult::Action::type_]
194
+ end
195
+ end
196
+
197
+ type mode = :ACTIVE | :INACTIVE
198
+
199
+ module Mode
200
+ extend Lithic::Internal::Type::Enum
201
+
202
+ ACTIVE: :ACTIVE
203
+ INACTIVE: :INACTIVE
204
+
205
+ def self?.values: -> ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::Authentication3DSResult::mode]
206
+ end
207
+ end
208
+
209
+ type tokenization_result =
210
+ {
211
+ token: String,
212
+ actions: ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::action],
213
+ auth_rule_token: String,
214
+ evaluation_time: Time,
215
+ event_stream: :TOKENIZATION,
216
+ event_token: String,
217
+ mode: Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::mode,
218
+ rule_version: Integer
219
+ }
220
+
221
+ class TokenizationResult < Lithic::Internal::Type::BaseModel
222
+ attr_accessor token: String
223
+
224
+ attr_accessor actions: ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::action]
225
+
226
+ attr_accessor auth_rule_token: String
227
+
228
+ attr_accessor evaluation_time: Time
229
+
230
+ attr_accessor event_stream: :TOKENIZATION
231
+
232
+ attr_accessor event_token: String
233
+
234
+ attr_accessor mode: Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::mode
235
+
236
+ attr_accessor rule_version: Integer
237
+
238
+ def initialize: (
239
+ token: String,
240
+ actions: ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::action],
241
+ auth_rule_token: String,
242
+ evaluation_time: Time,
243
+ event_token: String,
244
+ mode: Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::mode,
245
+ rule_version: Integer,
246
+ ?event_stream: :TOKENIZATION
247
+ ) -> void
248
+
249
+ def to_hash: -> {
250
+ token: String,
251
+ actions: ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::action],
252
+ auth_rule_token: String,
253
+ evaluation_time: Time,
254
+ event_stream: :TOKENIZATION,
255
+ event_token: String,
256
+ mode: Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::mode,
257
+ rule_version: Integer
258
+ }
259
+
260
+ type action =
261
+ Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineAction
262
+ | Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::RequireTfaAction
263
+
264
+ module Action
265
+ extend Lithic::Internal::Type::Union
266
+
267
+ type decline_action =
268
+ {
269
+ type: Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineAction::type_,
270
+ explanation: String,
271
+ reason: Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineAction::reason
272
+ }
273
+
274
+ class DeclineAction < Lithic::Internal::Type::BaseModel
275
+ attr_accessor type: Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineAction::type_
276
+
277
+ attr_reader explanation: String?
278
+
279
+ def explanation=: (String) -> String
280
+
281
+ attr_reader reason: Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineAction::reason?
282
+
283
+ def reason=: (
284
+ Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineAction::reason
285
+ ) -> Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineAction::reason
286
+
287
+ def initialize: (
288
+ type: Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineAction::type_,
289
+ ?explanation: String,
290
+ ?reason: Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineAction::reason
291
+ ) -> void
292
+
293
+ def to_hash: -> {
294
+ type: Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineAction::type_,
295
+ explanation: String,
296
+ reason: Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineAction::reason
297
+ }
298
+
299
+ type type_ = :DECLINE
300
+
301
+ module Type
302
+ extend Lithic::Internal::Type::Enum
303
+
304
+ DECLINE: :DECLINE
305
+
306
+ def self?.values: -> ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineAction::type_]
307
+ end
308
+
309
+ type reason =
310
+ :ACCOUNT_SCORE_1
311
+ | :DEVICE_SCORE_1
312
+ | :ALL_WALLET_DECLINE_REASONS_PRESENT
313
+ | :WALLET_RECOMMENDED_DECISION_RED
314
+ | :CVC_MISMATCH
315
+ | :CARD_EXPIRY_MONTH_MISMATCH
316
+ | :CARD_EXPIRY_YEAR_MISMATCH
317
+ | :CARD_INVALID_STATE
318
+ | :CUSTOMER_RED_PATH
319
+ | :INVALID_CUSTOMER_RESPONSE
320
+ | :NETWORK_FAILURE
321
+ | :GENERIC_DECLINE
322
+ | :DIGITAL_CARD_ART_REQUIRED
323
+
324
+ module Reason
325
+ extend Lithic::Internal::Type::Enum
326
+
327
+ ACCOUNT_SCORE_1: :ACCOUNT_SCORE_1
328
+ DEVICE_SCORE_1: :DEVICE_SCORE_1
329
+ ALL_WALLET_DECLINE_REASONS_PRESENT: :ALL_WALLET_DECLINE_REASONS_PRESENT
330
+ WALLET_RECOMMENDED_DECISION_RED: :WALLET_RECOMMENDED_DECISION_RED
331
+ CVC_MISMATCH: :CVC_MISMATCH
332
+ CARD_EXPIRY_MONTH_MISMATCH: :CARD_EXPIRY_MONTH_MISMATCH
333
+ CARD_EXPIRY_YEAR_MISMATCH: :CARD_EXPIRY_YEAR_MISMATCH
334
+ CARD_INVALID_STATE: :CARD_INVALID_STATE
335
+ CUSTOMER_RED_PATH: :CUSTOMER_RED_PATH
336
+ INVALID_CUSTOMER_RESPONSE: :INVALID_CUSTOMER_RESPONSE
337
+ NETWORK_FAILURE: :NETWORK_FAILURE
338
+ GENERIC_DECLINE: :GENERIC_DECLINE
339
+ DIGITAL_CARD_ART_REQUIRED: :DIGITAL_CARD_ART_REQUIRED
340
+
341
+ def self?.values: -> ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::DeclineAction::reason]
342
+ end
343
+ end
344
+
345
+ type require_tfa_action =
346
+ {
347
+ type: Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::RequireTfaAction::type_,
348
+ explanation: String,
349
+ reason: Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::RequireTfaAction::reason
350
+ }
351
+
352
+ class RequireTfaAction < Lithic::Internal::Type::BaseModel
353
+ attr_accessor type: Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::RequireTfaAction::type_
354
+
355
+ attr_reader explanation: String?
356
+
357
+ def explanation=: (String) -> String
358
+
359
+ attr_reader reason: Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::RequireTfaAction::reason?
360
+
361
+ def reason=: (
362
+ Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::RequireTfaAction::reason
363
+ ) -> Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::RequireTfaAction::reason
364
+
365
+ def initialize: (
366
+ type: Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::RequireTfaAction::type_,
367
+ ?explanation: String,
368
+ ?reason: Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::RequireTfaAction::reason
369
+ ) -> void
370
+
371
+ def to_hash: -> {
372
+ type: Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::RequireTfaAction::type_,
373
+ explanation: String,
374
+ reason: Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::RequireTfaAction::reason
375
+ }
376
+
377
+ type type_ = :REQUIRE_TFA
378
+
379
+ module Type
380
+ extend Lithic::Internal::Type::Enum
381
+
382
+ REQUIRE_TFA: :REQUIRE_TFA
383
+
384
+ def self?.values: -> ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::RequireTfaAction::type_]
385
+ end
386
+
387
+ type reason =
388
+ :WALLET_RECOMMENDED_TFA
389
+ | :SUSPICIOUS_ACTIVITY
390
+ | :DEVICE_RECENTLY_LOST
391
+ | :TOO_MANY_RECENT_ATTEMPTS
392
+ | :TOO_MANY_RECENT_TOKENS
393
+ | :TOO_MANY_DIFFERENT_CARDHOLDERS
394
+ | :OUTSIDE_HOME_TERRITORY
395
+ | :HAS_SUSPENDED_TOKENS
396
+ | :HIGH_RISK
397
+ | :ACCOUNT_SCORE_LOW
398
+ | :DEVICE_SCORE_LOW
399
+ | :CARD_STATE_TFA
400
+ | :HARDCODED_TFA
401
+ | :CUSTOMER_RULE_TFA
402
+ | :DEVICE_HOST_CARD_EMULATION
403
+
404
+ module Reason
405
+ extend Lithic::Internal::Type::Enum
406
+
407
+ WALLET_RECOMMENDED_TFA: :WALLET_RECOMMENDED_TFA
408
+ SUSPICIOUS_ACTIVITY: :SUSPICIOUS_ACTIVITY
409
+ DEVICE_RECENTLY_LOST: :DEVICE_RECENTLY_LOST
410
+ TOO_MANY_RECENT_ATTEMPTS: :TOO_MANY_RECENT_ATTEMPTS
411
+ TOO_MANY_RECENT_TOKENS: :TOO_MANY_RECENT_TOKENS
412
+ TOO_MANY_DIFFERENT_CARDHOLDERS: :TOO_MANY_DIFFERENT_CARDHOLDERS
413
+ OUTSIDE_HOME_TERRITORY: :OUTSIDE_HOME_TERRITORY
414
+ HAS_SUSPENDED_TOKENS: :HAS_SUSPENDED_TOKENS
415
+ HIGH_RISK: :HIGH_RISK
416
+ ACCOUNT_SCORE_LOW: :ACCOUNT_SCORE_LOW
417
+ DEVICE_SCORE_LOW: :DEVICE_SCORE_LOW
418
+ CARD_STATE_TFA: :CARD_STATE_TFA
419
+ HARDCODED_TFA: :HARDCODED_TFA
420
+ CUSTOMER_RULE_TFA: :CUSTOMER_RULE_TFA
421
+ DEVICE_HOST_CARD_EMULATION: :DEVICE_HOST_CARD_EMULATION
422
+
423
+ def self?.values: -> ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Action::RequireTfaAction::reason]
424
+ end
425
+ end
426
+
427
+ def self?.variants: -> ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::action]
428
+ end
429
+
430
+ type mode = :ACTIVE | :INACTIVE
431
+
432
+ module Mode
433
+ extend Lithic::Internal::Type::Enum
434
+
435
+ ACTIVE: :ACTIVE
436
+ INACTIVE: :INACTIVE
437
+
438
+ def self?.values: -> ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::mode]
439
+ end
440
+ end
441
+
442
+ type ach_result =
443
+ {
444
+ token: String,
445
+ actions: ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::action],
446
+ auth_rule_token: String,
447
+ evaluation_time: Time,
448
+ event_stream: Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::event_stream,
449
+ event_token: String,
450
+ mode: Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::mode,
451
+ rule_version: Integer
452
+ }
453
+
454
+ class ACHResult < Lithic::Internal::Type::BaseModel
455
+ attr_accessor token: String
456
+
457
+ attr_accessor actions: ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::action]
458
+
459
+ attr_accessor auth_rule_token: String
460
+
461
+ attr_accessor evaluation_time: Time
462
+
463
+ attr_accessor event_stream: Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::event_stream
464
+
465
+ attr_accessor event_token: String
466
+
467
+ attr_accessor mode: Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::mode
468
+
469
+ attr_accessor rule_version: Integer
470
+
471
+ def initialize: (
472
+ token: String,
473
+ actions: ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::action],
474
+ auth_rule_token: String,
475
+ evaluation_time: Time,
476
+ event_stream: Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::event_stream,
477
+ event_token: String,
478
+ mode: Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::mode,
479
+ rule_version: Integer
480
+ ) -> void
481
+
482
+ def to_hash: -> {
483
+ token: String,
484
+ actions: ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::action],
485
+ auth_rule_token: String,
486
+ evaluation_time: Time,
487
+ event_stream: Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::event_stream,
488
+ event_token: String,
489
+ mode: Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::mode,
490
+ rule_version: Integer
491
+ }
492
+
493
+ type action =
494
+ Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::Action::ApproveAction
495
+ | Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::Action::ReturnAction
496
+
497
+ module Action
498
+ extend Lithic::Internal::Type::Union
499
+
500
+ type approve_action =
501
+ {
502
+ type: Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::Action::ApproveAction::type_,
503
+ explanation: String
504
+ }
505
+
506
+ class ApproveAction < Lithic::Internal::Type::BaseModel
507
+ attr_accessor type: Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::Action::ApproveAction::type_
508
+
509
+ attr_reader explanation: String?
510
+
511
+ def explanation=: (String) -> String
512
+
513
+ def initialize: (
514
+ type: Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::Action::ApproveAction::type_,
515
+ ?explanation: String
516
+ ) -> void
517
+
518
+ def to_hash: -> {
519
+ type: Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::Action::ApproveAction::type_,
520
+ explanation: String
521
+ }
522
+
523
+ type type_ = :APPROVE
524
+
525
+ module Type
526
+ extend Lithic::Internal::Type::Enum
527
+
528
+ APPROVE: :APPROVE
529
+
530
+ def self?.values: -> ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::Action::ApproveAction::type_]
531
+ end
532
+ end
533
+
534
+ type return_action =
535
+ {
536
+ code: Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::Action::ReturnAction::code,
537
+ type: Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::Action::ReturnAction::type_,
538
+ explanation: String
539
+ }
540
+
541
+ class ReturnAction < Lithic::Internal::Type::BaseModel
542
+ attr_accessor code: Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::Action::ReturnAction::code
543
+
544
+ attr_accessor type: Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::Action::ReturnAction::type_
545
+
546
+ attr_reader explanation: String?
547
+
548
+ def explanation=: (String) -> String
549
+
550
+ def initialize: (
551
+ code: Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::Action::ReturnAction::code,
552
+ type: Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::Action::ReturnAction::type_,
553
+ ?explanation: String
554
+ ) -> void
555
+
556
+ def to_hash: -> {
557
+ code: Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::Action::ReturnAction::code,
558
+ type: Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::Action::ReturnAction::type_,
559
+ explanation: String
560
+ }
561
+
562
+ type code =
563
+ :R01
564
+ | :R02
565
+ | :R03
566
+ | :R04
567
+ | :R05
568
+ | :R06
569
+ | :R07
570
+ | :R08
571
+ | :R09
572
+ | :R10
573
+ | :R11
574
+ | :R12
575
+ | :R13
576
+ | :R14
577
+ | :R15
578
+ | :R16
579
+ | :R17
580
+ | :R18
581
+ | :R19
582
+ | :R20
583
+ | :R21
584
+ | :R22
585
+ | :R23
586
+ | :R24
587
+ | :R25
588
+ | :R26
589
+ | :R27
590
+ | :R28
591
+ | :R29
592
+ | :R30
593
+ | :R31
594
+ | :R32
595
+ | :R33
596
+ | :R34
597
+ | :R35
598
+ | :R36
599
+ | :R37
600
+ | :R38
601
+ | :R39
602
+ | :R40
603
+ | :R41
604
+ | :R42
605
+ | :R43
606
+ | :R44
607
+ | :R45
608
+ | :R46
609
+ | :R47
610
+ | :R50
611
+ | :R51
612
+ | :R52
613
+ | :R53
614
+ | :R61
615
+ | :R62
616
+ | :R67
617
+ | :R68
618
+ | :R69
619
+ | :R70
620
+ | :R71
621
+ | :R72
622
+ | :R73
623
+ | :R74
624
+ | :R75
625
+ | :R76
626
+ | :R77
627
+ | :R80
628
+ | :R81
629
+ | :R82
630
+ | :R83
631
+ | :R84
632
+ | :R85
633
+
634
+ module Code
635
+ extend Lithic::Internal::Type::Enum
636
+
637
+ R01: :R01
638
+ R02: :R02
639
+ R03: :R03
640
+ R04: :R04
641
+ R05: :R05
642
+ R06: :R06
643
+ R07: :R07
644
+ R08: :R08
645
+ R09: :R09
646
+ R10: :R10
647
+ R11: :R11
648
+ R12: :R12
649
+ R13: :R13
650
+ R14: :R14
651
+ R15: :R15
652
+ R16: :R16
653
+ R17: :R17
654
+ R18: :R18
655
+ R19: :R19
656
+ R20: :R20
657
+ R21: :R21
658
+ R22: :R22
659
+ R23: :R23
660
+ R24: :R24
661
+ R25: :R25
662
+ R26: :R26
663
+ R27: :R27
664
+ R28: :R28
665
+ R29: :R29
666
+ R30: :R30
667
+ R31: :R31
668
+ R32: :R32
669
+ R33: :R33
670
+ R34: :R34
671
+ R35: :R35
672
+ R36: :R36
673
+ R37: :R37
674
+ R38: :R38
675
+ R39: :R39
676
+ R40: :R40
677
+ R41: :R41
678
+ R42: :R42
679
+ R43: :R43
680
+ R44: :R44
681
+ R45: :R45
682
+ R46: :R46
683
+ R47: :R47
684
+ R50: :R50
685
+ R51: :R51
686
+ R52: :R52
687
+ R53: :R53
688
+ R61: :R61
689
+ R62: :R62
690
+ R67: :R67
691
+ R68: :R68
692
+ R69: :R69
693
+ R70: :R70
694
+ R71: :R71
695
+ R72: :R72
696
+ R73: :R73
697
+ R74: :R74
698
+ R75: :R75
699
+ R76: :R76
700
+ R77: :R77
701
+ R80: :R80
702
+ R81: :R81
703
+ R82: :R82
704
+ R83: :R83
705
+ R84: :R84
706
+ R85: :R85
707
+
708
+ def self?.values: -> ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::Action::ReturnAction::code]
709
+ end
710
+
711
+ type type_ = :RETURN
712
+
713
+ module Type
714
+ extend Lithic::Internal::Type::Enum
715
+
716
+ RETURN: :RETURN
717
+
718
+ def self?.values: -> ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::Action::ReturnAction::type_]
719
+ end
720
+ end
721
+
722
+ def self?.variants: -> ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::action]
723
+ end
724
+
725
+ type event_stream = :ACH_CREDIT_RECEIPT | :ACH_DEBIT_RECEIPT
726
+
727
+ module EventStream
728
+ extend Lithic::Internal::Type::Enum
729
+
730
+ ACH_CREDIT_RECEIPT: :ACH_CREDIT_RECEIPT
731
+ ACH_DEBIT_RECEIPT: :ACH_DEBIT_RECEIPT
732
+
733
+ def self?.values: -> ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::event_stream]
734
+ end
735
+
736
+ type mode = :ACTIVE | :INACTIVE
737
+
738
+ module Mode
739
+ extend Lithic::Internal::Type::Enum
740
+
741
+ ACTIVE: :ACTIVE
742
+ INACTIVE: :INACTIVE
743
+
744
+ def self?.values: -> ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::mode]
745
+ end
746
+ end
747
+
748
+ def self?.variants: -> ::Array[Lithic::Models::AuthRules::v2_list_results_response]
749
+ end
750
+ end
751
+ end
752
+ end