Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Requester struct incompatibilities (issue #307) #308

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions zendesk/ticket.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ type Ticket struct {
type Requester struct {
Name string `json:"name,omitempty"`
Email string `json:"email,omitempty"`
LocaleID string `json:"locale_id,omitempty"`
Locale string `json:"locale,omitempty"`
LocaleID int64 `json:"locale_id,omitempty"`
}

// Via is information about source of Ticket or TicketComment
Expand Down Expand Up @@ -197,7 +198,6 @@ func (z *Client) GetTickets(ctx context.Context, opts *TicketListOptions) ([]Tic
return data.Tickets, data.Page, nil
}


// GetOrganizationTickets get organization ticket list
//
// ref: https://developer.zendesk.com/rest_api/docs/support/tickets#list-tickets
Expand Down
Loading