1
0
mirror of synced 2024-11-25 06:26:03 +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",
Nickname: "octopus",
Firstname: "Joe",
Utm: &Utm{
Source: "test-source",
Term: "",
},
},
Channel: 1,
ExternalChatID: "24798237492374",

View File

@ -256,6 +256,15 @@ type Customer struct {
Language string `json:"language,omitempty"`
Phone string `json:"phone,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.