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
@@ -11,8 +11,20 @@ module Lithic
11
11
  # @!attribute account_tokens
12
12
  # Account tokens to which the Auth Rule applies.
13
13
  #
14
- # @return [Array<String>]
15
- required :account_tokens, Lithic::Internal::Type::ArrayOf[String]
14
+ # @return [Array<String>, nil]
15
+ optional :account_tokens, Lithic::Internal::Type::ArrayOf[String]
16
+
17
+ # @!attribute business_account_tokens
18
+ # Business Account tokens to which the Auth Rule applies.
19
+ #
20
+ # @return [Array<String>, nil]
21
+ optional :business_account_tokens, Lithic::Internal::Type::ArrayOf[String]
22
+
23
+ # @!attribute event_stream
24
+ # The event stream during which the rule will be evaluated.
25
+ #
26
+ # @return [Symbol, Lithic::Models::AuthRules::V2CreateParams::EventStream, nil]
27
+ optional :event_stream, enum: -> { Lithic::AuthRules::V2CreateParams::EventStream }
16
28
 
17
29
  # @!attribute name
18
30
  # Auth Rule Name
@@ -23,17 +35,19 @@ module Lithic
23
35
  # @!attribute parameters
24
36
  # Parameters for the Auth Rule
25
37
  #
26
- # @return [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, nil]
38
+ # @return [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters, nil]
27
39
  optional :parameters, union: -> { Lithic::AuthRules::V2CreateParams::Parameters }
28
40
 
29
41
  # @!attribute type
30
- # The type of Auth Rule. Effectively determines the event stream during which it
31
- # will be evaluated.
42
+ # The type of Auth Rule. For certain rule types, this determines the event stream
43
+ # during which it will be evaluated. For rules that can be applied to one of
44
+ # several event streams, the effective one is defined by the separate
45
+ # `event_stream` field.
32
46
  #
33
47
  # - `CONDITIONAL_BLOCK`: AUTHORIZATION event stream.
34
48
  # - `VELOCITY_LIMIT`: AUTHORIZATION event stream.
35
49
  # - `MERCHANT_LOCK`: AUTHORIZATION event stream.
36
- # - `CONDITIONAL_3DS_ACTION`: THREE_DS_AUTHENTICATION event stream.
50
+ # - `CONDITIONAL_ACTION`: AUTHORIZATION or THREE_DS_AUTHENTICATION event stream.
37
51
  #
38
52
  # @return [Symbol, Lithic::Models::AuthRules::V2CreateParams::Type, nil]
39
53
  optional :type, enum: -> { Lithic::AuthRules::V2CreateParams::Type }
@@ -56,26 +70,41 @@ module Lithic
56
70
  # @return [Array<String>, nil]
57
71
  optional :excluded_card_tokens, Lithic::Internal::Type::ArrayOf[String]
58
72
 
59
- # @!method initialize(account_tokens:, card_tokens:, program_level:, name: nil, parameters: nil, type: nil, excluded_card_tokens: nil, request_options: {})
73
+ # @!method initialize(card_tokens:, program_level:, account_tokens: nil, business_account_tokens: nil, event_stream: nil, name: nil, parameters: nil, type: nil, excluded_card_tokens: nil, request_options: {})
60
74
  # Some parameter documentations has been truncated, see
61
75
  # {Lithic::Models::AuthRules::V2CreateParams} for more details.
62
76
  #
63
- # @param account_tokens [Array<String>] Account tokens to which the Auth Rule applies.
64
- #
65
77
  # @param card_tokens [Array<String>] Card tokens to which the Auth Rule applies.
66
78
  #
67
79
  # @param program_level [Boolean] Whether the Auth Rule applies to all authorizations on the card program.
68
80
  #
81
+ # @param account_tokens [Array<String>] Account tokens to which the Auth Rule applies.
82
+ #
83
+ # @param business_account_tokens [Array<String>] Business Account tokens to which the Auth Rule applies.
84
+ #
85
+ # @param event_stream [Symbol, Lithic::Models::AuthRules::V2CreateParams::EventStream] The event stream during which the rule will be evaluated.
86
+ #
69
87
  # @param name [String, nil] Auth Rule Name
