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
@@ -314,6 +314,22 @@ module Lithic
314
314
  )
315
315
  end
316
316
 
317
+ # Account tokens to which the Auth Rule does not apply.
318
+ sig { returns(T.nilable(T::Array[String])) }
319
+ attr_reader :excluded_account_tokens
320
+
321
+ sig { params(excluded_account_tokens: T::Array[String]).void }
322
+ attr_writer :excluded_account_tokens
323
+
324
+ # Business account tokens to which the Auth Rule does not apply.
325
+ sig { returns(T.nilable(T::Array[String])) }
326
+ attr_reader :excluded_business_account_tokens
327
+
328
+ sig do
329
+ params(excluded_business_account_tokens: T::Array[String]).void
330
+ end
331
+ attr_writer :excluded_business_account_tokens
332
+
317
333
  # Card tokens to which the Auth Rule does not apply.
318
334
  sig { returns(T.nilable(T::Array[String])) }
319
335
  attr_reader :excluded_card_tokens
@@ -356,6 +372,8 @@ module Lithic
356
372
 
357
373
  sig do
358
374
  params(
375
+ excluded_account_tokens: T::Array[String],
376
+ excluded_business_account_tokens: T::Array[String],
359
377
  excluded_card_tokens: T::Array[String],
360
378
  name: T.nilable(String),
361
379
  program_level: T::Boolean,
@@ -364,6 +382,10 @@ module Lithic
364
382
  ).returns(T.attached_class)
365
383
  end
