Skip to content

Commit 95e6f93

Browse files
feat(api): api update
1 parent 99c6f00 commit 95e6f93

4 files changed

Lines changed: 88 additions & 3 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 165
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-aa684ff2a2af585fe502a6e44520ddd883f5141a1113fc9dbe7830027842aa09.yml
3-
openapi_spec_hash: b58989fdc04768fc1eb758e180c5f128
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-bc4173417a899a1519326ae60cb481186c1a1c976f3d00b2b305278808db44cd.yml
3+
openapi_spec_hash: 1c1dd981efeffb5276544baa34cf3d17
44
config_hash: 1a83dceb58f6f525b19a5775018db7e8

lib/lithic/models/transaction.rb

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1086,12 +1086,17 @@ class Event < Lithic::Internal::Type::BaseModel
10861086
# @return [Symbol, Lithic::Models::Transaction::Event::Type]
10871087
required :type, enum: -> { Lithic::Transaction::Event::Type }
10881088

1089+
# @!attribute account_type
1090+
#
1091+
# @return [Symbol, Lithic::Models::Transaction::Event::AccountType, nil]
1092+
optional :account_type, enum: -> { Lithic::Transaction::Event::AccountType }
1093+
10891094
# @!attribute network_specific_data
10901095
#
10911096
# @return [Lithic::Models::Transaction::Event::NetworkSpecificData, nil]
10921097
optional :network_specific_data, -> { Lithic::Transaction::Event::NetworkSpecificData }
10931098

1094-
# @!method initialize(token:, amount:, amounts:, created:, detailed_results:, effective_polarity:, network_info:, result:, rule_results:, type:, network_specific_data: nil)
1099+
# @!method initialize(token:, amount:, amounts:, created:, detailed_results:, effective_polarity:, network_info:, result:, rule_results:, type:, account_type: nil, network_specific_data: nil)
10951100
# Some parameter documentations has been truncated, see
10961101
# {Lithic::Models::Transaction::Event} for more details.
10971102
#
@@ -1115,6 +1120,8 @@ class Event < Lithic::Internal::Type::BaseModel
11151120
#
11161121
# @param type [Symbol, Lithic::Models::Transaction::Event::Type] Type of transaction event
11171122
#
1123+
# @param account_type [Symbol, Lithic::Models::Transaction::Event::AccountType]
1124+
#
11181125
# @param network_specific_data [Lithic::Models::Transaction::Event::NetworkSpecificData]
11191126

11201127
# @see Lithic::Models::Transaction::Event#amounts
@@ -1633,6 +1640,17 @@ module Type
16331640
# @return [Array<Symbol>]
16341641
end
16351642

1643+
# @see Lithic::Models::Transaction::Event#account_type
1644+
module AccountType
1645+
extend Lithic::Internal::Type::Enum
1646+
1647+
CHECKING = :CHECKING
1648+
SAVINGS = :SAVINGS
1649+
1650+
# @!method self.values
1651+
# @return [Array<Symbol>]
1652+
end
1653+
16361654
# @see Lithic::Models::Transaction::Event#network_specific_data
16371655
class NetworkSpecificData < Lithic::Internal::Type::BaseModel
16381656
# @!attribute mastercard

rbi/lithic/models/transaction.rbi

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2087,6 +2087,20 @@ module Lithic
20872087
sig { returns(Lithic::Transaction::Event::Type::TaggedSymbol) }
20882088
attr_accessor :type
20892089

2090+
sig do
2091+
returns(
2092+
T.nilable(Lithic::Transaction::Event::AccountType::TaggedSymbol)
2093+
)
2094+
end
2095+
attr_reader :account_type
2096+
2097+
sig do
2098+
params(
2099+
account_type: Lithic::Transaction::Event::AccountType::OrSymbol
2100+
).void
2101+
end
2102+
attr_writer :account_type
2103+
20902104
sig do
20912105
returns(T.nilable(Lithic::Transaction::Event::NetworkSpecificData))
20922106
end
@@ -2116,6 +2130,7 @@ module Lithic
21162130
rule_results:
21172131
T::Array[Lithic::Transaction::Event::RuleResult::OrHash],
21182132
type: Lithic::Transaction::Event::Type::OrSymbol,
2133+
account_type: Lithic::Transaction::Event::AccountType::OrSymbol,
21192134
network_specific_data:
21202135
Lithic::Transaction::Event::NetworkSpecificData::OrHash
21212136
).returns(T.attached_class)
@@ -2145,6 +2160,7 @@ module Lithic
21452160
rule_results:,
21462161
# Type of transaction event
21472162
type:,
2163+
account_type: nil,
21482164
network_specific_data: nil
21492165
)
21502166
end
@@ -2166,6 +2182,8 @@ module Lithic
21662182
result: Lithic::Transaction::Event::Result::TaggedSymbol,
21672183
rule_results: T::Array[Lithic::Transaction::Event::RuleResult],
21682184
type: Lithic::Transaction::Event::Type::TaggedSymbol,
2185+
account_type:
2186+
Lithic::Transaction::Event::AccountType::TaggedSymbol,
21692187
network_specific_data:
21702188
Lithic::Transaction::Event::NetworkSpecificData
21712189
}
@@ -3612,6 +3630,35 @@ module Lithic
36123630
end
36133631
end
36143632

