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