lithic 0.1.0.pre.alpha.36 → 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.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +23 -0
  3. data/README.md +1 -1
  4. data/lib/lithic/internal/transport/base_client.rb +10 -2
  5. data/lib/lithic/models/auth_rules/conditional_3ds_action_parameters.rb +182 -0
  6. data/lib/lithic/models/auth_rules/merchant_lock_parameters.rb +62 -0
  7. data/lib/lithic/models/auth_rules/v2_apply_response.rb +12 -476
  8. data/lib/lithic/models/auth_rules/v2_create_params.rb +5 -245
  9. data/lib/lithic/models/auth_rules/v2_create_response.rb +12 -476
  10. data/lib/lithic/models/auth_rules/v2_draft_params.rb +5 -245
  11. data/lib/lithic/models/auth_rules/v2_draft_response.rb +12 -476
  12. data/lib/lithic/models/auth_rules/v2_list_response.rb +12 -476
  13. data/lib/lithic/models/auth_rules/v2_promote_response.rb +12 -476
  14. data/lib/lithic/models/auth_rules/v2_retrieve_response.rb +12 -480
  15. data/lib/lithic/models/auth_rules/v2_update_response.rb +12 -476
  16. data/lib/lithic/models/transaction.rb +19 -1
  17. data/lib/lithic/resources/auth_rules/v2.rb +2 -2
  18. data/lib/lithic/version.rb +1 -1
  19. data/lib/lithic.rb +2 -0
  20. data/rbi/lithic/models/auth_rules/conditional_3ds_action_parameters.rbi +412 -0
  21. data/rbi/lithic/models/auth_rules/merchant_lock_parameters.rbi +119 -0
  22. data/rbi/lithic/models/auth_rules/v2_apply_response.rbi +8 -1056
  23. data/rbi/lithic/models/auth_rules/v2_create_params.rbi +10 -534
  24. data/rbi/lithic/models/auth_rules/v2_create_response.rbi +8 -1056
  25. data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +8 -532
  26. data/rbi/lithic/models/auth_rules/v2_draft_response.rbi +8 -1056
  27. data/rbi/lithic/models/auth_rules/v2_list_response.rbi +8 -1056
  28. data/rbi/lithic/models/auth_rules/v2_promote_response.rbi +8 -1056
  29. data/rbi/lithic/models/auth_rules/v2_retrieve_response.rbi +8 -1056
  30. data/rbi/lithic/models/auth_rules/v2_update_response.rbi +8 -1056
  31. data/rbi/lithic/models/transaction.rbi +47 -0
  32. data/rbi/lithic/resources/auth_rules/v2.rbi +4 -4
  33. data/sig/lithic/models/auth_rules/conditional_3ds_action_parameters.rbs +133 -0
  34. data/sig/lithic/models/auth_rules/merchant_lock_parameters.rbs +51 -0
  35. data/sig/lithic/models/auth_rules/v2_apply_response.rbs +4 -352
  36. data/sig/lithic/models/auth_rules/v2_create_params.rbs +2 -176
  37. data/sig/lithic/models/auth_rules/v2_create_response.rbs +4 -352
  38. data/sig/lithic/models/auth_rules/v2_draft_params.rbs +2 -176
  39. data/sig/lithic/models/auth_rules/v2_draft_response.rbs +4 -352
  40. data/sig/lithic/models/auth_rules/v2_list_response.rbs +4 -352
  41. data/sig/lithic/models/auth_rules/v2_promote_response.rbs +4 -352
  42. data/sig/lithic/models/auth_rules/v2_retrieve_response.rbs +4 -352
  43. data/sig/lithic/models/auth_rules/v2_update_response.rbs +4 -352
  44. data/sig/lithic/models/transaction.rbs +20 -0
  45. 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::V2UpdateResponse::CurrentVersion::Parameters::MerchantLockParameters, Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters]
109
+ # @return [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters]
110
110
  required :parameters,
111
111
  union: -> { Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters }
112
112
 
@@ -123,7 +123,7 @@ module Lithic
123
123
  # Some parameter documentations has been truncated, see
