Skip to content

Commit cfe7c2f

Browse files
author
nukosuke
authored
Merge pull request #308 from h6ah4i/fix/issue-307-requester-struct-incompatibilities
Fix Requester struct incompatibilities (issue #307)
2 parents f58d139 + 0a2962e commit cfe7c2f

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)