70
88
  #
71
- # @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters] Parameters for the Auth Rule
89
+ # @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters] Parameters for the Auth Rule
72
90
  #
73
- # @param type [Symbol, Lithic::Models::AuthRules::V2CreateParams::Type] The type of Auth Rule. Effectively determines the event stream during which it w
91
+ # @param type [Symbol, Lithic::Models::AuthRules::V2CreateParams::Type] The type of Auth Rule. For certain rule types, this determines the event stream
74
92
  #
75
93
  # @param excluded_card_tokens [Array<String>] Card tokens to which the Auth Rule does not apply.
76
94
  #
77
95
  # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}]
78
96
 
97
+ # The event stream during which the rule will be evaluated.
98
+ module EventStream
99
+ extend Lithic::Internal::Type::Enum
100
+
101
+ AUTHORIZATION = :AUTHORIZATION
102
+ THREE_DS_AUTHENTICATION = :THREE_DS_AUTHENTICATION
103
+
104
+ # @!method self.values
105
+ # @return [Array<Symbol>]
106
+ end
107
+
79
108
  # Parameters for the Auth Rule
80
109
  module Parameters
81
110
  extend Lithic::Internal::Type::Union
@@ -88,24 +117,262 @@ module Lithic
88
117
 
89
118
  variant -> { Lithic::AuthRules::Conditional3DSActionParameters }
90
119
 
