lithic 0.7.0 → 0.8.0

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 (153) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +36 -0
  3. data/README.md +3 -3
  4. data/lib/lithic/client.rb +11 -0
  5. data/lib/lithic/models/account_activity_list_params.rb +2 -0
  6. data/lib/lithic/models/account_activity_list_response.rb +8 -2
  7. data/lib/lithic/models/account_activity_retrieve_transaction_response.rb +8 -2
  8. data/lib/lithic/models/auth_rules/auth_rule.rb +84 -8
  9. data/lib/lithic/models/auth_rules/auth_rule_version.rb +92 -0
  10. data/lib/lithic/models/auth_rules/rule_feature.rb +231 -0
  11. data/lib/lithic/models/auth_rules/typescript_code_parameters.rb +33 -0
  12. data/lib/lithic/models/auth_rules/v2/backtest_results.rb +9 -17
  13. data/lib/lithic/models/auth_rules/v2_create_params.rb +50 -10
  14. data/lib/lithic/models/auth_rules/v2_draft_params.rb +6 -3
  15. data/lib/lithic/models/auth_rules/v2_list_versions_params.rb +22 -0
  16. data/lib/lithic/models/auth_rules/v2_list_versions_response.rb +18 -0
  17. data/lib/lithic/models/auth_rules/v2_retrieve_features_response.rb +3 -83
  18. data/lib/lithic/models/auth_rules/v2_retrieve_report_response.rb +525 -1
  19. data/lib/lithic/models/auth_rules/v2_update_params.rb +17 -1
  20. data/lib/lithic/models/auth_rules/velocity_limit_filters.rb +87 -0
  21. data/lib/lithic/models/auth_rules/velocity_limit_params.rb +3 -84
  22. data/lib/lithic/models/digital_wallet_tokenization_approval_request_webhook_event.rb +69 -59
  23. data/lib/lithic/models/dispute_create_params.rb +11 -11
  24. data/lib/lithic/models/dispute_list_params.rb +3 -3
  25. data/lib/lithic/models/dispute_update_params.rb +9 -9
  26. data/lib/lithic/models/event.rb +0 -7
  27. data/lib/lithic/models/event_list_params.rb +0 -4
  28. data/lib/lithic/models/event_subscription.rb +0 -4
  29. data/lib/lithic/models/events/subscription_create_params.rb +0 -4
  30. data/lib/lithic/models/events/subscription_send_simulated_example_params.rb +0 -1
  31. data/lib/lithic/models/events/subscription_update_params.rb +0 -4
  32. data/lib/lithic/models/financial_account.rb +1 -0
  33. data/lib/lithic/models/financial_account_list_params.rb +1 -0
  34. data/lib/lithic/models/financial_accounts/interest_tier_schedule.rb +9 -1
  35. data/lib/lithic/models/financial_accounts/interest_tier_schedule_update_params.rb +9 -1
  36. data/lib/lithic/models/financial_accounts/statements/statement_line_items.rb +27 -2
  37. data/lib/lithic/models/hold.rb +147 -0
  38. data/lib/lithic/models/hold_create_params.rb +61 -0
  39. data/lib/lithic/models/hold_event.rb +110 -0
  40. data/lib/lithic/models/hold_list_params.rb +89 -0
  41. data/lib/lithic/models/hold_retrieve_params.rb +20 -0
  42. data/lib/lithic/models/hold_void_params.rb +29 -0
  43. data/lib/lithic/models/instance_financial_account_type.rb +1 -0
  44. data/lib/lithic/models/parsed_webhook_event.rb +2 -4
  45. data/lib/lithic/models/payment.rb +76 -12
  46. data/lib/lithic/models/payment_simulate_action_params.rb +1 -0
  47. data/lib/lithic/models.rb +12 -2
  48. data/lib/lithic/resources/account_activity.rb +2 -2
  49. data/lib/lithic/resources/auth_rules/v2.rb +24 -4
  50. data/lib/lithic/resources/disputes.rb +21 -21
  51. data/lib/lithic/resources/financial_accounts/interest_tier_schedule.rb +6 -2
  52. data/lib/lithic/resources/holds.rb +132 -0
  53. data/lib/lithic/resources/webhooks.rb +2 -3
  54. data/lib/lithic/version.rb +1 -1
  55. data/lib/lithic.rb +14 -1
  56. data/rbi/lithic/client.rbi +9 -0
  57. data/rbi/lithic/models/account_activity_list_params.rbi +10 -0
  58. data/rbi/lithic/models/account_activity_list_response.rbi +14 -2
  59. data/rbi/lithic/models/account_activity_retrieve_transaction_response.rbi +14 -2
  60. data/rbi/lithic/models/auth_rules/auth_rule.rbi +128 -4
  61. data/rbi/lithic/models/auth_rules/auth_rule_version.rbi +142 -0
  62. data/rbi/lithic/models/auth_rules/rule_feature.rbi +414 -0
  63. data/rbi/lithic/models/auth_rules/typescript_code_parameters.rbi +94 -0
  64. data/rbi/lithic/models/auth_rules/v2/backtest_results.rbi +12 -35
  65. data/rbi/lithic/models/auth_rules/v2_create_params.rbi +81 -12
  66. data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +8 -4
  67. data/rbi/lithic/models/auth_rules/v2_list_versions_params.rbi +40 -0
  68. data/rbi/lithic/models/auth_rules/v2_list_versions_response.rbi +36 -0
  69. data/rbi/lithic/models/auth_rules/v2_retrieve_features_response.rbi +4 -209
  70. data/rbi/lithic/models/auth_rules/v2_retrieve_report_response.rbi +1692 -3
  71. data/rbi/lithic/models/auth_rules/v2_update_params.rbi +24 -0
  72. data/rbi/lithic/models/auth_rules/velocity_limit_filters.rbi +205 -0
  73. data/rbi/lithic/models/auth_rules/velocity_limit_params.rbi +4 -206
  74. data/rbi/lithic/models/digital_wallet_tokenization_approval_request_webhook_event.rbi +154 -142
  75. data/rbi/lithic/models/dispute_create_params.rbi +11 -11
  76. data/rbi/lithic/models/dispute_list_params.rbi +3 -3
  77. data/rbi/lithic/models/dispute_update_params.rbi +9 -9
  78. data/rbi/lithic/models/event.rbi +0 -14
  79. data/rbi/lithic/models/event_list_params.rbi +0 -8
  80. data/rbi/lithic/models/event_subscription.rbi +0 -8
  81. data/rbi/lithic/models/events/subscription_create_params.rbi +0 -8
  82. data/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +0 -5
  83. data/rbi/lithic/models/events/subscription_update_params.rbi +0 -8
  84. data/rbi/lithic/models/financial_account.rbi +5 -0
  85. data/rbi/lithic/models/financial_account_list_params.rbi +5 -0
  86. data/rbi/lithic/models/financial_accounts/interest_tier_schedule.rbi +11 -0
  87. data/rbi/lithic/models/financial_accounts/interest_tier_schedule_update_params.rbi +11 -0
  88. data/rbi/lithic/models/financial_accounts/statements/statement_line_items.rbi +38 -3
  89. data/rbi/lithic/models/hold.rbi +183 -0
  90. data/rbi/lithic/models/hold_create_params.rbi +90 -0
  91. data/rbi/lithic/models/hold_event.rbi +148 -0
  92. data/rbi/lithic/models/hold_list_params.rbi +137 -0
  93. data/rbi/lithic/models/hold_retrieve_params.rbi +35 -0
  94. data/rbi/lithic/models/hold_void_params.rbi +49 -0
  95. data/rbi/lithic/models/instance_financial_account_type.rbi +5 -0
  96. data/rbi/lithic/models/parsed_webhook_event.rbi +0 -1
  97. data/rbi/lithic/models/payment.rbi +139 -13
  98. data/rbi/lithic/models/payment_simulate_action_params.rbi +5 -0
  99. data/rbi/lithic/models.rbi +12 -3
  100. data/rbi/lithic/resources/auth_rules/v2.rbi +16 -4
  101. data/rbi/lithic/resources/disputes.rbi +21 -21
  102. data/rbi/lithic/resources/financial_accounts/interest_tier_schedule.rbi +6 -0
  103. data/rbi/lithic/resources/holds.rbi +111 -0
  104. data/rbi/lithic/resources/webhooks.rbi +8 -2
  105. data/sig/lithic/client.rbs +5 -0
  106. data/sig/lithic/models/account_activity_list_params.rbs +4 -0
  107. data/sig/lithic/models/account_activity_list_response.rbs +5 -0
  108. data/sig/lithic/models/account_activity_retrieve_transaction_response.rbs +5 -0
  109. data/sig/lithic/models/auth_rules/auth_rule.rbs +42 -0
  110. data/sig/lithic/models/auth_rules/auth_rule_version.rbs +67 -0
  111. data/sig/lithic/models/auth_rules/rule_feature.rbs +173 -0
  112. data/sig/lithic/models/auth_rules/typescript_code_parameters.rbs +27 -0
  113. data/sig/lithic/models/auth_rules/v2/backtest_results.rbs +5 -18
  114. data/sig/lithic/models/auth_rules/v2_create_params.rbs +25 -0
  115. data/sig/lithic/models/auth_rules/v2_draft_params.rbs +1 -0
  116. data/sig/lithic/models/auth_rules/v2_list_versions_params.rbs +25 -0
  117. data/sig/lithic/models/auth_rules/v2_list_versions_response.rbs +18 -0
  118. data/sig/lithic/models/auth_rules/v2_retrieve_features_response.rbs +4 -80
  119. data/sig/lithic/models/auth_rules/v2_retrieve_report_response.rbs +658 -3
  120. data/sig/lithic/models/auth_rules/v2_update_params.rbs +16 -0
  121. data/sig/lithic/models/auth_rules/velocity_limit_filters.rbs +81 -0
  122. data/sig/lithic/models/auth_rules/velocity_limit_params.rbs +6 -82
  123. data/sig/lithic/models/digital_wallet_tokenization_approval_request_webhook_event.rbs +38 -38
  124. data/sig/lithic/models/event.rbs +0 -2
  125. data/sig/lithic/models/event_list_params.rbs +0 -2
  126. data/sig/lithic/models/event_subscription.rbs +0 -2
  127. data/sig/lithic/models/events/subscription_create_params.rbs +0 -2
  128. data/sig/lithic/models/events/subscription_send_simulated_example_params.rbs +0 -2
  129. data/sig/lithic/models/events/subscription_update_params.rbs +0 -2
  130. data/sig/lithic/models/financial_account.rbs +2 -0
  131. data/sig/lithic/models/financial_account_list_params.rbs +7 -1
  132. data/sig/lithic/models/financial_accounts/interest_tier_schedule.rbs +7 -0
  133. data/sig/lithic/models/financial_accounts/interest_tier_schedule_update_params.rbs +7 -0
  134. data/sig/lithic/models/financial_accounts/statements/statement_line_items.rbs +17 -3
  135. data/sig/lithic/models/hold.rbs +137 -0
  136. data/sig/lithic/models/hold_create_params.rbs +57 -0
  137. data/sig/lithic/models/hold_event.rbs +91 -0
  138. data/sig/lithic/models/hold_list_params.rbs +83 -0
  139. data/sig/lithic/models/hold_retrieve_params.rbs +23 -0
  140. data/sig/lithic/models/hold_void_params.rbs +28 -0
  141. data/sig/lithic/models/instance_financial_account_type.rbs +2 -0
  142. data/sig/lithic/models/parsed_webhook_event.rbs +0 -1
  143. data/sig/lithic/models/payment.rbs +23 -8
  144. data/sig/lithic/models/payment_simulate_action_params.rbs +2 -0
  145. data/sig/lithic/models.rbs +12 -2
  146. data/sig/lithic/resources/auth_rules/v2.rbs +5 -0
  147. data/sig/lithic/resources/financial_accounts/interest_tier_schedule.rbs +2 -0
  148. data/sig/lithic/resources/holds.rbs +39 -0
  149. data/sig/lithic/resources/webhooks.rbs +0 -1
  150. metadata +41 -5
  151. data/lib/lithic/models/tokenization_decisioning_request_webhook_event.rb +0 -159
  152. data/rbi/lithic/models/tokenization_decisioning_request_webhook_event.rbi +0 -331
  153. data/sig/lithic/models/tokenization_decisioning_request_webhook_event.rbs +0 -130
