diff --git a/CHANGELOG.md b/CHANGELOG.md index bd2be7197..de037a326 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,31 @@ This release changes the pinned API version to `2026-01-28.preview`. * Add support for `subtotal` on `InvoiceLineItem` * Add support for `billing_cadence` on `SubscriptionListParams` +## 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.3.0a1 - 2026-01-21 * [#1723](https://github.com/stripe/stripe-python/pull/1723) Update generated code for private-preview * Remove support for `pause` method on resource `Subscription` diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION index aa8c1d239..644f86b43 100644 --- a/CODEGEN_VERSION +++ b/CODEGEN_VERSION @@ -1 +1 @@ -529796460735eb8ef64a29787291f1b4d4b29f1c \ No newline at end of file +9a97a4eba57cbe1aae1ba2fe97e13cd3b2eb584e \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 469687e75..7679237d7 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2160 \ 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 508a19f52..1a6712f3d 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 @@ -467,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] @@ -488,6 +521,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 @@ -497,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, @@ -513,6 +558,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, @@ -522,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 d36821b9b..1cf084d05 100644 --- a/stripe/params/__init__.py +++ b/stripe/params/__init__.py @@ -401,6 +401,8 @@ AccountSessionCreateParamsComponentsAccountManagementFeatures as AccountSessionCreateParamsComponentsAccountManagementFeatures, AccountSessionCreateParamsComponentsAccountOnboarding as AccountSessionCreateParamsComponentsAccountOnboarding, AccountSessionCreateParamsComponentsAccountOnboardingFeatures as AccountSessionCreateParamsComponentsAccountOnboardingFeatures, + AccountSessionCreateParamsComponentsAgenticCommerceSettings as AccountSessionCreateParamsComponentsAgenticCommerceSettings, + AccountSessionCreateParamsComponentsAgenticCommerceSettingsFeatures as AccountSessionCreateParamsComponentsAgenticCommerceSettingsFeatures, AccountSessionCreateParamsComponentsAppInstall as AccountSessionCreateParamsComponentsAppInstall, AccountSessionCreateParamsComponentsAppInstallFeatures as AccountSessionCreateParamsComponentsAppInstallFeatures, AccountSessionCreateParamsComponentsAppViewport as AccountSessionCreateParamsComponentsAppViewport, @@ -461,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, @@ -6969,6 +6975,14 @@ "stripe.params._account_session_create_params", False, ), + "AccountSessionCreateParamsComponentsAgenticCommerceSettings": ( + "stripe.params._account_session_create_params", + False, + ), + "AccountSessionCreateParamsComponentsAgenticCommerceSettingsFeatures": ( + "stripe.params._account_session_create_params", + False, + ), "AccountSessionCreateParamsComponentsAppInstall": ( "stripe.params._account_session_create_params", False, @@ -7209,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 d4e8a7f97..7dfe4ab59 100644 --- a/stripe/params/_account_session_create_params.py +++ b/stripe/params/_account_session_create_params.py @@ -201,6 +201,24 @@ class AccountSessionCreateParamsComponents(TypedDict): """ Configuration for the [tax threshold monitoring](https://docs.stripe.com/connect/supported-embedded-components/tax-threshold-monitoring/) embedded component. """ + agentic_commerce_settings: NotRequired[ + "AccountSessionCreateParamsComponentsAgenticCommerceSettings" + ] + """ + 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): @@ -951,3 +969,60 @@ class AccountSessionCreateParamsComponentsTaxThresholdMonitoringFeatures( TypedDict, ): pass + + +class AccountSessionCreateParamsComponentsAgenticCommerceSettings(TypedDict): + enabled: bool + """ + Whether the embedded component is enabled. + """ + features: NotRequired[ + "AccountSessionCreateParamsComponentsAgenticCommerceSettingsFeatures" + ] + """ + An empty list, because this embedded component has no features. + """ + + +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