lithic 0.1.0.pre.alpha.30 → 0.1.0.pre.alpha.32
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 +28 -0
- data/README.md +1 -1
- data/lib/lithic/internal/util.rb +8 -9
- data/lib/lithic/models/account.rb +10 -10
- data/lib/lithic/models/account_update_params.rb +5 -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/auth_rules/velocity_limit_params.rb +1 -0
- data/lib/lithic/models/auth_rules/velocity_limit_params_period_window.rb +3 -0
- data/lib/lithic/models/financial_account.rb +1 -0
- data/lib/lithic/models/financial_account_register_account_number_params.rb +20 -0
- 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/instance_financial_account_type.rb +1 -0
- data/lib/lithic/models/payment.rb +2 -2
- data/lib/lithic/models/required_document.rb +2 -2
- data/lib/lithic/models/settlement_detail.rb +4 -2
- data/lib/lithic/models/transaction.rb +3 -1
- data/lib/lithic/models/verification_method.rb +1 -0
- data/lib/lithic/models.rb +2 -0
- data/lib/lithic/resources/auth_rules/v2/backtests.rb +12 -13
- data/lib/lithic/resources/auth_rules/v2.rb +43 -39
- data/lib/lithic/resources/financial_accounts.rb +24 -0
- data/lib/lithic/resources/three_ds/authentication.rb +3 -1
- data/lib/lithic/version.rb +1 -1
- data/lib/lithic.rb +1 -0
- data/rbi/lithic/internal/util.rbi +2 -0
- data/rbi/lithic/models/account.rbi +15 -15
- data/rbi/lithic/models/account_update_params.rbi +8 -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/auth_rules/velocity_limit_params_period_window.rbi +7 -0
- data/rbi/lithic/models/financial_account.rbi +2 -0
- data/rbi/lithic/models/financial_account_register_account_number_params.rbi +38 -0
- 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/instance_financial_account_type.rbi +2 -0
- data/rbi/lithic/models/payment.rbi +3 -3
- data/rbi/lithic/models/required_document.rbi +2 -2
- data/rbi/lithic/models/settlement_detail.rbi +6 -2
- data/rbi/lithic/models/transaction.rbi +9 -2
- data/rbi/lithic/models/verification_method.rbi +1 -0
- data/rbi/lithic/models.rbi +3 -0
- 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/rbi/lithic/resources/financial_accounts.rbi +16 -0
- data/rbi/lithic/resources/three_ds/authentication.rbi +3 -1
- data/sig/lithic/models/account_update_params.rbs +2 -1
- 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/auth_rules/velocity_limit_params_period_window.rbs +2 -1
- data/sig/lithic/models/financial_account.rbs +2 -0
- data/sig/lithic/models/financial_account_register_account_number_params.rbs +23 -0
- 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/models/instance_financial_account_type.rbs +2 -0
- data/sig/lithic/models/transaction.rbs +3 -1
- data/sig/lithic/models/verification_method.rbs +7 -1
- data/sig/lithic/models.rbs +2 -0
- data/sig/lithic/resources/auth_rules/v2.rbs +1 -0
- data/sig/lithic/resources/financial_accounts.rbs +6 -0
- metadata +5 -2
@@ -27,7 +27,8 @@ module Lithic
|
|
27
27
|
T.any(
|
28
28
|
Lithic::AuthRules::ConditionalBlockParameters,
|
29
29
|
Lithic::AuthRules::VelocityLimitParams,
|
30
|
-
Lithic::AuthRules::V2CreateParams::Parameters::MerchantLockParameters
|
30
|
+
Lithic::AuthRules::V2CreateParams::Parameters::MerchantLockParameters,
|
31
|
+
Lithic::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters
|
31
32
|
)
|
32
33
|
)
|
33
34
|
)
|
@@ -40,13 +41,20 @@ module Lithic
|
|
40
41
|
T.any(
|
41
42
|
Lithic::AuthRules::ConditionalBlockParameters::OrHash,
|
42
43
|
Lithic::AuthRules::VelocityLimitParams::OrHash,
|
43
|
-
Lithic::AuthRules::V2CreateParams::Parameters::MerchantLockParameters::OrHash
|
44
|
+
Lithic::AuthRules::V2CreateParams::Parameters::MerchantLockParameters::OrHash,
|
45
|
+
Lithic::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::OrHash
|
44
46
|
)
|
45
47
|
).void
|
46
48
|
end
|
47
49
|
attr_writer :parameters
|
48
50
|
|
49
|
-
# The type of Auth Rule
|
51
|
+
# The type of Auth Rule. Effectively determines the event stream during which it
|
52
|
+
# will be evaluated.
|
53
|
+
#
|
54
|
+
# - `CONDITIONAL_BLOCK`: AUTHORIZATION event stream.
|
55
|
+
# - `VELOCITY_LIMIT`: AUTHORIZATION event stream.
|
56
|
+
# - `MERCHANT_LOCK`: AUTHORIZATION event stream.
|
57
|
+
# - `CONDITIONAL_3DS_ACTION`: THREE_DS_AUTHENTICATION event stream.
|
50
58
|
sig do
|
51
59
|
returns(T.nilable(Lithic::AuthRules::V2CreateParams::Type::OrSymbol))
|
52
60
|
end
|
@@ -82,7 +90,8 @@ module Lithic
|
|
82
90
|
T.any(
|
83
91
|
Lithic::AuthRules::ConditionalBlockParameters::OrHash,
|
84
92
|
Lithic::AuthRules::VelocityLimitParams::OrHash,
|
85
|
-
Lithic::AuthRules::V2CreateParams::Parameters::MerchantLockParameters::OrHash
|
93
|
+
Lithic::AuthRules::V2CreateParams::Parameters::MerchantLockParameters::OrHash,
|
94
|
+
Lithic::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::OrHash
|
86
95
|
),
|
87
96
|
type: Lithic::AuthRules::V2CreateParams::Type::OrSymbol,
|
88
97
|
excluded_card_tokens: T::Array[String],
|
@@ -100,7 +109,13 @@ module Lithic
|
|
100
109
|
name: nil,
|
101
110
|
# Parameters for the Auth Rule
|
102
111
|
parameters: nil,
|
103
|
-
# The type of Auth Rule
|
112
|
+
# The type of Auth Rule. Effectively determines the event stream during which it
|
113
|
+
# will be evaluated.
|
114
|
+
#
|
115
|
+
# - `CONDITIONAL_BLOCK`: AUTHORIZATION event stream.
|
116
|
+
# - `VELOCITY_LIMIT`: AUTHORIZATION event stream.
|
117
|
+
# - `MERCHANT_LOCK`: AUTHORIZATION event stream.
|
118
|
+
# - `CONDITIONAL_3DS_ACTION`: THREE_DS_AUTHENTICATION event stream.
|
104
119
|
type: nil,
|
105
120
|
# Card tokens to which the Auth Rule does not apply.
|
106
121
|
excluded_card_tokens: nil,
|
@@ -117,7 +132,8 @@ module Lithic
|
|
117
132
|
T.any(
|
118
133
|
Lithic::AuthRules::ConditionalBlockParameters,
|
119
134
|
Lithic::AuthRules::VelocityLimitParams,
|
120
|
-
Lithic::AuthRules::V2CreateParams::Parameters::MerchantLockParameters
|
135
|
+
Lithic::AuthRules::V2CreateParams::Parameters::MerchantLockParameters,
|
136
|
+
Lithic::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters
|
121
137
|
),
|
122
138
|
type: Lithic::AuthRules::V2CreateParams::Type::OrSymbol,
|
123
139
|
card_tokens: T::Array[String],
|
@@ -139,7 +155,8 @@ module Lithic
|
|
139
155
|
T.any(
|
140
156
|
Lithic::AuthRules::ConditionalBlockParameters,
|
141
157
|
Lithic::AuthRules::VelocityLimitParams,
|
142
|
-
Lithic::AuthRules::V2CreateParams::Parameters::MerchantLockParameters
|
158
|
+
Lithic::AuthRules::V2CreateParams::Parameters::MerchantLockParameters,
|
159
|
+
Lithic::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters
|
143
160
|
)
|
144
161
|
end
|
145
162
|
|
@@ -261,6 +278,412 @@ module Lithic
|
|
261
278
|
end
|
262
279
|
end
|
263
280
|
|
281
|
+
class Conditional3DSActionParameters < Lithic::Internal::Type::BaseModel
|
282
|
+
OrHash =
|
283
|
+
T.type_alias do
|
284
|
+
T.any(
|
285
|
+
Lithic::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters,
|
286
|
+
Lithic::Internal::AnyHash
|
287
|
+
)
|
288
|
+
end
|
289
|
+
|
290
|
+
# The action to take if the conditions are met.
|
291
|
+
sig do
|
292
|
+
returns(
|
293
|
+
Lithic::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Action::OrSymbol
|
294
|
+
)
|
295
|
+
end
|
296
|
+
attr_accessor :action
|
297
|
+
|
298
|
+
sig do
|
299
|
+
returns(
|
300
|
+
T::Array[
|
301
|
+
Lithic::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition
|
302
|
+
]
|
303
|
+
)
|
304
|
+
end
|
305
|
+
attr_accessor :conditions
|
306
|
+
|
307
|
+
sig do
|
308
|
+
params(
|
309
|
+
action:
|
310
|
+
Lithic::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Action::OrSymbol,
|
311
|
+
conditions:
|
312
|
+
T::Array[
|
313
|
+
Lithic::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::OrHash
|
314
|
+
]
|
315
|
+
).returns(T.attached_class)
|
316
|
+
end
|
317
|
+
def self.new(
|
318
|
+
# The action to take if the conditions are met.
|
319
|
+
action:,
|
320
|
+
conditions:
|
321
|
+
)
|
322
|
+
end
|
323
|
+
|
324
|
+
sig do
|
325
|
+
override.returns(
|
326
|
+
{
|
327
|
+
action:
|
328
|
+
Lithic::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Action::OrSymbol,
|
329
|
+
conditions:
|
330
|
+
T::Array[
|
331
|
+
Lithic::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition
|
332
|
+
]
|
333
|
+
}
|
334
|
+
)
|
335
|
+
end
|
336
|
+
def to_hash
|
337
|
+
end
|
338
|
+
|
339
|
+
# The action to take if the conditions are met.
|
340
|
+
module Action
|
341
|
+
extend Lithic::Internal::Type::Enum
|
342
|
+
|
343
|
+
TaggedSymbol =
|
344
|
+
T.type_alias do
|
345
|
+
T.all(
|
346
|
+
Symbol,
|
347
|
+
Lithic::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Action
|
348
|
+
)
|
349
|
+
end
|
350
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
351
|
+
|
352
|
+
DECLINE =
|
353
|
+
T.let(
|
354
|
+
:DECLINE,
|
355
|
+
Lithic::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Action::TaggedSymbol
|
356
|
+
)
|
357
|
+
CHALLENGE =
|
358
|
+
T.let(
|
359
|
+
:CHALLENGE,
|
360
|
+
Lithic::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Action::TaggedSymbol
|
361
|
+
)
|
362
|
+
|
363
|
+
sig do
|
364
|
+
override.returns(
|
365
|
+
T::Array[
|
366
|
+
Lithic::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Action::TaggedSymbol
|
367
|
+
]
|
368
|
+
)
|
369
|
+
end
|
370
|
+
def self.values
|
371
|
+
end
|
372
|
+
end
|
373
|
+
|
374
|
+
class Condition < Lithic::Internal::Type::BaseModel
|
375
|
+
OrHash =
|
376
|
+
T.type_alias do
|
377
|
+
T.any(
|
378
|
+
Lithic::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition,
|
379
|
+
Lithic::Internal::AnyHash
|
380
|
+
)
|
381
|
+
end
|
382
|
+
|
383
|
+
# The attribute to target.
|
384
|
+
#
|
385
|
+
# The following attributes may be targeted:
|
386
|
+
#
|
387
|
+
# - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a
|
388
|
+
# business by the types of goods or services it provides.
|
389
|
+
# - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all
|
390
|
+
# ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for
|
391
|
+
# Netherlands Antilles.
|
392
|
+
# - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of
|
393
|
+
# the transaction.
|
394
|
+
# - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor
|
395
|
+
# (merchant).
|
396
|
+
# - `DESCRIPTOR`: Short description of card acceptor.
|
397
|
+
# - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
|
398
|
+
# fee field in the settlement/cardholder billing currency. This is the amount
|
399
|
+
# the issuer should authorize against unless the issuer is paying the acquirer
|
400
|
+
# fee on behalf of the cardholder.
|
401
|
+
# - `RISK_SCORE`: Network-provided score assessing risk level associated with a
|
402
|
+
# given authentication. Scores are on a range of 0-999, with 0 representing the
|
403
|
+
# lowest risk and 999 representing the highest risk. For Visa transactions,
|
404
|
+
# where the raw score has a range of 0-99, Lithic will normalize the score by
|
405
|
+
# multiplying the raw score by 10x.
|
406
|
+
# - `MESSAGE_CATEGORY`: The category of the authentication being processed.
|
407
|
+
sig do
|
408
|
+
returns(
|
409
|
+
T.nilable(
|
410
|
+
Lithic::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::Attribute::OrSymbol
|
411
|
+
)
|
412
|
+
)
|
413
|
+
end
|
414
|
+
attr_reader :attribute
|
415
|
+
|
416
|
+
sig do
|
417
|
+
params(
|
418
|
+
attribute:
|
419
|
+
Lithic::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::Attribute::OrSymbol
|
420
|
+
).void
|
421
|
+
end
|
422
|
+
attr_writer :attribute
|
423
|
+
|
424
|
+
# The operation to apply to the attribute
|
425
|
+
sig do
|
426
|
+
returns(
|
427
|
+
T.nilable(
|
428
|
+
Lithic::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::Operation::OrSymbol
|
429
|
+
)
|
430
|
+
)
|
431
|
+
end
|
432
|
+
attr_reader :operation
|
433
|
+
|
434
|
+
sig do
|
435
|
+
params(
|
436
|
+
operation:
|
437
|
+
Lithic::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::Operation::OrSymbol
|
438
|
+
).void
|
439
|
+
end
|
440
|
+
attr_writer :operation
|
441
|
+
|
442
|
+
# A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
|
443
|
+
sig do
|
444
|
+
returns(
|
445
|
+
T.nilable(
|
446
|
+
Lithic::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::Value::Variants
|
447
|
+
)
|
448
|
+
)
|
449
|
+
end
|
450
|
+
attr_reader :value
|
451
|
+
|
452
|
+
sig do
|
453
|
+
params(
|
454
|
+
value:
|
455
|
+
Lithic::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::Value::Variants
|
456
|
+
).void
|
457
|
+
end
|
458
|
+
attr_writer :value
|
459
|
+
|
460
|
+
sig do
|
461
|
+
params(
|
462
|
+
attribute:
|
463
|
+
Lithic::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::Attribute::OrSymbol,
|
464
|
+
operation:
|
465
|
+
Lithic::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::Operation::OrSymbol,
|
466
|
+
value:
|
467
|
+
Lithic::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::Value::Variants
|
468
|
+
).returns(T.attached_class)
|
469
|
+
end
|
470
|
+
def self.new(
|
471
|
+
# The attribute to target.
|
472
|
+
#
|
473
|
+
# The following attributes may be targeted:
|
474
|
+
#
|
475
|
+
# - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a
|
476
|
+
# business by the types of goods or services it provides.
|
477
|
+
# - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all
|
478
|
+
# ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for
|
479
|
+
# Netherlands Antilles.
|
480
|
+
# - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of
|
481
|
+
# the transaction.
|
482
|
+
# - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor
|
483
|
+
# (merchant).
|
484
|
+
# - `DESCRIPTOR`: Short description of card acceptor.
|
485
|
+
# - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
|
486
|
+
# fee field in the settlement/cardholder billing currency. This is the amount
|
487
|
+
# the issuer should authorize against unless the issuer is paying the acquirer
|
488
|
+
# fee on behalf of the cardholder.
|
489
|
+
# - `RISK_SCORE`: Network-provided score assessing risk level associated with a
|
490
|
+
# given authentication. Scores are on a range of 0-999, with 0 representing the
|
491
|
+
# lowest risk and 999 representing the highest risk. For Visa transactions,
|
492
|
+
# where the raw score has a range of 0-99, Lithic will normalize the score by
|
493
|
+
# multiplying the raw score by 10x.
|
494
|
+
# - `MESSAGE_CATEGORY`: The category of the authentication being processed.
|
495
|
+
attribute: nil,
|
496
|
+
# The operation to apply to the attribute
|
497
|
+
operation: nil,
|
498
|
+
# A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
|
499
|
+
value: nil
|
500
|
+
)
|
501
|
+
end
|
502
|
+
|
503
|
+
sig do
|
504
|
+
override.returns(
|
505
|
+
{
|
506
|
+
attribute:
|
507
|
+
Lithic::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::Attribute::OrSymbol,
|
508
|
+
operation:
|
509
|
+
Lithic::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::Operation::OrSymbol,
|
510
|
+
value:
|
511
|
+
Lithic::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::Value::Variants
|
512
|
+
}
|
513
|
+
)
|
514
|
+
end
|
515
|
+
def to_hash
|
516
|
+
end
|
517
|
+
|
518
|
+
# The attribute to target.
|
519
|
+
#
|
520
|
+
# The following attributes may be targeted:
|
521
|
+
#
|
522
|
+
# - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a
|
523
|
+
# business by the types of goods or services it provides.
|
524
|
+
# - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all
|
525
|
+
# ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for
|
526
|
+
# Netherlands Antilles.
|
527
|
+
# - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of
|
528
|
+
# the transaction.
|
529
|
+
# - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor
|
530
|
+
# (merchant).
|
531
|
+
# - `DESCRIPTOR`: Short description of card acceptor.
|
532
|
+
# - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
|
533
|
+
# fee field in the settlement/cardholder billing currency. This is the amount
|
534
|
+
# the issuer should authorize against unless the issuer is paying the acquirer
|
535
|
+
# fee on behalf of the cardholder.
|
536
|
+
# - `RISK_SCORE`: Network-provided score assessing risk level associated with a
|
537
|
+
# given authentication. Scores are on a range of 0-999, with 0 representing the
|
538
|
+
# lowest risk and 999 representing the highest risk. For Visa transactions,
|
539
|
+
# where the raw score has a range of 0-99, Lithic will normalize the score by
|
540
|
+
# multiplying the raw score by 10x.
|
541
|
+
# - `MESSAGE_CATEGORY`: The category of the authentication being processed.
|
542
|
+
module Attribute
|
543
|
+
extend Lithic::Internal::Type::Enum
|
544
|
+
|
545
|
+
TaggedSymbol =
|
546
|
+
T.type_alias do
|
547
|
+
T.all(
|
548
|
+
Symbol,
|
549
|
+
Lithic::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::Attribute
|
550
|
+
)
|
551
|
+
end
|
552
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
553
|
+
|
554
|
+
MCC =
|
555
|
+
T.let(
|
556
|
+
:MCC,
|
557
|
+
Lithic::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::Attribute::TaggedSymbol
|
558
|
+
)
|
559
|
+
COUNTRY =
|
560
|
+
T.let(
|
561
|
+
:COUNTRY,
|
562
|
+
Lithic::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::Attribute::TaggedSymbol
|
563
|
+
)
|
564
|
+
CURRENCY =
|
565
|
+
T.let(
|
566
|
+
:CURRENCY,
|
567
|
+
Lithic::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::Attribute::TaggedSymbol
|
568
|
+
)
|
569
|
+
MERCHANT_ID =
|
570
|
+
T.let(
|
571
|
+
:MERCHANT_ID,
|
572
|
+
Lithic::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::Attribute::TaggedSymbol
|
573
|
+
)
|
574
|
+
DESCRIPTOR =
|
575
|
+
T.let(
|
576
|
+
:DESCRIPTOR,
|
577
|
+
Lithic::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::Attribute::TaggedSymbol
|
578
|
+
)
|
579
|
+
TRANSACTION_AMOUNT =
|
580
|
+
T.let(
|
581
|
+
:TRANSACTION_AMOUNT,
|
582
|
+
Lithic::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::Attribute::TaggedSymbol
|
583
|
+
)
|
584
|
+
RISK_SCORE =
|
585
|
+
T.let(
|
586
|
+
:RISK_SCORE,
|
587
|
+
Lithic::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::Attribute::TaggedSymbol
|
588
|
+
)
|
589
|
+
MESSAGE_CATEGORY =
|
590
|
+
T.let(
|
591
|
+
:MESSAGE_CATEGORY,
|
592
|
+
Lithic::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::Attribute::TaggedSymbol
|
593
|
+
)
|
594
|
+
|
595
|
+
sig do
|
596
|
+
override.returns(
|
597
|
+
T::Array[
|
598
|
+
Lithic::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::Attribute::TaggedSymbol
|
599
|
+
]
|
600
|
+
)
|
601
|
+
end
|
602
|
+
def self.values
|
603
|
+
end
|
604
|
+
end
|
605
|
+
|
606
|
+
# The operation to apply to the attribute
|
607
|
+
module Operation
|
608
|
+
extend Lithic::Internal::Type::Enum
|
609
|
+
|
610
|
+
TaggedSymbol =
|
611
|
+
T.type_alias do
|
612
|
+
T.all(
|
613
|
+
Symbol,
|
614
|
+
Lithic::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::Operation
|
615
|
+
)
|
616
|
+
end
|
617
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
618
|
+
|
619
|
+
IS_ONE_OF =
|
620
|
+
T.let(
|
621
|
+
:IS_ONE_OF,
|
622
|
+
Lithic::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::Operation::TaggedSymbol
|
623
|
+
)
|
624
|
+
IS_NOT_ONE_OF =
|
625
|
+
T.let(
|
626
|
+
:IS_NOT_ONE_OF,
|
627
|
+
Lithic::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::Operation::TaggedSymbol
|
628
|
+
)
|
629
|
+
MATCHES =
|
630
|
+
T.let(
|
631
|
+
:MATCHES,
|
632
|
+
Lithic::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::Operation::TaggedSymbol
|
633
|
+
)
|
634
|
+
DOES_NOT_MATCH =
|
635
|
+
T.let(
|
636
|
+
:DOES_NOT_MATCH,
|
637
|
+
Lithic::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::Operation::TaggedSymbol
|
638
|
+
)
|
639
|
+
IS_GREATER_THAN =
|
640
|
+
T.let(
|
641
|
+
:IS_GREATER_THAN,
|
642
|
+
Lithic::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::Operation::TaggedSymbol
|
643
|
+
)
|
644
|
+
IS_LESS_THAN =
|
645
|
+
T.let(
|
646
|
+
:IS_LESS_THAN,
|
647
|
+
Lithic::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::Operation::TaggedSymbol
|
648
|
+
)
|
649
|
+
|
650
|
+
sig do
|
651
|
+
override.returns(
|
652
|
+
T::Array[
|
653
|
+
Lithic::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::Operation::TaggedSymbol
|
654
|
+
]
|
655
|
+
)
|
656
|
+
end
|
657
|
+
def self.values
|
658
|
+
end
|
659
|
+
end
|
660
|
+
|
661
|
+
# A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
|
662
|
+
module Value
|
663
|
+
extend Lithic::Internal::Type::Union
|
664
|
+
|
665
|
+
Variants =
|
666
|
+
T.type_alias { T.any(String, Integer, T::Array[String]) }
|
667
|
+
|
668
|
+
sig do
|
669
|
+
override.returns(
|
670
|
+
T::Array[
|
671
|
+
Lithic::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::Value::Variants
|
672
|
+
]
|
673
|
+
)
|
674
|
+
end
|
675
|
+
def self.variants
|
676
|
+
end
|
677
|
+
|
678
|
+
StringArray =
|
679
|
+
T.let(
|
680
|
+
Lithic::Internal::Type::ArrayOf[String],
|
681
|
+
Lithic::Internal::Type::Converter
|
682
|
+
)
|
683
|
+
end
|
684
|
+
end
|
685
|
+
end
|
686
|
+
|
264
687
|
sig do
|
265
688
|
override.returns(
|
266
689
|
T::Array[Lithic::AuthRules::V2CreateParams::Parameters::Variants]
|
@@ -270,7 +693,13 @@ module Lithic
|
|
270
693
|
end
|
271
694
|
end
|
272
695
|
|
273
|
-
# The type of Auth Rule
|
696
|
+
# The type of Auth Rule. Effectively determines the event stream during which it
|
697
|
+
# will be evaluated.
|
698
|
+
#
|
699
|
+
# - `CONDITIONAL_BLOCK`: AUTHORIZATION event stream.
|
700
|
+
# - `VELOCITY_LIMIT`: AUTHORIZATION event stream.
|
701
|
+
# - `MERCHANT_LOCK`: AUTHORIZATION event stream.
|
702
|
+
# - `CONDITIONAL_3DS_ACTION`: THREE_DS_AUTHENTICATION event stream.
|
274
703
|
module Type
|
275
704
|
extend Lithic::Internal::Type::Enum
|
276
705
|
|
@@ -295,6 +724,11 @@ module Lithic
|
|
295
724
|
:MERCHANT_LOCK,
|
296
725
|
Lithic::AuthRules::V2CreateParams::Type::TaggedSymbol
|
297
726
|
)
|
727
|
+
CONDITIONAL_3DS_ACTION =
|
728
|
+
T.let(
|
729
|
+
:CONDITIONAL_3DS_ACTION,
|
730
|
+
Lithic::AuthRules::V2CreateParams::Type::TaggedSymbol
|
731
|
+
)
|
298
732
|
|
299
733
|
sig do
|
300
734
|
override.returns(
|