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.122.0"
".": "0.123.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: 190
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-d29b68bb85936070878d8badaa8a7c5991313285e70a990bc812c838eba85373.yml
openapi_spec_hash: 54b44da68df22eb0ea99f2bc564667a2
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-ab626b78e088455e814b80debc85d420839bc11f95416491fef6a0460f2d95ed.yml
openapi_spec_hash: f6ae1bbed371a5d45927cd63797a9908
config_hash: ac8326134e692f3f3bdec82396bbec80
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
# Changelog

## 0.123.0 (2026-04-24)

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

### Features

* **api:** add AMEX to network enum in settlement reports ([a429a2e](https://github.com/lithic-com/lithic-python/commit/a429a2e6c8915f857d692f567951b03b392791ba))


### Bug Fixes

* **types:** make substatus/funding optional, add exemption_type enum value ([e424839](https://github.com/lithic-com/lithic-python/commit/e424839de5a127d48086c9dd1ed5ec7146cdfd6a))


### Chores

* **internal:** more robust bootstrap script ([0df0d6c](https://github.com/lithic-com/lithic-python/commit/0df0d6cf2e2691b4979e5727dd88781229b7e831))

## 0.122.0 (2026-04-20)

Full Changelog: [v0.121.0...v0.122.0](https://github.com/lithic-com/lithic-python/compare/v0.121.0...v0.122.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.122.0"
version = "0.123.0"
description = "The official Python library for the lithic API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion scripts/bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -e

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

if [ -f "Brewfile" ] && [ "$(uname -s)" = "Darwin" ] && [ "$SKIP_BREW" != "1" ] && [ -t 0 ]; then
if [ -f "Brewfile" ] && [ "$(uname -s)" = "Darwin" ] && [ "${SKIP_BREW:-}" != "1" ] && [ -t 0 ]; then
brew bundle check >/dev/null 2>&1 || {
echo -n "==> Install Homebrew dependencies? (y/N): "
read -r response
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.122.0" # x-release-please-version
__version__ = "0.123.0" # x-release-please-version
42 changes: 23 additions & 19 deletions src/lithic/resources/accounts.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from __future__ import annotations

from typing import Union
from typing import Union, Optional
from datetime import datetime
from typing_extensions import Literal

Expand Down Expand Up @@ -85,15 +85,17 @@ def update(
lifetime_spend_limit: int | Omit = omit,
monthly_spend_limit: int | Omit = omit,
state: Literal["ACTIVE", "PAUSED", "CLOSED"] | Omit = omit,
substatus: Literal[
"FRAUD_IDENTIFIED",
"SUSPICIOUS_ACTIVITY",
"RISK_VIOLATION",
"END_USER_REQUEST",
"ISSUER_REQUEST",
"NOT_ACTIVE",
"INTERNAL_REVIEW",
"OTHER",
substatus: Optional[
Literal[
"FRAUD_IDENTIFIED",
"SUSPICIOUS_ACTIVITY",
"RISK_VIOLATION",
"END_USER_REQUEST",
"ISSUER_REQUEST",
"NOT_ACTIVE",
"INTERNAL_REVIEW",
"OTHER",
]
]
| Omit = omit,
verification_address: account_update_params.VerificationAddress | Omit = omit,
Expand Down Expand Up @@ -357,15 +359,17 @@ async def update(
lifetime_spend_limit: int | Omit = omit,
monthly_spend_limit: int | Omit = omit,
state: Literal["ACTIVE", "PAUSED", "CLOSED"] | Omit = omit,
substatus: Literal[
"FRAUD_IDENTIFIED",
"SUSPICIOUS_ACTIVITY",
"RISK_VIOLATION",
"END_USER_REQUEST",
"ISSUER_REQUEST",
"NOT_ACTIVE",
"INTERNAL_REVIEW",
"OTHER",
substatus: Optional[
Literal[
"FRAUD_IDENTIFIED",
"SUSPICIOUS_ACTIVITY",
"RISK_VIOLATION",
"END_USER_REQUEST",
"ISSUER_REQUEST",
"NOT_ACTIVE",
"INTERNAL_REVIEW",
"OTHER",
]
]
| Omit = omit,
verification_address: account_update_params.VerificationAddress | Omit = omit,
Expand Down
4 changes: 2 additions & 2 deletions src/lithic/resources/reports/settlement/network_totals.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def list(
end: Union[str, datetime] | Omit = omit,
ending_before: str | Omit = omit,
institution_id: str | Omit = omit,
network: Literal["VISA", "MASTERCARD", "MAESTRO", "INTERLINK"] | Omit = omit,
network: Literal["AMEX", "VISA", "MASTERCARD", "MAESTRO", "INTERLINK"] | Omit = omit,
page_size: int | Omit = omit,
report_date: Union[str, date] | Omit = omit,
report_date_begin: Union[str, date] | Omit = omit,
Expand Down Expand Up @@ -227,7 +227,7 @@ def list(
end: Union[str, datetime] | Omit = omit,
ending_before: str | Omit = omit,
institution_id: str | Omit = omit,
network: Literal["VISA", "MASTERCARD", "MAESTRO", "INTERLINK"] | Omit = omit,
network: Literal["AMEX", "VISA", "MASTERCARD", "MAESTRO", "INTERLINK"] | Omit = omit,
page_size: int | Omit = omit,
report_date: Union[str, date] | Omit = omit,
report_date_begin: Union[str, date] | Omit = omit,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ class AccountHolderSimulateEnrollmentReviewResponse(BaseModel):
exemption_type: Optional[Literal["AUTHORIZED_USER", "PREPAID_CARD_USER"]] = None
"""The type of KYC exemption for a KYC-Exempt Account Holder.
"None" if the account holder is not KYC-Exempt.
`null` if the account holder is not KYC-Exempt.
"""

external_id: Optional[str] = None
Expand Down
2 changes: 1 addition & 1 deletion src/lithic/types/account_holder_update_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ class KYBKYCPatchResponse(BaseModel):
exemption_type: Optional[Literal["AUTHORIZED_USER", "PREPAID_CARD_USER"]] = None
"""The type of KYC exemption for a KYC-Exempt Account Holder.

"None" if the account holder is not KYC-Exempt.
`null` if the account holder is not KYC-Exempt.
"""

external_id: Optional[str] = None
Expand Down
21 changes: 12 additions & 9 deletions src/lithic/types/account_update_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

from __future__ import annotations

from typing import Optional
from typing_extensions import Literal, TypedDict

__all__ = ["AccountUpdateParams", "VerificationAddress"]
Expand Down Expand Up @@ -39,15 +40,17 @@ class AccountUpdateParams(TypedDict, total=False):
state: Literal["ACTIVE", "PAUSED", "CLOSED"]
"""Account states."""

substatus: Literal[
"FRAUD_IDENTIFIED",
"SUSPICIOUS_ACTIVITY",
"RISK_VIOLATION",
"END_USER_REQUEST",
"ISSUER_REQUEST",
"NOT_ACTIVE",
"INTERNAL_REVIEW",
"OTHER",
substatus: Optional[
Literal[
"FRAUD_IDENTIFIED",
"SUSPICIOUS_ACTIVITY",
"RISK_VIOLATION",
"END_USER_REQUEST",
"ISSUER_REQUEST",
"NOT_ACTIVE",
"INTERNAL_REVIEW",
"OTHER",
]
]
"""Account state substatus values:

Expand Down
6 changes: 3 additions & 3 deletions src/lithic/types/non_pci_card.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@


class Funding(BaseModel):
"""Deprecated: Funding account for the card."""
"""Funding account for a card"""

token: str
"""A globally unique identifier for this FundingAccount."""
Expand Down Expand Up @@ -65,8 +65,8 @@ class NonPCICard(BaseModel):
created: datetime
"""An RFC 3339 timestamp for when the card was created. UTC time zone."""

funding: Funding
"""Deprecated: Funding account for the card."""
funding: Optional[Funding] = None
"""Funding account for a card"""

last_four: str
"""Last four digits of the card number."""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class NetworkTotalListParams(TypedDict, total=False):
institution_id: str
"""Institution ID to filter on."""

network: Literal["VISA", "MASTERCARD", "MAESTRO", "INTERLINK"]
network: Literal["AMEX", "VISA", "MASTERCARD", "MAESTRO", "INTERLINK"]
"""Network to filter on."""

page_size: int
Expand Down
2 changes: 1 addition & 1 deletion src/lithic/types/settlement_detail.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class SettlementDetail(BaseModel):
interchange_gross_amount: int
"""The total amount of interchange."""

network: Literal["INTERLINK", "MAESTRO", "MASTERCARD", "UNKNOWN", "VISA"]
network: Literal["AMEX", "INTERLINK", "MAESTRO", "MASTERCARD", "UNKNOWN", "VISA"]
"""Card network where the transaction took place."""

other_fees_details: OtherFeesDetails
Expand Down
2 changes: 1 addition & 1 deletion src/lithic/types/settlement_summary_details.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class SettlementSummaryDetails(BaseModel):
interchange_gross_amount: Optional[int] = None
"""The total amount of interchange."""

network: Optional[Literal["INTERLINK", "MAESTRO", "MASTERCARD", "UNKNOWN", "VISA"]] = None
network: Optional[Literal["AMEX", "INTERLINK", "MAESTRO", "MASTERCARD", "UNKNOWN", "VISA"]] = None
"""Card network where the transaction took place"""

other_fees_gross_amount: Optional[int] = None
Expand Down
4 changes: 2 additions & 2 deletions tests/api_resources/reports/settlement/test_network_totals.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def test_method_list_with_all_params(self, client: Lithic) -> None:
end=parse_datetime("2019-12-27T18:11:19.117Z"),
ending_before="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
institution_id="institution_id",
network="VISA",
network="AMEX",
page_size=1,
report_date=parse_date("2019-12-27"),
report_date_begin=parse_date("2019-12-27"),
Expand Down Expand Up @@ -155,7 +155,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncLithic) -> N
end=parse_datetime("2019-12-27T18:11:19.117Z"),
ending_before="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
institution_id="institution_id",
network="VISA",
network="AMEX",
page_size=1,
report_date=parse_date("2019-12-27"),
report_date_begin=parse_date("2019-12-27"),
Expand Down