lithic 0.1.0.pre.alpha.30 → 0.1.0.pre.alpha.32

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 (91) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +28 -0
  3. data/README.md +1 -1
  4. data/lib/lithic/internal/util.rb +8 -9
  5. data/lib/lithic/models/account.rb +10 -10
  6. data/lib/lithic/models/account_update_params.rb +5 -4
  7. data/lib/lithic/models/auth_rules/v2/backtest_results.rb +100 -28
  8. data/lib/lithic/models/auth_rules/v2_apply_response.rb +401 -10
  9. data/lib/lithic/models/auth_rules/v2_create_params.rb +205 -6
  10. data/lib/lithic/models/auth_rules/v2_create_response.rb +401 -10
  11. data/lib/lithic/models/auth_rules/v2_draft_params.rb +186 -3
  12. data/lib/lithic/models/auth_rules/v2_draft_response.rb +401 -10
  13. data/lib/lithic/models/auth_rules/v2_list_params.rb +27 -8
  14. data/lib/lithic/models/auth_rules/v2_list_response.rb +401 -10
  15. data/lib/lithic/models/auth_rules/v2_promote_response.rb +401 -10
  16. data/lib/lithic/models/auth_rules/v2_retrieve_response.rb +401 -10
  17. data/lib/lithic/models/auth_rules/v2_update_response.rb +401 -10
  18. data/lib/lithic/models/auth_rules/velocity_limit_params.rb +1 -0
  19. data/lib/lithic/models/auth_rules/velocity_limit_params_period_window.rb +3 -0
  20. data/lib/lithic/models/financial_account.rb +1 -0
  21. data/lib/lithic/models/financial_account_register_account_number_params.rb +20 -0
  22. data/lib/lithic/models/funding_event_list_response.rb +26 -22
  23. data/lib/lithic/models/funding_event_retrieve_response.rb +26 -22
  24. data/lib/lithic/models/instance_financial_account_type.rb +1 -0
  25. data/lib/lithic/models/payment.rb +2 -2
  26. data/lib/lithic/models/required_document.rb +2 -2
  27. data/lib/lithic/models/settlement_detail.rb +4 -2
  28. data/lib/lithic/models/transaction.rb +3 -1
  29. data/lib/lithic/models/verification_method.rb +1 -0
  30. data/lib/lithic/models.rb +2 -0
  31. data/lib/lithic/resources/auth_rules/v2/backtests.rb +12 -13
  32. data/lib/lithic/resources/auth_rules/v2.rb +43 -39
  33. data/lib/lithic/resources/financial_accounts.rb +24 -0
  34. data/lib/lithic/resources/three_ds/authentication.rb +3 -1
  35. data/lib/lithic/version.rb +1 -1
  36. data/lib/lithic.rb +1 -0
  37. data/rbi/lithic/internal/util.rbi +2 -0
  38. data/rbi/lithic/models/account.rbi +15 -15
  39. data/rbi/lithic/models/account_update_params.rbi +8 -6
  40. data/rbi/lithic/models/auth_rules/v2/backtest_results.rbi +186 -24
  41. data/rbi/lithic/models/auth_rules/v2_apply_response.rbi +895 -7
  42. data/rbi/lithic/models/auth_rules/v2_create_params.rbi +442 -8
  43. data/rbi/lithic/models/auth_rules/v2_create_response.rbi +895 -7
  44. data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +414 -4
  45. data/rbi/lithic/models/auth_rules/v2_draft_response.rbi +895 -7
  46. data/rbi/lithic/models/auth_rules/v2_list_params.rbi +60 -7
  47. data/rbi/lithic/models/auth_rules/v2_list_response.rbi +895 -7
  48. data/rbi/lithic/models/auth_rules/v2_promote_response.rbi +895 -7
  49. data/rbi/lithic/models/auth_rules/v2_retrieve_response.rbi +895 -7
  50. data/rbi/lithic/models/auth_rules/v2_update_response.rbi +895 -7
  51. data/rbi/lithic/models/auth_rules/velocity_limit_params_period_window.rbi +7 -0
  52. data/rbi/lithic/models/financial_account.rbi +2 -0
  53. data/rbi/lithic/models/financial_account_register_account_number_params.rbi +38 -0
  54. data/rbi/lithic/models/funding_event_list_response.rbi +35 -28
  55. data/rbi/lithic/models/funding_event_retrieve_response.rbi +35 -28
  56. data/rbi/lithic/models/instance_financial_account_type.rbi +2 -0
  57. data/rbi/lithic/models/payment.rbi +3 -3
  58. data/rbi/lithic/models/required_document.rbi +2 -2
  59. data/rbi/lithic/models/settlement_detail.rbi +6 -2
  60. data/rbi/lithic/models/transaction.rbi +9 -2
  61. data/rbi/lithic/models/verification_method.rbi +1 -0
  62. data/rbi/lithic/models.rbi +3 -0
  63. data/rbi/lithic/resources/accounts.rbi +2 -2
  64. data/rbi/lithic/resources/auth_rules/v2/backtests.rbi +12 -13
  65. data/rbi/lithic/resources/auth_rules/v2.rbi +49 -38
  66. data/rbi/lithic/resources/financial_accounts.rbi +16 -0
  67. data/rbi/lithic/resources/three_ds/authentication.rbi +3 -1
  68. data/sig/lithic/models/account_update_params.rbs +2 -1
  69. data/sig/lithic/models/auth_rules/v2/backtest_results.rbs +66 -2
  70. data/sig/lithic/models/auth_rules/v2_apply_response.rbs +280 -1
  71. data/sig/lithic/models/auth_rules/v2_create_params.rbs +135 -1
  72. data/sig/lithic/models/auth_rules/v2_create_response.rbs +280 -1
  73. data/sig/lithic/models/auth_rules/v2_draft_params.rbs +129 -0
  74. data/sig/lithic/models/auth_rules/v2_draft_response.rbs +280 -1
  75. data/sig/lithic/models/auth_rules/v2_list_params.rbs +20 -0
  76. data/sig/lithic/models/auth_rules/v2_list_response.rbs +280 -1
  77. data/sig/lithic/models/auth_rules/v2_promote_response.rbs +280 -1
  78. data/sig/lithic/models/auth_rules/v2_retrieve_response.rbs +280 -1
  79. data/sig/lithic/models/auth_rules/v2_update_response.rbs +280 -1
  80. data/sig/lithic/models/auth_rules/velocity_limit_params_period_window.rbs +2 -1
  81. data/sig/lithic/models/financial_account.rbs +2 -0
  82. data/sig/lithic/models/financial_account_register_account_number_params.rbs +23 -0
  83. data/sig/lithic/models/funding_event_list_response.rbs +18 -11
  84. data/sig/lithic/models/funding_event_retrieve_response.rbs +18 -11
  85. data/sig/lithic/models/instance_financial_account_type.rbs +2 -0
  86. data/sig/lithic/models/transaction.rbs +3 -1
  87. data/sig/lithic/models/verification_method.rbs +7 -1
  88. data/sig/lithic/models.rbs +2 -0
  89. data/sig/lithic/resources/auth_rules/v2.rbs +1 -0
  90. data/sig/lithic/resources/financial_accounts.rbs +6 -0
  91. metadata +5 -2
