lithic 0.1.0.pre.alpha.26 → 0.1.0.pre.alpha.27

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 (57) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +20 -0
  3. data/README.md +94 -54
  4. data/lib/lithic/internal/type/array_of.rb +8 -0
  5. data/lib/lithic/internal/type/base_model.rb +15 -0
  6. data/lib/lithic/internal/type/boolean.rb +8 -0
  7. data/lib/lithic/internal/type/enum.rb +12 -0
  8. data/lib/lithic/internal/type/file_input.rb +7 -0
  9. data/lib/lithic/internal/type/hash_of.rb +8 -0
  10. data/lib/lithic/internal/type/union.rb +12 -0
  11. data/lib/lithic/internal/type/unknown.rb +8 -0
  12. data/lib/lithic/internal/util.rb +45 -0
  13. data/lib/lithic/internal.rb +3 -0
  14. data/lib/lithic/models/account_holder_update_response.rb +0 -9
  15. data/lib/lithic/models/auth_rules/auth_rule_condition.rb +0 -4
  16. data/lib/lithic/models/auth_rules/v2_apply_response.rb +0 -20
  17. data/lib/lithic/models/auth_rules/v2_create_params.rb +0 -10
  18. data/lib/lithic/models/auth_rules/v2_create_response.rb +0 -20
  19. data/lib/lithic/models/auth_rules/v2_draft_params.rb +0 -10
  20. data/lib/lithic/models/auth_rules/v2_draft_response.rb +0 -20
  21. data/lib/lithic/models/auth_rules/v2_list_response.rb +0 -20
  22. data/lib/lithic/models/auth_rules/v2_promote_response.rb +0 -20
  23. data/lib/lithic/models/auth_rules/v2_retrieve_response.rb +0 -20
  24. data/lib/lithic/models/auth_rules/v2_update_response.rb +0 -20
  25. data/lib/lithic/models/auth_rules/velocity_limit_params.rb +0 -4
  26. data/lib/lithic/models.rb +30 -19
  27. data/lib/lithic/version.rb +1 -1
  28. data/rbi/lithic/internal/type/array_of.rbi +6 -0
  29. data/rbi/lithic/internal/type/base_model.rbi +5 -0
  30. data/rbi/lithic/internal/type/boolean.rbi +6 -0
  31. data/rbi/lithic/internal/type/enum.rbi +5 -0
  32. data/rbi/lithic/internal/type/file_input.rbi +5 -0
  33. data/rbi/lithic/internal/type/hash_of.rbi +6 -0
  34. data/rbi/lithic/internal/type/union.rbi +5 -0
  35. data/rbi/lithic/internal/type/unknown.rbi +6 -0
  36. data/rbi/lithic/internal/util.rbi +31 -0
  37. data/rbi/lithic/internal.rbi +3 -0
  38. data/rbi/lithic/models/auth_rules/auth_rule_condition.rbi +12 -4
  39. data/rbi/lithic/models/auth_rules/v2_apply_response.rbi +4 -20
  40. data/rbi/lithic/models/auth_rules/v2_create_response.rbi +4 -20
  41. data/rbi/lithic/models/auth_rules/v2_draft_response.rbi +4 -20
  42. data/rbi/lithic/models/auth_rules/v2_list_response.rbi +4 -20
  43. data/rbi/lithic/models/auth_rules/v2_promote_response.rbi +4 -20
  44. data/rbi/lithic/models/auth_rules/v2_retrieve_response.rbi +4 -20
  45. data/rbi/lithic/models/auth_rules/v2_update_response.rbi +4 -20
  46. data/rbi/lithic/resources/account_holders.rbi +1 -6
  47. data/sig/lithic/internal/type/array_of.rbs +3 -0
  48. data/sig/lithic/internal/type/base_model.rbs +2 -0
  49. data/sig/lithic/internal/type/boolean.rbs +3 -0
  50. data/sig/lithic/internal/type/enum.rbs +2 -0
  51. data/sig/lithic/internal/type/file_input.rbs +2 -0
  52. data/sig/lithic/internal/type/hash_of.rbs +3 -0
  53. data/sig/lithic/internal/type/union.rbs +2 -0
  54. data/sig/lithic/internal/type/unknown.rbs +3 -0
  55. data/sig/lithic/internal/util.rbs +12 -0
  56. data/sig/lithic/internal.rbs +2 -0
  57. metadata +2 -2
