Skip to content

Commit 51b325b

Browse files
Update generated code for v1932 and 2025-08-27.basil (#1544)
Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Co-authored-by: Ramya Rao <[email protected]>
1 parent 98ce25a commit 51b325b

Some content is hidden

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

52 files changed

+1233
-166
lines changed

API_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025-07-30.basil
1+
2025-08-27.basil

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1868
1+
v1932

stripe/_account.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ class Verification(StripeObject):
574574
class Document(StripeObject):
575575
back: Optional[ExpandableField["File"]]
576576
"""
577-
The back of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`.
577+
The back of a document returned by a [file upload](https://stripe.com/docs/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).
578578
"""
579579
details: Optional[str]
580580
"""
@@ -586,7 +586,7 @@ class Document(StripeObject):
586586
"""
587587
front: Optional[ExpandableField["File"]]
588588
"""
589-
The front of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`.
589+
The front of a document returned by a [file upload](https://stripe.com/docs/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).
590590
"""
591591

592592
document: Document

stripe/_account_session.py

Lines changed: 106 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,17 @@ class Features(StripeObject):
5757
features: Features
5858
_inner_class_types = {"features": Features}
5959

60+
class BalanceReport(StripeObject):
61+
class Features(StripeObject):
62+
pass
63+
64+
enabled: bool
65+
"""
66+
Whether the embedded component is enabled.
67+
"""
68+
features: Features
69+
_inner_class_types = {"features": Features}
70+
6071
class Balances(StripeObject):
6172
class Features(StripeObject):
6273
disable_stripe_user_authentication: bool
@@ -334,6 +345,28 @@ class Features(StripeObject):
334345
features: Features
335346
_inner_class_types = {"features": Features}
336347

348+
class PayoutDetails(StripeObject):
349+
class Features(StripeObject):
350+
pass
351+
352+
enabled: bool
353+
"""
354+
Whether the embedded component is enabled.
355+
"""
356+
features: Features
357+
_inner_class_types = {"features": Features}
358+
359+
class PayoutReconciliationReport(StripeObject):
360+
class Features(StripeObject):
361+
pass
362+
363+
enabled: bool
364+
"""
365+
Whether the embedded component is enabled.
366+
"""
367+
features: Features
368+
_inner_class_types = {"features": Features}
369+
337370
class Payouts(StripeObject):
338371
class Features(StripeObject):
339372
disable_stripe_user_authentication: bool
@@ -399,6 +432,7 @@ class Features(StripeObject):
399432

400433
account_management: AccountManagement
401434
account_onboarding: AccountOnboarding
435+
balance_report: BalanceReport
402436
balances: Balances
403437
disputes_list: DisputesList
404438
documents: Documents
@@ -411,13 +445,16 @@ class Features(StripeObject):
411445
payment_details: PaymentDetails
412446
payment_disputes: PaymentDisputes
413447
payments: Payments
448+
payout_details: PayoutDetails
449+
payout_reconciliation_report: PayoutReconciliationReport
414450
payouts: Payouts
415451
payouts_list: PayoutsList
416452
tax_registrations: TaxRegistrations
417453
tax_settings: TaxSettings
418454
_inner_class_types = {
419455
"account_management": AccountManagement,
420456
"account_onboarding": AccountOnboarding,
457+
"balance_report": BalanceReport,
421458
"balances": Balances,
422459
"disputes_list": DisputesList,
423460
"documents": Documents,
@@ -430,6 +467,8 @@ class Features(StripeObject):
430467
"payment_details": PaymentDetails,
431468
"payment_disputes": PaymentDisputes,
432469
"payments": Payments,
470+
"payout_details": PayoutDetails,
471+
"payout_reconciliation_report": PayoutReconciliationReport,
433472
"payouts": Payouts,
434473
"payouts_list": PayoutsList,
435474
"tax_registrations": TaxRegistrations,
@@ -463,6 +502,12 @@ class CreateParamsComponents(TypedDict):
463502
"""
464503
Configuration for the [account onboarding](https://docs.stripe.com/connect/supported-embedded-components/account-onboarding/) embedded component.
465504
"""
505+
balance_report: NotRequired[
506+
"AccountSession.CreateParamsComponentsBalanceReport"
507+
]
508+
"""
509+
Configuration for the [balance report](https://docs.stripe.com/connect/supported-embedded-components/financial-reports#balance-report) embedded component.
510+
"""
466511
balances: NotRequired["AccountSession.CreateParamsComponentsBalances"]
467512
"""
468513
Configuration for the [balances](https://docs.stripe.com/connect/supported-embedded-components/balances/) embedded component.
@@ -531,6 +576,18 @@ class CreateParamsComponents(TypedDict):
531576
"""
532577
Configuration for the [payments](https://docs.stripe.com/connect/supported-embedded-components/payments/) embedded component.
533578
"""
579+
payout_details: NotRequired[
580+
"AccountSession.CreateParamsComponentsPayoutDetails"
581+
]
582+
"""
583+
Configuration for the [payout details](https://docs.stripe.com/connect/supported-embedded-components/payout-details/) embedded component.
584+
"""
585+
payout_reconciliation_report: NotRequired[
586+
"AccountSession.CreateParamsComponentsPayoutReconciliationReport"
587+
]
588+
"""
589+
Configuration for the [payout reconciliation report](https://docs.stripe.com/connect/supported-embedded-components/financial-reports#payout-reconciliation-report) embedded component.
590+
"""
534591
payouts: NotRequired["AccountSession.CreateParamsComponentsPayouts"]
535592
"""
536593
Configuration for the [payouts](https://docs.stripe.com/connect/supported-embedded-components/payouts/) embedded component.
@@ -598,6 +655,21 @@ class CreateParamsComponentsAccountOnboardingFeatures(TypedDict):
598655
Whether external account collection is enabled. This feature can only be `false` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `true`.
599656
"""
600657

658+
class CreateParamsComponentsBalanceReport(TypedDict):
659+
enabled: bool
660+
"""
661+
Whether the embedded component is enabled.
662+
"""
663+
features: NotRequired[
664+
"AccountSession.CreateParamsComponentsBalanceReportFeatures"
665+
]
666+
"""
667+
An empty list, because this embedded component has no features.
668+
"""
669+
670+
class CreateParamsComponentsBalanceReportFeatures(TypedDict):
671+
pass
672+
601673
class CreateParamsComponentsBalances(TypedDict):
602674
enabled: bool
603675
"""
@@ -671,7 +743,7 @@ class CreateParamsComponentsDocuments(TypedDict):
671743
"AccountSession.CreateParamsComponentsDocumentsFeatures"
672744
]
673745
"""
674-
The list of features enabled in the embedded component.
746+
An empty list, because this embedded component has no features.
675747
"""
676748

677749
class CreateParamsComponentsDocumentsFeatures(TypedDict):
@@ -925,6 +997,36 @@ class CreateParamsComponentsPaymentsFeatures(TypedDict):
925997
Whether sending refunds is enabled. This is `true` by default.
926998
"""
927999

1000+
class CreateParamsComponentsPayoutDetails(TypedDict):
1001+
enabled: bool
1002+
"""
1003+
Whether the embedded component is enabled.
1004+
"""
1005+
features: NotRequired[
1006+
"AccountSession.CreateParamsComponentsPayoutDetailsFeatures"
1007+
]
1008+
"""
1009+
An empty list, because this embedded component has no features.
1010+
"""
1011+
1012+
class CreateParamsComponentsPayoutDetailsFeatures(TypedDict):
1013+
pass
1014+
1015+
class CreateParamsComponentsPayoutReconciliationReport(TypedDict):
1016+
enabled: bool
1017+
"""
1018+
Whether the embedded component is enabled.
1019+
"""
1020+
features: NotRequired[
1021+
"AccountSession.CreateParamsComponentsPayoutReconciliationReportFeatures"
1022+
]
1023+
"""
1024+
An empty list, because this embedded component has no features.
1025+
"""
1026+
1027+
class CreateParamsComponentsPayoutReconciliationReportFeatures(TypedDict):
1028+
pass
1029+
9281030
class CreateParamsComponentsPayouts(TypedDict):
9291031
enabled: bool
9301032
"""
@@ -968,7 +1070,7 @@ class CreateParamsComponentsPayoutsList(TypedDict):
9681070
"AccountSession.CreateParamsComponentsPayoutsListFeatures"
9691071
]
9701072
"""
971-
The list of features enabled in the embedded component.
1073+
An empty list, because this embedded component has no features.
9721074
"""
9731075

9741076
class CreateParamsComponentsPayoutsListFeatures(TypedDict):
@@ -983,7 +1085,7 @@ class CreateParamsComponentsTaxRegistrations(TypedDict):
9831085
"AccountSession.CreateParamsComponentsTaxRegistrationsFeatures"
9841086
]
9851087
"""
986-
The list of features enabled in the embedded component.
1088+
An empty list, because this embedded component has no features.
9871089
"""
9881090

9891091
class CreateParamsComponentsTaxRegistrationsFeatures(TypedDict):
@@ -998,7 +1100,7 @@ class CreateParamsComponentsTaxSettings(TypedDict):
9981100
"AccountSession.CreateParamsComponentsTaxSettingsFeatures"
9991101
]
10001102
"""
1001-
The list of features enabled in the embedded component.
1103+
An empty list, because this embedded component has no features.
10021104
"""
10031105

10041106
class CreateParamsComponentsTaxSettingsFeatures(TypedDict):

stripe/_account_session_service.py

Lines changed: 67 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ class CreateParamsComponents(TypedDict):
3535
"""
3636
Configuration for the [account onboarding](https://docs.stripe.com/connect/supported-embedded-components/account-onboarding/) embedded component.
3737
"""
38+
balance_report: NotRequired[
39+
"AccountSessionService.CreateParamsComponentsBalanceReport"
40+
]
41+
"""
42+
Configuration for the [balance report](https://docs.stripe.com/connect/supported-embedded-components/financial-reports#balance-report) embedded component.
43+
"""
3844
balances: NotRequired[
3945
"AccountSessionService.CreateParamsComponentsBalances"
4046
]
@@ -107,6 +113,18 @@ class CreateParamsComponents(TypedDict):
107113
"""
108114
Configuration for the [payments](https://docs.stripe.com/connect/supported-embedded-components/payments/) embedded component.
109115
"""
116+
payout_details: NotRequired[
117+
"AccountSessionService.CreateParamsComponentsPayoutDetails"
118+
]
119+
"""
120+
Configuration for the [payout details](https://docs.stripe.com/connect/supported-embedded-components/payout-details/) embedded component.
121+
"""
122+
payout_reconciliation_report: NotRequired[
123+
"AccountSessionService.CreateParamsComponentsPayoutReconciliationReport"
124+
]
125+
"""
126+
Configuration for the [payout reconciliation report](https://docs.stripe.com/connect/supported-embedded-components/financial-reports#payout-reconciliation-report) embedded component.
127+
"""
110128
payouts: NotRequired[
111129
"AccountSessionService.CreateParamsComponentsPayouts"
112130
]
@@ -176,6 +194,21 @@ class CreateParamsComponentsAccountOnboardingFeatures(TypedDict):
176194
Whether external account collection is enabled. This feature can only be `false` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `true`.
177195
"""
178196

197+
class CreateParamsComponentsBalanceReport(TypedDict):
198+
enabled: bool
199+
"""
200+
Whether the embedded component is enabled.
201+
"""
202+
features: NotRequired[
203+
"AccountSessionService.CreateParamsComponentsBalanceReportFeatures"
204+
]
205+
"""
206+
An empty list, because this embedded component has no features.
207+
"""
208+
209+
class CreateParamsComponentsBalanceReportFeatures(TypedDict):
210+
pass
211+
179212
class CreateParamsComponentsBalances(TypedDict):
180213
enabled: bool
181214
"""
@@ -249,7 +282,7 @@ class CreateParamsComponentsDocuments(TypedDict):
249282
"AccountSessionService.CreateParamsComponentsDocumentsFeatures"
250283
]
251284
"""
252-
The list of features enabled in the embedded component.
285+
An empty list, because this embedded component has no features.
253286
"""
254287

255288
class CreateParamsComponentsDocumentsFeatures(TypedDict):
@@ -503,6 +536,36 @@ class CreateParamsComponentsPaymentsFeatures(TypedDict):
503536
Whether sending refunds is enabled. This is `true` by default.
504537
"""
505538

539+
class CreateParamsComponentsPayoutDetails(TypedDict):
540+
enabled: bool
541+
"""
542+
Whether the embedded component is enabled.
543+
"""
544+
features: NotRequired[
545+
"AccountSessionService.CreateParamsComponentsPayoutDetailsFeatures"
546+
]
547+
"""
548+
An empty list, because this embedded component has no features.
549+
"""
550+
551+
class CreateParamsComponentsPayoutDetailsFeatures(TypedDict):
552+
pass
553+
554+
class CreateParamsComponentsPayoutReconciliationReport(TypedDict):
555+
enabled: bool
556+
"""
557+
Whether the embedded component is enabled.
558+
"""
559+
features: NotRequired[
560+
"AccountSessionService.CreateParamsComponentsPayoutReconciliationReportFeatures"
561+
]
562+
"""
563+
An empty list, because this embedded component has no features.
564+
"""
565+
566+
class CreateParamsComponentsPayoutReconciliationReportFeatures(TypedDict):
567+
pass
568+
506569
class CreateParamsComponentsPayouts(TypedDict):
507570
enabled: bool
508571
"""
@@ -546,7 +609,7 @@ class CreateParamsComponentsPayoutsList(TypedDict):
546609
"AccountSessionService.CreateParamsComponentsPayoutsListFeatures"
547610
]
548611
"""
549-
The list of features enabled in the embedded component.
612+
An empty list, because this embedded component has no features.
550613
"""
551614

