lithic 0.1.0.pre.alpha.41 → 0.1.0.pre.alpha.43

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 (89) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +16 -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/models/transaction_simulate_credit_authorization_advice_params.rb +62 -0
  26. data/lib/lithic/models/transaction_simulate_credit_authorization_advice_response.rb +25 -0
  27. data/lib/lithic/models.rb +3 -0
  28. data/lib/lithic/resources/account_activity.rb +2 -2
  29. data/lib/lithic/resources/auth_rules/v2/backtests.rb +3 -3
  30. data/lib/lithic/resources/auth_rules/v2.rb +19 -13
  31. data/lib/lithic/resources/transactions.rb +37 -0
  32. data/lib/lithic/version.rb +1 -1
  33. data/lib/lithic.rb +2 -0
  34. data/rbi/lithic/models/account_activity_list_params.rbi +18 -30
  35. data/rbi/lithic/models/auth_rules/v2_apply_params.rbi +19 -5
  36. data/rbi/lithic/models/auth_rules/v2_apply_response.rbi +1128 -18
  37. data/rbi/lithic/models/auth_rules/v2_create_params.rbi +646 -21
  38. data/rbi/lithic/models/auth_rules/v2_create_response.rbi +1128 -18
  39. data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +554 -4
  40. data/rbi/lithic/models/auth_rules/v2_draft_response.rbi +1128 -18
  41. data/rbi/lithic/models/auth_rules/v2_list_params.rbi +16 -0
  42. data/rbi/lithic/models/auth_rules/v2_list_response.rbi +1128 -18
  43. data/rbi/lithic/models/auth_rules/v2_promote_response.rbi +1128 -18
  44. data/rbi/lithic/models/auth_rules/v2_retrieve_response.rbi +1128 -18
  45. data/rbi/lithic/models/auth_rules/v2_update_params.rbi +0 -11
  46. data/rbi/lithic/models/auth_rules/v2_update_response.rbi +1128 -18
  47. data/rbi/lithic/models/event.rbi +16 -0
  48. data/rbi/lithic/models/event_list_params.rbi +10 -0
  49. data/rbi/lithic/models/event_subscription.rbi +10 -0
  50. data/rbi/lithic/models/events/subscription_create_params.rbi +10 -0
  51. data/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +10 -0
  52. data/rbi/lithic/models/events/subscription_update_params.rbi +10 -0
  53. data/rbi/lithic/models/three_ds/authentication_retrieve_response.rbi +45 -41
  54. data/rbi/lithic/models/transaction.rbi +17 -0
  55. data/rbi/lithic/models/transaction_simulate_credit_authorization_advice_params.rbi +92 -0
  56. data/rbi/lithic/models/transaction_simulate_credit_authorization_advice_response.rbi +46 -0
  57. data/rbi/lithic/models.rbi +3 -0
  58. data/rbi/lithic/resources/account_activity.rbi +2 -2
  59. data/rbi/lithic/resources/auth_rules/v2/backtests.rbi +3 -3
  60. data/rbi/lithic/resources/auth_rules/v2.rbi +28 -14
  61. data/rbi/lithic/resources/transactions.rbi +33 -0
  62. data/sig/lithic/models/account_activity_list_params.rbs +16 -16
  63. data/sig/lithic/models/auth_rules/v2_apply_params.rbs +11 -2
  64. data/sig/lithic/models/auth_rules/v2_apply_response.rbs +317 -2
  65. data/sig/lithic/models/auth_rules/v2_create_params.rbs +188 -4
  66. data/sig/lithic/models/auth_rules/v2_create_response.rbs +317 -2
  67. data/sig/lithic/models/auth_rules/v2_draft_params.rbs +155 -0
  68. data/sig/lithic/models/auth_rules/v2_draft_response.rbs +317 -2
  69. data/sig/lithic/models/auth_rules/v2_list_params.rbs +9 -1
  70. data/sig/lithic/models/auth_rules/v2_list_response.rbs +317 -2
  71. data/sig/lithic/models/auth_rules/v2_promote_response.rbs +317 -2
  72. data/sig/lithic/models/auth_rules/v2_retrieve_response.rbs +317 -2
  73. data/sig/lithic/models/auth_rules/v2_update_params.rbs +0 -7
  74. data/sig/lithic/models/auth_rules/v2_update_response.rbs +317 -2
  75. data/sig/lithic/models/event.rbs +4 -0
  76. data/sig/lithic/models/event_list_params.rbs +4 -0
  77. data/sig/lithic/models/event_subscription.rbs +4 -0
  78. data/sig/lithic/models/events/subscription_create_params.rbs +4 -0
  79. data/sig/lithic/models/events/subscription_send_simulated_example_params.rbs +4 -0
  80. data/sig/lithic/models/events/subscription_update_params.rbs +4 -0
  81. data/sig/lithic/models/three_ds/authentication_retrieve_response.rbs +20 -20
  82. data/sig/lithic/models/transaction.rbs +10 -2
  83. data/sig/lithic/models/transaction_simulate_credit_authorization_advice_params.rbs +50 -0
  84. data/sig/lithic/models/transaction_simulate_credit_authorization_advice_response.rbs +20 -0
  85. data/sig/lithic/models.rbs +2 -0
  86. data/sig/lithic/resources/account_activity.rbs +2 -2
  87. data/sig/lithic/resources/auth_rules/v2.rbs +6 -3
  88. data/sig/lithic/resources/transactions.rbs +9 -0
  89. metadata +8 -2
