lithic 0.10.0 → 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (104) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +49 -0
  3. data/README.md +1 -1
  4. data/lib/lithic/internal/util.rb +22 -7
  5. data/lib/lithic/models/auth_rules/backtest_stats.rb +9 -1
  6. data/lib/lithic/models/auth_rules/conditional_authorization_action_parameters.rb +158 -1
  7. data/lib/lithic/models/auth_rules/report_stats.rb +46 -81
  8. data/lib/lithic/models/auth_rules/rule_feature.rb +47 -1
  9. data/lib/lithic/models/auth_rules/typescript_code_parameters.rb +2 -2
  10. data/lib/lithic/models/auth_rules/v2_list_results_response.rb +36 -4
  11. data/lib/lithic/models/auth_rules/v2_retrieve_report_response.rb +4 -531
  12. data/lib/lithic/models/card_authorization_approval_request_webhook_event.rb +17 -26
  13. data/lib/lithic/models/card_authorization_challenge_response_webhook_event.rb +103 -0
  14. data/lib/lithic/models/card_bulk_order.rb +8 -3
  15. data/lib/lithic/models/card_bulk_order_create_params.rb +8 -3
  16. data/lib/lithic/models/card_convert_physical_params.rb +5 -3
  17. data/lib/lithic/models/card_create_params.rb +5 -3
  18. data/lib/lithic/models/card_reissue_params.rb +5 -3
  19. data/lib/lithic/models/card_renew_params.rb +5 -3
  20. data/lib/lithic/models/event.rb +5 -0
  21. data/lib/lithic/models/event_list_params.rb +3 -0
  22. data/lib/lithic/models/event_subscription.rb +3 -0
  23. data/lib/lithic/models/events/subscription_create_params.rb +3 -0
  24. data/lib/lithic/models/events/subscription_send_simulated_example_params.rb +1 -0
  25. data/lib/lithic/models/events/subscription_update_params.rb +3 -0
  26. data/lib/lithic/models/external_bank_account_set_verification_method_params.rb +55 -0
  27. data/lib/lithic/models/financial_account.rb +1 -0
  28. data/lib/lithic/models/financial_account_update_status_params.rb +1 -0
  29. data/lib/lithic/models/financial_accounts/statement.rb +11 -4
  30. data/lib/lithic/models/instance_financial_account_type.rb +1 -0
  31. data/lib/lithic/models/parsed_webhook_event.rb +3 -1
  32. data/lib/lithic/models/payment_create_params.rb +13 -1
  33. data/lib/lithic/models.rb +6 -0
  34. data/lib/lithic/resources/card_bulk_orders.rb +10 -11
  35. data/lib/lithic/resources/external_bank_accounts.rb +31 -0
  36. data/lib/lithic/resources/webhooks.rb +1 -1
  37. data/lib/lithic/version.rb +1 -1
  38. data/lib/lithic.rb +2 -0
  39. data/rbi/lithic/internal/util.rbi +8 -0
  40. data/rbi/lithic/models/auth_rules/backtest_stats.rbi +11 -3
  41. data/rbi/lithic/models/auth_rules/conditional_authorization_action_parameters.rbi +370 -3
  42. data/rbi/lithic/models/auth_rules/report_stats.rbi +73 -177
  43. data/rbi/lithic/models/auth_rules/rule_feature.rbi +104 -1
  44. data/rbi/lithic/models/auth_rules/typescript_code_parameters.rbi +6 -3
  45. data/rbi/lithic/models/auth_rules/v2_list_results_response.rbi +38 -6
  46. data/rbi/lithic/models/auth_rules/v2_retrieve_report_response.rbi +3 -1721
  47. data/rbi/lithic/models/card_authorization_approval_request_webhook_event.rbi +23 -78
  48. data/rbi/lithic/models/card_authorization_challenge_response_webhook_event.rbi +175 -0
  49. data/rbi/lithic/models/card_bulk_order.rbi +21 -3
  50. data/rbi/lithic/models/card_bulk_order_create_params.rbi +21 -3
  51. data/rbi/lithic/models/card_convert_physical_params.rbi +8 -5
  52. data/rbi/lithic/models/card_create_params.rbi +8 -8
  53. data/rbi/lithic/models/card_reissue_params.rbi +8 -8
  54. data/rbi/lithic/models/card_renew_params.rbi +8 -8
  55. data/rbi/lithic/models/event.rbi +11 -0
  56. data/rbi/lithic/models/event_list_params.rbi +7 -0
  57. data/rbi/lithic/models/event_subscription.rbi +7 -0
  58. data/rbi/lithic/models/events/subscription_create_params.rbi +7 -0
  59. data/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +5 -0
  60. data/rbi/lithic/models/events/subscription_update_params.rbi +7 -0
  61. data/rbi/lithic/models/external_bank_account_set_verification_method_params.rbi +111 -0
  62. data/rbi/lithic/models/financial_account.rbi +5 -0
  63. data/rbi/lithic/models/financial_account_update_status_params.rbi +5 -0
  64. data/rbi/lithic/models/financial_accounts/statement.rbi +15 -6
  65. data/rbi/lithic/models/instance_financial_account_type.rbi +5 -0
  66. data/rbi/lithic/models/parsed_webhook_event.rbi +1 -0
  67. data/rbi/lithic/models/payment_create_params.rbi +13 -3
  68. data/rbi/lithic/models.rbi +6 -0
  69. data/rbi/lithic/resources/card_bulk_orders.rbi +11 -11
  70. data/rbi/lithic/resources/cards.rbi +8 -4
  71. data/rbi/lithic/resources/external_bank_accounts.rbi +22 -0
  72. data/rbi/lithic/resources/webhooks.rbi +1 -0
  73. data/sig/lithic/internal/util.rbs +4 -0
  74. data/sig/lithic/models/auth_rules/backtest_stats.rbs +8 -3
  75. data/sig/lithic/models/auth_rules/conditional_authorization_action_parameters.rbs +93 -3
  76. data/sig/lithic/models/auth_rules/report_stats.rbs +34 -70
  77. data/sig/lithic/models/auth_rules/rule_feature.rbs +42 -0
  78. data/sig/lithic/models/auth_rules/v2_list_results_response.rbs +29 -9
  79. data/sig/lithic/models/auth_rules/v2_retrieve_report_response.rbs +4 -667
  80. data/sig/lithic/models/card_authorization_approval_request_webhook_event.rbs +14 -41
  81. data/sig/lithic/models/card_authorization_challenge_response_webhook_event.rbs +76 -0
  82. data/sig/lithic/models/card_bulk_order.rbs +5 -1
  83. data/sig/lithic/models/card_bulk_order_create_params.rbs +5 -1
  84. data/sig/lithic/models/card_convert_physical_params.rbs +2 -2
  85. data/sig/lithic/models/card_create_params.rbs +2 -2
  86. data/sig/lithic/models/card_reissue_params.rbs +2 -2
  87. data/sig/lithic/models/card_renew_params.rbs +2 -2
  88. data/sig/lithic/models/event.rbs +2 -0
  89. data/sig/lithic/models/event_list_params.rbs +2 -0
  90. data/sig/lithic/models/event_subscription.rbs +2 -0
  91. data/sig/lithic/models/events/subscription_create_params.rbs +2 -0
  92. data/sig/lithic/models/events/subscription_send_simulated_example_params.rbs +2 -0
  93. data/sig/lithic/models/events/subscription_update_params.rbs +2 -0
  94. data/sig/lithic/models/external_bank_account_set_verification_method_params.rbs +51 -0
  95. data/sig/lithic/models/financial_account.rbs +2 -0
  96. data/sig/lithic/models/financial_account_update_status_params.rbs +2 -0
  97. data/sig/lithic/models/financial_accounts/statement.rbs +16 -7
  98. data/sig/lithic/models/instance_financial_account_type.rbs +2 -0
  99. data/sig/lithic/models/parsed_webhook_event.rbs +1 -0
  100. data/sig/lithic/models/payment_create_params.rbs +8 -3
  101. data/sig/lithic/models.rbs +4 -0
  102. data/sig/lithic/resources/external_bank_accounts.rbs +7 -0
  103. data/sig/lithic/resources/webhooks.rbs +1 -0
  104. metadata +8 -2
