/
webhooks.go
29 lines (22 loc) · 1.08 KB
/
webhooks.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package textgrid
type TcrWebhookPayload struct {
EventType TcrWebhookEventType `json:"eventType"`
CspID string `json:"cspId"`
CspName string `json:"cspName"`
BrandName string `json:"brandName"`
BrandReferenceID any `json:"brandReferenceId"`
BrandID string `json:"brandId"`
BrandIdentityStatus BrandIdentityStatusType `json:"brandIdentityStatus"`
CampaignID string `json:"campaignId"`
CampaignReferenceID string `json:"campaignReferenceId"`
Description string `json:"description"`
Mock bool `json:"mock"`
}
type TcrWebhookEventType string
var (
TcrWebhookEventTypeBrandIdentityStatusUpdate TcrWebhookEventType = "BRAND_IDENTITY_STATUS_UPDATE"
TcrWebhookEventTypeBrandDelete TcrWebhookEventType = "BRAND_DELETE"
TcrWebhookEventTypeCampaignDCAComplete TcrWebhookEventType = "CAMPAIGN_DCA_COMPLETE"
TcrWebhookEventTypeCampaignBilled TcrWebhookEventType = "CAMPAIGN_BILLED"
TcrWebhookEventTypeCampaignExpired TcrWebhookEventType = "CAMPAIGN_EXPIRED"
)