Skip to content

Commit 5c6bcd7

Browse files
feat(api): Expose MIL interest schedules and loan tape configuration endpoints
1 parent 7dae789 commit 5c6bcd7

15 files changed

Lines changed: 1794 additions & 4 deletions

.stats.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 176
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-f85b60190db68921a3a877d0dd931670c27933ba1f5031fcdd27365e99adb5c9.yml
3-
openapi_spec_hash: 4828c2dc7543ce2a39774a9921c73c80
4-
config_hash: fbc424e01cca916048d63adcadaa8750
1+
configured_endpoints: 182
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-f99894d5b6eda608756c9e5e9868c81c4ce8c74c4d8958370cc3799766a13d65.yml
3+
openapi_spec_hash: 2f364e16b58e5a9759fc9f772cb33f3c
4+
config_hash: 2ee394874b7eb4cbe06f044b7376a6ba

api.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,34 @@ Methods:
420420
- <code title="get /v1/financial_accounts/{financial_account_token}/loan_tapes/{loan_tape_token}">client.financial_accounts.loan_tapes.<a href="./src/lithic/resources/financial_accounts/loan_tapes.py">retrieve</a>(loan_tape_token, \*, financial_account_token) -> <a href="./src/lithic/types/financial_accounts/loan_tape.py">LoanTape</a></code>
421421
- <code title="get /v1/financial_accounts/{financial_account_token}/loan_tapes">client.financial_accounts.loan_tapes.<a href="./src/lithic/resources/financial_accounts/loan_tapes.py">list</a>(financial_account_token, \*\*<a href="src/lithic/types/financial_accounts/loan_tape_list_params.py">params</a>) -> <a href="./src/lithic/types/financial_accounts/loan_tape.py">SyncCursorPage[LoanTape]</a></code>
422422

423+
## LoanTapeConfiguration
424+
425+
Types:
426+
427+
```python
428+
from lithic.types.financial_accounts import LoanTapeConfiguration, LoanTapeRebuildConfiguration
429+
```
430+
431+
Methods:
432+
433+
- <code title="get /v1/financial_accounts/{financial_account_token}/loan_tape_configuration">client.financial_accounts.loan_tape_configuration.<a href="./src/lithic/resources/financial_accounts/loan_tape_configuration.py">retrieve</a>(financial_account_token) -> <a href="./src/lithic/types/financial_accounts/loan_tape_configuration.py">LoanTapeConfiguration</a></code>
434+
435+
## InterestTierSchedule
436+
437+
Types:
438+
439+
```python
440+
from lithic.types.financial_accounts import CategoryTier, InterestTierSchedule
441+
```
442+
443+
Methods:
444+
445+
- <code title="post /v1/financial_accounts/{financial_account_token}/interest_tier_schedule">client.financial_accounts.interest_tier_schedule.<a href="./src/lithic/resources/financial_accounts/interest_tier_schedule.py">create</a>(financial_account_token, \*\*<a href="src/lithic/types/financial_accounts/interest_tier_schedule_create_params.py">params</a>) -> <a href="./src/lithic/types/financial_accounts/interest_tier_schedule.py">InterestTierSchedule</a></code>
446+
- <code title="get /v1/financial_accounts/{financial_account_token}/interest_tier_schedule/{effective_date}">client.financial_accounts.interest_tier_schedule.<a href="./src/lithic/resources/financial_accounts/interest_tier_schedule.py">retrieve</a>(effective_date, \*, financial_account_token) -> <a href="./src/lithic/types/financial_accounts/interest_tier_schedule.py">InterestTierSchedule</a></code>
447+
- <code title="put /v1/financial_accounts/{financial_account_token}/interest_tier_schedule/{effective_date}">client.financial_accounts.interest_tier_schedule.<a href="./src/lithic/resources/financial_accounts/interest_tier_schedule.py">update</a>(effective_date, \*, financial_account_token, \*\*<a href="src/lithic/types/financial_accounts/interest_tier_schedule_update_params.py">params</a>) -> <a href="./src/lithic/types/financial_accounts/interest_tier_schedule.py">InterestTierSchedule</a></code>
448+
- <code title="get /v1/financial_accounts/{financial_account_token}/interest_tier_schedule">client.financial_accounts.interest_tier_schedule.<a href="./src/lithic/resources/financial_accounts/interest_tier_schedule.py">list</a>(financial_account_token, \*\*<a href="src/lithic/types/financial_accounts/interest_tier_schedule_list_params.py">params</a>) -> <a href="./src/lithic/types/financial_accounts/interest_tier_schedule.py">SyncSinglePage[InterestTierSchedule]</a></code>
449+
- <code title="delete /v1/financial_accounts/{financial_account_token}/interest_tier_schedule/{effective_date}">client.financial_accounts.interest_tier_schedule.<a href="./src/lithic/resources/financial_accounts/interest_tier_schedule.py">delete</a>(effective_date, \*, financial_account_token) -> None</code>
450+
423451
# Transactions
424452

