-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
78 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package zendesk | ||
|
||
// Attachment is struct for attachment payload | ||
// https://developer.zendesk.com/rest_api/docs/support/attachments.html | ||
type Attachment struct { | ||
ID int64 `json:"id"` | ||
FileName string `json:"file_name"` | ||
ContentURL string `json:"content_url"` | ||
ContentType string `json:"content_type"` | ||
Size int64 `json:"size"` | ||
Thumbnails []Photo `json:"thumbnails"` | ||
Inline bool `json:"inline"` | ||
} | ||
|
||
// Photo is thumbnail which is included in attachment | ||
type Photo struct { | ||
ID int64 `json:"id"` | ||
FileName string `json:"file_name"` | ||
ContentURL string `json:"content_url"` | ||
ContentType string `json:"content_type"` | ||
Size int64 `json:"size"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package zendesk | ||
|
||
import ( | ||
"time" | ||
) | ||
|
||
// Brand is struct for brand payload | ||
// https://developer.zendesk.com/rest_api/docs/support/brands | ||
type Brand struct { | ||
ID int64 `json:"id,omitempty"` | ||
URL string `json:"url,omitempty"` | ||
Name string `json:"name"` | ||
BrandURL string `json:"brand_url,omitempty"` | ||
HasHelpCenter bool `json:"has_help_center,omitempty"` | ||
HelpCenterState string `json:"help_center_state,omitempty"` | ||
Active bool `json:"active,omitempty"` | ||
Default bool `json:"default,omitempty"` | ||
Logo Attachment `json:"logo,omitempty"` | ||
TicketFieldIDs []int64 `json:"ticket_field_ids,omitempty"` | ||
Subdomain string `json:"subdomain"` | ||
HostMapping string `json:"host_mapping,omitempty"` | ||
SignatureTemplate string `json:"signature_template"` | ||
CreatedAt time.Time `json:"created_at,omitempty"` | ||
UpdatedAt time.Time `json:"updated_at,omitempty"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters