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 CODEGEN_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
44014016ec56efb57a8cf6d0ee0771c2e6b4eebe
baff58c9d515cdd5f5c3231d101989d588788c6f
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2349
v2442
234 changes: 166 additions & 68 deletions stripe/_account.py

Large diffs are not rendered by default.

16 changes: 16 additions & 0 deletions stripe/_account_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,20 @@ class Features(StripeObject):
features: Features
_inner_class_types = {"features": Features}

class PaymentMethodSettings(StripeObject):
class Features(StripeObject):
disable_stripe_user_authentication: bool
"""
Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. This is `false` by default.
"""

enabled: bool
"""
Whether the embedded component is enabled.
"""
features: Features
_inner_class_types = {"features": Features}

class Payments(StripeObject):
class Features(StripeObject):
capture_payments: bool
Expand Down Expand Up @@ -464,6 +478,7 @@ class Features(StripeObject):
notification_banner: NotificationBanner
payment_details: PaymentDetails
payment_disputes: PaymentDisputes
payment_method_settings: PaymentMethodSettings
payments: Payments
payout_details: PayoutDetails
payout_reconciliation_report: PayoutReconciliationReport
Expand All @@ -486,6 +501,7 @@ class Features(StripeObject):
"notification_banner": NotificationBanner,
"payment_details": PaymentDetails,
"payment_disputes": PaymentDisputes,
"payment_method_settings": PaymentMethodSettings,
"payments": Payments,
"payout_details": PayoutDetails,
"payout_reconciliation_report": PayoutReconciliationReport,
Expand Down
2 changes: 1 addition & 1 deletion stripe/_api_version.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
class _ApiVersion:
CURRENT = "2026-07-29.dahlia"
CURRENT = "2026-08-26.dahlia"
CURRENT_MAJOR = "dahlia"
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 @@ -314,7 +314,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
6 changes: 6 additions & 0 deletions stripe/_billing_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
CreditBalanceTransactionService,
)
from stripe.billing._credit_grant_service import CreditGrantService
from stripe.billing._feedback_option_service import FeedbackOptionService
from stripe.billing._meter_event_adjustment_service import (
MeterEventAdjustmentService,
)
Expand All @@ -33,6 +34,10 @@
"stripe.billing._credit_grant_service",
"CreditGrantService",
],
"feedback_options": [
"stripe.billing._feedback_option_service",
"FeedbackOptionService",
],
"meters": ["stripe.billing._meter_service", "MeterService"],
"meter_events": [
"stripe.billing._meter_event_service",
Expand All @@ -50,6 +55,7 @@ class BillingService(StripeService):
credit_balance_summary: "CreditBalanceSummaryService"
credit_balance_transactions: "CreditBalanceTransactionService"
credit_grants: "CreditGrantService"
feedback_options: "FeedbackOptionService"
meters: "MeterService"
meter_events: "MeterEventService"
meter_event_adjustments: "MeterEventAdjustmentService"
Expand Down
4 changes: 3 additions & 1 deletion stripe/_card.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ class Networks(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