Add Utm
field to the Customer
struct
This commit is contained in:
commit
6d802eef16
@ -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",
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user