Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make _account_id optional in AccountInfo #19

Merged
merged 4 commits into from
Oct 13, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ first. For more complete details see

* Minor fix to SubmitChange to use the `http.StatusConflict` constant
instead of a hard coded value when comparing response codes.
* Updated AccountInfo.AccountID to be omitted of empty (such as when
used in ApprovalInfo).

### 0.1.0

Expand Down
2 changes: 1 addition & 1 deletion accounts.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type AccountsService struct {

// AccountInfo entity contains information about an account.
type AccountInfo struct {
AccountID int `json:"_account_id"`
AccountID int `json:"_account_id,omitempty"`
Name string `json:"name,omitempty"`
Email string `json:"email,omitempty"`
Username string `json:"username,omitempty"`
Expand Down