Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.107.0"
".": "0.108.0"
}
6 changes: 3 additions & 3 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 169
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-1a0e3a42c88b88140af0f9ad05ab0026fc87f0a500d6879c86b93dfa7f923810.yml
openapi_spec_hash: 2b4db6185c6e4ab3626461a448c97d4b
config_hash: 7a6a0c0bab3306093c6c171cd7407a45
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-b1839661d8405911184d5cb7230f16e626a616e5b744634bd7f0bb4e730bf899.yml
openapi_spec_hash: c1c2c5a5c2a4067a714b35f873e3846f
config_hash: 98214f2eab6804b5c0048331e32c08e3
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.108.0 (2025-10-08)

Full Changelog: [v0.107.0...v0.108.0](https://github.com/lithic-com/lithic-python/compare/v0.107.0...v0.108.0)

### Features

* **api:** adds support for Auto-Collections ([28a777b](https://github.com/lithic-com/lithic-python/commit/28a777be2f54096fee954a1bb7fe7c717d5f7de1))

## 0.107.0 (2025-09-30)

Full Changelog: [v0.106.0...v0.107.0](https://github.com/lithic-com/lithic-python/compare/v0.106.0...v0.107.0)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "lithic"
version = "0.107.0"
version = "0.108.0"
description = "The official Python library for the lithic API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion src/lithic/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

__title__ = "lithic"
__version__ = "0.107.0" # x-release-please-version
__version__ = "0.108.0" # x-release-please-version
10 changes: 10 additions & 0 deletions src/lithic/resources/account_activity.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ def list(
category: Literal[
"ACH",
"BALANCE_OR_FUNDING",
"FEE",
"REWARD",
"ADJUSTMENT",
"DERECOGNITION",
"DISPUTE",
"CARD",
"EXTERNAL_ACH",
"EXTERNAL_CHECK",
Expand Down Expand Up @@ -215,6 +220,11 @@ def list(
category: Literal[
"ACH",
"BALANCE_OR_FUNDING",
"FEE",
"REWARD",
"ADJUSTMENT",
"DERECOGNITION",
"DISPUTE",
"CARD",
"EXTERNAL_ACH",
"EXTERNAL_CHECK",
Expand Down
92 changes: 16 additions & 76 deletions src/lithic/resources/auth_rules/v2/v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,8 @@ def update(
self,
auth_rule_token: str,
*,
account_tokens: SequenceNotStr[str] | Omit = omit,
business_account_tokens: SequenceNotStr[str] | Omit = omit,
name: Optional[str] | Omit = omit,
state: Literal["INACTIVE"] | Omit = omit,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
Expand All @@ -321,46 +323,10 @@ def update(
entities.

Args:
name: Auth Rule Name

state: The desired state of the Auth Rule.

Note that only deactivating an Auth Rule through this endpoint is supported at
this time. If you need to (re-)activate an Auth Rule the /promote endpoint
should be used to promote a draft to the currently active version.

extra_headers: Send extra headers

extra_query: Add additional query parameters to the request

extra_body: Add additional JSON properties to the request

timeout: Override the client-level default timeout for this request, in seconds
"""
...

@overload
def update(
self,
auth_rule_token: str,
*,
name: Optional[str] | Omit = omit,
state: Literal["INACTIVE"] | Omit = omit,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = not_given,
) -> V2UpdateResponse:
"""
Updates a V2 Auth rule's properties
account_tokens: Account tokens to which the Auth Rule applies.

If `account_tokens`, `card_tokens`, `program_level`, or `excluded_card_tokens`
is provided, this will replace existing associations with the provided list of
entities.
business_account_tokens: Business Account tokens to which the Auth Rule applies.

Args:
name: Auth Rule Name

state: The desired state of the Auth Rule.
Expand Down Expand Up @@ -472,6 +438,8 @@ def update(
self,
auth_rule_token: str,
*,
account_tokens: SequenceNotStr[str] | Omit = omit,
business_account_tokens: SequenceNotStr[str] | Omit = omit,
name: Optional[str] | Omit = omit,
state: Literal["INACTIVE"] | Omit = omit,
card_tokens: SequenceNotStr[str] | Omit = omit,
Expand All @@ -490,6 +458,8 @@ def update(
f"/v2/auth_rules/{auth_rule_token}",
body=maybe_transform(
{
"account_tokens": account_tokens,
"business_account_tokens": business_account_tokens,
"name": name,
"state": state,
"card_tokens": card_tokens,
Expand Down Expand Up @@ -1282,6 +1252,8 @@ async def update(
self,
auth_rule_token: str,
*,
account_tokens: SequenceNotStr[str] | Omit = omit,
business_account_tokens: SequenceNotStr[str] | Omit = omit,
name: Optional[str] | Omit = omit,
state: Literal["INACTIVE"] | Omit = omit,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
Expand All @@ -1299,46 +1271,10 @@ async def update(
entities.

Args:
name: Auth Rule Name

state: The desired state of the Auth Rule.

Note that only deactivating an Auth Rule through this endpoint is supported at
this time. If you need to (re-)activate an Auth Rule the /promote endpoint
should be used to promote a draft to the currently active version.

extra_headers: Send extra headers

extra_query: Add additional query parameters to the request

extra_body: Add additional JSON properties to the request

timeout: Override the client-level default timeout for this request, in seconds
"""
...

@overload
async def update(
self,
auth_rule_token: str,
*,
name: Optional[str] | Omit = omit,
state: Literal["INACTIVE"] | Omit = omit,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = not_given,
) -> V2UpdateResponse:
"""
Updates a V2 Auth rule's properties
account_tokens: Account tokens to which the Auth Rule applies.

If `account_tokens`, `card_tokens`, `program_level`, or `excluded_card_tokens`
is provided, this will replace existing associations with the provided list of
entities.
business_account_tokens: Business Account tokens to which the Auth Rule applies.

Args:
name: Auth Rule Name

state: The desired state of the Auth Rule.
Expand Down Expand Up @@ -1450,6 +1386,8 @@ async def update(
self,
auth_rule_token: str,
*,
account_tokens: SequenceNotStr[str] | Omit = omit,
business_account_tokens: SequenceNotStr[str] | Omit = omit,
name: Optional[str] | Omit = omit,
state: Literal["INACTIVE"] | Omit = omit,
card_tokens: SequenceNotStr[str] | Omit = omit,
Expand All @@ -1468,6 +1406,8 @@ async def update(
f"/v2/auth_rules/{auth_rule_token}",
body=await async_maybe_transform(
{
"account_tokens": account_tokens,
"business_account_tokens": business_account_tokens,
"name": name,
"state": state,
"card_tokens": card_tokens,
Expand Down
54 changes: 46 additions & 8 deletions src/lithic/resources/book_transfers.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,22 @@ def create(
self,
*,
amount: int,
category: Literal["ADJUSTMENT", "BALANCE_OR_FUNDING", "DERECOGNITION", "DISPUTE", "FEE", "REWARD", "TRANSFER"],
category: Literal[
"ADJUSTMENT",
"BALANCE_OR_FUNDING",
"DERECOGNITION",
"DISPUTE",
"FEE",
"INTERNAL",
"REWARD",
"PROGRAM_FUNDING",
"TRANSFER",
],
from_financial_account_token: str,
subtype: str,
to_financial_account_token: str,
type: Literal[
"ATM_BALANCE_INQUIRY",
"ATM_WITHDRAWAL",
"ATM_DECLINE",
"INTERNATIONAL_ATM_WITHDRAWAL",
Expand Down Expand Up @@ -105,8 +116,6 @@ def create(
amount: Amount to be transferred in the currency's smallest unit (e.g., cents for USD).
This should always be a positive value.

category: Category of the book transfer

from_financial_account_token: Globally unique identifier for the financial account or card that will send the
funds. Accepted type dependent on the program's use case.

Expand Down Expand Up @@ -198,7 +207,17 @@ def list(
account_token: str | Omit = omit,
begin: Union[str, datetime] | Omit = omit,
business_account_token: str | Omit = omit,
category: Literal["BALANCE_OR_FUNDING", "FEE", "REWARD", "ADJUSTMENT", "DERECOGNITION", "DISPUTE", "INTERNAL"]
category: Literal[
"ADJUSTMENT",
"BALANCE_OR_FUNDING",
"DERECOGNITION",
"DISPUTE",
"FEE",
"INTERNAL",
"REWARD",
"PROGRAM_FUNDING",
"TRANSFER",
]
| Omit = omit,
end: Union[str, datetime] | Omit = omit,
ending_before: str | Omit = omit,
Expand Down Expand Up @@ -342,11 +361,22 @@ async def create(
self,
*,
amount: int,
category: Literal["ADJUSTMENT", "BALANCE_OR_FUNDING", "DERECOGNITION", "DISPUTE", "FEE", "REWARD", "TRANSFER"],
category: Literal[
"ADJUSTMENT",
"BALANCE_OR_FUNDING",
"DERECOGNITION",
"DISPUTE",
"FEE",
"INTERNAL",
"REWARD",
"PROGRAM_FUNDING",
"TRANSFER",
],
from_financial_account_token: str,
subtype: str,
to_financial_account_token: str,
type: Literal[
"ATM_BALANCE_INQUIRY",
"ATM_WITHDRAWAL",
"ATM_DECLINE",
"INTERNATIONAL_ATM_WITHDRAWAL",
Expand Down Expand Up @@ -401,8 +431,6 @@ async def create(
amount: Amount to be transferred in the currency's smallest unit (e.g., cents for USD).
This should always be a positive value.

category: Category of the book transfer

from_financial_account_token: Globally unique identifier for the financial account or card that will send the
funds. Accepted type dependent on the program's use case.

Expand Down Expand Up @@ -494,7 +522,17 @@ def list(
account_token: str | Omit = omit,
begin: Union[str, datetime] | Omit = omit,
business_account_token: str | Omit = omit,
category: Literal["BALANCE_OR_FUNDING", "FEE", "REWARD", "ADJUSTMENT", "DERECOGNITION", "DISPUTE", "INTERNAL"]
category: Literal[
"ADJUSTMENT",
"BALANCE_OR_FUNDING",
"DERECOGNITION",
"DISPUTE",
"FEE",
"INTERNAL",
"REWARD",
"PROGRAM_FUNDING",
"TRANSFER",
]
| Omit = omit,
end: Union[str, datetime] | Omit = omit,
ending_before: str | Omit = omit,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ def update(
self,
financial_account_token: str,
*,
auto_collection_configuration: credit_configuration_update_params.AutoCollectionConfiguration | Omit = omit,
credit_limit: int | Omit = omit,
credit_product_token: str | Omit = omit,
external_bank_account_token: str | Omit = omit,
Expand Down Expand Up @@ -111,6 +112,7 @@ def update(
f"/v1/financial_accounts/{financial_account_token}/credit_configuration",
body=maybe_transform(
{
"auto_collection_configuration": auto_collection_configuration,
"credit_limit": credit_limit,
"credit_product_token": credit_product_token,
"external_bank_account_token": external_bank_account_token,
Expand Down Expand Up @@ -184,6 +186,7 @@ async def update(
self,
financial_account_token: str,
*,
auto_collection_configuration: credit_configuration_update_params.AutoCollectionConfiguration | Omit = omit,
credit_limit: int | Omit = omit,
credit_product_token: str | Omit = omit,
external_bank_account_token: str | Omit = omit,
Expand Down Expand Up @@ -219,6 +222,7 @@ async def update(
f"/v1/financial_accounts/{financial_account_token}/credit_configuration",
body=await async_maybe_transform(
{
"auto_collection_configuration": auto_collection_configuration,
"credit_limit": credit_limit,
"credit_product_token": credit_product_token,
"external_bank_account_token": external_bank_account_token,
Expand Down
5 changes: 5 additions & 0 deletions src/lithic/types/account_activity_list_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ class AccountActivityListParams(TypedDict, total=False):
category: Literal[
"ACH",
"BALANCE_OR_FUNDING",
"FEE",
"REWARD",
"ADJUSTMENT",
"DERECOGNITION",
"DISPUTE",
"CARD",
"EXTERNAL_ACH",
"EXTERNAL_CHECK",
Expand Down
Loading