@@ -10,86 +10,44 @@ module Lithic
10
10
  end
11
11
 
12
12
  # A mapping of action types to the number of times that action was returned by
13
- # this rule during the relevant period. Actions are the possible outcomes of a
13
+ # this version during the relevant period. Actions are the possible outcomes of a
14
14
  # rule evaluation, such as DECLINE, CHALLENGE, REQUIRE_TFA, etc. In case rule
15
15
  # didn't trigger any action, it's counted under NO_ACTION key.
16
- sig { returns(T.nilable(T::Hash[Symbol, Integer])) }
17
- attr_reader :action_counts
16
+ sig { returns(T::Hash[Symbol, Integer]) }
17
+ attr_accessor :action_counts
18
18
 
19
- sig { params(action_counts: T::Hash[Symbol, Integer]).void }
20
- attr_writer :action_counts
19
+ # Example events and their outcomes for this version.
20
+ sig { returns(T::Array[Lithic::AuthRules::ReportStats::Example]) }
21
+ attr_accessor :examples
21
22
 
22
- # The total number of historical transactions approved by this rule during the
23
- # relevant period, or the number of transactions that would have been approved if
24
- # the rule was evaluated in shadow mode.
25
- sig { returns(T.nilable(Integer)) }
26
- attr_reader :approved
23
+ # The evaluation mode of this version during the reported period.
24
+ sig { returns(Lithic::AuthRules::ReportStats::State::TaggedSymbol) }
25
+ attr_accessor :state
27
26
 