@@ -180,16 +180,6 @@ module Lithic
180
180
 
181
181
  # @!method self.variants
182
182
  # @return [Array(Lithic::AuthRules::ConditionalBlockParameters, Lithic::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::MerchantLockParameters)]
183
-
184
- define_sorbet_constant!(:Variants) do
185
- T.type_alias do
186
- T.any(
187
- Lithic::AuthRules::ConditionalBlockParameters,
188
- Lithic::AuthRules::VelocityLimitParams,
189
- Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::MerchantLockParameters
190
- )
191
- end
192
- end
193
183
  end
194
184
  end
195
185
 
@@ -289,16 +279,6 @@ module Lithic
289
279
 
290
280
  # @!method self.variants
291
281
  # @return [Array(Lithic::AuthRules::ConditionalBlockParameters, Lithic::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::MerchantLockParameters)]
292
-
293
- define_sorbet_constant!(:Variants) do
294
- T.type_alias do
295
- T.any(
296
- Lithic::AuthRules::ConditionalBlockParameters,
297
- Lithic::AuthRules::VelocityLimitParams,
298
- Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::MerchantLockParameters
299
- )
300
- end
301
- end
302
282
  end
303
283
  end
304
284
 
@@ -180,16 +180,6 @@ module Lithic
180
180
 
181
181
  # @!method self.variants
182
182
  # @return [Array(Lithic::AuthRules::ConditionalBlockParameters, Lithic::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::MerchantLockParameters)]
183
-
184
- define_sorbet_constant!(:Variants) do
185
- T.type_alias do
186
- T.any(
187
- Lithic::AuthRules::ConditionalBlockParameters,
188
- Lithic::AuthRules::VelocityLimitParams,
189
- Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::MerchantLockParameters
190
- )
191
- end
192
- end
193
183
  end
194
184
  end
195
185
 
@@ -289,16 +279,6 @@ module Lithic
289
279
 
290
280
  # @!method self.variants
291
281
  # @return [Array(Lithic::AuthRules::ConditionalBlockParameters, Lithic::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::MerchantLockParameters)]
292
-
293
- define_sorbet_constant!(:Variants) do
294
- T.type_alias do
295
- T.any(
296
- Lithic::AuthRules::ConditionalBlockParameters,
297
- Lithic::AuthRules::VelocityLimitParams,
298
- Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::MerchantLockParameters
299
- )
300
- end
301
- end
302
282
  end
303
283
  end
304
284
 
@@ -181,16 +181,6 @@ module Lithic
181
181
 
182
182
  # @!method self.variants
183
183
  # @return [Array(Lithic::AuthRules::ConditionalBlockParameters, Lithic::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::MerchantLockParameters)]
184
-
185
- define_sorbet_constant!(:Variants) do
186
- T.type_alias do
187
- T.any(
188
- Lithic::AuthRules::ConditionalBlockParameters,
189
- Lithic::AuthRules::VelocityLimitParams,
190
- Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::MerchantLockParameters
191
- )
192
- end
193
- end
194
184
  end
195
185
  end
196
186
 
@@ -290,16 +280,6 @@ module Lithic
290
280
 
291
281
  # @!method self.variants
292
282
  # @return [Array(Lithic::AuthRules::ConditionalBlockParameters, Lithic::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::MerchantLockParameters)]
293
-
294
- define_sorbet_constant!(:Variants) do
295
- T.type_alias do
296
- T.any(
297
- Lithic::AuthRules::ConditionalBlockParameters,
298
- Lithic::AuthRules::VelocityLimitParams,
299
- Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::MerchantLockParameters
300
- )
301
- end
302
- end
303
283
  end
