Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
64068f8
feat(api): Add limit_cash_amount and limit_cash_count to VelocityLimi…
stainless-app[bot] Aug 3, 2026
168e194
feat(api): add blockchain_addresses field to financial account
stainless-app[bot] Aug 4, 2026
8980c52
docs(api): clarify CVV format in tokenizations and card
stainless-app[bot] Aug 5, 2026
9c1cfe4
feat(api): add stablecoin event types to payment/statement/financial_…
stainless-app[bot] Aug 7, 2026
7d67d35
feat(api): add PROGRAM scope to auth_rules and case entity types
stainless-app[bot] Aug 10, 2026
8c277b5
feat(api): Add STABLECOIN to approvals request and transfer type enums
stainless-app[bot] Aug 10, 2026
dcdf8b6
codegen metadata
stainless-app[bot] Aug 11, 2026
ed5c9b0
feat(api): add stablecoin method and attributes to payment
stainless-app[bot] Aug 12, 2026
ebb1b60
feat(api): add STABLECOIN method, make method_attributes optional in …
stainless-app[bot] Aug 13, 2026
1ce906c
feat(api): add claim_token parameter/field, WRITE_OFF_REVERSED enum t…
stainless-app[bot] Aug 14, 2026
f7318ae
chore(internal): allow the mock server port to be set with STAINLESS_…
stainless-app[bot] Aug 19, 2026
2ff9d3a
docs(api): update client_device_id and client_wallet_account_id docs …
stainless-app[bot] Aug 20, 2026
ae77597
feat(api): add STABLECOIN_INBOUND and STABLECOIN_OUTBOUND to Payment
stainless-app[bot] Aug 24, 2026
a69c537
feat: Remove stablecoin transfer type
stainless-app[bot] Aug 24, 2026
02bc887
fix(types): remove discriminator from event data types in dispute_v2
stainless-app[bot] Aug 25, 2026
58c5b7b
release: 0.131.0
stainless-app[bot] Aug 25, 2026
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 numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
{
".": "0.130.0"
".": "0.131.0"
}
8 changes: 4 additions & 4 deletions .stats.yml
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
configured_endpoints: 213
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic/lithic-59c09c7355b21b663e001d2ee1086ebd0a70d9b5433823282bca296eedff9eb0.yml
openapi_spec_hash: d9c3b932c810809abc6e973d662ad376
config_hash: 337a99d8cc30006358b7bc2531401669
configured_endpoints: 214
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic/lithic-70848844b69f7905307f9986b5630160aee26497cdbaf9257839a088ae7ca00b.yml
openapi_spec_hash: a5d37fbb60eba858c8bd2ebe982936e1
config_hash: f6d04d790aaddf639fc04b7f0092e7ec
33 changes: 33 additions & 0 deletions CHANGELOG.md
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,38 @@
# Changelog

## 0.131.0 (2026-08-25)

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

### Features

