Skip to content
Merged
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 API_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
f587035a62fe3323ed42077a0526158e57a8260b
e62524b587909bee231a15ce0dc618f1d04f69a4
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2121
v2124
5 changes: 5 additions & 0 deletions stripe/params/v2/core/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
)
from stripe.params.v2.core._event_list_params import (
EventListParams as EventListParams,
EventListParamsCreated as EventListParamsCreated,
)
from stripe.params.v2.core._event_retrieve_params import (
EventRetrieveParams as EventRetrieveParams,
Expand Down Expand Up @@ -85,6 +86,10 @@
False,
),
"EventListParams": ("stripe.params.v2.core._event_list_params", False),
"EventListParamsCreated": (
"stripe.params.v2.core._event_list_params",
False,
),
"EventRetrieveParams": (
"stripe.params.v2.core._event_retrieve_params",
False,
Expand Down
31 changes: 19 additions & 12 deletions stripe/params/v2/core/_event_list_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,25 @@


class EventListParams(TypedDict):
created: NotRequired["EventListParamsCreated"]
"""
Set of filters to query events within a range of `created` timestamps.
"""
limit: NotRequired[int]
"""
The page size.
"""
object_id: NotRequired[str]
"""
Primary object ID used to retrieve related events.
"""
types: NotRequired[List[str]]
"""
An array of up to 20 strings containing specific event names.
"""


class EventListParamsCreated(TypedDict):
gt: NotRequired[str]
"""
Filter for events created after the specified timestamp.
Expand All @@ -13,10 +32,6 @@ class EventListParams(TypedDict):
"""
Filter for events created at or after the specified timestamp.
"""
limit: NotRequired[int]
"""
The page size.
"""
lt: NotRequired[str]
"""
Filter for events created before the specified timestamp.
Expand All @@ -25,11 +40,3 @@ class EventListParams(TypedDict):
"""
Filter for events created at or before the specified timestamp.
"""
object_id: NotRequired[str]
"""
Primary object ID used to retrieve related events.
"""
types: NotRequired[List[str]]
"""
An array of up to 20 strings containing specific event names.
"""
4 changes: 0 additions & 4 deletions stripe/v2/core/_event.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,6 @@ class Request(StripeObject):
"""
_inner_class_types = {"request": Request}

changes: Optional[Dict[str, "Any"]]
"""
Before and after changes for the primary related object.
"""
context: Optional[str]
"""
Authentication context needed to fetch the event or related object.
Expand Down
Loading