You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# top-level services: The end of the section generated from our OpenAPI spec
203
207
204
-
defparse_thin_event(
208
+
defparse_event_notification(
205
209
self,
206
210
raw: Union[bytes, str, bytearray],
207
211
sig_header: str,
208
212
secret: str,
209
213
tolerance: int=Webhook.DEFAULT_TOLERANCE,
210
-
) ->ThinEvent:
214
+
) ->"ALL_EVENT_NOTIFICATIONS":
215
+
"""
216
+
This should be your main method for interacting with `EventNotifications`. It's the V2 equivalent of `construct_event()`, but with better typing support.
217
+
218
+
It returns a union representing all known `EventNotification` classes. They have a `type` property that can be used for narrowing, which will get you very specific type support. If parsing an event the SDK isn't familiar with, it'll instead return `UnknownEventNotification`. That's not reflected in the return type of the function (because it messes up type narrowing) but is otherwise intended.
0 commit comments