From 8dddb63f703d776ae9a06fb9d49bfc88e3e28e2c Mon Sep 17 00:00:00 2001 From: System Administrator Date: Wed, 28 Jan 2026 13:16:40 -0800 Subject: [PATCH 1/3] Bump version to 14.3.0 --- CHANGELOG.md | 25 +++++++++++++++++++++++++ VERSION | 2 +- pyproject.toml | 2 +- stripe/_version.py | 2 +- 4 files changed, 28 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8a7da8faa..532ce9c84 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,28 @@ +## 14.3.0 - 2026-01-28 +This release changes the pinned API version to `2026-01-28.clover`. + +* [#1725](https://github.com/stripe/stripe-python/pull/1725) Update generated code + * Add support for new resource `radar.PaymentEvaluation` + * Add support for `create` method on resource `radar.PaymentEvaluation` + * Add support for `adjustable_quantity` on `LineItem` + * Add support for new value `risk_reserved` on enum `BalanceTransaction.balance_type` + * Add support for new values `reserve_hold` and `reserve_release` on enum `BalanceTransaction.type` + * Add support for new values `2.3.0` and `2.3.1` on enums `Charge.PaymentMethodDetail.Card.ThreeDSecure.version`, `PaymentIntentConfirmParamsPaymentMethodOptionCardThreeDSecure.version`, `PaymentIntentCreateParamsPaymentMethodOptionCardThreeDSecure.version`, `PaymentIntentModifyParamsPaymentMethodOptionCardThreeDSecure.version`, `SetupAttempt.PaymentMethodDetail.Card.ThreeDSecure.version`, `SetupIntentConfirmParamsPaymentMethodOptionCardThreeDSecure.version`, `SetupIntentCreateParamsPaymentMethodOptionCardThreeDSecure.version`, and `SetupIntentModifyParamsPaymentMethodOptionCardThreeDSecure.version` + * Add support for new value `adyen` on enums `Charge.PaymentMethodDetail.Ideal.bank`, `ConfirmationToken.PaymentMethodPreview.Ideal.bank`, `ConfirmationTokenCreateParamsPaymentMethodDatumIdeal.bank`, `PaymentAttemptRecord.PaymentMethodDetail.Ideal.bank`, `PaymentIntentConfirmParamsPaymentMethodDatumIdeal.bank`, `PaymentIntentCreateParamsPaymentMethodDatumIdeal.bank`, `PaymentIntentModifyParamsPaymentMethodDatumIdeal.bank`, `PaymentMethod.Ideal.bank`, `PaymentMethodCreateParamsIdeal.bank`, `PaymentRecord.PaymentMethodDetail.Ideal.bank`, `SetupAttempt.PaymentMethodDetail.Ideal.bank`, `SetupIntentConfirmParamsPaymentMethodDatumIdeal.bank`, `SetupIntentCreateParamsPaymentMethodDatumIdeal.bank`, and `SetupIntentModifyParamsPaymentMethodDatumIdeal.bank` + * Add support for new value `ADYBNL2A` on enums `Charge.PaymentMethodDetail.Ideal.bic`, `ConfirmationToken.PaymentMethodPreview.Ideal.bic`, `PaymentAttemptRecord.PaymentMethodDetail.Ideal.bic`, `PaymentMethod.Ideal.bic`, `PaymentRecord.PaymentMethodDetail.Ideal.bic`, and `SetupAttempt.PaymentMethodDetail.Ideal.bic` + * Add support for new value `pl_nip` on enums `Checkout.Session.CustomerDetail.TaxId.type`, `Invoice.CustomerTaxId.type`, `Tax.Calculation.CustomerDetail.TaxId.type`, `Tax.Transaction.CustomerDetail.TaxId.type`, and `TaxId.type` + * Add support for new value `pl_nip` on enums `CustomerCreateParamsTaxIdDatum.type`, `CustomerCreateTaxIdParams.type`, `InvoiceCreatePreviewParamsCustomerDetailTaxId.type`, `TaxIdCreateParams.type`, and `tax.CalculationCreateParamsCustomerDetailTaxId.type` + * Change `Invoice.PaymentSetting.PaymentMethodOption.payto` and `Subscription.PaymentSetting.PaymentMethodOption.payto` to be required + * Add support for `enforce_arithmetic_validation` on `PaymentIntentCaptureParamsAmountDetail`, `PaymentIntentConfirmParamsAmountDetail`, `PaymentIntentCreateParamsAmountDetail`, `PaymentIntentIncrementAuthorizationParamsAmountDetail`, and `PaymentIntentModifyParamsAmountDetail` + * Add support for `error` on `PaymentIntent.AmountDetail` + * Remove support for `bgn` on `Terminal.Configuration.Tipping`, `terminal.ConfigurationCreateParamsTipping`, and `terminal.ConfigurationModifyParamsTipping` + * Add support for `topup` on `Treasury.ReceivedDebit.LinkedFlow` + * Add support for `contact_phone` on `V2.Core.Account`, `v2.core.AccountCreateParams`, `v2.core.AccountModifyParams`, and `v2.core.AccountTokenCreateParams` + * Add support for `registration_date` on `V2.Core.Account.Identity.BusinessDetail`, `v2.core.AccountCreateParamsIdentityBusinessDetail`, `v2.core.AccountModifyParamsIdentityBusinessDetail`, and `v2.core.AccountTokenCreateParamsIdentityBusinessDetail` + * Add support for new value `gb_vat` on enums `V2.Core.Account.Identity.BusinessDetail.IdNumber.type`, `v2.core.AccountCreateParamsIdentityBusinessDetailIdNumber.type`, `v2.core.AccountModifyParamsIdentityBusinessDetailIdNumber.type`, and `v2.core.AccountTokenCreateParamsIdentityBusinessDetailIdNumber.type` + * Add support for error code `request_blocked` on `Invoice.LastFinalizationError`, `PaymentIntent.LastPaymentError`, `SetupAttempt.SetupError`, `SetupIntent.LastSetupError`, and `StripeError` +* [#1722](https://github.com/stripe/stripe-python/pull/1722) Add documentation for undocumented API parameters + ## 14.2.0 - 2026-01-16 * [#1720](https://github.com/stripe/stripe-python/pull/1720) Update generated code * Add support for event notifications `V2CoreAccountClosedEvent`, `V2CoreAccountCreatedEvent`, `V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEvent`, `V2CoreAccountIncludingConfigurationCustomerUpdatedEvent`, `V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEvent`, `V2CoreAccountIncludingConfigurationMerchantUpdatedEvent`, `V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent`, `V2CoreAccountIncludingConfigurationRecipientUpdatedEvent`, `V2CoreAccountIncludingDefaultsUpdatedEvent`, `V2CoreAccountIncludingFutureRequirementsUpdatedEvent`, `V2CoreAccountIncludingIdentityUpdatedEvent`, `V2CoreAccountIncludingRequirementsUpdatedEvent`, and `V2CoreAccountUpdatedEvent` with related object `v2.core.Account` diff --git a/VERSION b/VERSION index 07ea9fa43..32f02f10e 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -14.2.0 +14.3.0 diff --git a/pyproject.toml b/pyproject.toml index 9252ca44c..5d364cade 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "stripe" -version = "14.2.0" +version = "14.3.0" readme = "README.md" description = "Python bindings for the Stripe API" authors = [{ name = "Stripe", email = "support@stripe.com" }] diff --git a/stripe/_version.py b/stripe/_version.py index b95ebd064..7e24fcf8a 100644 --- a/stripe/_version.py +++ b/stripe/_version.py @@ -1 +1 @@ -VERSION = "14.2.0" +VERSION = "14.3.0" From 110960ed3a4441f14bd75737c4ca8bf989e0f0f7 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 29 Jan 2026 15:47:16 +0000 Subject: [PATCH 2/3] Update generated code for v2162 and --- CODEGEN_VERSION | 2 +- OPENAPI_VERSION | 2 +- stripe/_account_session.py | 16 ++++++++++++++++ 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION index 28d077447..3e964c9e8 100644 --- a/CODEGEN_VERSION +++ b/CODEGEN_VERSION @@ -1 +1 @@ -af050dd6ff9f731f9ed081bbe7f3ebc9d09bddf7 \ No newline at end of file +c494ed12a8fa24301314795612f4b43cddf23bee \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 106e0d508..5d5c0847b 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2161 \ No newline at end of file +v2162 \ No newline at end of file diff --git a/stripe/_account_session.py b/stripe/_account_session.py index 508a19f52..42a870531 100644 --- a/stripe/_account_session.py +++ b/stripe/_account_session.py @@ -301,6 +301,17 @@ class Features(StripeObject): features: Features _inner_class_types = {"features": Features} + class NetworkCostPassthroughReport(StripeObject): + class Features(StripeObject): + pass + + enabled: bool + """ + Whether the embedded component is enabled. + """ + features: Features + _inner_class_types = {"features": Features} + class NotificationBanner(StripeObject): class Features(StripeObject): disable_stripe_user_authentication: bool @@ -488,6 +499,10 @@ class Features(StripeObject): instant_payouts_promotion: InstantPayoutsPromotion issuing_card: IssuingCard issuing_cards_list: IssuingCardsList + network_cost_passthrough_report: Optional[NetworkCostPassthroughReport] + """ + Configuration for the [network cost passthrough report](https://docs.stripe.com/connect/supported-embedded-components/network-cost-passthrough-report/) embedded component. + """ notification_banner: NotificationBanner payment_details: PaymentDetails payment_disputes: PaymentDisputes @@ -513,6 +528,7 @@ class Features(StripeObject): "instant_payouts_promotion": InstantPayoutsPromotion, "issuing_card": IssuingCard, "issuing_cards_list": IssuingCardsList, + "network_cost_passthrough_report": NetworkCostPassthroughReport, "notification_banner": NotificationBanner, "payment_details": PaymentDetails, "payment_disputes": PaymentDisputes, From ac2a7d690363cf6ec9364c5598bf73ee9281ffea Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 29 Jan 2026 22:52:42 +0000 Subject: [PATCH 3/3] Update generated code for v2163 and --- CODEGEN_VERSION | 2 +- OPENAPI_VERSION | 2 +- stripe/_account_session.py | 32 ++++++++++++ stripe/params/__init__.py | 20 ++++++++ .../params/_account_session_create_params.py | 50 +++++++++++++++++++ 5 files changed, 104 insertions(+), 2 deletions(-) diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION index 3e964c9e8..644f86b43 100644 --- a/CODEGEN_VERSION +++ b/CODEGEN_VERSION @@ -1 +1 @@ -c494ed12a8fa24301314795612f4b43cddf23bee \ No newline at end of file +9a97a4eba57cbe1aae1ba2fe97e13cd3b2eb584e \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 5d5c0847b..7679237d7 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2162 \ No newline at end of file +v2163 \ No newline at end of file diff --git a/stripe/_account_session.py b/stripe/_account_session.py index 42a870531..1a6712f3d 100644 --- a/stripe/_account_session.py +++ b/stripe/_account_session.py @@ -478,6 +478,28 @@ class Features(StripeObject): features: Features _inner_class_types = {"features": Features} + class TerminalHardwareOrders(StripeObject): + class Features(StripeObject): + pass + + enabled: bool + """ + Whether the embedded component is enabled. + """ + features: Features + _inner_class_types = {"features": Features} + + class TerminalHardwareShop(StripeObject): + class Features(StripeObject): + pass + + enabled: bool + """ + Whether the embedded component is enabled. + """ + features: Features + _inner_class_types = {"features": Features} + account_management: AccountManagement account_onboarding: AccountOnboarding agentic_commerce_settings: Optional[AgenticCommerceSettings] @@ -512,6 +534,14 @@ class Features(StripeObject): payouts_list: PayoutsList tax_registrations: TaxRegistrations tax_settings: TaxSettings + terminal_hardware_orders: Optional[TerminalHardwareOrders] + """ + Configuration for the [Terminal hardware orders](https://docs.stripe.com/connect/supported-embedded-components/terminal-hardware-orders/) embedded component. + """ + terminal_hardware_shop: Optional[TerminalHardwareShop] + """ + Configuration for the [Terminal hardware shop](https://docs.stripe.com/connect/supported-embedded-components/terminal-hardware-shop/) embedded component. + """ _inner_class_types = { "account_management": AccountManagement, "account_onboarding": AccountOnboarding, @@ -538,6 +568,8 @@ class Features(StripeObject): "payouts_list": PayoutsList, "tax_registrations": TaxRegistrations, "tax_settings": TaxSettings, + "terminal_hardware_orders": TerminalHardwareOrders, + "terminal_hardware_shop": TerminalHardwareShop, } account: str diff --git a/stripe/params/__init__.py b/stripe/params/__init__.py index 1261ede79..1cf084d05 100644 --- a/stripe/params/__init__.py +++ b/stripe/params/__init__.py @@ -463,6 +463,10 @@ AccountSessionCreateParamsComponentsTaxSettingsFeatures as AccountSessionCreateParamsComponentsTaxSettingsFeatures, AccountSessionCreateParamsComponentsTaxThresholdMonitoring as AccountSessionCreateParamsComponentsTaxThresholdMonitoring, AccountSessionCreateParamsComponentsTaxThresholdMonitoringFeatures as AccountSessionCreateParamsComponentsTaxThresholdMonitoringFeatures, + AccountSessionCreateParamsComponentsTerminalHardwareOrders as AccountSessionCreateParamsComponentsTerminalHardwareOrders, + AccountSessionCreateParamsComponentsTerminalHardwareOrdersFeatures as AccountSessionCreateParamsComponentsTerminalHardwareOrdersFeatures, + AccountSessionCreateParamsComponentsTerminalHardwareShop as AccountSessionCreateParamsComponentsTerminalHardwareShop, + AccountSessionCreateParamsComponentsTerminalHardwareShopFeatures as AccountSessionCreateParamsComponentsTerminalHardwareShopFeatures, ) from stripe.params._account_update_params import ( AccountUpdateParams as AccountUpdateParams, @@ -7219,6 +7223,22 @@ "stripe.params._account_session_create_params", False, ), + "AccountSessionCreateParamsComponentsTerminalHardwareOrders": ( + "stripe.params._account_session_create_params", + False, + ), + "AccountSessionCreateParamsComponentsTerminalHardwareOrdersFeatures": ( + "stripe.params._account_session_create_params", + False, + ), + "AccountSessionCreateParamsComponentsTerminalHardwareShop": ( + "stripe.params._account_session_create_params", + False, + ), + "AccountSessionCreateParamsComponentsTerminalHardwareShopFeatures": ( + "stripe.params._account_session_create_params", + False, + ), "AccountUpdateParams": ("stripe.params._account_update_params", False), "AccountUpdateParamsBankAccount": ( "stripe.params._account_update_params", diff --git a/stripe/params/_account_session_create_params.py b/stripe/params/_account_session_create_params.py index 3c5cc3984..7dfe4ab59 100644 --- a/stripe/params/_account_session_create_params.py +++ b/stripe/params/_account_session_create_params.py @@ -207,6 +207,18 @@ class AccountSessionCreateParamsComponents(TypedDict): """ Configuration for the [agentic commerce settings](https://docs.stripe.com/connect/supported-embedded-components/agentic-commerce-settings/) embedded component. """ + terminal_hardware_orders: NotRequired[ + "AccountSessionCreateParamsComponentsTerminalHardwareOrders" + ] + """ + Configuration for the [Terminal hardware orders](https://docs.stripe.com/connect/supported-embedded-components/terminal-hardware-orders/) embedded component. + """ + terminal_hardware_shop: NotRequired[ + "AccountSessionCreateParamsComponentsTerminalHardwareShop" + ] + """ + Configuration for the [Terminal hardware shop](https://docs.stripe.com/connect/supported-embedded-components/terminal-hardware-shop/) embedded component. + """ class AccountSessionCreateParamsComponentsAccountManagement(TypedDict): @@ -976,3 +988,41 @@ class AccountSessionCreateParamsComponentsAgenticCommerceSettingsFeatures( TypedDict, ): pass + + +class AccountSessionCreateParamsComponentsTerminalHardwareOrders(TypedDict): + enabled: bool + """ + Whether the embedded component is enabled. + """ + features: NotRequired[ + "AccountSessionCreateParamsComponentsTerminalHardwareOrdersFeatures" + ] + """ + An empty list, because this embedded component has no features. + """ + + +class AccountSessionCreateParamsComponentsTerminalHardwareOrdersFeatures( + TypedDict, +): + pass + + +class AccountSessionCreateParamsComponentsTerminalHardwareShop(TypedDict): + enabled: bool + """ + Whether the embedded component is enabled. + """ + features: NotRequired[ + "AccountSessionCreateParamsComponentsTerminalHardwareShopFeatures" + ] + """ + An empty list, because this embedded component has no features. + """ + + +class AccountSessionCreateParamsComponentsTerminalHardwareShopFeatures( + TypedDict, +): + pass