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
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# Changelog

## 15.5.0 - 2026-08-10
* [#1874](https://github.com/stripe/stripe-python/pull/1874) Add async iteration to v2 list auto-pagination
- Adds `async for` support to v2 `ListObject.auto_paging_iter()`.
* [#1869](https://github.com/stripe/stripe-python/pull/1869) Surface `object` property on `EventNotification`
* [#1867](https://github.com/stripe/stripe-python/pull/1867) Emit Claude Code plugin hint at module load time
- Emits new Claude Code plugin hint when `CLAUDECODE` or `CLAUDE_CODE_CHILD_SESSION` environment variables are detected.
* [#1855](https://github.com/stripe/stripe-python/pull/1855) add/adjust event parsing helpers

- Added methods that return their respective `Event`/`EventNotification` class instances without verifying authenticity. Use them when you've previously verified an event (e.g. you verified, put the event in a queue, and are now processing). Supports events from [AWS EventBridge](https://docs.stripe.com/event-destinations/eventbridge) and [Azure Event Grid](https://docs.stripe.com/event-destinations/eventgrid) natively.
- `Webhook.construct_event_without_verification(payload)`
- `StripeClient.construct_event_without_verification(payload)`
- `StripeClient.parse_event_notification_without_verification(payload)`
- Added `WebhookSignature.generate_signature_header(payload, secret, timestamp=None)`, which computes a full `Stripe-Signature` header for the given payload. Useful for unit tests!

* [#1863](https://github.com/stripe/stripe-python/pull/1863) Add `stripe.major_api_version` constant

## 15.5.0b1 - 2026-07-29
This release changes the pinned API version to 2026-07-29.preview.

Expand Down
2 changes: 1 addition & 1 deletion CODEGEN_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
44014016ec56efb57a8cf6d0ee0771c2e6b4eebe
871c3a5fe73531f5b73a53721d7eb4aac41c4530
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2349
v2408
276 changes: 194 additions & 82 deletions stripe/_account.py

Large diffs are not rendered by default.

105 changes: 54 additions & 51 deletions stripe/_balance_transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,57 +157,60 @@ class FeeDetail(StripeObject):
"""
The transaction's net funds status in the Stripe balance, which are either `available` or `pending`.
"""
type: Literal[
"adjustment",
"advance",
"advance_funding",
"anticipation_repayment",
"application_fee",
"application_fee_refund",
"charge",
"climate_order_purchase",
"climate_order_refund",
"connect_collection_transfer",
"contribution",
"fee_credit_funding",
"inbound_transfer",
"inbound_transfer_reversal",
"issuing_authorization_hold",
"issuing_authorization_release",
"issuing_dispute",
"issuing_transaction",
"obligation_outbound",
"obligation_reversal_inbound",
"payment",
"payment_failure_refund",
"payment_network_reserve_hold",
"payment_network_reserve_release",
"payment_refund",
"payment_reversal",
"payment_unreconciled",
"payout",
"payout_cancel",
"payout_failure",
"payout_minimum_balance_hold",
"payout_minimum_balance_release",
"refund",
"refund_failure",
"reserve_hold",
"reserve_release",
"reserve_transaction",
"reserved_funds",
"stripe_balance_payment_debit",
"stripe_balance_payment_debit_reversal",
"stripe_fee",
"stripe_fx_fee",
"tax_fee",
"tax_fund",
"topup",
"topup_reversal",
"transfer",
"transfer_cancel",
"transfer_failure",
"transfer_refund",
type: Union[
Literal[
"adjustment",
"advance",
"advance_funding",
"anticipation_repayment",
"application_fee",
"application_fee_refund",
"charge",
"climate_order_purchase",
"climate_order_refund",
"connect_collection_transfer",
"contribution",
"fee_credit_funding",
"inbound_transfer",
"inbound_transfer_reversal",
"issuing_authorization_hold",
"issuing_authorization_release",
"issuing_dispute",
"issuing_transaction",
"obligation_outbound",
"obligation_reversal_inbound",
"payment",
"payment_failure_refund",
"payment_network_reserve_hold",
"payment_network_reserve_release",
"payment_refund",
"payment_reversal",
"payment_unreconciled",
"payout",
"payout_cancel",
"payout_failure",
"payout_minimum_balance_hold",
"payout_minimum_balance_release",
"refund",
"refund_failure",
"reserve_hold",
"reserve_release",
"reserve_transaction",
"reserved_funds",
"stripe_balance_payment_debit",
"stripe_balance_payment_debit_reversal",
"stripe_fee",
"stripe_fx_fee",
"tax_fee",
"tax_fund",
"topup",
"topup_reversal",
"transfer",
"transfer_cancel",
"transfer_failure",
"transfer_refund",
],
str,
]
"""
Transaction type: `tax_fund`, `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `inbound_transfer`, `inbound_transfer_reversal`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_outbound`, `obligation_reversal_inbound`, `payment`, `payment_failure_refund`, `payment_network_reserve_hold`, `payment_network_reserve_release`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `payout_minimum_balance_hold`, `payout_minimum_balance_release`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `reserve_hold`, `reserve_release`, `stripe_fee`, `stripe_fx_fee`, `stripe_balance_payment_debit`, `stripe_balance_payment_debit_reversal`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, `transfer_refund`, or `fee_credit_funding`. Learn more about [balance transaction types and what they represent](https://stripe.com/docs/reports/balance-transaction-types). To classify transactions for accounting purposes, consider `reporting_category` instead.
Expand Down
4 changes: 3 additions & 1 deletion stripe/_bank_account.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,9 @@ class Error(StripeObject):
"""
The bank account type. This can only be `checking` or `savings` in most countries. In Japan, this can only be `futsu` or `toza`.
"""
available_payout_methods: Optional[List[Literal["instant", "standard"]]]
available_payout_methods: Optional[
List[Union[Literal["instant", "standard"], str]]
]
"""
A set of available payout methods for this bank account. Only values from this set should be passed as the `method` when creating a payout.
"""
Expand Down
4 changes: 3 additions & 1 deletion stripe/_card.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ class Redaction(StripeObject):
"""
This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults to “unspecified”.
"""
available_payout_methods: Optional[List[Literal["instant", "standard"]]]
available_payout_methods: Optional[
List[Union[Literal["instant", "standard"], str]]
]
"""
A set of available payout methods for this card. Only values from this set should be passed as the `method` when creating a payout.
"""
Expand Down
4 changes: 2 additions & 2 deletions stripe/_cash_balance.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from stripe._customer import Customer
from stripe._stripe_object import StripeObject, UntypedStripeObject
from stripe._util import sanitize_id
from typing import ClassVar, Optional
from typing import ClassVar, Optional, Union
from typing_extensions import Literal


Expand All @@ -15,7 +15,7 @@ class CashBalance(StripeObject):
OBJECT_NAME: ClassVar[Literal["cash_balance"]] = "cash_balance"

class Settings(StripeObject):
reconciliation_mode: Literal["automatic", "manual"]
reconciliation_mode: Union[Literal["automatic", "manual"], str]
"""
The configuration for how funds that land in the customer cash balance are reconciled.
"""
Expand Down
Loading
Loading