Documentation
¶
Index ¶
Constants ¶
View Source
const ErrCodeNoAccountExists = "NoAccountExists"
ErrCodeNoAccountExists ...
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountInviteResponse ¶
type AccountInviteResponse struct {
Id string `json:"id"`
Email string `json:"email"`
State string `json:"state"`
}
Account Invites ...
type AccountServiceAPI ¶
type AccountServiceAPI interface {
Accounts() Accounts
}
AccountServiceAPI is the accountv2 client ...
type AccountUser ¶
type AccountUser struct {
UserId string `json:"userId"`
FirstName string `json:"firstname"`
LastName string `json:"lastname"`
State string `json:"state"`
IbmUniqueId string `json:"ibmUniqueId"`
Email string `json:"email"`
Phonenumber string `json:"phonenumber"`
CreatedOn string `json:"createdOn"`
VerifiedOn string `json:"verifiedOn"`
Id string `json:"id"`
UaaGuid string `json:"uaaGuid"`
AccountId string `json:"accountId"`
Role string `json:"role"`
InvitedOn string `json:"invitedOn"`
Photo string `json:"photo"`
}
type AccountUserEntity ¶
type AccountUserMetadata ¶
type AccountUserMetadata Metadata
type AccountUserQueryResponse ¶
type AccountUserQueryResponse struct {
Metadata Metadata
AccountUsers []AccountUserResource `json:"resources"`
}
type AccountUserResource ¶
type AccountUserResource struct {
Metadata AccountUserMetadata
Entity AccountUserEntity
}
func (AccountUserResource) ToModel ¶
func (resource AccountUserResource) ToModel() AccountUser
type Accounts ¶
type Accounts interface {
GetAccountUsers(accountGuid string) ([]AccountUser, error)
InviteAccountUser(accountGuid string, userEmail string) (AccountInviteResponse, error)
DeleteAccountUser(accountGuid string, userGuid string) error
FindAccountUserByUserId(accountGuid string, userId string) (*AccountUser, error)
}
Accounts ...
Click to show internal directories.
Click to hide internal directories.