Skip to content

Commit 48036f4

Browse files
authored
Merge branch 'master' into RUN_DEVSDK-2440
2 parents 1fd5e5b + 6c0388f commit 48036f4

129 files changed

Lines changed: 4322 additions & 248 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.

CHANGELOG.md

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,58 @@
1+
## 15.2.0 - 2026-05-27
2+
This release changes the pinned API version to 2026-05-27.dahlia.
3+
4+
* [#1816](https://github.com/stripe/stripe-python/pull/1816) Update generated code
5+
* Add support for new resource `v2.commerce.ProductCatalogImport`
6+
* Add support for `create` and `retrieve` methods on resource `v2.commerce.ProductCatalogImport`
7+
* Add support for `bizum_payments` and `scalapay_payments` on `Account.Capability`, `AccountCreateParamsCapability`, and `AccountModifyParamsCapability`
8+
* Add support for `automatic_transfer_rules_by_currency` on `BalanceSettings.Payment.Payout` and `BalanceSettingsModifyParamsPaymentPayout`
9+
* Add support for `start_of_day` on `BalanceSettings.Payment.SettlementTiming` and `BalanceSettingsModifyParamsPaymentSettlementTiming`
10+
* Add support for `description` on `ChargeCreateParamsTransferDatum`, `PaymentIntent.TransferDatum`, `PaymentIntentCreateParamsTransferDatum`, and `PaymentIntentModifyParamsTransferDatum`
11+
* Add support for `bizum` on `Charge.PaymentMethodDetail`, `ConfirmationToken.PaymentMethodPreview`, `ConfirmationTokenCreateParamsPaymentMethodDatum`, `PaymentAttemptRecord.PaymentMethodDetail`, `PaymentIntent.PaymentMethodOption`, `PaymentIntentConfirmParamsPaymentMethodDatum`, `PaymentIntentConfirmParamsPaymentMethodOption`, `PaymentIntentCreateParamsPaymentMethodDatum`, `PaymentIntentCreateParamsPaymentMethodOption`, `PaymentIntentModifyParamsPaymentMethodDatum`, `PaymentIntentModifyParamsPaymentMethodOption`, `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationModifyParams`, `PaymentMethodConfiguration`, `PaymentMethodCreateParams`, `PaymentMethod`, `PaymentRecord.PaymentMethodDetail`, `SetupIntent.PaymentMethodOption`, `SetupIntentConfirmParamsPaymentMethodDatum`, `SetupIntentConfirmParamsPaymentMethodOption`, `SetupIntentCreateParamsPaymentMethodDatum`, `SetupIntentCreateParamsPaymentMethodOption`, `SetupIntentModifyParamsPaymentMethodDatum`, and `SetupIntentModifyParamsPaymentMethodOption`
12+
* Add support for `scalapay` on `Charge.PaymentMethodDetail`, `Checkout.Session.PaymentMethodOption`, `ConfirmationToken.PaymentMethodPreview`, `ConfirmationTokenCreateParamsPaymentMethodDatum`, `PaymentAttemptRecord.PaymentMethodDetail`, `PaymentIntent.PaymentMethodOption`, `PaymentIntentConfirmParamsPaymentMethodDatum`, `PaymentIntentConfirmParamsPaymentMethodOption`, `PaymentIntentCreateParamsPaymentMethodDatum`, `PaymentIntentCreateParamsPaymentMethodOption`, `PaymentIntentModifyParamsPaymentMethodDatum`, `PaymentIntentModifyParamsPaymentMethodOption`, `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationModifyParams`, `PaymentMethodConfiguration`, `PaymentMethodCreateParams`, `PaymentMethod`, `PaymentRecord.PaymentMethodDetail`, `Refund.DestinationDetail`, `SetupIntentConfirmParamsPaymentMethodDatum`, `SetupIntentCreateParamsPaymentMethodDatum`, `SetupIntentModifyParamsPaymentMethodDatum`, and `checkout.SessionCreateParamsPaymentMethodOption`
13+
* Add support for `mandate` on `Charge.PaymentMethodDetail.Twint`, `PaymentAttemptRecord.PaymentMethodDetail.Twint`, and `PaymentRecord.PaymentMethodDetail.Twint`
14+
* Add support for new values `bizum` and `scalapay` on enums `PaymentIntentConfirmParams.excluded_payment_method_types`, `PaymentIntentCreateParams.excluded_payment_method_types`, `PaymentIntentModifyParams.excluded_payment_method_types`, `SetupIntentCreateParams.excluded_payment_method_types`, `SetupIntentModifyParams.excluded_payment_method_types`, and `checkout.SessionCreateParams.excluded_payment_method_types`
15+
* Change type of `PaymentIntentConfirmParamsPaymentMethodOptionTwint.setup_future_usage`, `PaymentIntentCreateParamsPaymentMethodOptionTwint.setup_future_usage`, `PaymentIntentModifyParamsPaymentMethodOptionTwint.setup_future_usage`, and `checkout.SessionCreateParamsPaymentMethodOptionTwint.setup_future_usage` from `literal('none')` to `enum('none'|'off_session')`
16+
* Add support for new values `bizum` and `scalapay` on enum `checkout.SessionCreateParams.payment_method_types`
17+
* ⚠️ Change type of `Checkout.Session.PaymentMethodOption.Twint.setup_future_usage` and `PaymentIntent.PaymentMethodOption.Twint.setup_future_usage` from `literal('none')` to `enum('none'|'off_session')`
18+
* Add support for new values `bizum` and `scalapay` on enums `ConfirmationTokenCreateParamsPaymentMethodDatum.type`, `PaymentIntentConfirmParamsPaymentMethodDatum.type`, `PaymentIntentCreateParamsPaymentMethodDatum.type`, `PaymentIntentModifyParamsPaymentMethodDatum.type`, `SetupIntentConfirmParamsPaymentMethodDatum.type`, `SetupIntentCreateParamsPaymentMethodDatum.type`, and `SetupIntentModifyParamsPaymentMethodDatum.type`
19+
* ⚠️ Add support for new values `bizum` and `scalapay` on enums `ConfirmationToken.PaymentMethodPreview.type` and `PaymentMethod.type`
20+
* Add support for new values `bizum` and `scalapay` on enums `CustomerListPaymentMethodsParams.type`, `PaymentMethodCreateParams.type`, and `PaymentMethodListParams.type`
21+
* Add support for `credited_items` on `InvoiceItem.ProrationDetail`
22+
* Add support for new value `twint` on enums `InvoiceCreateParamsPaymentSetting.payment_method_types`, `InvoiceModifyParamsPaymentSetting.payment_method_types`, `SubscriptionCreateParamsPaymentSetting.payment_method_types`, and `SubscriptionModifyParamsPaymentSetting.payment_method_types`
23+
* Add support for `discountable` on `InvoiceCreatePreviewParamsScheduleDetailPhaseAddInvoiceItem`, `SubscriptionCreateParamsAddInvoiceItem`, `SubscriptionModifyParamsAddInvoiceItem`, `SubscriptionSchedule.Phase.AddInvoiceItem`, `SubscriptionScheduleCreateParamsPhaseAddInvoiceItem`, and `SubscriptionScheduleModifyParamsPhaseAddInvoiceItem`
24+
* Add support for `billing_schedules` on `InvoiceCreatePreviewParamsSubscriptionDetail`, `SubscriptionCreateParams`, `SubscriptionModifyParams`, and `Subscription`
25+
* Add support for new value `max_billed_until` on enums `InvoiceCreatePreviewParamsSubscriptionDetail.cancel_at`, `SubscriptionCreateParams.cancel_at`, and `SubscriptionModifyParams.cancel_at`
26+
* Add support for `amount_paid_off_stripe` on `Invoice`
27+
* ⚠️ Add support for new value `twint` on enums `Invoice.PaymentSetting.payment_method_types` and `Subscription.PaymentSetting.payment_method_types`
28+
* Add support for `twint` on `Mandate.PaymentMethodDetail` and `SetupAttempt.PaymentMethodDetail`
29+
* Add support for `metadata` on `PaymentIntent.TransferDatum`, `PaymentIntentCreateParamsTransferDatum`, `PaymentIntentModifyParamsTransferDatum`, and `Subscription.PendingUpdate`
30+
* Add support for `payment_data` on `PaymentIntent.TransferDatum`, `PaymentIntentCreateParamsTransferDatum`, and `PaymentIntentModifyParamsTransferDatum`
31+
* ⚠️ Add support for new values `bizum` and `scalapay` on enums `PaymentIntent.excluded_payment_method_types` and `SetupIntent.excluded_payment_method_types`
32+
* Add support for `blik_authorize` on `PaymentIntent.NextAction` and `SetupIntent.NextAction`
33+
* Add support for `payment_method_options` on `PaymentLinkCreateParams`, `PaymentLinkModifyParams`, and `PaymentLink`
34+
* Add support for new value `bizum` on enums `PaymentLinkCreateParams.payment_method_types` and `PaymentLinkModifyParams.payment_method_types`
35+
* ⚠️ Add support for new value `bizum` on enum `PaymentLink.payment_method_types`
36+
* Add support for `active` on `PaymentMethodConfigurationListParams`
37+
* Add support for `billed_until` on `SubscriptionItem`
38+
* Add support for `discount` and `discounts` on `Subscription.PendingUpdate`
39+
* Add support for `verifone_m425`, `verifone_p630`, `verifone_ux700`, and `verifone_v660p` on `Terminal.Configuration`, `terminal.ConfigurationCreateParams`, and `terminal.ConfigurationModifyParams`
40+
* Add support for new values `simulated_verifone_m425`, `simulated_verifone_p630`, `simulated_verifone_ux700`, `simulated_verifone_v660p`, `verifone_m425`, `verifone_p630`, `verifone_ux700`, and `verifone_v660p` on enum `terminal.ReaderListParams.device_type`
41+
* Add support for `api_error` and `print_content` on `Terminal.Reader.Action`
42+
* ⚠️ Add support for new value `print_content` on enum `Terminal.Reader.Action.type`
43+
* ⚠️ Add support for new values `simulated_verifone_m425`, `simulated_verifone_p630`, `simulated_verifone_ux700`, `simulated_verifone_v660p`, `verifone_m425`, `verifone_p630`, `verifone_ux700`, and `verifone_v660p` on enum `Terminal.Reader.device_type`
44+
* Add support for `customer` on `test_helpers.TestClockCreateParams`
45+
* Add support for new value `2026-05-27.dahlia` on enum `WebhookEndpointCreateParams.api_version`
46+
* Add support for `signer` on `V2.Core.Account.Identity.BusinessDetail.Document.ProofOfRegistration`, `V2.Core.Account.Identity.BusinessDetail.Document.ProofOfUltimateBeneficialOwnership`, `v2.core.AccountCreateParamsIdentityBusinessDetailDocumentProofOfRegistration`, `v2.core.AccountCreateParamsIdentityBusinessDetailDocumentProofOfUltimateBeneficialOwnership`, `v2.core.AccountModifyParamsIdentityBusinessDetailDocumentProofOfRegistration`, `v2.core.AccountModifyParamsIdentityBusinessDetailDocumentProofOfUltimateBeneficialOwnership`, `v2.core.AccountTokenCreateParamsIdentityBusinessDetailDocumentProofOfRegistration`, and `v2.core.AccountTokenCreateParamsIdentityBusinessDetailDocumentProofOfUltimateBeneficialOwnership`
47+
* Add support for `azure_event_grid` on `V2.Core.EventDestination` and `v2.core.EventDestinationCreateParams`
48+
* ⚠️ Add support for new value `no_azure_partner_topic_exists` on enum `V2.Core.EventDestination.StatusDetail.Disabled.reason`
49+
* ⚠️ Add support for new value `azure_event_grid` on enum `V2.Core.EventDestination.type`
50+
* Add support for new value `azure_event_grid` on enum `v2.core.EventDestinationCreateParams.type`
51+
* ⚠️ Add support for new value `meter_event_value_too_many_digits` on enums `EventsV1BillingMeterErrorReportTriggeredEvent.Reason.ErrorType.code` and `EventsV1BillingMeterNoMeterFoundEvent.Reason.ErrorType.code`
52+
* Add support for event notifications `V2CommerceProductCatalogImportsFailedEvent`, `V2CommerceProductCatalogImportsProcessingEvent`, `V2CommerceProductCatalogImportsSucceededEvent`, and `V2CommerceProductCatalogImportsSucceededWithErrorsEvent` with related object `v2.commerce.ProductCatalogImport`
53+
* Add support for error codes `payment_method_microdeposit_processing_error` and `siret_invalid` on `Invoice.LastFinalizationError`, `PaymentIntent.LastPaymentError`, `SetupAttempt.SetupError`, `SetupIntent.LastSetupError`, and `StripeError`
54+
* [#1813](https://github.com/stripe/stripe-python/pull/1813) Emit warning when `stripe-notify` header is present in response
55+
156
## 15.1.0 - 2026-04-23
257
This release changes the pinned API version to 2026-04-22.dahlia.
358

CODEGEN_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
9aa5ee4ed2b929f65b7fbf7c341f938682888500
1+
d59a1f4bdea3032b8e282d40badc032cb021fc60

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2252
1+
v2277

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
15.1.0
1+
15.2.0

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "stripe"
3-
version = "15.1.0"
3+
version = "15.2.0"
44
readme = "README.md"
55
description = "Python bindings for the Stripe API"
66
authors = [{ name = "Stripe", email = "support@stripe.com" }]

stripe/_account.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,10 @@ class Capabilities(StripeObject):
262262
"""
263263
The status of the Billie capability of the account, or whether the account can directly process Billie payments.
264264
"""
265+
bizum_payments: Optional[Literal["active", "inactive", "pending"]]
266+
"""
267+
The status of the Bizum capability of the account, or whether the account can directly process Bizum payments.
268+
"""
265269
blik_payments: Optional[Literal["active", "inactive", "pending"]]
266270
"""
267271
The status of the blik payments capability of the account, or whether the account can directly process blik charges.
@@ -436,6 +440,10 @@ class Capabilities(StripeObject):
436440
"""
437441
The status of the Satispay capability of the account, or whether the account can directly process Satispay payments.
438442
"""
443+
scalapay_payments: Optional[Literal["active", "inactive", "pending"]]
444+
"""
445+
The status of the Scalapay capability of the account, or whether the account can directly process Scalapay payments.
446+
"""
439447
sepa_bank_transfer_payments: Optional[
440448
Literal["active", "inactive", "pending"]
441449
]

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 = "2026-04-22.dahlia"
4+
CURRENT = "2026-05-27.dahlia"
55
CURRENT_MAJOR = "dahlia"

stripe/_balance_settings.py

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,20 @@ class BalanceSettings(
2727

2828
class Payments(StripeObject):
2929
class Payouts(StripeObject):
30+
class AutomaticTransferRulesByCurrency(StripeObject):
31+
payout_method: str
32+
"""
33+
The ID of the FinancialAccount that funds will be transferred to during automatic transfers.
34+
"""
35+
transfer_up_to_amount: Optional[int]
36+
"""
37+
The maximum amount in minor units to transfer to the FinancialAccount. Only applicable when `type` is `transfer_up_to_amount`.
38+
"""
39+
type: Literal["transfer_all", "transfer_up_to_amount"]
40+
"""
41+
The type of automatic transfer rule.
42+
"""
43+
3044
class Schedule(StripeObject):
3145
interval: Optional[
3246
Literal["daily", "manual", "monthly", "weekly"]
@@ -53,6 +67,12 @@ class Schedule(StripeObject):
5367
The days of the week when available funds are paid out, specified as an array, for example, [`monday`, `tuesday`]. Only shown if `interval` is weekly.
5468
"""
5569

70+
automatic_transfer_rules_by_currency: Optional[
71+
UntypedStripeObject[List[AutomaticTransferRulesByCurrency]]
72+
]
73+
"""
74+
Configures per-currency rules for automatically transferring funds from the payments balance to a FinancialAccount.
75+
"""
5676
minimum_balance_by_currency: Optional[UntypedStripeObject[int]]
5777
"""
5878
The minimum balance amount to retain per currency after automatic payouts. Only funds that exceed these amounts are paid out. Learn more about the [minimum balances for automatic payouts](https://docs.stripe.com/payouts/minimum-balances-for-automatic-payouts).
@@ -69,9 +89,27 @@ class Schedule(StripeObject):
6989
"""
7090
Whether the funds in this account can be paid out.
7191
"""
72-
_inner_class_types = {"schedule": Schedule}
92+
_inner_class_types = {
93+
"automatic_transfer_rules_by_currency": AutomaticTransferRulesByCurrency,
94+
"schedule": Schedule,
95+
}
96+
_inner_class_dicts = ["automatic_transfer_rules_by_currency"]
7397

7498
class SettlementTiming(StripeObject):
99+
class StartOfDay(StripeObject):
100+
hour: int
101+
"""
102+
Hour at which the customized start of day begins according to the given timezone. Must be a [supported customized start of day hour](https://docs.stripe.com/connect/customized-start-of-day#available-timezones-and-cutoffs).
103+
"""
104+
minutes: int
105+
"""
106+
Minutes at which the customized start of day begins according to the given timezone. Must be either 0 or 30.
107+
"""
108+
timezone: str
109+
"""
110+
Timezone for the customized start of day. Must be a [supported customized start of day timezone](https://docs.stripe.com/connect/customized-start-of-day#available-timezones-and-cutoffs).
111+
"""
112+
75113
delay_days: int
76114
"""
77115
The number of days charge funds are held before becoming available.
@@ -80,6 +118,11 @@ class SettlementTiming(StripeObject):
80118
"""
81119
The number of days charge funds are held before becoming available. If present, overrides the default, or minimum available, for the account.
82120
"""
121+
start_of_day: Optional[StartOfDay]
122+
"""
123+
Customized start of day configuration for automatic payouts to group and send payments in local timezones with a customized day starting time. For details, see our [Customized start of day](https://docs.stripe.com/connect/customized-start-of-day) documentation.
124+
"""
125+
_inner_class_types = {"start_of_day": StartOfDay}
83126

84127
debit_negative_balances: Optional[bool]
85128
"""

stripe/_charge.py

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,6 +456,12 @@ class Billie(StripeObject):
456456
The Billie transaction ID associated with this payment.
457457
"""
458458

459+
class Bizum(StripeObject):
460+
transaction_id: Optional[str]
461+
"""
462+
The Bizum transaction ID associated with this payment.
463+
"""
464+
459465
class Blik(StripeObject):
460466
buyer_id: Optional[str]
461467
"""
@@ -1856,6 +1862,12 @@ class Satispay(StripeObject):
18561862
The Satispay transaction ID associated with this payment.
18571863
"""
18581864

1865+
class Scalapay(StripeObject):
1866+
transaction_id: Optional[str]
1867+
"""
1868+
The Scalapay transaction ID associated with this payment.
1869+
"""
1870+
18591871
class SepaCreditTransfer(StripeObject):
18601872
bank_name: Optional[str]
18611873
"""
@@ -1966,7 +1978,10 @@ class Swish(StripeObject):
19661978
"""
19671979

19681980
class Twint(StripeObject):
1969-
pass
1981+
mandate: Optional[str]
1982+
"""
1983+
ID of the multi use Mandate generated by the PaymentIntent
1984+
"""
19701985

19711986
class Upi(StripeObject):
19721987
vpa: Optional[str]
@@ -2048,6 +2063,7 @@ class Zip(StripeObject):
20482063
bacs_debit: Optional[BacsDebit]
20492064
bancontact: Optional[Bancontact]
20502065
billie: Optional[Billie]
2066+
bizum: Optional[Bizum]
20512067
blik: Optional[Blik]
20522068
boleto: Optional[Boleto]
20532069
card: Optional[Card]
@@ -2083,6 +2099,7 @@ class Zip(StripeObject):
20832099
revolut_pay: Optional[RevolutPay]
20842100
samsung_pay: Optional[SamsungPay]
20852101
satispay: Optional[Satispay]
2102+
scalapay: Optional[Scalapay]
20862103
sepa_credit_transfer: Optional[SepaCreditTransfer]
20872104
sepa_debit: Optional[SepaDebit]
20882105
sofort: Optional[Sofort]
@@ -2114,6 +2131,7 @@ class Zip(StripeObject):
21142131
"bacs_debit": BacsDebit,
21152132
"bancontact": Bancontact,
21162133
"billie": Billie,
2134+
"bizum": Bizum,
21172135
"blik": Blik,
21182136
"boleto": Boleto,
21192137
"card": Card,
@@ -2149,6 +2167,7 @@ class Zip(StripeObject):
21492167
"revolut_pay": RevolutPay,
21502168
"samsung_pay": SamsungPay,
21512169
"satispay": Satispay,
2170+
"scalapay": Scalapay,
21522171
"sepa_credit_transfer": SepaCreditTransfer,
21532172
"sepa_debit": SepaDebit,
21542173
"sofort": Sofort,

0 commit comments

Comments
 (0)