@@ -17,6 +17,12 @@ module Lithic
17
17
  # @return [Array<String>]
18
18
  required :account_tokens, Lithic::Internal::Type::ArrayOf[String]
19
19
 
20
+ # @!attribute business_account_tokens
21
+ # Business Account tokens to which the Auth Rule applies.
22
+ #
23
+ # @return [Array<String>]
24
+ required :business_account_tokens, Lithic::Internal::Type::ArrayOf[String]
25
+
20
26
  # @!attribute card_tokens
21
27
  # Card tokens to which the Auth Rule applies.
22
28
  #
@@ -34,7 +40,7 @@ module Lithic
34
40
  required :draft_version, -> { Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion }, nil?: true
35
41
 
36
42
  # @!attribute event_stream
37
- # The type of event stream the Auth rule applies to.
43
+ # The event stream during which the rule will be evaluated.
38
44
  #
39
45
  # @return [Symbol, Lithic::Models::AuthRules::V2PromoteResponse::EventStream]
40
46
  required :event_stream, enum: -> { Lithic::Models::AuthRules::V2PromoteResponse::EventStream }
@@ -58,13 +64,15 @@ module Lithic
58
64
  required :state, enum: -> { Lithic::Models::AuthRules::V2PromoteResponse::State }
59
65
 
60
66
  # @!attribute type
61
- # The type of Auth Rule. Effectively determines the event stream during which it
62
- # will be evaluated.
67
+ # The type of Auth Rule. For certain rule types, this determines the event stream
68
+ # during which it will be evaluated. For rules that can be applied to one of
69
+ # several event streams, the effective one is defined by the separate
70
+ # `event_stream` field.
63
71
  #
64
72
  # - `CONDITIONAL_BLOCK`: AUTHORIZATION event stream.
65
73
  # - `VELOCITY_LIMIT`: AUTHORIZATION event stream.
66
74
  # - `MERCHANT_LOCK`: AUTHORIZATION event stream.
67
- # - `CONDITIONAL_3DS_ACTION`: THREE_DS_AUTHENTICATION event stream.
75
+ # - `CONDITIONAL_ACTION`: AUTHORIZATION or THREE_DS_AUTHENTICATION event stream.
68
76
  #
69
77
  # @return [Symbol, Lithic::Models::AuthRules::V2PromoteResponse::Type]
70
78
  required :type, enum: -> { Lithic::Models::AuthRules::V2PromoteResponse::Type }
@@ -75,7 +83,7 @@ module Lithic
75
83
  # @return [Array<String>, nil]
76
84
  optional :excluded_card_tokens, Lithic::Internal::Type::ArrayOf[String]
77
85
 
