Skip to content

Commit 91c36ef

Browse files
Add metadata for notifications
1 parent a10ac93 commit 91c36ef

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

helloasso_api_wrapper/models/api_notifications.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from helloasso_api_wrapper.models.statistics import OrderDetail, PaymentDetail
88

99

10-
class ApiNotificationType(Enum):
10+
class ApiNotificationType(str, Enum):
1111
Payment = "Payment"
1212
Order = "Order"
1313
Form = "Form"
@@ -32,7 +32,7 @@ class OrganizationNotificationResultData(BaseModel):
3232
class OrganizationNotificationResultContent(BaseModel):
3333
eventType: Literal[ApiNotificationType.Organization]
3434
data: OrganizationNotificationResultData
35-
# metadata: dict[str, Any] | None = None # not sure
35+
metadata: None = None # not sure
3636

3737

3838
class OrderNotificationResultContent(BaseModel):
@@ -58,7 +58,7 @@ class PayementNotificationResultContent(BaseModel):
5858
class FormNotificationResultContent(BaseModel):
5959
eventType: Literal[ApiNotificationType.Form]
6060
data: FormPublicModel
61-
# metadata: dict[str, Any] | None = None # not sure
61+
metadata: dict[str, Any] | None = None # not sure
6262

6363

6464
NotificationResultContent = (

0 commit comments

Comments
 (0)