28
- sig { params(approved: Integer).void }
29
- attr_writer :approved
30
-
31
- # The total number of historical transactions challenged by this rule during the
32
- # relevant period, or the number of transactions that would have been challenged
33
- # if the rule was evaluated in shadow mode. Currently applicable only for 3DS Auth
34
- # Rules.
35
- sig { returns(T.nilable(Integer)) }
36
- attr_reader :challenged
37
-
38
- sig { params(challenged: Integer).void }
39
- attr_writer :challenged
40
-
41
- # The total number of historical transactions declined by this rule during the
42
- # relevant period, or the number of transactions that would have been declined if
43
- # the rule was evaluated in shadow mode.
44
- sig { returns(T.nilable(Integer)) }
45
- attr_reader :declined
46
-
47
- sig { params(declined: Integer).void }
48
- attr_writer :declined
49
-
50
- # Example events and their outcomes.
51
- sig do
52
- returns(T.nilable(T::Array[Lithic::AuthRules::ReportStats::Example]))
53
- end
54
- attr_reader :examples
55
-
56
- sig do
57
- params(
58
- examples: T::Array[Lithic::AuthRules::ReportStats::Example::OrHash]
59
- ).void
60
- end
61
- attr_writer :examples
27
+ # The rule version number.
28
+ sig { returns(Integer) }
29
+ attr_accessor :version
62
30
 
63
31
  sig do
64
32
  params(
65
33
  action_counts: T::Hash[Symbol, Integer],
66
- approved: Integer,
67
- challenged: Integer,
68
- declined: Integer,
69
- examples: T::Array[Lithic::AuthRules::ReportStats::Example::OrHash]
34
+ examples: T::Array[Lithic::AuthRules::ReportStats::Example::OrHash],
35
+ state: Lithic::AuthRules::ReportStats::State::OrSymbol,
36
+ version: Integer
70
37
  ).returns(T.attached_class)
71
38
  end
72
39
  def self.new(
73
40
  # A mapping of action types to the number of times that action was returned by
74
- # this rule during the relevant period. Actions are the possible outcomes of a
41
+ # this version during the relevant period. Actions are the possible outcomes of a
75
42
  # rule evaluation, such as DECLINE, CHALLENGE, REQUIRE_TFA, etc. In case rule
76
43
  # didn't trigger any action, it's counted under NO_ACTION key.
77
- action_counts: nil,
78
- # The total number of historical transactions approved by this rule during the
79
- # relevant period, or the number of transactions that would have been approved if
80
- # the rule was evaluated in shadow mode.
81
- approved: nil,
82
- # The total number of historical transactions challenged by this rule during the
83
- # relevant period, or the number of transactions that would have been challenged
84
- # if the rule was evaluated in shadow mode. Currently applicable only for 3DS Auth
85
- # Rules.
86
- challenged: nil,
87
- # The total number of historical transactions declined by this rule during the
88
- # relevant period, or the number of transactions that would have been declined if
89
- # the rule was evaluated in shadow mode.
90
- declined: nil,
91
- # Example events and their outcomes.
92
- examples: nil
44
+ action_counts:,
45
+ # Example events and their outcomes for this version.
46
+ examples:,
47
+ # The evaluation mode of this version during the reported period.
48
+ state:,
49
+ # The rule version number.
50
+ version:
93
51
  )
