From 1157e38b8bfe8ec1a819eacda361957f640e8430 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 25 Jun 2026 20:27:01 +0000 Subject: [PATCH 1/3] docs(types): update cash_amount field description in CardAuthorization --- .stats.yml | 4 ++-- src/lithic/types/card_authorization.py | 11 ++++++----- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.stats.yml b/.stats.yml index 61b1e699..cb396d63 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-47e9f78d22682623e313f1689f5fa7e3420575ff285a14a2f4704c49ffb6b72e.yml -openapi_spec_hash: 4797fe46d942cb32e648a79015783d01 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic/lithic-d83e3ddb148bc0c81ff97bd31b82027d5b37efc110f5981103e7b9a2ae281c86.yml +openapi_spec_hash: f607b0571c4ed82a93a3df7bc9e9351b config_hash: 5bb913c05ebeb301ec925b16e75bb251 diff --git a/src/lithic/types/card_authorization.py b/src/lithic/types/card_authorization.py index 4b11c293..ed818f23 100644 --- a/src/lithic/types/card_authorization.py +++ b/src/lithic/types/card_authorization.py @@ -483,12 +483,13 @@ class CardAuthorization(BaseModel): cash_amount: int """ - The portion of the transaction requested as cash back by the cardholder, and - does not include any acquirer fees. The amount field includes the purchase - amount, the requested cash back amount, and any acquirer fees. + The amount of cash requested by the cardholder, in the cardholder billing + currency's smallest unit. For purchase-with-cashback transactions this is the + cashback portion only; for ATM transactions this is the full amount. This amount + includes all acquirer fees. - If no cash back was requested, the value of this field will be 0, and the field - will always be present. + If no cash was requested, the value of this field will be 0, and the field will + always be present. """ created: datetime From 56bc7d58831ca1ca9e15386407742765dd53a29e Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 29 Jun 2026 12:33:22 +0000 Subject: [PATCH 2/3] feat(api): add payment transaction support to case transactions --- .stats.yml | 4 +-- .../transaction_monitoring/cases/cases.py | 6 ++-- .../case_transaction.py | 36 ++++++++++++++++--- 3 files changed, 37 insertions(+), 9 deletions(-) diff --git a/.stats.yml b/.stats.yml index cb396d63..8f07c5db 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-d83e3ddb148bc0c81ff97bd31b82027d5b37efc110f5981103e7b9a2ae281c86.yml -openapi_spec_hash: f607b0571c4ed82a93a3df7bc9e9351b +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic/lithic-9e397c65ffb81e2928b8ecf979769a79131ae6058b6fb373a5e930dc8a168732.yml +openapi_spec_hash: 93aea3855d2d1c390107d223762aa818 config_hash: 5bb913c05ebeb301ec925b16e75bb251 diff --git a/src/lithic/resources/transaction_monitoring/cases/cases.py b/src/lithic/resources/transaction_monitoring/cases/cases.py index 3152b2e1..ce12642d 100644 --- a/src/lithic/resources/transaction_monitoring/cases/cases.py +++ b/src/lithic/resources/transaction_monitoring/cases/cases.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing import Dict, Union, Optional +from typing import Any, Dict, Union, Optional, cast from datetime import datetime import httpx @@ -417,7 +417,7 @@ def list_transactions( case_list_transactions_params.CaseListTransactionsParams, ), ), - model=CaseTransaction, + model=cast(Any, CaseTransaction), # Union types cannot be passed in as arguments in the type system ) def retrieve_cards( @@ -818,7 +818,7 @@ def list_transactions( case_list_transactions_params.CaseListTransactionsParams, ), ), - model=CaseTransaction, + model=cast(Any, CaseTransaction), # Union types cannot be passed in as arguments in the type system ) async def retrieve_cards( diff --git a/src/lithic/types/transaction_monitoring/case_transaction.py b/src/lithic/types/transaction_monitoring/case_transaction.py index 66f74aed..85d8daa7 100644 --- a/src/lithic/types/transaction_monitoring/case_transaction.py +++ b/src/lithic/types/transaction_monitoring/case_transaction.py @@ -1,17 +1,19 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import Union, Optional from datetime import datetime +from typing_extensions import Literal, TypeAlias from ..._models import BaseModel -__all__ = ["CaseTransaction"] +__all__ = ["CaseTransaction", "CardCaseTransaction", "PaymentCaseTransaction"] -class CaseTransaction(BaseModel): - """A single transaction associated with a case""" +class CardCaseTransaction(BaseModel): + """A card transaction associated with a case""" token: str - """Globally unique identifier for the transaction""" + """Globally unique identifier for the card transaction""" account_token: str """Token of the account the transaction belongs to""" @@ -22,5 +24,31 @@ class CaseTransaction(BaseModel): card_token: str """Token of the card the transaction was made on""" + category: Literal["CARD"] + + transaction_created_at: datetime + """Date and time at which the transaction was created""" + + +class PaymentCaseTransaction(BaseModel): + """A payment (ACH) transaction associated with a case""" + + token: str + """Globally unique identifier for the payment transaction""" + + added_at: datetime + """Date and time at which the transaction was added to the case""" + + category: Literal["PAYMENT"] + + financial_account_token: str + """Token of the financial account the payment belongs to""" + transaction_created_at: datetime """Date and time at which the transaction was created""" + + account_token: Optional[str] = None + """Token of the account the payment belongs to, if applicable""" + + +CaseTransaction: TypeAlias = Union[CardCaseTransaction, PaymentCaseTransaction] From de8ad11622663cf9c0a6c47081b92435c4b3bfb1 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 29 Jun 2026 12:34:25 +0000 Subject: [PATCH 3/3] release: 0.129.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 13 +++++++++++++ pyproject.toml | 2 +- src/lithic/_version.py | 2 +- 4 files changed, 16 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index f118d043..65b6e7b4 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.128.0" + ".": "0.129.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 73d76d74..fe1b518e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,18 @@ # Changelog +## 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) + +### Features + +* **api:** add payment transaction support to case transactions ([56bc7d5](https://github.com/lithic-com/lithic-python/commit/56bc7d58831ca1ca9e15386407742765dd53a29e)) + + +### Documentation + +* **types:** update cash_amount field description in CardAuthorization ([1157e38](https://github.com/lithic-com/lithic-python/commit/1157e38b8bfe8ec1a819eacda361957f640e8430)) + ## 0.128.0 (2026-06-23) Full Changelog: [v0.127.0...v0.128.0](https://github.com/lithic-com/lithic-python/compare/v0.127.0...v0.128.0) diff --git a/pyproject.toml b/pyproject.toml index 0d1491ac..7b0df418 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "lithic" -version = "0.128.0" +version = "0.129.0" 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 4fcbf72e..25fca04f 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.128.0" # x-release-please-version +__version__ = "0.129.0" # x-release-please-version