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 API_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2025-07-30.basil
2025-08-27.basil
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1868
v1932
4 changes: 2 additions & 2 deletions stripe/_account.py
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ class Verification(StripeObject):
class Document(StripeObject):
back: Optional[ExpandableField["File"]]
"""
The back of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`.
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).
"""
details: Optional[str]
"""
Expand All @@ -586,7 +586,7 @@ class Document(StripeObject):
"""
front: Optional[ExpandableField["File"]]
"""
The front of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`.
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).
"""

document: Document
Expand Down
110 changes: 106 additions & 4 deletions stripe/_account_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,17 @@ class Features(StripeObject):
features: Features
_inner_class_types = {"features": Features}

class BalanceReport(StripeObject):
class Features(StripeObject):
pass

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

class Balances(StripeObject):
class Features(StripeObject):
disable_stripe_user_authentication: bool
Expand Down Expand Up @@ -334,6 +345,28 @@ class Features(StripeObject):
features: Features
_inner_class_types = {"features": Features}

class PayoutDetails(StripeObject):
class Features(StripeObject):
pass

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

class PayoutReconciliationReport(StripeObject):
class Features(StripeObject):
pass

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

class Payouts(StripeObject):
class Features(StripeObject):
disable_stripe_user_authentication: bool
Expand Down Expand Up @@ -399,6 +432,7 @@ class Features(StripeObject):