78
- # @!method initialize(token:, account_tokens:, card_tokens:, current_version:, draft_version:, event_stream:, name:, program_level:, state:, type:, excluded_card_tokens: nil)
86
+ # @!method initialize(token:, account_tokens:, business_account_tokens:, card_tokens:, current_version:, draft_version:, event_stream:, name:, program_level:, state:, type:, excluded_card_tokens: nil)
79
87
  # Some parameter documentations has been truncated, see
80
88
  # {Lithic::Models::AuthRules::V2PromoteResponse} for more details.
81
89
  #
@@ -83,13 +91,15 @@ module Lithic
83
91
  #
84
92
  # @param account_tokens [Array<String>] Account tokens to which the Auth Rule applies.
85
93
  #
94
+ # @param business_account_tokens [Array<String>] Business Account tokens to which the Auth Rule applies.
95
+ #
86
96
  # @param card_tokens [Array<String>] Card tokens to which the Auth Rule applies.
87
97
  #
88
98
  # @param current_version [Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion, nil]
89
99
  #
90
100
  # @param draft_version [Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion, nil]
91
101
  #
92
- # @param event_stream [Symbol, Lithic::Models::AuthRules::V2PromoteResponse::EventStream] The type of event stream the Auth rule applies to.
102
+ # @param event_stream [Symbol, Lithic::Models::AuthRules::V2PromoteResponse::EventStream] The event stream during which the rule will be evaluated.
93
103
  #
94
104
  # @param name [String, nil] Auth Rule Name
95
105
  #
@@ -97,7 +107,7 @@ module Lithic
97
107
  #
98
108
  # @param state [Symbol, Lithic::Models::AuthRules::V2PromoteResponse::State] The state of the Auth Rule
99
109
  #
100
- # @param type [Symbol, Lithic::Models::AuthRules::V2PromoteResponse::Type] The type of Auth Rule. Effectively determines the event stream during which it w
110
+ # @param type [Symbol, Lithic::Models::AuthRules::V2PromoteResponse::Type] The type of Auth Rule. For certain rule types, this determines the event stream
101
111
  #
102
112
  # @param excluded_card_tokens [Array<String>] Card tokens to which the Auth Rule does not apply.
103
113
 
@@ -106,7 +116,7 @@ module Lithic
106
116
  # @!attribute parameters
107
117
  # Parameters for the Auth Rule
108
118
  #
109
- # @return [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters]
119
+ # @return [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters]
110
120
  required :parameters,
111
121
  union: -> { Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters }
112
122
 
@@ -123,7 +133,7 @@ module Lithic
123
133
  # Some parameter documentations has been truncated, see
124
134
  # {Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion} for more details.
125
135
  #
126
- # @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters] Parameters for the Auth Rule
136
+ # @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters] Parameters for the Auth Rule
127
137
  #
128
138
  # @param version [Integer] The version of the rule, this is incremented whenever the rule's parameters chan
129
139
 
@@ -141,8 +151,248 @@ module Lithic
141
151
 
142
152
  variant -> { Lithic::AuthRules::Conditional3DSActionParameters }
143
153
 
