Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

Hook return values, directives as classes

Sumit Rawal answered on May 12, 2023 Popularity 1/10 Helpfulness 1/10

Contents


More Related Answers


Hook return values, directives as classes

0

All hooks now return an instance of a hook specific Results class, which can return data, directives or rejection from a hook, depending on the hook type.

All supported Smart and Supervisor Contracts directives are now instructed by returning an instance of a specific Directive class via the hook Result class attribute. The vault methods used to instruct directives have been removed.

Raising exceptions are not supported in any Contract hooks, however, some hooks, i.e. pre_posting_hook can return Rejection to reject the Vault data change proposed.

The pre_parameter_change_hook can now only return Rejection or None result, the ability to return modified Parameter class instances has been removed.

Both the activation_hook and conversion_hook now return account or plan schedules; this replaces the execution_schedules hook.

The deactivation_hook can return the optional Rejection, which would reject the account closure.

Popularity 1/10 Helpfulness 1/10 Language whatever
Source: Grepper
Tags: hook whatever
Link to this answer
Share Copy Link
Contributed on May 12 2023
Sumit Rawal
0 Answers  Avg Quality 2/10


X

Continue with Google

By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
X
Grepper Account Login Required

Oops, You will need to install Grepper and log-in to perform this action.