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
89 changes: 89 additions & 0 deletions .hark/changes/2026-09-25_stripe-openapi_87ef4357.change.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion CODEGEN_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
baff58c9d515cdd5f5c3231d101989d588788c6f
83110a8fcd74d32f3b904356db1328d072d021c1
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2442
v2524
12 changes: 12 additions & 0 deletions stripe/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,13 +129,15 @@ def set_app_info(
identity as identity,
issuing as issuing,
params as params,
product_catalog as product_catalog,
radar as radar,
reporting as reporting,
reserve as reserve,
sigma as sigma,
tax as tax,
terminal as terminal,
test_helpers as test_helpers,
three_d_secure as three_d_secure,
treasury as treasury,
v2 as v2,
)
Expand Down Expand Up @@ -421,6 +423,9 @@ def set_app_info(
from stripe._price import Price as Price
from stripe._price_service import PriceService as PriceService
from stripe._product import Product as Product
from stripe._product_catalog_service import (
ProductCatalogService as ProductCatalogService,
)
from stripe._product_feature import ProductFeature as ProductFeature
from stripe._product_feature_service import (
ProductFeatureService as ProductFeatureService,
Expand Down Expand Up @@ -523,6 +528,9 @@ def set_app_info(
from stripe._test_helpers_service import (
TestHelpersService as TestHelpersService,
)
from stripe._three_d_secure_service import (
ThreeDSecureService as ThreeDSecureService,
)
from stripe._token import Token as Token
from stripe._token_service import TokenService as TokenService
from stripe._topup import Topup as Topup
Expand Down Expand Up @@ -566,13 +574,15 @@ def set_app_info(
"identity": ("stripe.identity", True),
"issuing": ("stripe.issuing", True),
"params": ("stripe.params", True),
"product_catalog": ("stripe.product_catalog", True),
"radar": ("stripe.radar", True),
"reporting": ("stripe.reporting", True),
"reserve": ("stripe.reserve", True),
"sigma": ("stripe.sigma", True),
"tax": ("stripe.tax", True),
"terminal": ("stripe.terminal", True),
"test_helpers": ("stripe.test_helpers", True),
"three_d_secure": ("stripe.three_d_secure", True),
"treasury": ("stripe.treasury", True),
"v2": ("stripe.v2", True),
"Account": ("stripe._account", False),
Expand Down Expand Up @@ -816,6 +826,7 @@ def set_app_info(
"Price": ("stripe._price", False),
"PriceService": ("stripe._price_service", False),
"Product": ("stripe._product", False),
"ProductCatalogService": ("stripe._product_catalog_service", False),
"ProductFeature": ("stripe._product_feature", False),
"ProductFeatureService": ("stripe._product_feature_service", False),
"ProductService": ("stripe._product_service", False),
Expand Down Expand Up @@ -883,6 +894,7 @@ def set_app_info(
"TerminalService": ("stripe._terminal_service", False),
"APIResourceTestHelpers": ("stripe._test_helpers", False),
"TestHelpersService": ("stripe._test_helpers_service", False),
"ThreeDSecureService": ("stripe._three_d_secure_service", False),
"Token": ("stripe._token", False),
"TokenService": ("stripe._token_service", False),
"Topup": ("stripe._topup", False),
Expand Down
79 changes: 77 additions & 2 deletions stripe/_account.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,10 @@ class SupportAddress(StripeObject):
"""
Internal-only description of the product sold or service provided by the business. It's used by Stripe for risk and underwriting purposes.
"""
specified_commercial_transactions_act_url: Optional[str]
"""
A link to the business's publicly available terms related to the Specified Commercial Transaction Act. Only used for accounts in Japan.
"""
support_address: Optional[SupportAddress]
"""
A publicly available mailing address for sending support issues to.
Expand Down Expand Up @@ -294,6 +298,12 @@ class Capabilities(StripeObject):
"""
The status of the blik payments capability of the account, or whether the account can directly process blik charges.
"""
blik_recurring_payments: Optional[
Union[Literal["active", "inactive", "pending"], str]
]
"""
The status of the BLIK recurring payments capability of the account, or whether the account can accept recurring and subscription BLIK payments.
"""
boleto_payments: Optional[
Union[Literal["active", "inactive", "pending"], str]
]
Expand Down Expand Up @@ -486,6 +496,12 @@ class Capabilities(StripeObject):
"""
The status of the paynow payments capability of the account, or whether the account can directly process paynow charges.
"""
paypay_payments: Optional[
Union[Literal["active", "inactive", "pending"], str]
]
"""
The status of the Paypay capability of the account, or whether the account can directly process Paypay payments.
"""
payto_payments: Optional[
Union[Literal["active", "inactive", "pending"], str]
]
Expand Down Expand Up @@ -540,6 +556,12 @@ class Capabilities(StripeObject):
"""
The status of the SEPA Direct Debits payments capability of the account, or whether the account can directly process SEPA Direct Debits charges.
"""
sequra_payments: Optional[
Union[Literal["active", "inactive", "pending"], str]
]
"""
The status of the SeQura capability of the account, or whether the account can directly process SeQura payments.
"""
sofort_payments: Optional[
Union[Literal["active", "inactive", "pending"], str]
]
Expand Down Expand Up @@ -812,7 +834,7 @@ class Verification(StripeObject):
class Document(StripeObject):
back: Optional[ExpandableField["File"]]
"""
The back of a document returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `additional_verification`. Note that `additional_verification` files are [not downloadable](https://docs.stripe.com/file-upload#uploading-a-file).
The back of a document returned by a [file upload](https://docs.stripe.com/api#create_file) with a `purpose` value of `additional_verification`. Note that `additional_verification` files are [not downloadable](https://docs.stripe.com/file-upload#uploading-a-file).
"""
details: Optional[str]
"""
Expand All @@ -824,7 +846,7 @@ class Document(StripeObject):
"""
front: Optional[ExpandableField["File"]]
"""
The front of a document returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `additional_verification`. Note that `additional_verification` files are [not downloadable](https://docs.stripe.com/file-upload#uploading-a-file).
The front of a document returned by a [file upload](https://docs.stripe.com/api#create_file) with a `purpose` value of `additional_verification`. Note that `additional_verification` files are [not downloadable](https://docs.stripe.com/file-upload#uploading-a-file).
"""

document: Document
Expand Down Expand Up @@ -1030,8 +1052,10 @@ class Error(StripeObject):
"external_request",
"information_missing",
"invalid_address_city_state_postal_code",
"invalid_address_cmra_address",
"invalid_address_highway_contract_box",
"invalid_address_private_mailbox",
"invalid_address_registered_agent_address",
"invalid_business_profile_name",
"invalid_business_profile_name_denylisted",
"invalid_company_name_denylisted",
Expand Down Expand Up @@ -1211,8 +1235,10 @@ class Error(StripeObject):
"external_request",
"information_missing",
"invalid_address_city_state_postal_code",
"invalid_address_cmra_address",
"invalid_address_highway_contract_box",
"invalid_address_private_mailbox",
"invalid_address_registered_agent_address",
"invalid_business_profile_name",
"invalid_business_profile_name_denylisted",
"invalid_company_name_denylisted",
Expand Down Expand Up @@ -1538,6 +1564,53 @@ class Schedule(StripeObject):
"""
_inner_class_types = {"schedule": Schedule}

class PaypayPayments(StripeObject):
class Site(StripeObject):
class Accessible(StripeObject):
pass

class InDevelopment(StripeObject):
password_provided: Optional[bool]
"""
Field to indicate that the website password has been provided.
"""
username: Optional[str]
"""
The username needed to access your business's website.
"""

class Restricted(StripeObject):
payment_flow_file: Optional[str]
"""
File explaining the payment flow for your business.
"""

accessible: Optional[Accessible]
in_development: Optional[InDevelopment]
restricted: Optional[Restricted]
type: Optional[
Literal["accessible", "in_development", "restricted"]
]
"""
The status of your business's website.
"""
_inner_class_types = {
"accessible": Accessible,
"in_development": InDevelopment,
"restricted": Restricted,
}

additional_files: Optional[List[str]]
"""
Additional files that are required to support the onboarding process of your business.
"""
goods_type: Optional[Literal["digital_content", "other"]]
"""
The type of goods your business sells. Use `digital_content` if you sell digital content. Use `other` for all other types of goods or services.
"""
site: Optional[Site]
_inner_class_types = {"site": Site}

class SepaDebitPayments(StripeObject):
creditor_id: Optional[str]
"""
Expand Down Expand Up @@ -1570,6 +1643,7 @@ class TosAcceptance(StripeObject):
invoices: Optional[Invoices]
payments: Payments
payouts: Optional[Payouts]
paypay_payments: Optional[PaypayPayments]
sepa_debit_payments: Optional[SepaDebitPayments]
treasury: Optional[Treasury]
_inner_class_types = {
Expand All @@ -1581,6 +1655,7 @@ class TosAcceptance(StripeObject):
"invoices": Invoices,
"payments": Payments,
"payouts": Payouts,
"paypay_payments": PaypayPayments,
"sepa_debit_payments": SepaDebitPayments,
"treasury": Treasury,
}
Expand Down
4 changes: 2 additions & 2 deletions stripe/_account_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ def create(
cls, **params: Unpack["AccountSessionCreateParams"]
) -> "AccountSession":
"""
Creates a AccountSession object that includes a single-use token that the platform can use on their front-end to grant client-side API access.
Creates an AccountSession object that includes a single-use token that the platform can use on their front-end to grant client-side API access.
"""
return cast(
"AccountSession",
Expand All @@ -558,7 +558,7 @@ async def create_async(
cls, **params: Unpack["AccountSessionCreateParams"]
) -> "AccountSession":
"""
Creates a AccountSession object that includes a single-use token that the platform can use on their front-end to grant client-side API access.
Creates an AccountSession object that includes a single-use token that the platform can use on their front-end to grant client-side API access.
"""
return cast(
"AccountSession",
Expand Down
4 changes: 2 additions & 2 deletions stripe/_account_session_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def create(
options: Optional["RequestOptions"] = None,
) -> "AccountSession":
"""
Creates a AccountSession object that includes a single-use token that the platform can use on their front-end to grant client-side API access.
Creates an AccountSession object that includes a single-use token that the platform can use on their front-end to grant client-side API access.
"""
return cast(
"AccountSession",
Expand All @@ -38,7 +38,7 @@ async def create_async(
options: Optional["RequestOptions"] = None,
) -> "AccountSession":
"""
Creates a AccountSession object that includes a single-use token that the platform can use on their front-end to grant client-side API access.
Creates an AccountSession object that includes a single-use token that the platform can use on their front-end to grant client-side API access.
"""
return cast(
"AccountSession",
Expand Down
1 change: 1 addition & 0 deletions stripe/_api_requestor.py
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,7 @@ def specific_oauth_error(self, rbody, rcode, resp, rheaders, error_code):
("CODEX_CI", "codex_cli"),
("CURSOR_AGENT", "cursor"),
("GEMINI_CLI", "gemini_cli"),
("HERMES_AGENT", "hermes"),
("OPENCLAW_SHELL", "openclaw"),
("OPENCODE", "open_code"),
# aiAgents: The end of the section generated from our OpenAPI spec
Expand Down
4 changes: 2 additions & 2 deletions 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-08-26.dahlia"
CURRENT_MAJOR = "dahlia"
CURRENT = "2026-09-30.endive"
CURRENT_MAJOR = "endive"
7 changes: 6 additions & 1 deletion stripe/_apps_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,17 @@
from typing_extensions import TYPE_CHECKING

if TYPE_CHECKING:
from stripe.apps._install_service import InstallService
from stripe.apps._secret_service import SecretService

_subservices = {"secrets": ["stripe.apps._secret_service", "SecretService"]}
_subservices = {
"installs": ["stripe.apps._install_service", "InstallService"],
"secrets": ["stripe.apps._secret_service", "SecretService"],
}


class AppsService(StripeService):
installs: "InstallService"
secrets: "SecretService"

def __init__(self, requestor):
Expand Down
2 changes: 1 addition & 1 deletion stripe/_balance.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ class SourceTypes(StripeObject):

available: List[Available]
"""
Available funds that you can transfer or pay out automatically by Stripe or explicitly through the [Transfers API](https://api.stripe.com#transfers) or [Payouts API](https://api.stripe.com#payouts). You can find the available balance for each currency and payment type in the `source_types` property.
Available funds that you can transfer or pay out automatically by Stripe or explicitly through the [Transfers API](https://docs.stripe.com/api#transfers) or [Payouts API](https://docs.stripe.com/api#payouts). You can find the available balance for each currency and payment type in the `source_types` property.
"""
connect_reserved: Optional[List[ConnectReserved]]
"""
Expand Down
4 changes: 3 additions & 1 deletion stripe/_balance_transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,8 @@ class FeeDetail(StripeObject):
"issuing_authorization_hold",
"issuing_authorization_release",
"issuing_dispute",
"issuing_dispute_provisional_credit",
"issuing_dispute_provisional_credit_reversal",
"issuing_transaction",
"obligation_outbound",
"obligation_reversal_inbound",
Expand Down Expand Up @@ -213,7 +215,7 @@ class FeeDetail(StripeObject):
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.
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_dispute_provisional_credit`, `issuing_dispute_provisional_credit_reversal`, `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.
"""

@classmethod
Expand Down
4 changes: 4 additions & 0 deletions stripe/_bank_account.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,10 @@ class Error(StripeObject):
"external_request",
"information_missing",
"invalid_address_city_state_postal_code",
"invalid_address_cmra_address",
"invalid_address_highway_contract_box",
"invalid_address_private_mailbox",
"invalid_address_registered_agent_address",
"invalid_business_profile_name",
"invalid_business_profile_name_denylisted",
"invalid_company_name_denylisted",
Expand Down Expand Up @@ -173,8 +175,10 @@ class Error(StripeObject):
"external_request",
"information_missing",
"invalid_address_city_state_postal_code",
"invalid_address_cmra_address",
"invalid_address_highway_contract_box",
"invalid_address_private_mailbox",
"invalid_address_registered_agent_address",
"invalid_business_profile_name",
"invalid_business_profile_name_denylisted",
"invalid_company_name_denylisted",
Expand Down
Loading
Loading