Skip to content

Commit 3e9c63c

Browse files
feat(api): Add event_subtype to statement line items
1 parent b977c80 commit 3e9c63c

5 files changed

Lines changed: 32 additions & 10 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: 189
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-1e902917b2eae41d549957e790eb6b137969e451efe673815647deba330fe05a.yml
3-
openapi_spec_hash: 82cab06ce65462e60316939db630460a
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-34cfbf6ee4a6903838da11a879bbbfe71b84e7585b3c8c6957bf524deb378b41.yml
3+
openapi_spec_hash: f9e20ed9f3c5d78a185af18be0d7a199
44
config_hash: 8799cfd589579f105ef8696a6d664c71

lib/lithic/models/financial_accounts/statements/statement_line_items.rb

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,13 @@ class Data < Lithic::Internal::Type::BaseModel
9292
# @return [String, nil]
9393
optional :descriptor, String
9494

95-
# @!method initialize(token:, amount:, category:, created:, currency:, effective_date:, event_type:, financial_account_token:, financial_transaction_event_token:, financial_transaction_token:, card_token: nil, descriptor: nil)
95+
# @!attribute event_subtype
96+
# Subtype of the event that generated the line items
97+
#
98+
# @return [String, nil]
99+
optional :event_subtype, String, nil?: true
100+
101+
# @!method initialize(token:, amount:, category:, created:, currency:, effective_date:, event_type:, financial_account_token:, financial_transaction_event_token:, financial_transaction_token:, card_token: nil, descriptor: nil, event_subtype: nil)
96102
# Some parameter documentations has been truncated, see
97103
# {Lithic::Models::FinancialAccounts::Statements::StatementLineItems::Data} for
98104
# more details.
@@ -120,6 +126,8 @@ class Data < Lithic::Internal::Type::BaseModel
120126
# @param card_token [String] Globally unique identifier for a card
121127
#
122128
# @param descriptor [String]
129+
#
130+
# @param event_subtype [String, nil] Subtype of the event that generated the line items
123131

124132
# @see Lithic::Models::FinancialAccounts::Statements::StatementLineItems::Data#category
125133
module Category

rbi/lithic/models/financial_accounts/statements/statement_line_items.rbi

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,10 @@ module Lithic
122122
sig { params(descriptor: String).void }
123123
attr_writer :descriptor
124124

125+
# Subtype of the event that generated the line items
126+
sig { returns(T.nilable(String)) }
127+
attr_accessor :event_subtype
128+
125129
sig do
126130
params(
127131
token: String,
@@ -137,7 +141,8 @@ module Lithic
137141
financial_transaction_event_token: String,
138142
financial_transaction_token: String,
139143
card_token: String,
140-
descriptor: String
144+
descriptor: String,
145+
event_subtype: T.nilable(String)
141146
).returns(T.attached_class)
142147
end
143148
def self.new(
@@ -162,7 +167,9 @@ module Lithic
162167
financial_transaction_token:,
163168
# Globally unique identifier for a card
164169
card_token: nil,
165-
descriptor: nil
170+
descriptor: nil,
171+
# Subtype of the event that generated the line items
172+
event_subtype: nil
166173
)
167174
end
168175

@@ -182,7 +189,8 @@ module Lithic
182189
financial_transaction_event_token: String,
183190
financial_transaction_token: String,
184191
card_token: String,
185-
descriptor: String
192+
descriptor: String,
193+
event_subtype: T.nilable(String)
186194
}
187195
)
188196
end

sig/lithic/models/financial_accounts/statements/statement_line_items.rbs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ module Lithic
3838
financial_transaction_event_token: String,
3939
financial_transaction_token: String,
4040
card_token: String,
41-
descriptor: String
41+
descriptor: String,
42+
event_subtype: String?
4243
}
4344

4445
class Data < Lithic::Internal::Type::BaseModel
@@ -70,6 +71,8 @@ module Lithic
7071

7172
def descriptor=: (String) -> String
7273

74+
attr_accessor event_subtype: String?
75+
7376
def initialize: (
7477
token: String,
7578
amount: Integer,
@@ -82,7 +85,8 @@ module Lithic
8285
financial_transaction_event_token: String,
8386
financial_transaction_token: String,
8487
?card_token: String,
85-
?descriptor: String
88+
?descriptor: String,
89+
?event_subtype: String?
8690
) -> void
8791

8892
def to_hash: -> {
@@ -97,7 +101,8 @@ module Lithic
97101
financial_transaction_event_token: String,
98102
financial_transaction_token: String,
99103
card_token: String,
100-
descriptor: String
104+
descriptor: String,
105+
event_subtype: String?
101106
}
102107

103108
type category =

test/lithic/resources/financial_accounts/statements/line_items_test.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ def test_list_required_params
3434
financial_transaction_event_token: String,
3535
financial_transaction_token: String,
3636
card_token: String | nil,
37-
descriptor: String | nil
37+
descriptor: String | nil,
38+
event_subtype: String | nil
3839
}
3940
end
4041
end

0 commit comments

Comments
 (0)