lithic 0.1.0.pre.alpha.41 → 0.1.0.pre.alpha.42
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 +8 -0
- data/README.md +1 -1
- data/lib/lithic/models/account_activity_list_params.rb +10 -8
- data/lib/lithic/models/auth_rules/v2_apply_params.rb +13 -5
- data/lib/lithic/models/auth_rules/v2_apply_response.rb +510 -18
- data/lib/lithic/models/auth_rules/v2_create_params.rb +283 -16
- data/lib/lithic/models/auth_rules/v2_create_response.rb +510 -18
- data/lib/lithic/models/auth_rules/v2_draft_params.rb +239 -3
- data/lib/lithic/models/auth_rules/v2_draft_response.rb +510 -18
- data/lib/lithic/models/auth_rules/v2_list_params.rb +10 -1
- data/lib/lithic/models/auth_rules/v2_list_response.rb +510 -18
- data/lib/lithic/models/auth_rules/v2_promote_response.rb +510 -18
- data/lib/lithic/models/auth_rules/v2_retrieve_response.rb +510 -18
- data/lib/lithic/models/auth_rules/v2_update_params.rb +1 -9
- data/lib/lithic/models/auth_rules/v2_update_response.rb +510 -18
- data/lib/lithic/models/event.rb +6 -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/three_ds/authentication_retrieve_response.rb +28 -26
- data/lib/lithic/models/transaction.rb +4 -0
- data/lib/lithic/resources/account_activity.rb +2 -2
- data/lib/lithic/resources/auth_rules/v2/backtests.rb +3 -3
- data/lib/lithic/resources/auth_rules/v2.rb +19 -13
- data/lib/lithic/version.rb +1 -1
- data/rbi/lithic/models/account_activity_list_params.rbi +18 -30
- data/rbi/lithic/models/auth_rules/v2_apply_params.rbi +19 -5
- data/rbi/lithic/models/auth_rules/v2_apply_response.rbi +1128 -18
- data/rbi/lithic/models/auth_rules/v2_create_params.rbi +646 -21
- data/rbi/lithic/models/auth_rules/v2_create_response.rbi +1128 -18
- data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +554 -4
- data/rbi/lithic/models/auth_rules/v2_draft_response.rbi +1128 -18
- data/rbi/lithic/models/auth_rules/v2_list_params.rbi +16 -0
- data/rbi/lithic/models/auth_rules/v2_list_response.rbi +1128 -18
- data/rbi/lithic/models/auth_rules/v2_promote_response.rbi +1128 -18
- data/rbi/lithic/models/auth_rules/v2_retrieve_response.rbi +1128 -18
- data/rbi/lithic/models/auth_rules/v2_update_params.rbi +0 -11
- data/rbi/lithic/models/auth_rules/v2_update_response.rbi +1128 -18
- data/rbi/lithic/models/event.rbi +16 -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/three_ds/authentication_retrieve_response.rbi +45 -41
- data/rbi/lithic/models/transaction.rbi +17 -0
- data/rbi/lithic/resources/account_activity.rbi +2 -2
- data/rbi/lithic/resources/auth_rules/v2/backtests.rbi +3 -3
- data/rbi/lithic/resources/auth_rules/v2.rbi +28 -14
- data/sig/lithic/models/account_activity_list_params.rbs +16 -16
- data/sig/lithic/models/auth_rules/v2_apply_params.rbs +11 -2
- data/sig/lithic/models/auth_rules/v2_apply_response.rbs +317 -2
- data/sig/lithic/models/auth_rules/v2_create_params.rbs +188 -4
- data/sig/lithic/models/auth_rules/v2_create_response.rbs +317 -2
- data/sig/lithic/models/auth_rules/v2_draft_params.rbs +155 -0
- data/sig/lithic/models/auth_rules/v2_draft_response.rbs +317 -2
- data/sig/lithic/models/auth_rules/v2_list_params.rbs +9 -1
- data/sig/lithic/models/auth_rules/v2_list_response.rbs +317 -2
- data/sig/lithic/models/auth_rules/v2_promote_response.rbs +317 -2
- data/sig/lithic/models/auth_rules/v2_retrieve_response.rbs +317 -2
- data/sig/lithic/models/auth_rules/v2_update_params.rbs +0 -7
- data/sig/lithic/models/auth_rules/v2_update_response.rbs +317 -2
- 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/three_ds/authentication_retrieve_response.rbs +20 -20
- data/sig/lithic/models/transaction.rbs +10 -2
- data/sig/lithic/resources/account_activity.rbs +2 -2
- data/sig/lithic/resources/auth_rules/v2.rbs +6 -3
- metadata +2 -2
@@ -20,6 +20,10 @@ module Lithic
|
|
20
20
|
sig { returns(T::Array[String]) }
|
21
21
|
attr_accessor :account_tokens
|
22
22
|
|
23
|
+
# Business Account tokens to which the Auth Rule applies.
|
24
|
+
sig { returns(T::Array[String]) }
|
25
|
+
attr_accessor :business_account_tokens
|
26
|
+
|
23
27
|
# Card tokens to which the Auth Rule applies.
|
24
28
|
sig { returns(T::Array[String]) }
|
25
29
|
attr_accessor :card_tokens
|
@@ -62,7 +66,7 @@ module Lithic
|
|
62
66
|
end
|
63
67
|
attr_writer :draft_version
|
64
68
|
|
65
|
-
# The
|
69
|
+
# The event stream during which the rule will be evaluated.
|
66
70
|
sig do
|
67
71
|
returns(
|
68
72
|
Lithic::Models::AuthRules::V2PromoteResponse::EventStream::TaggedSymbol
|
@@ -86,13 +90,15 @@ module Lithic
|
|
86
90
|
end
|
87
91
|
attr_accessor :state
|
88
92
|
|
89
|
-
# The type of Auth Rule.
|
90
|
-
# will be evaluated.
|
93
|
+
# The type of Auth Rule. For certain rule types, this determines the event stream
|
94
|
+
# during which it will be evaluated. For rules that can be applied to one of
|
95
|
+
# several event streams, the effective one is defined by the separate
|
96
|
+
# `event_stream` field.
|
91
97
|
#
|
92
98
|
# - `CONDITIONAL_BLOCK`: AUTHORIZATION event stream.
|
93
99
|
# - `VELOCITY_LIMIT`: AUTHORIZATION event stream.
|
94
100
|
# - `MERCHANT_LOCK`: AUTHORIZATION event stream.
|
95
|
-
# - `
|
101
|
+
# - `CONDITIONAL_ACTION`: AUTHORIZATION or THREE_DS_AUTHENTICATION event stream.
|
96
102
|
sig do
|
97
103
|
returns(
|
98
104
|
Lithic::Models::AuthRules::V2PromoteResponse::Type::TaggedSymbol
|
@@ -111,6 +117,7 @@ module Lithic
|
|
111
117
|
params(
|
112
118
|
token: String,
|
113
119
|
account_tokens: T::Array[String],
|
120
|
+
business_account_tokens: T::Array[String],
|
114
121
|
card_tokens: T::Array[String],
|
115
122
|
current_version:
|
116
123
|
T.nilable(
|
@@ -135,11 +142,13 @@ module Lithic
|
|
135
142
|
token:,
|
136
143
|
# Account tokens to which the Auth Rule applies.
|
137
144
|
account_tokens:,
|
145
|
+
# Business Account tokens to which the Auth Rule applies.
|
146
|
+
business_account_tokens:,
|
138
147
|
# Card tokens to which the Auth Rule applies.
|
139
148
|
card_tokens:,
|
140
149
|
current_version:,
|
141
150
|
draft_version:,
|
142
|
-
# The
|
151
|
+
# The event stream during which the rule will be evaluated.
|
143
152
|
event_stream:,
|
144
153
|
# Auth Rule Name
|
145
154
|
name:,
|
@@ -147,13 +156,15 @@ module Lithic
|
|
147
156
|
program_level:,
|
148
157
|
# The state of the Auth Rule
|
149
158
|
state:,
|
150
|
-
# The type of Auth Rule.
|
151
|
-
# will be evaluated.
|
159
|
+
# The type of Auth Rule. For certain rule types, this determines the event stream
|
160
|
+
# during which it will be evaluated. For rules that can be applied to one of
|
161
|
+
# several event streams, the effective one is defined by the separate
|
162
|
+
# `event_stream` field.
|
152
163
|
#
|
153
164
|
# - `CONDITIONAL_BLOCK`: AUTHORIZATION event stream.
|
154
165
|
# - `VELOCITY_LIMIT`: AUTHORIZATION event stream.
|
155
166
|
# - `MERCHANT_LOCK`: AUTHORIZATION event stream.
|
156
|
-
# - `
|
167
|
+
# - `CONDITIONAL_ACTION`: AUTHORIZATION or THREE_DS_AUTHENTICATION event stream.
|
157
168
|
type:,
|
158
169
|
# Card tokens to which the Auth Rule does not apply.
|
159
170
|
excluded_card_tokens: nil
|
@@ -165,6 +176,7 @@ module Lithic
|
|
165
176
|
{
|
166
177
|
token: String,
|
167
178
|
account_tokens: T::Array[String],
|
179
|
+
business_account_tokens: T::Array[String],
|
168
180
|
card_tokens: T::Array[String],
|
169
181
|
current_version:
|
170
182
|
T.nilable(
|
@@ -218,7 +230,8 @@ module Lithic
|
|
218
230
|
Lithic::AuthRules::ConditionalBlockParameters::OrHash,
|
219
231
|
Lithic::AuthRules::VelocityLimitParams::OrHash,
|
220
232
|
Lithic::AuthRules::MerchantLockParameters::OrHash,
|
221
|
-
Lithic::AuthRules::Conditional3DSActionParameters::OrHash
|
233
|
+
Lithic::AuthRules::Conditional3DSActionParameters::OrHash,
|
234
|
+
Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::OrHash
|
222
235
|
),
|
223
236
|
version: Integer
|
224
237
|
).returns(T.attached_class)
|
@@ -254,9 +267,556 @@ module Lithic
|
|
254
267
|
Lithic::AuthRules::ConditionalBlockParameters,
|
255
268
|
Lithic::AuthRules::VelocityLimitParams,
|
256
269
|
Lithic::AuthRules::MerchantLockParameters,
|
257
|
-
Lithic::AuthRules::Conditional3DSActionParameters
|
270
|
+
Lithic::AuthRules::Conditional3DSActionParameters,
|
271
|
+
Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters
|
272
|
+
)
|
273
|
+
end
|
274
|
+
|
275
|
+
class ConditionalAuthorizationActionParameters < Lithic::Internal::Type::BaseModel
|
276
|
+
OrHash =
|
277
|
+
T.type_alias do
|
278
|
+
T.any(
|
279
|
+
Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters,
|
280
|
+
Lithic::Internal::AnyHash
|
281
|
+
)
|
282
|
+
end
|
283
|
+
|
284
|
+
# The action to take if the conditions are met.
|
285
|
+
sig do
|
286
|
+
returns(
|
287
|
+
Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol
|
258
288
|
)
|
259
289
|
end
|
290
|
+
attr_accessor :action
|
291
|
+
|
292
|
+
sig do
|
293
|
+
returns(
|
294
|
+
T::Array[
|
295
|
+
Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition
|
296
|
+
]
|
297
|
+
)
|
298
|
+
end
|
299
|
+
attr_accessor :conditions
|
300
|
+
|
301
|
+
sig do
|
302
|
+
params(
|
303
|
+
action:
|
304
|
+
Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Action::OrSymbol,
|
305
|
+
conditions:
|
306
|
+
T::Array[
|
307
|
+
Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::OrHash
|
308
|
+
]
|
309
|
+
).returns(T.attached_class)
|
310
|
+
end
|
311
|
+
def self.new(
|
312
|
+
# The action to take if the conditions are met.
|
313
|
+
action:,
|
314
|
+
conditions:
|
315
|
+
)
|
316
|
+
end
|
317
|
+
|
318
|
+
sig do
|
319
|
+
override.returns(
|
320
|
+
{
|
321
|
+
action:
|
322
|
+
Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol,
|
323
|
+
conditions:
|
324
|
+
T::Array[
|
325
|
+
Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition
|
326
|
+
]
|
327
|
+
}
|
328
|
+
)
|
329
|
+
end
|
330
|
+
def to_hash
|
331
|
+
end
|
332
|
+
|
333
|
+
# The action to take if the conditions are met.
|
334
|
+
module Action
|
335
|
+
extend Lithic::Internal::Type::Enum
|
336
|
+
|
337
|
+
TaggedSymbol =
|
338
|
+
T.type_alias do
|
339
|
+
T.all(
|
340
|
+
Symbol,
|
341
|
+
Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Action
|
342
|
+
)
|
343
|
+
end
|
344
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
345
|
+
|
346
|
+
DECLINE =
|
347
|
+
T.let(
|
348
|
+
:DECLINE,
|
349
|
+
Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol
|
350
|
+
)
|
351
|
+
CHALLENGE =
|
352
|
+
T.let(
|
353
|
+
:CHALLENGE,
|
354
|
+
Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol
|
355
|
+
)
|
356
|
+
|
357
|
+
sig do
|
358
|
+
override.returns(
|
359
|
+
T::Array[
|
360
|
+
Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol
|
361
|
+
]
|
362
|
+
)
|
363
|
+
end
|
364
|
+
def self.values
|
365
|
+
end
|
366
|
+
end
|
367
|
+
|
368
|
+
class Condition < Lithic::Internal::Type::BaseModel
|
369
|
+
OrHash =
|
370
|
+
T.type_alias do
|
371
|
+
T.any(
|
372
|
+
Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition,
|
373
|
+
Lithic::Internal::AnyHash
|
374
|
+
)
|
375
|
+
end
|
376
|
+
|
377
|
+
# The attribute to target.
|
378
|
+
#
|
379
|
+
# The following attributes may be targeted:
|
380
|
+
#
|
381
|
+
# - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a
|
382
|
+
# business by the types of goods or services it provides.
|
383
|
+
# - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all
|
384
|
+
# ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for
|
385
|
+
# Netherlands Antilles.
|
386
|
+
# - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of
|
387
|
+
# the transaction.
|
388
|
+
# - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor
|
389
|
+
# (merchant).
|
390
|
+
# - `DESCRIPTOR`: Short description of card acceptor.
|
391
|
+
# - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer
|
392
|
+
# applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or
|
393
|
+
# `TOKEN_AUTHENTICATED`.
|
394
|
+
# - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number
|
395
|
+
# (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`,
|
396
|
+
# `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`,
|
397
|
+
# `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`,
|
398
|
+
# `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`.
|
399
|
+
# - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
|
400
|
+
# fee field in the settlement/cardholder billing currency. This is the amount
|
401
|
+
# the issuer should authorize against unless the issuer is paying the acquirer
|
402
|
+
# fee on behalf of the cardholder.
|
403
|
+
# - `RISK_SCORE`: Network-provided score assessing risk level associated with a
|
404
|
+
# given authorization. Scores are on a range of 0-999, with 0 representing the
|
405
|
+
# lowest risk and 999 representing the highest risk. For Visa transactions,
|
406
|
+
# where the raw score has a range of 0-99, Lithic will normalize the score by
|
407
|
+
# multiplying the raw score by 10x.
|
408
|
+
# - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the
|
409
|
+
# trailing 15 minutes before the authorization.
|
410
|
+
# - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the
|
411
|
+
# trailing hour up and until the authorization.
|
412
|
+
# - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the
|
413
|
+
# trailing 24 hours up and until the authorization.
|
414
|
+
# - `CARD_STATE`: The current state of the card associated with the transaction.
|
415
|
+
# Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`,
|
416
|
+
# `PENDING_FULFILLMENT`.
|
417
|
+
# - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction.
|
418
|
+
# Valid values are `TRUE`, `FALSE`.
|
419
|
+
# - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`,
|
420
|
+
# `OK`, `BLOCKED`.
|
421
|
+
# - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the
|
422
|
+
# source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`,
|
423
|
+
# `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`.
|
424
|
+
# - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates
|
425
|
+
# the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`.
|
426
|
+
sig do
|
427
|
+
returns(
|
428
|
+
T.nilable(
|
429
|
+
Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
|
430
|
+
)
|
431
|
+
)
|
432
|
+
end
|
433
|
+
attr_reader :attribute
|
434
|
+
|
435
|
+
sig do
|
436
|
+
params(
|
437
|
+
attribute:
|
438
|
+
Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::OrSymbol
|
439
|
+
).void
|
440
|
+
end
|
441
|
+
attr_writer :attribute
|
442
|
+
|
443
|
+
# The operation to apply to the attribute
|
444
|
+
sig do
|
445
|
+
returns(
|
446
|
+
T.nilable(
|
447
|
+
Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol
|
448
|
+
)
|
449
|
+
)
|
450
|
+
end
|
451
|
+
attr_reader :operation
|
452
|
+
|
453
|
+
sig do
|
454
|
+
params(
|
455
|
+
operation:
|
456
|
+
Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::OrSymbol
|
457
|
+
).void
|
458
|
+
end
|
459
|
+
attr_writer :operation
|
460
|
+
|
461
|
+
# A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
|
462
|
+
sig do
|
463
|
+
returns(
|
464
|
+
T.nilable(
|
465
|
+
Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants
|
466
|
+
)
|
467
|
+
)
|
468
|
+
end
|
469
|
+
attr_reader :value
|
470
|
+
|
471
|
+
sig do
|
472
|
+
params(
|
473
|
+
value:
|
474
|
+
Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants
|
475
|
+
).void
|
476
|
+
end
|
477
|
+
attr_writer :value
|
478
|
+
|
479
|
+
sig do
|
480
|
+
params(
|
481
|
+
attribute:
|
482
|
+
Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::OrSymbol,
|
483
|
+
operation:
|
484
|
+
Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::OrSymbol,
|
485
|
+
value:
|
486
|
+
Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants
|
487
|
+
).returns(T.attached_class)
|
488
|
+
end
|
489
|
+
def self.new(
|
490
|
+
# The attribute to target.
|
491
|
+
#
|
492
|
+
# The following attributes may be targeted:
|
493
|
+
#
|
494
|
+
# - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a
|
495
|
+
# business by the types of goods or services it provides.
|
496
|
+
# - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all
|
497
|
+
# ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for
|
498
|
+
# Netherlands Antilles.
|
499
|
+
# - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of
|
500
|
+
# the transaction.
|
501
|
+
# - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor
|
502
|
+
# (merchant).
|
503
|
+
# - `DESCRIPTOR`: Short description of card acceptor.
|
504
|
+
# - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer
|
505
|
+
# applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or
|
506
|
+
# `TOKEN_AUTHENTICATED`.
|
507
|
+
# - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number
|
508
|
+
# (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`,
|
509
|
+
# `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`,
|
510
|
+
# `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`,
|
511
|
+
# `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`.
|
512
|
+
# - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
|
513
|
+
# fee field in the settlement/cardholder billing currency. This is the amount
|
514
|
+
# the issuer should authorize against unless the issuer is paying the acquirer
|
515
|
+
# fee on behalf of the cardholder.
|
516
|
+
# - `RISK_SCORE`: Network-provided score assessing risk level associated with a
|
517
|
+
# given authorization. Scores are on a range of 0-999, with 0 representing the
|
518
|
+
# lowest risk and 999 representing the highest risk. For Visa transactions,
|
519
|
+
# where the raw score has a range of 0-99, Lithic will normalize the score by
|
520
|
+
# multiplying the raw score by 10x.
|
521
|
+
# - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the
|
522
|
+
# trailing 15 minutes before the authorization.
|
523
|
+
# - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the
|
524
|
+
# trailing hour up and until the authorization.
|
525
|
+
# - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the
|
526
|
+
# trailing 24 hours up and until the authorization.
|
527
|
+
# - `CARD_STATE`: The current state of the card associated with the transaction.
|
528
|
+
# Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`,
|
529
|
+
# `PENDING_FULFILLMENT`.
|
530
|
+
# - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction.
|
531
|
+
# Valid values are `TRUE`, `FALSE`.
|
532
|
+
# - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`,
|
533
|
+
# `OK`, `BLOCKED`.
|
534
|
+
# - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the
|
535
|
+
# source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`,
|
536
|
+
# `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`.
|
537
|
+
# - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates
|
538
|
+
# the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`.
|
539
|
+
attribute: nil,
|
540
|
+
# The operation to apply to the attribute
|
541
|
+
operation: nil,
|
542
|
+
# A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
|
543
|
+
value: nil
|
544
|
+
)
|
545
|
+
end
|
546
|
+
|
547
|
+
sig do
|
548
|
+
override.returns(
|
549
|
+
{
|
550
|
+
attribute:
|
551
|
+
Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol,
|
552
|
+
operation:
|
553
|
+
Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol,
|
554
|
+
value:
|
555
|
+
Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants
|
556
|
+
}
|
557
|
+
)
|
558
|
+
end
|
559
|
+
def to_hash
|
560
|
+
end
|
561
|
+
|
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
|
+
# - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer
|
577
|
+
# applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or
|
578
|
+
# `TOKEN_AUTHENTICATED`.
|
579
|
+
# - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number
|
580
|
+
# (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`,
|
581
|
+
# `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`,
|
582
|
+
# `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`,
|
583
|
+
# `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`.
|
584
|
+
# - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
|
585
|
+
# fee field in the settlement/cardholder billing currency. This is the amount
|
586
|
+
# the issuer should authorize against unless the issuer is paying the acquirer
|
587
|
+
# fee on behalf of the cardholder.
|
588
|
+
# - `RISK_SCORE`: Network-provided score assessing risk level associated with a
|
589
|
+
# given authorization. Scores are on a range of 0-999, with 0 representing the
|
590
|
+
# lowest risk and 999 representing the highest risk. For Visa transactions,
|
591
|
+
# where the raw score has a range of 0-99, Lithic will normalize the score by
|
592
|
+
# multiplying the raw score by 10x.
|
593
|
+
# - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the
|
594
|
+
# trailing 15 minutes before the authorization.
|
595
|
+
# - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the
|
596
|
+
# trailing hour up and until the authorization.
|
597
|
+
# - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the
|
598
|
+
# trailing 24 hours up and until the authorization.
|
599
|
+
# - `CARD_STATE`: The current state of the card associated with the transaction.
|
600
|
+
# Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`,
|
601
|
+
# `PENDING_FULFILLMENT`.
|
602
|
+
# - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction.
|
603
|
+
# Valid values are `TRUE`, `FALSE`.
|
604
|
+
# - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`,
|
605
|
+
# `OK`, `BLOCKED`.
|
606
|
+
# - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the
|
607
|
+
# source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`,
|
608
|
+
# `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`.
|
609
|
+
# - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates
|
610
|
+
# the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`.
|
611
|
+
module Attribute
|
612
|
+
extend Lithic::Internal::Type::Enum
|
613
|
+
|
614
|
+
TaggedSymbol =
|
615
|
+
T.type_alias do
|
616
|
+
T.all(
|
617
|
+
Symbol,
|
618
|
+
Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute
|
619
|
+
)
|
620
|
+
end
|
621
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
622
|
+
|
623
|
+
MCC =
|
624
|
+
T.let(
|
625
|
+
:MCC,
|
626
|
+
Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
|
627
|
+
)
|
628
|
+
COUNTRY =
|
629
|
+
T.let(
|
630
|
+
:COUNTRY,
|
631
|
+
Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
|
632
|
+
)
|
633
|
+
CURRENCY =
|
634
|
+
T.let(
|
635
|
+
:CURRENCY,
|
636
|
+
Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
|
637
|
+
)
|
638
|
+
MERCHANT_ID =
|
639
|
+
T.let(
|
640
|
+
:MERCHANT_ID,
|
641
|
+
Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
|
642
|
+
)
|
643
|
+
DESCRIPTOR =
|
644
|
+
T.let(
|
645
|
+
:DESCRIPTOR,
|
646
|
+
Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
|
647
|
+
)
|
648
|
+
LIABILITY_SHIFT =
|
649
|
+
T.let(
|
650
|
+
:LIABILITY_SHIFT,
|
651
|
+
Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
|
652
|
+
)
|
653
|
+
PAN_ENTRY_MODE =
|
654
|
+
T.let(
|
655
|
+
:PAN_ENTRY_MODE,
|
656
|
+
Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
|
657
|
+
)
|
658
|
+
TRANSACTION_AMOUNT =
|
659
|
+
T.let(
|
660
|
+
:TRANSACTION_AMOUNT,
|
661
|
+
Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
|
662
|
+
)
|
663
|
+
RISK_SCORE =
|
664
|
+
T.let(
|
665
|
+
:RISK_SCORE,
|
666
|
+
Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
|
667
|
+
)
|
668
|
+
CARD_TRANSACTION_COUNT_15_M =
|
669
|
+
T.let(
|
670
|
+
:CARD_TRANSACTION_COUNT_15M,
|
671
|
+
Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
|
672
|
+
)
|
673
|
+
CARD_TRANSACTION_COUNT_1_H =
|
674
|
+
T.let(
|
675
|
+
:CARD_TRANSACTION_COUNT_1H,
|
676
|
+
Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
|
677
|
+
)
|
678
|
+
CARD_TRANSACTION_COUNT_24_H =
|
679
|
+
T.let(
|
680
|
+
:CARD_TRANSACTION_COUNT_24H,
|
681
|
+
Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
|
682
|
+
)
|
683
|
+
CARD_STATE =
|
684
|
+
T.let(
|
685
|
+
:CARD_STATE,
|
686
|
+
Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
|
687
|
+
)
|
688
|
+
PIN_ENTERED =
|
689
|
+
T.let(
|
690
|
+
:PIN_ENTERED,
|
691
|
+
Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
|
692
|
+
)
|
693
|
+
PIN_STATUS =
|
694
|
+
T.let(
|
695
|
+
:PIN_STATUS,
|
696
|
+
Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
|
697
|
+
)
|
698
|
+
WALLET_TYPE =
|
699
|
+
T.let(
|
700
|
+
:WALLET_TYPE,
|
701
|
+
Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
|
702
|
+
)
|
703
|
+
TRANSACTION_INITIATOR =
|
704
|
+
T.let(
|
705
|
+
:TRANSACTION_INITIATOR,
|
706
|
+
Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
|
707
|
+
)
|
708
|
+
|
709
|
+
sig do
|
710
|
+
override.returns(
|
711
|
+
T::Array[
|
712
|
+
Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
|
713
|
+
]
|
714
|
+
)
|
715
|
+
end
|
716
|
+
def self.values
|
717
|
+
end
|
718
|
+
end
|
719
|
+
|
720
|
+
# The operation to apply to the attribute
|
721
|
+
module Operation
|
722
|
+
extend Lithic::Internal::Type::Enum
|
723
|
+
|
724
|
+
TaggedSymbol =
|
725
|
+
T.type_alias do
|
726
|
+
T.all(
|
727
|
+
Symbol,
|
728
|
+
Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation
|
729
|
+
)
|
730
|
+
end
|
731
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
732
|
+
|
733
|
+
IS_ONE_OF =
|
734
|
+
T.let(
|
735
|
+
:IS_ONE_OF,
|
736
|
+
Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol
|
737
|
+
)
|
738
|
+
IS_NOT_ONE_OF =
|
739
|
+
T.let(
|
740
|
+
:IS_NOT_ONE_OF,
|
741
|
+
Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol
|
742
|
+
)
|
743
|
+
MATCHES =
|
744
|
+
T.let(
|
745
|
+
:MATCHES,
|
746
|
+
Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol
|
747
|
+
)
|
748
|
+
DOES_NOT_MATCH =
|
749
|
+
T.let(
|
750
|
+
:DOES_NOT_MATCH,
|
751
|
+
Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol
|
752
|
+
)
|
753
|
+
IS_EQUAL_TO =
|
754
|
+
T.let(
|
755
|
+
:IS_EQUAL_TO,
|
756
|
+
Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol
|
757
|
+
)
|
758
|
+
IS_NOT_EQUAL_TO =
|
759
|
+
T.let(
|
760
|
+
:IS_NOT_EQUAL_TO,
|
761
|
+
Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol
|
762
|
+
)
|
763
|
+
IS_GREATER_THAN =
|
764
|
+
T.let(
|
765
|
+
:IS_GREATER_THAN,
|
766
|
+
Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol
|
767
|
+
)
|
768
|
+
IS_GREATER_THAN_OR_EQUAL_TO =
|
769
|
+
T.let(
|
770
|
+
:IS_GREATER_THAN_OR_EQUAL_TO,
|
771
|
+
Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol
|
772
|
+
)
|
773
|
+
IS_LESS_THAN =
|
774
|
+
T.let(
|
775
|
+
:IS_LESS_THAN,
|
776
|
+
Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol
|
777
|
+
)
|
778
|
+
IS_LESS_THAN_OR_EQUAL_TO =
|
779
|
+
T.let(
|
780
|
+
:IS_LESS_THAN_OR_EQUAL_TO,
|
781
|
+
Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol
|
782
|
+
)
|
783
|
+
|
784
|
+
sig do
|
785
|
+
override.returns(
|
786
|
+
T::Array[
|
787
|
+
Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol
|
788
|
+
]
|
789
|
+
)
|
790
|
+
end
|
791
|
+
def self.values
|
792
|
+
end
|
793
|
+
end
|
794
|
+
|
795
|
+
# A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
|
796
|
+
module Value
|
797
|
+
extend Lithic::Internal::Type::Union
|
798
|
+
|
799
|
+
Variants =
|
800
|
+
T.type_alias { T.any(String, Integer, T::Array[String]) }
|
801
|
+
|
802
|
+
sig do
|
803
|
+
override.returns(
|
804
|
+
T::Array[
|
805
|
+
Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants
|
806
|
+
]
|
807
|
+
)
|
808
|
+
end
|
809
|
+
def self.variants
|
810
|
+
end
|
811
|
+
|
812
|
+
StringArray =
|
813
|
+
T.let(
|
814
|
+
Lithic::Internal::Type::ArrayOf[String],
|
815
|
+
Lithic::Internal::Type::Converter
|
816
|
+
)
|
817
|
+
end
|
818
|
+
end
|
819
|
+
end
|
260
820
|
|
261
821
|
sig do
|
262
822
|
override.returns(
|
@@ -299,7 +859,8 @@ module Lithic
|
|
299
859
|
Lithic::AuthRules::ConditionalBlockParameters::OrHash,
|
300
860
|
Lithic::AuthRules::VelocityLimitParams::OrHash,
|
301
861
|
Lithic::AuthRules::MerchantLockParameters::OrHash,
|
302
|
-
Lithic::AuthRules::Conditional3DSActionParameters::OrHash
|
862
|
+
Lithic::AuthRules::Conditional3DSActionParameters::OrHash,
|
863
|
+
Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::OrHash
|
303
864
|
),
|
304
865
|
version: Integer
|
305
866
|
).returns(T.attached_class)
|
@@ -335,9 +896,556 @@ module Lithic
|
|
335
896
|
Lithic::AuthRules::ConditionalBlockParameters,
|
336
897
|
Lithic::AuthRules::VelocityLimitParams,
|
337
898
|
Lithic::AuthRules::MerchantLockParameters,
|
338
|
-
Lithic::AuthRules::Conditional3DSActionParameters
|
899
|
+
Lithic::AuthRules::Conditional3DSActionParameters,
|
900
|
+
Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters
|
901
|
+
)
|
902
|
+
end
|
903
|
+
|
904
|
+
class ConditionalAuthorizationActionParameters < Lithic::Internal::Type::BaseModel
|
905
|
+
OrHash =
|
906
|
+
T.type_alias do
|
907
|
+
T.any(
|
908
|
+
Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters,
|
909
|
+
Lithic::Internal::AnyHash
|
910
|
+
)
|
911
|
+
end
|
912
|
+
|
913
|
+
# The action to take if the conditions are met.
|
914
|
+
sig do
|
915
|
+
returns(
|
916
|
+
Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol
|
917
|
+
)
|
918
|
+
end
|
919
|
+
attr_accessor :action
|
920
|
+
|
921
|
+
sig do
|
922
|
+
returns(
|
923
|
+
T::Array[
|
924
|
+
Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition
|
925
|
+
]
|
339
926
|
)
|
340
927
|
end
|
928
|
+
attr_accessor :conditions
|
929
|
+
|
930
|
+
sig do
|
931
|
+
params(
|
932
|
+
action:
|
933
|
+
Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Action::OrSymbol,
|
934
|
+
conditions:
|
935
|
+
T::Array[
|
936
|
+
Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::OrHash
|
937
|
+
]
|
938
|
+
).returns(T.attached_class)
|
939
|
+
end
|
940
|
+
def self.new(
|
941
|
+
# The action to take if the conditions are met.
|
942
|
+
action:,
|
943
|
+
conditions:
|
944
|
+
)
|
945
|
+
end
|
946
|
+
|
947
|
+
sig do
|
948
|
+
override.returns(
|
949
|
+
{
|
950
|
+
action:
|
951
|
+
Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol,
|
952
|
+
conditions:
|
953
|
+
T::Array[
|
954
|
+
Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition
|
955
|
+
]
|
956
|
+
}
|
957
|
+
)
|
958
|
+
end
|
959
|
+
def to_hash
|
960
|
+
end
|
961
|
+
|
962
|
+
# The action to take if the conditions are met.
|
963
|
+
module Action
|
964
|
+
extend Lithic::Internal::Type::Enum
|
965
|
+
|
966
|
+
TaggedSymbol =
|
967
|
+
T.type_alias do
|
968
|
+
T.all(
|
969
|
+
Symbol,
|
970
|
+
Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Action
|
971
|
+
)
|
972
|
+
end
|
973
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
974
|
+
|
975
|
+
DECLINE =
|
976
|
+
T.let(
|
977
|
+
:DECLINE,
|
978
|
+
Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol
|
979
|
+
)
|
980
|
+
CHALLENGE =
|
981
|
+
T.let(
|
982
|
+
:CHALLENGE,
|
983
|
+
Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol
|
984
|
+
)
|
985
|
+
|
986
|
+
sig do
|
987
|
+
override.returns(
|
988
|
+
T::Array[
|
989
|
+
Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol
|
990
|
+
]
|
991
|
+
)
|
992
|
+
end
|
993
|
+
def self.values
|
994
|
+
end
|
995
|
+
end
|
996
|
+
|
997
|
+
class Condition < Lithic::Internal::Type::BaseModel
|
998
|
+
OrHash =
|
999
|
+
T.type_alias do
|
1000
|
+
T.any(
|
1001
|
+
Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition,
|
1002
|
+
Lithic::Internal::AnyHash
|
1003
|
+
)
|
1004
|
+
end
|
1005
|
+
|
1006
|
+
# The attribute to target.
|
1007
|
+
#
|
1008
|
+
# The following attributes may be targeted:
|
1009
|
+
#
|
1010
|
+
# - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a
|
1011
|
+
# business by the types of goods or services it provides.
|
1012
|
+
# - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all
|
1013
|
+
# ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for
|
1014
|
+
# Netherlands Antilles.
|
1015
|
+
# - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of
|
1016
|
+
# the transaction.
|
1017
|
+
# - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor
|
1018
|
+
# (merchant).
|
1019
|
+
# - `DESCRIPTOR`: Short description of card acceptor.
|
1020
|
+
# - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer
|
1021
|
+
# applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or
|
1022
|
+
# `TOKEN_AUTHENTICATED`.
|
1023
|
+
# - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number
|
1024
|
+
# (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`,
|
1025
|
+
# `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`,
|
1026
|
+
# `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`,
|
1027
|
+
# `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`.
|
1028
|
+
# - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
|
1029
|
+
# fee field in the settlement/cardholder billing currency. This is the amount
|
1030
|
+
# the issuer should authorize against unless the issuer is paying the acquirer
|
1031
|
+
# fee on behalf of the cardholder.
|
1032
|
+
# - `RISK_SCORE`: Network-provided score assessing risk level associated with a
|
1033
|
+
# given authorization. Scores are on a range of 0-999, with 0 representing the
|
1034
|
+
# lowest risk and 999 representing the highest risk. For Visa transactions,
|
1035
|
+
# where the raw score has a range of 0-99, Lithic will normalize the score by
|
1036
|
+
# multiplying the raw score by 10x.
|
1037
|
+
# - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the
|
1038
|
+
# trailing 15 minutes before the authorization.
|
1039
|
+
# - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the
|
1040
|
+
# trailing hour up and until the authorization.
|
1041
|
+
# - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the
|
1042
|
+
# trailing 24 hours up and until the authorization.
|
1043
|
+
# - `CARD_STATE`: The current state of the card associated with the transaction.
|
1044
|
+
# Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`,
|
1045
|
+
# `PENDING_FULFILLMENT`.
|
1046
|
+
# - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction.
|
1047
|
+
# Valid values are `TRUE`, `FALSE`.
|
1048
|
+
# - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`,
|
1049
|
+
# `OK`, `BLOCKED`.
|
1050
|
+
# - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the
|
1051
|
+
# source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`,
|
1052
|
+
# `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`.
|
1053
|
+
# - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates
|
1054
|
+
# the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`.
|
1055
|
+
sig do
|
1056
|
+
returns(
|
1057
|
+
T.nilable(
|
1058
|
+
Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
|
1059
|
+
)
|
1060
|
+
)
|
1061
|
+
end
|
1062
|
+
attr_reader :attribute
|
1063
|
+
|
1064
|
+
sig do
|
1065
|
+
params(
|
1066
|
+
attribute:
|
1067
|
+
Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::OrSymbol
|
1068
|
+
).void
|
1069
|
+
end
|
1070
|
+
attr_writer :attribute
|
1071
|
+
|
1072
|
+
# The operation to apply to the attribute
|
1073
|
+
sig do
|
1074
|
+
returns(
|
1075
|
+
T.nilable(
|
1076
|
+
Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol
|
1077
|
+
)
|
1078
|
+
)
|
1079
|
+
end
|
1080
|
+
attr_reader :operation
|
1081
|
+
|
1082
|
+
sig do
|
1083
|
+
params(
|
1084
|
+
operation:
|
1085
|
+
Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::OrSymbol
|
1086
|
+
).void
|
1087
|
+
end
|
1088
|
+
attr_writer :operation
|
1089
|
+
|
1090
|
+
# A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
|
1091
|
+
sig do
|
1092
|
+
returns(
|
1093
|
+
T.nilable(
|
1094
|
+
Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants
|
1095
|
+
)
|
1096
|
+
)
|
1097
|
+
end
|
1098
|
+
attr_reader :value
|
1099
|
+
|
1100
|
+
sig do
|
1101
|
+
params(
|
1102
|
+
value:
|
1103
|
+
Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants
|
1104
|
+
).void
|
1105
|
+
end
|
1106
|
+
attr_writer :value
|
1107
|
+
|
1108
|
+
sig do
|
1109
|
+
params(
|
1110
|
+
attribute:
|
1111
|
+
Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::OrSymbol,
|
1112
|
+
operation:
|
1113
|
+
Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::OrSymbol,
|
1114
|
+
value:
|
1115
|
+
Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants
|
1116
|
+
).returns(T.attached_class)
|
1117
|
+
end
|
1118
|
+
def self.new(
|
1119
|
+
# The attribute to target.
|
1120
|
+
#
|
1121
|
+
# The following attributes may be targeted:
|
1122
|
+
#
|
1123
|
+
# - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a
|
1124
|
+
# business by the types of goods or services it provides.
|
1125
|
+
# - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all
|
1126
|
+
# ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for
|
1127
|
+
# Netherlands Antilles.
|
1128
|
+
# - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of
|
1129
|
+
# the transaction.
|
1130
|
+
# - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor
|
1131
|
+
# (merchant).
|
1132
|
+
# - `DESCRIPTOR`: Short description of card acceptor.
|
1133
|
+
# - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer
|
1134
|
+
# applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or
|
1135
|
+
# `TOKEN_AUTHENTICATED`.
|
1136
|
+
# - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number
|
1137
|
+
# (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`,
|
1138
|
+
# `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`,
|
1139
|
+
# `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`,
|
1140
|
+
# `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`.
|
1141
|
+
# - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
|
1142
|
+
# fee field in the settlement/cardholder billing currency. This is the amount
|
1143
|
+
# the issuer should authorize against unless the issuer is paying the acquirer
|
1144
|
+
# fee on behalf of the cardholder.
|
1145
|
+
# - `RISK_SCORE`: Network-provided score assessing risk level associated with a
|
1146
|
+
# given authorization. Scores are on a range of 0-999, with 0 representing the
|
1147
|
+
# lowest risk and 999 representing the highest risk. For Visa transactions,
|
1148
|
+
# where the raw score has a range of 0-99, Lithic will normalize the score by
|
1149
|
+
# multiplying the raw score by 10x.
|
1150
|
+
# - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the
|
1151
|
+
# trailing 15 minutes before the authorization.
|
1152
|
+
# - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the
|
1153
|
+
# trailing hour up and until the authorization.
|
1154
|
+
# - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the
|
1155
|
+
# trailing 24 hours up and until the authorization.
|
1156
|
+
# - `CARD_STATE`: The current state of the card associated with the transaction.
|
1157
|
+
# Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`,
|
1158
|
+
# `PENDING_FULFILLMENT`.
|
1159
|
+
# - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction.
|
1160
|
+
# Valid values are `TRUE`, `FALSE`.
|
1161
|
+
# - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`,
|
1162
|
+
# `OK`, `BLOCKED`.
|
1163
|
+
# - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the
|
1164
|
+
# source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`,
|
1165
|
+
# `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`.
|
1166
|
+
# - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates
|
1167
|
+
# the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`.
|
1168
|
+
attribute: nil,
|
1169
|
+
# The operation to apply to the attribute
|
1170
|
+
operation: nil,
|
1171
|
+
# A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
|
1172
|
+
value: nil
|
1173
|
+
)
|
1174
|
+
end
|
1175
|
+
|
1176
|
+
sig do
|
1177
|
+
override.returns(
|
1178
|
+
{
|
1179
|
+
attribute:
|
1180
|
+
Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol,
|
1181
|
+
operation:
|
1182
|
+
Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol,
|
1183
|
+
value:
|
1184
|
+
Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants
|
1185
|
+
}
|
1186
|
+
)
|
1187
|
+
end
|
1188
|
+
def to_hash
|
1189
|
+
end
|
1190
|
+
|
1191
|
+
# The attribute to target.
|
1192
|
+
#
|
1193
|
+
# The following attributes may be targeted:
|
1194
|
+
#
|
1195
|
+
# - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a
|
1196
|
+
# business by the types of goods or services it provides.
|
1197
|
+
# - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all
|
1198
|
+
# ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for
|
1199
|
+
# Netherlands Antilles.
|
1200
|
+
# - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of
|
1201
|
+
# the transaction.
|
1202
|
+
# - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor
|
1203
|
+
# (merchant).
|
1204
|
+
# - `DESCRIPTOR`: Short description of card acceptor.
|
1205
|
+
# - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer
|
1206
|
+
# applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or
|
1207
|
+
# `TOKEN_AUTHENTICATED`.
|
1208
|
+
# - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number
|
1209
|
+
# (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`,
|
1210
|
+
# `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`,
|
1211
|
+
# `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`,
|
1212
|
+
# `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`.
|
1213
|
+
# - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
|
1214
|
+
# fee field in the settlement/cardholder billing currency. This is the amount
|
1215
|
+
# the issuer should authorize against unless the issuer is paying the acquirer
|
1216
|
+
# fee on behalf of the cardholder.
|
1217
|
+
# - `RISK_SCORE`: Network-provided score assessing risk level associated with a
|
1218
|
+
# given authorization. Scores are on a range of 0-999, with 0 representing the
|
1219
|
+
# lowest risk and 999 representing the highest risk. For Visa transactions,
|
1220
|
+
# where the raw score has a range of 0-99, Lithic will normalize the score by
|
1221
|
+
# multiplying the raw score by 10x.
|
1222
|
+
# - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the
|
1223
|
+
# trailing 15 minutes before the authorization.
|
1224
|
+
# - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the
|
1225
|
+
# trailing hour up and until the authorization.
|
1226
|
+
# - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the
|
1227
|
+
# trailing 24 hours up and until the authorization.
|
1228
|
+
# - `CARD_STATE`: The current state of the card associated with the transaction.
|
1229
|
+
# Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`,
|
1230
|
+
# `PENDING_FULFILLMENT`.
|
1231
|
+
# - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction.
|
1232
|
+
# Valid values are `TRUE`, `FALSE`.
|
1233
|
+
# - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`,
|
1234
|
+
# `OK`, `BLOCKED`.
|
1235
|
+
# - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the
|
1236
|
+
# source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`,
|
1237
|
+
# `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`.
|
1238
|
+
# - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates
|
1239
|
+
# the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`.
|
1240
|
+
module Attribute
|
1241
|
+
extend Lithic::Internal::Type::Enum
|
1242
|
+
|
1243
|
+
TaggedSymbol =
|
1244
|
+
T.type_alias do
|
1245
|
+
T.all(
|
1246
|
+
Symbol,
|
1247
|
+
Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute
|
1248
|
+
)
|
1249
|
+
end
|
1250
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
1251
|
+
|
1252
|
+
MCC =
|
1253
|
+
T.let(
|
1254
|
+
:MCC,
|
1255
|
+
Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
|
1256
|
+
)
|
1257
|
+
COUNTRY =
|
1258
|
+
T.let(
|
1259
|
+
:COUNTRY,
|
1260
|
+
Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
|
1261
|
+
)
|
1262
|
+
CURRENCY =
|
1263
|
+
T.let(
|
1264
|
+
:CURRENCY,
|
1265
|
+
Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
|
1266
|
+
)
|
1267
|
+
MERCHANT_ID =
|
1268
|
+
T.let(
|
1269
|
+
:MERCHANT_ID,
|
1270
|
+
Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
|
1271
|
+
)
|
1272
|
+
DESCRIPTOR =
|
1273
|
+
T.let(
|
1274
|
+
:DESCRIPTOR,
|
1275
|
+
Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
|
1276
|
+
)
|
1277
|
+
LIABILITY_SHIFT =
|
1278
|
+
T.let(
|
1279
|
+
:LIABILITY_SHIFT,
|
1280
|
+
Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
|
1281
|
+
)
|
1282
|
+
PAN_ENTRY_MODE =
|
1283
|
+
T.let(
|
1284
|
+
:PAN_ENTRY_MODE,
|
1285
|
+
Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
|
1286
|
+
)
|
1287
|
+
TRANSACTION_AMOUNT =
|
1288
|
+
T.let(
|
1289
|
+
:TRANSACTION_AMOUNT,
|
1290
|
+
Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
|
1291
|
+
)
|
1292
|
+
RISK_SCORE =
|
1293
|
+
T.let(
|
1294
|
+
:RISK_SCORE,
|
1295
|
+
Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
|
1296
|
+
)
|
1297
|
+
CARD_TRANSACTION_COUNT_15_M =
|
1298
|
+
T.let(
|
1299
|
+
:CARD_TRANSACTION_COUNT_15M,
|
1300
|
+
Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
|
1301
|
+
)
|
1302
|
+
CARD_TRANSACTION_COUNT_1_H =
|
1303
|
+
T.let(
|
1304
|
+
:CARD_TRANSACTION_COUNT_1H,
|
1305
|
+
Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
|
1306
|
+
)
|
1307
|
+
CARD_TRANSACTION_COUNT_24_H =
|
1308
|
+
T.let(
|
1309
|
+
:CARD_TRANSACTION_COUNT_24H,
|
1310
|
+
Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
|
1311
|
+
)
|
1312
|
+
CARD_STATE =
|
1313
|
+
T.let(
|
1314
|
+
:CARD_STATE,
|
1315
|
+
Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
|
1316
|
+
)
|
1317
|
+
PIN_ENTERED =
|
1318
|
+
T.let(
|
1319
|
+
:PIN_ENTERED,
|
1320
|
+
Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
|
1321
|
+
)
|
1322
|
+
PIN_STATUS =
|
1323
|
+
T.let(
|
1324
|
+
:PIN_STATUS,
|
1325
|
+
Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
|
1326
|
+
)
|
1327
|
+
WALLET_TYPE =
|
1328
|
+
T.let(
|
1329
|
+
:WALLET_TYPE,
|
1330
|
+
Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
|
1331
|
+
)
|
1332
|
+
TRANSACTION_INITIATOR =
|
1333
|
+
T.let(
|
1334
|
+
:TRANSACTION_INITIATOR,
|
1335
|
+
Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
|
1336
|
+
)
|
1337
|
+
|
1338
|
+
sig do
|
1339
|
+
override.returns(
|
1340
|
+
T::Array[
|
1341
|
+
Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
|
1342
|
+
]
|
1343
|
+
)
|
1344
|
+
end
|
1345
|
+
def self.values
|
1346
|
+
end
|
1347
|
+
end
|
1348
|
+
|
1349
|
+
# The operation to apply to the attribute
|
1350
|
+
module Operation
|
1351
|
+
extend Lithic::Internal::Type::Enum
|
1352
|
+
|
1353
|
+
TaggedSymbol =
|
1354
|
+
T.type_alias do
|
1355
|
+
T.all(
|
1356
|
+
Symbol,
|
1357
|
+
Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation
|
1358
|
+
)
|
1359
|
+
end
|
1360
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
1361
|
+
|
1362
|
+
IS_ONE_OF =
|
1363
|
+
T.let(
|
1364
|
+
:IS_ONE_OF,
|
1365
|
+
Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol
|
1366
|
+
)
|
1367
|
+
IS_NOT_ONE_OF =
|
1368
|
+
T.let(
|
1369
|
+
:IS_NOT_ONE_OF,
|
1370
|
+
Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol
|
1371
|
+
)
|
1372
|
+
MATCHES =
|
1373
|
+
T.let(
|
1374
|
+
:MATCHES,
|
1375
|
+
Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol
|
1376
|
+
)
|
1377
|
+
DOES_NOT_MATCH =
|
1378
|
+
T.let(
|
1379
|
+
:DOES_NOT_MATCH,
|
1380
|
+
Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol
|
1381
|
+
)
|
1382
|
+
IS_EQUAL_TO =
|
1383
|
+
T.let(
|
1384
|
+
:IS_EQUAL_TO,
|
1385
|
+
Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol
|
1386
|
+
)
|
1387
|
+
IS_NOT_EQUAL_TO =
|
1388
|
+
T.let(
|
1389
|
+
:IS_NOT_EQUAL_TO,
|
1390
|
+
Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol
|
1391
|
+
)
|
1392
|
+
IS_GREATER_THAN =
|
1393
|
+
T.let(
|
1394
|
+
:IS_GREATER_THAN,
|
1395
|
+
Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol
|
1396
|
+
)
|
1397
|
+
IS_GREATER_THAN_OR_EQUAL_TO =
|
1398
|
+
T.let(
|
1399
|
+
:IS_GREATER_THAN_OR_EQUAL_TO,
|
1400
|
+
Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol
|
1401
|
+
)
|
1402
|
+
IS_LESS_THAN =
|
1403
|
+
T.let(
|
1404
|
+
:IS_LESS_THAN,
|
1405
|
+
Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol
|
1406
|
+
)
|
1407
|
+
IS_LESS_THAN_OR_EQUAL_TO =
|
1408
|
+
T.let(
|
1409
|
+
:IS_LESS_THAN_OR_EQUAL_TO,
|
1410
|
+
Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol
|
1411
|
+
)
|
1412
|
+
|
1413
|
+
sig do
|
1414
|
+
override.returns(
|
1415
|
+
T::Array[
|
1416
|
+
Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol
|
1417
|
+
]
|
1418
|
+
)
|
1419
|
+
end
|
1420
|
+
def self.values
|
1421
|
+
end
|
1422
|
+
end
|
1423
|
+
|
1424
|
+
# A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
|
1425
|
+
module Value
|
1426
|
+
extend Lithic::Internal::Type::Union
|
1427
|
+
|
1428
|
+
Variants =
|
1429
|
+
T.type_alias { T.any(String, Integer, T::Array[String]) }
|
1430
|
+
|
1431
|
+
sig do
|
1432
|
+
override.returns(
|
1433
|
+
T::Array[
|
1434
|
+
Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants
|
1435
|
+
]
|
1436
|
+
)
|
1437
|
+
end
|
1438
|
+
def self.variants
|
1439
|
+
end
|
1440
|
+
|
1441
|
+
StringArray =
|
1442
|
+
T.let(
|
1443
|
+
Lithic::Internal::Type::ArrayOf[String],
|
1444
|
+
Lithic::Internal::Type::Converter
|
1445
|
+
)
|
1446
|
+
end
|
1447
|
+
end
|
1448
|
+
end
|
341
1449
|
|
342
1450
|
sig do
|
343
1451
|
override.returns(
|
@@ -351,7 +1459,7 @@ module Lithic
|
|
351
1459
|
end
|
352
1460
|
end
|
353
1461
|
|
354
|
-
# The
|
1462
|
+
# The event stream during which the rule will be evaluated.
|
355
1463
|
module EventStream
|
356
1464
|
extend Lithic::Internal::Type::Enum
|
357
1465
|
|
@@ -418,13 +1526,15 @@ module Lithic
|
|
418
1526
|
end
|
419
1527
|
end
|
420
1528
|
|
421
|
-
# The type of Auth Rule.
|
422
|
-
# will be evaluated.
|
1529
|
+
# The type of Auth Rule. For certain rule types, this determines the event stream
|
1530
|
+
# during which it will be evaluated. For rules that can be applied to one of
|
1531
|
+
# several event streams, the effective one is defined by the separate
|
1532
|
+
# `event_stream` field.
|
423
1533
|
#
|
424
1534
|
# - `CONDITIONAL_BLOCK`: AUTHORIZATION event stream.
|
425
1535
|
# - `VELOCITY_LIMIT`: AUTHORIZATION event stream.
|
426
1536
|
# - `MERCHANT_LOCK`: AUTHORIZATION event stream.
|
427
|
-
# - `
|
1537
|
+
# - `CONDITIONAL_ACTION`: AUTHORIZATION or THREE_DS_AUTHENTICATION event stream.
|
428
1538
|
module Type
|
429
1539
|
extend Lithic::Internal::Type::Enum
|
430
1540
|
|
@@ -449,9 +1559,9 @@ module Lithic
|
|
449
1559
|
:MERCHANT_LOCK,
|
450
1560
|
Lithic::Models::AuthRules::V2PromoteResponse::Type::TaggedSymbol
|
451
1561
|
)
|
452
|
-
|
1562
|
+
CONDITIONAL_ACTION =
|
453
1563
|
T.let(
|
454
|
-
:
|
1564
|
+
:CONDITIONAL_ACTION,
|
455
1565
|
Lithic::Models::AuthRules::V2PromoteResponse::Type::TaggedSymbol
|
456
1566
|
)
|
457
1567
|
|