aggregate

package
v0.0.0-...-2fd68d0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 16 Imported by: 3

Documentation

Index

Constants

View Source
const (
	OrganizationAggregateType eventstore.AggregateType = "organization"
)

Variables

This section is empty.

Functions

func GetOrganizationObjectID

func GetOrganizationObjectID(aggregateID string, tenant string) string

Types

type OrganizationAggregate

type OrganizationAggregate struct {
	*eventstore.CommonTenantIdAggregate
	Organization *model.Organization
}

func LoadOrganizationAggregate

func LoadOrganizationAggregate(ctx context.Context, eventStore eventstore.AggregateStore, tenant, objectID string, opts eventstore.LoadAggregateOptions) (*OrganizationAggregate, error)

func NewOrganizationAggregateWithTenantAndID

func NewOrganizationAggregateWithTenantAndID(tenant, id string) *OrganizationAggregate

func (*OrganizationAggregate) CreateBillingProfile

func (a *OrganizationAggregate) CreateBillingProfile(ctx context.Context, request *organizationpb.CreateBillingProfileGrpcRequest) (billingProfileId string, err error)

func (*OrganizationAggregate) HandleCommand

func (a *OrganizationAggregate) HandleCommand(ctx context.Context, cmd eventstore.Command) error

func (*OrganizationAggregate) HandleGRPCRequest

func (a *OrganizationAggregate) HandleGRPCRequest(ctx context.Context, request any, params map[string]any) (any, error)

func (*OrganizationAggregate) HandleRequest

func (a *OrganizationAggregate) HandleRequest(ctx context.Context, request any) (any, error)

func (*OrganizationAggregate) LinkEmailToBillingProfile

func (*OrganizationAggregate) LinkLocationToBillingProfile

func (*OrganizationAggregate) SetPhoneNumberNonPrimary

func (a *OrganizationAggregate) SetPhoneNumberNonPrimary(ctx context.Context, tenant, phoneNumberId, userId string) error

func (*OrganizationAggregate) UnlinkEmailFromBillingProfile

func (*OrganizationAggregate) UnlinkLocationFromBillingProfile

func (a *OrganizationAggregate) UnlinkLocationFromBillingProfile(ctx context.Context, request *organizationpb.UnlinkLocationFromBillingProfileGrpcRequest) error

func (*OrganizationAggregate) UpdateBillingProfile

func (*OrganizationAggregate) UpdateOrganizationOwner

func (a *OrganizationAggregate) UpdateOrganizationOwner(ctx context.Context, cmd *command.UpdateOrganizationOwnerCommand) error

func (*OrganizationAggregate) When

type OrganizationTempAggregate

type OrganizationTempAggregate struct {
	*eventstore.CommonTenantIdTempAggregate
}

func LoadOrganizationTempAggregate

func LoadOrganizationTempAggregate(ctx context.Context, eventStore eventstore.AggregateStore, tenant, objectID string, opts eventstore.LoadAggregateOptions) (*OrganizationTempAggregate, error)

func NewOrganizationTempAggregateWithTenantAndID

func NewOrganizationTempAggregateWithTenantAndID(tenant, id string) *OrganizationTempAggregate

func (*OrganizationTempAggregate) HandleCommand

func (a *OrganizationTempAggregate) HandleCommand(ctx context.Context, cmd eventstore.Command) error

func (*OrganizationTempAggregate) HandleGRPCRequest

func (a *OrganizationTempAggregate) HandleGRPCRequest(ctx context.Context, request any, params map[string]any) (any, error)

func (*OrganizationTempAggregate) HandleRequest

func (a *OrganizationTempAggregate) HandleRequest(ctx context.Context, request any) (any, error)

Jump to

Keyboard shortcuts

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