Skip to content

Commit b9b15ca

Browse files
feat(api): add CLOSED account state option and UNVERIFIED verification method
- You can now close Accounts via the API: https://docs.lithic.com/changelog - Add UNVERIFIED as a new Verification method option - Update CLOSED account state documentation to clarify manual setting capability
1 parent 3607c50 commit b9b15ca

File tree

5 files changed

+13
-11
lines changed

5 files changed

+13
-11
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 161
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-0c08d769e7a549e40ed9ab9b0298c687cc14e6c2fbe4fdd4544467906a05a613.yml
3-
openapi_spec_hash: 2ea548eacd1af68ec19e847250a65b7d
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-c178720e9b6fe1ff3917d4d96652b4c91a0e7f0795b6858256d250d8a203d3ac.yml
3+
openapi_spec_hash: 23a4716c6168e96f040ac8575582d075
44
config_hash: 227ad54062905d4ae964b24cef0505b0

src/lithic/resources/accounts.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def update(
8383
daily_spend_limit: int | NotGiven = NOT_GIVEN,
8484
lifetime_spend_limit: int | NotGiven = NOT_GIVEN,
8585
monthly_spend_limit: int | NotGiven = NOT_GIVEN,
86-
state: Literal["ACTIVE", "PAUSED"] | NotGiven = NOT_GIVEN,
86+
state: Literal["ACTIVE", "PAUSED", "CLOSED"] | NotGiven = NOT_GIVEN,
8787
verification_address: account_update_params.VerificationAddress | NotGiven = NOT_GIVEN,
8888
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
8989
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -310,7 +310,7 @@ async def update(
310310
daily_spend_limit: int | NotGiven = NOT_GIVEN,
311311
lifetime_spend_limit: int | NotGiven = NOT_GIVEN,
312312
monthly_spend_limit: int | NotGiven = NOT_GIVEN,
313-
state: Literal["ACTIVE", "PAUSED"] | NotGiven = NOT_GIVEN,
313+
state: Literal["ACTIVE", "PAUSED", "CLOSED"] | NotGiven = NOT_GIVEN,
314314
verification_address: account_update_params.VerificationAddress | NotGiven = NOT_GIVEN,
315315
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
316316
# The extra values given here take precedence over values defined on the client or passed to this method.

src/lithic/types/account.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,11 @@ class Account(BaseModel):
9494
- `PAUSED` - Account will not be able to transact or create new cards. It can be
9595
set back to `ACTIVE`.
9696
- `CLOSED` - Account will not be able to transact or create new cards. `CLOSED`
97-
accounts are also unable to be transitioned to `ACTIVE` or `PAUSED` states.
98-
`CLOSED` accounts result from failing to pass KYB/KYC or Lithic closing for
99-
risk/compliance reasons. Please contact
100-
[[email protected]](mailto:[email protected]) if you believe this was in
101-
error.
97+
accounts are unable to be transitioned to `ACTIVE` or `PAUSED` states.
98+
Accounts can be manually set to `CLOSED`, or this can be done by Lithic due to
99+
failure to pass KYB/KYC or for risk/compliance reasons. Please contact
100+
[[email protected]](mailto:[email protected]) if you believe this was done
101+
by mistake.
102102
"""
103103

104104
account_holder: Optional[AccountHolder] = None

src/lithic/types/account_update_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class AccountUpdateParams(TypedDict, total=False):
3333
$5,000.
3434
"""
3535

36-
state: Literal["ACTIVE", "PAUSED"]
36+
state: Literal["ACTIVE", "PAUSED", "CLOSED"]
3737
"""Account states."""
3838

3939
verification_address: VerificationAddress

src/lithic/types/verification_method.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,6 @@
44

55
__all__ = ["VerificationMethod"]
66

7-
VerificationMethod: TypeAlias = Literal["MANUAL", "MICRO_DEPOSIT", "PLAID", "PRENOTE", "EXTERNALLY_VERIFIED"]
7+
VerificationMethod: TypeAlias = Literal[
8+
"MANUAL", "MICRO_DEPOSIT", "PLAID", "PRENOTE", "EXTERNALLY_VERIFIED", "UNVERIFIED"
9+
]

0 commit comments

Comments
 (0)