@@ -84,7 +84,8 @@ module Lithic
84
84
  Lithic::AuthRules::Conditional3DSActionParameters,
85
85
  Lithic::AuthRules::ConditionalAuthorizationActionParameters,
86
86
  Lithic::AuthRules::ConditionalACHActionParameters,
87
- Lithic::AuthRules::ConditionalTokenizationActionParameters
87
+ Lithic::AuthRules::ConditionalTokenizationActionParameters,
88
+ Lithic::AuthRules::TypescriptCodeParameters
88
89
  )
89
90
  )
90
91
  end
@@ -101,6 +102,8 @@ module Lithic
101
102
  # - `MERCHANT_LOCK`: AUTHORIZATION event stream.
102
103
  # - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
103
104
  # ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
105
+ # - `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
106
+ # ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
104
107
  sig do
105
108
  returns(
106
109
  Lithic::AuthRules::V2CreateParams::Body::AccountLevelRule::Type::OrSymbol
@@ -147,7 +150,8 @@ module Lithic
147
150
  Lithic::AuthRules::Conditional3DSActionParameters::OrHash,
148
151
  Lithic::AuthRules::ConditionalAuthorizationActionParameters::OrHash,
149
152
  Lithic::AuthRules::ConditionalACHActionParameters::OrHash,
150
- Lithic::AuthRules::ConditionalTokenizationActionParameters::OrHash
153
+ Lithic::AuthRules::ConditionalTokenizationActionParameters::OrHash,
154
+ Lithic::AuthRules::TypescriptCodeParameters::OrHash
151
155
  ),