124
124
  # {Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion} for more details.
125
125
  #
126
- # @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::MerchantLockParameters, Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters] Parameters for the Auth Rule
126
+ # @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters] Parameters for the Auth Rule
127
127
  #
128
128
  # @param version [Integer] The version of the rule, this is incremented whenever the rule's parameters chan
129
129
 
@@ -137,244 +137,12 @@ module Lithic
137
137
 
138
138
  variant -> { Lithic::AuthRules::VelocityLimitParams }
139
139
 
140
- variant -> { Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::MerchantLockParameters }
141
-
142
- variant -> { Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters }
143
-
144
- class MerchantLockParameters < Lithic::Internal::Type::BaseModel
145
- # @!attribute merchants
146
- # A list of merchant locks defining specific merchants or groups of merchants
147
- # (based on descriptors or IDs) that the lock applies to.
148
- #
149
- # @return [Array<Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::MerchantLockParameters::Merchant>]
150
- required :merchants,
151
- -> { Lithic::Internal::Type::ArrayOf[Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::MerchantLockParameters::Merchant] }
152
-
153
- # @!method initialize(merchants:)
154
- # Some parameter documentations has been truncated, see
155
- # {Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::MerchantLockParameters}
156
- # for more details.
157
- #
158
- # @param merchants [Array<Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::MerchantLockParameters::Merchant>] A list of merchant locks defining specific merchants or groups of merchants (bas
159
-
160
- class Merchant < Lithic::Internal::Type::BaseModel
161
- # @!attribute comment
162
- # A comment or explanation about the merchant, used internally for rule management
163
- # purposes.
164
- #
165
- # @return [String, nil]
166
- optional :comment, String
167
-
168
- # @!attribute descriptor
169
- # Short description of the merchant, often used to provide more human-readable
170
- # context about the transaction merchant. This is typically the name or label
171
- # shown on transaction summaries.
172
- #
173
- # @return [String, nil]
174
- optional :descriptor, String
175
-
176
- # @!attribute merchant_id
177
- # Unique alphanumeric identifier for the payment card acceptor (merchant). This
178
- # attribute specifies the merchant entity that will be locked or referenced for
179
- # authorization rules.
180
- #
181
- # @return [String, nil]
182
- optional :merchant_id, String
183
-
184
- # @!method initialize(comment: nil, descriptor: nil, merchant_id: nil)
185
- # Some parameter documentations has been truncated, see
186
- # {Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::MerchantLockParameters::Merchant}
187
- # for more details.
188
- #
189
- # Represents a specific merchant lock based on their ID or descriptor. Each
190
- # merchant object allows transaction rules to work at a granular level and
191
- # requires at least one of merchant_id or descriptor.
192
- #
193
- # @param comment [String] A comment or explanation about the merchant, used internally for rule management
194
- #
195
- # @param descriptor [String] Short description of the merchant, often used to provide more human-readable con
196
- #
197
- # @param merchant_id [String] Unique alphanumeric identifier for the payment card acceptor (merchant). This at
198
- end
199
- end
200
-
201
- class Conditional3DSActionParameters < Lithic::Internal::Type::BaseModel
202
- # @!attribute action
203
- # The action to take if the conditions are met.
204
- #
205
- # @return [Symbol, Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Action]
206
- required :action,
207
- enum: -> { Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Action }
208
-
209
- # @!attribute conditions
210
- #
211
- # @return [Array<Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition>]
212
- required :conditions,
213
- -> do
214
- Lithic::Internal::Type::ArrayOf[
215
- Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition
216
- ]
217
- end
218
-
219
- # @!method initialize(action:, conditions:)
220
- # @param action [Symbol, Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Action] The action to take if the conditions are met.
221
- #
222
- # @param conditions [Array<Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition>]
223
-
224
- # The action to take if the conditions are met.
225
- #
226
- # @see Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters#action
227
- module Action
228
- extend Lithic::Internal::Type::Enum
229
-
230
- DECLINE = :DECLINE
231
- CHALLENGE = :CHALLENGE
232
-
233
- # @!method self.values
234
- # @return [Array<Symbol>]
235
- end
236
-
237
- class Condition < Lithic::Internal::Type::BaseModel
238
- # @!attribute attribute
239
- # The attribute to target.
240
- #
241
- # The following attributes may be targeted:
242
- #
243
- # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a
244
- # business by the types of goods or services it provides.
245
- # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all
246
- # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for
247
- # Netherlands Antilles.
248
- # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of
249
- # the transaction.
250
- # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor
251
- # (merchant).
252
- # - `DESCRIPTOR`: Short description of card acceptor.
253
- # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
254
- # fee field in the settlement/cardholder billing currency. This is the amount
255
- # the issuer should authorize against unless the issuer is paying the acquirer
256
- # fee on behalf of the cardholder.
257
- # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
258
- # given authentication. Scores are on a range of 0-999, with 0 representing the
259
- # lowest risk and 999 representing the highest risk. For Visa transactions,
260
- # where the raw score has a range of 0-99, Lithic will normalize the score by
261
- # multiplying the raw score by 10x.
262
- # - `MESSAGE_CATEGORY`: The category of the authentication being processed.
263
- #
264
- # @return [Symbol, Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::Attribute, nil]
265
- optional :attribute,
266
- enum: -> { Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::Attribute }
267
-
268
- # @!attribute operation
269
- # The operation to apply to the attribute
270
- #
271
- # @return [Symbol, Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::Operation, nil]
272
- optional :operation,
273
- enum: -> { Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::Operation }
274
-
275
- # @!attribute value
276
- # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
277
- #
278
- # @return [String, Integer, Array<String>, nil]
279
- optional :value,
280
- union: -> { Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::Value }
281
-
282
- # @!method initialize(attribute: nil, operation: nil, value: nil)
283
- # Some parameter documentations has been truncated, see
284
- # {Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition}
285
- # for more details.
286
- #
287
- # @param attribute [Symbol, Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::Attribute] The attribute to target.
288
- #
289
- # @param operation [Symbol, Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::Operation] The operation to apply to the attribute
290
- #
291
- # @param value [String, Integer, Array<String>] A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
292
-
293
- # The attribute to target.
294
- #
295
- # The following attributes may be targeted:
296
- #
297
- # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a
298
- # business by the types of goods or services it provides.
299
- # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all
300
- # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for
301
- # Netherlands Antilles.
302
- # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of
303
- # the transaction.
304
- # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor
305
- # (merchant).
306
- # - `DESCRIPTOR`: Short description of card acceptor.
307
- # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
308
- # fee field in the settlement/cardholder billing currency. This is the amount
309
- # the issuer should authorize against unless the issuer is paying the acquirer
310
- # fee on behalf of the cardholder.
311
- # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
312
- # given authentication. Scores are on a range of 0-999, with 0 representing the
313
- # lowest risk and 999 representing the highest risk. For Visa transactions,
314
- # where the raw score has a range of 0-99, Lithic will normalize the score by
315
- # multiplying the raw score by 10x.
316
- # - `MESSAGE_CATEGORY`: The category of the authentication being processed.
317
- #
318
- # @see Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition#attribute
319
- module Attribute
320
- extend Lithic::Internal::Type::Enum
321
-
322
- MCC = :MCC
323
- COUNTRY = :COUNTRY
324
- CURRENCY = :CURRENCY
325
- MERCHANT_ID = :MERCHANT_ID
326
- DESCRIPTOR = :DESCRIPTOR
327
- TRANSACTION_AMOUNT = :TRANSACTION_AMOUNT
328
- RISK_SCORE = :RISK_SCORE
329
- MESSAGE_CATEGORY = :MESSAGE_CATEGORY
330
-
331
- # @!method self.values
332
- # @return [Array<Symbol>]
333
- end
334
-
335
- # The operation to apply to the attribute
336
- #
337
- # @see Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition#operation
338
- module Operation
339
- extend Lithic::Internal::Type::Enum
340
-
341
- IS_ONE_OF = :IS_ONE_OF
342
- IS_NOT_ONE_OF = :IS_NOT_ONE_OF
343
- MATCHES = :MATCHES
344
- DOES_NOT_MATCH = :DOES_NOT_MATCH
345
- IS_GREATER_THAN = :IS_GREATER_THAN
346
- IS_LESS_THAN = :IS_LESS_THAN
347
-
348
- # @!method self.values
349
- # @return [Array<Symbol>]
350
- end
351
-
352
- # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
353
- #
354
- # @see Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition#value
355
- module Value
356
- extend Lithic::Internal::Type::Union
357
-
358
- # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
359
- variant String
360
-
361
- # A number, to be used with `IS_GREATER_THAN` or `IS_LESS_THAN`
362
- variant Integer
363
-
364
- # An array of strings, to be used with `IS_ONE_OF` or `IS_NOT_ONE_OF`
365
- variant -> { Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::Value::StringArray }
366
-
367
- # @!method self.variants
368
- # @return [Array(String, Integer, Array<String>)]
369
-
370
- # @type [Lithic::Internal::Type::Converter]
371
- StringArray = Lithic::Internal::Type::ArrayOf[String]
372
- end
373
- end
374
- end
140
+ variant -> { Lithic::AuthRules::MerchantLockParameters }
141
+
142
+ variant -> { Lithic::AuthRules::Conditional3DSActionParameters }
375
143
 