@@ -8,6 +8,7 @@ module Lithic
8
8
  card_tokens: ::Array[String],
9
9
  current_version: Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion?,
10
10
  draft_version: Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion?,
11
+ event_stream: Lithic::Models::AuthRules::V2ApplyResponse::event_stream,
11
12
  name: String?,
12
13
  program_level: bool,
13
14
  state: Lithic::Models::AuthRules::V2ApplyResponse::state,
@@ -26,6 +27,8 @@ module Lithic
26
27
 
27
28
  attr_accessor draft_version: Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion?
28
29
 
30
+ attr_accessor event_stream: Lithic::Models::AuthRules::V2ApplyResponse::event_stream
31
+
29
32
  attr_accessor name: String?
30
33
 
31
34
  attr_accessor program_level: bool
@@ -44,6 +47,7 @@ module Lithic
44
47
  card_tokens: ::Array[String],
45
48
  current_version: Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion?,
46
49
  draft_version: Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion?,
50
+ event_stream: Lithic::Models::AuthRules::V2ApplyResponse::event_stream,
47
51
  name: String?,
48
52
  program_level: bool,
49
53
  state: Lithic::Models::AuthRules::V2ApplyResponse::state,
@@ -57,6 +61,7 @@ module Lithic
57
61
  card_tokens: ::Array[String],
