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
@@ -37,7 +37,8 @@ module Lithic
37
37
  {
38
38
  attribute: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::attribute,
39
39
  operation: Lithic::Models::AuthRules::conditional_operation,
40
- value: Lithic::Models::AuthRules::conditional_value
40
+ value: Lithic::Models::AuthRules::conditional_value,
41
+ parameters: Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters
41
42
  }
42
43
 
43
44
  class Condition < Lithic::Internal::Type::BaseModel
@@ -47,16 +48,24 @@ module Lithic
47
48
 
48
49
  attr_accessor value: Lithic::Models::AuthRules::conditional_value
49
50
 
51
+ attr_reader parameters: Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters?
52
+
53
+ def parameters=: (
54
+ Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters
55
+ ) -> Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters
56
+
50
57
  def initialize: (
51
58
  attribute: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::attribute,
52
59
  operation: Lithic::Models::AuthRules::conditional_operation,
53
- value: Lithic::Models::AuthRules::conditional_value
60
+ value: Lithic::Models::AuthRules::conditional_value,
61
+ ?parameters: Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters
54
62
  ) -> void
55
63
 
56
64
  def to_hash: -> {
57
65
  attribute: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::attribute,
58
66
  operation: Lithic::Models::AuthRules::conditional_operation,
59
- value: Lithic::Models::AuthRules::conditional_value
67
+ value: Lithic::Models::AuthRules::conditional_value,
68
+ parameters: Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters
60
69
  }
61
70
 
62
71
  type attribute =
@@ -73,6 +82,9 @@ module Lithic
73
82
  | :CARD_TRANSACTION_COUNT_15M
74
83
  | :CARD_TRANSACTION_COUNT_1H
75
84
  | :CARD_TRANSACTION_COUNT_24H
85
+ | :CARD_DECLINE_COUNT_15M
86
+ | :CARD_DECLINE_COUNT_1H
87
+ | :CARD_DECLINE_COUNT_24H
76
88
  | :CARD_STATE
77
89
  | :PIN_ENTERED
78
90
  | :PIN_STATUS
@@ -83,6 +95,16 @@ module Lithic
83
95
  | :SERVICE_LOCATION_POSTAL_CODE
84
96
  | :CARD_AGE
85
97
  | :ACCOUNT_AGE
98
+ | :AMOUNT_Z_SCORE
99
+ | :AVG_TRANSACTION_AMOUNT
100
+ | :STDEV_TRANSACTION_AMOUNT
101
+ | :IS_NEW_COUNTRY
102
+ | :IS_NEW_MCC
103
+ | :IS_FIRST_TRANSACTION
104
+ | :CONSECUTIVE_DECLINES
105
+ | :TIME_SINCE_LAST_TRANSACTION
106
+ | :DISTINCT_COUNTRY_COUNT
107
+ | :THREE_DS_SUCCESS_RATE
86
108
 
87
109
  module Attribute
88
110
  extend Lithic::Internal::Type::Enum
@@ -100,6 +122,9 @@ module Lithic
100
122
  CARD_TRANSACTION_COUNT_15_M: :CARD_TRANSACTION_COUNT_15M
101
123
  CARD_TRANSACTION_COUNT_1_H: :CARD_TRANSACTION_COUNT_1H
102
124
  CARD_TRANSACTION_COUNT_24_H: :CARD_TRANSACTION_COUNT_24H
125
+ CARD_DECLINE_COUNT_15_M: :CARD_DECLINE_COUNT_15M
126
+ CARD_DECLINE_COUNT_1_H: :CARD_DECLINE_COUNT_1H
127
+ CARD_DECLINE_COUNT_24_H: :CARD_DECLINE_COUNT_24H
103
128
  CARD_STATE: :CARD_STATE
104
129
  PIN_ENTERED: :PIN_ENTERED
105
130
  PIN_STATUS: :PIN_STATUS
@@ -110,9 +135,74 @@ module Lithic
110
135
  SERVICE_LOCATION_POSTAL_CODE: :SERVICE_LOCATION_POSTAL_CODE
111
136
  CARD_AGE: :CARD_AGE
112
137
  ACCOUNT_AGE: :ACCOUNT_AGE
