lithic 0.1.0.pre.alpha.37 → 0.1.0.pre.alpha.39
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 +17 -0
- data/README.md +1 -1
- data/lib/lithic/models/auth_rules/conditional_3ds_action_parameters.rb +182 -0
- data/lib/lithic/models/auth_rules/merchant_lock_parameters.rb +62 -0
- data/lib/lithic/models/auth_rules/v2_apply_response.rb +12 -476
- data/lib/lithic/models/auth_rules/v2_create_params.rb +5 -245
- data/lib/lithic/models/auth_rules/v2_create_response.rb +12 -476
- data/lib/lithic/models/auth_rules/v2_draft_params.rb +5 -245
- data/lib/lithic/models/auth_rules/v2_draft_response.rb +12 -476
- data/lib/lithic/models/auth_rules/v2_list_response.rb +12 -476
- data/lib/lithic/models/auth_rules/v2_promote_response.rb +12 -476
- data/lib/lithic/models/auth_rules/v2_retrieve_response.rb +12 -480
- data/lib/lithic/models/auth_rules/v2_update_response.rb +12 -476
- data/lib/lithic/models/event.rb +2 -0
- data/lib/lithic/models/event_list_params.rb +2 -0
- data/lib/lithic/models/event_subscription.rb +2 -0
- data/lib/lithic/models/events/subscription_create_params.rb +2 -0
- data/lib/lithic/models/events/subscription_send_simulated_example_params.rb +2 -0
- data/lib/lithic/models/events/subscription_update_params.rb +2 -0
- data/lib/lithic/models/reports/settlement/network_total_list_response.rb +16 -6
- data/lib/lithic/models/reports/settlement/network_total_retrieve_response.rb +16 -6
- data/lib/lithic/resources/auth_rules/v2.rb +2 -2
- data/lib/lithic/version.rb +1 -1
- data/lib/lithic.rb +2 -0
- data/rbi/lithic/models/auth_rules/conditional_3ds_action_parameters.rbi +412 -0
- data/rbi/lithic/models/auth_rules/merchant_lock_parameters.rbi +119 -0
- data/rbi/lithic/models/auth_rules/v2_apply_response.rbi +8 -1056
- data/rbi/lithic/models/auth_rules/v2_create_params.rbi +10 -534
- data/rbi/lithic/models/auth_rules/v2_create_response.rbi +8 -1056
- data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +8 -532
- data/rbi/lithic/models/auth_rules/v2_draft_response.rbi +8 -1056
- data/rbi/lithic/models/auth_rules/v2_list_response.rbi +8 -1056
- data/rbi/lithic/models/auth_rules/v2_promote_response.rbi +8 -1056
- data/rbi/lithic/models/auth_rules/v2_retrieve_response.rbi +8 -1056
- data/rbi/lithic/models/auth_rules/v2_update_response.rbi +8 -1056
- data/rbi/lithic/models/event.rbi +10 -0
- data/rbi/lithic/models/event_list_params.rbi +10 -0
- data/rbi/lithic/models/event_subscription.rbi +10 -0
- data/rbi/lithic/models/events/subscription_create_params.rbi +10 -0
- data/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +10 -0
- data/rbi/lithic/models/events/subscription_update_params.rbi +10 -0
- data/rbi/lithic/models/reports/settlement/network_total_list_response.rbi +21 -6
- data/rbi/lithic/models/reports/settlement/network_total_retrieve_response.rbi +21 -6
- data/rbi/lithic/resources/auth_rules/v2.rbi +4 -4
- data/sig/lithic/models/auth_rules/conditional_3ds_action_parameters.rbs +133 -0
- data/sig/lithic/models/auth_rules/merchant_lock_parameters.rbs +51 -0
- data/sig/lithic/models/auth_rules/v2_apply_response.rbs +4 -352
- data/sig/lithic/models/auth_rules/v2_create_params.rbs +2 -176
- data/sig/lithic/models/auth_rules/v2_create_response.rbs +4 -352
- data/sig/lithic/models/auth_rules/v2_draft_params.rbs +2 -176
- data/sig/lithic/models/auth_rules/v2_draft_response.rbs +4 -352
- data/sig/lithic/models/auth_rules/v2_list_response.rbs +4 -352
- data/sig/lithic/models/auth_rules/v2_promote_response.rbs +4 -352
- data/sig/lithic/models/auth_rules/v2_retrieve_response.rbs +4 -352
- data/sig/lithic/models/auth_rules/v2_update_response.rbs +4 -352
- data/sig/lithic/models/event.rbs +4 -0
- data/sig/lithic/models/event_list_params.rbs +4 -0
- data/sig/lithic/models/event_subscription.rbs +4 -0
- data/sig/lithic/models/events/subscription_create_params.rbs +4 -0
- data/sig/lithic/models/events/subscription_send_simulated_example_params.rbs +4 -0
- data/sig/lithic/models/events/subscription_update_params.rbs +4 -0
- data/sig/lithic/models/reports/settlement/network_total_list_response.rbs +7 -1
- data/sig/lithic/models/reports/settlement/network_total_retrieve_response.rbs +7 -1
- metadata +8 -2
@@ -210,8 +210,8 @@ module Lithic
|
|
210
210
|
T.any(
|
211
211
|
Lithic::AuthRules::ConditionalBlockParameters::OrHash,
|
212
212
|
Lithic::AuthRules::VelocityLimitParams::OrHash,
|
213
|
-
Lithic::
|
214
|
-
Lithic::
|
213
|
+
Lithic::AuthRules::MerchantLockParameters::OrHash,
|
214
|
+
Lithic::AuthRules::Conditional3DSActionParameters::OrHash
|
215
215
|
),
|
216
216
|
version: Integer
|
217
217
|
).returns(T.attached_class)
|
@@ -246,535 +246,11 @@ module Lithic
|
|
246
246
|
T.any(
|
247
247
|
Lithic::AuthRules::ConditionalBlockParameters,
|
248
248
|
Lithic::AuthRules::VelocityLimitParams,
|
249
|
-
Lithic::
|
250
|
-
Lithic::
|
249
|
+
Lithic::AuthRules::MerchantLockParameters,
|
250
|
+
Lithic::AuthRules::Conditional3DSActionParameters
|
251
251
|
)
|
252
252
|
end
|
253
253
|
|
254
|
-
class MerchantLockParameters < Lithic::Internal::Type::BaseModel
|
255
|
-
OrHash =
|
256
|
-
T.type_alias do
|
257
|
-
T.any(
|
258
|
-
Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::MerchantLockParameters,
|
259
|
-
Lithic::Internal::AnyHash
|
260
|
-
)
|
261
|
-
end
|
262
|
-
|
263
|
-
# A list of merchant locks defining specific merchants or groups of merchants
|
264
|
-
# (based on descriptors or IDs) that the lock applies to.
|
265
|
-
sig do
|
266
|
-
returns(
|
267
|
-
T::Array[
|
268
|
-
Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::MerchantLockParameters::Merchant
|
269
|
-
]
|
270
|
-
)
|
271
|
-
end
|
272
|
-
attr_accessor :merchants
|
273
|
-
|
274
|
-
sig do
|
275
|
-
params(
|
276
|
-
merchants:
|
277
|
-
T::Array[
|
278
|
-
Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::MerchantLockParameters::Merchant::OrHash
|
279
|
-
]
|
280
|
-
).returns(T.attached_class)
|
281
|
-
end
|
282
|
-
def self.new(
|
283
|
-
# A list of merchant locks defining specific merchants or groups of merchants
|
284
|
-
# (based on descriptors or IDs) that the lock applies to.
|
285
|
-
merchants:
|
286
|
-
)
|
287
|
-
end
|
288
|
-
|
289
|
-
sig do
|
290
|
-
override.returns(
|
291
|
-
{
|
292
|
-
merchants:
|
293
|
-
T::Array[
|
294
|
-
Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::MerchantLockParameters::Merchant
|
295
|
-
]
|
296
|
-
}
|
297
|
-
)
|
298
|
-
end
|
299
|
-
def to_hash
|
300
|
-
end
|
301
|
-
|
302
|
-
class Merchant < Lithic::Internal::Type::BaseModel
|
303
|
-
OrHash =
|
304
|
-
T.type_alias do
|
305
|
-
T.any(
|
306
|
-
Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::MerchantLockParameters::Merchant,
|
307
|
-
Lithic::Internal::AnyHash
|
308
|
-
)
|
309
|
-
end
|
310
|
-
|
311
|
-
# A comment or explanation about the merchant, used internally for rule management
|
312
|
-
# purposes.
|
313
|
-
sig { returns(T.nilable(String)) }
|
314
|
-
attr_reader :comment
|
315
|
-
|
316
|
-
sig { params(comment: String).void }
|
317
|
-
attr_writer :comment
|
318
|
-
|
319
|
-
# Short description of the merchant, often used to provide more human-readable
|
320
|
-
# context about the transaction merchant. This is typically the name or label
|
321
|
-
# shown on transaction summaries.
|
322
|
-
sig { returns(T.nilable(String)) }
|
323
|
-
attr_reader :descriptor
|
324
|
-
|
325
|
-
sig { params(descriptor: String).void }
|
326
|
-
attr_writer :descriptor
|
327
|
-
|
328
|
-
# Unique alphanumeric identifier for the payment card acceptor (merchant). This
|
329
|
-
# attribute specifies the merchant entity that will be locked or referenced for
|
330
|
-
# authorization rules.
|
331
|
-
sig { returns(T.nilable(String)) }
|
332
|
-
attr_reader :merchant_id
|
333
|
-
|
334
|
-
sig { params(merchant_id: String).void }
|
335
|
-
attr_writer :merchant_id
|
336
|
-
|
337
|
-
# Represents a specific merchant lock based on their ID or descriptor. Each
|
338
|
-
# merchant object allows transaction rules to work at a granular level and
|
339
|
-
# requires at least one of merchant_id or descriptor.
|
340
|
-
sig do
|
341
|
-
params(
|
342
|
-
comment: String,
|
343
|
-
descriptor: String,
|
344
|
-
merchant_id: String
|
345
|
-
).returns(T.attached_class)
|
346
|
-
end
|
347
|
-
def self.new(
|
348
|
-
# A comment or explanation about the merchant, used internally for rule management
|
349
|
-
# purposes.
|
350
|
-
comment: nil,
|
351
|
-
# Short description of the merchant, often used to provide more human-readable
|
352
|
-
# context about the transaction merchant. This is typically the name or label
|
353
|
-
# shown on transaction summaries.
|
354
|
-
descriptor: nil,
|
355
|
-
# Unique alphanumeric identifier for the payment card acceptor (merchant). This
|
356
|
-
# attribute specifies the merchant entity that will be locked or referenced for
|
357
|
-
# authorization rules.
|
358
|
-
merchant_id: nil
|
359
|
-
)
|
360
|
-
end
|
361
|
-
|
362
|
-
sig do
|
363
|
-
override.returns(
|
364
|
-
{ comment: String, descriptor: String, merchant_id: String }
|
365
|
-
)
|
366
|
-
end
|
367
|
-
def to_hash
|
368
|
-
end
|
369
|
-
end
|
370
|
-
end
|
371
|
-
|
372
|
-
class Conditional3DSActionParameters < Lithic::Internal::Type::BaseModel
|
373
|
-
OrHash =
|
374
|
-
T.type_alias do
|
375
|
-
T.any(
|
376
|
-
Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::Conditional3DSActionParameters,
|
377
|
-
Lithic::Internal::AnyHash
|
378
|
-
)
|
379
|
-
end
|
380
|
-
|
381
|
-
# The action to take if the conditions are met.
|
382
|
-
sig do
|
383
|
-
returns(
|
384
|
-
Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Action::TaggedSymbol
|
385
|
-
)
|
386
|
-
end
|
387
|
-
attr_accessor :action
|
388
|
-
|
389
|
-
sig do
|
390
|
-
returns(
|
391
|
-
T::Array[
|
392
|
-
Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition
|
393
|
-
]
|
394
|
-
)
|
395
|
-
end
|
396
|
-
attr_accessor :conditions
|
397
|
-
|
398
|
-
sig do
|
399
|
-
params(
|
400
|
-
action:
|
401
|
-
Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Action::OrSymbol,
|
402
|
-
conditions:
|
403
|
-
T::Array[
|
404
|
-
Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::OrHash
|
405
|
-
]
|
406
|
-
).returns(T.attached_class)
|
407
|
-
end
|
408
|
-
def self.new(
|
409
|
-
# The action to take if the conditions are met.
|
410
|
-
action:,
|
411
|
-
conditions:
|
412
|
-
)
|
413
|
-
end
|
414
|
-
|
415
|
-
sig do
|
416
|
-
override.returns(
|
417
|
-
{
|
418
|
-
action:
|
419
|
-
Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Action::TaggedSymbol,
|
420
|
-
conditions:
|
421
|
-
T::Array[
|
422
|
-
Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition
|
423
|
-
]
|
424
|
-
}
|
425
|
-
)
|
426
|
-
end
|
427
|
-
def to_hash
|
428
|
-
end
|
429
|
-
|
430
|
-
# The action to take if the conditions are met.
|
431
|
-
module Action
|
432
|
-
extend Lithic::Internal::Type::Enum
|
433
|
-
|
434
|
-
TaggedSymbol =
|
435
|
-
T.type_alias do
|
436
|
-
T.all(
|
437
|
-
Symbol,
|
438
|
-
Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Action
|
439
|
-
)
|
440
|
-
end
|
441
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
442
|
-
|
443
|
-
DECLINE =
|
444
|
-
T.let(
|
445
|
-
:DECLINE,
|
446
|
-
Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Action::TaggedSymbol
|
447
|
-
)
|
448
|
-
CHALLENGE =
|
449
|
-
T.let(
|
450
|
-
:CHALLENGE,
|
451
|
-
Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Action::TaggedSymbol
|
452
|
-
)
|
453
|
-
|
454
|
-
sig do
|
455
|
-
override.returns(
|
456
|
-
T::Array[
|
457
|
-
Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Action::TaggedSymbol
|
458
|
-
]
|
459
|
-
)
|
460
|
-
end
|
461
|
-
def self.values
|
462
|
-
end
|
463
|
-
end
|
464
|
-
|
465
|
-
class Condition < Lithic::Internal::Type::BaseModel
|
466
|
-
OrHash =
|
467
|
-
T.type_alias do
|
468
|
-
T.any(
|
469
|
-
Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition,
|
470
|
-
Lithic::Internal::AnyHash
|
471
|
-
)
|
472
|
-
end
|
473
|
-
|
474
|
-
# The attribute to target.
|
475
|
-
#
|
476
|
-
# The following attributes may be targeted:
|
477
|
-
#
|
478
|
-
# - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a
|
479
|
-
# business by the types of goods or services it provides.
|
480
|
-
# - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all
|
481
|
-
# ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for
|
482
|
-
# Netherlands Antilles.
|
483
|
-
# - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of
|
484
|
-
# the transaction.
|
485
|
-
# - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor
|
486
|
-
# (merchant).
|
487
|
-
# - `DESCRIPTOR`: Short description of card acceptor.
|
488
|
-
# - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
|
489
|
-
# fee field in the settlement/cardholder billing currency. This is the amount
|
490
|
-
# the issuer should authorize against unless the issuer is paying the acquirer
|
491
|
-
# fee on behalf of the cardholder.
|
492
|
-
# - `RISK_SCORE`: Network-provided score assessing risk level associated with a
|
493
|
-
# given authentication. Scores are on a range of 0-999, with 0 representing the
|
494
|
-
# lowest risk and 999 representing the highest risk. For Visa transactions,
|
495
|
-
# where the raw score has a range of 0-99, Lithic will normalize the score by
|
496
|
-
# multiplying the raw score by 10x.
|
497
|
-
# - `MESSAGE_CATEGORY`: The category of the authentication being processed.
|
498
|
-
sig do
|
499
|
-
returns(
|
500
|
-
T.nilable(
|
501
|
-
Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::Attribute::TaggedSymbol
|
502
|
-
)
|
503
|
-
)
|
504
|
-
end
|
505
|
-
attr_reader :attribute
|
506
|
-
|
507
|
-
sig do
|
508
|
-
params(
|
509
|
-
attribute:
|
510
|
-
Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::Attribute::OrSymbol
|
511
|
-
).void
|
512
|
-
end
|
513
|
-
attr_writer :attribute
|
514
|
-
|
515
|
-
# The operation to apply to the attribute
|
516
|
-
sig do
|
517
|
-
returns(
|
518
|
-
T.nilable(
|
519
|
-
Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::Operation::TaggedSymbol
|
520
|
-
)
|
521
|
-
)
|
522
|
-
end
|
523
|
-
attr_reader :operation
|
524
|
-
|
525
|
-
sig do
|
526
|
-
params(
|
527
|
-
operation:
|
528
|
-
Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::Operation::OrSymbol
|
529
|
-
).void
|
530
|
-
end
|
531
|
-
attr_writer :operation
|
532
|
-
|
533
|
-
# A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
|
534
|
-
sig do
|
535
|
-
returns(
|
536
|
-
T.nilable(
|
537
|
-
Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::Value::Variants
|
538
|
-
)
|
539
|
-
)
|
540
|
-
end
|
541
|
-
attr_reader :value
|
542
|
-
|
543
|
-
sig do
|
544
|
-
params(
|
545
|
-
value:
|
546
|
-
Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::Value::Variants
|
547
|
-
).void
|
548
|
-
end
|
549
|
-
attr_writer :value
|
550
|
-
|
551
|
-
sig do
|
552
|
-
params(
|
553
|
-
attribute:
|
554
|
-
Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::Attribute::OrSymbol,
|
555
|
-
operation:
|
556
|
-
Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::Operation::OrSymbol,
|
557
|
-
value:
|
558
|
-
Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::Value::Variants
|
559
|
-
).returns(T.attached_class)
|
560
|
-
end
|
561
|
-
def self.new(
|
562
|
-
# The attribute to target.
|
563
|
-
#
|
564
|
-
# The following attributes may be targeted:
|
565
|
-
#
|
566
|
-
# - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a
|
567
|
-
# business by the types of goods or services it provides.
|
568
|
-
# - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all
|
569
|
-
# ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for
|
570
|
-
# Netherlands Antilles.
|
571
|
-
# - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of
|
572
|
-
# the transaction.
|
573
|
-
# - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor
|
574
|
-
# (merchant).
|
575
|
-
# - `DESCRIPTOR`: Short description of card acceptor.
|
576
|
-
# - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
|
577
|
-
# fee field in the settlement/cardholder billing currency. This is the amount
|
578
|
-
# the issuer should authorize against unless the issuer is paying the acquirer
|
579
|
-
# fee on behalf of the cardholder.
|
580
|
-
# - `RISK_SCORE`: Network-provided score assessing risk level associated with a
|
581
|
-
# given authentication. Scores are on a range of 0-999, with 0 representing the
|
582
|
-
# lowest risk and 999 representing the highest risk. For Visa transactions,
|
583
|
-
# where the raw score has a range of 0-99, Lithic will normalize the score by
|
584
|
-
# multiplying the raw score by 10x.
|
585
|
-
# - `MESSAGE_CATEGORY`: The category of the authentication being processed.
|
586
|
-
attribute: nil,
|
587
|
-
# The operation to apply to the attribute
|
588
|
-
operation: nil,
|
589
|
-
# A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
|
590
|
-
value: nil
|
591
|
-
)
|
592
|
-
end
|
593
|
-
|
594
|
-
sig do
|
595
|
-
override.returns(
|
596
|
-
{
|
597
|
-
attribute:
|
598
|
-
Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::Attribute::TaggedSymbol,
|
599
|
-
operation:
|
600
|
-
Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::Operation::TaggedSymbol,
|
601
|
-
value:
|
602
|
-
Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::Value::Variants
|
603
|
-
}
|
604
|
-
)
|
605
|
-
end
|
606
|
-
def to_hash
|
607
|
-
end
|
608
|
-
|
609
|
-
# The attribute to target.
|
610
|
-
#
|
611
|
-
# The following attributes may be targeted:
|
612
|
-
#
|
613
|
-
# - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a
|
614
|
-
# business by the types of goods or services it provides.
|
615
|
-
# - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all
|
616
|
-
# ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for
|
617
|
-
# Netherlands Antilles.
|
618
|
-
# - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of
|
619
|
-
# the transaction.
|
620
|
-
# - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor
|
621
|
-
# (merchant).
|
622
|
-
# - `DESCRIPTOR`: Short description of card acceptor.
|
623
|
-
# - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
|
624
|
-
# fee field in the settlement/cardholder billing currency. This is the amount
|
625
|
-
# the issuer should authorize against unless the issuer is paying the acquirer
|
626
|
-
# fee on behalf of the cardholder.
|
627
|
-
# - `RISK_SCORE`: Network-provided score assessing risk level associated with a
|
628
|
-
# given authentication. Scores are on a range of 0-999, with 0 representing the
|
629
|
-
# lowest risk and 999 representing the highest risk. For Visa transactions,
|
630
|
-
# where the raw score has a range of 0-99, Lithic will normalize the score by
|
631
|
-
# multiplying the raw score by 10x.
|
632
|
-
# - `MESSAGE_CATEGORY`: The category of the authentication being processed.
|
633
|
-
module Attribute
|
634
|
-
extend Lithic::Internal::Type::Enum
|
635
|
-
|
636
|
-
TaggedSymbol =
|
637
|
-
T.type_alias do
|
638
|
-
T.all(
|
639
|
-
Symbol,
|
640
|
-
Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::Attribute
|
641
|
-
)
|
642
|
-
end
|
643
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
644
|
-
|
645
|
-
MCC =
|
646
|
-
T.let(
|
647
|
-
:MCC,
|
648
|
-
Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::Attribute::TaggedSymbol
|
649
|
-
)
|
650
|
-
COUNTRY =
|
651
|
-
T.let(
|
652
|
-
:COUNTRY,
|
653
|
-
Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::Attribute::TaggedSymbol
|
654
|
-
)
|
655
|
-
CURRENCY =
|
656
|
-
T.let(
|
657
|
-
:CURRENCY,
|
658
|
-
Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::Attribute::TaggedSymbol
|
659
|
-
)
|
660
|
-
MERCHANT_ID =
|
661
|
-
T.let(
|
662
|
-
:MERCHANT_ID,
|
663
|
-
Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::Attribute::TaggedSymbol
|
664
|
-
)
|
665
|
-
DESCRIPTOR =
|
666
|
-
T.let(
|
667
|
-
:DESCRIPTOR,
|
668
|
-
Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::Attribute::TaggedSymbol
|
669
|
-
)
|
670
|
-
TRANSACTION_AMOUNT =
|
671
|
-
T.let(
|
672
|
-
:TRANSACTION_AMOUNT,
|
673
|
-
Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::Attribute::TaggedSymbol
|
674
|
-
)
|
675
|
-
RISK_SCORE =
|
676
|
-
T.let(
|
677
|
-
:RISK_SCORE,
|
678
|
-
Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::Attribute::TaggedSymbol
|
679
|
-
)
|
680
|
-
MESSAGE_CATEGORY =
|
681
|
-
T.let(
|
682
|
-
:MESSAGE_CATEGORY,
|
683
|
-
Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::Attribute::TaggedSymbol
|
684
|
-
)
|
685
|
-
|
686
|
-
sig do
|
687
|
-
override.returns(
|
688
|
-
T::Array[
|
689
|
-
Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::Attribute::TaggedSymbol
|
690
|
-
]
|
691
|
-
)
|
692
|
-
end
|
693
|
-
def self.values
|
694
|
-
end
|
695
|
-
end
|
696
|
-
|
697
|
-
# The operation to apply to the attribute
|
698
|
-
module Operation
|
699
|
-
extend Lithic::Internal::Type::Enum
|
700
|
-
|
701
|
-
TaggedSymbol =
|
702
|
-
T.type_alias do
|
703
|
-
T.all(
|
704
|
-
Symbol,
|
705
|
-
Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::Operation
|
706
|
-
)
|
707
|
-
end
|
708
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
709
|
-
|
710
|
-
IS_ONE_OF =
|
711
|
-
T.let(
|
712
|
-
:IS_ONE_OF,
|
713
|
-
Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::Operation::TaggedSymbol
|
714
|
-
)
|
715
|
-
IS_NOT_ONE_OF =
|
716
|
-
T.let(
|
717
|
-
:IS_NOT_ONE_OF,
|
718
|
-
Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::Operation::TaggedSymbol
|
719
|
-
)
|
720
|
-
MATCHES =
|
721
|
-
T.let(
|
722
|
-
:MATCHES,
|
723
|
-
Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::Operation::TaggedSymbol
|
724
|
-
)
|
725
|
-
DOES_NOT_MATCH =
|
726
|
-
T.let(
|
727
|
-
:DOES_NOT_MATCH,
|
728
|
-
Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::Operation::TaggedSymbol
|
729
|
-
)
|
730
|
-
IS_GREATER_THAN =
|
731
|
-
T.let(
|
732
|
-
:IS_GREATER_THAN,
|
733
|
-
Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::Operation::TaggedSymbol
|
734
|
-
)
|
735
|
-
IS_LESS_THAN =
|
736
|
-
T.let(
|
737
|
-
:IS_LESS_THAN,
|
738
|
-
Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::Operation::TaggedSymbol
|
739
|
-
)
|
740
|
-
|
741
|
-
sig do
|
742
|
-
override.returns(
|
743
|
-
T::Array[
|
744
|
-
Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::Operation::TaggedSymbol
|
745
|
-
]
|
746
|
-
)
|
747
|
-
end
|
748
|
-
def self.values
|
749
|
-
end
|
750
|
-
end
|
751
|
-
|
752
|
-
# A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
|
753
|
-
module Value
|
754
|
-
extend Lithic::Internal::Type::Union
|
755
|
-
|
756
|
-
Variants =
|
757
|
-
T.type_alias { T.any(String, Integer, T::Array[String]) }
|
758
|
-
|
759
|
-
sig do
|
760
|
-
override.returns(
|
761
|
-
T::Array[
|
762
|
-
Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::Value::Variants
|
763
|
-
]
|
764
|
-
)
|
765
|
-
end
|
766
|
-
def self.variants
|
767
|
-
end
|
768
|
-
|
769
|
-
StringArray =
|
770
|
-
T.let(
|
771
|
-
Lithic::Internal::Type::ArrayOf[String],
|
772
|
-
Lithic::Internal::Type::Converter
|
773
|
-
)
|
774
|
-
end
|
775
|
-
end
|
776
|
-
end
|
777
|
-
|
778
254
|
sig do
|
779
255
|
override.returns(
|
780
256
|
T::Array[
|
@@ -815,8 +291,8 @@ module Lithic
|
|
815
291
|
T.any(
|
816
292
|
Lithic::AuthRules::ConditionalBlockParameters::OrHash,
|
817
293
|
Lithic::AuthRules::VelocityLimitParams::OrHash,
|
818
|
-
Lithic::
|
819
|
-
Lithic::
|
294
|
+
Lithic::AuthRules::MerchantLockParameters::OrHash,
|
295
|
+
Lithic::AuthRules::Conditional3DSActionParameters::OrHash
|
820
296
|
),
|
821
297
|
version: Integer
|
822
298
|
).returns(T.attached_class)
|
@@ -851,535 +327,11 @@ module Lithic
|
|
851
327
|
T.any(
|
852
328
|
Lithic::AuthRules::ConditionalBlockParameters,
|
853
329
|
Lithic::AuthRules::VelocityLimitParams,
|
854
|
-
Lithic::
|
855
|
-
Lithic::
|
330
|
+
Lithic::AuthRules::MerchantLockParameters,
|
331
|
+
Lithic::AuthRules::Conditional3DSActionParameters
|
856
332
|
)
|
857
333
|
end
|
858
334
|
|
859
|
-
class MerchantLockParameters < Lithic::Internal::Type::BaseModel
|
860
|
-
OrHash =
|
861
|
-
T.type_alias do
|
862
|
-
T.any(
|
863
|
-
Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::MerchantLockParameters,
|
864
|
-
Lithic::Internal::AnyHash
|
865
|
-
)
|
866
|
-
end
|
867
|
-
|
868
|
-
# A list of merchant locks defining specific merchants or groups of merchants
|
869
|
-
# (based on descriptors or IDs) that the lock applies to.
|
870
|
-
sig do
|
871
|
-
returns(
|
872
|
-
T::Array[
|
873
|
-
Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::MerchantLockParameters::Merchant
|
874
|
-
]
|
875
|
-
)
|
876
|
-
end
|
877
|
-
attr_accessor :merchants
|
878
|
-
|
879
|
-
sig do
|
880
|
-
params(
|
881
|
-
merchants:
|
882
|
-
T::Array[
|
883
|
-
Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::MerchantLockParameters::Merchant::OrHash
|
884
|
-
]
|
885
|
-
).returns(T.attached_class)
|
886
|
-
end
|
887
|
-
def self.new(
|
888
|
-
# A list of merchant locks defining specific merchants or groups of merchants
|
889
|
-
# (based on descriptors or IDs) that the lock applies to.
|
890
|
-
merchants:
|
891
|
-
)
|
892
|
-
end
|
893
|
-
|
894
|
-
sig do
|
895
|
-
override.returns(
|
896
|
-
{
|
897
|
-
merchants:
|
898
|
-
T::Array[
|
899
|
-
Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::MerchantLockParameters::Merchant
|
900
|
-
]
|
901
|
-
}
|
902
|
-
)
|
903
|
-
end
|
904
|
-
def to_hash
|
905
|
-
end
|
906
|
-
|
907
|
-
class Merchant < Lithic::Internal::Type::BaseModel
|
908
|
-
OrHash =
|
909
|
-
T.type_alias do
|
910
|
-
T.any(
|
911
|
-
Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::MerchantLockParameters::Merchant,
|
912
|
-
Lithic::Internal::AnyHash
|
913
|
-
)
|
914
|
-
end
|
915
|
-
|
916
|
-
# A comment or explanation about the merchant, used internally for rule management
|
917
|
-
# purposes.
|
918
|
-
sig { returns(T.nilable(String)) }
|
919
|
-
attr_reader :comment
|
920
|
-
|
921
|
-
sig { params(comment: String).void }
|
922
|
-
attr_writer :comment
|
923
|
-
|
924
|
-
# Short description of the merchant, often used to provide more human-readable
|
925
|
-
# context about the transaction merchant. This is typically the name or label
|
926
|
-
# shown on transaction summaries.
|
927
|
-
sig { returns(T.nilable(String)) }
|
928
|
-
attr_reader :descriptor
|
929
|
-
|
930
|
-
sig { params(descriptor: String).void }
|
931
|
-
attr_writer :descriptor
|
932
|
-
|
933
|
-
# Unique alphanumeric identifier for the payment card acceptor (merchant). This
|
934
|
-
# attribute specifies the merchant entity that will be locked or referenced for
|
935
|
-
# authorization rules.
|
936
|
-
sig { returns(T.nilable(String)) }
|
937
|
-
attr_reader :merchant_id
|
938
|
-
|
939
|
-
sig { params(merchant_id: String).void }
|
940
|
-
attr_writer :merchant_id
|
941
|
-
|
942
|
-
# Represents a specific merchant lock based on their ID or descriptor. Each
|
943
|
-
# merchant object allows transaction rules to work at a granular level and
|
944
|
-
# requires at least one of merchant_id or descriptor.
|
945
|
-
sig do
|
946
|
-
params(
|
947
|
-
comment: String,
|
948
|
-
descriptor: String,
|
949
|
-
merchant_id: String
|
950
|
-
).returns(T.attached_class)
|
951
|
-
end
|
952
|
-
def self.new(
|
953
|
-
# A comment or explanation about the merchant, used internally for rule management
|
954
|
-
# purposes.
|
955
|
-
comment: nil,
|
956
|
-
# Short description of the merchant, often used to provide more human-readable
|
957
|
-
# context about the transaction merchant. This is typically the name or label
|
958
|
-
# shown on transaction summaries.
|
959
|
-
descriptor: nil,
|
960
|
-
# Unique alphanumeric identifier for the payment card acceptor (merchant). This
|
961
|
-
# attribute specifies the merchant entity that will be locked or referenced for
|
962
|
-
# authorization rules.
|
963
|
-
merchant_id: nil
|
964
|
-
)
|
965
|
-
end
|
966
|
-
|
967
|
-
sig do
|
968
|
-
override.returns(
|
969
|
-
{ comment: String, descriptor: String, merchant_id: String }
|
970
|
-
)
|
971
|
-
end
|
972
|
-
def to_hash
|
973
|
-
end
|
974
|
-
end
|
975
|
-
end
|
976
|
-
|
977
|
-
class Conditional3DSActionParameters < Lithic::Internal::Type::BaseModel
|
978
|
-
OrHash =
|
979
|
-
T.type_alias do
|
980
|
-
T.any(
|
981
|
-
Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::Conditional3DSActionParameters,
|
982
|
-
Lithic::Internal::AnyHash
|
983
|
-
)
|
984
|
-
end
|
985
|
-
|
986
|
-
# The action to take if the conditions are met.
|
987
|
-
sig do
|
988
|
-
returns(
|
989
|
-
Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Action::TaggedSymbol
|
990
|
-
)
|
991
|
-
end
|
992
|
-
attr_accessor :action
|
993
|
-
|
994
|
-
sig do
|
995
|
-
returns(
|
996
|
-
T::Array[
|
997
|
-
Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition
|
998
|
-
]
|
999
|
-
)
|
1000
|
-
end
|
1001
|
-
attr_accessor :conditions
|
1002
|
-
|
1003
|
-
sig do
|
1004
|
-
params(
|
1005
|
-
action:
|
1006
|
-
Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Action::OrSymbol,
|
1007
|
-
conditions:
|
1008
|
-
T::Array[
|
1009
|
-
Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::OrHash
|
1010
|
-
]
|
1011
|
-
).returns(T.attached_class)
|
1012
|
-
end
|
1013
|
-
def self.new(
|
1014
|
-
# The action to take if the conditions are met.
|
1015
|
-
action:,
|
1016
|
-
conditions:
|
1017
|
-
)
|
1018
|
-
end
|
1019
|
-
|
1020
|
-
sig do
|
1021
|
-
override.returns(
|
1022
|
-
{
|
1023
|
-
action:
|
1024
|
-
Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Action::TaggedSymbol,
|
1025
|
-
conditions:
|
1026
|
-
T::Array[
|
1027
|
-
Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition
|
1028
|
-
]
|
1029
|
-
}
|
1030
|
-
)
|
1031
|
-
end
|
1032
|
-
def to_hash
|
1033
|
-
end
|
1034
|
-
|
1035
|
-
# The action to take if the conditions are met.
|
1036
|
-
module Action
|
1037
|
-
extend Lithic::Internal::Type::Enum
|
1038
|
-
|
1039
|
-
TaggedSymbol =
|
1040
|
-
T.type_alias do
|
1041
|
-
T.all(
|
1042
|
-
Symbol,
|
1043
|
-
Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Action
|
1044
|
-
)
|
1045
|
-
end
|
1046
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
1047
|
-
|
1048
|
-
DECLINE =
|
1049
|
-
T.let(
|
1050
|
-
:DECLINE,
|
1051
|
-
Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Action::TaggedSymbol
|
1052
|
-
)
|
1053
|
-
CHALLENGE =
|
1054
|
-
T.let(
|
1055
|
-
:CHALLENGE,
|
1056
|
-
Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Action::TaggedSymbol
|
1057
|
-
)
|
1058
|
-
|
1059
|
-
sig do
|
1060
|
-
override.returns(
|
1061
|
-
T::Array[
|
1062
|
-
Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Action::TaggedSymbol
|
1063
|
-
]
|
1064
|
-
)
|
1065
|
-
end
|
1066
|
-
def self.values
|
1067
|
-
end
|
1068
|
-
end
|
1069
|
-
|
1070
|
-
class Condition < Lithic::Internal::Type::BaseModel
|
1071
|
-
OrHash =
|
1072
|
-
T.type_alias do
|
1073
|
-
T.any(
|
1074
|
-
Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition,
|
1075
|
-
Lithic::Internal::AnyHash
|
1076
|
-
)
|
1077
|
-
end
|
1078
|
-
|
1079
|
-
# The attribute to target.
|
1080
|
-
#
|
1081
|
-
# The following attributes may be targeted:
|
1082
|
-
#
|
1083
|
-
# - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a
|
1084
|
-
# business by the types of goods or services it provides.
|
1085
|
-
# - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all
|
1086
|
-
# ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for
|
1087
|
-
# Netherlands Antilles.
|
1088
|
-
# - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of
|
1089
|
-
# the transaction.
|
1090
|
-
# - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor
|
1091
|
-
# (merchant).
|
1092
|
-
# - `DESCRIPTOR`: Short description of card acceptor.
|
1093
|
-
# - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
|
1094
|
-
# fee field in the settlement/cardholder billing currency. This is the amount
|
1095
|
-
# the issuer should authorize against unless the issuer is paying the acquirer
|
1096
|
-
# fee on behalf of the cardholder.
|
1097
|
-
# - `RISK_SCORE`: Network-provided score assessing risk level associated with a
|
1098
|
-
# given authentication. Scores are on a range of 0-999, with 0 representing the
|
1099
|
-
# lowest risk and 999 representing the highest risk. For Visa transactions,
|
1100
|
-
# where the raw score has a range of 0-99, Lithic will normalize the score by
|
1101
|
-
# multiplying the raw score by 10x.
|
1102
|
-
# - `MESSAGE_CATEGORY`: The category of the authentication being processed.
|
1103
|
-
sig do
|
1104
|
-
returns(
|
1105
|
-
T.nilable(
|
1106
|
-
Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::Attribute::TaggedSymbol
|
1107
|
-
)
|
1108
|
-
)
|
1109
|
-
end
|
1110
|
-
attr_reader :attribute
|
1111
|
-
|
1112
|
-
sig do
|
1113
|
-
params(
|
1114
|
-
attribute:
|
1115
|
-
Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::Attribute::OrSymbol
|
1116
|
-
).void
|
1117
|
-
end
|
1118
|
-
attr_writer :attribute
|
1119
|
-
|
1120
|
-
# The operation to apply to the attribute
|
1121
|
-
sig do
|
1122
|
-
returns(
|
1123
|
-
T.nilable(
|
1124
|
-
Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::Operation::TaggedSymbol
|
1125
|
-
)
|
1126
|
-
)
|
1127
|
-
end
|
1128
|
-
attr_reader :operation
|
1129
|
-
|
1130
|
-
sig do
|
1131
|
-
params(
|
1132
|
-
operation:
|
1133
|
-
Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::Operation::OrSymbol
|
1134
|
-
).void
|
1135
|
-
end
|
1136
|
-
attr_writer :operation
|
1137
|
-
|
1138
|
-
# A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
|
1139
|
-
sig do
|
1140
|
-
returns(
|
1141
|
-
T.nilable(
|
1142
|
-
Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::Value::Variants
|
1143
|
-
)
|
1144
|
-
)
|
1145
|
-
end
|
1146
|
-
attr_reader :value
|
1147
|
-
|
1148
|
-
sig do
|
1149
|
-
params(
|
1150
|
-
value:
|
1151
|
-
Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::Value::Variants
|
1152
|
-
).void
|
1153
|
-
end
|
1154
|
-
attr_writer :value
|
1155
|
-
|
1156
|
-
sig do
|
1157
|
-
params(
|
1158
|
-
attribute:
|
1159
|
-
Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::Attribute::OrSymbol,
|
1160
|
-
operation:
|
1161
|
-
Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::Operation::OrSymbol,
|
1162
|
-
value:
|
1163
|
-
Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::Value::Variants
|
1164
|
-
).returns(T.attached_class)
|
1165
|
-
end
|
1166
|
-
def self.new(
|
1167
|
-
# The attribute to target.
|
1168
|
-
#
|
1169
|
-
# The following attributes may be targeted:
|
1170
|
-
#
|
1171
|
-
# - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a
|
1172
|
-
# business by the types of goods or services it provides.
|
1173
|
-
# - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all
|
1174
|
-
# ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for
|
1175
|
-
# Netherlands Antilles.
|
1176
|
-
# - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of
|
1177
|
-
# the transaction.
|
1178
|
-
# - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor
|
1179
|
-
# (merchant).
|
1180
|
-
# - `DESCRIPTOR`: Short description of card acceptor.
|
1181
|
-
# - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
|
1182
|
-
# fee field in the settlement/cardholder billing currency. This is the amount
|
1183
|
-
# the issuer should authorize against unless the issuer is paying the acquirer
|
1184
|
-
# fee on behalf of the cardholder.
|
1185
|
-
# - `RISK_SCORE`: Network-provided score assessing risk level associated with a
|
1186
|
-
# given authentication. Scores are on a range of 0-999, with 0 representing the
|
1187
|
-
# lowest risk and 999 representing the highest risk. For Visa transactions,
|
1188
|
-
# where the raw score has a range of 0-99, Lithic will normalize the score by
|
1189
|
-
# multiplying the raw score by 10x.
|
1190
|
-
# - `MESSAGE_CATEGORY`: The category of the authentication being processed.
|
1191
|
-
attribute: nil,
|
1192
|
-
# The operation to apply to the attribute
|
1193
|
-
operation: nil,
|
1194
|
-
# A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
|
1195
|
-
value: nil
|
1196
|
-
)
|
1197
|
-
end
|
1198
|
-
|
1199
|
-
sig do
|
1200
|
-
override.returns(
|
1201
|
-
{
|
1202
|
-
attribute:
|
1203
|
-
Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::Attribute::TaggedSymbol,
|
1204
|
-
operation:
|
1205
|
-
Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::Operation::TaggedSymbol,
|
1206
|
-
value:
|
1207
|
-
Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::Value::Variants
|
1208
|
-
}
|
1209
|
-
)
|
1210
|
-
end
|
1211
|
-
def to_hash
|
1212
|
-
end
|
1213
|
-
|
1214
|
-
# The attribute to target.
|
1215
|
-
#
|
1216
|
-
# The following attributes may be targeted:
|
1217
|
-
#
|
1218
|
-
# - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a
|
1219
|
-
# business by the types of goods or services it provides.
|
1220
|
-
# - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all
|
1221
|
-
# ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for
|
1222
|
-
# Netherlands Antilles.
|
1223
|
-
# - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of
|
1224
|
-
# the transaction.
|
1225
|
-
# - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor
|
1226
|
-
# (merchant).
|
1227
|
-
# - `DESCRIPTOR`: Short description of card acceptor.
|
1228
|
-
# - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
|
1229
|
-
# fee field in the settlement/cardholder billing currency. This is the amount
|
1230
|
-
# the issuer should authorize against unless the issuer is paying the acquirer
|
1231
|
-
# fee on behalf of the cardholder.
|
1232
|
-
# - `RISK_SCORE`: Network-provided score assessing risk level associated with a
|
1233
|
-
# given authentication. Scores are on a range of 0-999, with 0 representing the
|
1234
|
-
# lowest risk and 999 representing the highest risk. For Visa transactions,
|
1235
|
-
# where the raw score has a range of 0-99, Lithic will normalize the score by
|
1236
|
-
# multiplying the raw score by 10x.
|
1237
|
-
# - `MESSAGE_CATEGORY`: The category of the authentication being processed.
|
1238
|
-
module Attribute
|
1239
|
-
extend Lithic::Internal::Type::Enum
|
1240
|
-
|
1241
|
-
TaggedSymbol =
|
1242
|
-
T.type_alias do
|
1243
|
-
T.all(
|
1244
|
-
Symbol,
|
1245
|
-
Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::Attribute
|
1246
|
-
)
|
1247
|
-
end
|
1248
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
1249
|
-
|
1250
|
-
MCC =
|
1251
|
-
T.let(
|
1252
|
-
:MCC,
|
1253
|
-
Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::Attribute::TaggedSymbol
|
1254
|
-
)
|
1255
|
-
COUNTRY =
|
1256
|
-
T.let(
|
1257
|
-
:COUNTRY,
|
1258
|
-
Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::Attribute::TaggedSymbol
|
1259
|
-
)
|
1260
|
-
CURRENCY =
|
1261
|
-
T.let(
|
1262
|
-
:CURRENCY,
|
1263
|
-
Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::Attribute::TaggedSymbol
|
1264
|
-
)
|
1265
|
-
MERCHANT_ID =
|
1266
|
-
T.let(
|
1267
|
-
:MERCHANT_ID,
|
1268
|
-
Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::Attribute::TaggedSymbol
|
1269
|
-
)
|
1270
|
-
DESCRIPTOR =
|
1271
|
-
T.let(
|
1272
|
-
:DESCRIPTOR,
|
1273
|
-
Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::Attribute::TaggedSymbol
|
1274
|
-
)
|
1275
|
-
TRANSACTION_AMOUNT =
|
1276
|
-
T.let(
|
1277
|
-
:TRANSACTION_AMOUNT,
|
1278
|
-
Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::Attribute::TaggedSymbol
|
1279
|
-
)
|
1280
|
-
RISK_SCORE =
|
1281
|
-
T.let(
|
1282
|
-
:RISK_SCORE,
|
1283
|
-
Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::Attribute::TaggedSymbol
|
1284
|
-
)
|
1285
|
-
MESSAGE_CATEGORY =
|
1286
|
-
T.let(
|
1287
|
-
:MESSAGE_CATEGORY,
|
1288
|
-
Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::Attribute::TaggedSymbol
|
1289
|
-
)
|
1290
|
-
|
1291
|
-
sig do
|
1292
|
-
override.returns(
|
1293
|
-
T::Array[
|
1294
|
-
Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::Attribute::TaggedSymbol
|
1295
|
-
]
|
1296
|
-
)
|
1297
|
-
end
|
1298
|
-
def self.values
|
1299
|
-
end
|
1300
|
-
end
|
1301
|
-
|
1302
|
-
# The operation to apply to the attribute
|
1303
|
-
module Operation
|
1304
|
-
extend Lithic::Internal::Type::Enum
|
1305
|
-
|
1306
|
-
TaggedSymbol =
|
1307
|
-
T.type_alias do
|
1308
|
-
T.all(
|
1309
|
-
Symbol,
|
1310
|
-
Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::Operation
|
1311
|
-
)
|
1312
|
-
end
|
1313
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
1314
|
-
|
1315
|
-
IS_ONE_OF =
|
1316
|
-
T.let(
|
1317
|
-
:IS_ONE_OF,
|
1318
|
-
Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::Operation::TaggedSymbol
|
1319
|
-
)
|
1320
|
-
IS_NOT_ONE_OF =
|
1321
|
-
T.let(
|
1322
|
-
:IS_NOT_ONE_OF,
|
1323
|
-
Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::Operation::TaggedSymbol
|
1324
|
-
)
|
1325
|
-
MATCHES =
|
1326
|
-
T.let(
|
1327
|
-
:MATCHES,
|
1328
|
-
Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::Operation::TaggedSymbol
|
1329
|
-
)
|
1330
|
-
DOES_NOT_MATCH =
|
1331
|
-
T.let(
|
1332
|
-
:DOES_NOT_MATCH,
|
1333
|
-
Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::Operation::TaggedSymbol
|
1334
|
-
)
|
1335
|
-
IS_GREATER_THAN =
|
1336
|
-
T.let(
|
1337
|
-
:IS_GREATER_THAN,
|
1338
|
-
Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::Operation::TaggedSymbol
|
1339
|
-
)
|
1340
|
-
IS_LESS_THAN =
|
1341
|
-
T.let(
|
1342
|
-
:IS_LESS_THAN,
|
1343
|
-
Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::Operation::TaggedSymbol
|
1344
|
-
)
|
1345
|
-
|
1346
|
-
sig do
|
1347
|
-
override.returns(
|
1348
|
-
T::Array[
|
1349
|
-
Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::Operation::TaggedSymbol
|
1350
|
-
]
|
1351
|
-
)
|
1352
|
-
end
|
1353
|
-
def self.values
|
1354
|
-
end
|
1355
|
-
end
|
1356
|
-
|
1357
|
-
# A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
|
1358
|
-
module Value
|
1359
|
-
extend Lithic::Internal::Type::Union
|
1360
|
-
|
1361
|
-
Variants =
|
1362
|
-
T.type_alias { T.any(String, Integer, T::Array[String]) }
|
1363
|
-
|
1364
|
-
sig do
|
1365
|
-
override.returns(
|
1366
|
-
T::Array[
|
1367
|
-
Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::Value::Variants
|
1368
|
-
]
|
1369
|
-
)
|
1370
|
-
end
|
1371
|
-
def self.variants
|
1372
|
-
end
|
1373
|
-
|
1374
|
-
StringArray =
|
1375
|
-
T.let(
|
1376
|
-
Lithic::Internal::Type::ArrayOf[String],
|
1377
|
-
Lithic::Internal::Type::Converter
|
1378
|
-
)
|
1379
|
-
end
|
1380
|
-
end
|
1381
|
-
end
|
1382
|
-
|
1383
335
|
sig do
|
1384
336
|
override.returns(
|
1385
337
|
T::Array[
|