58
62
  current_version: Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion?,
59
63
  draft_version: Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion?,
64
+ event_stream: Lithic::Models::AuthRules::V2ApplyResponse::event_stream,
60
65
  name: String?,
61
66
  program_level: bool,
62
67
  state: Lithic::Models::AuthRules::V2ApplyResponse::state,
@@ -89,6 +94,7 @@ module Lithic
89
94
  Lithic::AuthRules::ConditionalBlockParameters
90
95
  | Lithic::AuthRules::VelocityLimitParams
91
96
  | Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::MerchantLockParameters
97
+ | Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::Conditional3DSActionParameters
92
98
 
93
99
  module Parameters
94
100
  extend Lithic::Internal::Type::Union
@@ -139,6 +145,134 @@ module Lithic
139
145
  end
140
146
  end
141
147
 
148
+ type conditional3_ds_action_parameters =
149
+ {
150
+ action: Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::action,
151
+ conditions: ::Array[Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition]
152
+ }
153
+
154
+ class Conditional3DSActionParameters < Lithic::Internal::Type::BaseModel
155
+ attr_accessor action: Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::action
156
+
157
+ attr_accessor conditions: ::Array[Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition]
158
+
159
+ def initialize: (
160
+ action: Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::action,
161
+ conditions: ::Array[Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition]
162
+ ) -> void
163
+
164
+ def to_hash: -> {
165
+ action: Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::action,
166
+ conditions: ::Array[Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition]
167
+ }
168
+
169
+ type action = :DECLINE | :CHALLENGE
170
+
171
+ module Action
172
+ extend Lithic::Internal::Type::Enum
173
+
174
+ DECLINE: :DECLINE
175
+ CHALLENGE: :CHALLENGE
176
+
177
+ def self?.values: -> ::Array[Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::action]
178
+ end
179
+
180
+ type condition =
181
+ {
182
+ attribute: Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::attribute,
183
+ operation: Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::operation,
184
+ value: Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::value
185
+ }
186
+
187
+ class Condition < Lithic::Internal::Type::BaseModel
188
+ attr_reader attribute: Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::attribute?
189
+
190
+ def attribute=: (
191
+ Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::attribute
192
+ ) -> Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::attribute
193
+
194
+ attr_reader operation: Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::operation?
195
+
196
+ def operation=: (
197
+ Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::operation
198
+ ) -> Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::operation
199
+
200
+ attr_reader value: Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::value?
201
+
202
+ def value=: (
203
+ Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::value
204
+ ) -> Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::value
205
+
206
+ def initialize: (
207
+ ?attribute: Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::attribute,
208
+ ?operation: Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::operation,
209
+ ?value: Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::value
210
+ ) -> void
211
+
212
+ def to_hash: -> {
213
+ attribute: Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::attribute,
214
+ operation: Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::operation,
215
+ value: Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::value
216
+ }
217
+
218
+ type attribute =
219
+ :MCC
220
+ | :COUNTRY
221
+ | :CURRENCY
222
+ | :MERCHANT_ID
223
+ | :DESCRIPTOR
224
+ | :TRANSACTION_AMOUNT
225
+ | :RISK_SCORE
226
+ | :MESSAGE_CATEGORY
227
+
228
+ module Attribute
229
+ extend Lithic::Internal::Type::Enum
230
+
231
+ MCC: :MCC
232
+ COUNTRY: :COUNTRY
233
+ CURRENCY: :CURRENCY
234
+ MERCHANT_ID: :MERCHANT_ID
235
+ DESCRIPTOR: :DESCRIPTOR
236
+ TRANSACTION_AMOUNT: :TRANSACTION_AMOUNT
237
+ RISK_SCORE: :RISK_SCORE
238
+ MESSAGE_CATEGORY: :MESSAGE_CATEGORY
239
+
240
+ def self?.values: -> ::Array[Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::attribute]
241
+ end
242
+
243
+ type operation =
244
+ :IS_ONE_OF
245
+ | :IS_NOT_ONE_OF
246
+ | :MATCHES
247
+ | :DOES_NOT_MATCH
248
+ | :IS_GREATER_THAN
249
+ | :IS_LESS_THAN
250
+
251
+ module Operation
252
+ extend Lithic::Internal::Type::Enum
253
+
254
+ IS_ONE_OF: :IS_ONE_OF
255
+ IS_NOT_ONE_OF: :IS_NOT_ONE_OF
256
+ MATCHES: :MATCHES
257
+ DOES_NOT_MATCH: :DOES_NOT_MATCH
258
+ IS_GREATER_THAN: :IS_GREATER_THAN
259
+ IS_LESS_THAN: :IS_LESS_THAN
260
+
261
+ def self?.values: -> ::Array[Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::operation]
262
+ end
263
+
264
+ type value = String | Integer | ::Array[String]
265
+
266
+ module Value
267
+ extend Lithic::Internal::Type::Union
268
+
269
+ def self?.variants: -> ::Array[Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::value]
270
+
271
+ StringArray: Lithic::Internal::Type::Converter
272
+ end
273
+ end
274
+ end
275
+
142
276
  def self?.variants: -> ::Array[Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::parameters]
