-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodel_create_contact_input_object.go
36 lines (34 loc) · 1.48 KB
/
model_create_contact_input_object.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
/*
* Textmagic API
*
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* API version: 2
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package TextMagic
type CreateContactInputObject struct {
// Contact first name.
FirstName string `json:"firstName,omitempty"`
// Contact last name.
LastName string `json:"lastName,omitempty"`
// Phone number in [E.164 format](https://en.wikipedia.org/wiki/E.164).
Phone string `json:"phone,omitempty"`
// Contact email address.
Email string `json:"email,omitempty"`
// Company name.
CompanyName string `json:"companyName,omitempty"`
// Contact [list](https://docs.textmagic.com/#tag/Lists) ID. Each contact must be assigned to at least one list.
Lists string `json:"lists,omitempty"`
// Is the contact marked as favorite?
Favorited bool `json:"favorited,omitempty"`
// Is the contact blocked for outgoing and incoming messaging?
Blocked bool `json:"blocked,omitempty"`
// Force type of phone. Possible values: 0 is landline; 1 is mobile; default is -1 (auto-detection).
Type_ int32 `json:"type,omitempty"`
CustomFieldValues []CustomFieldListItem `json:"customFieldValues,omitempty"`
// Treat phone numbers passed in the request body as local.
Local int32 `json:"local,omitempty"`
// The 2-letter ISO country code for local phone numbers, used when local is set to true. Default is the account country.
Country string `json:"country,omitempty"`
}