From 85d2d9657022d3e7848477b329ba7f347efa7007 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 9 Jul 2026 22:18:47 +0000 Subject: [PATCH 1/2] docs(api): clarify simulate_clearing behavior in transactions --- .stats.yml | 4 +-- .../resources/transactions/transactions.py | 28 +++++++++++-------- .../transaction_simulate_clearing_params.py | 7 +++-- 3 files changed, 22 insertions(+), 17 deletions(-) diff --git a/.stats.yml b/.stats.yml index 8f07c5db..212b17fe 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 213 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic/lithic-9e397c65ffb81e2928b8ecf979769a79131ae6058b6fb373a5e930dc8a168732.yml -openapi_spec_hash: 93aea3855d2d1c390107d223762aa818 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic/lithic-1514911f233cb8bf0d6752c45bfa53a61b8f9b8ff215a4ea94a95f9505911000.yml +openapi_spec_hash: 9820a9c9a4ff778c627041eb53fd4ee5 config_hash: 5bb913c05ebeb301ec925b16e75bb251 diff --git a/src/lithic/resources/transactions/transactions.py b/src/lithic/resources/transactions/transactions.py index 979da846..65f3daca 100644 --- a/src/lithic/resources/transactions/transactions.py +++ b/src/lithic/resources/transactions/transactions.py @@ -470,9 +470,10 @@ def simulate_clearing( After this event, the transaction transitions from `PENDING` to `SETTLED` status. - If `amount` is not set, the full amount of the transaction will be cleared. - Transactions that have already cleared, either partially or fully, cannot be - cleared again using this endpoint. + If `amount` is not set, the full amount of the transaction will be cleared. This + endpoint may be called multiple times against the same authorization to simulate + a multiple-completion scenario, with each call creating a separate clearing + event. Args: token: The transaction token returned from the /v1/simulate/authorize response. @@ -483,9 +484,10 @@ def simulate_clearing( example, entering 100 in this field will result in a -100 amount in the transaction, if the original authorization is a credit authorization. - If `amount` is not set, the full amount of the transaction will be cleared. - Transactions that have already cleared, either partially or fully, cannot be - cleared again using this endpoint. + If `amount` is not set, the full amount of the transaction will be cleared. This + endpoint may be called multiple times against the same authorization to simulate + a multiple-completion scenario, with each call creating a separate clearing + event. extra_headers: Send extra headers @@ -1214,9 +1216,10 @@ async def simulate_clearing( After this event, the transaction transitions from `PENDING` to `SETTLED` status. - If `amount` is not set, the full amount of the transaction will be cleared. - Transactions that have already cleared, either partially or fully, cannot be - cleared again using this endpoint. + If `amount` is not set, the full amount of the transaction will be cleared. This + endpoint may be called multiple times against the same authorization to simulate + a multiple-completion scenario, with each call creating a separate clearing + event. Args: token: The transaction token returned from the /v1/simulate/authorize response. @@ -1227,9 +1230,10 @@ async def simulate_clearing( example, entering 100 in this field will result in a -100 amount in the transaction, if the original authorization is a credit authorization. - If `amount` is not set, the full amount of the transaction will be cleared. - Transactions that have already cleared, either partially or fully, cannot be - cleared again using this endpoint. + If `amount` is not set, the full amount of the transaction will be cleared. This + endpoint may be called multiple times against the same authorization to simulate + a multiple-completion scenario, with each call creating a separate clearing + event. extra_headers: Send extra headers diff --git a/src/lithic/types/transaction_simulate_clearing_params.py b/src/lithic/types/transaction_simulate_clearing_params.py index ab45523f..ed7e202c 100644 --- a/src/lithic/types/transaction_simulate_clearing_params.py +++ b/src/lithic/types/transaction_simulate_clearing_params.py @@ -20,7 +20,8 @@ class TransactionSimulateClearingParams(TypedDict, total=False): will result in a -100 amount in the transaction, if the original authorization is a credit authorization. - If `amount` is not set, the full amount of the transaction will be cleared. - Transactions that have already cleared, either partially or fully, cannot be - cleared again using this endpoint. + If `amount` is not set, the full amount of the transaction will be cleared. This + endpoint may be called multiple times against the same authorization to simulate + a multiple-completion scenario, with each call creating a separate clearing + event. """ From 92b6d7900cc3a1db45e9c3b93f249ba701dbe0b7 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 9 Jul 2026 22:19:32 +0000 Subject: [PATCH 2/2] release: 0.129.1 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 8 ++++++++ pyproject.toml | 2 +- src/lithic/_version.py | 2 +- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 65b6e7b4..e4d14a00 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.129.0" + ".": "0.129.1" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index fe1b518e..427f03ee 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.129.1 (2026-07-09) + +Full Changelog: [v0.129.0...v0.129.1](https://github.com/lithic-com/lithic-python/compare/v0.129.0...v0.129.1) + +### Documentation + +* **api:** clarify simulate_clearing behavior in transactions ([85d2d96](https://github.com/lithic-com/lithic-python/commit/85d2d9657022d3e7848477b329ba7f347efa7007)) + ## 0.129.0 (2026-06-29) Full Changelog: [v0.128.0...v0.129.0](https://github.com/lithic-com/lithic-python/compare/v0.128.0...v0.129.0) diff --git a/pyproject.toml b/pyproject.toml index 7b0df418..3802cbe5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "lithic" -version = "0.129.0" +version = "0.129.1" description = "The official Python library for the lithic API" dynamic = ["readme"] license = "Apache-2.0" diff --git a/src/lithic/_version.py b/src/lithic/_version.py index 25fca04f..fc916427 100644 --- a/src/lithic/_version.py +++ b/src/lithic/_version.py @@ -1,4 +1,4 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. __title__ = "lithic" -__version__ = "0.129.0" # x-release-please-version +__version__ = "0.129.1" # x-release-please-version