152
156
  type:
153
157
  Lithic::AuthRules::V2CreateParams::Body::AccountLevelRule::Type::OrSymbol,
@@ -171,6 +175,8 @@ module Lithic
171
175
  # - `MERCHANT_LOCK`: AUTHORIZATION event stream.
172
176
  # - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
173
177
  # ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
178
+ # - `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
179
+ # ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
174
180
  type:,
175
181
  # Account tokens to which the Auth Rule applies.
176
182
  account_tokens: nil,
@@ -194,7 +200,8 @@ module Lithic
194
200
  Lithic::AuthRules::Conditional3DSActionParameters,
195
201
  Lithic::AuthRules::ConditionalAuthorizationActionParameters,
196
202
  Lithic::AuthRules::ConditionalACHActionParameters,
197
- Lithic::AuthRules::ConditionalTokenizationActionParameters
203
+ Lithic::AuthRules::ConditionalTokenizationActionParameters,
204
+ Lithic::AuthRules::TypescriptCodeParameters
198
205
  ),
199
206
  type:
200
207
  Lithic::AuthRules::V2CreateParams::Body::AccountLevelRule::Type::OrSymbol,
@@ -221,7 +228,8 @@ module Lithic
221
228
  Lithic::AuthRules::Conditional3DSActionParameters,
