Postscript.Trigger (postscript v1.0.2)
Link to this section Summary
Functions
Allow a shop to use a trigger.
Create a trigger.
Delete a trigger.
Fire a trigger for a subscriber.
Retrieve a trigger.
Retrieve a list of triggers.
Update a trigger by replacement.
Update a trigger.
Link to this section Functions
Link to this function
add_shop(id)
@spec add_shop(String.t()) :: Postscript.Operation.t()
Allow a shop to use a trigger.
Link to this function
create(opts)
@spec create(Keyword.t()) :: Postscript.Operation.t()
Create a trigger.
Link to this function
delete(id)
@spec delete(String.t()) :: Postscript.Operation.t()
Delete a trigger.
Link to this function
fire(trigger_id, subscriber_id, opts)
@spec fire(String.t(), String.t(), Keyword.t()) :: Postscript.Operation.t()
Fire a trigger for a subscriber.
Link to this function
get(id)
@spec get(String.t()) :: Postscript.Operation.t()
Retrieve a trigger.
Link to this function
list()
@spec list() :: Postscript.Operation.t()
Retrieve a list of triggers.
Link to this function
replace(id, opts)
@spec replace(String.t(), Keyword.t()) :: Postscript.Operation.t()
Update a trigger by replacement.
Link to this function
update(id, opts)
@spec update(String.t(), Keyword.t()) :: Postscript.Operation.t()
Update a trigger.