change setting name
This commit is contained in:
parent
5da33ab761
commit
f2bc5ae0ea
@ -120,7 +120,7 @@ func (t *MGClientTest) Test_TransportChannels() {
|
||||
SendingPolicy: SendingPolicy{
|
||||
NewCustomer: ChannelFeatureSendingPolicyTemplate,
|
||||
},
|
||||
Reaction: Reaction{
|
||||
Reactions: Reactions{
|
||||
Dictionary: []string{"👏", "😁", "🤔"},
|
||||
MaxCount: 3,
|
||||
},
|
||||
@ -178,7 +178,7 @@ func (t *MGClientTest) Test_ActivateTransportChannel() {
|
||||
Creating: ChannelFeatureBoth,
|
||||
Reaction: ChannelFeatureAny,
|
||||
},
|
||||
Reaction: Reaction{
|
||||
Reactions: Reactions{
|
||||
Dictionary: []string{"👏", "😁", "🤔"},
|
||||
MaxCount: 3,
|
||||
},
|
||||
@ -241,7 +241,7 @@ func (t *MGClientTest) Test_ActivateNewTransportChannel() {
|
||||
Creating: ChannelFeatureBoth,
|
||||
Reaction: ChannelFeatureAny,
|
||||
},
|
||||
Reaction: Reaction{
|
||||
Reactions: Reactions{
|
||||
Dictionary: []string{"👏", "😁", "🤔"},
|
||||
MaxCount: 3,
|
||||
},
|
||||
@ -321,7 +321,7 @@ func (t *MGClientTest) Test_UpdateTransportChannel() {
|
||||
Creating: ChannelFeatureBoth,
|
||||
Reaction: ChannelFeatureAny,
|
||||
},
|
||||
Reaction: Reaction{
|
||||
Reactions: Reactions{
|
||||
Dictionary: []string{"👏", "😁", "🤔"},
|
||||
MaxCount: 3,
|
||||
},
|
||||
|
@ -104,7 +104,7 @@ type ChannelSettings struct {
|
||||
Order Order `json:"order"`
|
||||
File ChannelSettingsFilesBase `json:"file"`
|
||||
Image ChannelSettingsFilesBase `json:"image"`
|
||||
Reaction Reaction `json:"reaction"`
|
||||
Reactions Reactions `json:"reactions"`
|
||||
CustomerExternalID string `json:"customer_external_id,omitempty"`
|
||||
SendingPolicy SendingPolicy `json:"sending_policy,omitempty"`
|
||||
Suggestions ChannelSettingsSuggestions `json:"suggestions,omitempty"`
|
||||
@ -121,7 +121,7 @@ type Product struct {
|
||||
Reaction string `json:"reaction,omitempty"`
|
||||
}
|
||||
|
||||
type Reaction struct {
|
||||
type Reactions struct {
|
||||
Dictionary []string `json:"dictionary,omitempty"`
|
||||
MaxCount uint16 `json:"max_count,omitempty"`
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user