154
+ variant -> { Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters }
155
+
156
+ class ConditionalAuthorizationActionParameters < Lithic::Internal::Type::BaseModel
157
+ # @!attribute action
158
+ # The action to take if the conditions are met.
159
+ #
160
+ # @return [Symbol, Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Action]
161
+ required :action,
162
+ enum: -> { Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Action }
163
+
164
+ # @!attribute conditions
165
+ #
166
+ # @return [Array<Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition>]
167
+ required :conditions,
168
+ -> do
169
+ Lithic::Internal::Type::ArrayOf[
170
+ Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition
171
+ ]
172
+ end
173
+
174
+ # @!method initialize(action:, conditions:)
175
+ # @param action [Symbol, Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Action] The action to take if the conditions are met.
176
+ #
177
+ # @param conditions [Array<Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition>]
178
+
179
+ # The action to take if the conditions are met.
180
+ #
181
+ # @see Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters#action
182
+ module Action
183
+ extend Lithic::Internal::Type::Enum
184
+
185
+ DECLINE = :DECLINE
186
+ CHALLENGE = :CHALLENGE
187
+
188
+ # @!method self.values
189
+ # @return [Array<Symbol>]
190
+ end
191
+
192
+ class Condition < Lithic::Internal::Type::BaseModel
193
+ # @!attribute attribute
194
+ # The attribute to target.
195
+ #
196
+ # The following attributes may be targeted:
197
+ #
198
+ # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a
199
+ # business by the types of goods or services it provides.
200
+ # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all
201
+ # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for
202
+ # Netherlands Antilles.
203
+ # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of
204
+ # the transaction.
205
+ # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor
206
+ # (merchant).
207
+ # - `DESCRIPTOR`: Short description of card acceptor.
208
+ # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer
209
+ # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or
210
+ # `TOKEN_AUTHENTICATED`.
211
+ # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number
212
+ # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`,
213
+ # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`,
214
+ # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`,
215
+ # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`.
216
+ # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
217
+ # fee field in the settlement/cardholder billing currency. This is the amount
218
+ # the issuer should authorize against unless the issuer is paying the acquirer
219
+ # fee on behalf of the cardholder.
220
+ # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
221
+ # given authorization. Scores are on a range of 0-999, with 0 representing the
222
+ # lowest risk and 999 representing the highest risk. For Visa transactions,
223
+ # where the raw score has a range of 0-99, Lithic will normalize the score by
224
+ # multiplying the raw score by 10x.
225
+ # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the
226
+ # trailing 15 minutes before the authorization.
227
+ # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the
228
+ # trailing hour up and until the authorization.
229
+ # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the
230
+ # trailing 24 hours up and until the authorization.
231
+ # - `CARD_STATE`: The current state of the card associated with the transaction.
232
+ # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`,
233
+ # `PENDING_FULFILLMENT`.
234
+ # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction.
235
+ # Valid values are `TRUE`, `FALSE`.
236
+ # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`,
237
+ # `OK`, `BLOCKED`.
238
+ # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the
239
+ # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`,
240
+ # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`.
241
+ # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates
242
+ # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`.
243
+ #
244
+ # @return [Symbol, Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute, nil]
245
+ optional :attribute,
246
+ enum: -> { Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute }
247
+
248
+ # @!attribute operation
249
+ # The operation to apply to the attribute
250
+ #
251
+ # @return [Symbol, Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation, nil]
252
+ optional :operation,
253
+ enum: -> { Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation }
254
+
255
+ # @!attribute value
256
+ # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
257
+ #
258
+ # @return [String, Integer, Array<String>, nil]
259
+ optional :value,
260
+ union: -> { Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value }
261
+
262
+ # @!method initialize(attribute: nil, operation: nil, value: nil)
263
+ # Some parameter documentations has been truncated, see
264
+ # {Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition}
265
+ # for more details.
266
+ #
267
+ # @param attribute [Symbol, Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute] The attribute to target.
268
+ #
269
+ # @param operation [Symbol, Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation] The operation to apply to the attribute
270
+ #
271
+ # @param value [String, Integer, Array<String>] A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
272
+
273
+ # The attribute to target.
274
+ #
275
+ # The following attributes may be targeted:
276
+ #
277
+ # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a
278
+ # business by the types of goods or services it provides.
279
+ # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all
280
+ # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for
281
+ # Netherlands Antilles.
282
+ # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of
283
+ # the transaction.
284
+ # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor
285
+ # (merchant).
286
+ # - `DESCRIPTOR`: Short description of card acceptor.
287
+ # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer
288
+ # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or
289
+ # `TOKEN_AUTHENTICATED`.
290
+ # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number
291
+ # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`,
292
+ # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`,
293
+ # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`,
294
+ # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`.
295
+ # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
296
+ # fee field in the settlement/cardholder billing currency. This is the amount
297
+ # the issuer should authorize against unless the issuer is paying the acquirer
298
+ # fee on behalf of the cardholder.
299
+ # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
300
+ # given authorization. Scores are on a range of 0-999, with 0 representing the
301
+ # lowest risk and 999 representing the highest risk. For Visa transactions,
302
+ # where the raw score has a range of 0-99, Lithic will normalize the score by
303
+ # multiplying the raw score by 10x.
304
+ # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the
305
+ # trailing 15 minutes before the authorization.
306
+ # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the
307
+ # trailing hour up and until the authorization.
308
+ # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the
309
+ # trailing 24 hours up and until the authorization.
310
+ # - `CARD_STATE`: The current state of the card associated with the transaction.
311
+ # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`,
312
+ # `PENDING_FULFILLMENT`.
313
+ # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction.
314
+ # Valid values are `TRUE`, `FALSE`.
315
+ # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`,
316
+ # `OK`, `BLOCKED`.
317
+ # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the
318
+ # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`,
319
+ # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`.
320
+ # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates
321
+ # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`.
322
+ #
323
+ # @see Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition#attribute
324
+ module Attribute
325
+ extend Lithic::Internal::Type::Enum
326
+
327
+ MCC = :MCC
328
+ COUNTRY = :COUNTRY
329
+ CURRENCY = :CURRENCY
330
+ MERCHANT_ID = :MERCHANT_ID
331
+ DESCRIPTOR = :DESCRIPTOR
332
+ LIABILITY_SHIFT = :LIABILITY_SHIFT
333
+ PAN_ENTRY_MODE = :PAN_ENTRY_MODE
334
+ TRANSACTION_AMOUNT = :TRANSACTION_AMOUNT
335
+ RISK_SCORE = :RISK_SCORE
336
+ CARD_TRANSACTION_COUNT_15_M = :CARD_TRANSACTION_COUNT_15M
337
+ CARD_TRANSACTION_COUNT_1_H = :CARD_TRANSACTION_COUNT_1H
338
+ CARD_TRANSACTION_COUNT_24_H = :CARD_TRANSACTION_COUNT_24H
339
+ CARD_STATE = :CARD_STATE
340
+ PIN_ENTERED = :PIN_ENTERED
341
+ PIN_STATUS = :PIN_STATUS
342
+ WALLET_TYPE = :WALLET_TYPE
343
+ TRANSACTION_INITIATOR = :TRANSACTION_INITIATOR
344
+
345
+ # @!method self.values
346
+ # @return [Array<Symbol>]
347
+ end
348
+
349
+ # The operation to apply to the attribute
350
+ #
351
+ # @see Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition#operation
352
+ module Operation
353
+ extend Lithic::Internal::Type::Enum
354
+
355
+ IS_ONE_OF = :IS_ONE_OF
356
+ IS_NOT_ONE_OF = :IS_NOT_ONE_OF
357
+ MATCHES = :MATCHES
358
+ DOES_NOT_MATCH = :DOES_NOT_MATCH
359
+ IS_EQUAL_TO = :IS_EQUAL_TO
360
+ IS_NOT_EQUAL_TO = :IS_NOT_EQUAL_TO
361
+ IS_GREATER_THAN = :IS_GREATER_THAN
362
+ IS_GREATER_THAN_OR_EQUAL_TO = :IS_GREATER_THAN_OR_EQUAL_TO
363
+ IS_LESS_THAN = :IS_LESS_THAN
364
+ IS_LESS_THAN_OR_EQUAL_TO = :IS_LESS_THAN_OR_EQUAL_TO
365
+
366
+ # @!method self.values
367
+ # @return [Array<Symbol>]
368
+ end
369
+
370
+ # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
371
+ #
372
+ # @see Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition#value
373
+ module Value
374
+ extend Lithic::Internal::Type::Union
375
+
376
+ # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
377
+ variant String
378
+
379
+ # A number, to be used with `IS_GREATER_THAN`, `IS_GREATER_THAN_OR_EQUAL_TO`, `IS_LESS_THAN`, `IS_LESS_THAN_OR_EQUAL_TO`, `IS_EQUAL_TO`, or `IS_NOT_EQUAL_TO`
380
+ variant Integer
381
+
382
+ # An array of strings, to be used with `IS_ONE_OF` or `IS_NOT_ONE_OF`
383
+ variant -> { Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::StringArray }
384
+
385
+ # @!method self.variants
386
+ # @return [Array(String, Integer, Array<String>)]
387
+
388
+ # @type [Lithic::Internal::Type::Converter]
389
+ StringArray = Lithic::Internal::Type::ArrayOf[String]
390
+ end
391
+ end
392
+ end
393
+
144
394
  # @!method self.variants
