lithic 0.1.0.pre.alpha.29 → 0.1.0.pre.alpha.31

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 (64) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +26 -0
  3. data/README.md +1 -1
  4. data/lib/lithic/internal/type/enum.rb +6 -3
  5. data/lib/lithic/internal/type/union.rb +5 -2
  6. data/lib/lithic/internal/util.rb +8 -9
  7. data/lib/lithic/models/account_update_params.rb +4 -4
  8. data/lib/lithic/models/auth_rules/v2/backtest_results.rb +100 -28
  9. data/lib/lithic/models/auth_rules/v2_apply_response.rb +401 -10
  10. data/lib/lithic/models/auth_rules/v2_create_params.rb +205 -6
  11. data/lib/lithic/models/auth_rules/v2_create_response.rb +401 -10
  12. data/lib/lithic/models/auth_rules/v2_draft_params.rb +186 -3
  13. data/lib/lithic/models/auth_rules/v2_draft_response.rb +401 -10
  14. data/lib/lithic/models/auth_rules/v2_list_params.rb +27 -8
  15. data/lib/lithic/models/auth_rules/v2_list_response.rb +401 -10
  16. data/lib/lithic/models/auth_rules/v2_promote_response.rb +401 -10
  17. data/lib/lithic/models/auth_rules/v2_retrieve_response.rb +401 -10
  18. data/lib/lithic/models/auth_rules/v2_update_response.rb +401 -10
  19. data/lib/lithic/models/funding_event_list_response.rb +26 -22
  20. data/lib/lithic/models/funding_event_retrieve_response.rb +26 -22
  21. data/lib/lithic/models/payment.rb +2 -2
  22. data/lib/lithic/models/required_document.rb +2 -2
  23. data/lib/lithic/models/transaction.rb +2 -1
  24. data/lib/lithic/models.rb +4 -4
  25. data/lib/lithic/resources/auth_rules/v2/backtests.rb +12 -13
  26. data/lib/lithic/resources/auth_rules/v2.rb +45 -39
  27. data/lib/lithic/resources/transfers.rb +2 -0
  28. data/lib/lithic/version.rb +1 -1
  29. data/rbi/lithic/internal/util.rbi +2 -0
  30. data/rbi/lithic/models/account_update_params.rbi +6 -6
  31. data/rbi/lithic/models/auth_rules/v2/backtest_results.rbi +186 -24
  32. data/rbi/lithic/models/auth_rules/v2_apply_response.rbi +895 -7
  33. data/rbi/lithic/models/auth_rules/v2_create_params.rbi +442 -8
  34. data/rbi/lithic/models/auth_rules/v2_create_response.rbi +895 -7
  35. data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +414 -4
  36. data/rbi/lithic/models/auth_rules/v2_draft_response.rbi +895 -7
  37. data/rbi/lithic/models/auth_rules/v2_list_params.rbi +60 -7
  38. data/rbi/lithic/models/auth_rules/v2_list_response.rbi +895 -7
  39. data/rbi/lithic/models/auth_rules/v2_promote_response.rbi +895 -7
  40. data/rbi/lithic/models/auth_rules/v2_retrieve_response.rbi +895 -7
  41. data/rbi/lithic/models/auth_rules/v2_update_response.rbi +895 -7
  42. data/rbi/lithic/models/funding_event_list_response.rbi +35 -28
  43. data/rbi/lithic/models/funding_event_retrieve_response.rbi +35 -28
  44. data/rbi/lithic/models/payment.rbi +3 -3
  45. data/rbi/lithic/models/required_document.rbi +2 -2
  46. data/rbi/lithic/models/transaction.rbi +4 -2
  47. data/rbi/lithic/resources/accounts.rbi +2 -2
  48. data/rbi/lithic/resources/auth_rules/v2/backtests.rbi +12 -13
  49. data/rbi/lithic/resources/auth_rules/v2.rbi +49 -38
  50. data/sig/lithic/models/auth_rules/v2/backtest_results.rbs +66 -2
  51. data/sig/lithic/models/auth_rules/v2_apply_response.rbs +280 -1
  52. data/sig/lithic/models/auth_rules/v2_create_params.rbs +135 -1
  53. data/sig/lithic/models/auth_rules/v2_create_response.rbs +280 -1
  54. data/sig/lithic/models/auth_rules/v2_draft_params.rbs +129 -0
  55. data/sig/lithic/models/auth_rules/v2_draft_response.rbs +280 -1
  56. data/sig/lithic/models/auth_rules/v2_list_params.rbs +20 -0
  57. data/sig/lithic/models/auth_rules/v2_list_response.rbs +280 -1
  58. data/sig/lithic/models/auth_rules/v2_promote_response.rbs +280 -1
  59. data/sig/lithic/models/auth_rules/v2_retrieve_response.rbs +280 -1
  60. data/sig/lithic/models/auth_rules/v2_update_response.rbs +280 -1
  61. data/sig/lithic/models/funding_event_list_response.rbs +18 -11
  62. data/sig/lithic/models/funding_event_retrieve_response.rbs +18 -11
  63. data/sig/lithic/resources/auth_rules/v2.rbs +1 -0
  64. metadata +2 -2
