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