Skip to content

Commit 52ab347

Browse files
mhupmanghostsquad
authored andcommitted
feat: Add AccountType and Locale to User struct
1 parent 216e005 commit 52ab347

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

user.go

+4-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@ type UserService struct {
1515

1616
// User represents a JIRA user.
1717
type User struct {
18-
Self string `json:"self,omitempty" structs:"self,omitempty"`
19-
AccountID string `json:"accountId,omitempty" structs:"accountId,omitempty"`
18+
Self string `json:"self,omitempty" structs:"self,omitempty"`
19+
AccountID string `json:"accountId,omitempty" structs:"accountId,omitempty"`
20+
AccountType string `json:"accountType,omitempty" structs:"accountType,omitempty"`
2021
// TODO: name & key are deprecated, see:
2122
// https://developer.atlassian.com/cloud/jira/platform/api-changes-for-user-privacy-announcement/
2223
Name string `json:"name,omitempty" structs:"name,omitempty"`
@@ -27,6 +28,7 @@ type User struct {
2728
DisplayName string `json:"displayName,omitempty" structs:"displayName,omitempty"`
2829
Active bool `json:"active,omitempty" structs:"active,omitempty"`
2930
TimeZone string `json:"timeZone,omitempty" structs:"timeZone,omitempty"`
31+
Locale string `json:"locale,omitempty" structs:"locale,omitempty"`
3032
ApplicationKeys []string `json:"applicationKeys,omitempty" structs:"applicationKeys,omitempty"`
3133
}
3234

0 commit comments

Comments
 (0)