Skip to content
Open
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
25 changes: 25 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down
2 changes: 1 addition & 1 deletion CODEGEN_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
529796460735eb8ef64a29787291f1b4d4b29f1c
9a97a4eba57cbe1aae1ba2fe97e13cd3b2eb584e
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2160
v2163
48 changes: 48 additions & 0 deletions stripe/_account_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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]
Expand All @@ -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
Expand All @@ -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,
Expand All @@ -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,
Expand All @@ -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
Expand Down
30 changes: 30 additions & 0 deletions stripe/params/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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",
Expand Down
75 changes: 75 additions & 0 deletions stripe/params/_account_session_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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