diff --git a/API_VERSION b/API_VERSION index e0ecaaa28..330433275 100644 --- a/API_VERSION +++ b/API_VERSION @@ -1 +1 @@ -f587035a62fe3323ed42077a0526158e57a8260b \ No newline at end of file +e62524b587909bee231a15ce0dc618f1d04f69a4 \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 559abffe4..ea1ecdee1 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2121 \ No newline at end of file +v2124 \ No newline at end of file diff --git a/stripe/params/v2/core/__init__.py b/stripe/params/v2/core/__init__.py index efc5098be..b7c384aa4 100644 --- a/stripe/params/v2/core/__init__.py +++ b/stripe/params/v2/core/__init__.py @@ -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, @@ -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, diff --git a/stripe/params/v2/core/_event_list_params.py b/stripe/params/v2/core/_event_list_params.py index da7f96049..f143ef764 100644 --- a/stripe/params/v2/core/_event_list_params.py +++ b/stripe/params/v2/core/_event_list_params.py @@ -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. @@ -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. @@ -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. - """ diff --git a/stripe/v2/core/_event.py b/stripe/v2/core/_event.py index cb7ad021b..415a2879e 100644 --- a/stripe/v2/core/_event.py +++ b/stripe/v2/core/_event.py @@ -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.