1
0
mirror of synced 2024-11-22 04:56:06 +03:00

Add Utm field to the Customer struct

This commit is contained in:
Vragov Roman 2022-11-18 16:25:50 +03:00
parent 7c964878ce
commit be7388a4c1
2 changed files with 13 additions and 0 deletions

View File

@ -501,6 +501,10 @@ func (t *MGClientTest) Test_TextMessages() {
ExternalID: "6", ExternalID: "6",
Nickname: "octopus", Nickname: "octopus",
Firstname: "Joe", Firstname: "Joe",
Utm: &Utm{
Source: "test-source",
Term: "",
},
}, },
Channel: 1, Channel: 1,
ExternalChatID: "24798237492374", ExternalChatID: "24798237492374",

View File

@ -256,6 +256,15 @@ type Customer struct {
Language string `json:"language,omitempty"` Language string `json:"language,omitempty"`
Phone string `json:"phone,omitempty"` Phone string `json:"phone,omitempty"`
Email string `json:"email,omitempty"` Email string `json:"email,omitempty"`
Utm *Utm `json:"utm,omitempty"`
}
type Utm struct {
Source string `json:"source,omitempty"`
Medium string `json:"medium,omitempty"`
Campaign string `json:"campaign,omitempty"`
Term string `json:"term,omitempty"`
Content string `json:"content,omitempty" `
} }
// Message struct. // Message struct.