366
384
  def self.new(
385
+ # Account tokens to which the Auth Rule does not apply.
386
+ excluded_account_tokens: nil,
387
+ # Business account tokens to which the Auth Rule does not apply.
388
+ excluded_business_account_tokens: nil,
367
389
  # Card tokens to which the Auth Rule does not apply.
368
390
  excluded_card_tokens: nil,
369
391
  # Auth Rule Name
@@ -382,6 +404,8 @@ module Lithic
382
404
  sig do
383
405
  override.returns(
384
406
  {
407
+ excluded_account_tokens: T::Array[String],
408
+ excluded_business_account_tokens: T::Array[String],
385
409
  excluded_card_tokens: T::Array[String],
386
410
  name: T.nilable(String),
387
411
  program_level: T::Boolean,
@@ -0,0 +1,205 @@
1
+ # typed: strong
2
+
3
+ module Lithic
4
+ module Models
5
+ module AuthRules
6
+ class VelocityLimitFilters < Lithic::Internal::Type::BaseModel
7
+ OrHash =
8
+ T.type_alias do
9
+ T.any(
10
+ Lithic::AuthRules::VelocityLimitFilters,
11
+ Lithic::Internal::AnyHash
12
+ )
13
+ end
14
+
15
+ # ISO-3166-1 alpha-3 Country Codes to exclude from the velocity calculation.
16
+ # Transactions matching any of the provided will be excluded from the calculated
17
+ # velocity.
18
+ sig { returns(T.nilable(T::Array[String])) }
19
+ attr_accessor :exclude_countries
20
+
21
+ # Merchant Category Codes to exclude from the velocity calculation. Transactions
22
+ # matching this MCC will be excluded from the calculated velocity.
23
+ sig { returns(T.nilable(T::Array[String])) }
24
+ attr_accessor :exclude_mccs
25
+
26
+ # ISO-3166-1 alpha-3 Country Codes to include in the velocity calculation.
27
+ # Transactions not matching any of the provided will not be included in the
28
+ # calculated velocity.
29
+ sig { returns(T.nilable(T::Array[String])) }
30
+ attr_accessor :include_countries
31
+
32
+ # Merchant Category Codes to include in the velocity calculation. Transactions not
33
+ # matching this MCC will not be included in the calculated velocity.
34
+ sig { returns(T.nilable(T::Array[String])) }
35
+ attr_accessor :include_mccs
36
+
37
+ # PAN entry modes to include in the velocity calculation. Transactions not
38
+ # matching any of the provided will not be included in the calculated velocity.
39
+ sig do
40
+ returns(
41
+ T.nilable(
42
+ T::Array[
43
+ Lithic::AuthRules::VelocityLimitFilters::IncludePanEntryMode::OrSymbol
44
+ ]
45
+ )
46
+ )
47
+ end
48
+ attr_accessor :include_pan_entry_modes
49
+
50
+ sig do
51
+ params(
52
+ exclude_countries: T.nilable(T::Array[String]),
53
+ exclude_mccs: T.nilable(T::Array[String]),
54
+ include_countries: T.nilable(T::Array[String]),
55
+ include_mccs: T.nilable(T::Array[String]),
56
+ include_pan_entry_modes:
57
+ T.nilable(
58
+ T::Array[
59
+ Lithic::AuthRules::VelocityLimitFilters::IncludePanEntryMode::OrSymbol
60
+ ]
61
+ )
62
+ ).returns(T.attached_class)
63
+ end
64
+ def self.new(
65
+ # ISO-3166-1 alpha-3 Country Codes to exclude from the velocity calculation.
66
+ # Transactions matching any of the provided will be excluded from the calculated
67
+ # velocity.
68
+ exclude_countries: nil,
69
+ # Merchant Category Codes to exclude from the velocity calculation. Transactions
70
+ # matching this MCC will be excluded from the calculated velocity.
71
+ exclude_mccs: nil,
72
+ # ISO-3166-1 alpha-3 Country Codes to include in the velocity calculation.
73
+ # Transactions not matching any of the provided will not be included in the
74
+ # calculated velocity.
75
+ include_countries: nil,
76
+ # Merchant Category Codes to include in the velocity calculation. Transactions not
77
+ # matching this MCC will not be included in the calculated velocity.
78
+ include_mccs: nil,
79
+ # PAN entry modes to include in the velocity calculation. Transactions not
80
+ # matching any of the provided will not be included in the calculated velocity.
81
+ include_pan_entry_modes: nil
82
+ )
83
+ end
84
+
85
+ sig do
86
+ override.returns(
87
+ {
88
+ exclude_countries: T.nilable(T::Array[String]),
89
+ exclude_mccs: T.nilable(T::Array[String]),
90
+ include_countries: T.nilable(T::Array[String]),
91
+ include_mccs: T.nilable(T::Array[String]),
92
+ include_pan_entry_modes:
93
+ T.nilable(
94
+ T::Array[
95
+ Lithic::AuthRules::VelocityLimitFilters::IncludePanEntryMode::OrSymbol
96
+ ]
97
+ )
98
+ }
99
+ )
100
+ end
101
+ def to_hash
102
+ end
103
+
104
+ module IncludePanEntryMode
105
+ extend Lithic::Internal::Type::Enum
106
+
107
+ TaggedSymbol =
108
+ T.type_alias do
109
+ T.all(
110
+ Symbol,
111
+ Lithic::AuthRules::VelocityLimitFilters::IncludePanEntryMode
112
+ )
113
+ end
114
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
115
+
116
+ AUTO_ENTRY =
117
+ T.let(
118
+ :AUTO_ENTRY,
119
+ Lithic::AuthRules::VelocityLimitFilters::IncludePanEntryMode::TaggedSymbol
120
+ )
121
+ BAR_CODE =
122
+ T.let(
123
+ :BAR_CODE,
124
+ Lithic::AuthRules::VelocityLimitFilters::IncludePanEntryMode::TaggedSymbol
125
+ )
126
+ CONTACTLESS =
127
+ T.let(
128
+ :CONTACTLESS,
129
+ Lithic::AuthRules::VelocityLimitFilters::IncludePanEntryMode::TaggedSymbol
130
+ )
131
+ CREDENTIAL_ON_FILE =
132
+ T.let(
133
+ :CREDENTIAL_ON_FILE,
134
+ Lithic::AuthRules::VelocityLimitFilters::IncludePanEntryMode::TaggedSymbol
135
+ )
136
+ ECOMMERCE =
137
+ T.let(
138
+ :ECOMMERCE,
139
+ Lithic::AuthRules::VelocityLimitFilters::IncludePanEntryMode::TaggedSymbol
140
+ )
141
+ ERROR_KEYED =
142
+ T.let(
143
+ :ERROR_KEYED,
144
+ Lithic::AuthRules::VelocityLimitFilters::IncludePanEntryMode::TaggedSymbol
145
+ )
146
+ ERROR_MAGNETIC_STRIPE =
147
+ T.let(
148
+ :ERROR_MAGNETIC_STRIPE,
149
+ Lithic::AuthRules::VelocityLimitFilters::IncludePanEntryMode::TaggedSymbol
150
+ )
151
+ ICC =
152
+ T.let(
153
+ :ICC,
154
+ Lithic::AuthRules::VelocityLimitFilters::IncludePanEntryMode::TaggedSymbol
155
+ )
156
+ KEY_ENTERED =
157
+ T.let(
158
+ :KEY_ENTERED,
159
+ Lithic::AuthRules::VelocityLimitFilters::IncludePanEntryMode::TaggedSymbol
160
+ )
161
+ MAGNETIC_STRIPE =
162
+ T.let(
163
+ :MAGNETIC_STRIPE,
164
+ Lithic::AuthRules::VelocityLimitFilters::IncludePanEntryMode::TaggedSymbol
165
+ )
166
+ MANUAL =
167
+ T.let(
168
+ :MANUAL,
169
+ Lithic::AuthRules::VelocityLimitFilters::IncludePanEntryMode::TaggedSymbol
170
+ )
171
+ OCR =
172
+ T.let(
173
+ :OCR,
174
+ Lithic::AuthRules::VelocityLimitFilters::IncludePanEntryMode::TaggedSymbol
175
+ )
176
+ SECURE_CARDLESS =
177
+ T.let(
178
+ :SECURE_CARDLESS,
179
+ Lithic::AuthRules::VelocityLimitFilters::IncludePanEntryMode::TaggedSymbol
180
+ )
181
+ UNSPECIFIED =
182
+ T.let(
183
+ :UNSPECIFIED,
184
+ Lithic::AuthRules::VelocityLimitFilters::IncludePanEntryMode::TaggedSymbol
185
+ )
186
+ UNKNOWN =
187
+ T.let(
188
+ :UNKNOWN,
189
+ Lithic::AuthRules::VelocityLimitFilters::IncludePanEntryMode::TaggedSymbol
190
+ )
191
+
192
+ sig do
193
+ override.returns(
194
+ T::Array[
195
+ Lithic::AuthRules::VelocityLimitFilters::IncludePanEntryMode::TaggedSymbol
196
+ ]
197
+ )
198
+ end
199
+ def self.values
200
+ end
201
+ end
202
+ end
203
+ end
204
+ end
205
+ end
@@ -30,15 +30,11 @@ module Lithic
30
30
  sig { returns(Lithic::AuthRules::VelocityLimitParams::Scope::OrSymbol) }
31
31
  attr_accessor :scope
32
32
 
33
- sig do
34
- returns(T.nilable(Lithic::AuthRules::VelocityLimitParams::Filters))
35
- end
33
+ sig { returns(T.nilable(Lithic::AuthRules::VelocityLimitFilters)) }
36
34
  attr_reader :filters
37
35
 
38
36
  sig do
39
- params(
40
- filters: Lithic::AuthRules::VelocityLimitParams::Filters::OrHash
41
- ).void
37
+ params(filters: Lithic::AuthRules::VelocityLimitFilters::OrHash).void
42
38
  end
43
39
  attr_writer :filters
44
40
 
@@ -67,7 +63,7 @@ module Lithic
67
63
  Lithic::AuthRules::VelocityLimitPeriod::FixedWindowYear::OrHash
68
64
  ),
69
65
  scope: Lithic::AuthRules::VelocityLimitParams::Scope::OrSymbol,
70
- filters: Lithic::AuthRules::VelocityLimitParams::Filters::OrHash,
66
+ filters: Lithic::AuthRules::VelocityLimitFilters::OrHash,
71
67
  limit_amount: T.nilable(Integer),
72
68
  limit_count: T.nilable(Integer)
73
69
  ).returns(T.attached_class)
@@ -103,7 +99,7 @@ module Lithic
103
99
  Lithic::AuthRules::VelocityLimitPeriod::FixedWindowYear
104
100
  ),