304
284
  end
305
285
 
@@ -188,16 +188,6 @@ module Lithic
188
188
 
189
189
  # @!method self.variants
190
190
  # @return [Array(Lithic::AuthRules::ConditionalBlockParameters, Lithic::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::MerchantLockParameters)]
191
-
192
- define_sorbet_constant!(:Variants) do
193
- T.type_alias do
194
- T.any(
195
- Lithic::AuthRules::ConditionalBlockParameters,
196
- Lithic::AuthRules::VelocityLimitParams,
197
- Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::MerchantLockParameters
198
- )
199
- end
200
- end
201
191
  end
202
192
  end
203
193
 
@@ -298,16 +288,6 @@ module Lithic
298
288
 
299
289
  # @!method self.variants
300
290
  # @return [Array(Lithic::AuthRules::ConditionalBlockParameters, Lithic::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::MerchantLockParameters)]
301
-
302
- define_sorbet_constant!(:Variants) do
303
- T.type_alias do
304
- T.any(
305
- Lithic::AuthRules::ConditionalBlockParameters,
306
- Lithic::AuthRules::VelocityLimitParams,
307
- Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::MerchantLockParameters
308
- )
309
- end
310
- end
311
291
  end
312
292
  end
313
293
 
@@ -181,16 +181,6 @@ module Lithic
181
181
 
182
182
  # @!method self.variants
183
183
  # @return [Array(Lithic::AuthRules::ConditionalBlockParameters, Lithic::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::MerchantLockParameters)]
184
-
185
- define_sorbet_constant!(:Variants) do
186
- T.type_alias do
187
- T.any(
188
- Lithic::AuthRules::ConditionalBlockParameters,
189
- Lithic::AuthRules::VelocityLimitParams,
190
- Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::MerchantLockParameters
191
- )
192
- end
193
- end
194
184
  end
195
185
  end
196
186
 
@@ -290,16 +280,6 @@ module Lithic
290
280
 
291
281
  # @!method self.variants
292
282
  # @return [Array(Lithic::AuthRules::ConditionalBlockParameters, Lithic::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::MerchantLockParameters)]
293
-
294
- define_sorbet_constant!(:Variants) do
295
- T.type_alias do
296
- T.any(
297
- Lithic::AuthRules::ConditionalBlockParameters,
298
- Lithic::AuthRules::VelocityLimitParams,
299
- Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::MerchantLockParameters
300
- )
301
- end
302
- end
303
283
  end
304
284
  end
305
285
 
@@ -117,10 +117,6 @@ module Lithic
117
117
 
118
118
  # @!method self.variants
119
119
  # @return [Array(Integer, Symbol, Lithic::AuthRules::VelocityLimitParamsPeriodWindow)]
120
-
121
- define_sorbet_constant!(:Variants) do
122
- T.type_alias { T.any(Integer, Lithic::AuthRules::VelocityLimitParamsPeriodWindow::TaggedSymbol) }
123
- end
124
120
  end
125
121
 
126
122
  # @see Lithic::AuthRules::VelocityLimitParams#scope
data/lib/lithic/models.rb CHANGED
@@ -5,29 +5,40 @@ module Lithic
5
5
  cls.define_sorbet_constant!(:OrHash) { T.type_alias { T.any(cls, Lithic::Internal::AnyHash) } }
6
6
  end
7
7
 
