Skip to content

Commit

Permalink
Fix Requester struct incompatibilities (issue #307)
Browse files Browse the repository at this point in the history
  • Loading branch information
h6ah4i committed Mar 5, 2024
1 parent e4a6604 commit 0a2962e
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit 0a2962e

Please sign in to comment.