143
277
  end
144
278
  end
@@ -168,6 +302,7 @@ module Lithic
168
302
  Lithic::AuthRules::ConditionalBlockParameters
169
303
  | Lithic::AuthRules::VelocityLimitParams
170
304
  | Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::MerchantLockParameters
305
+ | Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::Conditional3DSActionParameters
171
306
 
172
307
  module Parameters
173
308
  extend Lithic::Internal::Type::Union
@@ -218,10 +353,149 @@ module Lithic
218
353
  end
219
354
  end
220
355
 
356
+ type conditional3_ds_action_parameters =
357
+ {
358
+ action: Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::Conditional3DSActionParameters::action,
359
+ conditions: ::Array[Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition]
360
+ }
361
+
362
+ class Conditional3DSActionParameters < Lithic::Internal::Type::BaseModel
363
+ attr_accessor action: Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::Conditional3DSActionParameters::action
364
+
365
+ attr_accessor conditions: ::Array[Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition]
366
+
367
+ def initialize: (
368
+ action: Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::Conditional3DSActionParameters::action,
369
+ conditions: ::Array[Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition]
370
+ ) -> void
371
+
372
+ def to_hash: -> {
373
+ action: Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::Conditional3DSActionParameters::action,
374
+ conditions: ::Array[Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition]
375
+ }
376
+
377
+ type action = :DECLINE | :CHALLENGE
378
+
379
+ module Action
380
+ extend Lithic::Internal::Type::Enum
381
+
382
+ DECLINE: :DECLINE
383
+ CHALLENGE: :CHALLENGE
384
+
385
+ def self?.values: -> ::Array[Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::Conditional3DSActionParameters::action]
386
+ end
387
+
388
+ type condition =
389
+ {
390
+ attribute: Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::attribute,
391
+ operation: Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::operation,
392
+ value: Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::value
393
+ }
394
+
395
+ class Condition < Lithic::Internal::Type::BaseModel
396
+ attr_reader attribute: Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::attribute?
397
+
398
+ def attribute=: (
399
+ Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::attribute
400
+ ) -> Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::attribute
401
+
402
+ attr_reader operation: Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::operation?
403
+
404
+ def operation=: (
405
+ Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::operation
406
+ ) -> Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::operation
407
+
408
+ attr_reader value: Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::value?
409
+
410
+ def value=: (
411
+ Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::value
412
+ ) -> Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::value
413
+
414
+ def initialize: (
415
+ ?attribute: Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::attribute,
416
+ ?operation: Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::operation,
417
+ ?value: Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::value
418
+ ) -> void
419
+
420
+ def to_hash: -> {
421
+ attribute: Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::attribute,
422
+ operation: Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::operation,
423
+ value: Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::value
424
+ }
425
+
426
+ type attribute =
427
+ :MCC
428
+ | :COUNTRY
429
+ | :CURRENCY
430
+ | :MERCHANT_ID
431
+ | :DESCRIPTOR
432
+ | :TRANSACTION_AMOUNT
433
+ | :RISK_SCORE
434
+ | :MESSAGE_CATEGORY
435
+
436
+ module Attribute
437
+ extend Lithic::Internal::Type::Enum
438
+
439
+ MCC: :MCC
440
+ COUNTRY: :COUNTRY
441
+ CURRENCY: :CURRENCY
442
+ MERCHANT_ID: :MERCHANT_ID
443
+ DESCRIPTOR: :DESCRIPTOR
444
+ TRANSACTION_AMOUNT: :TRANSACTION_AMOUNT
445
+ RISK_SCORE: :RISK_SCORE
446
+ MESSAGE_CATEGORY: :MESSAGE_CATEGORY
447
+
448
+ def self?.values: -> ::Array[Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::attribute]
449
+ end
450
+
451
+ type operation =
452
+ :IS_ONE_OF
453
+ | :IS_NOT_ONE_OF
454
+ | :MATCHES
455
+ | :DOES_NOT_MATCH
456
+ | :IS_GREATER_THAN
457
+ | :IS_LESS_THAN
458
+
459
+ module Operation
460
+ extend Lithic::Internal::Type::Enum
461
+
462
+ IS_ONE_OF: :IS_ONE_OF
463
+ IS_NOT_ONE_OF: :IS_NOT_ONE_OF
464
+ MATCHES: :MATCHES
465
+ DOES_NOT_MATCH: :DOES_NOT_MATCH
466
+ IS_GREATER_THAN: :IS_GREATER_THAN
467
+ IS_LESS_THAN: :IS_LESS_THAN
468
+
469
+ def self?.values: -> ::Array[Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::operation]
470
+ end
471
+
472
+ type value = String | Integer | ::Array[String]
473
+
474
+ module Value
475
+ extend Lithic::Internal::Type::Union
476
+
477
+ def self?.variants: -> ::Array[Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::value]
478
+
479
+ StringArray: Lithic::Internal::Type::Converter
480
+ end
481
+ end
482
+ end
483
+
221
484
  def self?.variants: -> ::Array[Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::parameters]