account_management: AccountManagement
account_onboarding: AccountOnboarding
balance_report: BalanceReport
balances: Balances
disputes_list: DisputesList
documents: Documents
Expand All @@ -411,13 +445,16 @@ class Features(StripeObject):
payment_details: PaymentDetails
payment_disputes: PaymentDisputes
payments: Payments
payout_details: PayoutDetails
payout_reconciliation_report: PayoutReconciliationReport
payouts: Payouts
payouts_list: PayoutsList
tax_registrations: TaxRegistrations
tax_settings: TaxSettings
_inner_class_types = {
"account_management": AccountManagement,
"account_onboarding": AccountOnboarding,
"balance_report": BalanceReport,
"balances": Balances,
"disputes_list": DisputesList,
"documents": Documents,
Expand All @@ -430,6 +467,8 @@ class Features(StripeObject):
"payment_details": PaymentDetails,
"payment_disputes": PaymentDisputes,
"payments": Payments,
"payout_details": PayoutDetails,
"payout_reconciliation_report": PayoutReconciliationReport,
"payouts": Payouts,
"payouts_list": PayoutsList,
"tax_registrations": TaxRegistrations,
Expand Down Expand Up @@ -463,6 +502,12 @@ class CreateParamsComponents(TypedDict):
"""
Configuration for the [account onboarding](https://docs.stripe.com/connect/supported-embedded-components/account-onboarding/) embedded component.
"""
balance_report: NotRequired[
"AccountSession.CreateParamsComponentsBalanceReport"
]
"""
Configuration for the [balance report](https://docs.stripe.com/connect/supported-embedded-components/financial-reports#balance-report) embedded component.
"""
balances: NotRequired["AccountSession.CreateParamsComponentsBalances"]
"""
Configuration for the [balances](https://docs.stripe.com/connect/supported-embedded-components/balances/) embedded component.
Expand Down Expand Up @@ -531,6 +576,18 @@ class CreateParamsComponents(TypedDict):
"""
Configuration for the [payments](https://docs.stripe.com/connect/supported-embedded-components/payments/) embedded component.
"""
payout_details: NotRequired[
"AccountSession.CreateParamsComponentsPayoutDetails"
]
"""
Configuration for the [payout details](https://docs.stripe.com/connect/supported-embedded-components/payout-details/) embedded component.
"""
payout_reconciliation_report: NotRequired[
"AccountSession.CreateParamsComponentsPayoutReconciliationReport"
]
"""
Configuration for the [payout reconciliation report](https://docs.stripe.com/connect/supported-embedded-components/financial-reports#payout-reconciliation-report) embedded component.
"""
payouts: NotRequired["AccountSession.CreateParamsComponentsPayouts"]
"""
Configuration for the [payouts](https://docs.stripe.com/connect/supported-embedded-components/payouts/) embedded component.
Expand Down Expand Up @@ -598,6 +655,21 @@ class CreateParamsComponentsAccountOnboardingFeatures(TypedDict):
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`.
"""

class CreateParamsComponentsBalanceReport(TypedDict):
enabled: bool
"""
Whether the embedded component is enabled.
"""
features: NotRequired[
"AccountSession.CreateParamsComponentsBalanceReportFeatures"
]
"""
An empty list, because this embedded component has no features.
"""

class CreateParamsComponentsBalanceReportFeatures(TypedDict):
pass

class CreateParamsComponentsBalances(TypedDict):
enabled: bool
"""
Expand Down Expand Up @@ -671,7 +743,7 @@ class CreateParamsComponentsDocuments(TypedDict):
"AccountSession.CreateParamsComponentsDocumentsFeatures"
]
"""
The list of features enabled in the embedded component.
An empty list, because this embedded component has no features.
"""

class CreateParamsComponentsDocumentsFeatures(TypedDict):
Expand Down Expand Up @@ -925,6 +997,36 @@ class CreateParamsComponentsPaymentsFeatures(TypedDict):
Whether sending refunds is enabled. This is `true` by default.
"""

class CreateParamsComponentsPayoutDetails(TypedDict):
enabled: bool
"""
Whether the embedded component is enabled.
"""
features: NotRequired[
"AccountSession.CreateParamsComponentsPayoutDetailsFeatures"
]
"""
An empty list, because this embedded component has no features.
"""

class CreateParamsComponentsPayoutDetailsFeatures(TypedDict):
pass

class CreateParamsComponentsPayoutReconciliationReport(TypedDict):
enabled: bool
"""
Whether the embedded component is enabled.
"""
features: NotRequired[
"AccountSession.CreateParamsComponentsPayoutReconciliationReportFeatures"
]
"""
An empty list, because this embedded component has no features.
"""

class CreateParamsComponentsPayoutReconciliationReportFeatures(TypedDict):
pass

class CreateParamsComponentsPayouts(TypedDict):
enabled: bool
"""
Expand Down Expand Up @@ -968,7 +1070,7 @@ class CreateParamsComponentsPayoutsList(TypedDict):
"AccountSession.CreateParamsComponentsPayoutsListFeatures"
]
"""
The list of features enabled in the embedded component.
An empty list, because this embedded component has no features.
"""

class CreateParamsComponentsPayoutsListFeatures(TypedDict):
Expand All @@ -983,7 +1085,7 @@ class CreateParamsComponentsTaxRegistrations(TypedDict):
"AccountSession.CreateParamsComponentsTaxRegistrationsFeatures"
]
"""
The list of features enabled in the embedded component.
An empty list, because this embedded component has no features.
"""

class CreateParamsComponentsTaxRegistrationsFeatures(TypedDict):
Expand All @@ -998,7 +1100,7 @@ class CreateParamsComponentsTaxSettings(TypedDict):
"AccountSession.CreateParamsComponentsTaxSettingsFeatures"
]
"""
The list of features enabled in the embedded component.
An empty list, because this embedded component has no features.
"""

class CreateParamsComponentsTaxSettingsFeatures(TypedDict):
Expand Down
71 changes: 67 additions & 4 deletions stripe/_account_session_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ class CreateParamsComponents(TypedDict):
"""
Configuration for the [account onboarding](https://docs.stripe.com/connect/supported-embedded-components/account-onboarding/) embedded component.
"""
balance_report: NotRequired[
"AccountSessionService.CreateParamsComponentsBalanceReport"
]
"""
Configuration for the [balance report](https://docs.stripe.com/connect/supported-embedded-components/financial-reports#balance-report) embedded component.
"""
balances: NotRequired[
"AccountSessionService.CreateParamsComponentsBalances"
]
Expand Down Expand Up @@ -107,6 +113,18 @@ class CreateParamsComponents(TypedDict):
"""
Configuration for the [payments](https://docs.stripe.com/connect/supported-embedded-components/payments/) embedded component.
"""
payout_details: NotRequired[
"AccountSessionService.CreateParamsComponentsPayoutDetails"
]
"""
Configuration for the [payout details](https://docs.stripe.com/connect/supported-embedded-components/payout-details/) embedded component.
"""
payout_reconciliation_report: NotRequired[
"AccountSessionService.CreateParamsComponentsPayoutReconciliationReport"
]
"""
Configuration for the [payout reconciliation report](https://docs.stripe.com/connect/supported-embedded-components/financial-reports#payout-reconciliation-report) embedded component.
"""
payouts: NotRequired[
"AccountSessionService.CreateParamsComponentsPayouts"
]
Expand Down Expand Up @@ -176,6 +194,21 @@ class CreateParamsComponentsAccountOnboardingFeatures(TypedDict):
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`.
"""

class CreateParamsComponentsBalanceReport(TypedDict):
enabled: bool
"""
Whether the embedded component is enabled.
"""
features: NotRequired[
"AccountSessionService.CreateParamsComponentsBalanceReportFeatures"
]
"""
An empty list, because this embedded component has no features.
"""

class CreateParamsComponentsBalanceReportFeatures(TypedDict):
pass

class CreateParamsComponentsBalances(TypedDict):
enabled: bool
"""
Expand Down Expand Up @@ -249,7 +282,7 @@ class CreateParamsComponentsDocuments(TypedDict):
"AccountSessionService.CreateParamsComponentsDocumentsFeatures"
]
"""
The list of features enabled in the embedded component.
An empty list, because this embedded component has no features.
"""

class CreateParamsComponentsDocumentsFeatures(TypedDict):
Expand Down Expand Up @@ -503,6 +536,36 @@ class CreateParamsComponentsPaymentsFeatures(TypedDict):
Whether sending refunds is enabled. This is `true` by default.
"""

class CreateParamsComponentsPayoutDetails(TypedDict):
enabled: bool
"""
Whether the embedded component is enabled.
"""
features: NotRequired[
"AccountSessionService.CreateParamsComponentsPayoutDetailsFeatures"
]
"""
An empty list, because this embedded component has no features.
"""

class CreateParamsComponentsPayoutDetailsFeatures(TypedDict):
pass

class CreateParamsComponentsPayoutReconciliationReport(TypedDict):
enabled: bool
"""
Whether the embedded component is enabled.
"""
features: NotRequired[
"AccountSessionService.CreateParamsComponentsPayoutReconciliationReportFeatures"
]
"""
An empty list, because this embedded component has no features.
"""

class CreateParamsComponentsPayoutReconciliationReportFeatures(TypedDict):
pass

class CreateParamsComponentsPayouts(TypedDict):
enabled: bool
"""
Expand Down Expand Up @@ -546,7 +609,7 @@ class CreateParamsComponentsPayoutsList(TypedDict):
"AccountSessionService.CreateParamsComponentsPayoutsListFeatures"
]
"""
The list of features enabled in the embedded component.
An empty list, because this embedded component has no features.
"""

class CreateParamsComponentsPayoutsListFeatures(TypedDict):
Expand All @@ -561,7 +624,7 @@ class CreateParamsComponentsTaxRegistrations(TypedDict):
"AccountSessionService.CreateParamsComponentsTaxRegistrationsFeatures"
]
"""
The list of features enabled in the embedded component.
An empty list, because this embedded component has no features.
"""

class CreateParamsComponentsTaxRegistrationsFeatures(TypedDict):
Expand All @@ -576,7 +639,7 @@ class CreateParamsComponentsTaxSettings(TypedDict):
"AccountSessionService.CreateParamsComponentsTaxSettingsFeatures"
]
"""
The list of features enabled in the embedded component.
An empty list, because this embedded component has no features.
"""

class CreateParamsComponentsTaxSettingsFeatures(TypedDict):
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 = "2025-07-30.basil"
CURRENT = "2025-08-27.basil"
CURRENT_MAJOR = "basil"
9 changes: 2 additions & 7 deletions stripe/_balance.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,9 @@ class Balance(SingletonAPIResource["Balance"]):
This is an object representing your Stripe balance. You can retrieve it to see
the balance currently on your Stripe account.
You can also retrieve the balance history, which contains a list of
[transactions](https://stripe.com/docs/reporting/balance-transaction-types) that contributed to the balance
(charges, payouts, and so forth).
The top-level `available` and `pending` comprise your "payments balance."
The available and pending amounts for each currency are broken down further by
payment source types.
Related guide: [Understanding Connect account balances](https://stripe.com/docs/connect/account-balances)
Related guide: [Balances and settlement time](https://stripe.com/docs/payments/balances), [Understanding Connect account balances](https://stripe.com/docs/connect/account-balances)
"""

OBJECT_NAME: ClassVar[Literal["balance"]] = "balance"
Expand Down
Loading