Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
15 commits
Select commit Hold shift + click to select a range
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.131.0"
".": "0.132.0"
}
8 changes: 4 additions & 4 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 215
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic/lithic-38a020a15ab14f79c7fea3290822406cf80a9d43d46ab3295632a9723f5e42cd.yml
openapi_spec_hash: 5a7357a17c5119bc91d8f5e42297fac3
config_hash: 27fa50e251754c8982e3dc615ef6da41
configured_endpoints: 220
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic/lithic-61a059277e4c1eb58cc145be1639732d3d0d79d969742baff98690faf96dc164.yml
openapi_spec_hash: cc69f6bb4c6d98be95100774de6aff3e
config_hash: f21cef3cf163623883f344efe9032e4f
21 changes: 21 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
# Changelog

## 0.132.0 (2026-09-18)

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

### Features

* [CARDS-5174] Add reiusse/renew 409 error ([60c6b8e](https://github.com/lithic-com/lithic-python/commit/60c6b8eefa05208966212c0cc205ef0019f115ac))
* [TRE-14464] Update /retry payments endpoint to accept method ([9ac7441](https://github.com/lithic-com/lithic-python/commit/9ac74418812660394107e068a012a373a9f81460))
* [TRE-14524] Add Open to buy API spec ([001bd06](https://github.com/lithic-com/lithic-python/commit/001bd06bbd7c7274e6a1c59f4adcb9e86959b74e))
* Add missing blockchain/stablecoin endpoints to the spec ([8f1b51c](https://github.com/lithic-com/lithic-python/commit/8f1b51c992cf317ee4353a3244e347f02a666b0f))
* **api:** add card.pin_updated webhook event ([14889db](https://github.com/lithic-com/lithic-python/commit/14889dbf638b7d1b85e4b3145d8b3914cc87619a))
* **api:** add EXTERNAL_STABLECOIN category and events to external_payments/account_activity ([945f5ae](https://github.com/lithic-com/lithic-python/commit/945f5aed2a5ddf72dac4319d65cc0c87c86ca172))
* **api:** add FEE/FEE_REVERSAL enum values to management_operations and financial events ([615daa4](https://github.com/lithic-com/lithic-python/commit/615daa4be69ee4aab3fb1bc992635b335077ad92))
* **api:** add installment_plans endpoints to financial_accounts ([065f732](https://github.com/lithic-com/lithic-python/commit/065f7323f26a10269c58eced8866f9f5fb4267e3))
* **api:** add OTHER enum value to auth_rules v2 type field ([3f0a148](https://github.com/lithic-com/lithic-python/commit/3f0a148adc95e092aa25c9e569bbda518bbe3f54))
* **api:** add psd2_context field and types to three_ds_authentication ([7da6f44](https://github.com/lithic-com/lithic-python/commit/7da6f4449fc8a5e018e8cc6483400a3383f3df4e))
* **api:** add STABLECOIN_REVIEWED event type to payments simulate_action ([dc065e4](https://github.com/lithic-com/lithic-python/commit/dc065e43f9c025156c5ca142a9a222b5e0305354))
* AUTH-3759: Add DECLINE_SCA_REQUIRED and SCA_REQUIRED enum entries ([445299d](https://github.com/lithic-com/lithic-python/commit/445299db5e0bbce6d2a5611a4cb752ac141dd77e))
* TRE-14349: add installment plan management operation event types ([3cdcf9f](https://github.com/lithic-com/lithic-python/commit/3cdcf9fec6517da95ac06beaf373bc9070a8704f))
* TRE-14429: Document the stablecoin payments endpoint ([c7b557e](https://github.com/lithic-com/lithic-python/commit/c7b557e0873ef183937d5c432f2a026e8fdd37c3))

## 0.131.0 (2026-08-31)

Full Changelog: [v0.130.0...v0.131.0](https://github.com/lithic-com/lithic-python/compare/v0.130.0...v0.131.0)
Expand Down
31 changes: 30 additions & 1 deletion api.md
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,18 @@ Methods:

- <code title="get /v1/financial_accounts/{financial_account_token}/balances">client.financial_accounts.balances.<a href="./src/lithic/resources/financial_accounts/balances.py">list</a>(financial_account_token, \*\*<a href="src/lithic/types/financial_accounts/balance_list_params.py">params</a>) -> <a href="./src/lithic/types/financial_account_balance.py">SyncSinglePage[FinancialAccountBalance]</a></code>

## OpenToBuy

Types:

```python
from lithic.types.financial_accounts import OpenToBuy, OpenToBuySummary
```

Methods:

- <code title="get /v1/financial_accounts/{financial_account_token}/open_to_buy">client.financial_accounts.open_to_buy.<a href="./src/lithic/resources/financial_accounts/open_to_buy.py">retrieve</a>(financial_account_token) -> <a href="./src/lithic/types/financial_accounts/open_to_buy.py">OpenToBuy</a></code>

## FinancialTransactions

Methods:
Expand Down Expand Up @@ -537,6 +549,19 @@ Methods:
- <code title="get /v1/financial_accounts/{financial_account_token}/loan_tapes/{loan_tape_token}">client.financial_accounts.loan_tapes.<a href="./src/lithic/resources/financial_accounts/loan_tapes.py">retrieve</a>(loan_tape_token, \*, financial_account_token) -> <a href="./src/lithic/types/financial_accounts/loan_tape.py">LoanTape</a></code>
- <code title="get /v1/financial_accounts/{financial_account_token}/loan_tapes">client.financial_accounts.loan_tapes.<a href="./src/lithic/resources/financial_accounts/loan_tapes.py">list</a>(financial_account_token, \*\*<a href="src/lithic/types/financial_accounts/loan_tape_list_params.py">params</a>) -> <a href="./src/lithic/types/financial_accounts/loan_tape.py">SyncCursorPage[LoanTape]</a></code>

## InstallmentPlans

Types:

```python
from lithic.types.financial_accounts import InstallmentPlan, TransactionCategoryBalances
```

Methods:

- <code title="get /v1/financial_accounts/{financial_account_token}/installment_plans/{installment_plan_token}">client.financial_accounts.installment_plans.<a href="./src/lithic/resources/financial_accounts/installment_plans.py">retrieve</a>(installment_plan_token, \*, financial_account_token) -> <a href="./src/lithic/types/financial_accounts/installment_plan.py">InstallmentPlan</a></code>
- <code title="get /v1/financial_accounts/{financial_account_token}/installment_plans">client.financial_accounts.installment_plans.<a href="./src/lithic/resources/financial_accounts/installment_plans.py">list</a>(financial_account_token, \*\*<a href="src/lithic/types/financial_accounts/installment_plan_list_params.py">params</a>) -> <a href="./src/lithic/types/financial_accounts/installment_plan.py">SyncCursorPage[InstallmentPlan]</a></code>

## LoanTapeConfiguration

Types:
Expand Down Expand Up @@ -702,6 +727,7 @@ from lithic.types import BlockchainRecipient
Methods:

- <code title="post /v1/blockchain_recipients">client.blockchain_recipients.<a href="./src/lithic/resources/blockchain_recipients.py">create</a>(\*\*<a href="src/lithic/types/blockchain_recipient_create_params.py">params</a>) -> <a href="./src/lithic/types/blockchain_recipient.py">BlockchainRecipient</a></code>
- <code title="get /v1/blockchain_recipients/{blockchain_recipient_token}">client.blockchain_recipients.<a href="./src/lithic/resources/blockchain_recipients.py">retrieve</a>(blockchain_recipient_token) -> <a href="./src/lithic/types/blockchain_recipient.py">BlockchainRecipient</a></code>

# Payments

Expand All @@ -711,6 +737,7 @@ Types:
from lithic.types import (
Payment,
PaymentCreateResponse,
PaymentCreateStablecoinResponse,
PaymentRetryResponse,
PaymentSimulateActionResponse,
PaymentSimulateReceiptResponse,
Expand All @@ -724,7 +751,8 @@ Methods:
- <code title="post /v1/payments">client.payments.<a href="./src/lithic/resources/payments.py">create</a>(\*\*<a href="src/lithic/types/payment_create_params.py">params</a>) -> <a href="./src/lithic/types/payment_create_response.py">PaymentCreateResponse</a></code>
- <code title="get /v1/payments/{payment_token}">client.payments.<a href="./src/lithic/resources/payments.py">retrieve</a>(payment_token) -> <a href="./src/lithic/types/payment.py">Payment</a></code>
- <code title="get /v1/payments">client.payments.<a href="./src/lithic/resources/payments.py">list</a>(\*\*<a href="src/lithic/types/payment_list_params.py">params</a>) -> <a href="./src/lithic/types/payment.py">SyncCursorPage[Payment]</a></code>
- <code title="post /v1/payments/{payment_token}/retry">client.payments.<a href="./src/lithic/resources/payments.py">retry</a>(payment_token) -> <a href="./src/lithic/types/payment_retry_response.py">PaymentRetryResponse</a></code>
- <code title="post /v1/payments/stablecoin">client.payments.<a href="./src/lithic/resources/payments.py">create_stablecoin</a>(\*\*<a href="src/lithic/types/payment_create_stablecoin_params.py">params</a>) -> <a href="./src/lithic/types/payment_create_stablecoin_response.py">PaymentCreateStablecoinResponse</a></code>
- <code title="post /v1/payments/{payment_token}/retry">client.payments.<a href="./src/lithic/resources/payments.py">retry</a>(payment_token, \*\*<a href="src/lithic/types/payment_retry_params.py">params</a>) -> <a href="./src/lithic/types/payment_retry_response.py">PaymentRetryResponse</a></code>
- <code title="post /v1/payments/{payment_token}/return">client.payments.<a href="./src/lithic/resources/payments.py">return\_</a>(payment_token, \*\*<a href="src/lithic/types/payment_return_params.py">params</a>) -> <a href="./src/lithic/types/payment.py">Payment</a></code>
- <code title="post /v1/simulate/payments/{payment_token}/action">client.payments.<a href="./src/lithic/resources/payments.py">simulate_action</a>(payment_token, \*\*<a href="src/lithic/types/payment_simulate_action_params.py">params</a>) -> <a href="./src/lithic/types/payment_simulate_action_response.py">PaymentSimulateActionResponse</a></code>
- <code title="post /v1/simulate/payments/receipt">client.payments.<a href="./src/lithic/resources/payments.py">simulate_receipt</a>(\*\*<a href="src/lithic/types/payment_simulate_receipt_params.py">params</a>) -> <a href="./src/lithic/types/payment_simulate_receipt_response.py">PaymentSimulateReceiptResponse</a></code>
Expand Down Expand Up @@ -1008,6 +1036,7 @@ from lithic.types import (
BookTransferTransactionUpdatedWebhookEvent,
CardCreatedWebhookEvent,
CardConvertedWebhookEvent,
CardPinUpdatedWebhookEvent,
CardRenewedWebhookEvent,
CardReissuedWebhookEvent,
CardShippedWebhookEvent,
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.131.0"
version = "0.132.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.131.0" # x-release-please-version
__version__ = "0.132.0" # x-release-please-version
2 changes: 2 additions & 0 deletions src/lithic/resources/account_activity.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ def list(
"EXTERNAL_CHECK",
"EXTERNAL_FEDNOW",
"EXTERNAL_RTP",
"EXTERNAL_STABLECOIN",
"EXTERNAL_TRANSFER",
"EXTERNAL_WIRE",
"MANAGEMENT_ADJUSTMENT",
Expand Down Expand Up @@ -238,6 +239,7 @@ def list(
"EXTERNAL_CHECK",
"EXTERNAL_FEDNOW",
"EXTERNAL_RTP",
"EXTERNAL_STABLECOIN",
"EXTERNAL_TRANSFER",
"EXTERNAL_WIRE",
"MANAGEMENT_ADJUSTMENT",
Expand Down
44 changes: 36 additions & 8 deletions src/lithic/resources/auth_rules/v2/v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ def create(
self,
*,
parameters: v2_create_params.AccountLevelRuleParameters,
type: Literal["CONDITIONAL_BLOCK", "VELOCITY_LIMIT", "MERCHANT_LOCK", "CONDITIONAL_ACTION", "TYPESCRIPT_CODE"],
type: Literal[
"CONDITIONAL_BLOCK", "VELOCITY_LIMIT", "MERCHANT_LOCK", "CONDITIONAL_ACTION", "TYPESCRIPT_CODE", "OTHER"
],
account_tokens: SequenceNotStr[str] | Omit = omit,
business_account_tokens: SequenceNotStr[str] | Omit = omit,
event_stream: EventStream | Omit = omit,
Expand Down Expand Up @@ -106,6 +108,8 @@ def create(
- `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, CARD_TRANSACTION_UPDATE, or
ACH_PAYMENT_UPDATE event stream.
- `OTHER`: A rule whose type is not exposed through this API. Rules of this type
are read-only; `OTHER` cannot be used when creating a rule.

account_tokens: Account tokens to which the Auth Rule applies.

Expand All @@ -131,7 +135,9 @@ def create(
*,
card_tokens: SequenceNotStr[str],
parameters: v2_create_params.CardLevelRuleParameters,
type: Literal["CONDITIONAL_BLOCK", "VELOCITY_LIMIT", "MERCHANT_LOCK", "CONDITIONAL_ACTION", "TYPESCRIPT_CODE"],
type: Literal[
"CONDITIONAL_BLOCK", "VELOCITY_LIMIT", "MERCHANT_LOCK", "CONDITIONAL_ACTION", "TYPESCRIPT_CODE", "OTHER"
],
event_stream: EventStream | Omit = omit,
name: Optional[str] | Omit = omit,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
Expand Down Expand Up @@ -164,6 +170,8 @@ def create(
- `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, CARD_TRANSACTION_UPDATE, or
ACH_PAYMENT_UPDATE event stream.
- `OTHER`: A rule whose type is not exposed through this API. Rules of this type
are read-only; `OTHER` cannot be used when creating a rule.

event_stream: The event stream during which the rule will be evaluated.

Expand All @@ -185,7 +193,9 @@ def create(
*,
parameters: v2_create_params.ProgramLevelRuleParameters,
program_level: bool,
type: Literal["CONDITIONAL_BLOCK", "VELOCITY_LIMIT", "MERCHANT_LOCK", "CONDITIONAL_ACTION", "TYPESCRIPT_CODE"],
type: Literal[
"CONDITIONAL_BLOCK", "VELOCITY_LIMIT", "MERCHANT_LOCK", "CONDITIONAL_ACTION", "TYPESCRIPT_CODE", "OTHER"
],
event_stream: EventStream | Omit = omit,
excluded_account_tokens: SequenceNotStr[str] | Omit = omit,
excluded_business_account_tokens: SequenceNotStr[str] | Omit = omit,
Expand Down Expand Up @@ -221,6 +231,8 @@ def create(
- `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, CARD_TRANSACTION_UPDATE, or
ACH_PAYMENT_UPDATE event stream.
- `OTHER`: A rule whose type is not exposed through this API. Rules of this type
are read-only; `OTHER` cannot be used when creating a rule.

event_stream: The event stream during which the rule will be evaluated.

Expand Down Expand Up @@ -251,7 +263,9 @@ def create(
parameters: v2_create_params.AccountLevelRuleParameters
| v2_create_params.CardLevelRuleParameters
| v2_create_params.ProgramLevelRuleParameters,
type: Literal["CONDITIONAL_BLOCK", "VELOCITY_LIMIT", "MERCHANT_LOCK", "CONDITIONAL_ACTION", "TYPESCRIPT_CODE"],
type: Literal[
"CONDITIONAL_BLOCK", "VELOCITY_LIMIT", "MERCHANT_LOCK", "CONDITIONAL_ACTION", "TYPESCRIPT_CODE", "OTHER"
],
account_tokens: SequenceNotStr[str] | Omit = omit,
business_account_tokens: SequenceNotStr[str] | Omit = omit,
event_stream: EventStream | Omit = omit,
Expand Down Expand Up @@ -957,7 +971,9 @@ async def create(
self,
*,
parameters: v2_create_params.AccountLevelRuleParameters,
type: Literal["CONDITIONAL_BLOCK", "VELOCITY_LIMIT", "MERCHANT_LOCK", "CONDITIONAL_ACTION", "TYPESCRIPT_CODE"],
type: Literal[
"CONDITIONAL_BLOCK", "VELOCITY_LIMIT", "MERCHANT_LOCK", "CONDITIONAL_ACTION", "TYPESCRIPT_CODE", "OTHER"
],
account_tokens: SequenceNotStr[str] | Omit = omit,
business_account_tokens: SequenceNotStr[str] | Omit = omit,
event_stream: EventStream | Omit = omit,
Expand Down Expand Up @@ -990,6 +1006,8 @@ async def create(
- `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, CARD_TRANSACTION_UPDATE, or
ACH_PAYMENT_UPDATE event stream.
- `OTHER`: A rule whose type is not exposed through this API. Rules of this type
are read-only; `OTHER` cannot be used when creating a rule.

account_tokens: Account tokens to which the Auth Rule applies.

Expand All @@ -1015,7 +1033,9 @@ async def create(
*,
card_tokens: SequenceNotStr[str],
parameters: v2_create_params.CardLevelRuleParameters,
type: Literal["CONDITIONAL_BLOCK", "VELOCITY_LIMIT", "MERCHANT_LOCK", "CONDITIONAL_ACTION", "TYPESCRIPT_CODE"],
type: Literal[
"CONDITIONAL_BLOCK", "VELOCITY_LIMIT", "MERCHANT_LOCK", "CONDITIONAL_ACTION", "TYPESCRIPT_CODE", "OTHER"
],
event_stream: EventStream | Omit = omit,
name: Optional[str] | Omit = omit,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
Expand Down Expand Up @@ -1048,6 +1068,8 @@ async def create(
- `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, CARD_TRANSACTION_UPDATE, or
ACH_PAYMENT_UPDATE event stream.
- `OTHER`: A rule whose type is not exposed through this API. Rules of this type
are read-only; `OTHER` cannot be used when creating a rule.

event_stream: The event stream during which the rule will be evaluated.

Expand All @@ -1069,7 +1091,9 @@ async def create(
*,
parameters: v2_create_params.ProgramLevelRuleParameters,
program_level: bool,
type: Literal["CONDITIONAL_BLOCK", "VELOCITY_LIMIT", "MERCHANT_LOCK", "CONDITIONAL_ACTION", "TYPESCRIPT_CODE"],
type: Literal[
"CONDITIONAL_BLOCK", "VELOCITY_LIMIT", "MERCHANT_LOCK", "CONDITIONAL_ACTION", "TYPESCRIPT_CODE", "OTHER"
],
event_stream: EventStream | Omit = omit,
excluded_account_tokens: SequenceNotStr[str] | Omit = omit,
excluded_business_account_tokens: SequenceNotStr[str] | Omit = omit,
Expand Down Expand Up @@ -1105,6 +1129,8 @@ async def create(
- `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, CARD_TRANSACTION_UPDATE, or
ACH_PAYMENT_UPDATE event stream.
- `OTHER`: A rule whose type is not exposed through this API. Rules of this type
are read-only; `OTHER` cannot be used when creating a rule.

event_stream: The event stream during which the rule will be evaluated.

Expand Down Expand Up @@ -1135,7 +1161,9 @@ async def create(
parameters: v2_create_params.AccountLevelRuleParameters
| v2_create_params.CardLevelRuleParameters
| v2_create_params.ProgramLevelRuleParameters,
type: Literal["CONDITIONAL_BLOCK", "VELOCITY_LIMIT", "MERCHANT_LOCK", "CONDITIONAL_ACTION", "TYPESCRIPT_CODE"],
type: Literal[
"CONDITIONAL_BLOCK", "VELOCITY_LIMIT", "MERCHANT_LOCK", "CONDITIONAL_ACTION", "TYPESCRIPT_CODE", "OTHER"
],
account_tokens: SequenceNotStr[str] | Omit = omit,
business_account_tokens: SequenceNotStr[str] | Omit = omit,
event_stream: EventStream | Omit = omit,
Expand Down
Loading
Loading