1
0
mirror of synced 2025-03-14 08:46:09 +03:00

change setting name

This commit is contained in:
Суханов Данила 2025-03-12 10:37:50 +03:00
parent 5da33ab761
commit f2bc5ae0ea
2 changed files with 6 additions and 6 deletions

View File

@ -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,
},

View File

@ -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"`
}