138
+ AMOUNT_Z_SCORE: :AMOUNT_Z_SCORE
139
+ AVG_TRANSACTION_AMOUNT: :AVG_TRANSACTION_AMOUNT
140
+ STDEV_TRANSACTION_AMOUNT: :STDEV_TRANSACTION_AMOUNT
141
+ IS_NEW_COUNTRY: :IS_NEW_COUNTRY
142
+ IS_NEW_MCC: :IS_NEW_MCC
143
+ IS_FIRST_TRANSACTION: :IS_FIRST_TRANSACTION
144
+ CONSECUTIVE_DECLINES: :CONSECUTIVE_DECLINES
145
+ TIME_SINCE_LAST_TRANSACTION: :TIME_SINCE_LAST_TRANSACTION
146
+ DISTINCT_COUNTRY_COUNT: :DISTINCT_COUNTRY_COUNT
147
+ THREE_DS_SUCCESS_RATE: :THREE_DS_SUCCESS_RATE
113
148
 
114
149
  def self?.values: -> ::Array[Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::attribute]
115
150
  end
151
+
152
+ type parameters =
153
+ {
154
+ interval: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::interval,
155
+ scope: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::scope
156
+ }
157
+
158
+ class Parameters < Lithic::Internal::Type::BaseModel
159
+ attr_reader interval: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::interval?
160
+
161
+ def interval=: (
162
+ Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::interval
163
+ ) -> Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::interval
164
+
165
+ attr_reader scope: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::scope?
166
+
167
+ def scope=: (
168
+ Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::scope
169
+ ) -> Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::scope
170
+
171
+ def initialize: (
172
+ ?interval: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::interval,
173
+ ?scope: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::scope
174
+ ) -> void
175
+
176
+ def to_hash: -> {
177
+ interval: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::interval,
178
+ scope: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::scope
179
+ }
180
+
181
+ type interval = :LIFETIME | :"7D" | :"30D" | :"90D"
182
+
183
+ module Interval
184
+ extend Lithic::Internal::Type::Enum
185
+
186
+ LIFETIME: :LIFETIME
187
+ INTERVAL_7_D: :"7D"
188
+ INTERVAL_30_D: :"30D"
189
+ INTERVAL_90_D: :"90D"
190
+
191
+ def self?.values: -> ::Array[Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::interval]
192
+ end
193
+
194
+ type scope = :CARD | :ACCOUNT | :BUSINESS_ACCOUNT
195
+
196
+ module Scope
197
+ extend Lithic::Internal::Type::Enum
198
+
199
+ CARD: :CARD
200
+ ACCOUNT: :ACCOUNT
201
+ BUSINESS_ACCOUNT: :BUSINESS_ACCOUNT
202
+
203
+ def self?.values: -> ::Array[Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::scope]
204
+ end
205
+ end
116
206
  end
117
207
  end
118
208
  end
@@ -4,99 +4,63 @@ module Lithic
4
4
  type report_stats =
5
5
  {
6
6
  action_counts: ::Hash[Symbol, Integer],
7
- approved: Integer,
8
- challenged: Integer,
9
- declined: Integer,
10
- examples: ::Array[Lithic::AuthRules::ReportStats::Example]
7
+ examples: ::Array[Lithic::AuthRules::ReportStats::Example],
8
+ state: Lithic::Models::AuthRules::ReportStats::state,
9
+ version: Integer
11
10
  }
12
11
 
13
12
  class ReportStats < Lithic::Internal::Type::BaseModel
14
- attr_reader action_counts: ::Hash[Symbol, Integer]?
13
+ attr_accessor action_counts: ::Hash[Symbol, Integer]
15
14
 
16
- def action_counts=: (::Hash[Symbol, Integer]) -> ::Hash[Symbol, Integer]
15
+ attr_accessor examples: ::Array[Lithic::AuthRules::ReportStats::Example]
17
16
 
18
- attr_reader approved: Integer?
17
+ attr_accessor state: Lithic::Models::AuthRules::ReportStats::state
19
18
 
20
- def approved=: (Integer) -> Integer
21
-
22
- attr_reader challenged: Integer?
23
-
24
- def challenged=: (Integer) -> Integer
25
-
26
- attr_reader declined: Integer?
27
-
28
- def declined=: (Integer) -> Integer
29
-
30
- attr_reader examples: ::Array[Lithic::AuthRules::ReportStats::Example]?
31
-
32
- def examples=: (
33
- ::Array[Lithic::AuthRules::ReportStats::Example]
34
- ) -> ::Array[Lithic::AuthRules::ReportStats::Example]
19
+ attr_accessor version: Integer
35
20
 
