Standing order creation and management via Payment Initiation.
Setup mirrors single payments: drive the user through MoneyHub.Auth
with a mh:standing_order claim (MoneyHub.Claims.put_standing_order/2)
and the standing_order scope, specifying frequency, start date, and
optionally an end date or number of payments.
Summary
Functions
Cancels a standing order.
Fetches a standing order's current status by id.
Lists standing orders for the user identified by token.
Types
@type standing_order() :: map()
Functions
@spec cancel(MoneyHub.Config.t(), String.t(), String.t()) :: :ok | {:error, MoneyHub.Error.t()}
Cancels a standing order.
@spec get(MoneyHub.Config.t(), String.t(), String.t()) :: {:ok, standing_order()} | {:error, MoneyHub.Error.t()}
Fetches a standing order's current status by id.
@spec list(MoneyHub.Config.t(), String.t()) :: {:ok, [standing_order()]} | {:error, MoneyHub.Error.t()}
Lists standing orders for the user identified by token.