94
52
  end
95
53
 
@@ -97,10 +55,9 @@ module Lithic
97
55
  override.returns(
98
56
  {
99
57
  action_counts: T::Hash[Symbol, Integer],
100
- approved: Integer,
101
- challenged: Integer,
102
- declined: Integer,
103
- examples: T::Array[Lithic::AuthRules::ReportStats::Example]
58
+ examples: T::Array[Lithic::AuthRules::ReportStats::Example],
59
+ state: Lithic::AuthRules::ReportStats::State::TaggedSymbol,
60
+ version: Integer
104
61
  }
105
62
  )
106
63
  end
@@ -116,74 +73,27 @@ module Lithic
116
73
  )
117
74
  end
118
75
 
119
- # The actions taken by the rule for this event.
76
+ # The actions taken by this version for this event.
120
77
  sig do
121
78
  returns(
122
- T.nilable(
123
- T::Array[
124
- Lithic::AuthRules::ReportStats::Example::Action::Variants
125
- ]
126
- )
79
+ T::Array[
80
+ Lithic::AuthRules::ReportStats::Example::Action::Variants
81
+ ]
127
82
  )
128
83
  end
129
- attr_reader :actions
130
-
131
- sig do
132
- params(
133
- actions:
134
- T::Array[
135
- T.any(
136
- Lithic::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization::OrHash,
137
- Lithic::AuthRules::ReportStats::Example::Action::ChallengeActionAuthorization::OrHash,
138
- Lithic::AuthRules::ReportStats::Example::Action::ResultAuthentication3DSAction::OrHash,
139
- Lithic::AuthRules::ReportStats::Example::Action::DeclineActionTokenization::OrHash,
140
- Lithic::AuthRules::ReportStats::Example::Action::RequireTfaAction::OrHash,
141
- Lithic::AuthRules::ReportStats::Example::Action::ApproveActionACH::OrHash,
142
- Lithic::AuthRules::ReportStats::Example::Action::ReturnAction::OrHash
143
- )
144
- ]
145
- ).void
146
- end
147
- attr_writer :actions
148
-
149
- # Whether the rule would have approved the request.
150
- sig { returns(T.nilable(T::Boolean)) }
151
- attr_reader :approved
152
-
153
- sig { params(approved: T::Boolean).void }
154
- attr_writer :approved
155
-
156
- # The decision made by the rule for this event.
157
- sig do
158
- returns(
159
- T.nilable(
160
- Lithic::AuthRules::ReportStats::Example::Decision::TaggedSymbol
161
- )
162
- )
163
- end
164
- attr_reader :decision
165
-
166
- sig do
167
- params(
168
- decision:
169
- Lithic::AuthRules::ReportStats::Example::Decision::OrSymbol
170
- ).void
171
- end
172
- attr_writer :decision
84
+ attr_accessor :actions
173
85
 
174
86
  # The event token.
175
- sig { returns(T.nilable(String)) }
176
- attr_reader :event_token
177
-
178
- sig { params(event_token: String).void }
179
- attr_writer :event_token
87
+ sig { returns(String) }
88
+ attr_accessor :event_token
180
89
 
181
90
  # The timestamp of the event.
182
- sig { returns(T.nilable(Time)) }
183
- attr_reader :timestamp
91
+ sig { returns(Time) }
92
+ attr_accessor :timestamp
184
93
 
185
- sig { params(timestamp: Time).void }
186
- attr_writer :timestamp
94
+ # The token of the transaction associated with the event
95
+ sig { returns(T.nilable(String)) }
96
+ attr_accessor :transaction_token
187
97
 
188
98
  sig do
189
99
  params(
@@ -199,24 +109,20 @@ module Lithic
199
109
  Lithic::AuthRules::ReportStats::Example::Action::ReturnAction::OrHash
200
110
  )
