Skip to content
Merged
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.91.2"
".": "0.92.0"
}
6 changes: 3 additions & 3 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 156
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-8469aee20249c9dcb2b57796df62fd39d2c14668a6853476b6c1bab9c80a4e4c.yml
openapi_spec_hash: 3339f9fd912f2eb8ba5efc3c73f5d030
config_hash: 620bf845d9ccfaf0ad7e2452463bb227
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-9580d7ed7ee603cba3dd0db9bb1ee48094dfe2a90c1ca13a7f10ab8deaa73e2c.yml
openapi_spec_hash: 6f707e3df699aec761f20db720fb3a32
config_hash: dc221a354631e360e545ebb7435ecd35
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.92.0 (2025-05-12)

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

### Features

* **api:** manual updates ([16d9634](https://github.com/lithic-com/lithic-python/commit/16d9634aac35c3039a01800ae548e6d3a5939b94))

## 0.91.2 (2025-05-09)

Full Changelog: [v0.91.1...v0.91.2](https://github.com/lithic-com/lithic-python/compare/v0.91.1...v0.91.2)
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.91.2"
version = "0.92.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.91.2" # x-release-please-version
__version__ = "0.92.0" # x-release-please-version
8 changes: 8 additions & 0 deletions src/lithic/resources/cards/cards.py
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,7 @@ def list(
begin: Union[str, datetime] | NotGiven = NOT_GIVEN,
end: Union[str, datetime] | NotGiven = NOT_GIVEN,
ending_before: str | NotGiven = NOT_GIVEN,
memo: str | NotGiven = NOT_GIVEN,
page_size: int | NotGiven = NOT_GIVEN,
starting_after: str | NotGiven = NOT_GIVEN,
state: Literal["CLOSED", "OPEN", "PAUSED", "PENDING_ACTIVATION", "PENDING_FULFILLMENT"] | NotGiven = NOT_GIVEN,
Expand All @@ -441,6 +442,8 @@ def list(
ending_before: A cursor representing an item's token before which a page of results should end.
Used to retrieve the previous page of results before this item.

memo: Returns cards containing the specified partial or full memo text.

page_size: Page size (for pagination).

starting_after: A cursor representing an item's token after which a page of results should
Expand Down Expand Up @@ -470,6 +473,7 @@ def list(
"begin": begin,
"end": end,
"ending_before": ending_before,
"memo": memo,
"page_size": page_size,
"starting_after": starting_after,
"state": state,
Expand Down Expand Up @@ -1403,6 +1407,7 @@ def list(
begin: Union[str, datetime] | NotGiven = NOT_GIVEN,
end: Union[str, datetime] | NotGiven = NOT_GIVEN,
ending_before: str | NotGiven = NOT_GIVEN,
memo: str | NotGiven = NOT_GIVEN,
page_size: int | NotGiven = NOT_GIVEN,
starting_after: str | NotGiven = NOT_GIVEN,
state: Literal["CLOSED", "OPEN", "PAUSED", "PENDING_ACTIVATION", "PENDING_FULFILLMENT"] | NotGiven = NOT_GIVEN,
Expand All @@ -1428,6 +1433,8 @@ def list(
ending_before: A cursor representing an item's token before which a page of results should end.
Used to retrieve the previous page of results before this item.

memo: Returns cards containing the specified partial or full memo text.

page_size: Page size (for pagination).

starting_after: A cursor representing an item's token after which a page of results should
Expand Down Expand Up @@ -1457,6 +1464,7 @@ def list(
"begin": begin,
"end": end,
"ending_before": ending_before,
"memo": memo,
"page_size": page_size,
"starting_after": starting_after,
"state": state,
Expand Down
2 changes: 2 additions & 0 deletions src/lithic/resources/events/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ def list(
"external_payment.updated",
"financial_account.created",
"financial_account.updated",
"funding_event.created",
"loan_tape.created",
"loan_tape.updated",
"management_operation.created",
Expand Down Expand Up @@ -397,6 +398,7 @@ def list(
"external_payment.updated",
"financial_account.created",
"financial_account.updated",
"funding_event.created",
"loan_tape.created",
"loan_tape.updated",
"management_operation.created",
Expand Down
6 changes: 6 additions & 0 deletions src/lithic/resources/events/subscriptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ def create(
"external_payment.updated",
"financial_account.created",
"financial_account.updated",
"funding_event.created",
"loan_tape.created",
"loan_tape.updated",
"management_operation.created",
Expand Down Expand Up @@ -219,6 +220,7 @@ def update(
"external_payment.updated",
"financial_account.created",
"financial_account.updated",
"funding_event.created",
"loan_tape.created",
"loan_tape.updated",
"management_operation.created",
Expand Down Expand Up @@ -659,6 +661,7 @@ def send_simulated_example(
"external_payment.updated",
"financial_account.created",
"financial_account.updated",
"funding_event.created",
"loan_tape.created",
"loan_tape.updated",
"management_operation.created",
Expand Down Expand Up @@ -769,6 +772,7 @@ async def create(
"external_payment.updated",
"financial_account.created",
"financial_account.updated",
"funding_event.created",
"loan_tape.created",
"loan_tape.updated",
"management_operation.created",
Expand Down Expand Up @@ -903,6 +907,7 @@ async def update(
"external_payment.updated",
"financial_account.created",
"financial_account.updated",
"funding_event.created",
"loan_tape.created",
"loan_tape.updated",
"management_operation.created",
Expand Down Expand Up @@ -1343,6 +1348,7 @@ async def send_simulated_example(
"external_payment.updated",
"financial_account.created",
"financial_account.updated",
"funding_event.created",
"loan_tape.created",
"loan_tape.updated",
"management_operation.created",
Expand Down
3 changes: 3 additions & 0 deletions src/lithic/types/card_list_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ class CardListParams(TypedDict, total=False):
Used to retrieve the previous page of results before this item.
"""

memo: str
"""Returns cards containing the specified partial or full memo text."""

page_size: int
"""Page size (for pagination)."""

Expand Down
1 change: 1 addition & 0 deletions src/lithic/types/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ class Event(BaseModel):
"external_payment.updated",
"financial_account.created",
"financial_account.updated",
"funding_event.created",
"loan_tape.created",
"loan_tape.updated",
"management_operation.created",
Expand Down
1 change: 1 addition & 0 deletions src/lithic/types/event_list_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ class EventListParams(TypedDict, total=False):
"external_payment.updated",
"financial_account.created",
"financial_account.updated",
"funding_event.created",
"loan_tape.created",
"loan_tape.updated",
"management_operation.created",
Expand Down
1 change: 1 addition & 0 deletions src/lithic/types/event_subscription.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ class EventSubscription(BaseModel):
"external_payment.updated",
"financial_account.created",
"financial_account.updated",
"funding_event.created",
"loan_tape.created",
"loan_tape.updated",
"management_operation.created",
Expand Down
1 change: 1 addition & 0 deletions src/lithic/types/events/subscription_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ class SubscriptionCreateParams(TypedDict, total=False):
"external_payment.updated",
"financial_account.created",
"financial_account.updated",
"funding_event.created",
"loan_tape.created",
"loan_tape.updated",
"management_operation.created",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ class SubscriptionSendSimulatedExampleParams(TypedDict, total=False):
"external_payment.updated",
"financial_account.created",
"financial_account.updated",
"funding_event.created",
"loan_tape.created",
"loan_tape.updated",
"management_operation.created",
Expand Down
1 change: 1 addition & 0 deletions src/lithic/types/events/subscription_update_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ class SubscriptionUpdateParams(TypedDict, total=False):
"external_payment.updated",
"financial_account.created",
"financial_account.updated",
"funding_event.created",
"loan_tape.created",
"loan_tape.updated",
"management_operation.created",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ class Data(BaseModel):
"MANAGEMENT_FEE",
"MANAGEMENT_REWARD",
"MANAGEMENT_DISBURSEMENT",
"PROGRAM_FUNDING",
]

created: datetime
Expand Down
6 changes: 6 additions & 0 deletions src/lithic/types/three_ds/authentication_retrieve_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,12 @@ class Transaction(BaseModel):
Maps to EMV 3DS field purchaseAmount.
"""

cardholder_amount: Optional[float] = None
"""Approximate amount of the purchase in minor units of cardholder currency.
Derived from `amount` using a daily conversion rate.
"""

currency: str
"""Currency of the purchase. Maps to EMV 3DS field purchaseCurrency."""

Expand Down
31 changes: 27 additions & 4 deletions src/lithic/types/transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"EventAmountsSettlement",
"EventNetworkInfo",
"EventNetworkInfoAcquirer",
"EventNetworkInfoAmex",
"EventNetworkInfoMastercard",
"EventNetworkInfoVisa",
"EventRuleResult",
Expand Down Expand Up @@ -157,6 +158,9 @@ class CardholderAuthentication(BaseModel):
(deprecated, use `authentication_result`)
"""

authentication_method: Optional[Literal["FRICTIONLESS", "CHALLENGE", "NONE"]] = None
"""Indicates the method used to authenticate the cardholder."""


class Merchant(BaseModel):
acceptor_id: str
Expand Down Expand Up @@ -369,6 +373,24 @@ class EventNetworkInfoAcquirer(BaseModel):
"""Identifier assigned by the acquirer."""


class EventNetworkInfoAmex(BaseModel):
original_transaction_id: Optional[str] = None
"""Identifier assigned by American Express.

Matches the `transaction_id` of a prior related event. May be populated in
incremental authorizations (authorization requests that augment a previously
authorized amount), authorization advices, financial authorizations, and
clearings.
"""

transaction_id: Optional[str] = None
"""
Identifier assigned by American Express to link original messages to subsequent
messages. Guaranteed by American Express to be unique for each original
authorization and financial authorization.
"""


class EventNetworkInfoMastercard(BaseModel):
banknet_reference_number: Optional[str] = None
"""Identifier assigned by Mastercard.
Expand Down Expand Up @@ -427,6 +449,8 @@ class EventNetworkInfoVisa(BaseModel):
class EventNetworkInfo(BaseModel):
acquirer: Optional[EventNetworkInfoAcquirer] = None

amex: Optional[EventNetworkInfoAmex] = None

mastercard: Optional[EventNetworkInfoMastercard] = None

visa: Optional[EventNetworkInfoVisa] = None
Expand Down Expand Up @@ -740,12 +764,11 @@ class Transaction(BaseModel):
merchant_currency: str
"""3-character alphabetic ISO 4217 code for the local currency of the transaction."""

network: Optional[Literal["INTERLINK", "MAESTRO", "MASTERCARD", "UNKNOWN", "VISA"]] = None
network: Optional[Literal["AMEX", "INTERLINK", "MAESTRO", "MASTERCARD", "UNKNOWN", "VISA"]] = None
"""Card network of the authorization.

Can be `INTERLINK`, `MAESTRO`, `MASTERCARD`, `VISA`, or `UNKNOWN`. Value is
`UNKNOWN` when Lithic cannot determine the network code from the upstream
provider.
Value is `UNKNOWN` when Lithic cannot determine the network code from the
upstream provider.
"""

network_risk_score: Optional[int] = None
Expand Down
2 changes: 2 additions & 0 deletions tests/api_resources/test_cards.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ def test_method_list_with_all_params(self, client: Lithic) -> None:
begin=parse_datetime("2019-12-27T18:11:19.117Z"),
end=parse_datetime("2019-12-27T18:11:19.117Z"),
ending_before="ending_before",
memo="memo",
page_size=1,
starting_after="starting_after",
state="CLOSED",
Expand Down Expand Up @@ -813,6 +814,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncLithic) -> N
begin=parse_datetime("2019-12-27T18:11:19.117Z"),
end=parse_datetime("2019-12-27T18:11:19.117Z"),
ending_before="ending_before",
memo="memo",
page_size=1,
starting_after="starting_after",
state="CLOSED",
Expand Down