8
- [
9
- *Lithic::Internal::Type::Enum.included_modules,
10
- *Lithic::Internal::Type::Union.included_modules
11
- ].each do |cls|
12
- cls.constants.each do |name|
13
- case cls.const_get(name)
14
- in true | false
15
- cls.define_sorbet_constant!(:TaggedBoolean) { T.type_alias { T.all(T::Boolean, cls) } }
16
- cls.define_sorbet_constant!(:OrBoolean) { T.type_alias { T::Boolean } }
17
- in Integer
18
- cls.define_sorbet_constant!(:TaggedInteger) { T.type_alias { T.all(Integer, cls) } }
19
- cls.define_sorbet_constant!(:OrInteger) { T.type_alias { Integer } }
20
- in Float
21
- cls.define_sorbet_constant!(:TaggedFloat) { T.type_alias { T.all(Float, cls) } }
22
- cls.define_sorbet_constant!(:OrFloat) { T.type_alias { Float } }
23
- in Symbol
24
- cls.define_sorbet_constant!(:TaggedSymbol) { T.type_alias { T.all(Symbol, cls) } }
25
- cls.define_sorbet_constant!(:OrSymbol) { T.type_alias { T.any(Symbol, String) } }
26
- else
8
+ Lithic::Internal::Util.walk_namespaces(Lithic::Models).each do |mod|
9
+ case mod
10
+ in Lithic::Internal::Type::Enum | Lithic::Internal::Type::Union
11
+ mod.constants.each do |name|
12
+ case mod.const_get(name)
13
+ in true | false
14
+ mod.define_sorbet_constant!(:TaggedBoolean) { T.type_alias { T.all(T::Boolean, mod) } }
15
+ mod.define_sorbet_constant!(:OrBoolean) { T.type_alias { T::Boolean } }
16
+ in Integer
17
+ mod.define_sorbet_constant!(:TaggedInteger) { T.type_alias { T.all(Integer, mod) } }
18
+ mod.define_sorbet_constant!(:OrInteger) { T.type_alias { Integer } }
19
+ in Float
20
+ mod.define_sorbet_constant!(:TaggedFloat) { T.type_alias { T.all(Float, mod) } }
21
+ mod.define_sorbet_constant!(:OrFloat) { T.type_alias { Float } }
22
+ in Symbol
23
+ mod.define_sorbet_constant!(:TaggedSymbol) { T.type_alias { T.all(Symbol, mod) } }
24
+ mod.define_sorbet_constant!(:OrSymbol) { T.type_alias { T.any(Symbol, String) } }
25
+ else
26
+ end
27
27
  end
28
+ else
28
29
  end
29
30
  end
30
31
 
32
+ Lithic::Internal::Util.walk_namespaces(Lithic::Models)
33
+ .lazy
34
+ .grep(Lithic::Internal::Type::Union)
35
+ .each do |mod|
36
+ const = :Variants
37
+ next if mod.sorbet_constant_defined?(const)
38
+
39
+ mod.define_sorbet_constant!(const) { T.type_alias { mod.to_sorbet_type } }
40
+ end
41
+
31
42
  Account = Lithic::Models::Account
32
43
 
33
44
  AccountFinancialAccountType = Lithic::Models::AccountFinancialAccountType
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Lithic
4
- VERSION = "0.1.0.pre.alpha.26"
4
+ VERSION = "0.1.0.pre.alpha.27"
5
5
  end
@@ -8,6 +8,7 @@ module Lithic
8
8
  # Array of items of a given type.
9
9
  class ArrayOf
10
10
  include Lithic::Internal::Type::Converter
11
+ include Lithic::Internal::Util::SorbetRuntimeSupport
11
12
 
12
13
  abstract!
13
14
 
@@ -63,6 +64,11 @@ module Lithic
63
64
  def dump(value, state:)
64
65
  end
65
66
 
67
+ # @api private
68
+ sig { returns(T.anything) }
69
+ def to_sorbet_type
70
+ end
71
+
66
72
  # @api private
67
73
  sig { returns(Elem) }
68
74
  protected def item_type
@@ -190,6 +190,11 @@ module Lithic
190
190
  end
191
191
  def dump(value, state:)
192
192
  end
193
+
194
+ # @api private
195
+ sig { returns(T.anything) }
196
+ def to_sorbet_type
197
+ end
193
198
  end
194
199
 
195
200
  class << self
