Skip to content

Commit 5ddab49

Browse files
Merge pull request #1833 from stripe/latest-codegen-private-preview
Update generated code for private-preview
2 parents cbca839 + c007dd1 commit 5ddab49

133 files changed

Lines changed: 14775 additions & 4375 deletions

File tree

Some content is hidden

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

CODEGEN_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
161b2a6978a9cd8c0c376d83ae012fd5a7da2fe1
1+
088388aa159596ba4e240aeb0bb65d5bb4a562ab

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2315
1+
v2323

stripe/_account_session.py

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,70 @@ class Features(StripeObject):
267267
features: Features
268268
_inner_class_types = {"features": Features}
269269

270+
class FinancialAccounts(StripeObject):
271+
class Features(StripeObject):
272+
bill_management: bool
273+
"""
274+
Whether to allow bill management features.
275+
"""
276+
card_management: bool
277+
"""
278+
Whether to allow card management features.
279+
"""
280+
disable_stripe_user_authentication: bool
281+
"""
282+
Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. This is `false` by default.
283+
"""
284+
edit_payout_schedule: bool
285+
"""
286+
Whether to allow payout schedule to be changed. Defaults to `true` when `controller.losses.payments` is set to `stripe` for the account, otherwise `false`.
287+
"""
288+
send_money: bool
289+
"""
290+
Whether to enable the send money feature that grants access to the v2 CreateOutboundPayment API.
291+
"""
292+
293+
enabled: bool
294+
"""
295+
Whether the embedded component is enabled.
296+
"""
297+
features: Features
298+
_inner_class_types = {"features": Features}
299+
300+
class FinancialAccountsTransactions(StripeObject):
301+
class Features(StripeObject):
302+
capture_payments: bool
303+
"""
304+
Whether to allow capturing and cancelling payment intents. This is `true` by default.
305+
"""
306+
card_management: bool
307+
"""
308+
Whether to allow card management features.
309+
"""
310+
card_spend_dispute_management: bool
311+
"""
312+
Whether to allow card spend dispute management features.
313+
"""
314+
destination_on_behalf_of_charge_management: bool
315+
"""
316+
Whether connected accounts can manage destination charges that are created on behalf of them. This is `false` by default.
317+
"""
318+
dispute_management: bool
319+
"""
320+
Whether responding to disputes is enabled, including submitting evidence and accepting disputes. This is `true` by default.
321+
"""
322+
refund_management: bool
323+
"""
324+
Whether sending refunds is enabled. This is `true` by default.
325+
"""
326+
327+
enabled: bool
328+
"""
329+
Whether the embedded component is enabled.
330+
"""
331+
features: Features
332+
_inner_class_types = {"features": Features}
333+
270334
class InstantPayoutsPromotion(StripeObject):
271335
class Features(StripeObject):
272336
disable_stripe_user_authentication: bool
@@ -522,6 +586,24 @@ class Features(StripeObject):
522586
features: Features
523587
_inner_class_types = {"features": Features}
524588

