Update channel features
This commit is contained in:
commit
e3ddd0a280
@ -72,6 +72,10 @@ func templateChannel(t *testing.T) uint64 {
|
|||||||
Quoting: ChannelFeatureBoth,
|
Quoting: ChannelFeatureBoth,
|
||||||
Deleting: ChannelFeatureBoth,
|
Deleting: ChannelFeatureBoth,
|
||||||
},
|
},
|
||||||
|
CustomerExternalID: ChannelFeatureCustomerExternalIDPhone,
|
||||||
|
SendingPolicy: SendingPolicy{
|
||||||
|
NewCustomer: ChannelFeatureSendingPolicyTemplate,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
15
v1/types.go
15
v1/types.go
@ -16,6 +16,14 @@ const (
|
|||||||
ChannelFeatureSend string = "send"
|
ChannelFeatureSend string = "send"
|
||||||
// ChannelFeatureBoth channel implement feature on both directions
|
// ChannelFeatureBoth channel implement feature on both directions
|
||||||
ChannelFeatureBoth string = "both"
|
ChannelFeatureBoth string = "both"
|
||||||
|
// ChannelFeatureAny channel implement feature on any
|
||||||
|
ChannelFeatureAny string = "any"
|
||||||
|
// ChannelFeatureSendingPolicyNo channel can not implement feature
|
||||||
|
ChannelFeatureSendingPolicyNo string = "no"
|
||||||
|
// ChannelFeatureSendingPolicyTemplate channel can implement template
|
||||||
|
ChannelFeatureSendingPolicyTemplate string = "template"
|
||||||
|
// ChannelFeatureCustomerExternalIDPhone customer externalId is phone
|
||||||
|
ChannelFeatureCustomerExternalIDPhone string = "phone"
|
||||||
|
|
||||||
// MsgTypeText text message
|
// MsgTypeText text message
|
||||||
MsgTypeText string = "text"
|
MsgTypeText string = "text"
|
||||||
@ -84,6 +92,8 @@ type ChannelSettings struct {
|
|||||||
Order Order `json:"order"`
|
Order Order `json:"order"`
|
||||||
File ChannelSettingsFilesBase `json:"file"`
|
File ChannelSettingsFilesBase `json:"file"`
|
||||||
Image ChannelSettingsFilesBase `json:"image"`
|
Image ChannelSettingsFilesBase `json:"image"`
|
||||||
|
CustomerExternalID string `json:"customer_external_id,omitempty"`
|
||||||
|
SendingPolicy SendingPolicy `json:"sending_policy,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Product type
|
// Product type
|
||||||
@ -126,6 +136,11 @@ type ChannelSettingsFilesBase struct {
|
|||||||
CommentMaxCharsCount int `json:"comment_max_chars_count,omitempty"`
|
CommentMaxCharsCount int `json:"comment_max_chars_count,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type SendingPolicy struct {
|
||||||
|
NewCustomer string `json:"new_customer,omitempty"`
|
||||||
|
AfterReplyTimeout string `json:"after_reply_timeout,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
// 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