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

@spec add_shop(String.t()) :: Postscript.Operation.t()

Allow a shop to use a trigger.

@spec create(Keyword.t()) :: Postscript.Operation.t()

Create a trigger.

@spec delete(String.t()) :: Postscript.Operation.t()

Delete a trigger.

Link to this function

fire(trigger_id, subscriber_id, opts)

Fire a trigger for a subscriber.

@spec get(String.t()) :: Postscript.Operation.t()

Retrieve a trigger.

@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.