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