View Source Dwolla.Document (dwolla v1.0.1)

Functions for documents endpoint.

Link to this section Summary

Functions

Upload a document for a customer.

Get a document.

List a customer's documents.

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.Document{
  created: String.t(),
  failure_reason: String.t(),
  id: String.t(),
  status: String.t(),
  type: String.t()
}

Specs

token() :: String.t()

Link to this section Functions

Link to this function

create(token, customer_id, document_type, file)

View Source

Specs

create(token(), id(), String.t(), String.t()) ::
  {:ok, location()} | {:error, error()}

Upload a document for a customer.

Accepted document type values:

  • passport
  • license
  • idCard
  • other

Specs

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

Get a document.

Link to this function

list(token, customer_id)

View Source

Specs

list(token(), id()) :: {:ok, [t()]} | {:error, error()}

List a customer's documents.