From 8b881b19a643025905d27bcb940041fd6a27146e Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 11 Feb 2026 14:17:23 +0000 Subject: [PATCH] Update generated code for v2169 and --- CODEGEN_VERSION | 2 +- OPENAPI_VERSION | 2 +- stripe/_event.py | 7 +++---- stripe/_payment_intent.py | 4 ++-- stripe/_setup_intent.py | 5 ++--- stripe/params/_file_create_params.py | 2 +- stripe/v2/core/_event.py | 2 +- 7 files changed, 11 insertions(+), 13 deletions(-) diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION index 41e180fca..49cddf8d8 100644 --- a/CODEGEN_VERSION +++ b/CODEGEN_VERSION @@ -1 +1 @@ -fdbf5e05015131c7993d2b4017103f0d94561b6a \ No newline at end of file +fce63eb87846dfb612efc9be0e529a67d81b4525 \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 469687e75..f8ca2f439 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2160 \ No newline at end of file +v2169 \ No newline at end of file diff --git a/stripe/_event.py b/stripe/_event.py index e203bf164..92dde9c31 100644 --- a/stripe/_event.py +++ b/stripe/_event.py @@ -3,13 +3,12 @@ from stripe._list_object import ListObject from stripe._listable_api_resource import ListableAPIResource from stripe._stripe_object import StripeObject -from typing import ClassVar, Dict, Optional +from typing import Any, ClassVar, Dict, Optional from typing_extensions import Literal, Unpack, TYPE_CHECKING if TYPE_CHECKING: from stripe.params._event_list_params import EventListParams from stripe.params._event_retrieve_params import EventRetrieveParams - from typing import Any class Event(ListableAPIResource["Event"]): @@ -37,11 +36,11 @@ class Event(ListableAPIResource["Event"]): OBJECT_NAME: ClassVar[Literal["event"]] = "event" class Data(StripeObject): - object: Dict[str, "Any"] + object: Dict[str, Any] """ Object containing the API resource relevant to the event. For example, an `invoice.created` event will have a full [invoice object](https://api.stripe.com#invoice_object) as the value of the object key. """ - previous_attributes: Optional[Dict[str, "Any"]] + previous_attributes: Optional[Dict[str, Any]] """ Object containing the names of the updated attributes and their values prior to the event (only included in events of type `*.updated`). If an array attribute has any updated elements, this object contains the entire array. In Stripe API versions 2017-04-06 or earlier, an updated array attribute in this object includes only the updated array elements. """ diff --git a/stripe/_payment_intent.py b/stripe/_payment_intent.py index 93b04f57f..ed1be5d9e 100644 --- a/stripe/_payment_intent.py +++ b/stripe/_payment_intent.py @@ -11,6 +11,7 @@ from stripe._updateable_api_resource import UpdateableAPIResource from stripe._util import class_method_variant, sanitize_id from typing import ( + Any, AsyncIterator, ClassVar, Dict, @@ -73,7 +74,6 @@ from stripe.params._payment_intent_verify_microdeposits_params import ( PaymentIntentVerifyMicrodepositsParams, ) - from typing import Any @nested_resource_class_methods("amount_details_line_item") @@ -1412,7 +1412,7 @@ class WechatPayRedirectToIosApp(StripeObject): """ Type of the next action to perform. Refer to the other child attributes under `next_action` for available values. Examples include: `redirect_to_url`, `use_stripe_sdk`, `alipay_handle_redirect`, `oxxo_display_details`, or `verify_with_microdeposits`. """ - use_stripe_sdk: Optional[Dict[str, "Any"]] + use_stripe_sdk: Optional[Dict[str, Any]] """ When confirming a PaymentIntent with Stripe.js, Stripe.js depends on the contents of this dictionary to invoke authentication flows. The shape of the contents is subject to change and is only intended to be used by Stripe.js. """ diff --git a/stripe/_setup_intent.py b/stripe/_setup_intent.py index e81c9ff20..e088d121b 100644 --- a/stripe/_setup_intent.py +++ b/stripe/_setup_intent.py @@ -7,7 +7,7 @@ from stripe._stripe_object import StripeObject from stripe._updateable_api_resource import UpdateableAPIResource from stripe._util import class_method_variant, sanitize_id -from typing import ClassVar, Dict, List, Optional, Union, cast, overload +from typing import Any, ClassVar, Dict, List, Optional, Union, cast, overload from typing_extensions import Literal, Unpack, TYPE_CHECKING if TYPE_CHECKING: @@ -40,7 +40,6 @@ from stripe.params._setup_intent_verify_microdeposits_params import ( SetupIntentVerifyMicrodepositsParams, ) - from typing import Any class SetupIntent( @@ -435,7 +434,7 @@ class VerifyWithMicrodeposits(StripeObject): """ Type of the next action to perform. Refer to the other child attributes under `next_action` for available values. Examples include: `redirect_to_url`, `use_stripe_sdk`, `alipay_handle_redirect`, `oxxo_display_details`, or `verify_with_microdeposits`. """ - use_stripe_sdk: Optional[Dict[str, "Any"]] + use_stripe_sdk: Optional[Dict[str, Any]] """ When confirming a SetupIntent with Stripe.js, Stripe.js depends on the contents of this dictionary to invoke authentication flows. The shape of the contents is subject to change and is only intended to be used by Stripe.js. """ diff --git a/stripe/params/_file_create_params.py b/stripe/params/_file_create_params.py index a65648464..d61c852f6 100644 --- a/stripe/params/_file_create_params.py +++ b/stripe/params/_file_create_params.py @@ -10,7 +10,7 @@ class FileCreateParams(RequestOptions): """ Specifies which fields in the response should be expanded. """ - file: "Any" + file: Any """ A file to upload. Make sure that the specifications follow RFC 2388, which defines file transfers for the `multipart/form-data` protocol. """ diff --git a/stripe/v2/core/_event.py b/stripe/v2/core/_event.py index cb7ad021b..1a6610d10 100644 --- a/stripe/v2/core/_event.py +++ b/stripe/v2/core/_event.py @@ -42,7 +42,7 @@ class Request(StripeObject): """ _inner_class_types = {"request": Request} - changes: Optional[Dict[str, "Any"]] + changes: Optional[Dict[str, Any]] """ Before and after changes for the primary related object. """