Postscript.Trigger (postscript v1.0.0)
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)
Specs
add_shop(String.t()) :: Postscript.Operation.t()
Allow a shop to use a trigger.
Link to this function
create(opts)
Specs
create(Keyword.t()) :: Postscript.Operation.t()
Create a trigger.
Link to this function
delete(id)
Specs
delete(String.t()) :: Postscript.Operation.t()
Delete a trigger.
Link to this function
fire(trigger_id, subscriber_id, opts)
Specs
fire(String.t(), String.t(), Keyword.t()) :: Postscript.Operation.t()
Fire a trigger for a subscriber.
Link to this function
get(id)
Specs
get(String.t()) :: Postscript.Operation.t()
Retrieve a trigger.
Link to this function
list()
Specs
list() :: Postscript.Operation.t()
Retrieve a list of triggers.
Link to this function
replace(id, opts)
Specs
replace(String.t(), Keyword.t()) :: Postscript.Operation.t()
Update a trigger by replacement.
Link to this function
update(id, opts)
Specs
update(String.t(), Keyword.t()) :: Postscript.Operation.t()
Update a trigger.