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
@@ -8,6 +8,7 @@ module Lithic
|
|
8
8
|
card_tokens: ::Array[String],
|
9
9
|
current_version: Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion?,
|
10
10
|
draft_version: Lithic::Models::AuthRules::V2CreateResponse::DraftVersion?,
|
11
|
+
event_stream: Lithic::Models::AuthRules::V2CreateResponse::event_stream,
|
11
12
|
name: String?,
|
12
13
|
program_level: bool,
|
13
14
|
state: Lithic::Models::AuthRules::V2CreateResponse::state,
|
@@ -26,6 +27,8 @@ module Lithic
|
|
26
27
|
|
27
28
|
attr_accessor draft_version: Lithic::Models::AuthRules::V2CreateResponse::DraftVersion?
|
28
29
|
|
30
|
+
attr_accessor event_stream: Lithic::Models::AuthRules::V2CreateResponse::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::V2CreateResponse::CurrentVersion?,
|
46
49
|
draft_version: Lithic::Models::AuthRules::V2CreateResponse::DraftVersion?,
|
50
|
+
event_stream: Lithic::Models::AuthRules::V2CreateResponse::event_stream,
|
47
51
|
name: String?,
|
48
52
|
program_level: bool,
|
49
53
|
state: Lithic::Models::AuthRules::V2CreateResponse::state,
|
@@ -57,6 +61,7 @@ module Lithic
|
|
57
61
|
card_tokens: ::Array[String],
|
58
62
|
current_version: Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion?,
|
59
63
|
draft_version: Lithic::Models::AuthRules::V2CreateResponse::DraftVersion?,
|
64
|
+
event_stream: Lithic::Models::AuthRules::V2CreateResponse::event_stream,
|
60
65
|
name: String?,
|
61
66
|
program_level: bool,
|
62
67
|
state: Lithic::Models::AuthRules::V2CreateResponse::state,
|
@@ -89,6 +94,7 @@ module Lithic
|
|
89
94
|
Lithic::AuthRules::ConditionalBlockParameters
|
90
95
|
| Lithic::AuthRules::VelocityLimitParams
|
91
96
|
| Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::MerchantLockParameters
|
97
|
+
| Lithic::Models::AuthRules::V2CreateResponse::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::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::action,
|
151
|
+
conditions: ::Array[Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition]
|
152
|
+
}
|
153
|
+
|
154
|
+
class Conditional3DSActionParameters < Lithic::Internal::Type::BaseModel
|
155
|
+
attr_accessor action: Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::action
|
156
|
+
|
157
|
+
attr_accessor conditions: ::Array[Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition]
|
158
|
+
|
159
|
+
def initialize: (
|
160
|
+
action: Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::action,
|
161
|
+
conditions: ::Array[Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition]
|
162
|
+
) -> void
|
163
|
+
|
164
|
+
def to_hash: -> {
|
165
|
+
action: Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::action,
|
166
|
+
conditions: ::Array[Lithic::Models::AuthRules::V2CreateResponse::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::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::action]
|
178
|
+
end
|
179
|
+
|
180
|
+
type condition =
|
181
|
+
{
|
182
|
+
attribute: Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::attribute,
|
183
|
+
operation: Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::operation,
|
184
|
+
value: Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::value
|
185
|
+
}
|
186
|
+
|
187
|
+
class Condition < Lithic::Internal::Type::BaseModel
|
188
|
+
attr_reader attribute: Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::attribute?
|
189
|
+
|
190
|
+
def attribute=: (
|
191
|
+
Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::attribute
|
192
|
+
) -> Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::attribute
|
193
|
+
|
194
|
+
attr_reader operation: Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::operation?
|
195
|
+
|
196
|
+
def operation=: (
|
197
|
+
Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::operation
|
198
|
+
) -> Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::operation
|
199
|
+
|
200
|
+
attr_reader value: Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::value?
|
201
|
+
|
202
|
+
def value=: (
|
203
|
+
Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::value
|
204
|
+
) -> Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::value
|
205
|
+
|
206
|
+
def initialize: (
|
207
|
+
?attribute: Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::attribute,
|
208
|
+
?operation: Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::operation,
|
209
|
+
?value: Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::value
|
210
|
+
) -> void
|
211
|
+
|
212
|
+
def to_hash: -> {
|
213
|
+
attribute: Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::attribute,
|
214
|
+
operation: Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::operation,
|
215
|
+
value: Lithic::Models::AuthRules::V2CreateResponse::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::V2CreateResponse::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::V2CreateResponse::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::V2CreateResponse::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::V2CreateResponse::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::V2CreateResponse::DraftVersion::Parameters::MerchantLockParameters
|
305
|
+
| Lithic::Models::AuthRules::V2CreateResponse::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::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::action,
|
359
|
+
conditions: ::Array[Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition]
|
360
|
+
}
|
361
|
+
|
362
|
+
class Conditional3DSActionParameters < Lithic::Internal::Type::BaseModel
|
363
|
+
attr_accessor action: Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::action
|
364
|
+
|
365
|
+
attr_accessor conditions: ::Array[Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition]
|
366
|
+
|
367
|
+
def initialize: (
|
368
|
+
action: Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::action,
|
369
|
+
conditions: ::Array[Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition]
|
370
|
+
) -> void
|
371
|
+
|
372
|
+
def to_hash: -> {
|
373
|
+
action: Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::action,
|
374
|
+
conditions: ::Array[Lithic::Models::AuthRules::V2CreateResponse::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::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::action]
|
386
|
+
end
|
387
|
+
|
388
|
+
type condition =
|
389
|
+
{
|
390
|
+
attribute: Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::attribute,
|
391
|
+
operation: Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::operation,
|
392
|
+
value: Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::value
|
393
|
+
}
|
394
|
+
|
395
|
+
class Condition < Lithic::Internal::Type::BaseModel
|
396
|
+
attr_reader attribute: Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::attribute?
|
397
|
+
|
398
|
+
def attribute=: (
|
399
|
+
Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::attribute
|
400
|
+
) -> Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::attribute
|
401
|
+
|
402
|
+
attr_reader operation: Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::operation?
|
403
|
+
|
404
|
+
def operation=: (
|
405
|
+
Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::operation
|
406
|
+
) -> Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::operation
|
407
|
+
|
408
|
+
attr_reader value: Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::value?
|
409
|
+
|
410
|
+
def value=: (
|
411
|
+
Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::value
|
412
|
+
) -> Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::value
|
413
|
+
|
414
|
+
def initialize: (
|
415
|
+
?attribute: Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::attribute,
|
416
|
+
?operation: Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::operation,
|
417
|
+
?value: Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::value
|
418
|
+
) -> void
|
419
|
+
|
420
|
+
def to_hash: -> {
|
421
|
+
attribute: Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::attribute,
|
422
|
+
operation: Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::operation,
|
423
|
+
value: Lithic::Models::AuthRules::V2CreateResponse::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::V2CreateResponse::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::V2CreateResponse::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::V2CreateResponse::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::V2CreateResponse::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::V2CreateResponse::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::V2CreateResponse::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::V2CreateResponse::type_]
|
246
525
|
end
|
@@ -25,6 +25,7 @@ module Lithic
|
|
25
25
|
Lithic::AuthRules::ConditionalBlockParameters
|
26
26
|
| Lithic::AuthRules::VelocityLimitParams
|
27
27
|
| Lithic::AuthRules::V2DraftParams::Parameters::MerchantLockParameters
|
28
|
+
| Lithic::AuthRules::V2DraftParams::Parameters::Conditional3DSActionParameters
|
28
29
|
|
29
30
|
module Parameters
|
30
31
|
extend Lithic::Internal::Type::Union
|
@@ -75,6 +76,134 @@ module Lithic
|
|
75
76
|
end
|
76
77
|
end
|
77
78
|
|
79
|
+
type conditional3_ds_action_parameters =
|
80
|
+
{
|
81
|
+
action: Lithic::Models::AuthRules::V2DraftParams::Parameters::Conditional3DSActionParameters::action,
|
82
|
+
conditions: ::Array[Lithic::AuthRules::V2DraftParams::Parameters::Conditional3DSActionParameters::Condition]
|
83
|
+
}
|
84
|
+
|
85
|
+
class Conditional3DSActionParameters < Lithic::Internal::Type::BaseModel
|
86
|
+
attr_accessor action: Lithic::Models::AuthRules::V2DraftParams::Parameters::Conditional3DSActionParameters::action
|
87
|
+
|
88
|
+
attr_accessor conditions: ::Array[Lithic::AuthRules::V2DraftParams::Parameters::Conditional3DSActionParameters::Condition]
|
89
|
+
|
90
|
+
def initialize: (
|
91
|
+
action: Lithic::Models::AuthRules::V2DraftParams::Parameters::Conditional3DSActionParameters::action,
|
92
|
+
conditions: ::Array[Lithic::AuthRules::V2DraftParams::Parameters::Conditional3DSActionParameters::Condition]
|
93
|
+
) -> void
|
94
|
+
|
95
|
+
def to_hash: -> {
|
96
|
+
action: Lithic::Models::AuthRules::V2DraftParams::Parameters::Conditional3DSActionParameters::action,
|
97
|
+
conditions: ::Array[Lithic::AuthRules::V2DraftParams::Parameters::Conditional3DSActionParameters::Condition]
|
98
|
+
}
|
99
|
+
|
100
|
+
type action = :DECLINE | :CHALLENGE
|
101
|
+
|
102
|
+
module Action
|
103
|
+
extend Lithic::Internal::Type::Enum
|
104
|
+
|
105
|
+
DECLINE: :DECLINE
|
106
|
+
CHALLENGE: :CHALLENGE
|
107
|
+
|
108
|
+
def self?.values: -> ::Array[Lithic::Models::AuthRules::V2DraftParams::Parameters::Conditional3DSActionParameters::action]
|
109
|
+
end
|
110
|
+
|
111
|
+
type condition =
|
112
|
+
{
|
113
|
+
attribute: Lithic::Models::AuthRules::V2DraftParams::Parameters::Conditional3DSActionParameters::Condition::attribute,
|
114
|
+
operation: Lithic::Models::AuthRules::V2DraftParams::Parameters::Conditional3DSActionParameters::Condition::operation,
|
115
|
+
value: Lithic::Models::AuthRules::V2DraftParams::Parameters::Conditional3DSActionParameters::Condition::value
|
116
|
+
}
|
117
|
+
|
118
|
+
class Condition < Lithic::Internal::Type::BaseModel
|
119
|
+
attr_reader attribute: Lithic::Models::AuthRules::V2DraftParams::Parameters::Conditional3DSActionParameters::Condition::attribute?
|
120
|
+
|
121
|
+
def attribute=: (
|
122
|
+
Lithic::Models::AuthRules::V2DraftParams::Parameters::Conditional3DSActionParameters::Condition::attribute
|
123
|
+
) -> Lithic::Models::AuthRules::V2DraftParams::Parameters::Conditional3DSActionParameters::Condition::attribute
|
124
|
+
|
125
|
+
attr_reader operation: Lithic::Models::AuthRules::V2DraftParams::Parameters::Conditional3DSActionParameters::Condition::operation?
|
126
|
+
|
127
|
+
def operation=: (
|
128
|
+
Lithic::Models::AuthRules::V2DraftParams::Parameters::Conditional3DSActionParameters::Condition::operation
|
129
|
+
) -> Lithic::Models::AuthRules::V2DraftParams::Parameters::Conditional3DSActionParameters::Condition::operation
|
130
|
+
|
131
|
+
attr_reader value: Lithic::Models::AuthRules::V2DraftParams::Parameters::Conditional3DSActionParameters::Condition::value?
|
132
|
+
|
133
|
+
def value=: (
|
134
|
+
Lithic::Models::AuthRules::V2DraftParams::Parameters::Conditional3DSActionParameters::Condition::value
|
135
|
+
) -> Lithic::Models::AuthRules::V2DraftParams::Parameters::Conditional3DSActionParameters::Condition::value
|
136
|
+
|
137
|
+
def initialize: (
|
138
|
+
?attribute: Lithic::Models::AuthRules::V2DraftParams::Parameters::Conditional3DSActionParameters::Condition::attribute,
|
139
|
+
?operation: Lithic::Models::AuthRules::V2DraftParams::Parameters::Conditional3DSActionParameters::Condition::operation,
|
140
|
+
?value: Lithic::Models::AuthRules::V2DraftParams::Parameters::Conditional3DSActionParameters::Condition::value
|
141
|
+
) -> void
|
142
|
+
|
143
|
+
def to_hash: -> {
|
144
|
+
attribute: Lithic::Models::AuthRules::V2DraftParams::Parameters::Conditional3DSActionParameters::Condition::attribute,
|
145
|
+
operation: Lithic::Models::AuthRules::V2DraftParams::Parameters::Conditional3DSActionParameters::Condition::operation,
|
146
|
+
value: Lithic::Models::AuthRules::V2DraftParams::Parameters::Conditional3DSActionParameters::Condition::value
|
147
|
+
}
|
148
|
+
|
149
|
+
type attribute =
|
150
|
+
:MCC
|
151
|
+
| :COUNTRY
|
152
|
+
| :CURRENCY
|
153
|
+
| :MERCHANT_ID
|
154
|
+
| :DESCRIPTOR
|
155
|
+
| :TRANSACTION_AMOUNT
|
156
|
+
| :RISK_SCORE
|
157
|
+
| :MESSAGE_CATEGORY
|
158
|
+
|
159
|
+
module Attribute
|
160
|
+
extend Lithic::Internal::Type::Enum
|
161
|
+
|
162
|
+
MCC: :MCC
|
163
|
+
COUNTRY: :COUNTRY
|
164
|
+
CURRENCY: :CURRENCY
|
165
|
+
MERCHANT_ID: :MERCHANT_ID
|
166
|
+
DESCRIPTOR: :DESCRIPTOR
|
167
|
+
TRANSACTION_AMOUNT: :TRANSACTION_AMOUNT
|
168
|
+
RISK_SCORE: :RISK_SCORE
|
169
|
+
MESSAGE_CATEGORY: :MESSAGE_CATEGORY
|
170
|
+
|
171
|
+
def self?.values: -> ::Array[Lithic::Models::AuthRules::V2DraftParams::Parameters::Conditional3DSActionParameters::Condition::attribute]
|
172
|
+
end
|
173
|
+
|
174
|
+
type operation =
|
175
|
+
:IS_ONE_OF
|
176
|
+
| :IS_NOT_ONE_OF
|
177
|
+
| :MATCHES
|
178
|
+
| :DOES_NOT_MATCH
|
179
|
+
| :IS_GREATER_THAN
|
180
|
+
| :IS_LESS_THAN
|
181
|
+
|
182
|
+
module Operation
|
183
|
+
extend Lithic::Internal::Type::Enum
|
184
|
+
|
185
|
+
IS_ONE_OF: :IS_ONE_OF
|
186
|
+
IS_NOT_ONE_OF: :IS_NOT_ONE_OF
|
187
|
+
MATCHES: :MATCHES
|
188
|
+
DOES_NOT_MATCH: :DOES_NOT_MATCH
|
189
|
+
IS_GREATER_THAN: :IS_GREATER_THAN
|
190
|
+
IS_LESS_THAN: :IS_LESS_THAN
|
191
|
+
|
192
|
+
def self?.values: -> ::Array[Lithic::Models::AuthRules::V2DraftParams::Parameters::Conditional3DSActionParameters::Condition::operation]
|
193
|
+
end
|
194
|
+
|
195
|
+
type value = String | Integer | ::Array[String]
|
196
|
+
|
197
|
+
module Value
|
198
|
+
extend Lithic::Internal::Type::Union
|
199
|
+
|
200
|
+
def self?.variants: -> ::Array[Lithic::Models::AuthRules::V2DraftParams::Parameters::Conditional3DSActionParameters::Condition::value]
|
201
|
+
|
202
|
+
StringArray: Lithic::Internal::Type::Converter
|
203
|
+
end
|
204
|
+
end
|
205
|
+
end
|
206
|
+
|
78
207
|
def self?.variants: -> ::Array[Lithic::Models::AuthRules::V2DraftParams::parameters]
|
79
208
|
end
|
80
209
|
end
|