3633+
module AccountType
3634+
extend Lithic::Internal::Type::Enum
3635+
3636+
TaggedSymbol =
3637+
T.type_alias do
3638+
T.all(Symbol, Lithic::Transaction::Event::AccountType)
3639+
end
3640+
OrSymbol = T.type_alias { T.any(Symbol, String) }
3641+
3642+
CHECKING =
3643+
T.let(
3644+
:CHECKING,
3645+
Lithic::Transaction::Event::AccountType::TaggedSymbol
3646+
)
3647+
SAVINGS =
3648+
T.let(
3649+
:SAVINGS,
3650+
Lithic::Transaction::Event::AccountType::TaggedSymbol
3651+
)
3652+
3653+
sig do
3654+
override.returns(
3655+
T::Array[Lithic::Transaction::Event::AccountType::TaggedSymbol]
3656+
)
3657+
end
3658+
def self.values
3659+
end
3660+
end
3661+
36153662
class NetworkSpecificData < Lithic::Internal::Type::BaseModel
36163663
OrHash =
36173664
T.type_alias do

sig/lithic/models/transaction.rbs

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -876,6 +876,7 @@ module Lithic
876876
result: Lithic::Models::Transaction::Event::result,
877877
rule_results: ::Array[Lithic::Transaction::Event::RuleResult],
878878
type: Lithic::Models::Transaction::Event::type_,
879+
account_type: Lithic::Models::Transaction::Event::account_type,
879880
network_specific_data: Lithic::Transaction::Event::NetworkSpecificData
880881
}
881882

@@ -900,6 +901,12 @@ module Lithic
900901

901902
attr_accessor type: Lithic::Models::Transaction::Event::type_
902903

904+
attr_reader account_type: Lithic::Models::Transaction::Event::account_type?
905+
906+
def account_type=: (
907+
Lithic::Models::Transaction::Event::account_type
908+
) -> Lithic::Models::Transaction::Event::account_type
909+
903910
attr_reader network_specific_data: Lithic::Transaction::Event::NetworkSpecificData?
904911

905912
def network_specific_data=: (
@@ -917,6 +924,7 @@ module Lithic
917924
result: Lithic::Models::Transaction::Event::result,
918925
rule_results: ::Array[Lithic::Transaction::Event::RuleResult],
919926
type: Lithic::Models::Transaction::Event::type_,
927+
?account_type: Lithic::Models::Transaction::Event::account_type,
920928
?network_specific_data: Lithic::Transaction::Event::NetworkSpecificData
921929
) -> void
922930

@@ -931,6 +939,7 @@ module Lithic
931939
result: Lithic::Models::Transaction::Event::result,
932940
rule_results: ::Array[Lithic::Transaction::Event::RuleResult],
933941
type: Lithic::Models::Transaction::Event::type_,
942+
account_type: Lithic::Models::Transaction::Event::account_type,
934943
network_specific_data: Lithic::Transaction::Event::NetworkSpecificData
935944
}
936945

@@ -1504,6 +1513,17 @@ module Lithic
15041513
def self?.values: -> ::Array[Lithic::Models::Transaction::Event::type_]
15051514
end
15061515

1516+
type account_type = :CHECKING | :SAVINGS
1517+
1518+
module AccountType
1519+
extend Lithic::Internal::Type::Enum
1520+
1521+
CHECKING: :CHECKING
1522+
SAVINGS: :SAVINGS
1523+
1524+
def self?.values: -> ::Array[Lithic::Models::Transaction::Event::account_type]
1525+
end
1526+
15071527
type network_specific_data =
15081528
{
15091529
mastercard: Lithic::Transaction::Event::NetworkSpecificData::Mastercard,

0 commit comments

Comments
 (0)