376
144
  # @!method self.variants
377
- # @return [Array(Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::MerchantLockParameters, Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters)]
145
+ # @return [Array(Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters)]
378
146
  end
379
147
  end
380
148
 
@@ -383,7 +151,7 @@ module Lithic
383
151
  # @!attribute parameters
384
152
  # Parameters for the Auth Rule
385
153
  #
386
- # @return [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::MerchantLockParameters, Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::Conditional3DSActionParameters]
154
+ # @return [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters]
387
155
  required :parameters, union: -> { Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters }
388
156
 
389
157
  response_only do
@@ -399,7 +167,7 @@ module Lithic
399
167
  # Some parameter documentations has been truncated, see
400
168
  # {Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion} for more details.
401
169
  #
402
- # @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::MerchantLockParameters, Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::Conditional3DSActionParameters] Parameters for the Auth Rule
170
+ # @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters] Parameters for the Auth Rule
403
171
  #
404
172
  # @param version [Integer] The version of the rule, this is incremented whenever the rule's parameters chan
405
173
 
@@ -413,244 +181,12 @@ module Lithic
413
181
 
414
182
  variant -> { Lithic::AuthRules::VelocityLimitParams }
415
183
 
416
- variant -> { Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::MerchantLockParameters }
417
-
418
- variant -> { Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::Conditional3DSActionParameters }
419
-
420
- class MerchantLockParameters < Lithic::Internal::Type::BaseModel
421
- # @!attribute merchants
422
- # A list of merchant locks defining specific merchants or groups of merchants
423
- # (based on descriptors or IDs) that the lock applies to.
424
- #
425
- # @return [Array<Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::MerchantLockParameters::Merchant>]
426
- required :merchants,
427
- -> { Lithic::Internal::Type::ArrayOf[Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::MerchantLockParameters::Merchant] }
428
-
429
- # @!method initialize(merchants:)
430
- # Some parameter documentations has been truncated, see
431
- # {Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::MerchantLockParameters}
432
- # for more details.
433
- #
434
- # @param merchants [Array<Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::MerchantLockParameters::Merchant>] A list of merchant locks defining specific merchants or groups of merchants (bas
435
-
436
- class Merchant < Lithic::Internal::Type::BaseModel
437
- # @!attribute comment
438
- # A comment or explanation about the merchant, used internally for rule management
439
- # purposes.
440
- #
441
- # @return [String, nil]
442
- optional :comment, String
443
-
444
- # @!attribute descriptor
445
- # Short description of the merchant, often used to provide more human-readable
446
- # context about the transaction merchant. This is typically the name or label
447
- # shown on transaction summaries.
448
- #
449
- # @return [String, nil]
450
- optional :descriptor, String
451
-
452
- # @!attribute merchant_id
453
- # Unique alphanumeric identifier for the payment card acceptor (merchant). This
454
- # attribute specifies the merchant entity that will be locked or referenced for
455
- # authorization rules.
456
- #
457
- # @return [String, nil]
458
- optional :merchant_id, String
459
-
460
- # @!method initialize(comment: nil, descriptor: nil, merchant_id: nil)
461
- # Some parameter documentations has been truncated, see
462
- # {Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::MerchantLockParameters::Merchant}
463
- # for more details.
464
- #
465
- # Represents a specific merchant lock based on their ID or descriptor. Each
466
- # merchant object allows transaction rules to work at a granular level and
467
- # requires at least one of merchant_id or descriptor.
468
- #
469
- # @param comment [String] A comment or explanation about the merchant, used internally for rule management
470
- #
471
- # @param descriptor [String] Short description of the merchant, often used to provide more human-readable con
472
- #
473
- # @param merchant_id [String] Unique alphanumeric identifier for the payment card acceptor (merchant). This at
474
- end
475
- end
476
-
477
- class Conditional3DSActionParameters < Lithic::Internal::Type::BaseModel
478
- # @!attribute action
479
- # The action to take if the conditions are met.
480
- #
481
- # @return [Symbol, Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Action]
482
- required :action,
483
- enum: -> { Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Action }
484
-
485
- # @!attribute conditions
486
- #
487
- # @return [Array<Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition>]
488
- required :conditions,
489
- -> do
490
- Lithic::Internal::Type::ArrayOf[
491
- Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition
492
- ]
493
- end
494
-
495
- # @!method initialize(action:, conditions:)
496
- # @param action [Symbol, Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Action] The action to take if the conditions are met.
497
- #
498
- # @param conditions [Array<Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition>]
499
-
500
- # The action to take if the conditions are met.
501
- #
502
- # @see Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::Conditional3DSActionParameters#action
503
- module Action
504
- extend Lithic::Internal::Type::Enum
505
-
506
- DECLINE = :DECLINE
507
- CHALLENGE = :CHALLENGE
508
-
509
- # @!method self.values
510
- # @return [Array<Symbol>]
511
- end
512
-
513
- class Condition < Lithic::Internal::Type::BaseModel
514
- # @!attribute attribute
515
- # The attribute to target.
516
- #
517
- # The following attributes may be targeted:
518
- #
519
- # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a
520
- # business by the types of goods or services it provides.
521
- # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all
522
- # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for
523
- # Netherlands Antilles.
524
- # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of
525
- # the transaction.
526
- # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor
527
- # (merchant).
528
- # - `DESCRIPTOR`: Short description of card acceptor.
529
- # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
530
- # fee field in the settlement/cardholder billing currency. This is the amount
531
- # the issuer should authorize against unless the issuer is paying the acquirer
532
- # fee on behalf of the cardholder.
533
- # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
534
- # given authentication. Scores are on a range of 0-999, with 0 representing the
535
- # lowest risk and 999 representing the highest risk. For Visa transactions,
536
- # where the raw score has a range of 0-99, Lithic will normalize the score by
537
- # multiplying the raw score by 10x.
538
- # - `MESSAGE_CATEGORY`: The category of the authentication being processed.
539
- #
540
- # @return [Symbol, Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::Attribute, nil]
541
- optional :attribute,
542
- enum: -> { Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::Attribute }
543
-
544
- # @!attribute operation
545
- # The operation to apply to the attribute
546
- #
547
- # @return [Symbol, Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::Operation, nil]
548
- optional :operation,
549
- enum: -> { Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::Operation }
550
-
551
- # @!attribute value
552
- # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
553
- #
554
- # @return [String, Integer, Array<String>, nil]
555
- optional :value,
556
- union: -> { Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::Value }
557
-
558
- # @!method initialize(attribute: nil, operation: nil, value: nil)
559
- # Some parameter documentations has been truncated, see
560
- # {Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition}
561
- # for more details.
562
- #
563
- # @param attribute [Symbol, Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::Attribute] The attribute to target.
564
- #
565
- # @param operation [Symbol, Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::Operation] The operation to apply to the attribute
566
- #
567
- # @param value [String, Integer, Array<String>] A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
568
-
569
- # The attribute to target.
570
- #
571
- # The following attributes may be targeted:
572
- #
573
- # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a
574
- # business by the types of goods or services it provides.
575
- # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all
576
- # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for
577
- # Netherlands Antilles.
578
- # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of
579
- # the transaction.
580
- # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor
581
- # (merchant).
582
- # - `DESCRIPTOR`: Short description of card acceptor.
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 authentication. 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
- # - `MESSAGE_CATEGORY`: The category of the authentication being processed.
593
- #
594
- # @see Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition#attribute
595
- module Attribute
596
- extend Lithic::Internal::Type::Enum
597
-
598
- MCC = :MCC
599
- COUNTRY = :COUNTRY
600
- CURRENCY = :CURRENCY
601
- MERCHANT_ID = :MERCHANT_ID
602
- DESCRIPTOR = :DESCRIPTOR
603
- TRANSACTION_AMOUNT = :TRANSACTION_AMOUNT
604
- RISK_SCORE = :RISK_SCORE
605
- MESSAGE_CATEGORY = :MESSAGE_CATEGORY
606
-
607
- # @!method self.values
608
- # @return [Array<Symbol>]
609
- end
610
-
611
- # The operation to apply to the attribute
612
- #
613
- # @see Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition#operation
614
- module Operation
615
- extend Lithic::Internal::Type::Enum
616
-
617
- IS_ONE_OF = :IS_ONE_OF
618
- IS_NOT_ONE_OF = :IS_NOT_ONE_OF
619
- MATCHES = :MATCHES
620
- DOES_NOT_MATCH = :DOES_NOT_MATCH
621
- IS_GREATER_THAN = :IS_GREATER_THAN
622
- IS_LESS_THAN = :IS_LESS_THAN
623
-
624
- # @!method self.values
625
- # @return [Array<Symbol>]
626
- end
627
-
628
- # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
629
- #
630
- # @see Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition#value
631
- module Value
632
- extend Lithic::Internal::Type::Union
633
-
634
- # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
635
- variant String
636
-
637
- # A number, to be used with `IS_GREATER_THAN` or `IS_LESS_THAN`
638
- variant Integer
639
-
640
- # An array of strings, to be used with `IS_ONE_OF` or `IS_NOT_ONE_OF`
641
- variant -> { Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::Value::StringArray }
642
-
643
- # @!method self.variants
644
- # @return [Array(String, Integer, Array<String>)]
645
-
646
- # @type [Lithic::Internal::Type::Converter]
647
- StringArray = Lithic::Internal::Type::ArrayOf[String]
648
- end
649
- end
650
- end
184
+ variant -> { Lithic::AuthRules::MerchantLockParameters }
185
+
186
+ variant -> { Lithic::AuthRules::Conditional3DSActionParameters }
651
187
 