589+
class RecipientsList(StripeObject):
590+
class Features(StripeObject):
591+
disable_stripe_user_authentication: bool
592+
"""
593+
Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. This is `false` by default.
594+
"""
595+
send_money: bool
596+
"""
597+
Whether to allow sending money.
598+
"""
599+
600+
enabled: bool
601+
"""
602+
Whether the embedded component is enabled.
603+
"""
604+
features: Features
605+
_inner_class_types = {"features": Features}
606+
525607
class TaxRegistrations(StripeObject):
526608
class Features(StripeObject):
527609
pass
@@ -593,6 +675,16 @@ class Features(StripeObject):
593675
Configuration for the [financial account rewards](https://docs.stripe.com/connect/supported-embedded-components/financial-account-rewards/) embedded component.
594676
"""
595677
financial_account_transactions: FinancialAccountTransactions
678+
financial_accounts: Optional[FinancialAccounts]
679+
"""
680+
Configuration for the [financial accounts](https://docs.stripe.com/connect/supported-embedded-components/financial-accounts/) embedded component.
681+
"""
682+
financial_accounts_transactions: Optional[
683+
FinancialAccountsTransactions
684+
]
685+
"""
686+
Configuration for the [financial accounts transactions](https://docs.stripe.com/connect/supported-embedded-components/financial-accounts-transactions/) embedded component.
687+
"""
596688
instant_payouts_promotion: InstantPayoutsPromotion
597689
issuing_card: IssuingCard
598690
issuing_cards_list: IssuingCardsList
@@ -612,6 +704,10 @@ class Features(StripeObject):
612704
payout_reconciliation_report: PayoutReconciliationReport
613705
payouts: Payouts
614706
payouts_list: PayoutsList
707+
recipients_list: Optional[RecipientsList]
708+
"""
709+
Configuration for the [recipients list](https://docs.stripe.com/connect/supported-embedded-components/recipients-list/) embedded component.
710+
"""
615711
tax_registrations: TaxRegistrations
616712
tax_settings: TaxSettings
617713
terminal_hardware_orders: Optional[TerminalHardwareOrders]
@@ -638,6 +734,8 @@ class Features(StripeObject):
638734
"financial_account": FinancialAccount,
639735
"financial_account_rewards": FinancialAccountRewards,
640736
"financial_account_transactions": FinancialAccountTransactions,
737+
"financial_accounts": FinancialAccounts,
738+
"financial_accounts_transactions": FinancialAccountsTransactions,
641739
"instant_payouts_promotion": InstantPayoutsPromotion,
642740
"issuing_card": IssuingCard,
643741
"issuing_cards_list": IssuingCardsList,
@@ -651,6 +749,7 @@ class Features(StripeObject):
651749
"payout_reconciliation_report": PayoutReconciliationReport,
652750
"payouts": Payouts,
653751
"payouts_list": PayoutsList,
752+
"recipients_list": RecipientsList,
654753
"tax_registrations": TaxRegistrations,
655754
"tax_settings": TaxSettings,
656755
"terminal_hardware_orders": TerminalHardwareOrders,

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 = "2026-06-10.preview"
4+
CURRENT = "2026-06-24.preview"

stripe/_charge.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1341,6 +1341,14 @@ class Balance(StripeObject):
13411341
"""
13421342
The last four digits of the gift card number.
13431343
"""
1344+
location: Optional[str]
1345+
"""
1346+
ID of the [location](https://docs.stripe.com/api/terminal/locations) that this transaction's reader is assigned to.
1347+
"""
1348+
reader: Optional[str]
1349+
"""
1350+
ID of the [reader](https://docs.stripe.com/api/terminal/readers) this transaction was made on.
1351+
"""
13441352
transaction_id: str
13451353
"""
13461354
The transaction ID from the gift card processor.

stripe/_event.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ class Request(StripeObject):
155155
"application_fee.refunded",
156156
"balance.available",
157157
"balance_settings.updated",
158+
"billing.alert.recovered",
158159
"billing.alert.triggered",
159160
"billing.credit_grant.created",
160161
"billing_portal.configuration.created",
@@ -301,6 +302,7 @@ class Request(StripeObject):
301302
"payment_intent.amount_capturable_updated",
302303
"payment_intent.canceled",
303304
"payment_intent.created",
305+
"payment_intent.expired",
304306
"payment_intent.partially_funded",
305307
"payment_intent.payment_failed",
306308
"payment_intent.processing",
@@ -436,8 +438,6 @@ class Request(StripeObject):
436438
"treasury.received_credit.succeeded",
437439
"treasury.received_debit.created",
438440
"invoice_payment.detached",
439-
"billing.alert.recovered",
440-
"payment_intent.expired",
441441
"billing.credit_balance_transaction.created",
442442
"billing.credit_grant.updated",
443443
"billing.meter.created",

0 commit comments

Comments
 (0)