36
21
  def initialize: (
37
- ?action_counts: ::Hash[Symbol, Integer],
38
- ?approved: Integer,
39
- ?challenged: Integer,
40
- ?declined: Integer,
41
- ?examples: ::Array[Lithic::AuthRules::ReportStats::Example]
22
+ action_counts: ::Hash[Symbol, Integer],
23
+ examples: ::Array[Lithic::AuthRules::ReportStats::Example],
24
+ state: Lithic::Models::AuthRules::ReportStats::state,
25
+ version: Integer
42
26
  ) -> void
43
27
 
44
28
  def to_hash: -> {
45
29
  action_counts: ::Hash[Symbol, Integer],
46
- approved: Integer,
47
- challenged: Integer,
48
- declined: Integer,
49
- examples: ::Array[Lithic::AuthRules::ReportStats::Example]
30
+ examples: ::Array[Lithic::AuthRules::ReportStats::Example],
31
+ state: Lithic::Models::AuthRules::ReportStats::state,
32
+ version: Integer
50
33
  }
51
34
 
52
35
  type example =
53
36
  {
54
37
  actions: ::Array[Lithic::Models::AuthRules::ReportStats::Example::action],
55
- approved: bool,
56
- decision: Lithic::Models::AuthRules::ReportStats::Example::decision,
57
38
  event_token: String,
58
- timestamp: Time
39
+ timestamp: Time,
40
+ transaction_token: String?
59
41
  }
60
42
 
61
43
  class Example < Lithic::Internal::Type::BaseModel
62
- attr_reader actions: ::Array[Lithic::Models::AuthRules::ReportStats::Example::action]?
63
-
64
- def actions=: (
65
- ::Array[Lithic::Models::AuthRules::ReportStats::Example::action]
66
- ) -> ::Array[Lithic::Models::AuthRules::ReportStats::Example::action]
67
-
68
- attr_reader approved: bool?
44
+ attr_accessor actions: ::Array[Lithic::Models::AuthRules::ReportStats::Example::action]
69
45
 
70
- def approved=: (bool) -> bool
46
+ attr_accessor event_token: String
71
47
 
72
- attr_reader decision: Lithic::Models::AuthRules::ReportStats::Example::decision?
48
+ attr_accessor timestamp: Time
73
49
 
74
- def decision=: (
75
- Lithic::Models::AuthRules::ReportStats::Example::decision
76
- ) -> Lithic::Models::AuthRules::ReportStats::Example::decision
77
-
78
- attr_reader event_token: String?
79
-
80
- def event_token=: (String) -> String
81
-
82
- attr_reader timestamp: Time?
83
-
84
- def timestamp=: (Time) -> Time
50
+ attr_accessor transaction_token: String?
85
51
 
86
52
  def initialize: (
87
- ?actions: ::Array[Lithic::Models::AuthRules::ReportStats::Example::action],
88
- ?approved: bool,
89
- ?decision: Lithic::Models::AuthRules::ReportStats::Example::decision,
90
- ?event_token: String,
91
- ?timestamp: Time
53
+ actions: ::Array[Lithic::Models::AuthRules::ReportStats::Example::action],
54
+ event_token: String,
55
+ timestamp: Time,
56
+ ?transaction_token: String?
92
57
  ) -> void
93
58
 
94
59
  def to_hash: -> {
95
60
  actions: ::Array[Lithic::Models::AuthRules::ReportStats::Example::action],
96
- approved: bool,
97
- decision: Lithic::Models::AuthRules::ReportStats::Example::decision,
98
61
  event_token: String,
99
- timestamp: Time
62
+ timestamp: Time,
63
+ transaction_token: String?
100
64
  }
101
65
 
102
66
  type action =
@@ -677,18 +641,18 @@ module Lithic
677
641
 
678
642
  def self?.variants: -> ::Array[Lithic::Models::AuthRules::ReportStats::Example::action]
679
643
  end
644
+ end
680
645
 
681
- type decision = :APPROVED | :DECLINED | :CHALLENGED
646
+ type state = :ACTIVE | :SHADOW | :INACTIVE
682
647
 
683
- module Decision
684
- extend Lithic::Internal::Type::Enum
648
+ module State
649
+ extend Lithic::Internal::Type::Enum
685
650
 
