Skip to content
Open
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.128.0"
".": "0.129.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -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-9e397c65ffb81e2928b8ecf979769a79131ae6058b6fb373a5e930dc8a168732.yml
openapi_spec_hash: 93aea3855d2d1c390107d223762aa818
config_hash: 5bb913c05ebeb301ec925b16e75bb251
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
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.128.0"
version = "0.129.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.128.0" # x-release-please-version
__version__ = "0.129.0" # x-release-please-version
6 changes: 3 additions & 3 deletions src/lithic/resources/transaction_monitoring/cases/cases.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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(
Expand Down Expand Up @@ -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(
Expand Down
11 changes: 6 additions & 5 deletions src/lithic/types/card_authorization.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
36 changes: 32 additions & 4 deletions src/lithic/types/transaction_monitoring/case_transaction.py
Original file line number Diff line number Diff line change
@@ -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"""
Expand All @@ -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]