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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +20 -0
- data/README.md +94 -54
- data/lib/lithic/internal/type/array_of.rb +8 -0
- data/lib/lithic/internal/type/base_model.rb +15 -0
- data/lib/lithic/internal/type/boolean.rb +8 -0
- data/lib/lithic/internal/type/enum.rb +12 -0
- data/lib/lithic/internal/type/file_input.rb +7 -0
- data/lib/lithic/internal/type/hash_of.rb +8 -0
- data/lib/lithic/internal/type/union.rb +12 -0
- data/lib/lithic/internal/type/unknown.rb +8 -0
- data/lib/lithic/internal/util.rb +45 -0
- data/lib/lithic/internal.rb +3 -0
- data/lib/lithic/models/account_holder_update_response.rb +0 -9
- data/lib/lithic/models/auth_rules/auth_rule_condition.rb +0 -4
- data/lib/lithic/models/auth_rules/v2_apply_response.rb +0 -20
- data/lib/lithic/models/auth_rules/v2_create_params.rb +0 -10
- data/lib/lithic/models/auth_rules/v2_create_response.rb +0 -20
- data/lib/lithic/models/auth_rules/v2_draft_params.rb +0 -10
- data/lib/lithic/models/auth_rules/v2_draft_response.rb +0 -20
- data/lib/lithic/models/auth_rules/v2_list_response.rb +0 -20
- data/lib/lithic/models/auth_rules/v2_promote_response.rb +0 -20
- data/lib/lithic/models/auth_rules/v2_retrieve_response.rb +0 -20
- data/lib/lithic/models/auth_rules/v2_update_response.rb +0 -20
- data/lib/lithic/models/auth_rules/velocity_limit_params.rb +0 -4
- data/lib/lithic/models.rb +30 -19
- data/lib/lithic/version.rb +1 -1
- data/rbi/lithic/internal/type/array_of.rbi +6 -0
- data/rbi/lithic/internal/type/base_model.rbi +5 -0
- data/rbi/lithic/internal/type/boolean.rbi +6 -0
- data/rbi/lithic/internal/type/enum.rbi +5 -0
- data/rbi/lithic/internal/type/file_input.rbi +5 -0
- data/rbi/lithic/internal/type/hash_of.rbi +6 -0
- data/rbi/lithic/internal/type/union.rbi +5 -0
- data/rbi/lithic/internal/type/unknown.rbi +6 -0
- data/rbi/lithic/internal/util.rbi +31 -0
- data/rbi/lithic/internal.rbi +3 -0
- data/rbi/lithic/models/auth_rules/auth_rule_condition.rbi +12 -4
- data/rbi/lithic/models/auth_rules/v2_apply_response.rbi +4 -20
- data/rbi/lithic/models/auth_rules/v2_create_response.rbi +4 -20
- data/rbi/lithic/models/auth_rules/v2_draft_response.rbi +4 -20
- data/rbi/lithic/models/auth_rules/v2_list_response.rbi +4 -20
- data/rbi/lithic/models/auth_rules/v2_promote_response.rbi +4 -20
- data/rbi/lithic/models/auth_rules/v2_retrieve_response.rbi +4 -20
- data/rbi/lithic/models/auth_rules/v2_update_response.rbi +4 -20
- data/rbi/lithic/resources/account_holders.rbi +1 -6
- data/sig/lithic/internal/type/array_of.rbs +3 -0
- data/sig/lithic/internal/type/base_model.rbs +2 -0
- data/sig/lithic/internal/type/boolean.rbs +3 -0
- data/sig/lithic/internal/type/enum.rbs +2 -0
- data/sig/lithic/internal/type/file_input.rbs +2 -0
- data/sig/lithic/internal/type/hash_of.rbs +3 -0
- data/sig/lithic/internal/type/union.rbs +2 -0
- data/sig/lithic/internal/type/unknown.rbs +3 -0
- data/sig/lithic/internal/util.rbs +12 -0
- data/sig/lithic/internal.rbs +2 -0
- metadata +2 -2
@@ -168,11 +168,7 @@ module Lithic
|
|
168
168
|
# Parameters for the Auth Rule
|
169
169
|
sig do
|
170
170
|
returns(
|
171
|
-
|
172
|
-
Lithic::AuthRules::ConditionalBlockParameters,
|
173
|
-
Lithic::AuthRules::VelocityLimitParams,
|
174
|
-
Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::MerchantLockParameters
|
175
|
-
)
|
171
|
+
Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::Variants
|
176
172
|
)
|
177
173
|
end
|
178
174
|
attr_accessor :parameters
|
@@ -206,11 +202,7 @@ module Lithic
|
|
206
202
|
override.returns(
|
207
203
|
{
|
208
204
|
parameters:
|
209
|
-
|
210
|
-
Lithic::AuthRules::ConditionalBlockParameters,
|
211
|
-
Lithic::AuthRules::VelocityLimitParams,
|
212
|
-
Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::MerchantLockParameters
|
213
|
-
),
|
205
|
+
Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::Variants,
|
214
206
|
version: Integer
|
215
207
|
}
|
216
208
|
)
|
@@ -373,11 +365,7 @@ module Lithic
|
|
373
365
|
# Parameters for the Auth Rule
|
374
366
|
sig do
|
375
367
|
returns(
|
376
|
-
|
377
|
-
Lithic::AuthRules::ConditionalBlockParameters,
|
378
|
-
Lithic::AuthRules::VelocityLimitParams,
|
379
|
-
Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::MerchantLockParameters
|
380
|
-
)
|
368
|
+
Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::Variants
|
381
369
|
)
|
382
370
|
end
|
383
371
|
attr_accessor :parameters
|
@@ -411,11 +399,7 @@ module Lithic
|
|
411
399
|
override.returns(
|
412
400
|
{
|
413
401
|
parameters:
|
414
|
-
|
415
|
-
Lithic::AuthRules::ConditionalBlockParameters,
|
416
|
-
Lithic::AuthRules::VelocityLimitParams,
|
417
|
-
Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::MerchantLockParameters
|
418
|
-
),
|
402
|
+
Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::Variants,
|
419
403
|
version: Integer
|
420
404
|
}
|
421
405
|
)
|
@@ -175,11 +175,7 @@ module Lithic
|
|
175
175
|
# Parameters for the Auth Rule
|
176
176
|
sig do
|
177
177
|
returns(
|
178
|
-
|
179
|
-
Lithic::AuthRules::ConditionalBlockParameters,
|
180
|
-
Lithic::AuthRules::VelocityLimitParams,
|
181
|
-
Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::MerchantLockParameters
|
182
|
-
)
|
178
|
+
Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::Variants
|
183
179
|
)
|
184
180
|
end
|
185
181
|
attr_accessor :parameters
|
@@ -213,11 +209,7 @@ module Lithic
|
|
213
209
|
override.returns(
|
214
210
|
{
|
215
211
|
parameters:
|
216
|
-
|
217
|
-
Lithic::AuthRules::ConditionalBlockParameters,
|
218
|
-
Lithic::AuthRules::VelocityLimitParams,
|
219
|
-
Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::MerchantLockParameters
|
220
|
-
),
|
212
|
+
Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::Variants,
|
221
213
|
version: Integer
|
222
214
|
}
|
223
215
|
)
|
@@ -380,11 +372,7 @@ module Lithic
|
|
380
372
|
# Parameters for the Auth Rule
|
381
373
|
sig do
|
382
374
|
returns(
|
383
|
-
|
384
|
-
Lithic::AuthRules::ConditionalBlockParameters,
|
385
|
-
Lithic::AuthRules::VelocityLimitParams,
|
386
|
-
Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::MerchantLockParameters
|
387
|
-
)
|
375
|
+
Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::Variants
|
388
376
|
)
|
389
377
|
end
|
390
378
|
attr_accessor :parameters
|
@@ -418,11 +406,7 @@ module Lithic
|
|
418
406
|
override.returns(
|
419
407
|
{
|
420
408
|
parameters:
|
421
|
-
|
422
|
-
Lithic::AuthRules::ConditionalBlockParameters,
|
423
|
-
Lithic::AuthRules::VelocityLimitParams,
|
424
|
-
Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::MerchantLockParameters
|
425
|
-
),
|
409
|
+
Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::Variants,
|
426
410
|
version: Integer
|
427
411
|
}
|
428
412
|
)
|
@@ -175,11 +175,7 @@ module Lithic
|
|
175
175
|
# Parameters for the Auth Rule
|
176
176
|
sig do
|
177
177
|
returns(
|
178
|
-
|
179
|
-
Lithic::AuthRules::ConditionalBlockParameters,
|
180
|
-
Lithic::AuthRules::VelocityLimitParams,
|
181
|
-
Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::MerchantLockParameters
|
182
|
-
)
|
178
|
+
Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::Variants
|
183
179
|
)
|
184
180
|
end
|
185
181
|
attr_accessor :parameters
|
@@ -213,11 +209,7 @@ module Lithic
|
|
213
209
|
override.returns(
|
214
210
|
{
|
215
211
|
parameters:
|
216
|
-
|
217
|
-
Lithic::AuthRules::ConditionalBlockParameters,
|
218
|
-
Lithic::AuthRules::VelocityLimitParams,
|
219
|
-
Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::MerchantLockParameters
|
220
|
-
),
|
212
|
+
Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::Variants,
|
221
213
|
version: Integer
|
222
214
|
}
|
223
215
|
)
|
@@ -380,11 +372,7 @@ module Lithic
|
|
380
372
|
# Parameters for the Auth Rule
|
381
373
|
sig do
|
382
374
|
returns(
|
383
|
-
|
384
|
-
Lithic::AuthRules::ConditionalBlockParameters,
|
385
|
-
Lithic::AuthRules::VelocityLimitParams,
|
386
|
-
Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::MerchantLockParameters
|
387
|
-
)
|
375
|
+
Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::Variants
|
388
376
|
)
|
389
377
|
end
|
390
378
|
attr_accessor :parameters
|
@@ -418,11 +406,7 @@ module Lithic
|
|
418
406
|
override.returns(
|
419
407
|
{
|
420
408
|
parameters:
|
421
|
-
|
422
|
-
Lithic::AuthRules::ConditionalBlockParameters,
|
423
|
-
Lithic::AuthRules::VelocityLimitParams,
|
424
|
-
Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::MerchantLockParameters
|
425
|
-
),
|
409
|
+
Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::Variants,
|
426
410
|
version: Integer
|
427
411
|
}
|
428
412
|
)
|
@@ -172,11 +172,7 @@ module Lithic
|
|
172
172
|
# Parameters for the Auth Rule
|
173
173
|
sig do
|
174
174
|
returns(
|
175
|
-
|
176
|
-
Lithic::AuthRules::ConditionalBlockParameters,
|
177
|
-
Lithic::AuthRules::VelocityLimitParams,
|
178
|
-
Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::MerchantLockParameters
|
179
|
-
)
|
175
|
+
Lithic::Models::AuthRules::V2UpdateResponse::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
|
-
|
214
|
-
Lithic::AuthRules::ConditionalBlockParameters,
|
215
|
-
Lithic::AuthRules::VelocityLimitParams,
|
216
|
-
Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::MerchantLockParameters
|
217
|
-
),
|
209
|
+
Lithic::Models::AuthRules::V2UpdateResponse::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
|
-
|
381
|
-
Lithic::AuthRules::ConditionalBlockParameters,
|
382
|
-
Lithic::AuthRules::VelocityLimitParams,
|
383
|
-
Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::MerchantLockParameters
|
384
|
-
)
|
372
|
+
Lithic::Models::AuthRules::V2UpdateResponse::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
|
-
|
419
|
-
Lithic::AuthRules::ConditionalBlockParameters,
|
420
|
-
Lithic::AuthRules::VelocityLimitParams,
|
421
|
-
Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::MerchantLockParameters
|
422
|
-
),
|
406
|
+
Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::Variants,
|
423
407
|
version: Integer
|
424
408
|
}
|
425
409
|
)
|
@@ -166,12 +166,7 @@ module Lithic
|
|
166
166
|
legal_business_name: String,
|
167
167
|
phone_number: String,
|
168
168
|
request_options: Lithic::RequestOptions::OrHash
|
169
|
-
).returns(
|
170
|
-
T.any(
|
171
|
-
Lithic::Models::AccountHolderUpdateResponse::KYBKYCPatchResponse,
|
172
|
-
Lithic::Models::AccountHolderUpdateResponse::PatchResponse
|
173
|
-
)
|
174
|
-
)
|
169
|
+
).returns(Lithic::Models::AccountHolderUpdateResponse::Variants)
|
175
170
|
end
|
176
171
|
def update(
|
177
172
|
# Globally unique identifier for the account holder.
|
@@ -3,6 +3,7 @@ module Lithic
|
|
3
3
|
module Type
|
4
4
|
class ArrayOf[Elem]
|
5
5
|
include Lithic::Internal::Type::Converter
|
6
|
+
include Lithic::Internal::Util::SorbetRuntimeSupport
|
6
7
|
|
7
8
|
def self.[]: (
|
8
9
|
::Hash[Symbol, top]
|
@@ -27,6 +28,8 @@ module Lithic
|
|
27
28
|
state: Lithic::Internal::Type::Converter::dump_state
|
28
29
|
) -> (::Array[top] | top)
|
29
30
|
|
31
|
+
def to_sorbet_type: -> top
|
32
|
+
|
30
33
|
def item_type: -> Elem
|
31
34
|
|
32
35
|
def nilable?: -> bool
|
@@ -3,6 +3,7 @@ module Lithic
|
|
3
3
|
module Type
|
4
4
|
class Boolean
|
5
5
|
extend Lithic::Internal::Type::Converter
|
6
|
+
extend Lithic::Internal::Util::SorbetRuntimeSupport
|
6
7
|
|
7
8
|
def self.===: (top other) -> bool
|
8
9
|
|
@@ -17,6 +18,8 @@ module Lithic
|
|
17
18
|
bool | top value,
|
18
19
|
state: Lithic::Internal::Type::Converter::dump_state
|
19
20
|
) -> (bool | top)
|
21
|
+
|
22
|
+
def self.to_sorbet_type: -> top
|
20
23
|
end
|
21
24
|
end
|
22
25
|
end
|
@@ -3,6 +3,7 @@ module Lithic
|
|
3
3
|
module Type
|
4
4
|
class HashOf[Elem]
|
5
5
|
include Lithic::Internal::Type::Converter
|
6
|
+
include Lithic::Internal::Util::SorbetRuntimeSupport
|
6
7
|
|
7
8
|
def self.[]: (
|
8
9
|
::Hash[Symbol, top]
|
@@ -27,6 +28,8 @@ module Lithic
|
|
27
28
|
state: Lithic::Internal::Type::Converter::dump_state
|
28
29
|
) -> (::Hash[Symbol, top] | top)
|
29
30
|
|
31
|
+
def to_sorbet_type: -> top
|
32
|
+
|
30
33
|
def item_type: -> Elem
|
31
34
|
|
32
35
|
def nilable?: -> bool
|
@@ -3,6 +3,7 @@ module Lithic
|
|
3
3
|
module Type
|
4
4
|
class Unknown
|
5
5
|
extend Lithic::Internal::Type::Converter
|
6
|
+
extend Lithic::Internal::Util::SorbetRuntimeSupport
|
6
7
|
|
7
8
|
def self.===: (top other) -> bool
|
8
9
|
|
@@ -17,6 +18,8 @@ module Lithic
|
|
17
18
|
top value,
|
18
19
|
state: Lithic::Internal::Type::Converter::dump_state
|
19
20
|
) -> top
|
21
|
+
|
22
|
+
def self.to_sorbet_type: -> top
|
20
23
|
end
|
21
24
|
end
|
22
25
|
end
|
@@ -5,6 +5,10 @@ module Lithic
|
|
5
5
|
|
6
6
|
def self?.monotonic_secs: -> Float
|
7
7
|
|
8
|
+
def self?.walk_namespaces: (
|
9
|
+
Module | Class ns
|
10
|
+
) -> Enumerable[(Module | Class)]
|
11
|
+
|
8
12
|
def self?.arch: -> String
|
9
13
|
|
10
14
|
def self?.os: -> String
|
@@ -166,7 +170,15 @@ module Lithic
|
|
166
170
|
|
167
171
|
def const_missing: (Symbol name) -> void
|
168
172
|
|
173
|
+
def sorbet_constant_defined?: (Symbol name) -> bool
|
174
|
+
|
169
175
|
def define_sorbet_constant!: (Symbol name) { -> top } -> void
|
176
|
+
|
177
|
+
def to_sorbet_type: -> top
|
178
|
+
|
179
|
+
def self.to_sorbet_type: (
|
180
|
+
Lithic::Internal::Util::SorbetRuntimeSupport | top `type`
|
181
|
+
) -> top
|
170
182
|
end
|
171
183
|
end
|
172
184
|
end
|
data/sig/lithic/internal.rbs
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lithic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.0.pre.alpha.
|
4
|
+
version: 0.1.0.pre.alpha.27
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lithic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-05-
|
11
|
+
date: 2025-05-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: connection_pool
|