652
188
  # @!method self.variants
653
- # @return [Array(Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::MerchantLockParameters, Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::Conditional3DSActionParameters)]
189
+ # @return [Array(Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters)]
654
190
  end
655
191
  end
656
192
 
@@ -1086,12 +1086,17 @@ module Lithic
1086
1086
  # @return [Symbol, Lithic::Models::Transaction::Event::Type]
1087
1087
  required :type, enum: -> { Lithic::Transaction::Event::Type }
1088
1088
 
1089
+ # @!attribute account_type
1090
+ #
1091
+ # @return [Symbol, Lithic::Models::Transaction::Event::AccountType, nil]
1092
+ optional :account_type, enum: -> { Lithic::Transaction::Event::AccountType }
1093
+
1089
1094
  # @!attribute network_specific_data
1090
1095
  #
1091
1096
  # @return [Lithic::Models::Transaction::Event::NetworkSpecificData, nil]
1092
1097
  optional :network_specific_data, -> { Lithic::Transaction::Event::NetworkSpecificData }
1093
1098
 
1094
- # @!method initialize(token:, amount:, amounts:, created:, detailed_results:, effective_polarity:, network_info:, result:, rule_results:, type:, network_specific_data: nil)
1099
+ # @!method initialize(token:, amount:, amounts:, created:, detailed_results:, effective_polarity:, network_info:, result:, rule_results:, type:, account_type: nil, network_specific_data: nil)
1095
1100
  # Some parameter documentations has been truncated, see