145
- # @return [Array(Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters)]
395
+ # @return [Array(Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters)]
146
396
  end
147
397
  end
148
398
 
@@ -151,7 +401,7 @@ module Lithic
151
401
  # @!attribute parameters
152
402
  # Parameters for the Auth Rule
153
403
  #
154
- # @return [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters]
404
+ # @return [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters]
155
405
  required :parameters, union: -> { Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters }
156
406
 
157
407
  response_only do
@@ -167,7 +417,7 @@ module Lithic
167
417
  # Some parameter documentations has been truncated, see
168
418
  # {Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion} for more details.
169
419
  #
170
- # @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters] Parameters for the Auth Rule
420
+ # @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters] Parameters for the Auth Rule
171
421
  #
172
422
  # @param version [Integer] The version of the rule, this is incremented whenever the rule's parameters chan
173
423
 
@@ -185,12 +435,252 @@ module Lithic
185
435
 
186
436
  variant -> { Lithic::AuthRules::Conditional3DSActionParameters }
187
437
 
438
+ variant -> { Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters }
439
+
440
+ class ConditionalAuthorizationActionParameters < Lithic::Internal::Type::BaseModel
441
+ # @!attribute action
442
+ # The action to take if the conditions are met.
443
+ #
444
+ # @return [Symbol, Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Action]
445
+ required :action,
446
+ enum: -> { Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Action }
447
+
448
+ # @!attribute conditions
449
+ #
450
+ # @return [Array<Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition>]
451
+ required :conditions,
452
+ -> do
453
+ Lithic::Internal::Type::ArrayOf[
454
+ Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition
455
+ ]
456
+ end
457
+
458
+ # @!method initialize(action:, conditions:)
459
+ # @param action [Symbol, Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Action] The action to take if the conditions are met.
460
+ #
461
+ # @param conditions [Array<Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition>]
462
+
463
+ # The action to take if the conditions are met.
464
+ #
465
+ # @see Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters#action
466
+ module Action
467
+ extend Lithic::Internal::Type::Enum
468
+
469
+ DECLINE = :DECLINE
470
+ CHALLENGE = :CHALLENGE
471
+
472
+ # @!method self.values
473
+ # @return [Array<Symbol>]
474
+ end
475
+
476
+ class Condition < Lithic::Internal::Type::BaseModel
477
+ # @!attribute attribute
478
+ # The attribute to target.
479
+ #
480
+ # The following attributes may be targeted:
481
+ #
482
+ # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a
483
+ # business by the types of goods or services it provides.
484
+ # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all
485
+ # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for
486
+ # Netherlands Antilles.
487
+ # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of
488
+ # the transaction.
489
+ # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor
490
+ # (merchant).
491
+ # - `DESCRIPTOR`: Short description of card acceptor.
492
+ # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer
493
+ # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or
494
+ # `TOKEN_AUTHENTICATED`.
495
+ # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number
496
+ # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`,
497
+ # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`,
498
+ # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`,
499
+ # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`.
500
+ # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
501
+ # fee field in the settlement/cardholder billing currency. This is the amount
502
+ # the issuer should authorize against unless the issuer is paying the acquirer
503
+ # fee on behalf of the cardholder.
504
+ # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
505
+ # given authorization. Scores are on a range of 0-999, with 0 representing the
506
+ # lowest risk and 999 representing the highest risk. For Visa transactions,
507
+ # where the raw score has a range of 0-99, Lithic will normalize the score by
508
+ # multiplying the raw score by 10x.
509
+ # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the
510
+ # trailing 15 minutes before the authorization.
511
+ # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the
512
+ # trailing hour up and until the authorization.
513
+ # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the
514
+ # trailing 24 hours up and until the authorization.
515
+ # - `CARD_STATE`: The current state of the card associated with the transaction.
516
+ # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`,
517
+ # `PENDING_FULFILLMENT`.
518
+ # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction.
519
+ # Valid values are `TRUE`, `FALSE`.
520
+ # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`,
521
+ # `OK`, `BLOCKED`.
522
+ # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the
523
+ # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`,
524
+ # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`.
525
+ # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates
526
+ # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`.
527
+ #
528
+ # @return [Symbol, Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute, nil]
529
+ optional :attribute,
530
+ enum: -> { Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute }
531
+
532
+ # @!attribute operation
533
+ # The operation to apply to the attribute
534
+ #
535
+ # @return [Symbol, Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation, nil]
536
+ optional :operation,
537
+ enum: -> { Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation }
538
+
539
+ # @!attribute value
540
+ # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
541
+ #
542
+ # @return [String, Integer, Array<String>, nil]
543
+ optional :value,
544
+ union: -> { Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value }
545
+
546
+ # @!method initialize(attribute: nil, operation: nil, value: nil)
547
+ # Some parameter documentations has been truncated, see
548
+ # {Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition}
549
+ # for more details.
550
+ #
551
+ # @param attribute [Symbol, Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute] The attribute to target.
552
+ #
553
+ # @param operation [Symbol, Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation] The operation to apply to the attribute
554
+ #
555
+ # @param value [String, Integer, Array<String>] A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
556
+
557
+ # The attribute to target.
558
+ #
559
+ # The following attributes may be targeted:
560
+ #
561
+ # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a
562
+ # business by the types of goods or services it provides.
563
+ # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all
564
+ # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for
565
+ # Netherlands Antilles.
566
+ # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of
567
+ # the transaction.
568
+ # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor
569
+ # (merchant).
570
+ # - `DESCRIPTOR`: Short description of card acceptor.
571
+ # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer
572
+ # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or
573
+ # `TOKEN_AUTHENTICATED`.
574
+ # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number
575
+ # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`,
576
+ # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`,
577
+ # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`,
578
+ # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`.
579
+ # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
580
+ # fee field in the settlement/cardholder billing currency. This is the amount
581
+ # the issuer should authorize against unless the issuer is paying the acquirer
582
+ # fee on behalf of the cardholder.
583
+ # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
584
+ # given authorization. Scores are on a range of 0-999, with 0 representing the
585
+ # lowest risk and 999 representing the highest risk. For Visa transactions,
586
+ # where the raw score has a range of 0-99, Lithic will normalize the score by
587
+ # multiplying the raw score by 10x.
588
+ # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the
589
+ # trailing 15 minutes before the authorization.
590
+ # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the
591
+ # trailing hour up and until the authorization.
592
+ # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the
593
+ # trailing 24 hours up and until the authorization.
594
+ # - `CARD_STATE`: The current state of the card associated with the transaction.
595
+ # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`,
596
+ # `PENDING_FULFILLMENT`.
597
+ # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction.
598
+ # Valid values are `TRUE`, `FALSE`.
599
+ # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`,
600
+ # `OK`, `BLOCKED`.
601
+ # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the
602
+ # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`,
603
+ # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`.
604
+ # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates
605
+ # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`.
606
+ #
607
+ # @see Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition#attribute
608
+ module Attribute
609
+ extend Lithic::Internal::Type::Enum
610
+
611
+ MCC = :MCC
612
+ COUNTRY = :COUNTRY
613
+ CURRENCY = :CURRENCY
614
+ MERCHANT_ID = :MERCHANT_ID
615
+ DESCRIPTOR = :DESCRIPTOR
616
+ LIABILITY_SHIFT = :LIABILITY_SHIFT
617
+ PAN_ENTRY_MODE = :PAN_ENTRY_MODE
618
+ TRANSACTION_AMOUNT = :TRANSACTION_AMOUNT
619
+ RISK_SCORE = :RISK_SCORE
620
+ CARD_TRANSACTION_COUNT_15_M = :CARD_TRANSACTION_COUNT_15M
621
+ CARD_TRANSACTION_COUNT_1_H = :CARD_TRANSACTION_COUNT_1H
622
+ CARD_TRANSACTION_COUNT_24_H = :CARD_TRANSACTION_COUNT_24H
623
+ CARD_STATE = :CARD_STATE
624
+ PIN_ENTERED = :PIN_ENTERED
625
+ PIN_STATUS = :PIN_STATUS
626
+ WALLET_TYPE = :WALLET_TYPE
627
+ TRANSACTION_INITIATOR = :TRANSACTION_INITIATOR
628
+
629
+ # @!method self.values
630
+ # @return [Array<Symbol>]
631
+ end
632
+
633
+ # The operation to apply to the attribute
634
+ #
635
+ # @see Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition#operation
636
+ module Operation
637
+ extend Lithic::Internal::Type::Enum
638
+
639
+ IS_ONE_OF = :IS_ONE_OF
640
+ IS_NOT_ONE_OF = :IS_NOT_ONE_OF
641
+ MATCHES = :MATCHES
642
+ DOES_NOT_MATCH = :DOES_NOT_MATCH
643
+ IS_EQUAL_TO = :IS_EQUAL_TO
644
+ IS_NOT_EQUAL_TO = :IS_NOT_EQUAL_TO
645
+ IS_GREATER_THAN = :IS_GREATER_THAN
646
+ IS_GREATER_THAN_OR_EQUAL_TO = :IS_GREATER_THAN_OR_EQUAL_TO
647
+ IS_LESS_THAN = :IS_LESS_THAN
648
+ IS_LESS_THAN_OR_EQUAL_TO = :IS_LESS_THAN_OR_EQUAL_TO
649
+
650
+ # @!method self.values
651
+ # @return [Array<Symbol>]
652
+ end
653
+
654
+ # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
655
+ #
656
+ # @see Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition#value
657
+ module Value
658
+ extend Lithic::Internal::Type::Union
659
+
660
+ # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
661
+ variant String
662
+
663
+ # A number, to be used with `IS_GREATER_THAN`, `IS_GREATER_THAN_OR_EQUAL_TO`, `IS_LESS_THAN`, `IS_LESS_THAN_OR_EQUAL_TO`, `IS_EQUAL_TO`, or `IS_NOT_EQUAL_TO`
664
+ variant Integer
665
+
666
+ # An array of strings, to be used with `IS_ONE_OF` or `IS_NOT_ONE_OF`
667
+ variant -> { Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::StringArray }
668
+
669
+ # @!method self.variants
670
+ # @return [Array(String, Integer, Array<String>)]
671
+
672
+ # @type [Lithic::Internal::Type::Converter]
673
+ StringArray = Lithic::Internal::Type::ArrayOf[String]
674
+ end
675
+ end
676
+ end
677
+
188
678
  # @!method self.variants
