Increase.RealTimeDecisions (Increase v1.0.0)

Copy Markdown View Source

Real Time Decisions are created when your application needs to take action in real-time to some event such as a card authorization. For more information, see our Real-Time Decisions guide.

See https://increase.com/documentation/api/real-time-decisions for the full API reference for this resource.

Summary

Functions

action(client, real_time_decision_id, params \\ %{}, opts \\ [])

@spec action(
  Increase.Client.t() | keyword() | nil,
  String.t(),
  map() | keyword(),
  keyword()
) ::
  {:ok, Increase.RealTimeDecisions.RealTimeDecision.t()}
  | {:error, Increase.Error.t()}

Action a Real-Time Decision

POST /real_time_decisions/{real_time_decision_id}/action

retrieve(client, real_time_decision_id, opts \\ [])

@spec retrieve(Increase.Client.t() | keyword() | nil, String.t(), keyword()) ::
  {:ok, Increase.RealTimeDecisions.RealTimeDecision.t()}
  | {:error, Increase.Error.t()}

Retrieve a Real-Time Decision

GET /real_time_decisions/{real_time_decision_id}