View Source Dwolla.Transfer (dwolla v1.0.3)
Functions for transfers endpoint.
Link to this section Summary
Functions
Cancels a transfer.
Gets a transfer by id.
Gets reason for a transfer's failure.
Initiates a transfer.
Link to this section Types
Specs
error() :: HTTPoison.Error.t() | Dwolla.Errors.t() | tuple()
Specs
id() :: String.t()
Specs
location() :: %{id: String.t()}
Specs
Specs
t() :: %Dwolla.Transfer{
amount: Dwolla.Transfer.Amount.t(),
can_cancel: boolean(),
created: String.t(),
dest_resource: String.t(),
dest_resource_id: String.t(),
id: String.t(),
metadata: Dwolla.Transfer.Metadata.t(),
source_funding_source_id: String.t(),
source_resource: String.t(),
source_resource_id: String.t(),
status: String.t()
}
Specs
token() :: String.t()
Link to this section Functions
Specs
Cancels a transfer.
Specs
Gets a transfer by id.
Specs
Gets reason for a transfer's failure.
Specs
Initiates a transfer.
The parameters are verbose because of the many options available to the user
for setting the source and destination of the funds in the href field.
Parameters
%{
_links: %{
source: %{
href: "https://api-sandbox.dwolla.com/funding-sources/..."
},
destination: %{
href: "https://api-sandbox.dwolla.com/funding-sources/..."
}
},
amount: %{
value: 100.00,
currency: "USD"
},
metadata: %{
vendor: "Acme Inc.",
note: "Invoice #12314"
}
}