222
229
  Lithic::AuthRules::ConditionalAuthorizationActionParameters,
223
230
  Lithic::AuthRules::ConditionalACHActionParameters,
224
- Lithic::AuthRules::ConditionalTokenizationActionParameters
231
+ Lithic::AuthRules::ConditionalTokenizationActionParameters,
232
+ Lithic::AuthRules::TypescriptCodeParameters
225
233
  )
226
234
  end
227
235
 
@@ -247,6 +255,8 @@ module Lithic
247
255
  # - `MERCHANT_LOCK`: AUTHORIZATION event stream.
248
256
  # - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
249
257
  # ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
258
+ # - `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
259
+ # ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
250
260
  module Type
251
261
  extend Lithic::Internal::Type::Enum
252
262
 
@@ -279,6 +289,11 @@ module Lithic
279
289
  :CONDITIONAL_ACTION,
280
290
  Lithic::AuthRules::V2CreateParams::Body::AccountLevelRule::Type::TaggedSymbol
281
291
  )
292
+ TYPESCRIPT_CODE =
293
+ T.let(
294
+ :TYPESCRIPT_CODE,
295
+ Lithic::AuthRules::V2CreateParams::Body::AccountLevelRule::Type::TaggedSymbol
296
+ )
282
297
 
283
298
  sig do
284
299
  override.returns(
@@ -315,7 +330,8 @@ module Lithic
315
330
  Lithic::AuthRules::Conditional3DSActionParameters,
316
331
  Lithic::AuthRules::ConditionalAuthorizationActionParameters,
317
332
  Lithic::AuthRules::ConditionalACHActionParameters,
318
- Lithic::AuthRules::ConditionalTokenizationActionParameters
333
+ Lithic::AuthRules::ConditionalTokenizationActionParameters,
334
+ Lithic::AuthRules::TypescriptCodeParameters
319
335
  )
320
336
  )
321
337
  end
@@ -332,6 +348,8 @@ module Lithic
332
348
  # - `MERCHANT_LOCK`: AUTHORIZATION event stream.
333
349
  # - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
334
350
  # ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
351
+ # - `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
352
+ # ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
335
353
  sig do
336
354
  returns(
337
355
  Lithic::AuthRules::V2CreateParams::Body::CardLevelRule::Type::OrSymbol
@@ -365,7 +383,8 @@ module Lithic
365
383
  Lithic::AuthRules::Conditional3DSActionParameters::OrHash,
366
384
  Lithic::AuthRules::ConditionalAuthorizationActionParameters::OrHash,
367
385
  Lithic::AuthRules::ConditionalACHActionParameters::OrHash,
368
- Lithic::AuthRules::ConditionalTokenizationActionParameters::OrHash
386
+ Lithic::AuthRules::ConditionalTokenizationActionParameters::OrHash,
387
+ Lithic::AuthRules::TypescriptCodeParameters::OrHash
369
388
  ),
370
389
  type:
371
390
  Lithic::AuthRules::V2CreateParams::Body::CardLevelRule::Type::OrSymbol,
@@ -389,6 +408,8 @@ module Lithic
389
408
  # - `MERCHANT_LOCK`: AUTHORIZATION event stream.
390
409
  # - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
391
410
  # ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
411
+ # - `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
412
+ # ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
392
413
  type:,
393
414
  # The event stream during which the rule will be evaluated.
394
415
  event_stream: nil,
@@ -409,7 +430,8 @@ module Lithic
409
430
  Lithic::AuthRules::Conditional3DSActionParameters,
410
431
  Lithic::AuthRules::ConditionalAuthorizationActionParameters,
411
432
  Lithic::AuthRules::ConditionalACHActionParameters,
412
- Lithic::AuthRules::ConditionalTokenizationActionParameters
433
+ Lithic::AuthRules::ConditionalTokenizationActionParameters,
434
+ Lithic::AuthRules::TypescriptCodeParameters
413
435
  ),
414
436
  type:
415
437
  Lithic::AuthRules::V2CreateParams::Body::CardLevelRule::Type::OrSymbol,
@@ -434,7 +456,8 @@ module Lithic
434
456
  Lithic::AuthRules::Conditional3DSActionParameters,
435
457
  Lithic::AuthRules::ConditionalAuthorizationActionParameters,
436
458
  Lithic::AuthRules::ConditionalACHActionParameters,
437
- Lithic::AuthRules::ConditionalTokenizationActionParameters
459
+ Lithic::AuthRules::ConditionalTokenizationActionParameters,
460
+ Lithic::AuthRules::TypescriptCodeParameters
438
461
  )
439
462
  end
440
463
 
@@ -460,6 +483,8 @@ module Lithic
460
483
  # - `MERCHANT_LOCK`: AUTHORIZATION event stream.
461
484
  # - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
462
485
  # ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
486
+ # - `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
487
+ # ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
463
488
  module Type