@@ -8,6 +8,7 @@ module Lithic
8
8
  # Ruby has no Boolean class; this is something for models to refer to.
9
9
  class Boolean
10
10
  extend Lithic::Internal::Type::Converter
11
+ extend Lithic::Internal::Util::SorbetRuntimeSupport
11
12
 
12
13
  abstract!
13
14
 
@@ -43,6 +44,11 @@ module Lithic
43
44
  end
44
45
  def dump(value, state:)
45
46
  end
47
+
48
+ # @api private
49
+ sig { returns(T.anything) }
50
+ def to_sorbet_type
51
+ end
46
52
  end
47
53
  end
48
54
  end
@@ -67,6 +67,11 @@ module Lithic
67
67
  def dump(value, state:)
68
68
  end
69
69
 
70
+ # @api private
71
+ sig { returns(T.anything) }
72
+ def to_sorbet_type
73
+ end
74
+
70
75
  # @api private
71
76
  sig { params(depth: Integer).returns(String) }
72
77
  def inspect(depth: 0)
@@ -47,6 +47,11 @@ module Lithic
47
47
  end
48
48
  def dump(value, state:)
49
49
  end
50
+
51
+ # @api private
52
+ sig { returns(T.anything) }
53
+ def to_sorbet_type
54
+ end
50
55
  end
51
56
  end
52
57
  end
@@ -8,6 +8,7 @@ module Lithic
8
8
  # Hash of items of a given type.
9
9
  class HashOf
10
10
  include Lithic::Internal::Type::Converter
11
+ include Lithic::Internal::Util::SorbetRuntimeSupport
11
12
 
12
13
  abstract!
13
14
 
@@ -63,6 +64,11 @@ module Lithic
63
64
  def dump(value, state:)
64
65
  end
65
66
 
67
+ # @api private
68
+ sig { returns(T.anything) }
69
+ def to_sorbet_type
70
+ end
71
+
66
72
  # @api private
67
73
  sig { returns(Elem) }
68
74
  protected def item_type
@@ -101,6 +101,11 @@ module Lithic
101
101
  def dump(value, state:)
102
102
  end
103
103
 
104
+ # @api private
105
+ sig { returns(T.anything) }
106
+ def to_sorbet_type
107
+ end
108
+
104
109
  # @api private
105
110
  sig { params(depth: Integer).returns(String) }
106
111
  def inspect(depth: 0)
@@ -8,6 +8,7 @@ module Lithic
8
8
  # When we don't know what to expect for the value.
9
9
  class Unknown
10
10
  extend Lithic::Internal::Type::Converter
11
+ extend Lithic::Internal::Util::SorbetRuntimeSupport
11
12
 
12
13
  abstract!
13
14
 
@@ -43,6 +44,11 @@ module Lithic
43
44
  end
44
45
  def dump(value, state:)
45
46
  end
47
+
48
+ # @api private
49
+ sig { returns(T.anything) }
50
+ def to_sorbet_type
51
+ end
46
52
  end
47
53
  end
48
54
  end
@@ -11,6 +11,15 @@ module Lithic
11
11
  def self.monotonic_secs
12
12
  end
13
13
 
14
+ # @api private
15
+ sig do
16
+ params(ns: T.any(Module, T::Class[T.anything])).returns(
17
+ T::Enumerable[T.any(Module, T::Class[T.anything])]
18
+ )
19
+ end
20
+ def self.walk_namespaces(ns)
21
+ end
22
+
14
23
  class << self
15
24
  # @api private
16
25
  sig { returns(String) }
@@ -441,10 +450,32 @@ module Lithic
441
450
  def const_missing(name)
442
451
  end
443
452
 
453
+ # @api private
454
+ sig { params(name: Symbol).returns(T::Boolean) }
455
+ def sorbet_constant_defined?(name)
456
+ end
457
+
444
458
  # @api private
445
459
  sig { params(name: Symbol, blk: T.proc.returns(T.anything)).void }
446
460
  def define_sorbet_constant!(name, &blk)
