lithic 0.1.0.pre.alpha.41 → 0.1.0.pre.alpha.43

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 (89) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +16 -0
  3. data/README.md +1 -1
  4. data/lib/lithic/models/account_activity_list_params.rb +10 -8
  5. data/lib/lithic/models/auth_rules/v2_apply_params.rb +13 -5
  6. data/lib/lithic/models/auth_rules/v2_apply_response.rb +510 -18
  7. data/lib/lithic/models/auth_rules/v2_create_params.rb +283 -16
  8. data/lib/lithic/models/auth_rules/v2_create_response.rb +510 -18
  9. data/lib/lithic/models/auth_rules/v2_draft_params.rb +239 -3
  10. data/lib/lithic/models/auth_rules/v2_draft_response.rb +510 -18
  11. data/lib/lithic/models/auth_rules/v2_list_params.rb +10 -1
  12. data/lib/lithic/models/auth_rules/v2_list_response.rb +510 -18
  13. data/lib/lithic/models/auth_rules/v2_promote_response.rb +510 -18
  14. data/lib/lithic/models/auth_rules/v2_retrieve_response.rb +510 -18
  15. data/lib/lithic/models/auth_rules/v2_update_params.rb +1 -9
  16. data/lib/lithic/models/auth_rules/v2_update_response.rb +510 -18
  17. data/lib/lithic/models/event.rb +6 -0
  18. data/lib/lithic/models/event_list_params.rb +2 -0
  19. data/lib/lithic/models/event_subscription.rb +2 -0
  20. data/lib/lithic/models/events/subscription_create_params.rb +2 -0
  21. data/lib/lithic/models/events/subscription_send_simulated_example_params.rb +2 -0
  22. data/lib/lithic/models/events/subscription_update_params.rb +2 -0
  23. data/lib/lithic/models/three_ds/authentication_retrieve_response.rb +28 -26
  24. data/lib/lithic/models/transaction.rb +4 -0
  25. data/lib/lithic/models/transaction_simulate_credit_authorization_advice_params.rb +62 -0
  26. data/lib/lithic/models/transaction_simulate_credit_authorization_advice_response.rb +25 -0
  27. data/lib/lithic/models.rb +3 -0
  28. data/lib/lithic/resources/account_activity.rb +2 -2
  29. data/lib/lithic/resources/auth_rules/v2/backtests.rb +3 -3
  30. data/lib/lithic/resources/auth_rules/v2.rb +19 -13
  31. data/lib/lithic/resources/transactions.rb +37 -0
  32. data/lib/lithic/version.rb +1 -1
  33. data/lib/lithic.rb +2 -0
  34. data/rbi/lithic/models/account_activity_list_params.rbi +18 -30
  35. data/rbi/lithic/models/auth_rules/v2_apply_params.rbi +19 -5
  36. data/rbi/lithic/models/auth_rules/v2_apply_response.rbi +1128 -18
  37. data/rbi/lithic/models/auth_rules/v2_create_params.rbi +646 -21
  38. data/rbi/lithic/models/auth_rules/v2_create_response.rbi +1128 -18
  39. data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +554 -4
  40. data/rbi/lithic/models/auth_rules/v2_draft_response.rbi +1128 -18
  41. data/rbi/lithic/models/auth_rules/v2_list_params.rbi +16 -0
  42. data/rbi/lithic/models/auth_rules/v2_list_response.rbi +1128 -18
  43. data/rbi/lithic/models/auth_rules/v2_promote_response.rbi +1128 -18
  44. data/rbi/lithic/models/auth_rules/v2_retrieve_response.rbi +1128 -18
  45. data/rbi/lithic/models/auth_rules/v2_update_params.rbi +0 -11
  46. data/rbi/lithic/models/auth_rules/v2_update_response.rbi +1128 -18
  47. data/rbi/lithic/models/event.rbi +16 -0
  48. data/rbi/lithic/models/event_list_params.rbi +10 -0
  49. data/rbi/lithic/models/event_subscription.rbi +10 -0
  50. data/rbi/lithic/models/events/subscription_create_params.rbi +10 -0
  51. data/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +10 -0
  52. data/rbi/lithic/models/events/subscription_update_params.rbi +10 -0
  53. data/rbi/lithic/models/three_ds/authentication_retrieve_response.rbi +45 -41
  54. data/rbi/lithic/models/transaction.rbi +17 -0
  55. data/rbi/lithic/models/transaction_simulate_credit_authorization_advice_params.rbi +92 -0
  56. data/rbi/lithic/models/transaction_simulate_credit_authorization_advice_response.rbi +46 -0
  57. data/rbi/lithic/models.rbi +3 -0
  58. data/rbi/lithic/resources/account_activity.rbi +2 -2
  59. data/rbi/lithic/resources/auth_rules/v2/backtests.rbi +3 -3
  60. data/rbi/lithic/resources/auth_rules/v2.rbi +28 -14
  61. data/rbi/lithic/resources/transactions.rbi +33 -0
  62. data/sig/lithic/models/account_activity_list_params.rbs +16 -16
  63. data/sig/lithic/models/auth_rules/v2_apply_params.rbs +11 -2
  64. data/sig/lithic/models/auth_rules/v2_apply_response.rbs +317 -2
  65. data/sig/lithic/models/auth_rules/v2_create_params.rbs +188 -4
  66. data/sig/lithic/models/auth_rules/v2_create_response.rbs +317 -2
  67. data/sig/lithic/models/auth_rules/v2_draft_params.rbs +155 -0
  68. data/sig/lithic/models/auth_rules/v2_draft_response.rbs +317 -2
  69. data/sig/lithic/models/auth_rules/v2_list_params.rbs +9 -1
  70. data/sig/lithic/models/auth_rules/v2_list_response.rbs +317 -2
  71. data/sig/lithic/models/auth_rules/v2_promote_response.rbs +317 -2
  72. data/sig/lithic/models/auth_rules/v2_retrieve_response.rbs +317 -2
  73. data/sig/lithic/models/auth_rules/v2_update_params.rbs +0 -7
  74. data/sig/lithic/models/auth_rules/v2_update_response.rbs +317 -2
  75. data/sig/lithic/models/event.rbs +4 -0
  76. data/sig/lithic/models/event_list_params.rbs +4 -0
  77. data/sig/lithic/models/event_subscription.rbs +4 -0
  78. data/sig/lithic/models/events/subscription_create_params.rbs +4 -0
  79. data/sig/lithic/models/events/subscription_send_simulated_example_params.rbs +4 -0
  80. data/sig/lithic/models/events/subscription_update_params.rbs +4 -0
  81. data/sig/lithic/models/three_ds/authentication_retrieve_response.rbs +20 -20
  82. data/sig/lithic/models/transaction.rbs +10 -2
  83. data/sig/lithic/models/transaction_simulate_credit_authorization_advice_params.rbs +50 -0
  84. data/sig/lithic/models/transaction_simulate_credit_authorization_advice_response.rbs +20 -0
  85. data/sig/lithic/models.rbs +2 -0
  86. data/sig/lithic/resources/account_activity.rbs +2 -2
  87. data/sig/lithic/resources/auth_rules/v2.rbs +6 -3
  88. data/sig/lithic/resources/transactions.rbs +9 -0
  89. metadata +8 -2
