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