189
- # @return [Array(Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters)]
679
+ # @return [Array(Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters)]
190
680
  end
191
681
  end
192
682
 
193
- # The type of event stream the Auth rule applies to.
683
+ # The event stream during which the rule will be evaluated.
194
684
  #
195
685
  # @see Lithic::Models::AuthRules::V2PromoteResponse#event_stream
196
686
  module EventStream
@@ -216,13 +706,15 @@ module Lithic
216
706
  # @return [Array<Symbol>]
217
707
  end
218
708
 
219
- # The type of Auth Rule. Effectively determines the event stream during which it
220
- # will be evaluated.
709
+ # The type of Auth Rule. For certain rule types, this determines the event stream
710
+ # during which it will be evaluated. For rules that can be applied to one of
711
+ # several event streams, the effective one is defined by the separate
712
+ # `event_stream` field.
221
713
  #
222
714
  # - `CONDITIONAL_BLOCK`: AUTHORIZATION event stream.
223
715
  # - `VELOCITY_LIMIT`: AUTHORIZATION event stream.
224
716
  # - `MERCHANT_LOCK`: AUTHORIZATION event stream.
225
- # - `CONDITIONAL_3DS_ACTION`: THREE_DS_AUTHENTICATION event stream.
717
+ # - `CONDITIONAL_ACTION`: AUTHORIZATION or THREE_DS_AUTHENTICATION event stream.
226
718
  #
227
719
  # @see Lithic::Models::AuthRules::V2PromoteResponse#type
228
720
  module Type
@@ -231,7 +723,7 @@ module Lithic
231
723
  CONDITIONAL_BLOCK = :CONDITIONAL_BLOCK
232
724
  VELOCITY_LIMIT = :VELOCITY_LIMIT
233
725
  MERCHANT_LOCK = :MERCHANT_LOCK
234
- CONDITIONAL_3DS_ACTION = :CONDITIONAL_3DS_ACTION
726
+ CONDITIONAL_ACTION = :CONDITIONAL_ACTION
235
727
 
236
728
  # @!method self.values
237
729
  # @return [Array<Symbol>]