222
485
  end
223
486
  end
224
487
 
488
+ type event_stream = :AUTHORIZATION | :THREE_DS_AUTHENTICATION
489
+
490
+ module EventStream
491
+ extend Lithic::Internal::Type::Enum
492
+
493
+ AUTHORIZATION: :AUTHORIZATION
494
+ THREE_DS_AUTHENTICATION: :THREE_DS_AUTHENTICATION
495
+
496
+ def self?.values: -> ::Array[Lithic::Models::AuthRules::V2ApplyResponse::event_stream]
497
+ end
498
+
225
499
  type state = :ACTIVE | :INACTIVE
226
500
 
227
501
  module State
@@ -233,7 +507,11 @@ module Lithic
233
507
  def self?.values: -> ::Array[Lithic::Models::AuthRules::V2ApplyResponse::state]
234
508
  end
235
509
 
236
- type type_ = :CONDITIONAL_BLOCK | :VELOCITY_LIMIT | :MERCHANT_LOCK
510
+ type type_ =
511
+ :CONDITIONAL_BLOCK
512
+ | :VELOCITY_LIMIT
513
+ | :MERCHANT_LOCK
514
+ | :CONDITIONAL_3DS_ACTION
237
515
 
238
516
  module Type
239
517
  extend Lithic::Internal::Type::Enum