@@ -20,6 +20,10 @@ module Lithic
20
20
  sig { returns(T::Array[String]) }
21
21
  attr_accessor :account_tokens
22
22
 
23
+ # Business Account tokens to which the Auth Rule applies.
24
+ sig { returns(T::Array[String]) }
25
+ attr_accessor :business_account_tokens
26
+
23
27
  # Card tokens to which the Auth Rule applies.
24
28
  sig { returns(T::Array[String]) }
25
29
  attr_accessor :card_tokens
@@ -58,7 +62,7 @@ module Lithic
58
62
  end
59
63
  attr_writer :draft_version
60
64
 
61
- # The type of event stream the Auth rule applies to.
65
+ # The event stream during which the rule will be evaluated.
62
66
  sig do
63
67
  returns(
64
68
  Lithic::Models::AuthRules::V2ListResponse::EventStream::TaggedSymbol
@@ -82,13 +86,15 @@ module Lithic
82
86
  end
83
87
  attr_accessor :state
84
88
 
85
- # The type of Auth Rule. Effectively determines the event stream during which it
86
- # will be evaluated.
89
+ # The type of Auth Rule. For certain rule types, this determines the event stream
90
+ # during which it will be evaluated. For rules that can be applied to one of
91
+ # several event streams, the effective one is defined by the separate
92
+ # `event_stream` field.
87
93
  #
88
94
  # - `CONDITIONAL_BLOCK`: AUTHORIZATION event stream.
89
95
  # - `VELOCITY_LIMIT`: AUTHORIZATION event stream.
90
96
  # - `MERCHANT_LOCK`: AUTHORIZATION event stream.
91
- # - `CONDITIONAL_3DS_ACTION`: THREE_DS_AUTHENTICATION event stream.
97
+ # - `CONDITIONAL_ACTION`: AUTHORIZATION or THREE_DS_AUTHENTICATION event stream.
92
98
  sig do
93
99
  returns(Lithic::Models::AuthRules::V2ListResponse::Type::TaggedSymbol)
94
100
  end
@@ -105,6 +111,7 @@ module Lithic
105
111
  params(
106
112
  token: String,
107
113
  account_tokens: T::Array[String],
114
+ business_account_tokens: T::Array[String],
108
115
  card_tokens: T::Array[String],
109
116
  current_version:
110
117
  T.nilable(
@@ -128,11 +135,13 @@ module Lithic
128
135
  token:,
129
136
  # Account tokens to which the Auth Rule applies.
130
137
  account_tokens:,
138
+ # Business Account tokens to which the Auth Rule applies.
139
+ business_account_tokens:,
131
140
  # Card tokens to which the Auth Rule applies.
132
141
  card_tokens:,
133
142
  current_version:,
134
143
  draft_version:,
135
- # The type of event stream the Auth rule applies to.
144
+ # The event stream during which the rule will be evaluated.
136
145
  event_stream:,
137
146
  # Auth Rule Name
138
147
  name:,
@@ -140,13 +149,15 @@ module Lithic
140
149
  program_level:,
141
150
  # The state of the Auth Rule
142
151
  state:,
143
- # The type of Auth Rule. Effectively determines the event stream during which it
144
- # will be evaluated.
152
+ # The type of Auth Rule. For certain rule types, this determines the event stream
153
+ # during which it will be evaluated. For rules that can be applied to one of
154
+ # several event streams, the effective one is defined by the separate
155
+ # `event_stream` field.
145
156
  #
146
157
  # - `CONDITIONAL_BLOCK`: AUTHORIZATION event stream.
147
158
  # - `VELOCITY_LIMIT`: AUTHORIZATION event stream.
148
159
  # - `MERCHANT_LOCK`: AUTHORIZATION event stream.
149
- # - `CONDITIONAL_3DS_ACTION`: THREE_DS_AUTHENTICATION event stream.
160
+ # - `CONDITIONAL_ACTION`: AUTHORIZATION or THREE_DS_AUTHENTICATION event stream.
150
161
  type:,
151
162
  # Card tokens to which the Auth Rule does not apply.
152
163
  excluded_card_tokens: nil
@@ -158,6 +169,7 @@ module Lithic
158
169
  {
159
170
  token: String,
160
171
  account_tokens: T::Array[String],
172
+ business_account_tokens: T::Array[String],
161
173
  card_tokens: T::Array[String],
162
174
  current_version:
163
175
  T.nilable(
@@ -211,7 +223,8 @@ module Lithic
211
223
  Lithic::AuthRules::ConditionalBlockParameters::OrHash,
212
224
  Lithic::AuthRules::VelocityLimitParams::OrHash,
213
225
  Lithic::AuthRules::MerchantLockParameters::OrHash,
214
- Lithic::AuthRules::Conditional3DSActionParameters::OrHash
226
+ Lithic::AuthRules::Conditional3DSActionParameters::OrHash,
227
+ Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::OrHash
215
228
  ),
216
229
  version: Integer
217
230
  ).returns(T.attached_class)
@@ -247,9 +260,556 @@ module Lithic
247
260
  Lithic::AuthRules::ConditionalBlockParameters,
248
261
  Lithic::AuthRules::VelocityLimitParams,
249
262
  Lithic::AuthRules::MerchantLockParameters,
250
- Lithic::AuthRules::Conditional3DSActionParameters
263
+ Lithic::AuthRules::Conditional3DSActionParameters,
264
+ Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters
265
+ )
266
+ end
267
+
268
+ class ConditionalAuthorizationActionParameters < Lithic::Internal::Type::BaseModel
269
+ OrHash =
270
+ T.type_alias do
271
+ T.any(
272
+ Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters,
273
+ Lithic::Internal::AnyHash
274
+ )
275
+ end
276
+
277
+ # The action to take if the conditions are met.
278
+ sig do
279
+ returns(
280
+ Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol
251
281
  )
252
282
  end
283
+ attr_accessor :action
284
+
285
+ sig do
286
+ returns(
287
+ T::Array[
288
+ Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition
289
+ ]
290
+ )
291
+ end
292
+ attr_accessor :conditions
293
+
294
+ sig do
295
+ params(
296
+ action:
297
+ Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Action::OrSymbol,
298
+ conditions:
299
+ T::Array[
300
+ Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::OrHash
301
+ ]
302
+ ).returns(T.attached_class)
303
+ end
304
+ def self.new(
305
+ # The action to take if the conditions are met.
306
+ action:,
307
+ conditions:
308
+ )
309
+ end
310
+
311
+ sig do
312
+ override.returns(
313
+ {
314
+ action:
315
+ Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol,
316
+ conditions:
317
+ T::Array[
318
+ Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition
319
+ ]
320
+ }
321
+ )
322
+ end
323
+ def to_hash
324
+ end
325
+
326
+ # The action to take if the conditions are met.
327
+ module Action
328
+ extend Lithic::Internal::Type::Enum
329
+
330
+ TaggedSymbol =
331
+ T.type_alias do
332
+ T.all(
333
+ Symbol,
334
+ Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Action
335
+ )
336
+ end
337
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
338
+
339
+ DECLINE =
340
+ T.let(
341
+ :DECLINE,
342
+ Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol
343
+ )
344
+ CHALLENGE =
345
+ T.let(
346
+ :CHALLENGE,
347
+ Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol
348
+ )
349
+
350
+ sig do
351
+ override.returns(
352
+ T::Array[
353
+ Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol
354
+ ]
355
+ )
356
+ end
357
+ def self.values
358
+ end
359
+ end
360
+
361
+ class Condition < Lithic::Internal::Type::BaseModel
362
+ OrHash =
363
+ T.type_alias do
364
+ T.any(
365
+ Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition,
366
+ Lithic::Internal::AnyHash
367
+ )
368
+ end
369
+
370
+ # The attribute to target.
371
+ #
372
+ # The following attributes may be targeted:
373
+ #
374
+ # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a
375
+ # business by the types of goods or services it provides.
376
+ # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all
377
+ # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for
378
+ # Netherlands Antilles.
379
+ # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of
380
+ # the transaction.
381
+ # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor
382
+ # (merchant).
383
+ # - `DESCRIPTOR`: Short description of card acceptor.
384
+ # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer
385
+ # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or
386
+ # `TOKEN_AUTHENTICATED`.
387
+ # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number
388
+ # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`,
389
+ # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`,
390
+ # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`,
391
+ # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`.
392
+ # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
393
+ # fee field in the settlement/cardholder billing currency. This is the amount
394
+ # the issuer should authorize against unless the issuer is paying the acquirer
395
+ # fee on behalf of the cardholder.
396
+ # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
397
+ # given authorization. Scores are on a range of 0-999, with 0 representing the
398
+ # lowest risk and 999 representing the highest risk. For Visa transactions,
399
+ # where the raw score has a range of 0-99, Lithic will normalize the score by
400
+ # multiplying the raw score by 10x.
401
+ # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the
402
+ # trailing 15 minutes before the authorization.
403
+ # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the
404
+ # trailing hour up and until the authorization.
405
+ # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the
406
+ # trailing 24 hours up and until the authorization.
407
+ # - `CARD_STATE`: The current state of the card associated with the transaction.
408
+ # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`,
409
+ # `PENDING_FULFILLMENT`.
410
+ # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction.
411
+ # Valid values are `TRUE`, `FALSE`.
412
+ # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`,
413
+ # `OK`, `BLOCKED`.
414
+ # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the
415
+ # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`,
416
+ # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`.
417
+ # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates
418
+ # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`.
419
+ sig do
420
+ returns(
421
+ T.nilable(
422
+ Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
423
+ )
424
+ )
425
+ end
426
+ attr_reader :attribute
427
+
428
+ sig do
429
+ params(
430
+ attribute:
431
+ Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::OrSymbol
432
+ ).void
433
+ end
434
+ attr_writer :attribute
435
+
436
+ # The operation to apply to the attribute
437
+ sig do
438
+ returns(
439
+ T.nilable(
440
+ Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol
441
+ )
442
+ )
443
+ end
444
+ attr_reader :operation
445
+
446
+ sig do
447
+ params(
448
+ operation:
449
+ Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::OrSymbol
450
+ ).void
451
+ end
452
+ attr_writer :operation
453
+
454
+ # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
455
+ sig do
456
+ returns(
457
+ T.nilable(
458
+ Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants
459
+ )
460
+ )
461
+ end
462
+ attr_reader :value
463
+
464
+ sig do
465
+ params(
466
+ value:
467
+ Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants
468
+ ).void
469
+ end
470
+ attr_writer :value
471
+
472
+ sig do
473
+ params(
474
+ attribute:
475
+ Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::OrSymbol,
476
+ operation:
477
+ Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::OrSymbol,
478
+ value:
479
+ Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants
480
+ ).returns(T.attached_class)
481
+ end
482
+ def self.new(
483
+ # The attribute to target.
484
+ #
485
+ # The following attributes may be targeted:
486
+ #
487
+ # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a
488
+ # business by the types of goods or services it provides.
489
+ # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all
490
+ # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for
491
+ # Netherlands Antilles.
492
+ # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of
493
+ # the transaction.
494
+ # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor
495
+ # (merchant).
496
+ # - `DESCRIPTOR`: Short description of card acceptor.
497
+ # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer
498
+ # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or
499
+ # `TOKEN_AUTHENTICATED`.
500
+ # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number
501
+ # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`,
502
+ # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`,
503
+ # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`,
504
+ # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`.
505
+ # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
506
+ # fee field in the settlement/cardholder billing currency. This is the amount
507
+ # the issuer should authorize against unless the issuer is paying the acquirer
508
+ # fee on behalf of the cardholder.
509
+ # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
510
+ # given authorization. Scores are on a range of 0-999, with 0 representing the
511
+ # lowest risk and 999 representing the highest risk. For Visa transactions,
512
+ # where the raw score has a range of 0-99, Lithic will normalize the score by
513
+ # multiplying the raw score by 10x.
514
+ # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the
515
+ # trailing 15 minutes before the authorization.
516
+ # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the
517
+ # trailing hour up and until the authorization.
518
+ # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the
519
+ # trailing 24 hours up and until the authorization.
520
+ # - `CARD_STATE`: The current state of the card associated with the transaction.
521
+ # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`,
522
+ # `PENDING_FULFILLMENT`.
523
+ # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction.
524
+ # Valid values are `TRUE`, `FALSE`.
525
+ # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`,
526
+ # `OK`, `BLOCKED`.
527
+ # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the
528
+ # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`,
529
+ # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`.
530
+ # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates
531
+ # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`.
532
+ attribute: nil,
533
+ # The operation to apply to the attribute
534
+ operation: nil,
535
+ # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
536
+ value: nil
537
+ )
538
+ end
539
+
540
+ sig do
541
+ override.returns(
542
+ {
543
+ attribute:
544
+ Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol,
545
+ operation:
546
+ Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol,
547
+ value:
548
+ Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants
549
+ }
550
+ )
551
+ end
552
+ def to_hash
553
+ end
554
+
555
+ # The attribute to target.
556
+ #
557
+ # The following attributes may be targeted:
558
+ #
559
+ # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a
560
+ # business by the types of goods or services it provides.
561
+ # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all
562
+ # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for
563
+ # Netherlands Antilles.
564
+ # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of
565
+ # the transaction.
566
+ # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor
567
+ # (merchant).
568
+ # - `DESCRIPTOR`: Short description of card acceptor.
569
+ # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer
570
+ # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or
571
+ # `TOKEN_AUTHENTICATED`.
572
+ # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number
573
+ # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`,
574
+ # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`,
575
+ # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`,
576
+ # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`.
577
+ # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
578
+ # fee field in the settlement/cardholder billing currency. This is the amount
579
+ # the issuer should authorize against unless the issuer is paying the acquirer
580
+ # fee on behalf of the cardholder.
581
+ # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
582
+ # given authorization. Scores are on a range of 0-999, with 0 representing the
583
+ # lowest risk and 999 representing the highest risk. For Visa transactions,
584
+ # where the raw score has a range of 0-99, Lithic will normalize the score by
585
+ # multiplying the raw score by 10x.
586
+ # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the
587
+ # trailing 15 minutes before the authorization.
588
+ # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the
589
+ # trailing hour up and until the authorization.
590
+ # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the
591
+ # trailing 24 hours up and until the authorization.
592
+ # - `CARD_STATE`: The current state of the card associated with the transaction.
593
+ # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`,
594
+ # `PENDING_FULFILLMENT`.
595
+ # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction.
596
+ # Valid values are `TRUE`, `FALSE`.
597
+ # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`,
598
+ # `OK`, `BLOCKED`.
599
+ # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the
600
+ # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`,
601
+ # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`.
602
+ # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates
603
+ # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`.
604
+ module Attribute
605
+ extend Lithic::Internal::Type::Enum
606
+
607
+ TaggedSymbol =
608
+ T.type_alias do
609
+ T.all(
610
+ Symbol,
611
+ Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute
612
+ )
613
+ end
614
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
615
+
616
+ MCC =
617
+ T.let(
618
+ :MCC,
619
+ Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
620
+ )
621
+ COUNTRY =
622
+ T.let(
623
+ :COUNTRY,
624
+ Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
625
+ )
626
+ CURRENCY =
627
+ T.let(
628
+ :CURRENCY,
629
+ Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
630
+ )
631
+ MERCHANT_ID =
632
+ T.let(
633
+ :MERCHANT_ID,
634
+ Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
635
+ )
636
+ DESCRIPTOR =
637
+ T.let(
638
+ :DESCRIPTOR,
639
+ Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
640
+ )
641
+ LIABILITY_SHIFT =
642
+ T.let(
643
+ :LIABILITY_SHIFT,
644
+ Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
645
+ )
646
+ PAN_ENTRY_MODE =
647
+ T.let(
648
+ :PAN_ENTRY_MODE,
649
+ Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
650
+ )
651
+ TRANSACTION_AMOUNT =
652
+ T.let(
653
+ :TRANSACTION_AMOUNT,
654
+ Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
655
+ )
656
+ RISK_SCORE =
657
+ T.let(
658
+ :RISK_SCORE,
659
+ Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
660
+ )
661
+ CARD_TRANSACTION_COUNT_15_M =
662
+ T.let(
663
+ :CARD_TRANSACTION_COUNT_15M,
664
+ Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
665
+ )
666
+ CARD_TRANSACTION_COUNT_1_H =
667
+ T.let(
668
+ :CARD_TRANSACTION_COUNT_1H,
669
+ Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
670
+ )
671
+ CARD_TRANSACTION_COUNT_24_H =
672
+ T.let(
673
+ :CARD_TRANSACTION_COUNT_24H,
674
+ Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
675
+ )
676
+ CARD_STATE =
677
+ T.let(
678
+ :CARD_STATE,
679
+ Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
680
+ )
681
+ PIN_ENTERED =
682
+ T.let(
683
+ :PIN_ENTERED,
684
+ Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
685
+ )
686
+ PIN_STATUS =
687
+ T.let(
688
+ :PIN_STATUS,
689
+ Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
690
+ )
691
+ WALLET_TYPE =
692
+ T.let(
693
+ :WALLET_TYPE,
694
+ Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
695
+ )
696
+ TRANSACTION_INITIATOR =
697
+ T.let(
698
+ :TRANSACTION_INITIATOR,
699
+ Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
700
+ )
701
+
702
+ sig do
703
+ override.returns(
704
+ T::Array[
705
+ Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
706
+ ]
707
+ )
708
+ end
709
+ def self.values
710
+ end
711
+ end
712
+
713
+ # The operation to apply to the attribute
714
+ module Operation
715
+ extend Lithic::Internal::Type::Enum
716
+
717
+ TaggedSymbol =
718
+ T.type_alias do
719
+ T.all(
720
+ Symbol,
721
+ Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation
722
+ )
723
+ end
724
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
725
+
726
+ IS_ONE_OF =
727
+ T.let(
728
+ :IS_ONE_OF,
729
+ Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol
730
+ )
731
+ IS_NOT_ONE_OF =
732
+ T.let(
733
+ :IS_NOT_ONE_OF,
734
+ Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol
735
+ )
736
+ MATCHES =
737
+ T.let(
738
+ :MATCHES,
739
+ Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol
740
+ )
741
+ DOES_NOT_MATCH =
742
+ T.let(
743
+ :DOES_NOT_MATCH,
744
+ Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol
745
+ )
746
+ IS_EQUAL_TO =
747
+ T.let(
748
+ :IS_EQUAL_TO,
749
+ Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol
750
+ )
751
+ IS_NOT_EQUAL_TO =
752
+ T.let(
753
+ :IS_NOT_EQUAL_TO,
754
+ Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol
755
+ )
756
+ IS_GREATER_THAN =
757
+ T.let(
758
+ :IS_GREATER_THAN,
759
+ Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol
760
+ )
761
+ IS_GREATER_THAN_OR_EQUAL_TO =
762
+ T.let(
763
+ :IS_GREATER_THAN_OR_EQUAL_TO,
764
+ Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol
765
+ )
766
+ IS_LESS_THAN =
767
+ T.let(
768
+ :IS_LESS_THAN,
769
+ Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol
770
+ )
771
+ IS_LESS_THAN_OR_EQUAL_TO =
772
+ T.let(
773
+ :IS_LESS_THAN_OR_EQUAL_TO,
774
+ Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol
775
+ )
776
+
777
+ sig do
778
+ override.returns(
779
+ T::Array[
780
+ Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol
781
+ ]
782
+ )
783
+ end
784
+ def self.values
785
+ end
786
+ end
787
+
788
+ # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
789
+ module Value
790
+ extend Lithic::Internal::Type::Union
791
+
792
+ Variants =
793
+ T.type_alias { T.any(String, Integer, T::Array[String]) }
794
+
795
+ sig do
796
+ override.returns(
797
+ T::Array[
798
+ Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants
799
+ ]
800
+ )
801
+ end
802
+ def self.variants
803
+ end
804
+
805
+ StringArray =
806
+ T.let(
807
+ Lithic::Internal::Type::ArrayOf[String],
808
+ Lithic::Internal::Type::Converter
809
+ )
810
+ end
811
+ end
812
+ end
253
813
 
254
814
  sig do
255
815
  override.returns(
@@ -292,7 +852,8 @@ module Lithic
292
852
  Lithic::AuthRules::ConditionalBlockParameters::OrHash,
293
853
  Lithic::AuthRules::VelocityLimitParams::OrHash,
294
854
  Lithic::AuthRules::MerchantLockParameters::OrHash,
295
- Lithic::AuthRules::Conditional3DSActionParameters::OrHash
855
+ Lithic::AuthRules::Conditional3DSActionParameters::OrHash,
856
+ Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::OrHash
296
857
  ),
297
858
  version: Integer
298
859
  ).returns(T.attached_class)
@@ -328,9 +889,556 @@ module Lithic
328
889
  Lithic::AuthRules::ConditionalBlockParameters,
329
890
  Lithic::AuthRules::VelocityLimitParams,
330
891
  Lithic::AuthRules::MerchantLockParameters,
331
- Lithic::AuthRules::Conditional3DSActionParameters
892
+ Lithic::AuthRules::Conditional3DSActionParameters,
893
+ Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters
894
+ )
895
+ end
896
+
897
+ class ConditionalAuthorizationActionParameters < Lithic::Internal::Type::BaseModel
898
+ OrHash =
899
+ T.type_alias do
900
+ T.any(
901
+ Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters,
902
+ Lithic::Internal::AnyHash
903
+ )
904
+ end
905
+
906
+ # The action to take if the conditions are met.
907
+ sig do
908
+ returns(
909
+ Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol
910
+ )
911
+ end
912
+ attr_accessor :action
913
+
914
+ sig do
915
+ returns(
916
+ T::Array[
917
+ Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition
918
+ ]
332
919
  )
