ex_dinero v0.1.0 Dinero.DineroApiBehaviour behaviour View Source

Link to this section Summary

Link to this section Types

Link to this type

body() View Source
body() ::
  binary()
  | charlist()
  | iodata()
  | {:form, [{atom(), any()}]}
  | {:file, binary()}
  | any()

Link to this type

headers() View Source
headers() ::
  [{atom(), binary()}]
  | [{binary(), binary()}]
  | %{optional(binary()) => binary()}
  | any()

Link to this type

method() View Source
method() :: :get | :post | :put | :patch | :delete | :options | :head

Link to this type

options() View Source
options() :: keyword() | any()

Link to this type

params() View Source
params() :: map() | keyword() | [{binary(), binary()}] | any()

Link to this section Callbacks

Link to this callback

authentication(binary, binary, binary) View Source
authentication(binary(), binary(), binary()) ::
  {:ok, any()} | {:error, Error.t()}

Link to this callback

create_contact(integer, binary, any) View Source
create_contact(integer(), binary(), any()) ::
  {:ok, map()} | {:error, Error.t()}

Link to this callback

create_invoice(integer, binary, map) View Source
create_invoice(integer(), binary(), map()) ::
  {:ok, map()} | {:error, Error.t()}

Link to this callback

get_contacts(integer, binary, params) View Source
get_contacts(integer(), binary(), params()) ::
  {:ok, Response.t() | AsyncResponse.t()} | {:error, Error.t()}