105
101
  scope: Lithic::AuthRules::VelocityLimitParams::Scope::OrSymbol,
106
- filters: Lithic::AuthRules::VelocityLimitParams::Filters,
102
+ filters: Lithic::AuthRules::VelocityLimitFilters,
107
103
  limit_amount: T.nilable(Integer),
108
104
  limit_count: T.nilable(Integer)
109
105
  }
@@ -143,204 +139,6 @@ module Lithic
143
139
  def self.values
144
140
  end
145
141
  end
146
-
147
- class Filters < Lithic::Internal::Type::BaseModel
148
- OrHash =
149
- T.type_alias do
150
- T.any(
151
- Lithic::AuthRules::VelocityLimitParams::Filters,
152
- Lithic::Internal::AnyHash
153
- )
154
- end
155
-
156
- # ISO-3166-1 alpha-3 Country Codes to exclude from the velocity calculation.
157
- # Transactions matching any of the provided will be excluded from the calculated
158
- # velocity.
159
- sig { returns(T.nilable(T::Array[String])) }
160
- attr_accessor :exclude_countries
161
-
162
- # Merchant Category Codes to exclude from the velocity calculation. Transactions
163
- # matching this MCC will be excluded from the calculated velocity.
164
- sig { returns(T.nilable(T::Array[String])) }
165
- attr_accessor :exclude_mccs
166
-
167
- # ISO-3166-1 alpha-3 Country Codes to include in the velocity calculation.
168
- # Transactions not matching any of the provided will not be included in the
169
- # calculated velocity.
170
- sig { returns(T.nilable(T::Array[String])) }
171
- attr_accessor :include_countries
172
-
173
- # Merchant Category Codes to include in the velocity calculation. Transactions not
174
- # matching this MCC will not be included in the calculated velocity.
175
- sig { returns(T.nilable(T::Array[String])) }
176
- attr_accessor :include_mccs
177
-
178
- # PAN entry modes to include in the velocity calculation. Transactions not
179
- # matching any of the provided will not be included in the calculated velocity.
180
- sig do
181
- returns(
182
- T.nilable(
183
- T::Array[
184
- Lithic::AuthRules::VelocityLimitParams::Filters::IncludePanEntryMode::OrSymbol
185
- ]
186
- )
187
- )
188
- end
189
- attr_accessor :include_pan_entry_modes
190
-
191
- sig do
192
- params(
193
- exclude_countries: T.nilable(T::Array[String]),
194
- exclude_mccs: T.nilable(T::Array[String]),
195
- include_countries: T.nilable(T::Array[String]),
196
- include_mccs: T.nilable(T::Array[String]),
197
- include_pan_entry_modes:
198
- T.nilable(
199
- T::Array[
200
- Lithic::AuthRules::VelocityLimitParams::Filters::IncludePanEntryMode::OrSymbol
201
- ]
202
- )
203
- ).returns(T.attached_class)
204
- end
205
- def self.new(
206
- # ISO-3166-1 alpha-3 Country Codes to exclude from the velocity calculation.
207
- # Transactions matching any of the provided will be excluded from the calculated
208
- # velocity.
209
- exclude_countries: nil,
210
- # Merchant Category Codes to exclude from the velocity calculation. Transactions
211
- # matching this MCC will be excluded from the calculated velocity.
212
- exclude_mccs: nil,
213
- # ISO-3166-1 alpha-3 Country Codes to include in the velocity calculation.
214
- # Transactions not matching any of the provided will not be included in the
215
- # calculated velocity.
216
- include_countries: nil,
217
- # Merchant Category Codes to include in the velocity calculation. Transactions not
218
- # matching this MCC will not be included in the calculated velocity.
219
- include_mccs: nil,
220
- # PAN entry modes to include in the velocity calculation. Transactions not
221
- # matching any of the provided will not be included in the calculated velocity.
222
- include_pan_entry_modes: nil
223
- )
224
- end
225
-
226
- sig do
227
- override.returns(
228
- {
229
- exclude_countries: T.nilable(T::Array[String]),
230
- exclude_mccs: T.nilable(T::Array[String]),
231
- include_countries: T.nilable(T::Array[String]),
232
- include_mccs: T.nilable(T::Array[String]),
233
- include_pan_entry_modes:
234
- T.nilable(
235
- T::Array[
236
- Lithic::AuthRules::VelocityLimitParams::Filters::IncludePanEntryMode::OrSymbol
237
- ]
238
- )
239
- }
240
- )
241
- end
242
- def to_hash
243
- end
244
-
245
- module IncludePanEntryMode
246
- extend Lithic::Internal::Type::Enum
247
-
248
- TaggedSymbol =
249
- T.type_alias do
250
- T.all(
251
- Symbol,
252
- Lithic::AuthRules::VelocityLimitParams::Filters::IncludePanEntryMode
253
- )
254
- end
255
- OrSymbol = T.type_alias { T.any(Symbol, String) }
256
-
257
- AUTO_ENTRY =
258
- T.let(
259
- :AUTO_ENTRY,
260
- Lithic::AuthRules::VelocityLimitParams::Filters::IncludePanEntryMode::TaggedSymbol
261
- )
262
- BAR_CODE =
263
- T.let(
264
- :BAR_CODE,
265
- Lithic::AuthRules::VelocityLimitParams::Filters::IncludePanEntryMode::TaggedSymbol
266
- )
267
- CONTACTLESS =
268
- T.let(
269
- :CONTACTLESS,
270
- Lithic::AuthRules::VelocityLimitParams::Filters::IncludePanEntryMode::TaggedSymbol
271
- )
272
- CREDENTIAL_ON_FILE =
273
- T.let(
274
- :CREDENTIAL_ON_FILE,
275
- Lithic::AuthRules::VelocityLimitParams::Filters::IncludePanEntryMode::TaggedSymbol
276
- )
277
- ECOMMERCE =
278
- T.let(
279
- :ECOMMERCE,
280
- Lithic::AuthRules::VelocityLimitParams::Filters::IncludePanEntryMode::TaggedSymbol
281
- )
282
- ERROR_KEYED =
283
- T.let(
284
- :ERROR_KEYED,
285
- Lithic::AuthRules::VelocityLimitParams::Filters::IncludePanEntryMode::TaggedSymbol
286
- )
287
- ERROR_MAGNETIC_STRIPE =
288
- T.let(
289
- :ERROR_MAGNETIC_STRIPE,
290
- Lithic::AuthRules::VelocityLimitParams::Filters::IncludePanEntryMode::TaggedSymbol
291
- )
292
- ICC =
293
- T.let(
294
- :ICC,
295
- Lithic::AuthRules::VelocityLimitParams::Filters::IncludePanEntryMode::TaggedSymbol
296
- )
297
- KEY_ENTERED =
298
- T.let(
299
- :KEY_ENTERED,
300
- Lithic::AuthRules::VelocityLimitParams::Filters::IncludePanEntryMode::TaggedSymbol
301
- )
302
- MAGNETIC_STRIPE =
303
- T.let(
304
- :MAGNETIC_STRIPE,
305
- Lithic::AuthRules::VelocityLimitParams::Filters::IncludePanEntryMode::TaggedSymbol
306
- )
307
- MANUAL =
308
- T.let(
309
- :MANUAL,
310
- Lithic::AuthRules::VelocityLimitParams::Filters::IncludePanEntryMode::TaggedSymbol
311
- )
312
- OCR =
313
- T.let(
314
- :OCR,
315
- Lithic::AuthRules::VelocityLimitParams::Filters::IncludePanEntryMode::TaggedSymbol
316
- )
317
- SECURE_CARDLESS =
318
- T.let(
319
- :SECURE_CARDLESS,
320
- Lithic::AuthRules::VelocityLimitParams::Filters::IncludePanEntryMode::TaggedSymbol
321
- )
322
- UNSPECIFIED =
323
- T.let(
324
- :UNSPECIFIED,
325
- Lithic::AuthRules::VelocityLimitParams::Filters::IncludePanEntryMode::TaggedSymbol
326
- )
327
- UNKNOWN =
328
- T.let(
329
- :UNKNOWN,
330
- Lithic::AuthRules::VelocityLimitParams::Filters::IncludePanEntryMode::TaggedSymbol
331
- )
332
-
333
- sig do
334
- override.returns(
335
- T::Array[
336
- Lithic::AuthRules::VelocityLimitParams::Filters::IncludePanEntryMode::TaggedSymbol
337
- ]
338
- )
339
- end
340
- def self.values
341
- end
342
- end
343
- end
344
142
  end
345
143
  end
346
144
  end