diff --git a/zendesk/audits.go b/zendesk/audits.go index ada2dd0..7fa5326 100644 --- a/zendesk/audits.go +++ b/zendesk/audits.go @@ -48,7 +48,7 @@ type SourceInfo struct { ProfileURL *string `json:"profile_url,omitempty"` RegisteredIntegrationServiceName *string `json:"registered_integration_service_name,omitempty"` RevisionID *int `json:"revision_id,omitempty"` - ServiceInfo *string `json:"service_info,omitempty"` + ServiceInfo *ServiceInfo `json:"service_info,omitempty"` Subject *string `json:"subject,omitempty"` SupportsChannelback *bool `json:"supports_channelback,omitempty"` SupportsClickthrough *bool `json:"supports_clickthrough,omitempty"` @@ -59,6 +59,14 @@ type SourceInfo struct { Username *string `json:"username,omitempty"` } +type ServiceInfo struct { + SupportsChannelback bool `json:"supports_channelback"` + SupportsClickthrough bool `json:"supports_clickthrough"` + RegisteredIntegrationServiceName string `json:"registered_integration_service_name"` + RegisteredIntegrationServiceExternalID string `json:"registered_integration_service_external_id"` + IntegrationServiceInstanceName string `json:"integration_service_instance_name"` +} + func (c *client) ListTicketAudits(ticketID int64, options *ListOptions) (*ListResponse, error) { params, err := query.Values(options) if err != nil {