201
111
  ],
202
- approved: T::Boolean,
203
- decision:
204
- Lithic::AuthRules::ReportStats::Example::Decision::OrSymbol,
205
112
  event_token: String,
206
- timestamp: Time
113
+ timestamp: Time,
114
+ transaction_token: T.nilable(String)
207
115
  ).returns(T.attached_class)
208
116
  end
209
117
  def self.new(
210
- # The actions taken by the rule for this event.
211
- actions: nil,
212
- # Whether the rule would have approved the request.
213
- approved: nil,
214
- # The decision made by the rule for this event.
215
- decision: nil,
118
+ # The actions taken by this version for this event.
119
+ actions:,
216
120
  # The event token.
217
- event_token: nil,
121
+ event_token:,
218
122
  # The timestamp of the event.
219
- timestamp: nil
123
+ timestamp:,
124
+ # The token of the transaction associated with the event
125
+ transaction_token: nil
220
126
  )
221
127
  end
222
128
 
@@ -227,11 +133,9 @@ module Lithic
227
133
  T::Array[
228
134
  Lithic::AuthRules::ReportStats::Example::Action::Variants
229
135
  ],
230
- approved: T::Boolean,
231
- decision:
232
- Lithic::AuthRules::ReportStats::Example::Decision::TaggedSymbol,
233
136
  event_token: String,
234
- timestamp: Time
137
+ timestamp: Time,
138
+ transaction_token: T.nilable(String)
235
139
  }
236
140
  )
237
141
  end
@@ -1710,42 +1614,34 @@ module Lithic
1710
1614
  def self.variants
1711
1615
  end
1712
1616
  end
1617
+ end
1713
1618
 
1714
- # The decision made by the rule for this event.
1715
- module Decision
1716
- extend Lithic::Internal::Type::Enum
1717
-
1718
- TaggedSymbol =
1719
- T.type_alias do
1720
- T.all(Symbol, Lithic::AuthRules::ReportStats::Example::Decision)
1721
- end
1722
- OrSymbol = T.type_alias { T.any(Symbol, String) }
1619
+ # The evaluation mode of this version during the reported period.
1620
+ module State
1621
+ extend Lithic::Internal::Type::Enum
1723
1622
 
1724
- APPROVED =
1725
- T.let(
1726
- :APPROVED,
1727
- Lithic::AuthRules::ReportStats::Example::Decision::TaggedSymbol
1728
- )
1729
- DECLINED =
1730
- T.let(
1731
- :DECLINED,
1732
- Lithic::AuthRules::ReportStats::Example::Decision::TaggedSymbol
1733
- )
1734
- CHALLENGED =
1735
- T.let(
1736
- :CHALLENGED,
1737
- Lithic::AuthRules::ReportStats::Example::Decision::TaggedSymbol
1738
- )
1739
-
1740
- sig do
1741
- override.returns(
1742
- T::Array[
1743
- Lithic::AuthRules::ReportStats::Example::Decision::TaggedSymbol
1744
- ]
1745
- )
1746
- end
1747
- def self.values
1623
+ TaggedSymbol =
1624
+ T.type_alias do
1625
+ T.all(Symbol, Lithic::AuthRules::ReportStats::State)
1748
1626
  end
1627
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
1628
+
1629
+ ACTIVE =
1630
+ T.let(:ACTIVE, Lithic::AuthRules::ReportStats::State::TaggedSymbol)
1631
+ SHADOW =
1632
+ T.let(:SHADOW, Lithic::AuthRules::ReportStats::State::TaggedSymbol)
1633
+ INACTIVE =
1634
+ T.let(
1635
+ :INACTIVE,
1636
+ Lithic::AuthRules::ReportStats::State::TaggedSymbol
1637
+ )
1638
+
1639
+ sig do
1640
+ override.returns(
1641
+ T::Array[Lithic::AuthRules::ReportStats::State::TaggedSymbol]
1642
+ )
1643
+ end
1644
+ def self.values
1749
1645
  end
1750
1646
  end
1751
1647
  end
@@ -24,6 +24,10 @@ module Lithic
24
24
  # - `SPEND_VELOCITY`: Spend velocity data for the card or account. Requires
