forked from NdoleStudio/httpsms
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebhook_event_failed_event.go
More file actions
22 lines (19 loc) · 911 Bytes
/
Copy pathwebhook_event_failed_event.go
File metadata and controls
22 lines (19 loc) · 911 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package events
import (
"github.com/NdoleStudio/httpsms/pkg/entities"
"github.com/google/uuid"
)
// EventTypeWebhookSendFailed is emitted when we can't send a webhook event
const EventTypeWebhookSendFailed = "webhook.send.failed"
// WebhookSendFailedPayload is the payload of the EventTypeWebhookSendFailed event
type WebhookSendFailedPayload struct {
WebhookID uuid.UUID `json:"webhook_id"`
WebhookURL string `json:"webhook_url"`
Owner string `json:"owner"`
UserID entities.UserID `json:"user_id"`
EventID string `json:"event_id"`
EventType string `json:"event_type"`
EventPayload string `json:"event_payload"`
HTTPResponseStatusCode *int `json:"http_response_status_code"`
ErrorMessage string `json:"error_message"`
}