333
920
  end
921
+ attr_accessor :conditions
922
+
923
+ sig do
924
+ params(
925
+ action:
926
+ Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Action::OrSymbol,
927
+ conditions:
928
+ T::Array[
929
+ Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::OrHash
930
+ ]
931
+ ).returns(T.attached_class)
932
+ end
933
+ def self.new(
934
+ # The action to take if the conditions are met.
935
+ action:,
936
+ conditions:
937
+ )
938
+ end
939
+
940
+ sig do
941
+ override.returns(
942
+ {
943
+ action:
944
+ Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol,
945
+ conditions:
946
+ T::Array[
947
+ Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition
948
+ ]
949
+ }
950
+ )
951
+ end
952
+ def to_hash
953
+ end
954
+
955
+ # The action to take if the conditions are met.
956
+ module Action
957
+ extend Lithic::Internal::Type::Enum
958
+
959
+ TaggedSymbol =
960
+ T.type_alias do
961
+ T.all(
962
+ Symbol,
963
+ Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Action
964
+ )
965
+ end
966
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
967
+
968
+ DECLINE =
969
+ T.let(
970
+ :DECLINE,
971
+ Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol
972
+ )
973
+ CHALLENGE =
974
+ T.let(
975
+ :CHALLENGE,
976
+ Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol
977
+ )
978
+
979
+ sig do
980
+ override.returns(
981
+ T::Array[
982
+ Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol
983
+ ]
984
+ )
985
+ end
986
+ def self.values
987
+ end
988
+ end
989
+
990
+ class Condition < Lithic::Internal::Type::BaseModel
991
+ OrHash =
992
+ T.type_alias do
993
+ T.any(
994
+ Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition,
995
+ Lithic::Internal::AnyHash
996
+ )
997
+ end
998
+
999
+ # The attribute to target.
1000
+ #
1001
+ # The following attributes may be targeted:
1002
+ #
1003
+ # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a
1004
+ # business by the types of goods or services it provides.
1005
+ # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all
1006
+ # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for
1007
+ # Netherlands Antilles.
1008
+ # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of
1009
+ # the transaction.
1010
+ # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor
1011
+ # (merchant).
1012
+ # - `DESCRIPTOR`: Short description of card acceptor.
1013
+ # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer
1014
+ # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or
1015
+ # `TOKEN_AUTHENTICATED`.
1016
+ # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number
1017
+ # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`,
1018
+ # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`,
1019
+ # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`,
1020
+ # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`.
1021
+ # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
1022
+ # fee field in the settlement/cardholder billing currency. This is the amount
1023
+ # the issuer should authorize against unless the issuer is paying the acquirer
1024
+ # fee on behalf of the cardholder.
1025
+ # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
1026
+ # given authorization. Scores are on a range of 0-999, with 0 representing the
1027
+ # lowest risk and 999 representing the highest risk. For Visa transactions,
1028
+ # where the raw score has a range of 0-99, Lithic will normalize the score by
1029
+ # multiplying the raw score by 10x.
1030
+ # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the
1031
+ # trailing 15 minutes before the authorization.
1032
+ # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the
1033
+ # trailing hour up and until the authorization.
1034
+ # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the
1035
+ # trailing 24 hours up and until the authorization.
1036
+ # - `CARD_STATE`: The current state of the card associated with the transaction.
1037
+ # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`,
1038
+ # `PENDING_FULFILLMENT`.
1039
+ # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction.
1040
+ # Valid values are `TRUE`, `FALSE`.
1041
+ # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`,
1042
+ # `OK`, `BLOCKED`.
1043
+ # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the
1044
+ # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`,
1045
+ # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`.
1046
+ # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates
1047
+ # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`.
1048
+ sig do
1049
+ returns(
1050
+ T.nilable(
1051
+ Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
1052
+ )
1053
+ )
1054
+ end
1055
+ attr_reader :attribute
1056
+
1057
+ sig do
1058
+ params(
1059
+ attribute:
1060
+ Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::OrSymbol
1061
+ ).void
1062
+ end
1063
+ attr_writer :attribute
1064
+
1065
+ # The operation to apply to the attribute
1066
+ sig do
1067
+ returns(
1068
+ T.nilable(
1069
+ Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol
1070
+ )
1071
+ )
1072
+ end
1073
+ attr_reader :operation
1074
+
1075
+ sig do
1076
+ params(
1077
+ operation:
1078
+ Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::OrSymbol
1079
+ ).void
1080
+ end
1081
+ attr_writer :operation
1082
+
1083
+ # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
1084
+ sig do
1085
+ returns(
1086
+ T.nilable(
1087
+ Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants
1088
+ )
1089
+ )
1090
+ end
1091
+ attr_reader :value
1092
+
1093
+ sig do
1094
+ params(
1095
+ value:
1096
+ Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants
1097
+ ).void
1098
+ end
1099
+ attr_writer :value
1100
+
1101
+ sig do
1102
+ params(
1103
+ attribute:
1104
+ Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::OrSymbol,
1105
+ operation:
1106
+ Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::OrSymbol,
1107
+ value:
1108
+ Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants
1109
+ ).returns(T.attached_class)
1110
+ end
1111
+ def self.new(
1112
+ # The attribute to target.
1113
+ #
1114
+ # The following attributes may be targeted:
1115
+ #
1116
+ # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a
1117
+ # business by the types of goods or services it provides.
1118
+ # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all
1119
+ # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for
1120
+ # Netherlands Antilles.
1121
+ # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of
1122
+ # the transaction.
1123
+ # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor
1124
+ # (merchant).
1125
+ # - `DESCRIPTOR`: Short description of card acceptor.
1126
+ # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer
1127
+ # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or
1128
+ # `TOKEN_AUTHENTICATED`.
1129
+ # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number
1130
+ # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`,
1131
+ # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`,
1132
+ # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`,
1133
+ # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`.
1134
+ # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
1135
+ # fee field in the settlement/cardholder billing currency. This is the amount
1136
+ # the issuer should authorize against unless the issuer is paying the acquirer
1137
+ # fee on behalf of the cardholder.
1138
+ # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
1139
+ # given authorization. Scores are on a range of 0-999, with 0 representing the
1140
+ # lowest risk and 999 representing the highest risk. For Visa transactions,
1141
+ # where the raw score has a range of 0-99, Lithic will normalize the score by
1142
+ # multiplying the raw score by 10x.
1143
+ # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the
1144
+ # trailing 15 minutes before the authorization.
1145
+ # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the
1146
+ # trailing hour up and until the authorization.
1147
+ # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the
1148
+ # trailing 24 hours up and until the authorization.
1149
+ # - `CARD_STATE`: The current state of the card associated with the transaction.
1150
+ # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`,
1151
+ # `PENDING_FULFILLMENT`.
1152
+ # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction.
1153
+ # Valid values are `TRUE`, `FALSE`.
1154
+ # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`,
1155
+ # `OK`, `BLOCKED`.
1156
+ # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the
1157
+ # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`,
1158
+ # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`.
1159
+ # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates
1160
+ # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`.
1161
+ attribute: nil,
1162
+ # The operation to apply to the attribute
1163
+ operation: nil,
1164
+ # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
1165
+ value: nil
1166
+ )
1167
+ end
1168
+
1169
+ sig do
1170
+ override.returns(
1171
+ {
1172
+ attribute:
1173
+ Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol,
1174
+ operation:
1175
+ Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol,
1176
+ value:
1177
+ Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants
1178
+ }
1179
+ )
1180
+ end
1181
+ def to_hash
1182
+ end
1183
+
1184
+ # The attribute to target.
1185
+ #
1186
+ # The following attributes may be targeted:
1187
+ #
1188
+ # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a
1189
+ # business by the types of goods or services it provides.
1190
+ # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all
1191
+ # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for
1192
+ # Netherlands Antilles.
1193
+ # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of
1194
+ # the transaction.
1195
+ # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor
1196
+ # (merchant).
1197
+ # - `DESCRIPTOR`: Short description of card acceptor.
1198
+ # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer
1199
+ # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or
1200
+ # `TOKEN_AUTHENTICATED`.
1201
+ # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number
1202
+ # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`,
1203
+ # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`,
1204
+ # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`,
1205
+ # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`.
1206
+ # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
1207
+ # fee field in the settlement/cardholder billing currency. This is the amount
1208
+ # the issuer should authorize against unless the issuer is paying the acquirer
1209
+ # fee on behalf of the cardholder.
1210
+ # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
1211
+ # given authorization. Scores are on a range of 0-999, with 0 representing the
1212
+ # lowest risk and 999 representing the highest risk. For Visa transactions,
1213
+ # where the raw score has a range of 0-99, Lithic will normalize the score by
1214
+ # multiplying the raw score by 10x.
1215
+ # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the
1216
+ # trailing 15 minutes before the authorization.
1217
+ # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the
1218
+ # trailing hour up and until the authorization.
1219
+ # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the
1220
+ # trailing 24 hours up and until the authorization.
1221
+ # - `CARD_STATE`: The current state of the card associated with the transaction.
1222
+ # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`,
1223
+ # `PENDING_FULFILLMENT`.
1224
+ # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction.
1225
+ # Valid values are `TRUE`, `FALSE`.
1226
+ # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`,
1227
+ # `OK`, `BLOCKED`.
1228
+ # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the
1229
+ # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`,
1230
+ # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`.
1231
+ # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates
1232
+ # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`.
1233
+ module Attribute
1234
+ extend Lithic::Internal::Type::Enum
1235
+
1236
+ TaggedSymbol =
1237
+ T.type_alias do
1238
+ T.all(
1239
+ Symbol,
1240
+ Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute
1241
+ )
1242
+ end
1243
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
1244
+
1245
+ MCC =
1246
+ T.let(
1247
+ :MCC,
1248
+ Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
1249
+ )
1250
+ COUNTRY =
1251
+ T.let(
1252
+ :COUNTRY,
1253
+ Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
1254
+ )
1255
+ CURRENCY =
1256
+ T.let(
1257
+ :CURRENCY,
1258
+ Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
1259
+ )
1260
+ MERCHANT_ID =
1261
+ T.let(
1262
+ :MERCHANT_ID,
1263
+ Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
1264
+ )
1265
+ DESCRIPTOR =
1266
+ T.let(
1267
+ :DESCRIPTOR,
1268
+ Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
1269
+ )
1270
+ LIABILITY_SHIFT =
1271
+ T.let(
1272
+ :LIABILITY_SHIFT,
1273
+ Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
1274
+ )
1275
+ PAN_ENTRY_MODE =
1276
+ T.let(
1277
+ :PAN_ENTRY_MODE,
1278
+ Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
1279
+ )
1280
+ TRANSACTION_AMOUNT =
1281
+ T.let(
1282
+ :TRANSACTION_AMOUNT,
1283
+ Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
1284
+ )
1285
+ RISK_SCORE =
1286
+ T.let(
1287
+ :RISK_SCORE,
1288
+ Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
1289
+ )
1290
+ CARD_TRANSACTION_COUNT_15_M =
1291
+ T.let(
1292
+ :CARD_TRANSACTION_COUNT_15M,
1293
+ Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
1294
+ )
1295
+ CARD_TRANSACTION_COUNT_1_H =
1296
+ T.let(
1297
+ :CARD_TRANSACTION_COUNT_1H,
1298
+ Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
1299
+ )
1300
+ CARD_TRANSACTION_COUNT_24_H =
1301
+ T.let(
1302
+ :CARD_TRANSACTION_COUNT_24H,
1303
+ Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
1304
+ )
1305
+ CARD_STATE =
1306
+ T.let(
1307
+ :CARD_STATE,
1308
+ Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
1309
+ )
1310
+ PIN_ENTERED =
1311
+ T.let(
1312
+ :PIN_ENTERED,
1313
+ Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
1314
+ )
1315
+ PIN_STATUS =
1316
+ T.let(
1317
+ :PIN_STATUS,
1318
+ Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
1319
+ )
1320
+ WALLET_TYPE =
1321
+ T.let(
1322
+ :WALLET_TYPE,
1323
+ Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
1324
+ )
1325
+ TRANSACTION_INITIATOR =
1326
+ T.let(
1327
+ :TRANSACTION_INITIATOR,
1328
+ Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
1329
+ )
1330
+
1331
+ sig do
1332
+ override.returns(
1333
+ T::Array[
1334
+ Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
1335
+ ]
1336
+ )
1337
+ end
1338
+ def self.values
1339
+ end
1340
+ end
1341
+
1342
+ # The operation to apply to the attribute
1343
+ module Operation
1344
+ extend Lithic::Internal::Type::Enum
1345
+
1346
+ TaggedSymbol =
1347
+ T.type_alias do
1348
+ T.all(
1349
+ Symbol,
1350
+ Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation
1351
+ )
1352
+ end
1353
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
1354
+
1355
+ IS_ONE_OF =
1356
+ T.let(
1357
+ :IS_ONE_OF,
1358
+ Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol
1359
+ )
1360
+ IS_NOT_ONE_OF =
1361
+ T.let(
1362
+ :IS_NOT_ONE_OF,
1363
+ Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol
1364
+ )
1365
+ MATCHES =
1366
+ T.let(
1367
+ :MATCHES,
1368
+ Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol
1369
+ )
1370
+ DOES_NOT_MATCH =
1371
+ T.let(
1372
+ :DOES_NOT_MATCH,
1373
+ Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol
1374
+ )
1375
+ IS_EQUAL_TO =
1376
+ T.let(
1377
+ :IS_EQUAL_TO,
1378
+ Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol
1379
+ )
1380
+ IS_NOT_EQUAL_TO =
1381
+ T.let(
1382
+ :IS_NOT_EQUAL_TO,
1383
+ Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol
1384
+ )
1385
+ IS_GREATER_THAN =
1386
+ T.let(
1387
+ :IS_GREATER_THAN,
1388
+ Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol
1389
+ )
1390
+ IS_GREATER_THAN_OR_EQUAL_TO =
1391
+ T.let(
1392
+ :IS_GREATER_THAN_OR_EQUAL_TO,
1393
+ Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol
1394
+ )
1395
+ IS_LESS_THAN =
1396
+ T.let(
1397
+ :IS_LESS_THAN,
1398
+ Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol
1399
+ )
1400
+ IS_LESS_THAN_OR_EQUAL_TO =
1401
+ T.let(
1402
+ :IS_LESS_THAN_OR_EQUAL_TO,
1403
+ Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol
1404
+ )
1405
+
1406
+ sig do
1407
+ override.returns(
1408
+ T::Array[
1409
+ Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol
1410
+ ]
1411
+ )
1412
+ end
1413
+ def self.values
1414
+ end
1415
+ end
1416
+
1417
+ # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
1418
+ module Value
1419
+ extend Lithic::Internal::Type::Union
1420
+
1421
+ Variants =
1422
+ T.type_alias { T.any(String, Integer, T::Array[String]) }
1423
+
1424
+ sig do
1425
+ override.returns(
1426
+ T::Array[
1427
+ Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants
1428
+ ]
1429
+ )
1430
+ end
1431
+ def self.variants
1432
+ end
1433
+
1434
+ StringArray =
1435
+ T.let(
1436
+ Lithic::Internal::Type::ArrayOf[String],
1437
+ Lithic::Internal::Type::Converter
1438
+ )
1439
+ end
1440
+ end
1441
+ end
334
1442
 