25
25
  # `scope`, `period`, and optionally `filters` to configure the velocity
26
26
  # calculation. Available for AUTHORIZATION event stream rules.
27
+ # - `TRANSACTION_HISTORY_SIGNALS`: Behavioral feature state derived from the
28
+ # entity's transaction history. Requires `scope` to specify whether to load
29
+ # card, account, or business account history. Available for AUTHORIZATION event
30
+ # stream rules.
27
31
  module RuleFeature
28
32
  extend Lithic::Internal::Type::Union
29
33
 
@@ -37,7 +41,8 @@ module Lithic
37
41
  Lithic::AuthRules::RuleFeature::CardFeature,
38
42
  Lithic::AuthRules::RuleFeature::AccountHolderFeature,
39
43
  Lithic::AuthRules::RuleFeature::IPMetadataFeature,
40
- Lithic::AuthRules::RuleFeature::SpendVelocityFeature
44
+ Lithic::AuthRules::RuleFeature::SpendVelocityFeature,
45
+ Lithic::AuthRules::RuleFeature::TransactionHistorySignalsFeature
41
46
  )
42
47
  end
43
48
 
@@ -403,6 +408,104 @@ module Lithic
403
408
  end
404
409
  end
405
410
 
411
+ class TransactionHistorySignalsFeature < Lithic::Internal::Type::BaseModel
412
+ OrHash =
413
+ T.type_alias do
414
+ T.any(
415
+ Lithic::AuthRules::RuleFeature::TransactionHistorySignalsFeature,
416
+ Lithic::Internal::AnyHash
417
+ )
418
+ end
419
+
420
+ # The entity scope to load transaction history signals for.
421
+ sig do
422
+ returns(
423
+ Lithic::AuthRules::RuleFeature::TransactionHistorySignalsFeature::Scope::OrSymbol
424
+ )
425
+ end
426
+ attr_accessor :scope
427
+
428
+ sig { returns(Symbol) }
429
+ attr_accessor :type
430
+
431
+ # The variable name for this feature in the rule function signature
432
+ sig { returns(T.nilable(String)) }
433
+ attr_reader :name
434
+
435
+ sig { params(name: String).void }
436
+ attr_writer :name
437
+
438
+ sig do
439
+ params(
440
+ scope:
441
+ Lithic::AuthRules::RuleFeature::TransactionHistorySignalsFeature::Scope::OrSymbol,
442
+ name: String,
443
+ type: Symbol
444
+ ).returns(T.attached_class)
445
+ end
446
+ def self.new(
447
+ # The entity scope to load transaction history signals for.
448
+ scope:,
449
+ # The variable name for this feature in the rule function signature
450
+ name: nil,
451
+ type: :TRANSACTION_HISTORY_SIGNALS
452
+ )
453
+ end
454
+
455
+ sig do
456
+ override.returns(
457
+ {
458
+ scope:
459
+ Lithic::AuthRules::RuleFeature::TransactionHistorySignalsFeature::Scope::OrSymbol,
460
+ type: Symbol,
461
+ name: String
462
+ }
463
+ )
464
+ end
465
+ def to_hash
466
+ end
467
+
468
+ # The entity scope to load transaction history signals for.
469
+ module Scope
470
+ extend Lithic::Internal::Type::Enum
471
+
472
+ TaggedSymbol =
473
+ T.type_alias do
474
+ T.all(
475
+ Symbol,
476
+ Lithic::AuthRules::RuleFeature::TransactionHistorySignalsFeature::Scope
477
+ )
478
+ end
479
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
480
+
481
+ CARD =
482
+ T.let(
483
+ :CARD,
484
+ Lithic::AuthRules::RuleFeature::TransactionHistorySignalsFeature::Scope::TaggedSymbol
485
+ )
486
+ ACCOUNT =
487
+ T.let(
488
+ :ACCOUNT,
489
+ Lithic::AuthRules::RuleFeature::TransactionHistorySignalsFeature::Scope::TaggedSymbol
490
+ )
491
+ BUSINESS_ACCOUNT =
492
+ T.let(
493
+ :BUSINESS_ACCOUNT,
494
+ Lithic::AuthRules::RuleFeature::TransactionHistorySignalsFeature::Scope::TaggedSymbol
495
+ )
496
+
497
+ sig do
498
+ override.returns(
499
+ T::Array[
500
+ Lithic::AuthRules::RuleFeature::TransactionHistorySignalsFeature::Scope::TaggedSymbol
501
+ ]
502
+ )
503
+ end
504
+ def self.values
505
+ end
506
+ end
507
+ end
508
+
406
509
  sig do