686
- APPROVED: :APPROVED
687
- DECLINED: :DECLINED
688
- CHALLENGED: :CHALLENGED
651
+ ACTIVE: :ACTIVE
652
+ SHADOW: :SHADOW
653
+ INACTIVE: :INACTIVE
689
654
 
690
- def self?.values: -> ::Array[Lithic::Models::AuthRules::ReportStats::Example::decision]
691
- end
655
+ def self?.values: -> ::Array[Lithic::Models::AuthRules::ReportStats::state]
692
656
  end
693
657
  end
694
658
  end
@@ -10,6 +10,7 @@ module Lithic
10
10
  | Lithic::AuthRules::RuleFeature::AccountHolderFeature
11
11
  | Lithic::AuthRules::RuleFeature::IPMetadataFeature
12
12
  | Lithic::AuthRules::RuleFeature::SpendVelocityFeature
13
+ | Lithic::AuthRules::RuleFeature::TransactionHistorySignalsFeature
13
14
 
14
15
  module RuleFeature
15
16
  extend Lithic::Internal::Type::Union
@@ -166,6 +167,47 @@ module Lithic
166
167
  end
167
168
  end
168
169
 
170
+ type transaction_history_signals_feature =
171
+ {
172
+ scope: Lithic::Models::AuthRules::RuleFeature::TransactionHistorySignalsFeature::scope,
173
+ type: :TRANSACTION_HISTORY_SIGNALS,
174
+ name: String
175
+ }
176
+
177
+ class TransactionHistorySignalsFeature < Lithic::Internal::Type::BaseModel
178
+ attr_accessor scope: Lithic::Models::AuthRules::RuleFeature::TransactionHistorySignalsFeature::scope
179
+
180
+ attr_accessor type: :TRANSACTION_HISTORY_SIGNALS
181
+
182
+ attr_reader name: String?
183
+
184
+ def name=: (String) -> String
185
+
186
+ def initialize: (
187
+ scope: Lithic::Models::AuthRules::RuleFeature::TransactionHistorySignalsFeature::scope,
188
+ ?name: String,
189
+ ?type: :TRANSACTION_HISTORY_SIGNALS
190
+ ) -> void
191
+
192
+ def to_hash: -> {
193
+ scope: Lithic::Models::AuthRules::RuleFeature::TransactionHistorySignalsFeature::scope,
194
+ type: :TRANSACTION_HISTORY_SIGNALS,
195
+ name: String
196
+ }
197
+
198
+ type scope = :CARD | :ACCOUNT | :BUSINESS_ACCOUNT
199
+
200
+ module Scope
201
+ extend Lithic::Internal::Type::Enum
202
+
203
+ CARD: :CARD
204
+ ACCOUNT: :ACCOUNT
205
+ BUSINESS_ACCOUNT: :BUSINESS_ACCOUNT
206
+
207
+ def self?.values: -> ::Array[Lithic::Models::AuthRules::RuleFeature::TransactionHistorySignalsFeature::scope]
208
+ end
209
+ end
210
+
169
211
  def self?.variants: -> ::Array[Lithic::Models::AuthRules::rule_feature]
170
212
  end
171
213
  end
@@ -19,7 +19,8 @@ module Lithic
19
19
  event_stream: :AUTHORIZATION,
20
20
  event_token: String,
21
21
  mode: Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::mode,
22
- rule_version: Integer
22
+ rule_version: Integer,
23
+ transaction_token: String?
23
24
  }
24
25
 
25
26
  class AuthorizationResult < Lithic::Internal::Type::BaseModel
@@ -39,6 +40,8 @@ module Lithic
39
40
 
40
41
  attr_accessor rule_version: Integer
41
42
 
43
+ attr_accessor transaction_token: String?
44
+
42
45
  def initialize: (
43
46
  token: String,
44
47
  actions: ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::action],
@@ -47,6 +50,7 @@ module Lithic
47
50
  event_token: String,
48
51
  mode: Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::mode,
49
52
  rule_version: Integer,
53
+ transaction_token: String?,
50
54
  ?event_stream: :AUTHORIZATION
51
55
  ) -> void
52
56
 
@@ -58,7 +62,8 @@ module Lithic
58
62
  event_stream: :AUTHORIZATION,
59
63
  event_token: String,
60
64
  mode: Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::mode,