425453
Types:

src/lithic/resources/financial_accounts/__init__.py

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,22 @@
4848
FinancialTransactionsWithStreamingResponse,
4949
AsyncFinancialTransactionsWithStreamingResponse,
5050
)
51+
from .interest_tier_schedule import (
52+
InterestTierScheduleResource,
53+
AsyncInterestTierScheduleResource,
54+
InterestTierScheduleResourceWithRawResponse,
55+
AsyncInterestTierScheduleResourceWithRawResponse,
56+
InterestTierScheduleResourceWithStreamingResponse,
57+
AsyncInterestTierScheduleResourceWithStreamingResponse,
58+
)
59+
from .loan_tape_configuration import (
60+
LoanTapeConfigurationResource,
61+
AsyncLoanTapeConfigurationResource,
62+
LoanTapeConfigurationResourceWithRawResponse,
63+
AsyncLoanTapeConfigurationResourceWithRawResponse,
64+
LoanTapeConfigurationResourceWithStreamingResponse,
65+
AsyncLoanTapeConfigurationResourceWithStreamingResponse,
66+
)
5167

5268
__all__ = [
5369
"Balances",
@@ -80,6 +96,18 @@
8096
"AsyncLoanTapesWithRawResponse",
8197
"LoanTapesWithStreamingResponse",
8298
"AsyncLoanTapesWithStreamingResponse",
99+
"LoanTapeConfigurationResource",
100+
"AsyncLoanTapeConfigurationResource",
101+
"LoanTapeConfigurationResourceWithRawResponse",
102+
"AsyncLoanTapeConfigurationResourceWithRawResponse",
103+
"LoanTapeConfigurationResourceWithStreamingResponse",
104+
"AsyncLoanTapeConfigurationResourceWithStreamingResponse",
105+
"InterestTierScheduleResource",
106+
"AsyncInterestTierScheduleResource",
107+
"InterestTierScheduleResourceWithRawResponse",
108+
"AsyncInterestTierScheduleResourceWithRawResponse",
109+
"InterestTierScheduleResourceWithStreamingResponse",
110+
"AsyncInterestTierScheduleResourceWithStreamingResponse",
83111
"FinancialAccounts",
84112
"AsyncFinancialAccounts",
85113
"FinancialAccountsWithRawResponse",

src/lithic/resources/financial_accounts/financial_accounts.py

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,22 @@
6262
FinancialTransactionsWithStreamingResponse,
6363
AsyncFinancialTransactionsWithStreamingResponse,
6464
)
65+
from .interest_tier_schedule import (
66+
InterestTierScheduleResource,
67+
AsyncInterestTierScheduleResource,
68+
InterestTierScheduleResourceWithRawResponse,
69+
AsyncInterestTierScheduleResourceWithRawResponse,
70+
InterestTierScheduleResourceWithStreamingResponse,
71+
AsyncInterestTierScheduleResourceWithStreamingResponse,
72+
)
73+
from .loan_tape_configuration import (
74+
LoanTapeConfigurationResource,
75+
AsyncLoanTapeConfigurationResource,
76+
LoanTapeConfigurationResourceWithRawResponse,
77+
AsyncLoanTapeConfigurationResourceWithRawResponse,
78+
LoanTapeConfigurationResourceWithStreamingResponse,
79+
AsyncLoanTapeConfigurationResourceWithStreamingResponse,
80+
)
6581
from ...types.financial_account import FinancialAccount
6682

6783
__all__ = ["FinancialAccounts", "AsyncFinancialAccounts"]
@@ -88,6 +104,14 @@ def statements(self) -> Statements:
88104
def loan_tapes(self) -> LoanTapes:
89105
return LoanTapes(self._client)
90106

