This repository has been archived by the owner on Jun 24, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
ticket_struct.go
36 lines (34 loc) · 1.73 KB
/
ticket_struct.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
package zendesk
type Via struct{}
type Ticket struct {
Id int `json:"id,omitempty"`
Url string `json:"url,omitempty"`
ExternalId string `json:"external_id,omitempty"`
Type string `json:"type,omitempty"`
Subject string `json:"subject,omitempty"`
RawSubject string `json:"raw_subject,omitempty"`
Description string `json:"description,omitempty"`
Priority string `json:"priority,omitempty"`
Status string `json:"status,omitempty"`
Recipient string `json:"recipient,omitempty"`
RequesterId int `json:"requester_id,omitempty"`
SubmitterId int `json:"submitter_id,omitempty"`
AssigneeId int `json:"assignee_id,omitempty"`
OrganizationId int `json:"organization_id,omitempty"`
GroupId int `json:"group_id,omitempty"`
CollaboratorsId []int `json:"collaborators_id,omitempty"`
ForumTopicId int `json:"forum_topic_id,omitempty"`
ProblemId int `json:"problem_id,omitempty"`
HasIncidents bool `json:"has_incidents,omitempty"`
DueAt string `json:"due_at,omitempty"`
Tags []string `json:"tags,omitempty"`
Via *Via `json:"via,omitempty"`
CustomFields []string `json:"custom_fields,omitempty"`
SatisfactionRating []string `json:"satisfaction_rating,omitempty"`
SharingAgreementIds []int `json:"sharing_agreement_ids,omitempty"`
FollowupIds []int `json:"followup_ids,omitempty"`
TicketFormId int `json:"ticket_form_id,omitempty"`
BrandId int `json:"brand_id,omitempty"`
CreatedAt string `json:"created_at,omitempty"`
UpdatedAt string `json:"updated_at,omitempty"`
}