* **api:** add blockchain_addresses field to financial account ([168e194](https://github.com/lithic-com/lithic-python/commit/168e194dce255e6b907a65b3387dffec89ca0426))
* **api:** add claim_token parameter/field, WRITE_OFF_REVERSED enum to disputes_v2 ([1ce906c](https://github.com/lithic-com/lithic-python/commit/1ce906c05421ae00dfc09d6513552c1f9a130d68))
* **api:** Add limit_cash_amount and limit_cash_count to VelocityLimit template ([64068f8](https://github.com/lithic-com/lithic-python/commit/64068f89bd9400b4e684b8eb1fdf5bdede893a36))
* **api:** add PROGRAM scope to auth_rules and case entity types ([7d67d35](https://github.com/lithic-com/lithic-python/commit/7d67d35bafb84f3cb24fade78214478bcc3204f2))
* **api:** add stablecoin event types to payment/statement/financial_event ([9c1cfe4](https://github.com/lithic-com/lithic-python/commit/9c1cfe46e6538c2429653dd65bf72938544f1fe4))
* **api:** add stablecoin method and attributes to payment ([ed5c9b0](https://github.com/lithic-com/lithic-python/commit/ed5c9b0496b984876497c39a6110020979f93bfb))
* **api:** add STABLECOIN method, make method_attributes optional in payment ([ebb1b60](https://github.com/lithic-com/lithic-python/commit/ebb1b60c55251a27d0da338875be625a67cea4c2))
* **api:** Add STABLECOIN to approvals request and transfer type enums ([8c277b5](https://github.com/lithic-com/lithic-python/commit/8c277b59aefd35e571026c97177a50223fd0622d))
* **api:** add STABLECOIN_INBOUND and STABLECOIN_OUTBOUND to Payment ([ae77597](https://github.com/lithic-com/lithic-python/commit/ae7759730d8cbcadb159c7584ce41bd1259e6c8b))
* Remove stablecoin transfer type ([a69c537](https://github.com/lithic-com/lithic-python/commit/a69c5377a1e1f383aef0ee50a2380d326d174e0e))


### Bug Fixes

* **types:** remove discriminator from event data types in dispute_v2 ([02bc887](https://github.com/lithic-com/lithic-python/commit/02bc88780f9660c80e30bd7b8a486203487843fe))


### Chores

* **internal:** allow the mock server port to be set with STAINLESS_MOCK_PORT ([f7318ae](https://github.com/lithic-com/lithic-python/commit/f7318aea8fdc1d002a5188952d418832f2629d84))


### Documentation

* **api:** clarify CVV format in tokenizations and card ([8980c52](https://github.com/lithic-com/lithic-python/commit/8980c5219db6e83e4cc8e9d2445fbd223c24a728))
* **api:** update client_device_id and client_wallet_account_id docs in cards provision ([2ff9d3a](https://github.com/lithic-com/lithic-python/commit/2ff9d3a68766e807ed7507e8965e44d9f95bbb92))

## 0.130.0 (2026-07-30)

Full Changelog: [v0.129.0...v0.130.0](https://github.com/lithic-com/lithic-python/compare/v0.129.0...v0.130.0)
Expand Down
12 changes: 12 additions & 0 deletions api.md
Original file line numberDiff line numberDiff line change
Expand Up@@ -690,6 +690,18 @@ Methods:

- <code title="post /v1/external_bank_accounts/{external_bank_account_token}/micro_deposits">client.external_bank_accounts.micro_deposits.<a href="./src/lithic/resources/external_bank_accounts/micro_deposits.py">create</a>(external_bank_account_token, \*\*<a href="src/lithic/types/external_bank_accounts/micro_deposit_create_params.py">params</a>) -> <a href="./src/lithic/types/external_bank_accounts/micro_deposit_create_response.py">MicroDepositCreateResponse</a></code>

# BlockchainRecipients

Types:

```python
from lithic.types import BlockchainRecipient
```

Methods:

- <code title="post /v1/blockchain_recipients">client.blockchain_recipients.<a href="./src/lithic/resources/blockchain_recipients.py">create</a>(\*\*<a href="src/lithic/types/blockchain_recipient_create_params.py">params</a>) -> <a href="./src/lithic/types/blockchain_recipient.py">BlockchainRecipient</a></code>

# Payments

Types:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
[project]
name = "lithic"
version = "0.130.0"
version = "0.131.0"
description = "The official Python library for the lithic API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
11 changes: 9 additions & 2 deletions scripts/mock
Original file line numberDiff line numberDiff line change
Expand Up@@ -4,6 +4,11 @@ set -e

cd "$(dirname "$0")/.."

if [ "$1" == "--install" ]; then
npm exec --package=@stainless-api/prism-cli@5.15.0 -- prism --version
exit 0
fi

if [[ -n "$1" && "$1" != '--'* ]]; then
URL="$1"
shift
Expand All@@ -20,11 +25,13 @@ fi
echo "==> Starting mock server with URL ${URL}"

# Run prism mock on the given spec
MOCK_PORT="${STAINLESS_MOCK_PORT:-4010}"

if [ "$1" == "--daemon" ]; then
# Pre-install the package so the download doesn't eat into the startup timeout
npm exec --package=@stainless-api/prism-cli@5.15.0 -- prism --version

npm exec --package=@stainless-api/prism-cli@5.15.0 -- prism mock "$URL" &> .prism.log &
npm exec --package=@stainless-api/prism-cli@5.15.0 -- prism mock -p "$MOCK_PORT" "$URL" &> .prism.log &

# Wait for server to come online (max 30s)
echo -n "Waiting for server"
Expand All@@ -48,5 +55,5 @@ if [ "$1" == "--daemon" ]; then

echo
else
npm exec --package=@stainless-api/prism-cli@5.15.0 -- prism mock "$URL"
npm exec --package=@stainless-api/prism-cli@5.15.0 -- prism mock -p "$MOCK_PORT" "$URL"
fi
12 changes: 9 additions & 3 deletions scripts/test
Original file line numberDiff line numberDiff line change
Expand Up@@ -9,8 +9,10 @@ GREEN='\033[0;32m'
YELLOW='\033[0;33m'
NC='\033[0m' # No Color

MOCK_PORT="${STAINLESS_MOCK_PORT:-4010}"

function prism_is_running() {
curl --silent "http://localhost:4010" >/dev/null 2>&1
curl --silent "http://localhost:$MOCK_PORT" >/dev/null 2>&1
}

kill_server_on_port() {
Expand All@@ -27,7 +29,7 @@ function is_overriding_api_base_url() {

if ! is_overriding_api_base_url && ! prism_is_running ; then
# When we exit this script, make sure to kill the background mock server process
trap 'kill_server_on_port 4010' EXIT
trap 'kill_server_on_port "$MOCK_PORT"' EXIT

# Start the dev server
./scripts/mock --daemon
Expand All@@ -43,7 +45,7 @@ elif ! prism_is_running ; then
echo -e "To run the server, pass in the path or url of your OpenAPI"
echo -e "spec to the prism command:"
echo
echo -e " \$ ${YELLOW}npm exec --package=@stainless-api/prism-cli@5.15.0 -- prism mock path/to/your.openapi.yml${NC}"
echo -e " \$ ${YELLOW}npm exec --package=@stainless-api/prism-cli@5.15.0 -- prism mock -p $MOCK_PORT path/to/your.openapi.yml${NC}"
echo

exit 1
Expand All@@ -52,6 +54,10 @@ else
echo
fi

if [ -n "${STAINLESS_MOCK_PORT:-}" ] && ! is_overriding_api_base_url ; then
export TEST_API_BASE_URL="http://127.0.0.1:$MOCK_PORT"
fi

export DEFER_PYDANTIC_BUILD=false

echo "==> Running tests"
Expand Down
38 changes: 38 additions & 0 deletions src/lithic/_client.py
Original file line numberDiff line numberDiff line change
Expand Up@@ -70,6 +70,7 @@
financial_accounts,
card_authorizations,
responder_endpoints,
blockchain_recipients,
management_operations,
auth_stream_enrollment,
external_bank_accounts,
Expand DownExpand Up@@ -101,6 +102,7 @@
from .resources.card_authorizations import CardAuthorizations, AsyncCardAuthorizations
from .resources.responder_endpoints import ResponderEndpoints, AsyncResponderEndpoints
from .resources.auth_rules.auth_rules import AuthRules, AsyncAuthRules
from .resources.blockchain_recipients import BlockchainRecipients, AsyncBlockchainRecipients
from .resources.management_operations import ManagementOperations, AsyncManagementOperations
from .resources.auth_stream_enrollment import AuthStreamEnrollment, AsyncAuthStreamEnrollment
from .resources.tokenization_decisioning import TokenizationDecisioning, AsyncTokenizationDecisioning
Expand DownExpand Up@@ -336,6 +338,12 @@ def external_bank_accounts(self) -> ExternalBankAccounts:

return ExternalBankAccounts(self)

@cached_property
def blockchain_recipients(self) -> BlockchainRecipients:
from .resources.blockchain_recipients import BlockchainRecipients

return BlockchainRecipients(self)

@cached_property
def payments(self) -> Payments:
from .resources.payments import Payments
Expand DownExpand Up@@ -772,6 +780,12 @@ def external_bank_accounts(self) -> AsyncExternalBankAccounts:

return AsyncExternalBankAccounts(self)

@cached_property
def blockchain_recipients(self) -> AsyncBlockchainRecipients:
from .resources.blockchain_recipients import AsyncBlockchainRecipients

return AsyncBlockchainRecipients(self)

@cached_property
def payments(self) -> AsyncPayments:
from .resources.payments import AsyncPayments
Expand DownExpand Up@@ -1122,6 +1136,12 @@ def external_bank_accounts(self) -> external_bank_accounts.ExternalBankAccountsW

return ExternalBankAccountsWithRawResponse(self._client.external_bank_accounts)

@cached_property
def blockchain_recipients(self) -> blockchain_recipients.BlockchainRecipientsWithRawResponse:
from .resources.blockchain_recipients import BlockchainRecipientsWithRawResponse

return BlockchainRecipientsWithRawResponse(self._client.blockchain_recipients)

@cached_property
def payments(self) -> payments.PaymentsWithRawResponse:
from .resources.payments import PaymentsWithRawResponse
Expand DownExpand Up@@ -1331,6 +1351,12 @@ def external_bank_accounts(self) -> external_bank_accounts.AsyncExternalBankAcco

return AsyncExternalBankAccountsWithRawResponse(self._client.external_bank_accounts)

@cached_property
def blockchain_recipients(self) -> blockchain_recipients.AsyncBlockchainRecipientsWithRawResponse:
from .resources.blockchain_recipients import AsyncBlockchainRecipientsWithRawResponse

return AsyncBlockchainRecipientsWithRawResponse(self._client.blockchain_recipients)

@cached_property
def payments(self) -> payments.AsyncPaymentsWithRawResponse:
from .resources.payments import AsyncPaymentsWithRawResponse
Expand DownExpand Up@@ -1540,6 +1566,12 @@ def external_bank_accounts(self) -> external_bank_accounts.ExternalBankAccountsW

return ExternalBankAccountsWithStreamingResponse(self._client.external_bank_accounts)

@cached_property
def blockchain_recipients(self) -> blockchain_recipients.BlockchainRecipientsWithStreamingResponse:
from .resources.blockchain_recipients import BlockchainRecipientsWithStreamingResponse

return BlockchainRecipientsWithStreamingResponse(self._client.blockchain_recipients)

@cached_property
def payments(self) -> payments.PaymentsWithStreamingResponse:
from .resources.payments import PaymentsWithStreamingResponse
Expand DownExpand Up@@ -1749,6 +1781,12 @@ def external_bank_accounts(self) -> external_bank_accounts.AsyncExternalBankAcco

return AsyncExternalBankAccountsWithStreamingResponse(self._client.external_bank_accounts)

@cached_property
def blockchain_recipients(self) -> blockchain_recipients.AsyncBlockchainRecipientsWithStreamingResponse:
from .resources.blockchain_recipients import AsyncBlockchainRecipientsWithStreamingResponse

return AsyncBlockchainRecipientsWithStreamingResponse(self._client.blockchain_recipients)

@cached_property
def payments(self) -> payments.AsyncPaymentsWithStreamingResponse:
from .resources.payments import AsyncPaymentsWithStreamingResponse
Expand Down
2 changes: 1 addition & 1 deletion src/lithic/_version.py
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

__title__ = "lithic"
__version__ = "0.130.0" # x-release-please-version
__version__ = "0.131.0" # x-release-please-version
14 changes: 14 additions & 0 deletions src/lithic/resources/__init__.py
Original file line numberDiff line numberDiff line change
Expand Up@@ -225,6 +225,14 @@
ResponderEndpointsWithStreamingResponse,
AsyncResponderEndpointsWithStreamingResponse,
)
from .blockchain_recipients import (
BlockchainRecipients,
AsyncBlockchainRecipients,
BlockchainRecipientsWithRawResponse,
AsyncBlockchainRecipientsWithRawResponse,
BlockchainRecipientsWithStreamingResponse,
AsyncBlockchainRecipientsWithStreamingResponse,
)
from .management_operations import (
ManagementOperations,
AsyncManagementOperations,
Expand DownExpand Up@@ -375,6 +383,12 @@
"AsyncExternalBankAccountsWithRawResponse",
"ExternalBankAccountsWithStreamingResponse",
"AsyncExternalBankAccountsWithStreamingResponse",
"BlockchainRecipients",
"AsyncBlockchainRecipients",
"BlockchainRecipientsWithRawResponse",
"AsyncBlockchainRecipientsWithRawResponse",
"BlockchainRecipientsWithStreamingResponse",
"AsyncBlockchainRecipientsWithStreamingResponse",
"Payments",
"AsyncPayments",
"PaymentsWithRawResponse",
Expand Down
Loading