464
489
  extend Lithic::Internal::Type::Enum
465
490
 
@@ -492,6 +517,11 @@ module Lithic
492
517
  :CONDITIONAL_ACTION,
493
518
  Lithic::AuthRules::V2CreateParams::Body::CardLevelRule::Type::TaggedSymbol
494
519
  )
520
+ TYPESCRIPT_CODE =
521
+ T.let(
522
+ :TYPESCRIPT_CODE,
523
+ Lithic::AuthRules::V2CreateParams::Body::CardLevelRule::Type::TaggedSymbol
524
+ )
495
525
 
496
526
  sig do
497
527
  override.returns(
@@ -524,7 +554,8 @@ module Lithic
524
554
  Lithic::AuthRules::Conditional3DSActionParameters,
525
555
  Lithic::AuthRules::ConditionalAuthorizationActionParameters,
526
556
  Lithic::AuthRules::ConditionalACHActionParameters,
527
- Lithic::AuthRules::ConditionalTokenizationActionParameters
557
+ Lithic::AuthRules::ConditionalTokenizationActionParameters,
558
+ Lithic::AuthRules::TypescriptCodeParameters
528
559
  )
529
560
  )
530
561
  end
@@ -545,6 +576,8 @@ module Lithic
545
576
  # - `MERCHANT_LOCK`: AUTHORIZATION event stream.
546
577
  # - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
547
578
  # ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
579
+ # - `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
580
+ # ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
548
581
  sig do
549
582
  returns(
550
583
  Lithic::AuthRules::V2CreateParams::Body::ProgramLevelRule::Type::OrSymbol
@@ -563,6 +596,22 @@ module Lithic
563
596
  end
564
597
  attr_writer :event_stream
565
598
 
599
+ # Account tokens to which the Auth Rule does not apply.
600
+ sig { returns(T.nilable(T::Array[String])) }
601
+ attr_reader :excluded_account_tokens
602
+
603
+ sig { params(excluded_account_tokens: T::Array[String]).void }
604
+ attr_writer :excluded_account_tokens
605
+
606
+ # Business account tokens to which the Auth Rule does not apply.
607
+ sig { returns(T.nilable(T::Array[String])) }
608
+ attr_reader :excluded_business_account_tokens
609
+
610
+ sig do
611
+ params(excluded_business_account_tokens: T::Array[String]).void
612
+ end
613
+ attr_writer :excluded_business_account_tokens
614
+
566
615
  # Card tokens to which the Auth Rule does not apply.
567
616
  sig { returns(T.nilable(T::Array[String])) }
568
617
  attr_reader :excluded_card_tokens
@@ -584,12 +633,15 @@ module Lithic
584
633
  Lithic::AuthRules::Conditional3DSActionParameters::OrHash,
585
634
  Lithic::AuthRules::ConditionalAuthorizationActionParameters::OrHash,
586
635
  Lithic::AuthRules::ConditionalACHActionParameters::OrHash,
587
- Lithic::AuthRules::ConditionalTokenizationActionParameters::OrHash
636
+ Lithic::AuthRules::ConditionalTokenizationActionParameters::OrHash,
637
+ Lithic::AuthRules::TypescriptCodeParameters::OrHash
588
638
  ),
589
639
  program_level: T::Boolean,
590
640
  type:
591
641
  Lithic::AuthRules::V2CreateParams::Body::ProgramLevelRule::Type::OrSymbol,
592
642
  event_stream: Lithic::AuthRules::EventStream::OrSymbol,
643
+ excluded_account_tokens: T::Array[String],
644
+ excluded_business_account_tokens: T::Array[String],
593
645
  excluded_card_tokens: T::Array[String],
594
646
  name: T.nilable(String)
595
647
  ).returns(T.attached_class)
@@ -610,9 +662,15 @@ module Lithic
610
662
  # - `MERCHANT_LOCK`: AUTHORIZATION event stream.
611
663
  # - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
612
664
  # ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
665
+ # - `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
666
+ # ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
613
667
  type:,
614
668
  # The event stream during which the rule will be evaluated.
615
669
  event_stream: nil,
670
+ # Account tokens to which the Auth Rule does not apply.
671
+ excluded_account_tokens: nil,
672
+ # Business account tokens to which the Auth Rule does not apply.
673
+ excluded_business_account_tokens: nil,
616
674
  # Card tokens to which the Auth Rule does not apply.
617
675
  excluded_card_tokens: nil,
618
676
  # Auth Rule Name
@@ -631,12 +689,15 @@ module Lithic
631
689
  Lithic::AuthRules::Conditional3DSActionParameters,
632
690
  Lithic::AuthRules::ConditionalAuthorizationActionParameters,
633
691
  Lithic::AuthRules::ConditionalACHActionParameters,
634
- Lithic::AuthRules::ConditionalTokenizationActionParameters
692
+ Lithic::AuthRules::ConditionalTokenizationActionParameters,
693
+ Lithic::AuthRules::TypescriptCodeParameters
635
694
  ),
636
695
  program_level: T::Boolean,
637
696
  type:
638
697
  Lithic::AuthRules::V2CreateParams::Body::ProgramLevelRule::Type::OrSymbol,