120
+ variant -> { Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters }
121
+
122
+ class ConditionalAuthorizationActionParameters < Lithic::Internal::Type::BaseModel
123
+ # @!attribute action
124
+ # The action to take if the conditions are met.
125
+ #
126
+ # @return [Symbol, Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Action]
127
+ required :action,
128
+ enum: -> { Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Action }
129
+
130
+ # @!attribute conditions
131
+ #
132
+ # @return [Array<Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition>]
133
+ required :conditions,
134
+ -> { Lithic::Internal::Type::ArrayOf[Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition] }
135
+
136
+ # @!method initialize(action:, conditions:)
137
+ # @param action [Symbol, Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Action] The action to take if the conditions are met.
138
+ #
139
+ # @param conditions [Array<Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition>]
140
+
141
+ # The action to take if the conditions are met.
142
+ #
143
+ # @see Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters#action
144
+ module Action
145
+ extend Lithic::Internal::Type::Enum
146
+
147
+ DECLINE = :DECLINE
148
+ CHALLENGE = :CHALLENGE
149
+
150
+ # @!method self.values
151
+ # @return [Array<Symbol>]
152
+ end
153
+
154
+ class Condition < Lithic::Internal::Type::BaseModel
155
+ # @!attribute attribute
156
+ # The attribute to target.
157
+ #
158
+ # The following attributes may be targeted:
159
+ #
160
+ # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a
161
+ # business by the types of goods or services it provides.
162
+ # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all
163
+ # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for
164
+ # Netherlands Antilles.
165
+ # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of
166
+ # the transaction.
167
+ # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor
168
+ # (merchant).
169
+ # - `DESCRIPTOR`: Short description of card acceptor.
170
+ # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer
171
+ # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or
172
+ # `TOKEN_AUTHENTICATED`.
173
+ # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number
174
+ # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`,
175
+ # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`,
176
+ # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`,
177
+ # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`.
178
+ # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
179
+ # fee field in the settlement/cardholder billing currency. This is the amount
180
+ # the issuer should authorize against unless the issuer is paying the acquirer
181
+ # fee on behalf of the cardholder.
182
+ # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
183
+ # given authorization. Scores are on a range of 0-999, with 0 representing the
184
+ # lowest risk and 999 representing the highest risk. For Visa transactions,
185
+ # where the raw score has a range of 0-99, Lithic will normalize the score by
186
+ # multiplying the raw score by 10x.
187
+ # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the
188
+ # trailing 15 minutes before the authorization.
189
+ # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the
190
+ # trailing hour up and until the authorization.
191
+ # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the
192
+ # trailing 24 hours up and until the authorization.
193
+ # - `CARD_STATE`: The current state of the card associated with the transaction.
194
+ # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`,
195
+ # `PENDING_FULFILLMENT`.
196
+ # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction.
197
+ # Valid values are `TRUE`, `FALSE`.
198
+ # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`,
199
+ # `OK`, `BLOCKED`.
200
+ # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the
201
+ # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`,
202
+ # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`.
203
+ # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates
204
+ # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`.
205
+ #
206
+ # @return [Symbol, Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute, nil]
207
+ optional :attribute,
208
+ enum: -> { Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute }
209
+
210
+ # @!attribute operation
211
+ # The operation to apply to the attribute
212
+ #
213
+ # @return [Symbol, Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation, nil]
214
+ optional :operation,
215
+ enum: -> { Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation }
216
+
217
+ # @!attribute value
218
+ # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
219
+ #
220
+ # @return [String, Integer, Array<String>, nil]
221
+ optional :value,
222
+ union: -> { Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Value }
223
+
224
+ # @!method initialize(attribute: nil, operation: nil, value: nil)
225
+ # Some parameter documentations has been truncated, see
226
+ # {Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition}
227
+ # for more details.
228
+ #
229
+ # @param attribute [Symbol, Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute] The attribute to target.
230
+ #
231
+ # @param operation [Symbol, Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation] The operation to apply to the attribute
232
+ #
233
+ # @param value [String, Integer, Array<String>] A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
234
+
235
+ # The attribute to target.
236
+ #
237
+ # The following attributes may be targeted:
238
+ #
239
+ # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a
240
+ # business by the types of goods or services it provides.
241
+ # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all
242
+ # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for
243
+ # Netherlands Antilles.
244
+ # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of
245
+ # the transaction.
246
+ # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor
247
+ # (merchant).
248
+ # - `DESCRIPTOR`: Short description of card acceptor.
249
+ # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer
250
+ # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or
251
+ # `TOKEN_AUTHENTICATED`.
252
+ # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number
253
+ # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`,
254
+ # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`,
255
+ # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`,
256
+ # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`.
257
+ # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
258
+ # fee field in the settlement/cardholder billing currency. This is the amount
259
+ # the issuer should authorize against unless the issuer is paying the acquirer
260
+ # fee on behalf of the cardholder.
261
+ # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
262
+ # given authorization. Scores are on a range of 0-999, with 0 representing the
263
+ # lowest risk and 999 representing the highest risk. For Visa transactions,
264
+ # where the raw score has a range of 0-99, Lithic will normalize the score by
265
+ # multiplying the raw score by 10x.
266
+ # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the
267
+ # trailing 15 minutes before the authorization.
268
+ # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the
269
+ # trailing hour up and until the authorization.
270
+ # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the
271
+ # trailing 24 hours up and until the authorization.
272
+ # - `CARD_STATE`: The current state of the card associated with the transaction.
273
+ # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`,
274
+ # `PENDING_FULFILLMENT`.
275
+ # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction.
276
+ # Valid values are `TRUE`, `FALSE`.
277
+ # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`,
278
+ # `OK`, `BLOCKED`.
279
+ # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the
280
+ # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`,
281
+ # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`.
282
+ # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates
283
+ # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`.
284
+ #
285
+ # @see Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition#attribute
286
+ module Attribute
287
+ extend Lithic::Internal::Type::Enum
288
+
289
+ MCC = :MCC
290
+ COUNTRY = :COUNTRY
291
+ CURRENCY = :CURRENCY
292
+ MERCHANT_ID = :MERCHANT_ID
293
+ DESCRIPTOR = :DESCRIPTOR
294
+ LIABILITY_SHIFT = :LIABILITY_SHIFT
295
+ PAN_ENTRY_MODE = :PAN_ENTRY_MODE
296
+ TRANSACTION_AMOUNT = :TRANSACTION_AMOUNT
297
+ RISK_SCORE = :RISK_SCORE
298
+ CARD_TRANSACTION_COUNT_15_M = :CARD_TRANSACTION_COUNT_15M
299
+ CARD_TRANSACTION_COUNT_1_H = :CARD_TRANSACTION_COUNT_1H
300
+ CARD_TRANSACTION_COUNT_24_H = :CARD_TRANSACTION_COUNT_24H
301
+ CARD_STATE = :CARD_STATE
302
+ PIN_ENTERED = :PIN_ENTERED
303
+ PIN_STATUS = :PIN_STATUS
304
+ WALLET_TYPE = :WALLET_TYPE
305
+ TRANSACTION_INITIATOR = :TRANSACTION_INITIATOR
306
+
307
+ # @!method self.values
308
+ # @return [Array<Symbol>]
309
+ end
310
+
311
+ # The operation to apply to the attribute
312
+ #
313
+ # @see Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition#operation
314
+ module Operation
315
+ extend Lithic::Internal::Type::Enum
316
+
317
+ IS_ONE_OF = :IS_ONE_OF
318
+ IS_NOT_ONE_OF = :IS_NOT_ONE_OF
319
+ MATCHES = :MATCHES
320
+ DOES_NOT_MATCH = :DOES_NOT_MATCH
321
+ IS_EQUAL_TO = :IS_EQUAL_TO
322
+ IS_NOT_EQUAL_TO = :IS_NOT_EQUAL_TO
323
+ IS_GREATER_THAN = :IS_GREATER_THAN
324
+ IS_GREATER_THAN_OR_EQUAL_TO = :IS_GREATER_THAN_OR_EQUAL_TO
325
+ IS_LESS_THAN = :IS_LESS_THAN
326
+ IS_LESS_THAN_OR_EQUAL_TO = :IS_LESS_THAN_OR_EQUAL_TO
327
+
328
+ # @!method self.values
329
+ # @return [Array<Symbol>]
330
+ end
331
+
332
+ # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
333
+ #
334
+ # @see Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition#value
335
+ module Value
336
+ extend Lithic::Internal::Type::Union
337
+
338
+ # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
339
+ variant String
340
+
341
+ # 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`
342
+ variant Integer
343
+
344
+ # An array of strings, to be used with `IS_ONE_OF` or `IS_NOT_ONE_OF`
345
+ variant -> { Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::StringArray }
346
+
347
+ # @!method self.variants
348
+ # @return [Array(String, Integer, Array<String>)]
349
+
350
+ # @type [Lithic::Internal::Type::Converter]
351
+ StringArray = Lithic::Internal::Type::ArrayOf[String]
352
+ end
353
+ end
354
+ end
355
+
91
356
  # @!method self.variants