407
510
  override.returns(T::Array[Lithic::AuthRules::RuleFeature::Variants])
408
511
  end
@@ -30,7 +30,8 @@ module Lithic
30
30
  Lithic::AuthRules::RuleFeature::CardFeature,
31
31
  Lithic::AuthRules::RuleFeature::AccountHolderFeature,
32
32
  Lithic::AuthRules::RuleFeature::IPMetadataFeature,
33
- Lithic::AuthRules::RuleFeature::SpendVelocityFeature
33
+ Lithic::AuthRules::RuleFeature::SpendVelocityFeature,
34
+ Lithic::AuthRules::RuleFeature::TransactionHistorySignalsFeature
34
35
  )
35
36
  ]
36
37
  )
@@ -51,7 +52,8 @@ module Lithic
51
52
  Lithic::AuthRules::RuleFeature::CardFeature::OrHash,
52
53
  Lithic::AuthRules::RuleFeature::AccountHolderFeature::OrHash,
53
54
  Lithic::AuthRules::RuleFeature::IPMetadataFeature::OrHash,
54
- Lithic::AuthRules::RuleFeature::SpendVelocityFeature::OrHash
55
+ Lithic::AuthRules::RuleFeature::SpendVelocityFeature::OrHash,
56
+ Lithic::AuthRules::RuleFeature::TransactionHistorySignalsFeature::OrHash
55
57
  )
56
58
  ]
57
59
  ).returns(T.attached_class)
@@ -80,7 +82,8 @@ module Lithic
80
82
  Lithic::AuthRules::RuleFeature::CardFeature,
81
83
  Lithic::AuthRules::RuleFeature::AccountHolderFeature,
82
84
  Lithic::AuthRules::RuleFeature::IPMetadataFeature,
83
- Lithic::AuthRules::RuleFeature::SpendVelocityFeature
85
+ Lithic::AuthRules::RuleFeature::SpendVelocityFeature,
86
+ Lithic::AuthRules::RuleFeature::TransactionHistorySignalsFeature
84
87
  )
85
88
  ]
86
89
  }
@@ -68,6 +68,10 @@ module Lithic
68
68
  sig { returns(Integer) }
69
69
  attr_accessor :rule_version
70
70
 
71
+ # The token of the transaction that triggered the rule evaluation
72
+ sig { returns(T.nilable(String)) }
73
+ attr_accessor :transaction_token
74
+
71
75
  sig do
72
76
  params(
73
77
  token: String,
@@ -84,6 +88,7 @@ module Lithic
84
88
  mode:
85
89
  Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Mode::OrSymbol,
86
90
  rule_version: Integer,
91
+ transaction_token: T.nilable(String),
87
92
  event_stream: Symbol
88
93
  ).returns(T.attached_class)
89
94
  end
@@ -102,6 +107,8 @@ module Lithic
102
107
  mode:,
103
108
  # Version of the rule that was evaluated
104
109
  rule_version:,
110
+ # The token of the transaction that triggered the rule evaluation
111
+ transaction_token:,
105
112
  # The event stream during which the rule was evaluated
106
113
  event_stream: :AUTHORIZATION
107
114
  )
@@ -121,7 +128,8 @@ module Lithic
121
128
  event_token: String,
122
129
  mode:
123
130
  Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Mode::TaggedSymbol,
124
- rule_version: Integer
131
+ rule_version: Integer,
132
+ transaction_token: T.nilable(String)
125
133
  }
126
134
  )
127
135
  end
@@ -719,6 +727,10 @@ module Lithic
719
727
  sig { returns(Integer) }
720
728
  attr_accessor :rule_version
721
729
 
730
+ # The token of the transaction that triggered the rule evaluation
731
+ sig { returns(T.nilable(String)) }
732
+ attr_accessor :transaction_token
733
+
722
734
  sig do
