Add action type *dynamic_account_action

This commit is contained in:
arberkatellari
2025-05-26 19:28:32 +02:00
committed by Dan Christian Bogos
parent 33a47f663c
commit bffcda6f04
5 changed files with 88 additions and 15 deletions

View File

@@ -117,18 +117,7 @@ func (apiv2 *APIerSv2) GetAccount(ctx *context.Context, attr *utils.AttrGetAccou
return nil
}
type AttrSetAccount struct {
Tenant string
Account string
ActionPlanIDs []string
ActionPlansOverwrite bool
ActionTriggerIDs []string
ActionTriggerOverwrite bool
ExtraOptions map[string]bool
ReloadScheduler bool
}
func (apiv2 *APIerSv2) SetAccount(ctx *context.Context, attr *AttrSetAccount, reply *string) error {
func (apiv2 *APIerSv2) SetAccount(ctx *context.Context, attr *engine.AttrSetAccount, reply *string) error {
if missing := utils.MissingStructFields(attr, []string{utils.AccountField}); len(missing) != 0 {
return utils.NewErrMandatoryIeMissing(missing...)
}