-
Notifications
You must be signed in to change notification settings - Fork 12
/
contact.go
41 lines (27 loc) · 883 Bytes
/
contact.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
package platformclientv2
import (
"encoding/json"
"strconv"
"strings"
)
// Contact
type Contact struct {
// Address - Email address or phone number for this contact type
Address *string `json:"address,omitempty"`
// Display - Formatted version of the address property
Display *string `json:"display,omitempty"`
// MediaType
MediaType *string `json:"mediaType,omitempty"`
// VarType
VarType *string `json:"type,omitempty"`
// Extension - Use internal extension instead of address. Mutually exclusive with the address field.
Extension *string `json:"extension,omitempty"`
// CountryCode
CountryCode *string `json:"countryCode,omitempty"`
}
// String returns a JSON representation of the model
func (o *Contact) String() string {
j, _ := json.Marshal(o)
str, _ := strconv.Unquote(strings.Replace(strconv.Quote(string(j)), `\\u`, `\u`, -1))
return str
}