Added WhatsApp-specific channel properties
This commit is contained in:
parent
ae95cb4850
commit
f97205273a
26
v1/types.go
26
v1/types.go
@ -109,6 +109,7 @@ type ChannelSettings struct {
|
|||||||
Suggestions ChannelSettingsSuggestions `json:"suggestions,omitempty"`
|
Suggestions ChannelSettingsSuggestions `json:"suggestions,omitempty"`
|
||||||
Audio ChannelSettingsAudio `json:"audio"`
|
Audio ChannelSettingsAudio `json:"audio"`
|
||||||
Template ChannelSettingsTemplate `json:"template"`
|
Template ChannelSettingsTemplate `json:"template"`
|
||||||
|
WhatsApp *WhatsAppChannelProperties `json:"whatsapp,omitempty"` // for WhatsApp channels only.
|
||||||
}
|
}
|
||||||
|
|
||||||
// Product type.
|
// Product type.
|
||||||
@ -177,6 +178,31 @@ type ChannelSettingsTemplate struct {
|
|||||||
Creation bool `json:"creation,omitempty"`
|
Creation bool `json:"creation,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// WhatsAppChannelProperties WhatsApp-specific channel characteristics
|
||||||
|
type WhatsAppChannelProperties struct {
|
||||||
|
Tier *int `json:"tier"`
|
||||||
|
ChannelQuality *WhatsAppChannelQuality `json:"channel_quality"`
|
||||||
|
ChannelStatus *WhatsAppChannelStatus `json:"channel_status"`
|
||||||
|
}
|
||||||
|
|
||||||
|
type WhatsAppChannelQuality string
|
||||||
|
|
||||||
|
var (
|
||||||
|
WhatsAppChannelQualityHigh WhatsAppChannelQuality = "high"
|
||||||
|
WhatsAppChannelQualityMedium WhatsAppChannelQuality = "medium"
|
||||||
|
WhatsAppChannelQualityLow WhatsAppChannelQuality = "low"
|
||||||
|
)
|
||||||
|
|
||||||
|
type WhatsAppChannelStatus string
|
||||||
|
|
||||||
|
var (
|
||||||
|
WhatsAppChannelStatusConnected WhatsAppChannelStatus = "connected"
|
||||||
|
WhatsAppChannelStatusFlagged WhatsAppChannelStatus = "flagged"
|
||||||
|
WhatsAppChannelStatusOffline WhatsAppChannelStatus = "offline"
|
||||||
|
WhatsAppChannelStatusPending WhatsAppChannelStatus = "pending"
|
||||||
|
WhatsAppChannelStatusRestricted WhatsAppChannelStatus = "restricted"
|
||||||
|
)
|
||||||
|
|
||||||
// FullFileResponse uploaded file data.
|
// FullFileResponse uploaded file data.
|
||||||
type FullFileResponse struct {
|
type FullFileResponse struct {
|
||||||
ID string `json:"id,omitempty"`
|
ID string `json:"id,omitempty"`
|
||||||
|
Loading…
Reference in New Issue
Block a user