company

package
v0.0.0-...-78e7222 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 19, 2019 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextualiseFilter

func ContextualiseFilter(filter bson.M, claimsToAdd claims.Claims) bson.M

ContextualiseFilter takes a filter and claims and returns a contextualised filter

func IsValidIdentifier

func IsValidIdentifier(id identifier.Identifier) bool

IsValidIdentifier determines if a given identifier is valid for a company entity

Types

type Company

type Company struct {
	Id   string `json:"id" bson:"id"`
	Name string `json:"name" bson:"name"`
	// The email address which will be used to invite the admin
	// user of the company
	// I.e. the first user of the system from the company
	AdminEmailAddress string `json:"adminEmailAddress" bson:"adminEmailAddress"`

	ParentPartyType party.Type    `json:"parentPartyType" bson:"parentPartyType"`
	ParentId        id.Identifier `json:"parentId" bson:"parentId"`
}

func (Company) Details

func (c Company) Details() party.Details

func (*Company) SetId

func (c *Company) SetId(id string)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL