diff --git a/v1/client_test.go b/v1/client_test.go index b99a49f..4ef9f79 100644 --- a/v1/client_test.go +++ b/v1/client_test.go @@ -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", diff --git a/v1/types.go b/v1/types.go index bc6ea0b..54b21b1 100644 --- a/v1/types.go +++ b/v1/types.go @@ -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.