552615
class CreateParamsComponentsPayoutsListFeatures(TypedDict):
@@ -561,7 +624,7 @@ class CreateParamsComponentsTaxRegistrations(TypedDict):
561624
"AccountSessionService.CreateParamsComponentsTaxRegistrationsFeatures"
562625
]
563626
"""
564-
The list of features enabled in the embedded component.
627+
An empty list, because this embedded component has no features.
565628
"""
566629

567630
class CreateParamsComponentsTaxRegistrationsFeatures(TypedDict):
@@ -576,7 +639,7 @@ class CreateParamsComponentsTaxSettings(TypedDict):
576639
"AccountSessionService.CreateParamsComponentsTaxSettingsFeatures"
577640
]
578641
"""
579-
The list of features enabled in the embedded component.
642+
An empty list, because this embedded component has no features.
580643
"""
581644

582645
class CreateParamsComponentsTaxSettingsFeatures(TypedDict):

stripe/_api_version.py

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

stripe/_balance.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,9 @@ class Balance(SingletonAPIResource["Balance"]):
1212
This is an object representing your Stripe balance. You can retrieve it to see
1313
the balance currently on your Stripe account.
1414
15-
You can also retrieve the balance history, which contains a list of
16-
[transactions](https://stripe.com/docs/reporting/balance-transaction-types) that contributed to the balance
17-
(charges, payouts, and so forth).
15+
The top-level `available` and `pending` comprise your "payments balance."
1816
19-
The available and pending amounts for each currency are broken down further by
20-
payment source types.
21-
22-
Related guide: [Understanding Connect account balances](https://stripe.com/docs/connect/account-balances)
17+
Related guide: [Balances and settlement time](https://stripe.com/docs/payments/balances), [Understanding Connect account balances](https://stripe.com/docs/connect/account-balances)
2318
"""
2419

2520
OBJECT_NAME: ClassVar[Literal["balance"]] = "balance"

0 commit comments

Comments
 (0)