639
698
  event_stream: Lithic::AuthRules::EventStream::OrSymbol,
699
+ excluded_account_tokens: T::Array[String],
700
+ excluded_business_account_tokens: T::Array[String],
640
701
  excluded_card_tokens: T::Array[String],
641
702
  name: T.nilable(String)
642
703
  }
@@ -658,7 +719,8 @@ module Lithic
658
719
  Lithic::AuthRules::Conditional3DSActionParameters,
659
720
  Lithic::AuthRules::ConditionalAuthorizationActionParameters,
660
721
  Lithic::AuthRules::ConditionalACHActionParameters,
661
- Lithic::AuthRules::ConditionalTokenizationActionParameters
722
+ Lithic::AuthRules::ConditionalTokenizationActionParameters,
723
+ Lithic::AuthRules::TypescriptCodeParameters
662
724
  )
663
725
  end
664
726
 
@@ -684,6 +746,8 @@ module Lithic
684
746
  # - `MERCHANT_LOCK`: AUTHORIZATION event stream.
685
747
  # - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
686
748
  # ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
749
+ # - `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
750
+ # ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
687
751
  module Type
688
752
  extend Lithic::Internal::Type::Enum
689
753
 
@@ -716,6 +780,11 @@ module Lithic
716
780
  :CONDITIONAL_ACTION,
717
781
  Lithic::AuthRules::V2CreateParams::Body::ProgramLevelRule::Type::TaggedSymbol
718
782
  )
783
+ TYPESCRIPT_CODE =
784
+ T.let(
785
+ :TYPESCRIPT_CODE,
786
+ Lithic::AuthRules::V2CreateParams::Body::ProgramLevelRule::Type::TaggedSymbol
787
+ )
719
788
 
720
789
  sig do
721
790
  override.returns(
@@ -26,7 +26,8 @@ module Lithic
26
26
  Lithic::AuthRules::Conditional3DSActionParameters,
27
27
  Lithic::AuthRules::ConditionalAuthorizationActionParameters,
28
28
  Lithic::AuthRules::ConditionalACHActionParameters,
29
- Lithic::AuthRules::ConditionalTokenizationActionParameters
29
+ Lithic::AuthRules::ConditionalTokenizationActionParameters,
30
+ Lithic::AuthRules::TypescriptCodeParameters
30
31
  )
31
32
  )
32
33
  )
@@ -45,7 +46,8 @@ module Lithic
45
46
  Lithic::AuthRules::Conditional3DSActionParameters::OrHash,
46
47
  Lithic::AuthRules::ConditionalAuthorizationActionParameters::OrHash,
47
48
  Lithic::AuthRules::ConditionalACHActionParameters::OrHash,
48
- Lithic::AuthRules::ConditionalTokenizationActionParameters::OrHash
49
+ Lithic::AuthRules::ConditionalTokenizationActionParameters::OrHash,
50
+ Lithic::AuthRules::TypescriptCodeParameters::OrHash
49
51
  )
50
52
  ),
51
53
  request_options: Lithic::RequestOptions::OrHash
@@ -72,7 +74,8 @@ module Lithic
72
74
  Lithic::AuthRules::Conditional3DSActionParameters,
73
75
  Lithic::AuthRules::ConditionalAuthorizationActionParameters,
74
76
  Lithic::AuthRules::ConditionalACHActionParameters,
75
- Lithic::AuthRules::ConditionalTokenizationActionParameters
77
+ Lithic::AuthRules::ConditionalTokenizationActionParameters,
78
+ Lithic::AuthRules::TypescriptCodeParameters
76
79
  )
77
80
  ),
78
81
  request_options: Lithic::RequestOptions
@@ -95,7 +98,8 @@ module Lithic
95
98
  Lithic::AuthRules::Conditional3DSActionParameters,
96
99
  Lithic::AuthRules::ConditionalAuthorizationActionParameters,
97
100
  Lithic::AuthRules::ConditionalACHActionParameters,
98
- Lithic::AuthRules::ConditionalTokenizationActionParameters
101
+ Lithic::AuthRules::ConditionalTokenizationActionParameters,
102
+ Lithic::AuthRules::TypescriptCodeParameters
99
103
  )
100
104
  end
101
105
 
