mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 10:06:24 +05:00
Add action type *dynamic_account_action
This commit is contained in:
committed by
Dan Christian Bogos
parent
33a47f663c
commit
bffcda6f04
@@ -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...)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user