dwolla v1.0.1 Dwolla.Document View Source

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

Link to this type

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

Link to this type

t() View Source
t() :: %Dwolla.Document{
  created: String.t(),
  failure_reason: String.t(),
  id: String.t(),
  status: String.t(),
  type: String.t()
}

Link to this section Functions

Link to this function

create(token, customer_id, document_type, file) View Source
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
Link to this function

get(token, id) View Source
get(token(), id()) :: {:ok, Dwolla.Document.t()} | {:error, error()}

Get a document.

Link to this function

list(token, customer_id) View Source
list(token(), id()) :: {:ok, [Dwolla.Document.t()]} | {:error, error()}

List a customer's documents.