@@ -0,0 +1,40 @@
1
+ # typed: strong
2
+
3
+ module Lithic
4
+ module Models
5
+ module AuthRules
6
+ class V2ListVersionsParams < Lithic::Internal::Type::BaseModel
7
+ extend Lithic::Internal::Type::RequestParameters::Converter
8
+ include Lithic::Internal::Type::RequestParameters
9
+
10
+ OrHash =
11
+ T.type_alias do
12
+ T.any(
13
+ Lithic::AuthRules::V2ListVersionsParams,
14
+ Lithic::Internal::AnyHash
15
+ )
16
+ end
17
+
18
+ sig { returns(String) }
19
+ attr_accessor :auth_rule_token
20
+
21
+ sig do
22
+ params(
23
+ auth_rule_token: String,
24
+ request_options: Lithic::RequestOptions::OrHash
25
+ ).returns(T.attached_class)
26
+ end
27
+ def self.new(auth_rule_token:, request_options: {})
28
+ end
29
+
30
+ sig do
31
+ override.returns(
32
+ { auth_rule_token: String, request_options: Lithic::RequestOptions }
33
+ )
34
+ end
35
+ def to_hash
36
+ end
37
+ end
38
+ end
39
+ end
40
+ end
@@ -0,0 +1,36 @@
1
+ # typed: strong
2
+
3
+ module Lithic
4
+ module Models
5
+ module AuthRules
6
+ class V2ListVersionsResponse < Lithic::Internal::Type::BaseModel
7
+ OrHash =
8
+ T.type_alias do
9
+ T.any(
10
+ Lithic::Models::AuthRules::V2ListVersionsResponse,
11
+ Lithic::Internal::AnyHash
12
+ )
13
+ end
14
+
15
+ sig { returns(T::Array[Lithic::AuthRules::AuthRuleVersion]) }
16
+ attr_accessor :data
17
+
18
+ sig do
19
+ params(
20
+ data: T::Array[Lithic::AuthRules::AuthRuleVersion::OrHash]
21
+ ).returns(T.attached_class)
22
+ end
23
+ def self.new(data:)
24
+ end
25
+
26
+ sig do
27
+ override.returns(
28
+ { data: T::Array[Lithic::AuthRules::AuthRuleVersion] }
29
+ )
30
+ end
31
+ def to_hash
32
+ end
33
+ end
34
+ end
35
+ end
36
+ end
@@ -66,17 +66,12 @@ module Lithic
66
66
  )
67
67
  end
68
68
 
69
- sig do
70
- returns(
71
- Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters
72
- )
73
- end
69
+ sig { returns(Lithic::AuthRules::VelocityLimitFilters) }
74
70
  attr_reader :filters
75
71
 
76
72
  sig do
77
73
  params(
78
- filters:
79
- Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters::OrHash
74
+ filters: Lithic::AuthRules::VelocityLimitFilters::OrHash
80
75
  ).void
81
76
  end
82
77
  attr_writer :filters
@@ -110,8 +105,7 @@ module Lithic
110
105
 
111
106
  sig do
