Lithic.Types.AuthRule (Lithic v1.0.0)

Copy Markdown View Source

Type definitions for Lithic Auth Rule V2 objects.

Rule Types

  • Conditional Action Rules — block/allow based on transaction attributes
  • Velocity Limit Rules — cumulative spend or count limits
  • Hold Adjustment Rules — modify authorization hold amounts
  • Custom Code Rules — TypeScript/WASM custom logic

Fields

  • "token" — unique rule identifier
  • "name" — human-readable name
  • "state""ACTIVE", "INACTIVE"
  • "type" — rule type string
  • "parameters" — rule-specific configuration map
  • "version" — integer version number
  • "current_version" — current active version map
  • "draft_version" — pending draft map, if any
  • "created" — RFC 3339 timestamp

Summary

Types

create_params()

@type create_params() :: %{
  :name => String.t(),
  optional(:state) => String.t(),
  optional(:type) => String.t(),
  optional(:parameters) => map(),
  optional(:account_tokens) => [String.t()],
  optional(:card_tokens) => [String.t()],
  optional(:program_level) => boolean()
}

t()

@type t() :: %{required(String.t()) => term()}