@@ -241,6 +519,7 @@ module Lithic
241
519
  CONDITIONAL_BLOCK: :CONDITIONAL_BLOCK
242
520
  VELOCITY_LIMIT: :VELOCITY_LIMIT
243
521
  MERCHANT_LOCK: :MERCHANT_LOCK
522
+ CONDITIONAL_3DS_ACTION: :CONDITIONAL_3DS_ACTION
244
523
 
245
524
  def self?.values: -> ::Array[Lithic::Models::AuthRules::V2ApplyResponse::type_]
246
525
  end
@@ -67,6 +67,7 @@ module Lithic
67
67
  Lithic::AuthRules::ConditionalBlockParameters
68
68
  | Lithic::AuthRules::VelocityLimitParams
69
69
  | Lithic::AuthRules::V2CreateParams::Parameters::MerchantLockParameters
70
+ | Lithic::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters
70
71
 
71
72
  module Parameters
72
73
  extend Lithic::Internal::Type::Union
@@ -117,10 +118,142 @@ module Lithic
117
118
  end
118
119
  end
119
120
 
121
+ type conditional3_ds_action_parameters =
122
+ {
123
+ action: Lithic::Models::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::action,
124
+ conditions: ::Array[Lithic::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition]
125
+ }
126
+
127
+ class Conditional3DSActionParameters < Lithic::Internal::Type::BaseModel
128
+ attr_accessor action: Lithic::Models::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::action
129
+
130
+ attr_accessor conditions: ::Array[Lithic::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition]
131
+
132
+ def initialize: (
133
+ action: Lithic::Models::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::action,
134
+ conditions: ::Array[Lithic::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition]
135
+ ) -> void
136
+
137
+ def to_hash: -> {
138
+ action: Lithic::Models::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::action,
139
+ conditions: ::Array[Lithic::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition]
140
+ }
141
+
142
+ type action = :DECLINE | :CHALLENGE
143
+
144
+ module Action
145
+ extend Lithic::Internal::Type::Enum
146
+
147
+ DECLINE: :DECLINE
148
+ CHALLENGE: :CHALLENGE
149
+
150
+ def self?.values: -> ::Array[Lithic::Models::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::action]
151
+ end
152
+
153
+ type condition =
154
+ {
155
+ attribute: Lithic::Models::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::attribute,
156
+ operation: Lithic::Models::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::operation,
157
+ value: Lithic::Models::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::value
158
+ }
159
+
160
+ class Condition < Lithic::Internal::Type::BaseModel
161
+ attr_reader attribute: Lithic::Models::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::attribute?
162
+
163
+ def attribute=: (
164
+ Lithic::Models::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::attribute
165
+ ) -> Lithic::Models::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::attribute
166
+
167
+ attr_reader operation: Lithic::Models::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::operation?
168
+
169
+ def operation=: (
170
+ Lithic::Models::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::operation
171
+ ) -> Lithic::Models::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::operation
172
+
173
+ attr_reader value: Lithic::Models::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::value?
174
+
175
+ def value=: (
176
+ Lithic::Models::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::value
177
+ ) -> Lithic::Models::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::value
178
+
179
+ def initialize: (
180
+ ?attribute: Lithic::Models::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::attribute,
181
+ ?operation: Lithic::Models::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::operation,
182
+ ?value: Lithic::Models::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::value
183
+ ) -> void
184
+
185
+ def to_hash: -> {
186
+ attribute: Lithic::Models::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::attribute,
187
+ operation: Lithic::Models::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::operation,
188
+ value: Lithic::Models::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::value
189
+ }
190
+
191
+ type attribute =
192
+ :MCC
193
+ | :COUNTRY
194
+ | :CURRENCY
195
+ | :MERCHANT_ID
196
+ | :DESCRIPTOR
197
+ | :TRANSACTION_AMOUNT
198
+ | :RISK_SCORE
199
+ | :MESSAGE_CATEGORY
200
+
201
+ module Attribute
202
+ extend Lithic::Internal::Type::Enum
203
+
204
+ MCC: :MCC
205
+ COUNTRY: :COUNTRY
206
+ CURRENCY: :CURRENCY
207
+ MERCHANT_ID: :MERCHANT_ID
208
+ DESCRIPTOR: :DESCRIPTOR
209
+ TRANSACTION_AMOUNT: :TRANSACTION_AMOUNT
210
+ RISK_SCORE: :RISK_SCORE
211
+ MESSAGE_CATEGORY: :MESSAGE_CATEGORY
212
+
213
+ def self?.values: -> ::Array[Lithic::Models::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::attribute]
214
+ end
215
+
216
+ type operation =
217
+ :IS_ONE_OF
218
+ | :IS_NOT_ONE_OF
219
+ | :MATCHES
220
+ | :DOES_NOT_MATCH
221
+ | :IS_GREATER_THAN
222
+ | :IS_LESS_THAN
223
+
224
+ module Operation
225
+ extend Lithic::Internal::Type::Enum
226
+
227
+ IS_ONE_OF: :IS_ONE_OF
228
+ IS_NOT_ONE_OF: :IS_NOT_ONE_OF
229
+ MATCHES: :MATCHES
230
+ DOES_NOT_MATCH: :DOES_NOT_MATCH
231
+ IS_GREATER_THAN: :IS_GREATER_THAN
232
+ IS_LESS_THAN: :IS_LESS_THAN
233
+
234
+ def self?.values: -> ::Array[Lithic::Models::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::operation]
235
+ end
236
+
237
+ type value = String | Integer | ::Array[String]
238
+
239
+ module Value
240
+ extend Lithic::Internal::Type::Union
241
+
242
+ def self?.variants: -> ::Array[Lithic::Models::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::value]
243
+
244
+ StringArray: Lithic::Internal::Type::Converter
245
+ end
246
+ end
247
+ end
248
+
120
249
  def self?.variants: -> ::Array[Lithic::Models::AuthRules::V2CreateParams::parameters]
121
250
  end
122
251
 
123
- type type_ = :CONDITIONAL_BLOCK | :VELOCITY_LIMIT | :MERCHANT_LOCK
252
+ type type_ =
253
+ :CONDITIONAL_BLOCK
254
+ | :VELOCITY_LIMIT
255
+ | :MERCHANT_LOCK
256
+ | :CONDITIONAL_3DS_ACTION
124
257
 
125
258
  module Type
126
259
  extend Lithic::Internal::Type::Enum
@@ -128,6 +261,7 @@ module Lithic
128
261
  CONDITIONAL_BLOCK: :CONDITIONAL_BLOCK
129
262
  VELOCITY_LIMIT: :VELOCITY_LIMIT
130
263
  MERCHANT_LOCK: :MERCHANT_LOCK
264
+ CONDITIONAL_3DS_ACTION: :CONDITIONAL_3DS_ACTION
131
265
 
132
266
  def self?.values: -> ::Array[Lithic::Models::AuthRules::V2CreateParams::type_]
133
267
  end