447
461
  end
462
+
463
+ # @api private
464
+ sig { returns(T.anything) }
465
+ def to_sorbet_type
466
+ end
467
+
468
+ class << self
469
+ # @api private
470
+ sig do
471
+ params(
472
+ type:
473
+ T.any(Lithic::Internal::Util::SorbetRuntimeSupport, T.anything)
474
+ ).returns(T.anything)
475
+ end
476
+ def to_sorbet_type(type)
477
+ end
478
+ end
448
479
  end
449
480
  end
450
481
  end
@@ -8,6 +8,9 @@ module Lithic
8
8
  # this alias might be refined in the future.
9
9
  AnyHash = T.type_alias { T::Hash[Symbol, T.anything] }
10
10
 
11
+ FileInput =
12
+ T.type_alias { T.any(Pathname, StringIO, IO, String, Lithic::FilePart) }
13
+
11
14
  OMIT = T.let(Object.new.freeze, T.anything)
12
15
  end
13
16
  end
@@ -89,10 +89,18 @@ module Lithic
89
89
  attr_writer :operation
90
90
 
91
91
  # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
92
- sig { returns(T.nilable(T.any(String, Integer, T::Array[String]))) }
92
+ sig do
93
+ returns(
94
+ T.nilable(Lithic::AuthRules::AuthRuleCondition::Value::Variants)
95
+ )
96
+ end
93
97
  attr_reader :value
94
98
 
95
- sig { params(value: T.any(String, Integer, T::Array[String])).void }
99
+ sig do
100
+ params(
101
+ value: Lithic::AuthRules::AuthRuleCondition::Value::Variants
102
+ ).void
103
+ end
96
104
  attr_writer :value
97
105
 
98
106
  sig do
@@ -100,7 +108,7 @@ module Lithic
100
108
  attribute: Lithic::AuthRules::ConditionalAttribute::OrSymbol,
101
109
  operation:
102
110
  Lithic::AuthRules::AuthRuleCondition::Operation::OrSymbol,
103
- value: T.any(String, Integer, T::Array[String])
111
+ value: Lithic::AuthRules::AuthRuleCondition::Value::Variants
104
112
  ).returns(T.attached_class)
105
113
  end
106
114
  def self.new(
@@ -165,7 +173,7 @@ module Lithic
165
173
  attribute: Lithic::AuthRules::ConditionalAttribute::OrSymbol,
166
174
  operation:
167
175
  Lithic::AuthRules::AuthRuleCondition::Operation::OrSymbol,
168
- value: T.any(String, Integer, T::Array[String])
176
+ value: Lithic::AuthRules::AuthRuleCondition::Value::Variants
169
177
  }
170
178
  )
171
179
  end
@@ -172,11 +172,7 @@ module Lithic
172
172
  # Parameters for the Auth Rule
173
173
  sig do
174
174
  returns(
175
- T.any(
176
- Lithic::AuthRules::ConditionalBlockParameters,
177
- Lithic::AuthRules::VelocityLimitParams,
178
- Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::MerchantLockParameters
179
- )
175
+ Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::Variants
180
176
  )
181
177
  end
182
178
  attr_accessor :parameters
@@ -210,11 +206,7 @@ module Lithic
210
206
  override.returns(
211
207
  {
212
208
  parameters:
213
- T.any(
214
- Lithic::AuthRules::ConditionalBlockParameters,
215
- Lithic::AuthRules::VelocityLimitParams,
216
- Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::MerchantLockParameters
217
- ),
209
+ Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::Variants,
218
210
  version: Integer
219
211
  }
220
212
  )
@@ -377,11 +369,7 @@ module Lithic
377
369
  # Parameters for the Auth Rule
378
370
  sig do
379
371
  returns(
380
- T.any(
381
- Lithic::AuthRules::ConditionalBlockParameters,
382
- Lithic::AuthRules::VelocityLimitParams,
383
- Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::MerchantLockParameters
384
- )
372
+ Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::Variants
385
373
  )
