Skip to content

Commit c45315d

Browse files
Update generated code (#1517)
* Update generated code for v1756 * Update generated code for v1757 * Update generated code for v1758 * Update generated code for v1767 * Update generated code for v1770 * Update generated code for v1770 * Update generated code for v1772 * Update generated code for v1773 --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
1 parent 7db7345 commit c45315d

File tree

105 files changed

+4805
-2122
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

105 files changed

+4805
-2122
lines changed

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1719
1+
v1773

stripe/_account.py

Lines changed: 86 additions & 70 deletions
Large diffs are not rendered by default.

stripe/_account_external_account_service.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ def update(
310310
a connected account and optionally sets it as the default for its currency. Other bank account
311311
details are not editable by design.
312312
313-
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).
313+
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).
314314
315315
You can re-enable a disabled bank account by performing an update call without providing any
316316
arguments or changes.
@@ -341,7 +341,7 @@ async def update_async(
341341
a connected account and optionally sets it as the default for its currency. Other bank account
342342
details are not editable by design.
343343
344-
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).
344+
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).
345345
346346
You can re-enable a disabled bank account by performing an update call without providing any
347347
arguments or changes.

stripe/_account_login_link_service.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def create(
2424
"""
2525
Creates a login link for a connected account to access the Express Dashboard.
2626
27-
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.
27+
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.
2828
"""
2929
return cast(
3030
LoginLink,
@@ -48,7 +48,7 @@ async def create_async(
4848
"""
4949
Creates a login link for a connected account to access the Express Dashboard.
5050
51-
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.
51+
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.
5252
"""
5353
return cast(
5454
LoginLink,

stripe/_account_service.py

Lines changed: 88 additions & 64 deletions
Large diffs are not rendered by default.

stripe/_account_session.py

Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,32 @@ class Features(StripeObject):
8787
features: Features
8888
_inner_class_types = {"features": Features}
8989

90+
class DisputesList(StripeObject):
91+
class Features(StripeObject):
92+
capture_payments: bool
93+
"""
94+
Whether to allow capturing and cancelling payment intents. This is `true` by default.
95+
"""
96+
destination_on_behalf_of_charge_management: bool
97+
"""
98+
Whether to allow connected accounts to manage destination charges that are created on behalf of them. This is `false` by default.
99+
"""
100+
dispute_management: bool
101+
"""
102+
Whether to allow responding to disputes, including submitting evidence and accepting disputes. This is `true` by default.
103+
"""
104+
refund_management: bool
105+
"""
106+
Whether to allow sending refunds. This is `true` by default.
107+
"""
108+
109+
enabled: bool
110+
"""
111+
Whether the embedded component is enabled.
112+
"""
113+
features: Features
114+
_inner_class_types = {"features": Features}
115+
90116
class Documents(StripeObject):
91117
class Features(StripeObject):
92118
pass
@@ -238,6 +264,28 @@ class Features(StripeObject):
238264
features: Features
239265
_inner_class_types = {"features": Features}
240266

267+
class PaymentDisputes(StripeObject):
268+
class Features(StripeObject):
269+
destination_on_behalf_of_charge_management: bool
270+
"""
271+
Whether to allow connected accounts to manage destination charges that are created on behalf of them. This is `false` by default.
272+
"""
273+
dispute_management: bool
274+
"""
275+
Whether to allow responding to disputes, including submitting evidence and accepting disputes. This is `true` by default.
276+
"""
277+
refund_management: bool
278+
"""
279+
Whether to allow sending refunds. This is `true` by default.
280+
"""
281+
282+
enabled: bool
283+
"""
284+
Whether the embedded component is enabled.
285+
"""
286+
features: Features
287+
_inner_class_types = {"features": Features}
288+
241289
class Payments(StripeObject):
242290
class Features(StripeObject):
243291
capture_payments: bool
@@ -330,13 +378,15 @@ class Features(StripeObject):
330378
account_management: AccountManagement
331379
account_onboarding: AccountOnboarding
332380
balances: Balances
381+
disputes_list: DisputesList
333382
documents: Documents
334383
financial_account: FinancialAccount
335384
financial_account_transactions: FinancialAccountTransactions
336385
issuing_card: IssuingCard
337386
issuing_cards_list: IssuingCardsList
338387
notification_banner: NotificationBanner
339388
payment_details: PaymentDetails
389+
payment_disputes: PaymentDisputes
340390
payments: Payments
341391
payouts: Payouts
342392
payouts_list: PayoutsList
@@ -346,13 +396,15 @@ class Features(StripeObject):
346396
"account_management": AccountManagement,
347397
"account_onboarding": AccountOnboarding,
348398
"balances": Balances,
399+
"disputes_list": DisputesList,
349400
"documents": Documents,
350401
"financial_account": FinancialAccount,
351402
"financial_account_transactions": FinancialAccountTransactions,
352403
"issuing_card": IssuingCard,
353404
"issuing_cards_list": IssuingCardsList,
354405
"notification_banner": NotificationBanner,
355406
"payment_details": PaymentDetails,
407+
"payment_disputes": PaymentDisputes,
356408
"payments": Payments,
357409
"payouts": Payouts,
358410
"payouts_list": PayoutsList,
@@ -391,6 +443,12 @@ class CreateParamsComponents(TypedDict):
391443
"""
392444
Configuration for the balances embedded component.
393445
"""
446+
disputes_list: NotRequired[
447+
"AccountSession.CreateParamsComponentsDisputesList"
448+
]
449+
"""
450+
Configuration for the disputes list embedded component.
451+
"""
394452
documents: NotRequired[
395453
"AccountSession.CreateParamsComponentsDocuments"
396454
]
@@ -433,6 +491,12 @@ class CreateParamsComponents(TypedDict):
433491
"""
434492
Configuration for the payment details embedded component.
435493
"""
494+
payment_disputes: NotRequired[
495+
"AccountSession.CreateParamsComponentsPaymentDisputes"
496+
]
497+
"""
498+
Configuration for the payment disputes embedded component.
499+
"""
436500
payments: NotRequired["AccountSession.CreateParamsComponentsPayments"]
437501
"""
438502
Configuration for the payments embedded component.
@@ -538,6 +602,36 @@ class CreateParamsComponentsBalancesFeatures(TypedDict):
538602
Whether to allow creation of standard payouts. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
539603
"""
540604

605+
class CreateParamsComponentsDisputesList(TypedDict):
606+
enabled: bool
607+
"""
608+
Whether the embedded component is enabled.
609+
"""
610+
features: NotRequired[
611+
"AccountSession.CreateParamsComponentsDisputesListFeatures"
612+
]
613+
"""
614+
The list of features enabled in the embedded component.
615+
"""
616+
617+
class CreateParamsComponentsDisputesListFeatures(TypedDict):
618+
capture_payments: NotRequired[bool]
619+
"""
620+
Whether to allow capturing and cancelling payment intents. This is `true` by default.
621+
"""
622+
destination_on_behalf_of_charge_management: NotRequired[bool]
623+
"""
624+
Whether to allow connected accounts to manage destination charges that are created on behalf of them. This is `false` by default.
625+
"""
626+
dispute_management: NotRequired[bool]
627+
"""
628+
Whether to allow responding to disputes, including submitting evidence and accepting disputes. This is `true` by default.
629+
"""
630+
refund_management: NotRequired[bool]
631+
"""
632+
Whether to allow sending refunds. This is `true` by default.
633+
"""
634+
541635
class CreateParamsComponentsDocuments(TypedDict):
542636
enabled: bool
543637
"""
@@ -719,6 +813,32 @@ class CreateParamsComponentsPaymentDetailsFeatures(TypedDict):
719813
Whether to allow sending refunds. This is `true` by default.
720814
"""
721815

816+
class CreateParamsComponentsPaymentDisputes(TypedDict):
817+
enabled: bool
818+
"""
819+
Whether the embedded component is enabled.
820+
"""
821+
features: NotRequired[
822+
"AccountSession.CreateParamsComponentsPaymentDisputesFeatures"
823+
]
824+
"""
825+
The list of features enabled in the embedded component.
826+
"""
827+
828+
class CreateParamsComponentsPaymentDisputesFeatures(TypedDict):
829+
destination_on_behalf_of_charge_management: NotRequired[bool]
830+
"""
831+
Whether to allow connected accounts to manage destination charges that are created on behalf of them. This is `false` by default.
832+
"""
833+
dispute_management: NotRequired[bool]
834+
"""
835+
Whether to allow responding to disputes, including submitting evidence and accepting disputes. This is `true` by default.
836+
"""
837+
refund_management: NotRequired[bool]
838+
"""
839+
Whether to allow sending refunds. This is `true` by default.
840+
"""
841+
722842
class CreateParamsComponentsPayments(TypedDict):
723843
enabled: bool
724844
"""

stripe/_account_session_service.py

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@ class CreateParamsComponents(TypedDict):
4141
"""
4242
Configuration for the balances embedded component.
4343
"""
44+
disputes_list: NotRequired[
45+
"AccountSessionService.CreateParamsComponentsDisputesList"
46+
]
47+
"""
48+
Configuration for the disputes list embedded component.
49+
"""
4450
documents: NotRequired[
4551
"AccountSessionService.CreateParamsComponentsDocuments"
4652
]
@@ -83,6 +89,12 @@ class CreateParamsComponents(TypedDict):
8389
"""
8490
Configuration for the payment details embedded component.
8591
"""
92+
payment_disputes: NotRequired[
93+
"AccountSessionService.CreateParamsComponentsPaymentDisputes"
94+
]
95+
"""
96+
Configuration for the payment disputes embedded component.
97+
"""
8698
payments: NotRequired[
8799
"AccountSessionService.CreateParamsComponentsPayments"
88100
]
@@ -192,6 +204,36 @@ class CreateParamsComponentsBalancesFeatures(TypedDict):
192204
Whether to allow creation of standard payouts. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
193205
"""
194206

207+
class CreateParamsComponentsDisputesList(TypedDict):
208+
enabled: bool
209+
"""
210+
Whether the embedded component is enabled.
211+
"""
212+
features: NotRequired[
213+
"AccountSessionService.CreateParamsComponentsDisputesListFeatures"
214+
]
215+
"""
216+
The list of features enabled in the embedded component.
217+
"""
218+
219+
class CreateParamsComponentsDisputesListFeatures(TypedDict):
220+
capture_payments: NotRequired[bool]
221+
"""
222+
Whether to allow capturing and cancelling payment intents. This is `true` by default.
223+
"""
224+
destination_on_behalf_of_charge_management: NotRequired[bool]
225+
"""
226+
Whether to allow connected accounts to manage destination charges that are created on behalf of them. This is `false` by default.
227+
"""
228+
dispute_management: NotRequired[bool]
229+
"""
230+
Whether to allow responding to disputes, including submitting evidence and accepting disputes. This is `true` by default.
231+
"""
232+
refund_management: NotRequired[bool]
233+
"""
234+
Whether to allow sending refunds. This is `true` by default.
235+
"""
236+
195237
class CreateParamsComponentsDocuments(TypedDict):
196238
enabled: bool
197239
"""
@@ -373,6 +415,32 @@ class CreateParamsComponentsPaymentDetailsFeatures(TypedDict):
373415
Whether to allow sending refunds. This is `true` by default.
374416
"""
375417

418+
class CreateParamsComponentsPaymentDisputes(TypedDict):
419+
enabled: bool
420+
"""
421+
Whether the embedded component is enabled.
422+
"""
423+
features: NotRequired[
424+
"AccountSessionService.CreateParamsComponentsPaymentDisputesFeatures"
425+
]
426+
"""
427+
The list of features enabled in the embedded component.
428+
"""
429+
430+
class CreateParamsComponentsPaymentDisputesFeatures(TypedDict):
431+
destination_on_behalf_of_charge_management: NotRequired[bool]
432+
"""
433+
Whether to allow connected accounts to manage destination charges that are created on behalf of them. This is `false` by default.
434+
"""
435+
dispute_management: NotRequired[bool]
436+
"""
437+
Whether to allow responding to disputes, including submitting evidence and accepting disputes. This is `true` by default.
438+
"""
439+
refund_management: NotRequired[bool]
440+
"""
441+
Whether to allow sending refunds. This is `true` by default.
442+
"""
443+
376444
class CreateParamsComponentsPayments(TypedDict):
377445
enabled: bool
378446
"""

stripe/_api_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# -*- coding: utf-8 -*-
22
# File generated from our OpenAPI spec
33
class _ApiVersion:
4-
CURRENT = "2025-04-30.basil"
4+
CURRENT = "2025-05-28.basil"

0 commit comments

Comments
 (0)