File tree 1 file changed +14
-10
lines changed
1 file changed +14
-10
lines changed Original file line number Diff line number Diff line change 1
1
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
3
3
from typing import Union
4
- from typing_extensions import TypeAlias
4
+ from typing_extensions import Annotated , TypeAlias
5
5
6
+ from .._utils import PropertyInfo
6
7
from .company_event import CompanyEvent
7
8
from .payment_event import PaymentEvent
8
9
from .directory_event import DirectoryEvent
14
15
15
16
__all__ = ["WebhookEvent" ]
16
17
17
- WebhookEvent : TypeAlias = Union [
18
- AccountUpdateEvent ,
19
- JobCompletionEvent ,
20
- CompanyEvent ,
21
- DirectoryEvent ,
22
- EmploymentEvent ,
23
- IndividualEvent ,
24
- PaymentEvent ,
25
- PayStatementEvent ,
18
+ WebhookEvent : TypeAlias = Annotated [
19
+ Union [
20
+ AccountUpdateEvent ,
21
+ JobCompletionEvent ,
22
+ CompanyEvent ,
23
+ DirectoryEvent ,
24
+ EmploymentEvent ,
25
+ IndividualEvent ,
26
+ PaymentEvent ,
27
+ PayStatementEvent ,
28
+ ],
29
+ PropertyInfo (discriminator = "event_type" ),
26
30
]
You can’t perform that action at this time.
0 commit comments