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