107+
@cached_property
108+
def loan_tape_configuration(self) -> LoanTapeConfigurationResource:
109+
return LoanTapeConfigurationResource(self._client)
110+
111+
@cached_property
112+
def interest_tier_schedule(self) -> InterestTierScheduleResource:
113+
return InterestTierScheduleResource(self._client)
114+
91115
@cached_property
92116
def with_raw_response(self) -> FinancialAccountsWithRawResponse:
93117
"""
@@ -396,6 +420,14 @@ def statements(self) -> AsyncStatements:
396420
def loan_tapes(self) -> AsyncLoanTapes:
397421
return AsyncLoanTapes(self._client)
398422

423+
@cached_property
424+
def loan_tape_configuration(self) -> AsyncLoanTapeConfigurationResource:
425+
return AsyncLoanTapeConfigurationResource(self._client)
426+
427+
@cached_property
428+
def interest_tier_schedule(self) -> AsyncInterestTierScheduleResource:
429+
return AsyncInterestTierScheduleResource(self._client)
430+
399431
@cached_property
400432
def with_raw_response(self) -> AsyncFinancialAccountsWithRawResponse:
401433
"""
@@ -728,6 +760,14 @@ def statements(self) -> StatementsWithRawResponse:
728760
def loan_tapes(self) -> LoanTapesWithRawResponse:
729761
return LoanTapesWithRawResponse(self._financial_accounts.loan_tapes)
730762

763+
@cached_property
764+
def loan_tape_configuration(self) -> LoanTapeConfigurationResourceWithRawResponse:
765+
return LoanTapeConfigurationResourceWithRawResponse(self._financial_accounts.loan_tape_configuration)
766+
767+
@cached_property
768+
def interest_tier_schedule(self) -> InterestTierScheduleResourceWithRawResponse:
769+
return InterestTierScheduleResourceWithRawResponse(self._financial_accounts.interest_tier_schedule)
770+
731771

732772
class AsyncFinancialAccountsWithRawResponse:
733773
def __init__(self, financial_accounts: AsyncFinancialAccounts) -> None:
@@ -772,6 +812,14 @@ def statements(self) -> AsyncStatementsWithRawResponse:
772812
def loan_tapes(self) -> AsyncLoanTapesWithRawResponse:
773813
return AsyncLoanTapesWithRawResponse(self._financial_accounts.loan_tapes)
774814

815+
@cached_property
816+
def loan_tape_configuration(self) -> AsyncLoanTapeConfigurationResourceWithRawResponse:
817+
return AsyncLoanTapeConfigurationResourceWithRawResponse(self._financial_accounts.loan_tape_configuration)
818+
819+
@cached_property
820+
def interest_tier_schedule(self) -> AsyncInterestTierScheduleResourceWithRawResponse:
821+
return AsyncInterestTierScheduleResourceWithRawResponse(self._financial_accounts.interest_tier_schedule)
822+
775823

776824
class FinancialAccountsWithStreamingResponse:
777825
def __init__(self, financial_accounts: FinancialAccounts) -> None:
@@ -816,6 +864,14 @@ def statements(self) -> StatementsWithStreamingResponse:
816864
def loan_tapes(self) -> LoanTapesWithStreamingResponse:
817865
return LoanTapesWithStreamingResponse(self._financial_accounts.loan_tapes)
818866

867+
@cached_property
868+
def loan_tape_configuration(self) -> LoanTapeConfigurationResourceWithStreamingResponse:
869+
return LoanTapeConfigurationResourceWithStreamingResponse(self._financial_accounts.loan_tape_configuration)
870+
871+
@cached_property
872+
def interest_tier_schedule(self) -> InterestTierScheduleResourceWithStreamingResponse:
873+
return InterestTierScheduleResourceWithStreamingResponse(self._financial_accounts.interest_tier_schedule)
874+
819875

820876
class AsyncFinancialAccountsWithStreamingResponse:
821877
def __init__(self, financial_accounts: AsyncFinancialAccounts) -> None:
@@ -859,3 +915,11 @@ def statements(self) -> AsyncStatementsWithStreamingResponse:
859915
@cached_property
860916
def loan_tapes(self) -> AsyncLoanTapesWithStreamingResponse:
861917
return AsyncLoanTapesWithStreamingResponse(self._financial_accounts.loan_tapes)
918+
919+
@cached_property
920+
def loan_tape_configuration(self) -> AsyncLoanTapeConfigurationResourceWithStreamingResponse:
921+
return AsyncLoanTapeConfigurationResourceWithStreamingResponse(self._financial_accounts.loan_tape_configuration)
922+
923+
@cached_property
924+
def interest_tier_schedule(self) -> AsyncInterestTierScheduleResourceWithStreamingResponse:
925+
return AsyncInterestTierScheduleResourceWithStreamingResponse(self._financial_accounts.interest_tier_schedule)

0 commit comments

Comments
 (0)