335
1443
  sig do
336
1444
  override.returns(
@@ -344,7 +1452,7 @@ module Lithic
344
1452
  end
345
1453
  end
346
1454
 
347
- # The type of event stream the Auth rule applies to.
1455
+ # The event stream during which the rule will be evaluated.
348
1456
  module EventStream
349
1457
  extend Lithic::Internal::Type::Enum
350
1458
 
@@ -411,13 +1519,15 @@ module Lithic
411
1519
  end
412
1520
  end
413
1521
 
414
- # The type of Auth Rule. Effectively determines the event stream during which it
415
- # will be evaluated.
1522
+ # The type of Auth Rule. For certain rule types, this determines the event stream
1523
+ # during which it will be evaluated. For rules that can be applied to one of
1524
+ # several event streams, the effective one is defined by the separate
1525
+ # `event_stream` field.
416
1526
  #
417
1527
  # - `CONDITIONAL_BLOCK`: AUTHORIZATION event stream.
418
1528
  # - `VELOCITY_LIMIT`: AUTHORIZATION event stream.
419
1529
  # - `MERCHANT_LOCK`: AUTHORIZATION event stream.
420
- # - `CONDITIONAL_3DS_ACTION`: THREE_DS_AUTHENTICATION event stream.
1530
+ # - `CONDITIONAL_ACTION`: AUTHORIZATION or THREE_DS_AUTHENTICATION event stream.
421
1531
  module Type
422
1532
  extend Lithic::Internal::Type::Enum
423
1533
 
@@ -442,9 +1552,9 @@ module Lithic
442
1552
  :MERCHANT_LOCK,
443
1553
  Lithic::Models::AuthRules::V2ListResponse::Type::TaggedSymbol
444
1554
  )
445
- CONDITIONAL_3DS_ACTION =
1555
+ CONDITIONAL_ACTION =
446
1556
  T.let(
447
- :CONDITIONAL_3DS_ACTION,
1557
+ :CONDITIONAL_ACTION,
448
1558
  Lithic::Models::AuthRules::V2ListResponse::Type::TaggedSymbol
449
1559
  )
450
1560