1096
1101
  # {Lithic::Models::Transaction::Event} for more details.
1097
1102
  #
@@ -1115,6 +1120,8 @@ module Lithic
1115
1120
  #
1116
1121
  # @param type [Symbol, Lithic::Models::Transaction::Event::Type] Type of transaction event
1117
1122
  #
1123
+ # @param account_type [Symbol, Lithic::Models::Transaction::Event::AccountType]
1124
+ #
1118
1125
  # @param network_specific_data [Lithic::Models::Transaction::Event::NetworkSpecificData]
1119
1126
 
1120
1127
  # @see Lithic::Models::Transaction::Event#amounts
@@ -1633,6 +1640,17 @@ module Lithic
1633
1640
  # @return [Array<Symbol>]
1634
1641
  end
1635
1642
 
1643
+ # @see Lithic::Models::Transaction::Event#account_type
1644
+ module AccountType
1645
+ extend Lithic::Internal::Type::Enum
1646
+
1647
+ CHECKING = :CHECKING
1648
+ SAVINGS = :SAVINGS
1649
+
1650
+ # @!method self.values
1651
+ # @return [Array<Symbol>]
1652
+ end
1653
+
1636
1654
  # @see Lithic::Models::Transaction::Event#network_specific_data
1637
1655
  class NetworkSpecificData < Lithic::Internal::Type::BaseModel
