Balance notification thresholds on an account - configure a balance
level which, when crossed, triggers the balanceThreshold webhook (see
MoneyHub.Webhooks). Used for low-balance alerts and patterns like
"Smart Saver" VRP sweeping.
Summary
Functions
Adds a notification threshold to an account. attrs typically includes
the threshold "amount" and direction (e.g. below/above).
Deletes a notification threshold.
Lists notification thresholds configured for an account.
Updates a notification threshold's attributes.
Types
@type threshold() :: map()
Functions
@spec create(MoneyHub.Config.t(), String.t(), String.t(), map()) :: {:ok, threshold()} | {:error, MoneyHub.Error.t()}
Adds a notification threshold to an account. attrs typically includes
the threshold "amount" and direction (e.g. below/above).
@spec delete(MoneyHub.Config.t(), String.t(), String.t(), String.t()) :: :ok | {:error, MoneyHub.Error.t()}
Deletes a notification threshold.
@spec list(MoneyHub.Config.t(), String.t(), String.t()) :: {:ok, [threshold()]} | {:error, MoneyHub.Error.t()}
Lists notification thresholds configured for an account.
@spec update(MoneyHub.Config.t(), String.t(), String.t(), String.t(), map()) :: {:ok, threshold()} | {:error, MoneyHub.Error.t()}
Updates a notification threshold's attributes.