386
374
  end
387
375
  attr_accessor :parameters
@@ -415,11 +403,7 @@ module Lithic
415
403
  override.returns(
416
404
  {
417
405
  parameters:
418
- T.any(
419
- Lithic::AuthRules::ConditionalBlockParameters,
420
- Lithic::AuthRules::VelocityLimitParams,
421
- Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::MerchantLockParameters
422
- ),
406
+ Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::Variants,
423
407
  version: Integer
424
408
  }
425
409
  )
@@ -172,11 +172,7 @@ module Lithic
172
172
  # Parameters for the Auth Rule
173
173
  sig do
174
174
  returns(
175
- T.any(
176
- Lithic::AuthRules::ConditionalBlockParameters,
177
- Lithic::AuthRules::VelocityLimitParams,
178
- Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::MerchantLockParameters
179
- )
175
+ Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Variants
180
176
  )
181
177
  end
182
178
  attr_accessor :parameters
@@ -210,11 +206,7 @@ module Lithic
210
206
  override.returns(
211
207
  {
212
208
  parameters:
213
- T.any(
214
- Lithic::AuthRules::ConditionalBlockParameters,
215
- Lithic::AuthRules::VelocityLimitParams,
216
- Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::MerchantLockParameters
217
- ),
209
+ Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Variants,
218
210
  version: Integer
219
211
  }
220
212
  )
@@ -377,11 +369,7 @@ module Lithic
377
369
  # Parameters for the Auth Rule
378
370
  sig do
379
371
  returns(
380
- T.any(
381
- Lithic::AuthRules::ConditionalBlockParameters,
382
- Lithic::AuthRules::VelocityLimitParams,
383
- Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::MerchantLockParameters
384
- )
372
+ Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Variants
385
373
  )
386
374
  end
387
375
  attr_accessor :parameters
@@ -415,11 +403,7 @@ module Lithic
415
403
  override.returns(
416
404
  {
417
405
  parameters:
418
- T.any(
419
- Lithic::AuthRules::ConditionalBlockParameters,
420
- Lithic::AuthRules::VelocityLimitParams,
421
- Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::MerchantLockParameters
422
- ),
406
+ Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Variants,
423
407
  version: Integer
424
408
  }
425
409
  )
@@ -172,11 +172,7 @@ module Lithic
172
172
  # Parameters for the Auth Rule
173
173
  sig do
174
174
  returns(
175
- T.any(
176
- Lithic::AuthRules::ConditionalBlockParameters,
177
- Lithic::AuthRules::VelocityLimitParams,
178
- Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::MerchantLockParameters
179
- )
175
+ Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::Variants
180
176
  )
181
177
  end
182
178
  attr_accessor :parameters
@@ -210,11 +206,7 @@ module Lithic
210
206
  override.returns(
211
207
  {
212
208
  parameters:
213
- T.any(
214
- Lithic::AuthRules::ConditionalBlockParameters,
215
- Lithic::AuthRules::VelocityLimitParams,
216
- Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::MerchantLockParameters
217
- ),
209
+ Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::Variants,
218
210
  version: Integer
219
211
  }
220
212
  )
@@ -377,11 +369,7 @@ module Lithic
377
369
  # Parameters for the Auth Rule
378
370
  sig do
379
371
  returns(
380
- T.any(
381
- Lithic::AuthRules::ConditionalBlockParameters,
382
- Lithic::AuthRules::VelocityLimitParams,
383
- Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::MerchantLockParameters
384
- )
372
+ Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::Variants
385
373
  )
386
374
  end
387
375
  attr_accessor :parameters
@@ -415,11 +403,7 @@ module Lithic
415
403
  override.returns(
416
404
  {
417
405
  parameters:
418
- T.any(
419
- Lithic::AuthRules::ConditionalBlockParameters,
420
- Lithic::AuthRules::VelocityLimitParams,
421
- Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::MerchantLockParameters
422
- ),
406
+ Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::Variants,
423
407
  version: Integer
424
408
  }
425
409
  )