View Source Dwolla.Webhook (dwolla v1.0.3)

Functions for webhooks endpoint.

Link to this section Summary

Functions

Gets a webhook by id.

Gets webhook retries by id.

Retries a webhooks by id.

Link to this section Types

Specs

error() :: HTTPoison.Error.t() | Dwolla.Errors.t() | tuple()

Specs

id() :: String.t()

Specs

location() :: %{id: String.t()}

Specs

t() :: %Dwolla.Webhook{
  account_id: String.t(),
  attempts: [Dwolla.Webhook.Attempt.t()],
  event_id: String.t(),
  id: String.t(),
  subscription_id: String.t(),
  topic: String.t()
}

Specs

token() :: String.t()

Link to this section Functions

Specs

get(token(), id()) :: {:ok, t()} | {:error, error()}

Gets a webhook by id.

Specs

list_retries(token(), id()) ::
  {:ok, [Dwolla.Webhook.Retry.t()]} | {:error, error()}

Gets webhook retries by id.

Specs

retry(token(), id()) :: {:ok, location()} | {:error, error()}

Retries a webhooks by id.