View Source ValueFlows.Planning.Commitment.Commitments (bonfire_umbrella v0.9.10-cooperation-beta.62)

Summary

Functions

@spec create(any(), attrs()) ::
  {:ok, ValueFlows.Planning.Commitment.t()} | {:error, Changeset.t()}
Link to this function

prep_attrs(attrs, creator \\ nil)

View Source
@spec prep_attrs(
  attrs(),
  struct()
) :: attrs()
@spec soft_delete(
  struct(),
  String.t()
) :: {:ok, ValueFlows.Planning.Commitment.t()} | {:error, Changeset.t()}
@spec soft_delete(
  struct(),
  ValueFlows.Planning.Commitment.t()
) :: {:ok, ValueFlows.Planning.Commitment.t()} | {:error, Changeset.t()}
Link to this function

update(user, id, changes)

View Source
@spec update(struct(), String.t(), attrs()) ::
  {:ok, ValueFlows.Planning.Commitment.t()} | {:error, any()}
@spec update(struct(), ValueFlows.Planning.Commitment.t(), attrs()) ::
  {:ok, ValueFlows.Planning.Commitment.t()} | {:error, any()}