Bourse.Spec.Promotion.Gap (bourse v0.1.0)

Copy Markdown View Source

Promotion failure with a stable code and actionable context.

Summary

Functions

Builds a promotion gap, optionally tied to an evidence item.

Types

t()

@type t() :: %Bourse.Spec.Promotion.Gap{
  code: atom(),
  item_id: String.t() | nil,
  message: String.t()
}

Functions

new(code, message, item_id \\ nil)

@spec new(atom(), String.t(), String.t() | nil) :: t()

Builds a promotion gap, optionally tied to an evidence item.