1
0
mirror of synced 2024-11-21 20:46:05 +03:00

Add Utm field to the Customer struct

This commit is contained in:
Pavel 2022-11-23 11:22:52 +03:00 committed by GitHub
commit 6d802eef16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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.