92
- # @return [Array(Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters)]
357
+ # @return [Array(Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters)]
93
358
  end
94
359
 
95
- # The type of Auth Rule. Effectively determines the event stream during which it
96
- # will be evaluated.
360
+ # The type of Auth Rule. For certain rule types, this determines the event stream
361
+ # during which it will be evaluated. For rules that can be applied to one of
362
+ # several event streams, the effective one is defined by the separate
363
+ # `event_stream` field.
97
364
  #
98
365
  # - `CONDITIONAL_BLOCK`: AUTHORIZATION event stream.
99
366
  # - `VELOCITY_LIMIT`: AUTHORIZATION event stream.
100
367
  # - `MERCHANT_LOCK`: AUTHORIZATION event stream.
101
- # - `CONDITIONAL_3DS_ACTION`: THREE_DS_AUTHENTICATION event stream.
368
+ # - `CONDITIONAL_ACTION`: AUTHORIZATION or THREE_DS_AUTHENTICATION event stream.
102
369
  module Type
103
370
  extend Lithic::Internal::Type::Enum
104
371
 
105
372
  CONDITIONAL_BLOCK = :CONDITIONAL_BLOCK
106
373
  VELOCITY_LIMIT = :VELOCITY_LIMIT
107
374
  MERCHANT_LOCK = :MERCHANT_LOCK
108
- CONDITIONAL_3DS_ACTION = :CONDITIONAL_3DS_ACTION
375
+ CONDITIONAL_ACTION = :CONDITIONAL_ACTION
109
376
 
110
377
  # @!method self.values
111
378
  # @return [Array<Symbol>]