View Source Influitive.Rewards (influitive v0.1.2)

Documentation for Influitive.Rewards.

Summary

Functions

Fulfill Reward Redemption

To retrieve details on all rewards in your AdvcateHub

Publish a reward based on the reward ID

Refuse Reward Redemption

Retrieve reward redemptions that require fulfillment or refusal.

Unpublish a reward based on the reward ID

Types

@type id_or_uuid() :: integer() | String.t()
@type success_or_error() :: {:ok, map()} | {:error, any()}

Functions

Link to this function

fulfill(id_or_uuid, params)

View Source
@spec fulfill(id_or_uuid(), map()) :: success_or_error()

Fulfill Reward Redemption

@spec list() :: success_or_error()

To retrieve details on all rewards in your AdvcateHub

@spec publish(id_or_uuid()) :: success_or_error()

Publish a reward based on the reward ID

Link to this function

refuse(id_or_uuid, params)

View Source
@spec refuse(id_or_uuid(), map()) :: success_or_error()

Refuse Reward Redemption

@spec reward_redemptions() :: success_or_error()

Retrieve reward redemptions that require fulfillment or refusal.

@spec unpublish(id_or_uuid()) :: success_or_error()

Unpublish a reward based on the reward ID