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
2 changes: 1 addition & 1 deletion CODEGEN_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
fdbf5e05015131c7993d2b4017103f0d94561b6a
fce63eb87846dfb612efc9be0e529a67d81b4525
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2160
v2169
7 changes: 3 additions & 4 deletions stripe/_event.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]):
Expand Down Expand Up @@ -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.
"""
Expand Down
4 changes: 2 additions & 2 deletions stripe/_payment_intent.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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")
Expand Down Expand Up @@ -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.
"""
Expand Down
5 changes: 2 additions & 3 deletions stripe/_setup_intent.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -40,7 +40,6 @@
from stripe.params._setup_intent_verify_microdeposits_params import (
SetupIntentVerifyMicrodepositsParams,
)
from typing import Any


class SetupIntent(
Expand Down Expand Up @@ -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.
"""
Expand Down
2 changes: 1 addition & 1 deletion stripe/params/_file_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
"""
Expand Down
2 changes: 1 addition & 1 deletion stripe/v2/core/_event.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
"""
Expand Down