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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +49 -0
- data/README.md +1 -1
- data/lib/lithic/internal/util.rb +22 -7
- data/lib/lithic/models/auth_rules/backtest_stats.rb +9 -1
- data/lib/lithic/models/auth_rules/conditional_authorization_action_parameters.rb +158 -1
- data/lib/lithic/models/auth_rules/report_stats.rb +46 -81
- data/lib/lithic/models/auth_rules/rule_feature.rb +47 -1
- data/lib/lithic/models/auth_rules/typescript_code_parameters.rb +2 -2
- data/lib/lithic/models/auth_rules/v2_list_results_response.rb +36 -4
- data/lib/lithic/models/auth_rules/v2_retrieve_report_response.rb +4 -531
- data/lib/lithic/models/card_authorization_approval_request_webhook_event.rb +17 -26
- data/lib/lithic/models/card_authorization_challenge_response_webhook_event.rb +103 -0
- data/lib/lithic/models/card_bulk_order.rb +8 -3
- data/lib/lithic/models/card_bulk_order_create_params.rb +8 -3
- data/lib/lithic/models/card_convert_physical_params.rb +5 -3
- data/lib/lithic/models/card_create_params.rb +5 -3
- data/lib/lithic/models/card_reissue_params.rb +5 -3
- data/lib/lithic/models/card_renew_params.rb +5 -3
- data/lib/lithic/models/event.rb +5 -0
- data/lib/lithic/models/event_list_params.rb +3 -0
- data/lib/lithic/models/event_subscription.rb +3 -0
- data/lib/lithic/models/events/subscription_create_params.rb +3 -0
- data/lib/lithic/models/events/subscription_send_simulated_example_params.rb +1 -0
- data/lib/lithic/models/events/subscription_update_params.rb +3 -0
- data/lib/lithic/models/external_bank_account_set_verification_method_params.rb +55 -0
- data/lib/lithic/models/financial_account.rb +1 -0
- data/lib/lithic/models/financial_account_update_status_params.rb +1 -0
- data/lib/lithic/models/financial_accounts/statement.rb +11 -4
- data/lib/lithic/models/instance_financial_account_type.rb +1 -0
- data/lib/lithic/models/parsed_webhook_event.rb +3 -1
- data/lib/lithic/models/payment_create_params.rb +13 -1
- data/lib/lithic/models.rb +6 -0
- data/lib/lithic/resources/card_bulk_orders.rb +10 -11
- data/lib/lithic/resources/external_bank_accounts.rb +31 -0
- data/lib/lithic/resources/webhooks.rb +1 -1
- data/lib/lithic/version.rb +1 -1
- data/lib/lithic.rb +2 -0
- data/rbi/lithic/internal/util.rbi +8 -0
- data/rbi/lithic/models/auth_rules/backtest_stats.rbi +11 -3
- data/rbi/lithic/models/auth_rules/conditional_authorization_action_parameters.rbi +370 -3
- data/rbi/lithic/models/auth_rules/report_stats.rbi +73 -177
- data/rbi/lithic/models/auth_rules/rule_feature.rbi +104 -1
- data/rbi/lithic/models/auth_rules/typescript_code_parameters.rbi +6 -3
- data/rbi/lithic/models/auth_rules/v2_list_results_response.rbi +38 -6
- data/rbi/lithic/models/auth_rules/v2_retrieve_report_response.rbi +3 -1721
- data/rbi/lithic/models/card_authorization_approval_request_webhook_event.rbi +23 -78
- data/rbi/lithic/models/card_authorization_challenge_response_webhook_event.rbi +175 -0
- data/rbi/lithic/models/card_bulk_order.rbi +21 -3
- data/rbi/lithic/models/card_bulk_order_create_params.rbi +21 -3
- data/rbi/lithic/models/card_convert_physical_params.rbi +8 -5
- data/rbi/lithic/models/card_create_params.rbi +8 -8
- data/rbi/lithic/models/card_reissue_params.rbi +8 -8
- data/rbi/lithic/models/card_renew_params.rbi +8 -8
- data/rbi/lithic/models/event.rbi +11 -0
- data/rbi/lithic/models/event_list_params.rbi +7 -0
- data/rbi/lithic/models/event_subscription.rbi +7 -0
- data/rbi/lithic/models/events/subscription_create_params.rbi +7 -0
- data/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +5 -0
- data/rbi/lithic/models/events/subscription_update_params.rbi +7 -0
- data/rbi/lithic/models/external_bank_account_set_verification_method_params.rbi +111 -0
- data/rbi/lithic/models/financial_account.rbi +5 -0
- data/rbi/lithic/models/financial_account_update_status_params.rbi +5 -0
- data/rbi/lithic/models/financial_accounts/statement.rbi +15 -6
- data/rbi/lithic/models/instance_financial_account_type.rbi +5 -0
- data/rbi/lithic/models/parsed_webhook_event.rbi +1 -0
- data/rbi/lithic/models/payment_create_params.rbi +13 -3
- data/rbi/lithic/models.rbi +6 -0
- data/rbi/lithic/resources/card_bulk_orders.rbi +11 -11
- data/rbi/lithic/resources/cards.rbi +8 -4
- data/rbi/lithic/resources/external_bank_accounts.rbi +22 -0
- data/rbi/lithic/resources/webhooks.rbi +1 -0
- data/sig/lithic/internal/util.rbs +4 -0
- data/sig/lithic/models/auth_rules/backtest_stats.rbs +8 -3
- data/sig/lithic/models/auth_rules/conditional_authorization_action_parameters.rbs +93 -3
- data/sig/lithic/models/auth_rules/report_stats.rbs +34 -70
- data/sig/lithic/models/auth_rules/rule_feature.rbs +42 -0
- data/sig/lithic/models/auth_rules/v2_list_results_response.rbs +29 -9
- data/sig/lithic/models/auth_rules/v2_retrieve_report_response.rbs +4 -667
- data/sig/lithic/models/card_authorization_approval_request_webhook_event.rbs +14 -41
- data/sig/lithic/models/card_authorization_challenge_response_webhook_event.rbs +76 -0
- data/sig/lithic/models/card_bulk_order.rbs +5 -1
- data/sig/lithic/models/card_bulk_order_create_params.rbs +5 -1
- data/sig/lithic/models/card_convert_physical_params.rbs +2 -2
- data/sig/lithic/models/card_create_params.rbs +2 -2
- data/sig/lithic/models/card_reissue_params.rbs +2 -2
- data/sig/lithic/models/card_renew_params.rbs +2 -2
- data/sig/lithic/models/event.rbs +2 -0
- data/sig/lithic/models/event_list_params.rbs +2 -0
- data/sig/lithic/models/event_subscription.rbs +2 -0
- data/sig/lithic/models/events/subscription_create_params.rbs +2 -0
- data/sig/lithic/models/events/subscription_send_simulated_example_params.rbs +2 -0
- data/sig/lithic/models/events/subscription_update_params.rbs +2 -0
- data/sig/lithic/models/external_bank_account_set_verification_method_params.rbs +51 -0
- data/sig/lithic/models/financial_account.rbs +2 -0
- data/sig/lithic/models/financial_account_update_status_params.rbs +2 -0
- data/sig/lithic/models/financial_accounts/statement.rbs +16 -7
- data/sig/lithic/models/instance_financial_account_type.rbs +2 -0
- data/sig/lithic/models/parsed_webhook_event.rbs +1 -0
- data/sig/lithic/models/payment_create_params.rbs +8 -3
- data/sig/lithic/models.rbs +4 -0
- data/sig/lithic/resources/external_bank_accounts.rbs +7 -0
- data/sig/lithic/resources/webhooks.rbs +1 -0
- 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
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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
|
-
|
|
13
|
+
attr_accessor action_counts: ::Hash[Symbol, Integer]
|
|
15
14
|
|
|
16
|
-
|
|
15
|
+
attr_accessor examples: ::Array[Lithic::AuthRules::ReportStats::Example]
|
|
17
16
|
|
|
18
|
-
|
|
17
|
+
attr_accessor state: Lithic::Models::AuthRules::ReportStats::state
|
|
19
18
|
|
|
20
|
-
|
|
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
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
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
|
-
|
|
47
|
-
|
|
48
|
-
|
|
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
|
-
|
|
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
|
-
|
|
46
|
+
attr_accessor event_token: String
|
|
71
47
|
|
|
72
|
-
|
|
48
|
+
attr_accessor timestamp: Time
|
|
73
49
|
|
|
74
|
-
|
|
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
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
?
|
|
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
|
-
|
|
646
|
+
type state = :ACTIVE | :SHADOW | :INACTIVE
|
|
682
647
|
|
|
683
|
-
|
|
684
|
-
|
|
648
|
+
module State
|
|
649
|
+
extend Lithic::Internal::Type::Enum
|
|
685
650
|
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
651
|
+
ACTIVE: :ACTIVE
|
|
652
|
+
SHADOW: :SHADOW
|
|
653
|
+
INACTIVE: :INACTIVE
|
|
689
654
|
|
|
690
|
-
|
|
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 =
|