Skip to content

Commit 0a2962e

Browse files
committed
Fix Requester struct incompatibilities (issue #307)
1 parent e4a6604 commit 0a2962e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

zendesk/ticket.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@ type Ticket struct {
116116
type Requester struct {
117117
Name string `json:"name,omitempty"`
118118
Email string `json:"email,omitempty"`
119-
LocaleID string `json:"locale_id,omitempty"`
119+
Locale string `json:"locale,omitempty"`
120+
LocaleID int64 `json:"locale_id,omitempty"`
120121
}
121122

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

200-
201201
// GetOrganizationTickets get organization ticket list
202202
//
203203
// ref: https://developer.zendesk.com/rest_api/docs/support/tickets#list-tickets

0 commit comments

Comments
 (0)