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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +26 -0
- data/README.md +1 -1
- data/lib/lithic/internal/type/enum.rb +6 -3
- data/lib/lithic/internal/type/union.rb +5 -2
- data/lib/lithic/internal/util.rb +8 -9
- data/lib/lithic/models/account_update_params.rb +4 -4
- data/lib/lithic/models/auth_rules/v2/backtest_results.rb +100 -28
- data/lib/lithic/models/auth_rules/v2_apply_response.rb +401 -10
- data/lib/lithic/models/auth_rules/v2_create_params.rb +205 -6
- data/lib/lithic/models/auth_rules/v2_create_response.rb +401 -10
- data/lib/lithic/models/auth_rules/v2_draft_params.rb +186 -3
- data/lib/lithic/models/auth_rules/v2_draft_response.rb +401 -10
- data/lib/lithic/models/auth_rules/v2_list_params.rb +27 -8
- data/lib/lithic/models/auth_rules/v2_list_response.rb +401 -10
- data/lib/lithic/models/auth_rules/v2_promote_response.rb +401 -10
- data/lib/lithic/models/auth_rules/v2_retrieve_response.rb +401 -10
- data/lib/lithic/models/auth_rules/v2_update_response.rb +401 -10
- data/lib/lithic/models/funding_event_list_response.rb +26 -22
- data/lib/lithic/models/funding_event_retrieve_response.rb +26 -22
- data/lib/lithic/models/payment.rb +2 -2
- data/lib/lithic/models/required_document.rb +2 -2
- data/lib/lithic/models/transaction.rb +2 -1
- data/lib/lithic/models.rb +4 -4
- data/lib/lithic/resources/auth_rules/v2/backtests.rb +12 -13
- data/lib/lithic/resources/auth_rules/v2.rb +45 -39
- data/lib/lithic/resources/transfers.rb +2 -0
- data/lib/lithic/version.rb +1 -1
- data/rbi/lithic/internal/util.rbi +2 -0
- data/rbi/lithic/models/account_update_params.rbi +6 -6
- data/rbi/lithic/models/auth_rules/v2/backtest_results.rbi +186 -24
- data/rbi/lithic/models/auth_rules/v2_apply_response.rbi +895 -7
- data/rbi/lithic/models/auth_rules/v2_create_params.rbi +442 -8
- data/rbi/lithic/models/auth_rules/v2_create_response.rbi +895 -7
- data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +414 -4
- data/rbi/lithic/models/auth_rules/v2_draft_response.rbi +895 -7
- data/rbi/lithic/models/auth_rules/v2_list_params.rbi +60 -7
- data/rbi/lithic/models/auth_rules/v2_list_response.rbi +895 -7
- data/rbi/lithic/models/auth_rules/v2_promote_response.rbi +895 -7
- data/rbi/lithic/models/auth_rules/v2_retrieve_response.rbi +895 -7
- data/rbi/lithic/models/auth_rules/v2_update_response.rbi +895 -7
- data/rbi/lithic/models/funding_event_list_response.rbi +35 -28
- data/rbi/lithic/models/funding_event_retrieve_response.rbi +35 -28
- data/rbi/lithic/models/payment.rbi +3 -3
- data/rbi/lithic/models/required_document.rbi +2 -2
- data/rbi/lithic/models/transaction.rbi +4 -2
- data/rbi/lithic/resources/accounts.rbi +2 -2
- data/rbi/lithic/resources/auth_rules/v2/backtests.rbi +12 -13
- data/rbi/lithic/resources/auth_rules/v2.rbi +49 -38
- data/sig/lithic/models/auth_rules/v2/backtest_results.rbs +66 -2
- data/sig/lithic/models/auth_rules/v2_apply_response.rbs +280 -1
- data/sig/lithic/models/auth_rules/v2_create_params.rbs +135 -1
- data/sig/lithic/models/auth_rules/v2_create_response.rbs +280 -1
- data/sig/lithic/models/auth_rules/v2_draft_params.rbs +129 -0
- data/sig/lithic/models/auth_rules/v2_draft_response.rbs +280 -1
- data/sig/lithic/models/auth_rules/v2_list_params.rbs +20 -0
- data/sig/lithic/models/auth_rules/v2_list_response.rbs +280 -1
- data/sig/lithic/models/auth_rules/v2_promote_response.rbs +280 -1
- data/sig/lithic/models/auth_rules/v2_retrieve_response.rbs +280 -1
- data/sig/lithic/models/auth_rules/v2_update_response.rbs +280 -1
- data/sig/lithic/models/funding_event_list_response.rbs +18 -11
- data/sig/lithic/models/funding_event_retrieve_response.rbs +18 -11
- data/sig/lithic/resources/auth_rules/v2.rbs +1 -0
- metadata +2 -2
@@ -52,6 +52,7 @@ module Lithic
|
|
52
52
|
type current_version =
|
53
53
|
{
|
54
54
|
approved: Integer,
|
55
|
+
challenged: Integer,
|
55
56
|
declined: Integer,
|
56
57
|
examples: ::Array[Lithic::AuthRules::V2::BacktestResults::Results::CurrentVersion::Example],
|
57
58
|
version: Integer
|
@@ -62,6 +63,10 @@ module Lithic
|
|
62
63
|
|
63
64
|
def approved=: (Integer) -> Integer
|
64
65
|
|
66
|
+
attr_reader challenged: Integer?
|
67
|
+
|
68
|
+
def challenged=: (Integer) -> Integer
|
69
|
+
|
65
70
|
attr_reader declined: Integer?
|
66
71
|
|
67
72
|
def declined=: (Integer) -> Integer
|
@@ -78,6 +83,7 @@ module Lithic
|
|
78
83
|
|
79
84
|
def initialize: (
|
80
85
|
?approved: Integer,
|
86
|
+
?challenged: Integer,
|
81
87
|
?declined: Integer,
|
82
88
|
?examples: ::Array[Lithic::AuthRules::V2::BacktestResults::Results::CurrentVersion::Example],
|
83
89
|
?version: Integer
|
@@ -85,19 +91,31 @@ module Lithic
|
|
85
91
|
|
86
92
|
def to_hash: -> {
|
87
93
|
approved: Integer,
|
94
|
+
challenged: Integer,
|
88
95
|
declined: Integer,
|
89
96
|
examples: ::Array[Lithic::AuthRules::V2::BacktestResults::Results::CurrentVersion::Example],
|
90
97
|
version: Integer
|
91
98
|
}
|
92
99
|
|
93
100
|
type example =
|
94
|
-
{
|
101
|
+
{
|
102
|
+
approved: bool,
|
103
|
+
decision: Lithic::Models::AuthRules::V2::BacktestResults::Results::CurrentVersion::Example::decision,
|
104
|
+
event_token: String,
|
105
|
+
timestamp: Time
|
106
|
+
}
|
95
107
|
|
96
108
|
class Example < Lithic::Internal::Type::BaseModel
|
97
109
|
attr_reader approved: bool?
|
98
110
|
|
99
111
|
def approved=: (bool) -> bool
|
100
112
|
|
113
|
+
attr_reader decision: Lithic::Models::AuthRules::V2::BacktestResults::Results::CurrentVersion::Example::decision?
|
114
|
+
|
115
|
+
def decision=: (
|
116
|
+
Lithic::Models::AuthRules::V2::BacktestResults::Results::CurrentVersion::Example::decision
|
117
|
+
) -> Lithic::Models::AuthRules::V2::BacktestResults::Results::CurrentVersion::Example::decision
|
118
|
+
|
101
119
|
attr_reader event_token: String?
|
102
120
|
|
103
121
|
def event_token=: (String) -> String
|
@@ -108,21 +126,36 @@ module Lithic
|
|
108
126
|
|
109
127
|
def initialize: (
|
110
128
|
?approved: bool,
|
129
|
+
?decision: Lithic::Models::AuthRules::V2::BacktestResults::Results::CurrentVersion::Example::decision,
|
111
130
|
?event_token: String,
|
112
131
|
?timestamp: Time
|
113
132
|
) -> void
|
114
133
|
|
115
134
|
def to_hash: -> {
|
116
135
|
approved: bool,
|
136
|
+
decision: Lithic::Models::AuthRules::V2::BacktestResults::Results::CurrentVersion::Example::decision,
|
117
137
|
event_token: String,
|
118
138
|
timestamp: Time
|
119
139
|
}
|
140
|
+
|
141
|
+
type decision = :APPROVED | :DECLINED | :CHALLENGED
|
142
|
+
|
143
|
+
module Decision
|
144
|
+
extend Lithic::Internal::Type::Enum
|
145
|
+
|
146
|
+
APPROVED: :APPROVED
|
147
|
+
DECLINED: :DECLINED
|
148
|
+
CHALLENGED: :CHALLENGED
|
149
|
+
|
150
|
+
def self?.values: -> ::Array[Lithic::Models::AuthRules::V2::BacktestResults::Results::CurrentVersion::Example::decision]
|
151
|
+
end
|
120
152
|
end
|
121
153
|
end
|
122
154
|
|
123
155
|
type draft_version =
|
124
156
|
{
|
125
157
|
approved: Integer,
|
158
|
+
challenged: Integer,
|
126
159
|
declined: Integer,
|
127
160
|
examples: ::Array[Lithic::AuthRules::V2::BacktestResults::Results::DraftVersion::Example],
|
128
161
|
version: Integer
|
@@ -133,6 +166,10 @@ module Lithic
|
|
133
166
|
|
134
167
|
def approved=: (Integer) -> Integer
|
135
168
|
|
169
|
+
attr_reader challenged: Integer?
|
170
|
+
|
171
|
+
def challenged=: (Integer) -> Integer
|
172
|
+
|
136
173
|
attr_reader declined: Integer?
|
137
174
|
|
138
175
|
def declined=: (Integer) -> Integer
|
@@ -149,6 +186,7 @@ module Lithic
|
|
149
186
|
|
150
187
|
def initialize: (
|
151
188
|
?approved: Integer,
|
189
|
+
?challenged: Integer,
|
152
190
|
?declined: Integer,
|
153
191
|
?examples: ::Array[Lithic::AuthRules::V2::BacktestResults::Results::DraftVersion::Example],
|
154
192
|
?version: Integer
|
@@ -156,19 +194,31 @@ module Lithic
|
|
156
194
|
|
157
195
|
def to_hash: -> {
|
158
196
|
approved: Integer,
|
197
|
+
challenged: Integer,
|
159
198
|
declined: Integer,
|
160
199
|
examples: ::Array[Lithic::AuthRules::V2::BacktestResults::Results::DraftVersion::Example],
|
161
200
|
version: Integer
|
162
201
|
}
|
163
202
|
|
164
203
|
type example =
|
165
|
-
{
|
204
|
+
{
|
205
|
+
approved: bool,
|
206
|
+
decision: Lithic::Models::AuthRules::V2::BacktestResults::Results::DraftVersion::Example::decision,
|
207
|
+
event_token: String,
|
208
|
+
timestamp: Time
|
209
|
+
}
|
166
210
|
|
167
211
|
class Example < Lithic::Internal::Type::BaseModel
|
168
212
|
attr_reader approved: bool?
|
169
213
|
|
170
214
|
def approved=: (bool) -> bool
|
171
215
|
|
216
|
+
attr_reader decision: Lithic::Models::AuthRules::V2::BacktestResults::Results::DraftVersion::Example::decision?
|
217
|
+
|
218
|
+
def decision=: (
|
219
|
+
Lithic::Models::AuthRules::V2::BacktestResults::Results::DraftVersion::Example::decision
|
220
|
+
) -> Lithic::Models::AuthRules::V2::BacktestResults::Results::DraftVersion::Example::decision
|
221
|
+
|
172
222
|
attr_reader event_token: String?
|
173
223
|
|
174
224
|
def event_token=: (String) -> String
|
@@ -179,15 +229,29 @@ module Lithic
|
|
179
229
|
|
180
230
|
def initialize: (
|
181
231
|
?approved: bool,
|
232
|
+
?decision: Lithic::Models::AuthRules::V2::BacktestResults::Results::DraftVersion::Example::decision,
|
182
233
|
?event_token: String,
|
183
234
|
?timestamp: Time
|
184
235
|
) -> void
|
185
236
|
|
186
237
|
def to_hash: -> {
|
187
238
|
approved: bool,
|
239
|
+
decision: Lithic::Models::AuthRules::V2::BacktestResults::Results::DraftVersion::Example::decision,
|
188
240
|
event_token: String,
|
189
241
|
timestamp: Time
|
190
242
|
}
|
243
|
+
|
244
|
+
type decision = :APPROVED | :DECLINED | :CHALLENGED
|
245
|
+
|
246
|
+
module Decision
|
247
|
+
extend Lithic::Internal::Type::Enum
|
248
|
+
|
249
|
+
APPROVED: :APPROVED
|
250
|
+
DECLINED: :DECLINED
|
251
|
+
CHALLENGED: :CHALLENGED
|
252
|
+
|
253
|
+
def self?.values: -> ::Array[Lithic::Models::AuthRules::V2::BacktestResults::Results::DraftVersion::Example::decision]
|
254
|
+
end
|
191
255
|
end
|
192
256
|
end
|
193
257
|
end
|
@@ -8,6 +8,7 @@ module Lithic
|
|
8
8
|
card_tokens: ::Array[String],
|
9
9
|
current_version: Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion?,
|
10
10
|
draft_version: Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion?,
|
11
|
+
event_stream: Lithic::Models::AuthRules::V2ApplyResponse::event_stream,
|
11
12
|
name: String?,
|
12
13
|
program_level: bool,
|
13
14
|
state: Lithic::Models::AuthRules::V2ApplyResponse::state,
|
@@ -26,6 +27,8 @@ module Lithic
|
|
26
27
|
|
27
28
|
attr_accessor draft_version: Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion?
|
28
29
|
|
30
|
+
attr_accessor event_stream: Lithic::Models::AuthRules::V2ApplyResponse::event_stream
|
31
|
+
|
29
32
|
attr_accessor name: String?
|
30
33
|
|
31
34
|
attr_accessor program_level: bool
|
@@ -44,6 +47,7 @@ module Lithic
|
|
44
47
|
card_tokens: ::Array[String],
|
45
48
|
current_version: Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion?,
|
46
49
|
draft_version: Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion?,
|
50
|
+
event_stream: Lithic::Models::AuthRules::V2ApplyResponse::event_stream,
|
47
51
|
name: String?,
|
48
52
|
program_level: bool,
|
49
53
|
state: Lithic::Models::AuthRules::V2ApplyResponse::state,
|
@@ -57,6 +61,7 @@ module Lithic
|
|
57
61
|
card_tokens: ::Array[String],
|
58
62
|
current_version: Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion?,
|
59
63
|
draft_version: Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion?,
|
64
|
+
event_stream: Lithic::Models::AuthRules::V2ApplyResponse::event_stream,
|
60
65
|
name: String?,
|
61
66
|
program_level: bool,
|
62
67
|
state: Lithic::Models::AuthRules::V2ApplyResponse::state,
|
@@ -89,6 +94,7 @@ module Lithic
|
|
89
94
|
Lithic::AuthRules::ConditionalBlockParameters
|
90
95
|
| Lithic::AuthRules::VelocityLimitParams
|
91
96
|
| Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::MerchantLockParameters
|
97
|
+
| Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::Conditional3DSActionParameters
|
92
98
|
|
93
99
|
module Parameters
|
94
100
|
extend Lithic::Internal::Type::Union
|
@@ -139,6 +145,134 @@ module Lithic
|
|
139
145
|
end
|
140
146
|
end
|
141
147
|
|
148
|
+
type conditional3_ds_action_parameters =
|
149
|
+
{
|
150
|
+
action: Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::action,
|
151
|
+
conditions: ::Array[Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition]
|
152
|
+
}
|
153
|
+
|
154
|
+
class Conditional3DSActionParameters < Lithic::Internal::Type::BaseModel
|
155
|
+
attr_accessor action: Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::action
|
156
|
+
|
157
|
+
attr_accessor conditions: ::Array[Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition]
|
158
|
+
|
159
|
+
def initialize: (
|
160
|
+
action: Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::action,
|
161
|
+
conditions: ::Array[Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition]
|
162
|
+
) -> void
|
163
|
+
|
164
|
+
def to_hash: -> {
|
165
|
+
action: Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::action,
|
166
|
+
conditions: ::Array[Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition]
|
167
|
+
}
|
168
|
+
|
169
|
+
type action = :DECLINE | :CHALLENGE
|
170
|
+
|
171
|
+
module Action
|
172
|
+
extend Lithic::Internal::Type::Enum
|
173
|
+
|
174
|
+
DECLINE: :DECLINE
|
175
|
+
CHALLENGE: :CHALLENGE
|
176
|
+
|
177
|
+
def self?.values: -> ::Array[Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::action]
|
178
|
+
end
|
179
|
+
|
180
|
+
type condition =
|
181
|
+
{
|
182
|
+
attribute: Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::attribute,
|
183
|
+
operation: Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::operation,
|
184
|
+
value: Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::value
|
185
|
+
}
|
186
|
+
|
187
|
+
class Condition < Lithic::Internal::Type::BaseModel
|
188
|
+
attr_reader attribute: Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::attribute?
|
189
|
+
|
190
|
+
def attribute=: (
|
191
|
+
Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::attribute
|
192
|
+
) -> Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::attribute
|
193
|
+
|
194
|
+
attr_reader operation: Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::operation?
|
195
|
+
|
196
|
+
def operation=: (
|
197
|
+
Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::operation
|
198
|
+
) -> Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::operation
|
199
|
+
|
200
|
+
attr_reader value: Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::value?
|
201
|
+
|
202
|
+
def value=: (
|
203
|
+
Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::value
|
204
|
+
) -> Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::value
|
205
|
+
|
206
|
+
def initialize: (
|
207
|
+
?attribute: Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::attribute,
|
208
|
+
?operation: Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::operation,
|
209
|
+
?value: Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::value
|
210
|
+
) -> void
|
211
|
+
|
212
|
+
def to_hash: -> {
|
213
|
+
attribute: Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::attribute,
|
214
|
+
operation: Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::operation,
|
215
|
+
value: Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::value
|
216
|
+
}
|
217
|
+
|
218
|
+
type attribute =
|
219
|
+
:MCC
|
220
|
+
| :COUNTRY
|
221
|
+
| :CURRENCY
|
222
|
+
| :MERCHANT_ID
|
223
|
+
| :DESCRIPTOR
|
224
|
+
| :TRANSACTION_AMOUNT
|
225
|
+
| :RISK_SCORE
|
226
|
+
| :MESSAGE_CATEGORY
|
227
|
+
|
228
|
+
module Attribute
|
229
|
+
extend Lithic::Internal::Type::Enum
|
230
|
+
|
231
|
+
MCC: :MCC
|
232
|
+
COUNTRY: :COUNTRY
|
233
|
+
CURRENCY: :CURRENCY
|
234
|
+
MERCHANT_ID: :MERCHANT_ID
|
235
|
+
DESCRIPTOR: :DESCRIPTOR
|
236
|
+
TRANSACTION_AMOUNT: :TRANSACTION_AMOUNT
|
237
|
+
RISK_SCORE: :RISK_SCORE
|
238
|
+
MESSAGE_CATEGORY: :MESSAGE_CATEGORY
|
239
|
+
|
240
|
+
def self?.values: -> ::Array[Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::attribute]
|
241
|
+
end
|
242
|
+
|
243
|
+
type operation =
|
244
|
+
:IS_ONE_OF
|
245
|
+
| :IS_NOT_ONE_OF
|
246
|
+
| :MATCHES
|
247
|
+
| :DOES_NOT_MATCH
|
248
|
+
| :IS_GREATER_THAN
|
249
|
+
| :IS_LESS_THAN
|
250
|
+
|
251
|
+
module Operation
|
252
|
+
extend Lithic::Internal::Type::Enum
|
253
|
+
|
254
|
+
IS_ONE_OF: :IS_ONE_OF
|
255
|
+
IS_NOT_ONE_OF: :IS_NOT_ONE_OF
|
256
|
+
MATCHES: :MATCHES
|
257
|
+
DOES_NOT_MATCH: :DOES_NOT_MATCH
|
258
|
+
IS_GREATER_THAN: :IS_GREATER_THAN
|
259
|
+
IS_LESS_THAN: :IS_LESS_THAN
|
260
|
+
|
261
|
+
def self?.values: -> ::Array[Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::operation]
|
262
|
+
end
|
263
|
+
|
264
|
+
type value = String | Integer | ::Array[String]
|
265
|
+
|
266
|
+
module Value
|
267
|
+
extend Lithic::Internal::Type::Union
|
268
|
+
|
269
|
+
def self?.variants: -> ::Array[Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::value]
|
270
|
+
|
271
|
+
StringArray: Lithic::Internal::Type::Converter
|
272
|
+
end
|
273
|
+
end
|
274
|
+
end
|
275
|
+
|
142
276
|
def self?.variants: -> ::Array[Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::parameters]
|
143
277
|
end
|
144
278
|
end
|
@@ -168,6 +302,7 @@ module Lithic
|
|
168
302
|
Lithic::AuthRules::ConditionalBlockParameters
|
169
303
|
| Lithic::AuthRules::VelocityLimitParams
|
170
304
|
| Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::MerchantLockParameters
|
305
|
+
| Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::Conditional3DSActionParameters
|
171
306
|
|
172
307
|
module Parameters
|
173
308
|
extend Lithic::Internal::Type::Union
|
@@ -218,10 +353,149 @@ module Lithic
|
|
218
353
|
end
|
219
354
|
end
|
220
355
|
|
356
|
+
type conditional3_ds_action_parameters =
|
357
|
+
{
|
358
|
+
action: Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::Conditional3DSActionParameters::action,
|
359
|
+
conditions: ::Array[Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition]
|
360
|
+
}
|
361
|
+
|
362
|
+
class Conditional3DSActionParameters < Lithic::Internal::Type::BaseModel
|
363
|
+
attr_accessor action: Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::Conditional3DSActionParameters::action
|
364
|
+
|
365
|
+
attr_accessor conditions: ::Array[Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition]
|
366
|
+
|
367
|
+
def initialize: (
|
368
|
+
action: Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::Conditional3DSActionParameters::action,
|
369
|
+
conditions: ::Array[Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition]
|
370
|
+
) -> void
|
371
|
+
|
372
|
+
def to_hash: -> {
|
373
|
+
action: Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::Conditional3DSActionParameters::action,
|
374
|
+
conditions: ::Array[Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition]
|
375
|
+
}
|
376
|
+
|
377
|
+
type action = :DECLINE | :CHALLENGE
|
378
|
+
|
379
|
+
module Action
|
380
|
+
extend Lithic::Internal::Type::Enum
|
381
|
+
|
382
|
+
DECLINE: :DECLINE
|
383
|
+
CHALLENGE: :CHALLENGE
|
384
|
+
|
385
|
+
def self?.values: -> ::Array[Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::Conditional3DSActionParameters::action]
|
386
|
+
end
|
387
|
+
|
388
|
+
type condition =
|
389
|
+
{
|
390
|
+
attribute: Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::attribute,
|
391
|
+
operation: Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::operation,
|
392
|
+
value: Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::value
|
393
|
+
}
|
394
|
+
|
395
|
+
class Condition < Lithic::Internal::Type::BaseModel
|
396
|
+
attr_reader attribute: Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::attribute?
|
397
|
+
|
398
|
+
def attribute=: (
|
399
|
+
Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::attribute
|
400
|
+
) -> Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::attribute
|
401
|
+
|
402
|
+
attr_reader operation: Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::operation?
|
403
|
+
|
404
|
+
def operation=: (
|
405
|
+
Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::operation
|
406
|
+
) -> Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::operation
|
407
|
+
|
408
|
+
attr_reader value: Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::value?
|
409
|
+
|
410
|
+
def value=: (
|
411
|
+
Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::value
|
412
|
+
) -> Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::value
|
413
|
+
|
414
|
+
def initialize: (
|
415
|
+
?attribute: Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::attribute,
|
416
|
+
?operation: Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::operation,
|
417
|
+
?value: Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::value
|
418
|
+
) -> void
|
419
|
+
|
420
|
+
def to_hash: -> {
|
421
|
+
attribute: Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::attribute,
|
422
|
+
operation: Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::operation,
|
423
|
+
value: Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::value
|
424
|
+
}
|
425
|
+
|
426
|
+
type attribute =
|
427
|
+
:MCC
|
428
|
+
| :COUNTRY
|
429
|
+
| :CURRENCY
|
430
|
+
| :MERCHANT_ID
|
431
|
+
| :DESCRIPTOR
|
432
|
+
| :TRANSACTION_AMOUNT
|
433
|
+
| :RISK_SCORE
|
434
|
+
| :MESSAGE_CATEGORY
|
435
|
+
|
436
|
+
module Attribute
|
437
|
+
extend Lithic::Internal::Type::Enum
|
438
|
+
|
439
|
+
MCC: :MCC
|
440
|
+
COUNTRY: :COUNTRY
|
441
|
+
CURRENCY: :CURRENCY
|
442
|
+
MERCHANT_ID: :MERCHANT_ID
|
443
|
+
DESCRIPTOR: :DESCRIPTOR
|
444
|
+
TRANSACTION_AMOUNT: :TRANSACTION_AMOUNT
|
445
|
+
RISK_SCORE: :RISK_SCORE
|
446
|
+
MESSAGE_CATEGORY: :MESSAGE_CATEGORY
|
447
|
+
|
448
|
+
def self?.values: -> ::Array[Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::attribute]
|
449
|
+
end
|
450
|
+
|
451
|
+
type operation =
|
452
|
+
:IS_ONE_OF
|
453
|
+
| :IS_NOT_ONE_OF
|
454
|
+
| :MATCHES
|
455
|
+
| :DOES_NOT_MATCH
|
456
|
+
| :IS_GREATER_THAN
|
457
|
+
| :IS_LESS_THAN
|
458
|
+
|
459
|
+
module Operation
|
460
|
+
extend Lithic::Internal::Type::Enum
|
461
|
+
|
462
|
+
IS_ONE_OF: :IS_ONE_OF
|
463
|
+
IS_NOT_ONE_OF: :IS_NOT_ONE_OF
|
464
|
+
MATCHES: :MATCHES
|
465
|
+
DOES_NOT_MATCH: :DOES_NOT_MATCH
|
466
|
+
IS_GREATER_THAN: :IS_GREATER_THAN
|
467
|
+
IS_LESS_THAN: :IS_LESS_THAN
|
468
|
+
|
469
|
+
def self?.values: -> ::Array[Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::operation]
|
470
|
+
end
|
471
|
+
|
472
|
+
type value = String | Integer | ::Array[String]
|
473
|
+
|
474
|
+
module Value
|
475
|
+
extend Lithic::Internal::Type::Union
|
476
|
+
|
477
|
+
def self?.variants: -> ::Array[Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::value]
|
478
|
+
|
479
|
+
StringArray: Lithic::Internal::Type::Converter
|
480
|
+
end
|
481
|
+
end
|
482
|
+
end
|
483
|
+
|
221
484
|
def self?.variants: -> ::Array[Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::parameters]
|
222
485
|
end
|
223
486
|
end
|
224
487
|
|
488
|
+
type event_stream = :AUTHORIZATION | :THREE_DS_AUTHENTICATION
|
489
|
+
|
490
|
+
module EventStream
|
491
|
+
extend Lithic::Internal::Type::Enum
|
492
|
+
|
493
|
+
AUTHORIZATION: :AUTHORIZATION
|
494
|
+
THREE_DS_AUTHENTICATION: :THREE_DS_AUTHENTICATION
|
495
|
+
|
496
|
+
def self?.values: -> ::Array[Lithic::Models::AuthRules::V2ApplyResponse::event_stream]
|
497
|
+
end
|
498
|
+
|
225
499
|
type state = :ACTIVE | :INACTIVE
|
226
500
|
|
227
501
|
module State
|
@@ -233,7 +507,11 @@ module Lithic
|
|
233
507
|
def self?.values: -> ::Array[Lithic::Models::AuthRules::V2ApplyResponse::state]
|
234
508
|
end
|
235
509
|
|
236
|
-
type type_ =
|
510
|
+
type type_ =
|
511
|
+
:CONDITIONAL_BLOCK
|
512
|
+
| :VELOCITY_LIMIT
|
513
|
+
| :MERCHANT_LOCK
|
514
|
+
| :CONDITIONAL_3DS_ACTION
|
237
515
|
|
238
516
|
module Type
|
239
517
|
extend Lithic::Internal::Type::Enum
|
@@ -241,6 +519,7 @@ module Lithic
|
|
241
519
|
CONDITIONAL_BLOCK: :CONDITIONAL_BLOCK
|
242
520
|
VELOCITY_LIMIT: :VELOCITY_LIMIT
|
243
521
|
MERCHANT_LOCK: :MERCHANT_LOCK
|
522
|
+
CONDITIONAL_3DS_ACTION: :CONDITIONAL_3DS_ACTION
|
244
523
|
|
245
524
|
def self?.values: -> ::Array[Lithic::Models::AuthRules::V2ApplyResponse::type_]
|
246
525
|
end
|
@@ -67,6 +67,7 @@ module Lithic
|
|
67
67
|
Lithic::AuthRules::ConditionalBlockParameters
|
68
68
|
| Lithic::AuthRules::VelocityLimitParams
|
69
69
|
| Lithic::AuthRules::V2CreateParams::Parameters::MerchantLockParameters
|
70
|
+
| Lithic::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters
|
70
71
|
|
71
72
|
module Parameters
|
72
73
|
extend Lithic::Internal::Type::Union
|
@@ -117,10 +118,142 @@ module Lithic
|
|
117
118
|
end
|
118
119
|
end
|
119
120
|
|
121
|
+
type conditional3_ds_action_parameters =
|
122
|
+
{
|
123
|
+
action: Lithic::Models::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::action,
|
124
|
+
conditions: ::Array[Lithic::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition]
|
125
|
+
}
|
126
|
+
|
127
|
+
class Conditional3DSActionParameters < Lithic::Internal::Type::BaseModel
|
128
|
+
attr_accessor action: Lithic::Models::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::action
|
129
|
+
|
130
|
+
attr_accessor conditions: ::Array[Lithic::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition]
|
131
|
+
|
132
|
+
def initialize: (
|
133
|
+
action: Lithic::Models::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::action,
|
134
|
+
conditions: ::Array[Lithic::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition]
|
135
|
+
) -> void
|
136
|
+
|
137
|
+
def to_hash: -> {
|
138
|
+
action: Lithic::Models::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::action,
|
139
|
+
conditions: ::Array[Lithic::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition]
|
140
|
+
}
|
141
|
+
|
142
|
+
type action = :DECLINE | :CHALLENGE
|
143
|
+
|
144
|
+
module Action
|
145
|
+
extend Lithic::Internal::Type::Enum
|
146
|
+
|
147
|
+
DECLINE: :DECLINE
|
148
|
+
CHALLENGE: :CHALLENGE
|
149
|
+
|
150
|
+
def self?.values: -> ::Array[Lithic::Models::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::action]
|
151
|
+
end
|
152
|
+
|
153
|
+
type condition =
|
154
|
+
{
|
155
|
+
attribute: Lithic::Models::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::attribute,
|
156
|
+
operation: Lithic::Models::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::operation,
|
157
|
+
value: Lithic::Models::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::value
|
158
|
+
}
|
159
|
+
|
160
|
+
class Condition < Lithic::Internal::Type::BaseModel
|
161
|
+
attr_reader attribute: Lithic::Models::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::attribute?
|
162
|
+
|
163
|
+
def attribute=: (
|
164
|
+
Lithic::Models::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::attribute
|
165
|
+
) -> Lithic::Models::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::attribute
|
166
|
+
|
167
|
+
attr_reader operation: Lithic::Models::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::operation?
|
168
|
+
|
169
|
+
def operation=: (
|
170
|
+
Lithic::Models::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::operation
|
171
|
+
) -> Lithic::Models::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::operation
|
172
|
+
|
173
|
+
attr_reader value: Lithic::Models::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::value?
|
174
|
+
|
175
|
+
def value=: (
|
176
|
+
Lithic::Models::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::value
|
177
|
+
) -> Lithic::Models::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::value
|
178
|
+
|
179
|
+
def initialize: (
|
180
|
+
?attribute: Lithic::Models::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::attribute,
|
181
|
+
?operation: Lithic::Models::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::operation,
|
182
|
+
?value: Lithic::Models::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::value
|
183
|
+
) -> void
|
184
|
+
|
185
|
+
def to_hash: -> {
|
186
|
+
attribute: Lithic::Models::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::attribute,
|
187
|
+
operation: Lithic::Models::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::operation,
|
188
|
+
value: Lithic::Models::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::value
|
189
|
+
}
|
190
|
+
|
191
|
+
type attribute =
|
192
|
+
:MCC
|
193
|
+
| :COUNTRY
|
194
|
+
| :CURRENCY
|
195
|
+
| :MERCHANT_ID
|
196
|
+
| :DESCRIPTOR
|
197
|
+
| :TRANSACTION_AMOUNT
|
198
|
+
| :RISK_SCORE
|
199
|
+
| :MESSAGE_CATEGORY
|
200
|
+
|
201
|
+
module Attribute
|
202
|
+
extend Lithic::Internal::Type::Enum
|
203
|
+
|
204
|
+
MCC: :MCC
|
205
|
+
COUNTRY: :COUNTRY
|
206
|
+
CURRENCY: :CURRENCY
|
207
|
+
MERCHANT_ID: :MERCHANT_ID
|
208
|
+
DESCRIPTOR: :DESCRIPTOR
|
209
|
+
TRANSACTION_AMOUNT: :TRANSACTION_AMOUNT
|
210
|
+
RISK_SCORE: :RISK_SCORE
|
211
|
+
MESSAGE_CATEGORY: :MESSAGE_CATEGORY
|
212
|
+
|
213
|
+
def self?.values: -> ::Array[Lithic::Models::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::attribute]
|
214
|
+
end
|
215
|
+
|
216
|
+
type operation =
|
217
|
+
:IS_ONE_OF
|
218
|
+
| :IS_NOT_ONE_OF
|
219
|
+
| :MATCHES
|
220
|
+
| :DOES_NOT_MATCH
|
221
|
+
| :IS_GREATER_THAN
|
222
|
+
| :IS_LESS_THAN
|
223
|
+
|
224
|
+
module Operation
|
225
|
+
extend Lithic::Internal::Type::Enum
|
226
|
+
|
227
|
+
IS_ONE_OF: :IS_ONE_OF
|
228
|
+
IS_NOT_ONE_OF: :IS_NOT_ONE_OF
|
229
|
+
MATCHES: :MATCHES
|
230
|
+
DOES_NOT_MATCH: :DOES_NOT_MATCH
|
231
|
+
IS_GREATER_THAN: :IS_GREATER_THAN
|
232
|
+
IS_LESS_THAN: :IS_LESS_THAN
|
233
|
+
|
234
|
+
def self?.values: -> ::Array[Lithic::Models::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::operation]
|
235
|
+
end
|
236
|
+
|
237
|
+
type value = String | Integer | ::Array[String]
|
238
|
+
|
239
|
+
module Value
|
240
|
+
extend Lithic::Internal::Type::Union
|
241
|
+
|
242
|
+
def self?.variants: -> ::Array[Lithic::Models::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::value]
|
243
|
+
|
244
|
+
StringArray: Lithic::Internal::Type::Converter
|
245
|
+
end
|
246
|
+
end
|
247
|
+
end
|
248
|
+
|
120
249
|
def self?.variants: -> ::Array[Lithic::Models::AuthRules::V2CreateParams::parameters]
|
121
250
|
end
|
122
251
|
|
123
|
-
type type_ =
|
252
|
+
type type_ =
|
253
|
+
:CONDITIONAL_BLOCK
|
254
|
+
| :VELOCITY_LIMIT
|
255
|
+
| :MERCHANT_LOCK
|
256
|
+
| :CONDITIONAL_3DS_ACTION
|
124
257
|
|
125
258
|
module Type
|
126
259
|
extend Lithic::Internal::Type::Enum
|
@@ -128,6 +261,7 @@ module Lithic
|
|
128
261
|
CONDITIONAL_BLOCK: :CONDITIONAL_BLOCK
|
129
262
|
VELOCITY_LIMIT: :VELOCITY_LIMIT
|
130
263
|
MERCHANT_LOCK: :MERCHANT_LOCK
|
264
|
+
CONDITIONAL_3DS_ACTION: :CONDITIONAL_3DS_ACTION
|
131
265
|
|
132
266
|
def self?.values: -> ::Array[Lithic::Models::AuthRules::V2CreateParams::type_]
|
133
267
|
end
|