10000 Update generated code by stripe-openapi[bot] · Pull Request #1517 · stripe/stripe-python · GitHub
[go: up one dir, main page]

Skip to content

Update generated code #1517

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
May 27, 2025
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 OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1719
v1773
156 changes: 86 additions & 70 deletions stripe/_account.py

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions stripe/_account_external_account_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ def update(
a connected account and optionally sets it as the default for its currency. Other bank account
details are not editable by design.

You can only update bank accounts when [account.controller.requirement_collection is application, which includes <a href="/connect/custom-accounts">Custom accounts](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection).
You can only update bank accounts when [account.controller.requirement_collection is application, which includes <a href="/connect/custom-accounts">Custom accounts](https://docs.stripe.com/api/accounts/object#account_object-controller-requirement_collection).

You can re-enable a disabled bank account by performing an update call without providing any
arguments or changes.
Expand Down Expand Up @@ -341,7 +341,7 @@ async def update_async(
a connected account and optionally sets it as the default for its currency. Other bank account
details are not editable by design.

You can only update bank accounts when [account.controller.requirement_collection is application, which includes <a href="/connect/custom-accounts">Custom accounts](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection).
You can only update bank accounts when [account.controller.requirement_collection is application, which includes <a href="/connect/custom-accounts">Custom accounts](https://docs.stripe.com/api/accounts/object#account_object-controller-requirement_collection).

You can re-enable a disabled bank account by performing an update call without providing any
arguments or changes.
Expand Down
4 changes: 2 additions & 2 deletions stripe/_account_login_link_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def create(
"""
Creates a login link for a connected account to access the Express Dashboard.

You can only create login links for accounts that use the [Express Dashboard](https://stripe.com/connect/express-dashboard) and are connected to your platform.
You can only create login links for accounts that use the [Express Dashboard](https://docs.stripe.com/connect/express-dashboard) and are connected to your platform.
"""
return cast(
LoginLink,
Expand All @@ -48,7 +48,7 @@ async def create_async(
"""
Creates a login link for a connected account to access the Express Dashboard.

You can only create login links for accounts that use the [Express Dashboard](https://stripe.com/connect/express-dashboard) and are connected to your platform.
You can only create login links for accounts that use the [Express Dashboard](https://docs.stripe.com/connect/express-dashboard) and are connected to your platform.
"""
return cast(
LoginLink,
Expand Down
152 changes: 88 additions & 64 deletions stripe/_account_service.py

Large diffs are not rendered by default.

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

class DisputesList(StripeObject):
class Features(StripeObject):
capture_payments: bool
"""
Whether to allow capturing and cancelling payment intents. This is `true` by default.
"""
destination_on_behalf_of_charge_management: bool
"""
Whether to allow connected accounts to manage destination charges that are created on behalf of them. This is `false` by default.
"""
dispute_management: bool
"""
Whether to allow responding to disputes, including submitting evidence and accepting disputes. This is `true` by default.
"""
refund_management: bool
"""
Whether to allow sending refunds. This is `true` by default.
"""

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

class Documents(StripeObject):
class Features(StripeObject):
pass
Expand Down Expand Up @@ -238,6 +264,28 @@ class Features(StripeObject):
features: Features
_inner_class_types = {"features": Features}

class PaymentDisputes(StripeObject):
class Features(StripeObject):
destination_on_behalf_of_charge_management: bool
"""
Whether to allow connected accounts to manage destination charges that are created on behalf of them. This is `false` by default.
"""
dispute_management: bool
"""
Whether to allow responding to disputes, including submitting evidence and accepting disputes. This is `true` by default.
"""
refund_management: bool
"""
Whether to allow sending refunds. This is `true` 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 @@ -330,13 +378,15 @@ class Features(StripeObject):
account_management: AccountManagement
account_onboarding: AccountOnboarding
balances: Balances
disputes_list: DisputesList
documents: Documents
financial_account: FinancialAccount
financial_account_transactions: FinancialAccountTransactions
issuing_card: IssuingCard
issuing_cards_list: IssuingCardsList
notification_banner: NotificationBanner
payment_details: PaymentDetails
payment_disputes: PaymentDisputes
payments: Payments
payouts: Payouts
payouts_list: PayoutsList
Expand All @@ -346,13 +396,15 @@ class Features(StripeObject):
"account_management": AccountManagement,
"account_onboarding": AccountOnboarding,
"balances": Balances,
"disputes_list": DisputesList,
"documents": Documents,
"financial_account": FinancialAccount,
"financial_account_transactions": FinancialAccountTransactions,
"issuing_card": IssuingCard,
"issuing_cards_list": IssuingCardsList,
"notification_banner": NotificationBanner,
"payment_details": PaymentDetails,
"payment_disputes": PaymentDisputes,
"payments": Payments,
"payouts": Payouts,
"payouts_list": PayoutsList,
Expand Down Expand Up @@ -391,6 +443,12 @@ class CreateParamsComponents(TypedDict):
"""
Configuration for the balances embedded component.
"""
disputes_list: NotRequired[
"AccountSession.CreateParamsComponentsDisputesList"
]
"""
Configuration for the disputes list embedded component.
"""
documents: NotRequired[
"AccountSession.CreateParamsComponentsDocuments"
]
Expand Down Expand Up @@ -433,6 +491,12 @@ class CreateParamsComponents(TypedDict):
"""
Configuration for the payment details embedded component.
"""
payment_disputes: NotRequired[
"AccountSession.CreateParamsComponentsPaymentDisputes"
]
"""
Configuration for the payment disputes embedded component.
"""
payments: NotRequired["AccountSession.CreateParamsComponentsPayments"]
"""
Configuration for the payments embedded component.
Expand Down Expand Up @@ -538,6 +602,36 @@ class CreateParamsComponentsBalancesFeatures(TypedDict):
Whether to allow creation of standard payouts. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
"""

class CreateParamsComponentsDisputesList(TypedDict):
enabled: bool
"""
Whether the embedded component is enabled.
"""
features: NotRequired[
"AccountSession.CreateParamsComponentsDisputesListFeatures"
]
"""
The list of features enabled in the embedded component.
"""

class CreateParamsComponentsDisputesListFeatures(TypedDict):
capture_payments: NotRequired[bool]
"""
Whether to allow capturing and cancelling payment intents. This is `true` by default.
"""
destination_on_behalf_of_charge_management: NotRequired[bool]
"""
Whether to allow connected accounts to manage destination charges that are created on behalf of them. This is `false` by default.
"""
dispute_management: NotRequired[bool]
"""
Whether to allow responding to disputes, including submitting evidence and accepting disputes. This is `true` by default.
"""
refund_management: NotRequired[bool]
"""
Whether to allow sending refunds. This is `true` by default.
"""

class CreateParamsComponentsDocuments(TypedDict):
enabled: bool
"""
Expand Down Expand Up @@ -719,6 +813,32 @@ class CreateParamsComponentsPaymentDetailsFeatures(TypedDict):
Whether to allow sending refunds. This is `true` by default.
"""

class CreateParamsComponentsPaymentDisputes(TypedDict):
enabled: bool
"""
Whether the embedded component is enabled.
"""
features: NotRequired[
"AccountSession.CreateParamsComponentsPaymentDisputesFeatures"
]
"""
The list of features enabled in the embedded component.
"""

class CreateParamsComponentsPaymentDisputesFeatures(TypedDict):
destination_on_behalf_of_charge_management: NotRequired[bool]
"""
Whether to allow connected accounts to manage destination charges that are created on behalf of them. This is `false` by default.
"""
dispute_management: NotRequired[bool]
"""
Whether to allow responding to disputes, including submitting evidence and accepting disputes. This is `true` by default.
"""
refund_management: NotRequired[bool]
"""
Whether to allow sending refunds. This is `true` by default.
"""

class CreateParamsComponentsPayments(TypedDict):
enabled: bool
"""
Expand Down
68 changes: 68 additions & 0 deletions stripe/_account_session_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ class CreateParamsComponents(TypedDict):
"""
Configuration for the balances embedded component.
"""
disputes_list: NotRequired[
"AccountSessionService.CreateParamsComponentsDisputesList"
]
"""
Configuration for the disputes list embedded component.
"""
documents: NotRequired[
"AccountSessionService.CreateParamsComponentsDocuments"
]
Expand Down Expand Up @@ -83,6 +89,12 @@ class CreateParamsComponents(TypedDict):
"""
Configuration for the payment details embedded component.
"""
payment_disputes: NotRequired[
"AccountSessionService.CreateParamsComponentsPaymentDisputes"
]
"""
Configuration for the payment disputes embedded component.
"""
payments: NotRequired[
"AccountSession 10000 Service.CreateParamsComponentsPayments"
]
Expand Down Expand Up @@ -192,6 +204,36 @@ class CreateParamsComponentsBalancesFeatures(TypedDict):
Whether to allow creation of standard payouts. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
"""

class CreateParamsComponentsDisputesList(TypedDict):
enabled: bool
"""
Whether the embedded component is enabled.
"""
features: NotRequired[
"AccountSessionService.CreateParamsComponentsDisputesListFeatures"
]
"""
The list of features enabled in the embedded component.
"""

class CreateParamsComponentsDisputesListFeatures(TypedDict):
capture_payments: NotRequired[bool]
"""
Whether to allow capturing and cancelling payment intents. This is `true` by default.
"""
destination_on_behalf_of_charge_management: NotRequired[bool]
"""
Whether to allow connected accounts to manage destination charges that are created on behalf of them. This is `false` by default.
"""
dispute_management: NotRequired[bool]
"""
Whether to allow responding to disputes, including submitting evidence and accepting disputes. This is `true` by default.
"""
refund_management: NotRequired[bool]
"""
Whether to allow sending refunds. This is `true` by default.
"""

class CreateParamsComponentsDocuments(TypedDict):
enabled: bool
"""
Expand Down Expand Up @@ -373,6 +415,32 @@ class CreateParamsComponentsPaymentDetailsFeatures(TypedDict):
Whether to allow sending refunds. This is `true` by default.
"""

class CreateParamsComponentsPaymentDisputes(TypedDict):
enabled: bool
"""
Whether the embedded component is enabled.
"""
features: NotRequired[
"AccountSessionService.CreateParamsComponentsPaymentDisputesFeatures"
]
"""
The list of features enabled in the embedded component.
"""

class CreateParamsComponentsPaymentDisputesFeatures(TypedDict):
destination_on_behalf_of_charge_management: NotRequired[bool]
"""
Whether to allow connected accounts to manage destination charges that are created on behalf of them. This is `false` by default.
"""
dispute_management: NotRequired[bool]
"""
Whether to allow responding to disputes, including submitting evidence and accepting disputes. This is `true` by default.
"""
refund_management: NotRequired[bool]
"""
Whether to allow sending refunds. This is `true` by default.
"""

class CreateParamsComponentsPayments(TypedDict):
enabled: bool
"""
Expand Down
2 changes: 1 addition & 1 deletion stripe/_api_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
class _ApiVersion:
CURRENT = "2025-04-30.basil"
CURRENT = "2025-05-28.basil"
Loading
0