lithic 0.1.0.pre.alpha.37 → 0.1.0.pre.alpha.38
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +1 -1
- data/lib/lithic/models/auth_rules/conditional_3ds_action_parameters.rb +182 -0
- data/lib/lithic/models/auth_rules/merchant_lock_parameters.rb +62 -0
- data/lib/lithic/models/auth_rules/v2_apply_response.rb +12 -476
- data/lib/lithic/models/auth_rules/v2_create_params.rb +5 -245
- data/lib/lithic/models/auth_rules/v2_create_response.rb +12 -476
- data/lib/lithic/models/auth_rules/v2_draft_params.rb +5 -245
- data/lib/lithic/models/auth_rules/v2_draft_response.rb +12 -476
- data/lib/lithic/models/auth_rules/v2_list_response.rb +12 -476
- data/lib/lithic/models/auth_rules/v2_promote_response.rb +12 -476
- data/lib/lithic/models/auth_rules/v2_retrieve_response.rb +12 -480
- data/lib/lithic/models/auth_rules/v2_update_response.rb +12 -476
- data/lib/lithic/resources/auth_rules/v2.rb +2 -2
- data/lib/lithic/version.rb +1 -1
- data/lib/lithic.rb +2 -0
- data/rbi/lithic/models/auth_rules/conditional_3ds_action_parameters.rbi +412 -0
- data/rbi/lithic/models/auth_rules/merchant_lock_parameters.rbi +119 -0
- data/rbi/lithic/models/auth_rules/v2_apply_response.rbi +8 -1056
- data/rbi/lithic/models/auth_rules/v2_create_params.rbi +10 -534
- data/rbi/lithic/models/auth_rules/v2_create_response.rbi +8 -1056
- data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +8 -532
- data/rbi/lithic/models/auth_rules/v2_draft_response.rbi +8 -1056
- data/rbi/lithic/models/auth_rules/v2_list_response.rbi +8 -1056
- data/rbi/lithic/models/auth_rules/v2_promote_response.rbi +8 -1056
- data/rbi/lithic/models/auth_rules/v2_retrieve_response.rbi +8 -1056
- data/rbi/lithic/models/auth_rules/v2_update_response.rbi +8 -1056
- data/rbi/lithic/resources/auth_rules/v2.rbi +4 -4
- data/sig/lithic/models/auth_rules/conditional_3ds_action_parameters.rbs +133 -0
- data/sig/lithic/models/auth_rules/merchant_lock_parameters.rbs +51 -0
- data/sig/lithic/models/auth_rules/v2_apply_response.rbs +4 -352
- data/sig/lithic/models/auth_rules/v2_create_params.rbs +2 -176
- data/sig/lithic/models/auth_rules/v2_create_response.rbs +4 -352
- data/sig/lithic/models/auth_rules/v2_draft_params.rbs +2 -176
- data/sig/lithic/models/auth_rules/v2_draft_response.rbs +4 -352
- data/sig/lithic/models/auth_rules/v2_list_response.rbs +4 -352
- data/sig/lithic/models/auth_rules/v2_promote_response.rbs +4 -352
- data/sig/lithic/models/auth_rules/v2_retrieve_response.rbs +4 -352
- data/sig/lithic/models/auth_rules/v2_update_response.rbs +4 -352
- metadata +8 -2
@@ -108,7 +108,7 @@ module Lithic
|
|
108
108
|
# @!attribute parameters
|
109
109
|
# Parameters for the Auth Rule
|
110
110
|
#
|
111
|
-
# @return [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::
|
111
|
+
# @return [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters]
|
112
112
|
required :parameters,
|
113
113
|
union: -> { Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters }
|
114
114
|
|
@@ -126,7 +126,7 @@ module Lithic
|
|
126
126
|
# {Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion} for more
|
127
127
|
# details.
|
128
128
|
#
|
129
|
-
# @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::
|
129
|
+
# @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters] Parameters for the Auth Rule
|
130
130
|
#
|
131
131
|
# @param version [Integer] The version of the rule, this is incremented whenever the rule's parameters chan
|
132
132
|
|
@@ -140,248 +140,12 @@ module Lithic
|
|
140
140
|
|
141
141
|
variant -> { Lithic::AuthRules::VelocityLimitParams }
|
142
142
|
|
143
|
-
variant -> { Lithic::
|
144
|
-
|
145
|
-
variant -> { Lithic::
|
146
|
-
|
147
|
-
class MerchantLockParameters < Lithic::Internal::Type::BaseModel
|
148
|
-
# @!attribute merchants
|
149
|
-
# A list of merchant locks defining specific merchants or groups of merchants
|
150
|
-
# (based on descriptors or IDs) that the lock applies to.
|
151
|
-
#
|
152
|
-
# @return [Array<Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::MerchantLockParameters::Merchant>]
|
153
|
-
required :merchants,
|
154
|
-
-> do
|
155
|
-
Lithic::Internal::Type::ArrayOf[
|
156
|
-
Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::MerchantLockParameters::Merchant
|
157
|
-
]
|
158
|
-
end
|
159
|
-
|
160
|
-
# @!method initialize(merchants:)
|
161
|
-
# Some parameter documentations has been truncated, see
|
162
|
-
# {Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::MerchantLockParameters}
|
163
|
-
# for more details.
|
164
|
-
#
|
165
|
-
# @param merchants [Array<Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::MerchantLockParameters::Merchant>] A list of merchant locks defining specific merchants or groups of merchants (bas
|
166
|
-
|
167
|
-
class Merchant < Lithic::Internal::Type::BaseModel
|
168
|
-
# @!attribute comment
|
169
|
-
# A comment or explanation about the merchant, used internally for rule management
|
170
|
-
# purposes.
|
171
|
-
#
|
172
|
-
# @return [String, nil]
|
173
|
-
optional :comment, String
|
174
|
-
|
175
|
-
# @!attribute descriptor
|
176
|
-
# Short description of the merchant, often used to provide more human-readable
|
177
|
-
# context about the transaction merchant. This is typically the name or label
|
178
|
-
# shown on transaction summaries.
|
179
|
-
#
|
180
|
-
# @return [String, nil]
|
181
|
-
optional :descriptor, String
|
182
|
-
|
183
|
-
# @!attribute merchant_id
|
184
|
-
# Unique alphanumeric identifier for the payment card acceptor (merchant). This
|
185
|
-
# attribute specifies the merchant entity that will be locked or referenced for
|
186
|
-
# authorization rules.
|
187
|
-
#
|
188
|
-
# @return [String, nil]
|
189
|
-
optional :merchant_id, String
|
190
|
-
|
191
|
-
# @!method initialize(comment: nil, descriptor: nil, merchant_id: nil)
|
192
|
-
# Some parameter documentations has been truncated, see
|
193
|
-
# {Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::MerchantLockParameters::Merchant}
|
194
|
-
# for more details.
|
195
|
-
#
|
196
|
-
# Represents a specific merchant lock based on their ID or descriptor. Each
|
197
|
-
# merchant object allows transaction rules to work at a granular level and
|
198
|
-
# requires at least one of merchant_id or descriptor.
|
199
|
-
#
|
200
|
-
# @param comment [String] A comment or explanation about the merchant, used internally for rule management
|
201
|
-
#
|
202
|
-
# @param descriptor [String] Short description of the merchant, often used to provide more human-readable con
|
203
|
-
#
|
204
|
-
# @param merchant_id [String] Unique alphanumeric identifier for the payment card acceptor (merchant). This at
|
205
|
-
end
|
206
|
-
end
|
207
|
-
|
208
|
-
class Conditional3DSActionParameters < Lithic::Internal::Type::BaseModel
|
209
|
-
# @!attribute action
|
210
|
-
# The action to take if the conditions are met.
|
211
|
-
#
|
212
|
-
# @return [Symbol, Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Action]
|
213
|
-
required :action,
|
214
|
-
enum: -> { Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Action }
|
215
|
-
|
216
|
-
# @!attribute conditions
|
217
|
-
#
|
218
|
-
# @return [Array<Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition>]
|
219
|
-
required :conditions,
|
220
|
-
-> do
|
221
|
-
Lithic::Internal::Type::ArrayOf[
|
222
|
-
Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition
|
223
|
-
]
|
224
|
-
end
|
225
|
-
|
226
|
-
# @!method initialize(action:, conditions:)
|
227
|
-
# @param action [Symbol, Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Action] The action to take if the conditions are met.
|
228
|
-
#
|
229
|
-
# @param conditions [Array<Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition>]
|
230
|
-
|
231
|
-
# The action to take if the conditions are met.
|
232
|
-
#
|
233
|
-
# @see Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::Conditional3DSActionParameters#action
|
234
|
-
module Action
|
235
|
-
extend Lithic::Internal::Type::Enum
|
236
|
-
|
237
|
-
DECLINE = :DECLINE
|
238
|
-
CHALLENGE = :CHALLENGE
|
239
|
-
|
240
|
-
# @!method self.values
|
241
|
-
# @return [Array<Symbol>]
|
242
|
-
end
|
243
|
-
|
244
|
-
class Condition < Lithic::Internal::Type::BaseModel
|
245
|
-
# @!attribute attribute
|
246
|
-
# The attribute to target.
|
247
|
-
#
|
248
|
-
# The following attributes may be targeted:
|
249
|
-
#
|
250
|
-
# - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a
|
251
|
-
# business by the types of goods or services it provides.
|
252
|
-
# - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all
|
253
|
-
# ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for
|
254
|
-
# Netherlands Antilles.
|
255
|
-
# - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of
|
256
|
-
# the transaction.
|
257
|
-
# - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor
|
258
|
-
# (merchant).
|
259
|
-
# - `DESCRIPTOR`: Short description of card acceptor.
|
260
|
-
# - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
|
261
|
-
# fee field in the settlement/cardholder billing currency. This is the amount
|
262
|
-
# the issuer should authorize against unless the issuer is paying the acquirer
|
263
|
-
# fee on behalf of the cardholder.
|
264
|
-
# - `RISK_SCORE`: Network-provided score assessing risk level associated with a
|
265
|
-
# given authentication. Scores are on a range of 0-999, with 0 representing the
|
266
|
-
# lowest risk and 999 representing the highest risk. For Visa transactions,
|
267
|
-
# where the raw score has a range of 0-99, Lithic will normalize the score by
|
268
|
-
# multiplying the raw score by 10x.
|
269
|
-
# - `MESSAGE_CATEGORY`: The category of the authentication being processed.
|
270
|
-
#
|
271
|
-
# @return [Symbol, Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::Attribute, nil]
|
272
|
-
optional :attribute,
|
273
|
-
enum: -> { Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::Attribute }
|
274
|
-
|
275
|
-
# @!attribute operation
|
276
|
-
# The operation to apply to the attribute
|
277
|
-
#
|
278
|
-
# @return [Symbol, Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::Operation, nil]
|
279
|
-
optional :operation,
|
280
|
-
enum: -> { Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::Operation }
|
281
|
-
|
282
|
-
# @!attribute value
|
283
|
-
# A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
|
284
|
-
#
|
285
|
-
# @return [String, Integer, Array<String>, nil]
|
286
|
-
optional :value,
|
287
|
-
union: -> { Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::Value }
|
288
|
-
|
289
|
-
# @!method initialize(attribute: nil, operation: nil, value: nil)
|
290
|
-
# Some parameter documentations has been truncated, see
|
291
|
-
# {Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition}
|
292
|
-
# for more details.
|
293
|
-
#
|
294
|
-
# @param attribute [Symbol, Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::Attribute] The attribute to target.
|
295
|
-
#
|
296
|
-
# @param operation [Symbol, Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::Operation] The operation to apply to the attribute
|
297
|
-
#
|
298
|
-
# @param value [String, Integer, Array<String>] A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
|
299
|
-
|
300
|
-
# The attribute to target.
|
301
|
-
#
|
302
|
-
# The following attributes may be targeted:
|
303
|
-
#
|
304
|
-
# - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a
|
305
|
-
# business by the types of goods or services it provides.
|
306
|
-
# - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all
|
307
|
-
# ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for
|
308
|
-
# Netherlands Antilles.
|
309
|
-
# - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of
|
310
|
-
# the transaction.
|
311
|
-
# - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor
|
312
|
-
# (merchant).
|
313
|
-
# - `DESCRIPTOR`: Short description of card acceptor.
|
314
|
-
# - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
|
315
|
-
# fee field in the settlement/cardholder billing currency. This is the amount
|
316
|
-
# the issuer should authorize against unless the issuer is paying the acquirer
|
317
|
-
# fee on behalf of the cardholder.
|
318
|
-
# - `RISK_SCORE`: Network-provided score assessing risk level associated with a
|
319
|
-
# given authentication. Scores are on a range of 0-999, with 0 representing the
|
320
|
-
# lowest risk and 999 representing the highest risk. For Visa transactions,
|
321
|
-
# where the raw score has a range of 0-99, Lithic will normalize the score by
|
322
|
-
# multiplying the raw score by 10x.
|
323
|
-
# - `MESSAGE_CATEGORY`: The category of the authentication being processed.
|
324
|
-
#
|
325
|
-
# @see Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition#attribute
|
326
|
-
module Attribute
|
327
|
-
extend Lithic::Internal::Type::Enum
|
328
|
-
|
329
|
-
MCC = :MCC
|
330
|
-
COUNTRY = :COUNTRY
|
331
|
-
CURRENCY = :CURRENCY
|
332
|
-
MERCHANT_ID = :MERCHANT_ID
|
333
|
-
DESCRIPTOR = :DESCRIPTOR
|
334
|
-
TRANSACTION_AMOUNT = :TRANSACTION_AMOUNT
|
335
|
-
RISK_SCORE = :RISK_SCORE
|
336
|
-
MESSAGE_CATEGORY = :MESSAGE_CATEGORY
|
337
|
-
|
338
|
-
# @!method self.values
|
339
|
-
# @return [Array<Symbol>]
|
340
|
-
end
|
341
|
-
|
342
|
-
# The operation to apply to the attribute
|
343
|
-
#
|
344
|
-
# @see Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition#operation
|
345
|
-
module Operation
|
346
|
-
extend Lithic::Internal::Type::Enum
|
347
|
-
|
348
|
-
IS_ONE_OF = :IS_ONE_OF
|
349
|
-
IS_NOT_ONE_OF = :IS_NOT_ONE_OF
|
350
|
-
MATCHES = :MATCHES
|
351
|
-
DOES_NOT_MATCH = :DOES_NOT_MATCH
|
352
|
-
IS_GREATER_THAN = :IS_GREATER_THAN
|
353
|
-
IS_LESS_THAN = :IS_LESS_THAN
|
354
|
-
|
355
|
-
# @!method self.values
|
356
|
-
# @return [Array<Symbol>]
|
357
|
-
end
|
358
|
-
|
359
|
-
# A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
|
360
|
-
#
|
361
|
-
# @see Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition#value
|
362
|
-
module Value
|
363
|
-
extend Lithic::Internal::Type::Union
|
364
|
-
|
365
|
-
# A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
|
366
|
-
variant String
|
367
|
-
|
368
|
-
# A number, to be used with `IS_GREATER_THAN` or `IS_LESS_THAN`
|
369
|
-
variant Integer
|
370
|
-
|
371
|
-
# An array of strings, to be used with `IS_ONE_OF` or `IS_NOT_ONE_OF`
|
372
|
-
variant -> { Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::Value::StringArray }
|
373
|
-
|
374
|
-
# @!method self.variants
|
375
|
-
# @return [Array(String, Integer, Array<String>)]
|
376
|
-
|
377
|
-
# @type [Lithic::Internal::Type::Converter]
|
378
|
-
StringArray = Lithic::Internal::Type::ArrayOf[String]
|
379
|
-
end
|
380
|
-
end
|
381
|
-
end
|
143
|
+
variant -> { Lithic::AuthRules::MerchantLockParameters }
|
144
|
+
|
145
|
+
variant -> { Lithic::AuthRules::Conditional3DSActionParameters }
|
382
146
|
|
383
147
|
# @!method self.variants
|
384
|
-
# @return [Array(Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::
|
148
|
+
# @return [Array(Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters)]
|
385
149
|
end
|
386
150
|
end
|
387
151
|
|
@@ -390,7 +154,7 @@ module Lithic
|
|
390
154
|
# @!attribute parameters
|
391
155
|
# Parameters for the Auth Rule
|
392
156
|
#
|
393
|
-
# @return [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::
|
157
|
+
# @return [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters]
|
394
158
|
required :parameters,
|
395
159
|
union: -> { Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters }
|
396
160
|
|
@@ -407,7 +171,7 @@ module Lithic
|
|
407
171
|
# Some parameter documentations has been truncated, see
|
408
172
|
# {Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion} for more details.
|
409
173
|
#
|
410
|
-
# @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::
|
174
|
+
# @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters] Parameters for the Auth Rule
|
411
175
|
#
|
412
176
|
# @param version [Integer] The version of the rule, this is incremented whenever the rule's parameters chan
|
413
177
|
|
@@ -421,244 +185,12 @@ module Lithic
|
|
421
185
|
|
422
186
|
variant -> { Lithic::AuthRules::VelocityLimitParams }
|
423
187
|
|
424
|
-
variant -> { Lithic::
|
425
|
-
|
426
|
-
variant -> { Lithic::
|
427
|
-
|
428
|
-
class MerchantLockParameters < Lithic::Internal::Type::BaseModel
|
429
|
-
# @!attribute merchants
|
430
|
-
# A list of merchant locks defining specific merchants or groups of merchants
|
431
|
-
# (based on descriptors or IDs) that the lock applies to.
|
432
|
-
#
|
433
|
-
# @return [Array<Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::MerchantLockParameters::Merchant>]
|
434
|
-
required :merchants,
|
435
|
-
-> { Lithic::Internal::Type::ArrayOf[Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::MerchantLockParameters::Merchant] }
|
436
|
-
|
437
|
-
# @!method initialize(merchants:)
|
438
|
-
# Some parameter documentations has been truncated, see
|
439
|
-
# {Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::MerchantLockParameters}
|
440
|
-
# for more details.
|
441
|
-
#
|
442
|
-
# @param merchants [Array<Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::MerchantLockParameters::Merchant>] A list of merchant locks defining specific merchants or groups of merchants (bas
|
443
|
-
|
444
|
-
class Merchant < Lithic::Internal::Type::BaseModel
|
445
|
-
# @!attribute comment
|
446
|
-
# A comment or explanation about the merchant, used internally for rule management
|
447
|
-
# purposes.
|
448
|
-
#
|
449
|
-
# @return [String, nil]
|
450
|
-
optional :comment, String
|
451
|
-
|
452
|
-
# @!attribute descriptor
|
453
|
-
# Short description of the merchant, often used to provide more human-readable
|
454
|
-
# context about the transaction merchant. This is typically the name or label
|
455
|
-
# shown on transaction summaries.
|
456
|
-
#
|
457
|
-
# @return [String, nil]
|
458
|
-
optional :descriptor, String
|
459
|
-
|
460
|
-
# @!attribute merchant_id
|
461
|
-
# Unique alphanumeric identifier for the payment card acceptor (merchant). This
|
462
|
-
# attribute specifies the merchant entity that will be locked or referenced for
|
463
|
-
# authorization rules.
|
464
|
-
#
|
465
|
-
# @return [String, nil]
|
466
|
-
optional :merchant_id, String
|
467
|
-
|
468
|
-
# @!method initialize(comment: nil, descriptor: nil, merchant_id: nil)
|
469
|
-
# Some parameter documentations has been truncated, see
|
470
|
-
# {Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::MerchantLockParameters::Merchant}
|
471
|
-
# for more details.
|
472
|
-
#
|
473
|
-
# Represents a specific merchant lock based on their ID or descriptor. Each
|
474
|
-
# merchant object allows transaction rules to work at a granular level and
|
475
|
-
# requires at least one of merchant_id or descriptor.
|
476
|
-
#
|
477
|
-
# @param comment [String] A comment or explanation about the merchant, used internally for rule management
|
478
|
-
#
|
479
|
-
# @param descriptor [String] Short description of the merchant, often used to provide more human-readable con
|
480
|
-
#
|
481
|
-
# @param merchant_id [String] Unique alphanumeric identifier for the payment card acceptor (merchant). This at
|
482
|
-
end
|
483
|
-
end
|
484
|
-
|
485
|
-
class Conditional3DSActionParameters < Lithic::Internal::Type::BaseModel
|
486
|
-
# @!attribute action
|
487
|
-
# The action to take if the conditions are met.
|
488
|
-
#
|
489
|
-
# @return [Symbol, Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Action]
|
490
|
-
required :action,
|
491
|
-
enum: -> { Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Action }
|
492
|
-
|
493
|
-
# @!attribute conditions
|
494
|
-
#
|
495
|
-
# @return [Array<Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition>]
|
496
|
-
required :conditions,
|
497
|
-
-> do
|
498
|
-
Lithic::Internal::Type::ArrayOf[
|
499
|
-
Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition
|
500
|
-
]
|
501
|
-
end
|
502
|
-
|
503
|
-
# @!method initialize(action:, conditions:)
|
504
|
-
# @param action [Symbol, Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Action] The action to take if the conditions are met.
|
505
|
-
#
|
506
|
-
# @param conditions [Array<Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition>]
|
507
|
-
|
508
|
-
# The action to take if the conditions are met.
|
509
|
-
#
|
510
|
-
# @see Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::Conditional3DSActionParameters#action
|
511
|
-
module Action
|
512
|
-
extend Lithic::Internal::Type::Enum
|
513
|
-
|
514
|
-
DECLINE = :DECLINE
|
515
|
-
CHALLENGE = :CHALLENGE
|
516
|
-
|
517
|
-
# @!method self.values
|
518
|
-
# @return [Array<Symbol>]
|
519
|
-
end
|
520
|
-
|
521
|
-
class Condition < Lithic::Internal::Type::BaseModel
|
522
|
-
# @!attribute attribute
|
523
|
-
# The attribute to target.
|
524
|
-
#
|
525
|
-
# The following attributes may be targeted:
|
526
|
-
#
|
527
|
-
# - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a
|
528
|
-
# business by the types of goods or services it provides.
|
529
|
-
# - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all
|
530
|
-
# ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for
|
531
|
-
# Netherlands Antilles.
|
532
|
-
# - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of
|
533
|
-
# the transaction.
|
534
|
-
# - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor
|
535
|
-
# (merchant).
|
536
|
-
# - `DESCRIPTOR`: Short description of card acceptor.
|
537
|
-
# - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
|
538
|
-
# fee field in the settlement/cardholder billing currency. This is the amount
|
539
|
-
# the issuer should authorize against unless the issuer is paying the acquirer
|
540
|
-
# fee on behalf of the cardholder.
|
541
|
-
# - `RISK_SCORE`: Network-provided score assessing risk level associated with a
|
542
|
-
# given authentication. Scores are on a range of 0-999, with 0 representing the
|
543
|
-
# lowest risk and 999 representing the highest risk. For Visa transactions,
|
544
|
-
# where the raw score has a range of 0-99, Lithic will normalize the score by
|
545
|
-
# multiplying the raw score by 10x.
|
546
|
-
# - `MESSAGE_CATEGORY`: The category of the authentication being processed.
|
547
|
-
#
|
548
|
-
# @return [Symbol, Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::Attribute, nil]
|
549
|
-
optional :attribute,
|
550
|
-
enum: -> { Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::Attribute }
|
551
|
-
|
552
|
-
# @!attribute operation
|
553
|
-
# The operation to apply to the attribute
|
554
|
-
#
|
555
|
-
# @return [Symbol, Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::Operation, nil]
|
556
|
-
optional :operation,
|
557
|
-
enum: -> { Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::Operation }
|
558
|
-
|
559
|
-
# @!attribute value
|
560
|
-
# A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
|
561
|
-
#
|
562
|
-
# @return [String, Integer, Array<String>, nil]
|
563
|
-
optional :value,
|
564
|
-
union: -> { Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::Value }
|
565
|
-
|
566
|
-
# @!method initialize(attribute: nil, operation: nil, value: nil)
|
567
|
-
# Some parameter documentations has been truncated, see
|
568
|
-
# {Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition}
|
569
|
-
# for more details.
|
570
|
-
#
|
571
|
-
# @param attribute [Symbol, Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::Attribute] The attribute to target.
|
572
|
-
#
|
573
|
-
# @param operation [Symbol, Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::Operation] The operation to apply to the attribute
|
574
|
-
#
|
575
|
-
# @param value [String, Integer, Array<String>] A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
|
576
|
-
|
577
|
-
# The attribute to target.
|
578
|
-
#
|
579
|
-
# The following attributes may be targeted:
|
580
|
-
#
|
581
|
-
# - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a
|
582
|
-
# business by the types of goods or services it provides.
|
583
|
-
# - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all
|
584
|
-
# ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for
|
585
|
-
# Netherlands Antilles.
|
586
|
-
# - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of
|
587
|
-
# the transaction.
|
588
|
-
# - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor
|
589
|
-
# (merchant).
|
590
|
-
# - `DESCRIPTOR`: Short description of card acceptor.
|
591
|
-
# - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
|
592
|
-
# fee field in the settlement/cardholder billing currency. This is the amount
|
593
|
-
# the issuer should authorize against unless the issuer is paying the acquirer
|
594
|
-
# fee on behalf of the cardholder.
|
595
|
-
# - `RISK_SCORE`: Network-provided score assessing risk level associated with a
|
596
|
-
# given authentication. Scores are on a range of 0-999, with 0 representing the
|
597
|
-
# lowest risk and 999 representing the highest risk. For Visa transactions,
|
598
|
-
# where the raw score has a range of 0-99, Lithic will normalize the score by
|
599
|
-
# multiplying the raw score by 10x.
|
600
|
-
# - `MESSAGE_CATEGORY`: The category of the authentication being processed.
|
601
|
-
#
|
602
|
-
# @see Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition#attribute
|
603
|
-
module Attribute
|
604
|
-
extend Lithic::Internal::Type::Enum
|
605
|
-
|
606
|
-
MCC = :MCC
|
607
|
-
COUNTRY = :COUNTRY
|
608
|
-
CURRENCY = :CURRENCY
|
609
|
-
MERCHANT_ID = :MERCHANT_ID
|
610
|
-
DESCRIPTOR = :DESCRIPTOR
|
611
|
-
TRANSACTION_AMOUNT = :TRANSACTION_AMOUNT
|
612
|
-
RISK_SCORE = :RISK_SCORE
|
613
|
-
MESSAGE_CATEGORY = :MESSAGE_CATEGORY
|
614
|
-
|
615
|
-
# @!method self.values
|
616
|
-
# @return [Array<Symbol>]
|
617
|
-
end
|
618
|
-
|
619
|
-
# The operation to apply to the attribute
|
620
|
-
#
|
621
|
-
# @see Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition#operation
|
622
|
-
module Operation
|
623
|
-
extend Lithic::Internal::Type::Enum
|
624
|
-
|
625
|
-
IS_ONE_OF = :IS_ONE_OF
|
626
|
-
IS_NOT_ONE_OF = :IS_NOT_ONE_OF
|
627
|
-
MATCHES = :MATCHES
|
628
|
-
DOES_NOT_MATCH = :DOES_NOT_MATCH
|
629
|
-
IS_GREATER_THAN = :IS_GREATER_THAN
|
630
|
-
IS_LESS_THAN = :IS_LESS_THAN
|
631
|
-
|
632
|
-
# @!method self.values
|
633
|
-
# @return [Array<Symbol>]
|
634
|
-
end
|
635
|
-
|
636
|
-
# A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
|
637
|
-
#
|
638
|
-
# @see Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition#value
|
639
|
-
module Value
|
640
|
-
extend Lithic::Internal::Type::Union
|
641
|
-
|
642
|
-
# A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
|
643
|
-
variant String
|
644
|
-
|
645
|
-
# A number, to be used with `IS_GREATER_THAN` or `IS_LESS_THAN`
|
646
|
-
variant Integer
|
647
|
-
|
648
|
-
# An array of strings, to be used with `IS_ONE_OF` or `IS_NOT_ONE_OF`
|
649
|
-
variant -> { Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::Value::StringArray }
|
650
|
-
|
651
|
-
# @!method self.variants
|
652
|
-
# @return [Array(String, Integer, Array<String>)]
|
653
|
-
|
654
|
-
# @type [Lithic::Internal::Type::Converter]
|
655
|
-
StringArray = Lithic::Internal::Type::ArrayOf[String]
|
656
|
-
end
|
657
|
-
end
|
658
|
-
end
|
188
|
+
variant -> { Lithic::AuthRules::MerchantLockParameters }
|
189
|
+
|
190
|
+
variant -> { Lithic::AuthRules::Conditional3DSActionParameters }
|
659
191
|
|
660
192
|
# @!method self.variants
|
661
|
-
# @return [Array(Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::
|
193
|
+
# @return [Array(Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters)]
|
662
194
|
end
|
663
195
|
end
|
664
196
|
|