112
107
  params(
113
- filters:
114
- Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters::OrHash,
108
+ filters: Lithic::AuthRules::VelocityLimitFilters::OrHash,
115
109
  period:
116
110
  T.any(
117
111
  Lithic::AuthRules::VelocityLimitPeriod::TrailingWindowObject::OrHash,
@@ -139,8 +133,7 @@ module Lithic
139
133
  sig do
140
134
  override.returns(
141
135
  {
142
- filters:
143
- Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters,
136
+ filters: Lithic::AuthRules::VelocityLimitFilters,
144
137
  period: Lithic::AuthRules::VelocityLimitPeriod::Variants,
145
138
  scope:
146
139
  Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Scope::TaggedSymbol,
@@ -152,204 +145,6 @@ module Lithic
152
145
  def to_hash
153
146
  end
154
147
 
155
- class Filters < Lithic::Internal::Type::BaseModel
156
- OrHash =
157
- T.type_alias do
158
- T.any(
159
- Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters,
160
- Lithic::Internal::AnyHash
161
- )
162
- end
163
-
164
- # ISO-3166-1 alpha-3 Country Codes to exclude from the velocity calculation.
165
- # Transactions matching any of the provided will be excluded from the calculated
166
- # velocity.
167
- sig { returns(T.nilable(T::Array[String])) }
168
- attr_accessor :exclude_countries
169
-
170
- # Merchant Category Codes to exclude from the velocity calculation. Transactions
171
- # matching this MCC will be excluded from the calculated velocity.
172
- sig { returns(T.nilable(T::Array[String])) }
173
- attr_accessor :exclude_mccs
174
-
175
- # ISO-3166-1 alpha-3 Country Codes to include in the velocity calculation.
176
- # Transactions not matching any of the provided will not be included in the
177
- # calculated velocity.
178
- sig { returns(T.nilable(T::Array[String])) }
179
- attr_accessor :include_countries
180
-
181
- # Merchant Category Codes to include in the velocity calculation. Transactions not
182
- # matching this MCC will not be included in the calculated velocity.
183
- sig { returns(T.nilable(T::Array[String])) }
184
- attr_accessor :include_mccs
185
-
186
- # PAN entry modes to include in the velocity calculation. Transactions not
187
- # matching any of the provided will not be included in the calculated velocity.
188
- sig do
189
- returns(
190
- T.nilable(
191
- T::Array[
192
- Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters::IncludePanEntryMode::TaggedSymbol
193
- ]
194
- )
195
- )
196
- end
197
- attr_accessor :include_pan_entry_modes
198
-
199
- sig do
200
- params(
201
- exclude_countries: T.nilable(T::Array[String]),
202
- exclude_mccs: T.nilable(T::Array[String]),
203
- include_countries: T.nilable(T::Array[String]),
204
- include_mccs: T.nilable(T::Array[String]),
205
- include_pan_entry_modes:
206
- T.nilable(
207
- T::Array[
208
- Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters::IncludePanEntryMode::OrSymbol
209
- ]
210
- )
211
- ).returns(T.attached_class)
212
- end
213
- def self.new(
214
- # ISO-3166-1 alpha-3 Country Codes to exclude from the velocity calculation.
215
- # Transactions matching any of the provided will be excluded from the calculated
216
- # velocity.
217
- exclude_countries: nil,
218
- # Merchant Category Codes to exclude from the velocity calculation. Transactions
219
- # matching this MCC will be excluded from the calculated velocity.
220
- exclude_mccs: nil,
221
- # ISO-3166-1 alpha-3 Country Codes to include in the velocity calculation.
222
- # Transactions not matching any of the provided will not be included in the
223
- # calculated velocity.
224
- include_countries: nil,
225
- # Merchant Category Codes to include in the velocity calculation. Transactions not
226
- # matching this MCC will not be included in the calculated velocity.
227
- include_mccs: nil,
228
- # PAN entry modes to include in the velocity calculation. Transactions not
229
- # matching any of the provided will not be included in the calculated velocity.
230
- include_pan_entry_modes: nil
231
- )
232
- end
233
-
234
- sig do
235
- override.returns(
236
- {
237
- exclude_countries: T.nilable(T::Array[String]),
238
- exclude_mccs: T.nilable(T::Array[String]),
239
- include_countries: T.nilable(T::Array[String]),
240
- include_mccs: T.nilable(T::Array[String]),
241
- include_pan_entry_modes:
242
- T.nilable(
243
- T::Array[
244
- Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters::IncludePanEntryMode::TaggedSymbol
245
- ]
246
- )
247
- }
248
- )
249
- end
250
- def to_hash
251
- end
252
-
253
- module IncludePanEntryMode
254
- extend Lithic::Internal::Type::Enum
255
-
256
- TaggedSymbol =
257
- T.type_alias do
258
- T.all(
259
- Symbol,
260
- Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters::IncludePanEntryMode
261
- )
262
- end
263
- OrSymbol = T.type_alias { T.any(Symbol, String) }
264
-
265
- AUTO_ENTRY =
266
- T.let(
267
- :AUTO_ENTRY,
268
- Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters::IncludePanEntryMode::TaggedSymbol
269
- )
270
- BAR_CODE =
271
- T.let(
272
- :BAR_CODE,
273
- Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters::IncludePanEntryMode::TaggedSymbol
274
- )
275
- CONTACTLESS =
276
- T.let(
277
- :CONTACTLESS,
278
- Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters::IncludePanEntryMode::TaggedSymbol
279
- )
280
- CREDENTIAL_ON_FILE =
281
- T.let(
282
- :CREDENTIAL_ON_FILE,
283
- Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters::IncludePanEntryMode::TaggedSymbol
284
- )
285
- ECOMMERCE =
286
- T.let(
287
- :ECOMMERCE,
288
- Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters::IncludePanEntryMode::TaggedSymbol
289
- )
290
- ERROR_KEYED =
291
- T.let(
292
- :ERROR_KEYED,
293
- Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters::IncludePanEntryMode::TaggedSymbol
294
- )
295
- ERROR_MAGNETIC_STRIPE =
296
- T.let(
297
- :ERROR_MAGNETIC_STRIPE,
298
- Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters::IncludePanEntryMode::TaggedSymbol
299
- )
300
- ICC =
301
- T.let(
302
- :ICC,
303
- Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters::IncludePanEntryMode::TaggedSymbol
304
- )
305
- KEY_ENTERED =
306
- T.let(
307
- :KEY_ENTERED,
308
- Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters::IncludePanEntryMode::TaggedSymbol
309
- )
310
- MAGNETIC_STRIPE =
311
- T.let(
312
- :MAGNETIC_STRIPE,
313
- Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters::IncludePanEntryMode::TaggedSymbol
314
- )
315
- MANUAL =
316
- T.let(
317
- :MANUAL,
318
- Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters::IncludePanEntryMode::TaggedSymbol
319
- )
320
- OCR =
321
- T.let(
322
- :OCR,
323
- Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters::IncludePanEntryMode::TaggedSymbol
324
- )
325
- SECURE_CARDLESS =
326
- T.let(
327
- :SECURE_CARDLESS,
328
- Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters::IncludePanEntryMode::TaggedSymbol
329
- )
330
- UNSPECIFIED =
331
- T.let(
332
- :UNSPECIFIED,
333
- Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters::IncludePanEntryMode::TaggedSymbol
334
- )
335
- UNKNOWN =
336
- T.let(
337
- :UNKNOWN,
338
- Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters::IncludePanEntryMode::TaggedSymbol
339
- )
340
-
341
- sig do
342
- override.returns(
343
- T::Array[
344
- Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters::IncludePanEntryMode::TaggedSymbol
345
- ]
346
- )
347
- end
348
- def self.values
349
- end
350
- end
351
- end
352
-
353
148
  # The scope the velocity is calculated for
354
149
  module Scope
355
150
  extend Lithic::Internal::Type::Enum