61
- rule_version: Integer
65
+ rule_version: Integer,
66
+ transaction_token: String?
62
67
  }
63
68
 
64
69
  type action =
@@ -288,7 +293,8 @@ module Lithic
288
293
  event_stream: :THREE_DS_AUTHENTICATION,
289
294
  event_token: String,
290
295
  mode: Lithic::Models::AuthRules::V2ListResultsResponse::Authentication3DSResult::mode,
291
- rule_version: Integer
296
+ rule_version: Integer,
297
+ transaction_token: String?
292
298
  }
293
299
 
294
300
  class Authentication3DSResult < Lithic::Internal::Type::BaseModel
@@ -308,6 +314,8 @@ module Lithic
308
314
 
309
315
  attr_accessor rule_version: Integer
310
316
 
317
+ attr_accessor transaction_token: String?
318
+
311
319
  def initialize: (
312
320
  token: String,
313
321
  actions: ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::Authentication3DSResult::Action],
@@ -316,6 +324,7 @@ module Lithic
316
324
  event_token: String,
317
325
  mode: Lithic::Models::AuthRules::V2ListResultsResponse::Authentication3DSResult::mode,
318
326
  rule_version: Integer,
327
+ transaction_token: String?,
319
328
  ?event_stream: :THREE_DS_AUTHENTICATION
320
329
  ) -> void
321
330
 
@@ -327,7 +336,8 @@ module Lithic
327
336
  event_stream: :THREE_DS_AUTHENTICATION,
328
337
  event_token: String,
329
338
  mode: Lithic::Models::AuthRules::V2ListResultsResponse::Authentication3DSResult::mode,
330
- rule_version: Integer
339
+ rule_version: Integer,
340
+ transaction_token: String?
331
341
  }
332
342
 
333
343
  type action =
@@ -386,7 +396,8 @@ module Lithic
386
396
  event_stream: :TOKENIZATION,
387
397
  event_token: String,
388
398
  mode: Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::mode,
389
- rule_version: Integer
399
+ rule_version: Integer,
400
+ transaction_token: String?
390
401
  }
391
402
 
392
403
  class TokenizationResult < Lithic::Internal::Type::BaseModel
@@ -406,6 +417,8 @@ module Lithic
406
417
 
407
418
  attr_accessor rule_version: Integer
408
419
 
420
+ attr_accessor transaction_token: String?
421
+
409
422
  def initialize: (
410
423
  token: String,
411
424
  actions: ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::action],
@@ -414,6 +427,7 @@ module Lithic
414
427
  event_token: String,
415
428
  mode: Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::mode,
416
429
  rule_version: Integer,
430
+ transaction_token: String?,
417
431
  ?event_stream: :TOKENIZATION
418
432
  ) -> void
419
433
 
@@ -425,7 +439,8 @@ module Lithic
425
439
  event_stream: :TOKENIZATION,
426
440
  event_token: String,
427
441
  mode: Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::mode,
428
- rule_version: Integer
442
+ rule_version: Integer,
443
+ transaction_token: String?
429
444
  }
430
445
 
431
446
  type action =
@@ -619,7 +634,8 @@ module Lithic
619
634
  event_stream: Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::event_stream,
620
635
  event_token: String,
621
636
  mode: Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::mode,
622
- rule_version: Integer
637
+ rule_version: Integer,
638
+ transaction_token: String?
623
639
  }
624
640
 
625
641
  class ACHResult < Lithic::Internal::Type::BaseModel
@@ -639,6 +655,8 @@ module Lithic
639
655
 
640
656
  attr_accessor rule_version: Integer
641
657
 
658
+ attr_accessor transaction_token: String?
659
+
642
660
  def initialize: (
643
661
  token: String,
644
662
  actions: ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::action],
@@ -647,7 +665,8 @@ module Lithic
647
665
  event_stream: Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::event_stream,
648
666
  event_token: String,
649
667
  mode: Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::mode,
650
- rule_version: Integer
668
+ rule_version: Integer,
669
+ transaction_token: String?
651
670
  ) -> void
652
671
 
653
672
  def to_hash: -> {
@@ -658,7 +677,8 @@ module Lithic
658
677
  event_stream: Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::event_stream,
659
678
  event_token: String,
660
679
  mode: Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::mode,
661
- rule_version: Integer
680
+ rule_version: Integer,
681
+ transaction_token: String?
662
682
  }
663
683
 
664
684
  type action =