1
0
mirror of https://github.com/interviewstreet/go-jira.git synced 2025-11-23 22:04:45 +02:00

feat: Add AccountType and Locale to User struct

This commit is contained in:
mhupman
2019-07-22 13:49:43 -04:00
committed by Wes McNamee
parent 216e0056d6
commit 52ab347903

View File

@@ -17,6 +17,7 @@ type UserService struct {
type User struct {
Self string `json:"self,omitempty" structs:"self,omitempty"`
AccountID string `json:"accountId,omitempty" structs:"accountId,omitempty"`
AccountType string `json:"accountType,omitempty" structs:"accountType,omitempty"`
// TODO: name & key are deprecated, see:
// https://developer.atlassian.com/cloud/jira/platform/api-changes-for-user-privacy-announcement/
Name string `json:"name,omitempty" structs:"name,omitempty"`
@@ -27,6 +28,7 @@ type User struct {
DisplayName string `json:"displayName,omitempty" structs:"displayName,omitempty"`
Active bool `json:"active,omitempty" structs:"active,omitempty"`
TimeZone string `json:"timeZone,omitempty" structs:"timeZone,omitempty"`
Locale string `json:"locale,omitempty" structs:"locale,omitempty"`
ApplicationKeys []string `json:"applicationKeys,omitempty" structs:"applicationKeys,omitempty"`
}