Skip to content

Commit 9dd0f14

Browse files
feat(api): add loan_tape_date field to statement line items
1 parent 3e9c63c commit 9dd0f14

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-34cfbf6ee4a6903838da11a879bbbfe71b84e7585b3c8c6957bf524deb378b41.yml
3-
openapi_spec_hash: f9e20ed9f3c5d78a185af18be0d7a199
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-fb9adae9eb94be3d04c66cc6c974cb0cc010d9d3a49e6fe23c32276e4317b568.yml
3+
openapi_spec_hash: 8da1862112b00c8a0c9e19b2e83c89d8
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
@@ -98,7 +98,13 @@ class Data < Lithic::Internal::Type::BaseModel
9898
# @return [String, nil]
9999
optional :event_subtype, String, nil?: true
100100

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)
101+
# @!attribute loan_tape_date
102+
# Date of the loan tape that generated this line item
103+
#
104+
# @return [Date, nil]
105+
optional :loan_tape_date, Date, nil?: true
106+
107+
# @!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, loan_tape_date: nil)
102108
# Some parameter documentations has been truncated, see
103109
# {Lithic::Models::FinancialAccounts::Statements::StatementLineItems::Data} for
104110
# more details.
@@ -128,6 +134,8 @@ class Data < Lithic::Internal::Type::BaseModel
128134
# @param descriptor [String]
129135
#
130136
# @param event_subtype [String, nil] Subtype of the event that generated the line items
137+
#
138+
# @param loan_tape_date [Date, nil] Date of the loan tape that generated this line item
131139

132140
# @see Lithic::Models::FinancialAccounts::Statements::StatementLineItems::Data#category
133141
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
@@ -126,6 +126,10 @@ module Lithic
126126
sig { returns(T.nilable(String)) }
127127
attr_accessor :event_subtype
128128

129+
# Date of the loan tape that generated this line item
130+
sig { returns(T.nilable(Date)) }
131+
attr_accessor :loan_tape_date
132+
129133
sig do
130134
params(
131135
token: String,
@@ -142,7 +146,8 @@ module Lithic
142146
financial_transaction_token: String,
143147
card_token: String,
144148
descriptor: String,
145-
event_subtype: T.nilable(String)
149+
event_subtype: T.nilable(String),
150+
loan_tape_date: T.nilable(Date)
146151
).returns(T.attached_class)
147152
end
148153
def self.new(
@@ -169,7 +174,9 @@ module Lithic
169174
card_token: nil,
170175
descriptor: nil,
171176
# Subtype of the event that generated the line items
172-
event_subtype: nil
177+
event_subtype: nil,
178+
# Date of the loan tape that generated this line item
179+
loan_tape_date: nil
173180
)
174181
end
175182

@@ -190,7 +197,8 @@ module Lithic
190197
financial_transaction_token: String,
191198
card_token: String,
192199
descriptor: String,
193-
event_subtype: T.nilable(String)
200+
event_subtype: T.nilable(String),
201+
loan_tape_date: T.nilable(Date)
194202
}
195203
)
196204
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
@@ -39,7 +39,8 @@ module Lithic
3939
financial_transaction_token: String,
4040
card_token: String,
4141
descriptor: String,
42-
event_subtype: String?
42+
event_subtype: String?,
43+
loan_tape_date: Date?
4344
}
4445

4546
class Data < Lithic::Internal::Type::BaseModel
@@ -73,6 +74,8 @@ module Lithic
7374

7475
attr_accessor event_subtype: String?
7576

77+
attr_accessor loan_tape_date: Date?
78+
7679
def initialize: (
7780
token: String,
7881
amount: Integer,
@@ -86,7 +89,8 @@ module Lithic
8689
financial_transaction_token: String,
8790
?card_token: String,
8891
?descriptor: String,
89-
?event_subtype: String?
92+
?event_subtype: String?,
93+
?loan_tape_date: Date?
9094
) -> void
9195

9296
def to_hash: -> {
@@ -102,7 +106,8 @@ module Lithic
102106
financial_transaction_token: String,
103107
card_token: String,
104108
descriptor: String,
105-
event_subtype: String?
109+
event_subtype: String?,
110+
loan_tape_date: Date?
106111
}
107112

108113
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
@@ -35,7 +35,8 @@ def test_list_required_params
3535
financial_transaction_token: String,
3636
card_token: String | nil,
3737
descriptor: String | nil,
38-
event_subtype: String | nil
38+
event_subtype: String | nil,
39+
loan_tape_date: Date | nil
3940
}
4041
end
4142
end

0 commit comments

Comments
 (0)