Skip to content

Commit 43bad85

Browse files
release: 0.55.0 (#520)
* chore(internal): bump ruff version (#519) * feat(api): add event type 'card.reissued' (#521) * chore(internal): update pydantic compat helper function (#522) * feat(api): add methods to simulate enrollment review and enrollment document review (#523) * chore(internal): updates (#524) * feat(api)!: rename property 'financial_accounts.statement.AccountStanding.state' to 'period_state' (#525) # Migration If you were relying on `financial_accounts.statement.AccountStanding.state`, use `period_state` instead. Note: while it is technically a breaking change we do not expect that anyone was relying on this property. * release: 0.55.0 --------- Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
1 parent 8365c36 commit 43bad85

40 files changed

Lines changed: 1370 additions & 157 deletions

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "0.54.0"
2+
".": "0.55.0"
33
}

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
configured_endpoints: 127
1+
configured_endpoints: 129

CHANGELOG.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,26 @@
11
# Changelog
22

3+
## 0.55.0 (2024-08-09)
4+
5+
Full Changelog: [v0.54.0...v0.55.0](https://github.com/lithic-com/lithic-python/compare/v0.54.0...v0.55.0)
6+
7+
### ⚠ BREAKING CHANGES
8+
9+
* **api:** rename property 'financial_accounts.statement.AccountStanding.state' to 'period_state' ([#525](https://github.com/lithic-com/lithic-python/issues/525))
10+
11+
### Features
12+
13+
* **api:** add event type 'card.reissued' ([#521](https://github.com/lithic-com/lithic-python/issues/521)) ([87e7ab3](https://github.com/lithic-com/lithic-python/commit/87e7ab36383282e64d12422574c8f95929165324))
14+
* **api:** add methods to simulate enrollment review and enrollment document review ([#523](https://github.com/lithic-com/lithic-python/issues/523)) ([4e4515f](https://github.com/lithic-com/lithic-python/commit/4e4515f793f0d2004156ebbc86741716e01778ad))
15+
* **api:** rename property 'financial_accounts.statement.AccountStanding.state' to 'period_state' ([#525](https://github.com/lithic-com/lithic-python/issues/525)) ([909ecac](https://github.com/lithic-com/lithic-python/commit/909ecace7a7c00b2bcf9deb13a05d8e3642f9356))
16+
17+
18+
### Chores
19+
20+
* **internal:** bump ruff version ([#519](https://github.com/lithic-com/lithic-python/issues/519)) ([bba5c95](https://github.com/lithic-com/lithic-python/commit/bba5c95e67449658db54a1d8e79fb0063b5ff0a8))
21+
* **internal:** update pydantic compat helper function ([#522](https://github.com/lithic-com/lithic-python/issues/522)) ([99d987f](https://github.com/lithic-com/lithic-python/commit/99d987f2887abcd9005377f7491a4da228ad082f))
22+
* **internal:** updates ([#524](https://github.com/lithic-com/lithic-python/issues/524)) ([9645382](https://github.com/lithic-com/lithic-python/commit/964538237afaa3073af632e4363d059aaba29427))
23+
324
## 0.54.0 (2024-08-05)
425

526
Full Changelog: [v0.53.1...v0.54.0](https://github.com/lithic-com/lithic-python/compare/v0.53.1...v0.54.0)

api.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ from lithic.types import (
4545
AccountHolderCreateResponse,
4646
AccountHolderUpdateResponse,
4747
AccountHolderListDocumentsResponse,
48+
AccountHolderSimulateEnrollmentDocumentReviewResponse,
49+
AccountHolderSimulateEnrollmentReviewResponse,
4850
)
4951
```
5052

@@ -57,6 +59,8 @@ Methods:
5759
- <code title="get /account_holders/{account_holder_token}/documents">client.account_holders.<a href="./src/lithic/resources/account_holders.py">list_documents</a>(account_holder_token) -> <a href="./src/lithic/types/account_holder_list_documents_response.py">AccountHolderListDocumentsResponse</a></code>
5860
- <code title="post /account_holders/{account_holder_token}/resubmit">client.account_holders.<a href="./src/lithic/resources/account_holders.py">resubmit</a>(account_holder_token, \*\*<a href="src/lithic/types/account_holder_resubmit_params.py">params</a>) -> <a href="./src/lithic/types/account_holder.py">AccountHolder</a></code>
5961
- <code title="get /account_holders/{account_holder_token}/documents/{document_token}">client.account_holders.<a href="./src/lithic/resources/account_holders.py">retrieve_document</a>(document_token, \*, account_holder_token) -> <a href="./src/lithic/types/account_holder_document.py">AccountHolderDocument</a></code>
62+
- <code title="post /simulate/account_holders/enrollment_document_review">client.account_holders.<a href="./src/lithic/resources/account_holders.py">simulate_enrollment_document_review</a>(\*\*<a href="src/lithic/types/account_holder_simulate_enrollment_document_review_params.py">params</a>) -> <a href="./src/lithic/types/account_holder_simulate_enrollment_document_review_response.py">AccountHolderSimulateEnrollmentDocumentReviewResponse</a></code>
63+
- <code title="post /simulate/account_holders/enrollment_review">client.account_holders.<a href="./src/lithic/resources/account_holders.py">simulate_enrollment_review</a>(\*\*<a href="src/lithic/types/account_holder_simulate_enrollment_review_params.py">params</a>) -> <a href="./src/lithic/types/account_holder_simulate_enrollment_review_response.py">AccountHolderSimulateEnrollmentReviewResponse</a></code>
6064
- <code title="post /account_holders/{account_holder_token}/documents">client.account_holders.<a href="./src/lithic/resources/account_holders.py">upload_document</a>(account_holder_token, \*\*<a href="src/lithic/types/account_holder_upload_document_params.py">params</a>) -> <a href="./src/lithic/types/account_holder_document.py">AccountHolderDocument</a></code>
6165

6266
# AuthRules

pyproject.toml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "lithic"
3-
version = "0.54.0"
3+
version = "0.55.0"
44
description = "The official Python library for the lithic API"
55
dynamic = ["readme"]
66
license = "Apache-2.0"
@@ -77,8 +77,8 @@ format = { chain = [
7777
"check:ruff",
7878
"typecheck",
7979
]}
80-
"check:ruff" = "ruff ."
81-
"fix:ruff" = "ruff --fix ."
80+
"check:ruff" = "ruff check ."
81+
"fix:ruff" = "ruff check --fix ."
8282

8383
typecheck = { chain = [
8484
"typecheck:pyright",
@@ -163,6 +163,11 @@ reportOverlappingOverload = false
163163
line-length = 120
164164
output-format = "grouped"
165165
target-version = "py37"
166+
167+
[tool.ruff.format]
168+
docstring-code-format = true
169+
170+
[tool.ruff.lint]
166171
select = [
167172
# isort
168173
"I",
@@ -191,10 +196,6 @@ unfixable = [
191196
"T201",
192197
"T203",
193198
]
194-
ignore-init-module-imports = true
195-
196-
[tool.ruff.format]
197-
docstring-code-format = true
198199

199200
[tool.ruff.lint.flake8-tidy-imports.banned-api]
200201
"functools.lru_cache".msg = "This function does not retain type information for the wrapped function's arguments; The `lru_cache` function from `_utils` should be used instead"
@@ -206,7 +207,7 @@ combine-as-imports = true
206207
extra-standard-library = ["typing_extensions"]
207208
known-first-party = ["lithic", "tests"]
208209

209-
[tool.ruff.per-file-ignores]
210+
[tool.ruff.lint.per-file-ignores]
210211
"bin/**.py" = ["T201", "T203"]
211212
"scripts/**.py" = ["T201", "T203"]
212213
"tests/**.py" = ["T201", "T203"]

requirements-dev.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ pytz==2023.3.post1
8080
# via dirty-equals
8181
respx==0.20.2
8282
rich==13.7.1
83-
ruff==0.1.9
83+
ruff==0.5.6
8484
setuptools==68.2.2
8585
# via nodeenv
8686
six==1.16.0

src/lithic/_base_client.py

Lines changed: 21 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -125,16 +125,14 @@ def __init__(
125125
self,
126126
*,
127127
url: URL,
128-
) -> None:
129-
...
128+
) -> None: ...
130129

131130
@overload
132131
def __init__(
133132
self,
134133
*,
135134
params: Query,
136-
) -> None:
137-
...
135+
) -> None: ...
138136

139137
def __init__(
140138
self,
@@ -167,8 +165,7 @@ def has_next_page(self) -> bool:
167165
return False
168166
return self.next_page_info() is not None
169167

170-
def next_page_info(self) -> Optional[PageInfo]:
171-
...
168+
def next_page_info(self) -> Optional[PageInfo]: ...
172169

173170
def _get_page_items(self) -> Iterable[_T]: # type: ignore[empty-body]
174171
...
@@ -904,8 +901,7 @@ def request(
904901
*,
905902
stream: Literal[True],
906903
stream_cls: Type[_StreamT],
907-
) -> _StreamT:
908-
...
904+
) -> _StreamT: ...
909905

910906
@overload
911907
def request(
@@ -915,8 +911,7 @@ def request(
915911
remaining_retries: Optional[int] = None,
916912
*,
917913
stream: Literal[False] = False,
918-
) -> ResponseT:
919-
...
914+
) -> ResponseT: ...
920915

921916
@overload
922917
def request(
@@ -927,8 +922,7 @@ def request(
927922
*,
928923
stream: bool = False,
929924
stream_cls: Type[_StreamT] | None = None,
930-
) -> ResponseT | _StreamT:
931-
...
925+
) -> ResponseT | _StreamT: ...
932926

933927
def request(
934928
self,
@@ -1171,8 +1165,7 @@ def get(
11711165
cast_to: Type[ResponseT],
11721166
options: RequestOptions = {},
11731167
stream: Literal[False] = False,
1174-
) -> ResponseT:
1175-
...
1168+
) -> ResponseT: ...
11761169

11771170
@overload
11781171
def get(
@@ -1183,8 +1176,7 @@ def get(
11831176
options: RequestOptions = {},
11841177
stream: Literal[True],
11851178
stream_cls: type[_StreamT],
1186-
) -> _StreamT:
1187-
...
1179+
) -> _StreamT: ...
11881180

11891181
@overload
11901182
def get(
@@ -1195,8 +1187,7 @@ def get(
11951187
options: RequestOptions = {},
11961188
stream: bool,
11971189
stream_cls: type[_StreamT] | None = None,
1198-
) -> ResponseT | _StreamT:
1199-
...
1190+
) -> ResponseT | _StreamT: ...
12001191

12011192
def get(
12021193
self,
@@ -1222,8 +1213,7 @@ def post(
12221213
options: RequestOptions = {},
12231214
files: RequestFiles | None = None,
12241215
stream: Literal[False] = False,
1225-
) -> ResponseT:
1226-
...
1216+
) -> ResponseT: ...
12271217

12281218
@overload
12291219
def post(
@@ -1236,8 +1226,7 @@ def post(
12361226
files: RequestFiles | None = None,
12371227
stream: Literal[True],
12381228
stream_cls: type[_StreamT],
1239-
) -> _StreamT:
1240-
...
1229+
) -> _StreamT: ...
12411230

12421231
@overload
12431232
def post(
@@ -1250,8 +1239,7 @@ def post(
12501239
files: RequestFiles | None = None,
12511240
stream: bool,
12521241
stream_cls: type[_StreamT] | None = None,
1253-
) -> ResponseT | _StreamT:
1254-
...
1242+
) -> ResponseT | _StreamT: ...
12551243

12561244
def post(
12571245
self,
@@ -1484,8 +1472,7 @@ async def request(
14841472
*,
14851473
stream: Literal[False] = False,
14861474
remaining_retries: Optional[int] = None,
1487-
) -> ResponseT:
1488-
...
1475+
) -> ResponseT: ...
14891476

14901477
@overload
14911478
async def request(
@@ -1496,8 +1483,7 @@ async def request(
14961483
stream: Literal[True],
14971484
stream_cls: type[_AsyncStreamT],
14981485
remaining_retries: Optional[int] = None,
1499-
) -> _AsyncStreamT:
1500-
...
1486+
) -> _AsyncStreamT: ...
15011487

15021488
@overload
15031489
async def request(
@@ -1508,8 +1494,7 @@ async def request(
15081494
stream: bool,
15091495
stream_cls: type[_AsyncStreamT] | None = None,
15101496
remaining_retries: Optional[int] = None,
1511-
) -> ResponseT | _AsyncStreamT:
1512-
...
1497+
) -> ResponseT | _AsyncStreamT: ...
15131498

15141499
async def request(
15151500
self,
@@ -1738,8 +1723,7 @@ async def get(
17381723
cast_to: Type[ResponseT],
17391724
options: RequestOptions = {},
17401725
stream: Literal[False] = False,
1741-
) -> ResponseT:
1742-
...
1726+
) -> ResponseT: ...
17431727

17441728
@overload
17451729
async def get(
@@ -1750,8 +1734,7 @@ async def get(
17501734
options: RequestOptions = {},
17511735
stream: Literal[True],
17521736
stream_cls: type[_AsyncStreamT],
1753-
) -> _AsyncStreamT:
1754-
...
1737+
) -> _AsyncStreamT: ...
17551738

17561739
@overload
17571740
async def get(
@@ -1762,8 +1745,7 @@ async def get(
17621745
options: RequestOptions = {},
17631746
stream: bool,
17641747
stream_cls: type[_AsyncStreamT] | None = None,
1765-
) -> ResponseT | _AsyncStreamT:
1766-
...
1748+
) -> ResponseT | _AsyncStreamT: ...
17671749

17681750
async def get(
17691751
self,
@@ -1787,8 +1769,7 @@ async def post(
17871769
files: RequestFiles | None = None,
17881770
options: RequestOptions = {},
17891771
stream: Literal[False] = False,
1790-
) -> ResponseT:
1791-
...
1772+
) -> ResponseT: ...
17921773

17931774
@overload
17941775
async def post(
@@ -1801,8 +1782,7 @@ async def post(
18011782
options: RequestOptions = {},
18021783
stream: Literal[True],
18031784
stream_cls: type[_AsyncStreamT],
1804-
) -> _AsyncStreamT:
1805-
...
1785+
) -> _AsyncStreamT: ...
18061786

18071787
@overload
18081788
async def post(
@@ -1815,8 +1795,7 @@ async def post(
18151795
options: RequestOptions = {},
18161796
stream: bool,
18171797
stream_cls: type[_AsyncStreamT] | None = None,
1818-
) -> ResponseT | _AsyncStreamT:
1819-
...
1798+
) -> ResponseT | _AsyncStreamT: ...
18201799

18211800
async def post(
18221801
self,

0 commit comments

Comments
 (0)