Skip to content

Commit

Permalink
Merge pull request #204 from benmcginnis/master
Browse files Browse the repository at this point in the history
Add AccountID to User struct to support GDPR
  • Loading branch information
ghostsquad authored Apr 16, 2019
2 parents 53c4680 + 5369039 commit 48ad836
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions user.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,13 @@ type UserService struct {

// User represents a JIRA user.
type User struct {
Self string `json:"self,omitempty" structs:"self,omitempty"`
Self string `json:"self,omitempty" structs:"self,omitempty"`
AccountID string `json:"accountId,omitempty" structs:"accountId,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"`
Password string `json:"-"`
Key string `json:"key,omitempty" structs:"key,omitempty"`
Password string `json:"-"`
EmailAddress string `json:"emailAddress,omitempty" structs:"emailAddress,omitempty"`
AvatarUrls AvatarUrls `json:"avatarUrls,omitempty" structs:"avatarUrls,omitempty"`
DisplayName string `json:"displayName,omitempty" structs:"displayName,omitempty"`
Expand Down

0 comments on commit 48ad836

Please sign in to comment.