forked from gbrlsnchs/terraform-provider-zendesk
-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
09ac4ea
commit f7bb5f0
Showing
2 changed files
with
161 additions
and
22 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 |
---|---|---|
@@ -1,30 +1,35 @@ | ||
package models | ||
|
||
type TicketForm struct { | ||
ID int64 `json:"id,omitempty"` | ||
URL string `json:"url,omitempty"` | ||
Name string `json:"name"` | ||
RawName string `json:"raw_name,omitempty"` | ||
DisplayName string `json:"display_name,omitempty"` | ||
RawDisplayName string `json:"raw_display_name,omitempty"` | ||
Position int64 `json:"position"` | ||
Active bool `json:"active,omitempty"` | ||
EndUserVisible bool `json:"end_user_visible,omitempty"` | ||
Default bool `json:"default,omitempty"` | ||
TicketFieldIDs []int64 `json:"ticket_field_ids,omitempty"` | ||
InAllBrands bool `json:"in_all_brands,omitempty"` | ||
RestrictedBrandIDs []int64 `json:"restricted_brand_ids,omitempty"` | ||
ID int64 `json:"id,omitempty"` | ||
URL string `json:"url,omitempty"` | ||
Name string `json:"name"` | ||
RawName string `json:"raw_name,omitempty"` | ||
DisplayName string `json:"display_name,omitempty"` | ||
RawDisplayName string `json:"raw_display_name,omitempty"` | ||
Position int64 `json:"position"` | ||
Active bool `json:"active,omitempty"` | ||
EndUserVisible bool `json:"end_user_visible,omitempty"` | ||
Default bool `json:"default,omitempty"` | ||
TicketFieldIDs []int64 `json:"ticket_field_ids,omitempty"` | ||
InAllBrands bool `json:"in_all_brands,omitempty"` | ||
RestrictedBrandIDs []int64 `json:"restricted_brand_ids,omitempty"` | ||
AgentConditions []AgentCondition `json:"agent_conditions,omitempty"` | ||
} | ||
|
||
type TicketFormListOptions struct { | ||
PageOptions | ||
Active bool `url:"active,omitempty"` | ||
EndUserVisible bool `url:"end_user_visible,omitempty"` | ||
FallbackToDefault bool `url:"fallback_to_default,omitempty"` | ||
AssociatedToBrand bool `url:"associated_to_brand,omitempty"` | ||
type AgentCondition struct { | ||
ParentFieldId int64 `json:"parent_field_id"` | ||
Value string `json:"value"` | ||
ChildFields []ChildFields `json:"child_fields"` // eg, matching_value, matching_value_1 | ||
} | ||
|
||
type PageOptions struct { | ||
PerPage int `url:"per_page,omitempty"` | ||
Page int `url:"page,omitempty"` | ||
type ChildFields struct { | ||
Id int64 `json:"id"` | ||
IsRequired bool `json:"is_required"` | ||
RequiredOnStatuses RequiredOnStatuses `json:"required_on_statuses"` | ||
} | ||
|
||
type RequiredOnStatuses struct { | ||
Type string `json:"type"` // NO_STATUSES OR SOME_STATUSES OR ALL_STATUSES | ||
Statuses []string `json:"statuses"` // eg, ["new", "pending", "open"] | ||
} |
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