Skip to content

Commit

Permalink
Fix a type and clarify extra ID field
Browse files Browse the repository at this point in the history
  • Loading branch information
optik-aper committed Oct 3, 2024
1 parent e7d2483 commit 304b1cb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions subaccount.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,17 @@ type SubAccount struct {
ID string `json:"id"`
Email string `json:"email"`
Name string `json:"subaccount_name"`
SubID string `json:"subaccount_id"`
OtherID string `json:"subaccount_id"`
Activated bool `json:"activated"`
Balance int `json:"balance"`
PendingCharged int `json:"pending_charges"`
PendingCharges int `json:"pending_charges"`
}

// SubAccountReq is the sub-account struct for create calls
type SubAccountReq struct {
Email string `json:"email"`
Name string `json:"subaccount_name,omitempty"`
SubID string `json:"subaccount_id,omitempty"`
Email string `json:"email"`
Name string `json:"subaccount_name,omitempty"`
OtherID string `json:"subaccount_id,omitempty"`
}

// List all sub-accounts
Expand Down

0 comments on commit 304b1cb

Please sign in to comment.