@@ -60,6 +60,14 @@ module Lithic
60
60
  end
61
61
  attr_writer :draft_version
62
62
 
63
+ # The type of event stream the Auth rule applies to.
64
+ sig do
65
+ returns(
66
+ Lithic::Models::AuthRules::V2CreateResponse::EventStream::TaggedSymbol
67
+ )
68
+ end
69
+ attr_accessor :event_stream
70
+
63
71
  # Auth Rule Name
64
72
  sig { returns(T.nilable(String)) }
65
73
  attr_accessor :name
@@ -76,7 +84,13 @@ module Lithic
76
84
  end
77
85
  attr_accessor :state
78
86
 
79
- # The type of Auth Rule
87
+ # The type of Auth Rule. Effectively determines the event stream during which it
88
+ # will be evaluated.
89
+ #
90
+ # - `CONDITIONAL_BLOCK`: AUTHORIZATION event stream.
91
+ # - `VELOCITY_LIMIT`: AUTHORIZATION event stream.
92
+ # - `MERCHANT_LOCK`: AUTHORIZATION event stream.
93
+ # - `CONDITIONAL_3DS_ACTION`: THREE_DS_AUTHENTICATION event stream.
80
94
  sig do
81
95
  returns(
82
96
  Lithic::Models::AuthRules::V2CreateResponse::Type::TaggedSymbol
@@ -104,6 +118,8 @@ module Lithic
104
118
  T.nilable(
105
119
  Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::OrHash
106
120
  ),
121
+ event_stream:
122
+ Lithic::Models::AuthRules::V2CreateResponse::EventStream::OrSymbol,
107
123
  name: T.nilable(String),
108
124
  program_level: T::Boolean,
109
125
  state: Lithic::Models::AuthRules::V2CreateResponse::State::OrSymbol,
@@ -120,13 +136,21 @@ module Lithic
120
136
  card_tokens:,
121
137
  current_version:,
122
138
  draft_version:,
139
+ # The type of event stream the Auth rule applies to.
140
+ event_stream:,
123
141
  # Auth Rule Name
124
142
  name:,
125
143
  # Whether the Auth Rule applies to all authorizations on the card program.
126
144
  program_level:,
127
145
  # The state of the Auth Rule
128
146
  state:,
129
- # The type of Auth Rule
147
+ # The type of Auth Rule. Effectively determines the event stream during which it
148
+ # will be evaluated.
149
+ #
150
+ # - `CONDITIONAL_BLOCK`: AUTHORIZATION event stream.
151
+ # - `VELOCITY_LIMIT`: AUTHORIZATION event stream.
152
+ # - `MERCHANT_LOCK`: AUTHORIZATION event stream.
153
+ # - `CONDITIONAL_3DS_ACTION`: THREE_DS_AUTHENTICATION event stream.
130
154
  type:,
131
155
  # Card tokens to which the Auth Rule does not apply.
132
156
  excluded_card_tokens: nil
@@ -147,6 +171,8 @@ module Lithic
147
171
  T.nilable(
148
172
  Lithic::Models::AuthRules::V2CreateResponse::DraftVersion
149
173
  ),
174
+ event_stream:
175
+ Lithic::Models::AuthRules::V2CreateResponse::EventStream::TaggedSymbol,
150
176
  name: T.nilable(String),
151
177
  program_level: T::Boolean,
152
178
  state:
@@ -188,7 +214,8 @@ module Lithic
188
214
  T.any(
189
215
  Lithic::AuthRules::ConditionalBlockParameters::OrHash,
190
216
  Lithic::AuthRules::VelocityLimitParams::OrHash,
191
- Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::MerchantLockParameters::OrHash
217
+ Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::MerchantLockParameters::OrHash,
218
+ Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::OrHash
192
219
  ),
193
220
  version: Integer
194
221
  ).returns(T.attached_class)
@@ -223,7 +250,8 @@ module Lithic
223
250
  T.any(
224
251
  Lithic::AuthRules::ConditionalBlockParameters,
225
252
  Lithic::AuthRules::VelocityLimitParams,
226
- Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::MerchantLockParameters
253
+ Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::MerchantLockParameters,
254
+ Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters
227
255
  )
