File size: 911 Bytes
83a59ca
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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"`
}