723
735
  params(
724
736
  token: String,
@@ -732,6 +744,7 @@ module Lithic
732
744
  mode:
733
745
  Lithic::Models::AuthRules::V2ListResultsResponse::Authentication3DSResult::Mode::OrSymbol,
734
746
  rule_version: Integer,
747
+ transaction_token: T.nilable(String),
735
748
  event_stream: Symbol
736
749
  ).returns(T.attached_class)
737
750
  end
@@ -750,6 +763,8 @@ module Lithic
750
763
  mode:,
751
764
  # Version of the rule that was evaluated
752
765
  rule_version:,
766
+ # The token of the transaction that triggered the rule evaluation
767
+ transaction_token:,
753
768
  # The event stream during which the rule was evaluated
754
769
  event_stream: :THREE_DS_AUTHENTICATION
755
770
  )
@@ -769,7 +784,8 @@ module Lithic
769
784
  event_token: String,
770
785
  mode:
771
786
  Lithic::Models::AuthRules::V2ListResultsResponse::Authentication3DSResult::Mode::TaggedSymbol,
772
- rule_version: Integer
787
+ rule_version: Integer,
788
+ transaction_token: T.nilable(String)
773
789
  }
774
790
  )
775
791
  end
@@ -947,6 +963,10 @@ module Lithic
947
963
  sig { returns(Integer) }
948
964
  attr_accessor :rule_version
949
965
 
966
+ # The token of the transaction that triggered the rule evaluation
967
+ sig { returns(T.nilable(String)) }
968
+ attr_accessor :transaction_token
969
+
950
970
  sig do
951
971
  params(
952
972
  token: String,
@@ -963,6 +983,7 @@ module Lithic
963
983
  mode:
964
984
  Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Mode::OrSymbol,
965
985
  rule_version: Integer,
986
+ transaction_token: T.nilable(String),
966
987
  event_stream: Symbol
967
988
  ).returns(T.attached_class)
968
989
  end
@@ -981,6 +1002,8 @@ module Lithic
981
1002
  mode:,
982
1003
  # Version of the rule that was evaluated
983
1004
  rule_version:,
1005
+ # The token of the transaction that triggered the rule evaluation
1006
+ transaction_token:,
984
1007
  # The event stream during which the rule was evaluated
985
1008
  event_stream: :TOKENIZATION
986
1009
  )
@@ -1000,7 +1023,8 @@ module Lithic
1000
1023
  event_token: String,
1001
1024
  mode:
1002
1025
  Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Mode::TaggedSymbol,
1003
- rule_version: Integer
1026
+ rule_version: Integer,
1027
+ transaction_token: T.nilable(String)
1004
1028
  }
1005
1029
  )
1006
1030
  end
@@ -1522,6 +1546,10 @@ module Lithic
1522
1546
  sig { returns(Integer) }
1523
1547
  attr_accessor :rule_version
1524
1548
 
1549
+ # The token of the transaction that triggered the rule evaluation
1550
+ sig { returns(T.nilable(String)) }
1551
+ attr_accessor :transaction_token
1552
+
1525
1553
  sig do
1526
1554
  params(
1527
1555
  token: String,
@@ -1539,7 +1567,8 @@ module Lithic
1539
1567
  event_token: String,
1540
1568
  mode:
1541
1569
  Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::Mode::OrSymbol,
1542
- rule_version: Integer
1570
+ rule_version: Integer,
1571
+ transaction_token: T.nilable(String)
1543
1572
  ).returns(T.attached_class)
1544
1573
  end
1545
1574
  def self.new(
@@ -1558,7 +1587,9 @@ module Lithic
1558
1587
  # The state of the Auth Rule
1559
1588
  mode:,
1560
1589
  # Version of the rule that was evaluated
1561
- rule_version:
1590
+ rule_version:,
1591
+ # The token of the transaction that triggered the rule evaluation
1592
+ transaction_token:
1562
1593
  )
1563
1594
  end
1564
1595
 
@@ -1577,7 +1608,8 @@ module Lithic
1577
1608
  event_token: String,
1578
1609
  mode:
1579
1610
  Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::Mode::TaggedSymbol,
1580
- rule_version: Integer
1611
+ rule_version: Integer,
1612
+ transaction_token: T.nilable(String)
1581
1613
  }
1582
1614
  )
1583
1615
  end