Documentation
¶
Index ¶
- type Address
- type Attachment
- type AttachmentCreate
- type Conversation
- type ConversationCreate
- type ConversationField
- type Customer
- type CustomerCreate
- type CustomerUpdate
- type DocsPageInfo
- type Email
- type Mailbox
- type NoteBody
- type Organization
- type OrganizationProperty
- type PageInfo
- type Person
- type Property
- type Rating
- type ReplyBody
- type SavedReply
- type Tag
- type Team
- type Thread
- type ThreadCreate
- type ThreadCreateBody
- type User
- type Webhook
- type WebhookCreate
- type WebhookUpdate
- type Workflow
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attachment ¶
type AttachmentCreate ¶
type Conversation ¶
type Conversation struct {
ID int `json:"id"`
Number int `json:"number"`
Subject string `json:"subject"`
Status string `json:"status"`
State string `json:"state"`
Type string `json:"type"`
MailboxID int `json:"mailboxId"`
AssignTo int `json:"assignTo,omitempty"`
CreatedAt string `json:"createdAt"`
ModifiedAt string `json:"userUpdatedAt"`
ClosedAt string `json:"closedAt,omitempty"`
PrimaryCustomer Person `json:"primaryCustomer"`
Assignee *Person `json:"assignee,omitempty"`
Preview string `json:"preview"`
Tags []Tag `json:"tags,omitempty"`
CC []string `json:"cc,omitempty"`
BCC []string `json:"bcc,omitempty"`
CustomFields []ConversationField `json:"customFields,omitempty"`
Source struct {
Type string `json:"type"`
Via string `json:"via"`
} `json:"source,omitempty"`
Threads []Thread `json:"-"`
}
type ConversationCreate ¶
type ConversationCreate struct {
Subject string `json:"subject"`
MailboxID int `json:"mailboxId"`
Type string `json:"type"`
Status string `json:"status"`
Customer Person `json:"customer"`
Threads []ThreadCreate `json:"threads"`
Tags []string `json:"tags,omitempty"`
AssignTo int `json:"assignTo,omitempty"`
CreatedAt string `json:"createdAt,omitempty"`
Imported *bool `json:"imported,omitempty"`
AutoReply *bool `json:"autoReply,omitempty"`
Fields []ConversationField `json:"fields,omitempty"`
}
type ConversationField ¶
type Customer ¶
type Customer struct {
ID int `json:"id"`
FirstName string `json:"firstName"`
LastName string `json:"lastName"`
Email string `json:"email,omitempty"`
Phone string `json:"phone,omitempty"`
PhotoURL string `json:"photoUrl,omitempty"`
PhotoType string `json:"photoType,omitempty"`
CreatedAt string `json:"createdAt"`
ModifiedAt string `json:"updatedAt"`
Emails []Email `json:"-"` // populated from _embedded
}
type CustomerCreate ¶
type CustomerUpdate ¶
type DocsPageInfo ¶
type Organization ¶
type OrganizationProperty ¶
type ReplyBody ¶
type ReplyBody struct {
Customer Person `json:"customer"`
Text string `json:"text"`
Status string `json:"status,omitempty"`
Draft *bool `json:"draft,omitempty"`
Imported *bool `json:"imported,omitempty"`
User int `json:"user,omitempty"`
To []Person `json:"to,omitempty"`
CC []Person `json:"cc,omitempty"`
BCC []Person `json:"bcc,omitempty"`
CreatedAt string `json:"createdAt,omitempty"`
Type string `json:"type,omitempty"`
Attachments []int `json:"attachments,omitempty"`
}
type SavedReply ¶
type SavedReply struct {
ID int `json:"id"`
MailboxID int `json:"mailboxId,omitempty"`
Name string `json:"name"`
Subject string `json:"subject,omitempty"`
Text string `json:"text,omitempty"`
IsPrivate bool `json:"isPrivate,omitempty"`
CreatedAt string `json:"createdAt,omitempty"`
UpdatedAt string `json:"updatedAt,omitempty"`
}
type Tag ¶
type Tag struct {
ID int `json:"id"`
Name string `json:"name"`
Slug string `json:"slug"`
Color string `json:"color"`
}
func (*Tag) UnmarshalJSON ¶ added in v0.2.3
type Thread ¶
type Thread struct {
ID int `json:"id"`
Type string `json:"type"`
Status string `json:"status"`
State string `json:"state"`
Body string `json:"body"`
CreatedAt string `json:"createdAt"`
CreatedBy Person `json:"createdBy"`
Attachments []Attachment `json:"attachments,omitempty"`
Source struct {
Type string `json:"type"`
Via string `json:"via"`
} `json:"source"`
Action struct {
Text string `json:"text"`
Type string `json:"type"`
} `json:"action"`
}
type ThreadCreate ¶
type ThreadCreateBody ¶
type User ¶
type User struct {
ID int `json:"id"`
FirstName string `json:"firstName"`
LastName string `json:"lastName"`
Email string `json:"email"`
Role string `json:"role"`
Type string `json:"type"`
CreatedAt string `json:"createdAt"`
ModifiedAt string `json:"updatedAt"`
PhotoURL string `json:"photoUrl,omitempty"`
}
type Webhook ¶
type Webhook struct {
ID int `json:"id"`
URL string `json:"url"`
State string `json:"state"`
Events []string `json:"events"`
Secret string `json:"secret,omitempty"`
CreatedAt string `json:"createdAt"`
PayloadVersion string `json:"payloadVersion,omitempty"`
MailboxIDs []int `json:"mailboxIds,omitempty"`
Notification bool `json:"notification,omitempty"`
Label string `json:"label,omitempty"`
}
type WebhookCreate ¶
type WebhookCreate struct {
URL string `json:"url"`
Events []string `json:"events"`
Secret string `json:"secret"`
PayloadVersion string `json:"payloadVersion,omitempty"`
MailboxIDs []int `json:"mailboxIds,omitempty"`
Notification *bool `json:"notification,omitempty"`
Label string `json:"label,omitempty"`
}
type WebhookUpdate ¶
type WebhookUpdate struct {
URL string `json:"url,omitempty"`
Events []string `json:"events,omitempty"`
Secret string `json:"secret,omitempty"`
PayloadVersion string `json:"payloadVersion,omitempty"`
MailboxIDs []int `json:"mailboxIds,omitempty"`
Notification *bool `json:"notification,omitempty"`
Label string `json:"label,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.