Skip to content

Commit

Permalink
Merge pull request #308 from h6ah4i/fix/issue-307-requester-struct-in…
Browse files Browse the repository at this point in the history
…compatibilities

Fix Requester struct incompatibilities (issue #307)
  • Loading branch information
nukosuke authored Mar 7, 2024
2 parents f58d139 + 0a2962e commit cfe7c2f
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 cfe7c2f

Please sign in to comment.