Documentation ¶
Index ¶
- func UpsertOrganizationCommandToOrganizationFieldsStruct(command *UpsertOrganizationCommand) *model.OrganizationFields
- type AddParentCommand
- type LinkLocationCommand
- type LinkPhoneNumberCommand
- type RefreshArrCommand
- type RemoveParentCommand
- type ShowOrganizationCommand
- type UpdateOnboardingStatusCommand
- type UpdateOrganizationOwnerCommand
- type UpsertCustomFieldCommand
- type UpsertOrganizationCommand
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UpsertOrganizationCommandToOrganizationFieldsStruct ¶
func UpsertOrganizationCommandToOrganizationFieldsStruct(command *UpsertOrganizationCommand) *model.OrganizationFields
Types ¶
type AddParentCommand ¶
type AddParentCommand struct { eventstore.BaseCommand ParentOrganizationId string `json:"parentOrganizationId" validate:"required,nefield=ObjectID"` Type string AppSource string }
func NewAddParentCommand ¶
func NewAddParentCommand(organizationId, tenant, userId, parentOrganizationId, relType, appSource string) *AddParentCommand
type LinkLocationCommand ¶
type LinkLocationCommand struct { eventstore.BaseCommand LocationId string `json:"locationId" validate:"required"` }
func NewLinkLocationCommand ¶
func NewLinkLocationCommand(organizationId, tenant, userId, locationId string) *LinkLocationCommand
type LinkPhoneNumberCommand ¶
type LinkPhoneNumberCommand struct { eventstore.BaseCommand PhoneNumberId string `json:"phoneNumberId" validate:"required"` Primary bool Label string }
func NewLinkPhoneNumberCommand ¶
func NewLinkPhoneNumberCommand(objectID, tenant, userId, phoneNumberId, label string, primary bool) *LinkPhoneNumberCommand
type RefreshArrCommand ¶
type RefreshArrCommand struct { eventstore.BaseCommand AppSource string }
func NewRefreshArrCommand ¶
func NewRefreshArrCommand(tenant, orgId, userId, appSource string) *RefreshArrCommand
type RemoveParentCommand ¶
type RemoveParentCommand struct { eventstore.BaseCommand ParentOrganizationId string `json:"parentOrganizationId" validate:"required,nefield=ObjectID"` AppSource string }
func NewRemoveParentCommand ¶
func NewRemoveParentCommand(organizationId, tenant, userId, parentOrganizationId, appSource string) *RemoveParentCommand
type ShowOrganizationCommand ¶
type ShowOrganizationCommand struct {
eventstore.BaseCommand
}
func NewShowOrganizationCommand ¶
func NewShowOrganizationCommand(tenant, orgId, userId string) *ShowOrganizationCommand
type UpdateOnboardingStatusCommand ¶
type UpdateOnboardingStatusCommand struct { eventstore.BaseCommand Status string `json:"status"` Comments string `json:"comments"` UpdatedAt *time.Time `json:"updatedAt"` CausedByContractId string `json:"causedByContractId"` }
func NewUpdateOnboardingStatusCommand ¶
func NewUpdateOnboardingStatusCommand(tenant, orgId, loggedInUserId, appSource, status, comments, causedByContractId string, updatedAt *time.Time) *UpdateOnboardingStatusCommand
type UpdateOrganizationOwnerCommand ¶
type UpdateOrganizationOwnerCommand struct { eventstore.BaseCommand OwnerUserId string `json:"userId" validate:"required"` // who became owner OrganizationId string `json:"organizationId" validate:"required"` ActorUserId string `json:"actorUserId"` // who set the owner }
func NewUpdateOrganizationOwnerCommand ¶
func NewUpdateOrganizationOwnerCommand(organizationId, tenant, loggedInUserId, ownerUserId, appSource string) *UpdateOrganizationOwnerCommand
type UpsertCustomFieldCommand ¶
type UpsertCustomFieldCommand struct { eventstore.BaseCommand Source common.Source CreatedAt *time.Time UpdatedAt *time.Time CustomFieldData model.CustomField }
func NewUpsertCustomFieldCommand ¶
func NewUpsertCustomFieldCommand(organizationId, tenant, source, sourceOfTruth, appSource, userId string, createdAt, updatedAt *time.Time, customField model.CustomField) *UpsertCustomFieldCommand
type UpsertOrganizationCommand ¶
type UpsertOrganizationCommand struct { eventstore.BaseCommand IsCreateCommand bool DataFields model.OrganizationDataFields Source cmnmod.Source ExternalSystem cmnmod.ExternalSystem CreatedAt *time.Time UpdatedAt *time.Time FieldsMask []string }
func NewUpsertOrganizationCommand ¶
func NewUpsertOrganizationCommand(organizationId, tenant, loggedInUserId string, source cmnmod.Source, externalSystem cmnmod.ExternalSystem, coreFields model.OrganizationDataFields, createdAt, updatedAt *time.Time, maskFields []string) *UpsertOrganizationCommand
Click to show internal directories.
Click to hide internal directories.