228
256
  end
229
257
 
@@ -345,6 +373,412 @@ module Lithic
345
373
  end
346
374
  end
347
375
 
376
+ class Conditional3DSActionParameters < Lithic::Internal::Type::BaseModel
377
+ OrHash =
378
+ T.type_alias do
379
+ T.any(
380
+ Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters,
381
+ Lithic::Internal::AnyHash
382
+ )
383
+ end
384
+
385
+ # The action to take if the conditions are met.
386
+ sig do
387
+ returns(
388
+ Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Action::TaggedSymbol
389
+ )
390
+ end
391
+ attr_accessor :action
392
+
393
+ sig do
394
+ returns(
395
+ T::Array[
396
+ Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition
397
+ ]
398
+ )
399
+ end
400
+ attr_accessor :conditions
401
+
402
+ sig do
403
+ params(
404
+ action:
405
+ Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Action::OrSymbol,
406
+ conditions:
407
+ T::Array[
408
+ Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::OrHash
409
+ ]
410
+ ).returns(T.attached_class)
411
+ end
412
+ def self.new(
413
+ # The action to take if the conditions are met.
414
+ action:,
415
+ conditions:
416
+ )
417
+ end
418
+
419
+ sig do
420
+ override.returns(
421
+ {
422
+ action:
423
+ Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Action::TaggedSymbol,
424
+ conditions:
425
+ T::Array[
426
+ Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition
427
+ ]
428
+ }
429
+ )
430
+ end
431
+ def to_hash
432
+ end
433
+
434
+ # The action to take if the conditions are met.
435
+ module Action
436
+ extend Lithic::Internal::Type::Enum
437
+
438
+ TaggedSymbol =
439
+ T.type_alias do
440
+ T.all(
441
+ Symbol,
442
+ Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Action
443
+ )
444
+ end
445
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
446
+
447
+ DECLINE =
448
+ T.let(
449
+ :DECLINE,
450
+ Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Action::TaggedSymbol
451
+ )
452
+ CHALLENGE =
453
+ T.let(
454
+ :CHALLENGE,
455
+ Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Action::TaggedSymbol
456
+ )
457
+
458
+ sig do
459
+ override.returns(
460
+ T::Array[
461
+ Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Action::TaggedSymbol
462
+ ]
463
+ )
464
+ end
465
+ def self.values
466
+ end
467
+ end
468
+
469
+ class Condition < Lithic::Internal::Type::BaseModel
470
+ OrHash =
471
+ T.type_alias do
472
+ T.any(
473
+ Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition,
474
+ Lithic::Internal::AnyHash
475
+ )
476
+ end
477
+
478
+ # The attribute to target.
479
+ #
480
+ # The following attributes may be targeted:
481
+ #
482
+ # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a
483
+ # business by the types of goods or services it provides.
484
+ # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all
485
+ # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for
486
+ # Netherlands Antilles.
487
+ # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of
488
+ # the transaction.
489
+ # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor
490
+ # (merchant).
491
+ # - `DESCRIPTOR`: Short description of card acceptor.
492
+ # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
493
+ # fee field in the settlement/cardholder billing currency. This is the amount
494
+ # the issuer should authorize against unless the issuer is paying the acquirer
495
+ # fee on behalf of the cardholder.
496
+ # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
497
+ # given authentication. Scores are on a range of 0-999, with 0 representing the
498
+ # lowest risk and 999 representing the highest risk. For Visa transactions,
499
+ # where the raw score has a range of 0-99, Lithic will normalize the score by
500
+ # multiplying the raw score by 10x.
501
+ # - `MESSAGE_CATEGORY`: The category of the authentication being processed.
502
+ sig do
503
+ returns(
504
+ T.nilable(
505
+ Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::Attribute::TaggedSymbol
506
+ )
507
+ )
508
+ end
509
+ attr_reader :attribute
510
+
511
+ sig do
512
+ params(
513
+ attribute:
514
+ Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::Attribute::OrSymbol
515
+ ).void
516
+ end
517
+ attr_writer :attribute
518
+
519
+ # The operation to apply to the attribute
520
+ sig do
521
+ returns(
522
+ T.nilable(
523
+ Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::Operation::TaggedSymbol
524
+ )
525
+ )
526
+ end
527
+ attr_reader :operation
528
+
529
+ sig do
530
+ params(
531
+ operation:
532
+ Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::Operation::OrSymbol
533
+ ).void
534
+ end
535
+ attr_writer :operation
536
+
537
+ # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
538
+ sig do
539
+ returns(
540
+ T.nilable(
541
+ Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::Value::Variants
542
+ )
543
+ )
544
+ end
545
+ attr_reader :value
546
+
547
+ sig do
548
+ params(
549
+ value:
550
+ Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::Value::Variants
551
+ ).void
552
+ end
553
+ attr_writer :value
554
+
555
+ sig do
556
+ params(
557
+ attribute:
558
+ Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::Attribute::OrSymbol,
559
+ operation:
560
+ Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::Operation::OrSymbol,
561
+ value:
562
+ Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::Value::Variants
563
+ ).returns(T.attached_class)
564
+ end
565
+ def self.new(
566
+ # The attribute to target.
567
+ #
568
+ # The following attributes may be targeted:
569
+ #
570
+ # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a
571
+ # business by the types of goods or services it provides.
572
+ # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all
573
+ # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for
574
+ # Netherlands Antilles.
575
+ # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of
576
+ # the transaction.
577
+ # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor
578
+ # (merchant).
579
+ # - `DESCRIPTOR`: Short description of card acceptor.
580
+ # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
581
+ # fee field in the settlement/cardholder billing currency. This is the amount
582
+ # the issuer should authorize against unless the issuer is paying the acquirer
583
+ # fee on behalf of the cardholder.
584
+ # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
585
+ # given authentication. Scores are on a range of 0-999, with 0 representing the
586
+ # lowest risk and 999 representing the highest risk. For Visa transactions,
587
+ # where the raw score has a range of 0-99, Lithic will normalize the score by
588
+ # multiplying the raw score by 10x.
589
+ # - `MESSAGE_CATEGORY`: The category of the authentication being processed.
590
+ attribute: nil,
591
+ # The operation to apply to the attribute
592
+ operation: nil,
593
+ # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
594
+ value: nil
595
+ )
596
+ end
597
+
598
+ sig do
599
+ override.returns(
600
+ {
601
+ attribute:
602
+ Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::Attribute::TaggedSymbol,
603
+ operation:
604
+ Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::Operation::TaggedSymbol,
605
+ value:
606
+ Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::Value::Variants
607
+ }
608
+ )
609
+ end
610
+ def to_hash
611
+ end
612
+
613
+ # The attribute to target.
614
+ #
615
+ # The following attributes may be targeted:
616
+ #
617
+ # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a
618
+ # business by the types of goods or services it provides.
619
+ # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all
620
+ # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for
621
+ # Netherlands Antilles.
622
+ # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of
623
+ # the transaction.
624
+ # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor
625
+ # (merchant).
626
+ # - `DESCRIPTOR`: Short description of card acceptor.
627
+ # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
628
+ # fee field in the settlement/cardholder billing currency. This is the amount
629
+ # the issuer should authorize against unless the issuer is paying the acquirer
630
+ # fee on behalf of the cardholder.
631
+ # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
632
+ # given authentication. Scores are on a range of 0-999, with 0 representing the
633
+ # lowest risk and 999 representing the highest risk. For Visa transactions,
634
+ # where the raw score has a range of 0-99, Lithic will normalize the score by
635
+ # multiplying the raw score by 10x.
636
+ # - `MESSAGE_CATEGORY`: The category of the authentication being processed.
637
+ module Attribute
638
+ extend Lithic::Internal::Type::Enum
639
+
640
+ TaggedSymbol =
641
+ T.type_alias do
642
+ T.all(
643
+ Symbol,
644
+ Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::Attribute
645
+ )
646
+ end
647
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
648
+
649
+ MCC =
650
+ T.let(
651
+ :MCC,
652
+ Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::Attribute::TaggedSymbol
653
+ )
654
+ COUNTRY =
655
+ T.let(
656
+ :COUNTRY,
657
+ Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::Attribute::TaggedSymbol
658
+ )
659
+ CURRENCY =
660
+ T.let(
661
+ :CURRENCY,
662
+ Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::Attribute::TaggedSymbol
663
+ )
664
+ MERCHANT_ID =
665
+ T.let(
666
+ :MERCHANT_ID,
667
+ Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::Attribute::TaggedSymbol
668
+ )
669
+ DESCRIPTOR =
670
+ T.let(
671
+ :DESCRIPTOR,
672
+ Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::Attribute::TaggedSymbol
673
+ )
674
+ TRANSACTION_AMOUNT =
675
+ T.let(
676
+ :TRANSACTION_AMOUNT,
677
+ Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::Attribute::TaggedSymbol
678
+ )
679
+ RISK_SCORE =
680
+ T.let(
681
+ :RISK_SCORE,
682
+ Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::Attribute::TaggedSymbol
683
+ )
684
+ MESSAGE_CATEGORY =
685
+ T.let(
686
+ :MESSAGE_CATEGORY,
687
+ Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::Attribute::TaggedSymbol
688
+ )
689
+
690
+ sig do
691
+ override.returns(
692
+ T::Array[
693
+ Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::Attribute::TaggedSymbol
694
+ ]
695
+ )
696
+ end
697
+ def self.values
698
+ end
699
+ end
700
+
701
+ # The operation to apply to the attribute
702
+ module Operation
703
+ extend Lithic::Internal::Type::Enum
704
+
705
+ TaggedSymbol =
706
+ T.type_alias do
707
+ T.all(
708
+ Symbol,
709
+ Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::Operation
710
+ )
711
+ end
712
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
713
+
714
+ IS_ONE_OF =
715
+ T.let(
716
+ :IS_ONE_OF,
717
+ Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::Operation::TaggedSymbol
718
+ )
719
+ IS_NOT_ONE_OF =
720
+ T.let(
721
+ :IS_NOT_ONE_OF,
722
+ Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::Operation::TaggedSymbol
723
+ )
724
+ MATCHES =
725
+ T.let(
726
+ :MATCHES,
727
+ Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::Operation::TaggedSymbol
728
+ )
729
+ DOES_NOT_MATCH =
730
+ T.let(
731
+ :DOES_NOT_MATCH,
732
+ Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::Operation::TaggedSymbol
733
+ )
734
+ IS_GREATER_THAN =
735
+ T.let(
736
+ :IS_GREATER_THAN,
737
+ Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::Operation::TaggedSymbol
738
+ )
739
+ IS_LESS_THAN =
740
+ T.let(
741
+ :IS_LESS_THAN,
742
+ Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::Operation::TaggedSymbol
743
+ )
744
+
745
+ sig do
746
+ override.returns(
747
+ T::Array[
748
+ Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::Operation::TaggedSymbol
749
+ ]
750
+ )
751
+ end
752
+ def self.values
753
+ end
754
+ end
755
+
756
+ # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
757
+ module Value
758
+ extend Lithic::Internal::Type::Union
759
+
760
+ Variants =
761
+ T.type_alias { T.any(String, Integer, T::Array[String]) }
762
+
763
+ sig do
764
+ override.returns(
765
+ T::Array[
766
+ Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::Value::Variants
767
+ ]
768
+ )
769
+ end
770
+ def self.variants
771
+ end
772
+
773
+ StringArray =
774
+ T.let(
775
+ Lithic::Internal::Type::ArrayOf[String],
776
+ Lithic::Internal::Type::Converter
777
+ )
778
+ end
779
+ end
780
+ end
781
+
348
782
  sig do
349
783
  override.returns(
350
784
  T::Array[
@@ -385,7 +819,8 @@ module Lithic
385
819
  T.any(
386
820
  Lithic::AuthRules::ConditionalBlockParameters::OrHash,
387
821
  Lithic::AuthRules::VelocityLimitParams::OrHash,
388
- Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::MerchantLockParameters::OrHash
822
+ Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::MerchantLockParameters::OrHash,
823
+ Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::OrHash
389
824
  ),
390
825
  version: Integer
391
826
  ).returns(T.attached_class)
@@ -420,7 +855,8 @@ module Lithic
420
855
  T.any(
421
856
  Lithic::AuthRules::ConditionalBlockParameters,
422
857
  Lithic::AuthRules::VelocityLimitParams,
423
- Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::MerchantLockParameters
858
+ Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::MerchantLockParameters,
859
+ Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters
424
860
  )
425
861
  end
426
862
 
@@ -542,6 +978,412 @@ module Lithic
542
978
  end
543
979
  end
544
980
 
981
+ class Conditional3DSActionParameters < Lithic::Internal::Type::BaseModel
982
+ OrHash =
983
+ T.type_alias do
984
+ T.any(
985
+ Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters,
986
+ Lithic::Internal::AnyHash
987
+ )
988
+ end
989
+
990
+ # The action to take if the conditions are met.
991
+ sig do
992
+ returns(
993
+ Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Action::TaggedSymbol
994
+ )
995
+ end
996
+ attr_accessor :action
997
+
998
+ sig do
999
+ returns(
1000
+ T::Array[
1001
+ Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition
1002
+ ]
1003
+ )
1004
+ end
1005
+ attr_accessor :conditions
1006
+
1007
+ sig do
1008
+ params(
1009
+ action:
1010
+ Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Action::OrSymbol,
1011
+ conditions:
1012
+ T::Array[
1013
+ Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::OrHash
1014
+ ]
1015
+ ).returns(T.attached_class)
1016
+ end
1017
+ def self.new(
1018
+ # The action to take if the conditions are met.
1019
+ action:,
1020
+ conditions:
1021
+ )
1022
+ end
1023
+
1024
+ sig do
1025
+ override.returns(
1026
+ {
1027
+ action:
1028
+ Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Action::TaggedSymbol,
1029
+ conditions:
1030
+ T::Array[
1031
+ Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition
1032
+ ]
1033
+ }
1034
+ )
1035
+ end
1036
+ def to_hash
1037
+ end
1038
+
1039
+ # The action to take if the conditions are met.
1040
+ module Action
1041
+ extend Lithic::Internal::Type::Enum
1042
+
1043
+ TaggedSymbol =
1044
+ T.type_alias do
1045
+ T.all(
1046
+ Symbol,
1047
+ Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Action
1048
+ )
1049
+ end
1050
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
1051
+
1052
+ DECLINE =
1053
+ T.let(
1054
+ :DECLINE,
1055
+ Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Action::TaggedSymbol
1056
+ )
1057
+ CHALLENGE =
1058
+ T.let(
1059
+ :CHALLENGE,
1060
+ Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Action::TaggedSymbol
1061
+ )
1062
+
1063
+ sig do
1064
+ override.returns(
1065
+ T::Array[
1066
+ Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Action::TaggedSymbol
1067
+ ]
1068
+ )
1069
+ end
1070
+ def self.values
1071
+ end
1072
+ end
1073
+
1074
+ class Condition < Lithic::Internal::Type::BaseModel
1075
+ OrHash =
1076
+ T.type_alias do
1077
+ T.any(
1078
+ Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition,
1079
+ Lithic::Internal::AnyHash
1080
+ )
1081
+ end
1082
+
1083
+ # The attribute to target.
1084
+ #
1085
+ # The following attributes may be targeted:
1086
+ #
1087
+ # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a
1088
+ # business by the types of goods or services it provides.
1089
+ # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all
1090
+ # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for
1091
+ # Netherlands Antilles.
1092
+ # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of
1093
+ # the transaction.
1094
+ # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor
1095
+ # (merchant).
1096
+ # - `DESCRIPTOR`: Short description of card acceptor.
1097
+ # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
1098
+ # fee field in the settlement/cardholder billing currency. This is the amount
1099
+ # the issuer should authorize against unless the issuer is paying the acquirer
1100
+ # fee on behalf of the cardholder.
1101
+ # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
1102
+ # given authentication. Scores are on a range of 0-999, with 0 representing the
1103
+ # lowest risk and 999 representing the highest risk. For Visa transactions,
1104
+ # where the raw score has a range of 0-99, Lithic will normalize the score by
1105
+ # multiplying the raw score by 10x.
1106
+ # - `MESSAGE_CATEGORY`: The category of the authentication being processed.
1107
+ sig do
1108
+ returns(
1109
+ T.nilable(
1110
+ Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::Attribute::TaggedSymbol
1111
+ )
1112
+ )
1113
+ end
1114
+ attr_reader :attribute
1115
+
1116
+ sig do
1117
+ params(
1118
+ attribute:
1119
+ Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::Attribute::OrSymbol
1120
+ ).void
1121
+ end
1122
+ attr_writer :attribute
1123
+
1124
+ # The operation to apply to the attribute
1125
+ sig do
1126
+ returns(
1127
+ T.nilable(
1128
+ Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::Operation::TaggedSymbol
1129
+ )
1130
+ )
1131
+ end
1132
+ attr_reader :operation
1133
+
1134
+ sig do
1135
+ params(
1136
+ operation:
1137
+ Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::Operation::OrSymbol
1138
+ ).void
1139
+ end
1140
+ attr_writer :operation
1141
+
1142
+ # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
1143
+ sig do
1144
+ returns(
1145
+ T.nilable(
1146
+ Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::Value::Variants
1147
+ )
1148
+ )
1149
+ end
1150
+ attr_reader :value
1151
+
1152
+ sig do
1153
+ params(
1154
+ value:
1155
+ Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::Value::Variants
1156
+ ).void
1157
+ end
1158
+ attr_writer :value
1159
+
1160
+ sig do
1161
+ params(
1162
+ attribute:
1163
+ Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::Attribute::OrSymbol,
1164
+ operation:
1165
+ Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::Operation::OrSymbol,
1166
+ value:
1167
+ Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::Value::Variants
1168
+ ).returns(T.attached_class)
1169
+ end
1170
+ def self.new(
1171
+ # The attribute to target.
1172
+ #
1173
+ # The following attributes may be targeted:
1174
+ #
1175
+ # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a
1176
+ # business by the types of goods or services it provides.
1177
+ # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all
1178
+ # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for
1179
+ # Netherlands Antilles.
1180
+ # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of
1181
+ # the transaction.
1182
+ # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor
1183
+ # (merchant).
1184
+ # - `DESCRIPTOR`: Short description of card acceptor.
1185
+ # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
1186
+ # fee field in the settlement/cardholder billing currency. This is the amount
1187
+ # the issuer should authorize against unless the issuer is paying the acquirer
1188
+ # fee on behalf of the cardholder.
1189
+ # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
1190
+ # given authentication. Scores are on a range of 0-999, with 0 representing the
1191
+ # lowest risk and 999 representing the highest risk. For Visa transactions,
1192
+ # where the raw score has a range of 0-99, Lithic will normalize the score by
1193
+ # multiplying the raw score by 10x.
1194
+ # - `MESSAGE_CATEGORY`: The category of the authentication being processed.
1195
+ attribute: nil,
1196
+ # The operation to apply to the attribute
1197
+ operation: nil,
1198
+ # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
1199
+ value: nil
1200
+ )
1201
+ end
1202
+
1203
+ sig do
1204
+ override.returns(
1205
+ {
1206
+ attribute:
1207
+ Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::Attribute::TaggedSymbol,
1208
+ operation:
1209
+ Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::Operation::TaggedSymbol,
1210
+ value:
1211
+ Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::Value::Variants
1212
+ }
1213
+ )
1214
+ end
1215
+ def to_hash
1216
+ end
1217
+
1218
+ # The attribute to target.
1219
+ #
1220
+ # The following attributes may be targeted:
1221
+ #
1222
+ # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a
1223
+ # business by the types of goods or services it provides.
1224
+ # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all
1225
+ # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for
1226
+ # Netherlands Antilles.
1227
+ # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of
1228
+ # the transaction.
1229
+ # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor
1230
+ # (merchant).
1231
+ # - `DESCRIPTOR`: Short description of card acceptor.
1232
+ # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
1233
+ # fee field in the settlement/cardholder billing currency. This is the amount
1234
+ # the issuer should authorize against unless the issuer is paying the acquirer
1235
+ # fee on behalf of the cardholder.
1236
+ # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
1237
+ # given authentication. Scores are on a range of 0-999, with 0 representing the
1238
+ # lowest risk and 999 representing the highest risk. For Visa transactions,
1239
+ # where the raw score has a range of 0-99, Lithic will normalize the score by
1240
+ # multiplying the raw score by 10x.
1241
+ # - `MESSAGE_CATEGORY`: The category of the authentication being processed.
1242
+ module Attribute
1243
+ extend Lithic::Internal::Type::Enum
1244
+
1245
+ TaggedSymbol =
1246
+ T.type_alias do
1247
+ T.all(
1248
+ Symbol,
1249
+ Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::Attribute
1250
+ )
1251
+ end
1252
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
1253
+
1254
+ MCC =
1255
+ T.let(
1256
+ :MCC,
1257
+ Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::Attribute::TaggedSymbol
1258
+ )
1259
+ COUNTRY =
1260
+ T.let(
1261
+ :COUNTRY,
1262
+ Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::Attribute::TaggedSymbol
1263
+ )
1264
+ CURRENCY =
1265
+ T.let(
1266
+ :CURRENCY,
1267
+ Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::Attribute::TaggedSymbol
1268
+ )
1269
+ MERCHANT_ID =
1270
+ T.let(
1271
+ :MERCHANT_ID,
1272
+ Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::Attribute::TaggedSymbol
1273
+ )
1274
+ DESCRIPTOR =
1275
+ T.let(
1276
+ :DESCRIPTOR,
1277
+ Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::Attribute::TaggedSymbol
1278
+ )
1279
+ TRANSACTION_AMOUNT =
1280
+ T.let(
1281
+ :TRANSACTION_AMOUNT,
1282
+ Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::Attribute::TaggedSymbol
1283
+ )
1284
+ RISK_SCORE =
1285
+ T.let(
1286
+ :RISK_SCORE,
1287
+ Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::Attribute::TaggedSymbol
1288
+ )
1289
+ MESSAGE_CATEGORY =
1290
+ T.let(
1291
+ :MESSAGE_CATEGORY,
1292
+ Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::Attribute::TaggedSymbol
1293
+ )
1294
+
1295
+ sig do
1296
+ override.returns(
1297
+ T::Array[
1298
+ Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::Attribute::TaggedSymbol
1299
+ ]
1300
+ )
1301
+ end
1302
+ def self.values
1303
+ end
1304
+ end
1305
+
1306
+ # The operation to apply to the attribute
1307
+ module Operation
1308
+ extend Lithic::Internal::Type::Enum
1309
+
1310
+ TaggedSymbol =
1311
+ T.type_alias do
1312
+ T.all(
1313
+ Symbol,
1314
+ Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::Operation
1315
+ )
1316
+ end
1317
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
1318
+
1319
+ IS_ONE_OF =
1320
+ T.let(
1321
+ :IS_ONE_OF,
1322
+ Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::Operation::TaggedSymbol
1323
+ )
1324
+ IS_NOT_ONE_OF =
1325
+ T.let(
1326
+ :IS_NOT_ONE_OF,
1327
+ Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::Operation::TaggedSymbol
1328
+ )
1329
+ MATCHES =
1330
+ T.let(
1331
+ :MATCHES,
1332
+ Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::Operation::TaggedSymbol
1333
+ )
1334
+ DOES_NOT_MATCH =
1335
+ T.let(
1336
+ :DOES_NOT_MATCH,
1337
+ Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::Operation::TaggedSymbol
1338
+ )
1339
+ IS_GREATER_THAN =
1340
+ T.let(
1341
+ :IS_GREATER_THAN,
1342
+ Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::Operation::TaggedSymbol
1343
+ )
1344
+ IS_LESS_THAN =
1345
+ T.let(
1346
+ :IS_LESS_THAN,
1347
+ Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::Operation::TaggedSymbol
1348
+ )
1349
+
1350
+ sig do
1351
+ override.returns(
1352
+ T::Array[
1353
+ Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::Operation::TaggedSymbol
1354
+ ]
1355
+ )
1356
+ end
1357
+ def self.values
1358
+ end
1359
+ end
1360
+
1361
+ # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
1362
+ module Value
1363
+ extend Lithic::Internal::Type::Union
1364
+
1365
+ Variants =
1366
+ T.type_alias { T.any(String, Integer, T::Array[String]) }
1367
+
1368
+ sig do
1369
+ override.returns(
1370
+ T::Array[
1371
+ Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::Value::Variants
1372
+ ]
1373
+ )
1374
+ end
1375
+ def self.variants
1376
+ end
1377
+
1378
+ StringArray =
1379
+ T.let(
1380
+ Lithic::Internal::Type::ArrayOf[String],
1381
+ Lithic::Internal::Type::Converter
1382
+ )
1383
+ end
1384
+ end
1385
+ end
1386
+
545
1387
  sig do
546
1388
  override.returns(
547
1389
  T::Array[
@@ -554,6 +1396,41 @@ module Lithic
554
1396
  end
555
1397
  end
556
1398
 
1399
+ # The type of event stream the Auth rule applies to.
1400
+ module EventStream
1401
+ extend Lithic::Internal::Type::Enum
1402
+
1403
+ TaggedSymbol =
1404
+ T.type_alias do
1405
+ T.all(
1406
+ Symbol,
1407
+ Lithic::Models::AuthRules::V2CreateResponse::EventStream
1408
+ )
1409
+ end
1410
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
1411
+
1412
+ AUTHORIZATION =
1413
+ T.let(
1414
+ :AUTHORIZATION,
1415
+ Lithic::Models::AuthRules::V2CreateResponse::EventStream::TaggedSymbol
1416
+ )
1417
+ THREE_DS_AUTHENTICATION =
1418
+ T.let(
1419
+ :THREE_DS_AUTHENTICATION,
1420
+ Lithic::Models::AuthRules::V2CreateResponse::EventStream::TaggedSymbol
1421
+ )
1422
+
1423
+ sig do
1424
+ override.returns(
1425
+ T::Array[
1426
+ Lithic::Models::AuthRules::V2CreateResponse::EventStream::TaggedSymbol
1427
+ ]
1428
+ )
1429
+ end
1430
+ def self.values
1431
+ end
1432
+ end
1433
+
557
1434
  # The state of the Auth Rule
558
1435
  module State
559
1436
  extend Lithic::Internal::Type::Enum
@@ -586,7 +1463,13 @@ module Lithic
586
1463
  end
587
1464
  end
588
1465
 
589
- # The type of Auth Rule
1466
+ # The type of Auth Rule. Effectively determines the event stream during which it
1467
+ # will be evaluated.
1468
+ #
1469
+ # - `CONDITIONAL_BLOCK`: AUTHORIZATION event stream.
1470
+ # - `VELOCITY_LIMIT`: AUTHORIZATION event stream.
1471
+ # - `MERCHANT_LOCK`: AUTHORIZATION event stream.
1472
+ # - `CONDITIONAL_3DS_ACTION`: THREE_DS_AUTHENTICATION event stream.
590
1473
  module Type
591
1474
  extend Lithic::Internal::Type::Enum
592
1475
 
@@ -611,6 +1494,11 @@ module Lithic
611
1494
  :MERCHANT_LOCK,
612
1495
  Lithic::Models::AuthRules::V2CreateResponse::Type::TaggedSymbol
613
1496
  )
1497
+ CONDITIONAL_3DS_ACTION =
1498
+ T.let(
1499
+ :CONDITIONAL_3DS_ACTION,
1500
+ Lithic::Models::AuthRules::V2CreateResponse::Type::TaggedSymbol
1501
+ )
614
1502
 
615
1503
  sig do
616
1504
  override.returns(