1638
1656
  # @!attribute mastercard
@@ -22,7 +22,7 @@ module Lithic
22
22
  #
23
23
  # @param name [String, nil] Auth Rule Name
24
24
  #
25
- # @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::V2CreateParams::Parameters::MerchantLockParameters, Lithic::Models::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters] Parameters for the Auth Rule
25
+ # @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters] Parameters for the Auth Rule
26
26
  #
27
27
  # @param type [Symbol, Lithic::Models::AuthRules::V2CreateParams::Type] The type of Auth Rule. Effectively determines the event stream during which it w
28
28
  #
@@ -207,7 +207,7 @@ module Lithic
207
207
  #
208
208
  # @param auth_rule_token [String] Globally unique identifier for the Auth Rule.
209
209
  #
210
- # @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::V2DraftParams::Parameters::MerchantLockParameters, Lithic::Models::AuthRules::V2DraftParams::Parameters::Conditional3DSActionParameters, nil] Parameters for the Auth Rule
210
+ # @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, nil] Parameters for the Auth Rule
211
211
  #
212
212
  # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
213
213
  #
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Lithic
4
- VERSION = "0.1.0.pre.alpha.36"
4
+ VERSION = "0.1.0.pre.alpha.38"
5
5
  end
data/lib/lithic.rb CHANGED
@@ -83,8 +83,10 @@ require_relative "lithic/models/aggregate_balance_list_params"
83
83
  require_relative "lithic/models/api_status"
84
84
  require_relative "lithic/models/auth_rules/auth_rule"
85
85
  require_relative "lithic/models/auth_rules/auth_rule_condition"
86
+ require_relative "lithic/models/auth_rules/conditional_3ds_action_parameters"
86
87
  require_relative "lithic/models/auth_rules/conditional_attribute"
87
88
  require_relative "lithic/models/auth_rules/conditional_block_parameters"
89
+ require_relative "lithic/models/auth_rules/merchant_lock_parameters"
88
90
  require_relative "lithic/models/auth_rules/rule_stats"
89
91
  require_relative "lithic/models/auth_rules/v2/backtest_create_params"
90
92
  require_relative "lithic/models/auth_rules/v2/backtest_create_response"