Column.Checks (Column v1.0.0)

Copy Markdown View Source

Check issuance and remote deposit capture.

Issue a check (Column prints and mails)

{:ok, check} = Column.Checks.issue(%{
  bank_account_id: "bacc_123",
  amount: 50_000,
  currency_code: "USD",
  payee_name: "Jane Smith",
  memo: "Invoice #999",
  mailing_address: %{
    line_1: "456 Oak Ave",
    city: "Austin",
    state: "TX",
    postal_code: "78701"
  }
})

# Preview before issuing
{:ok, pdf_bytes} = Column.Checks.get_preview(check["id"])

Deposit a check (remote deposit capture)

{:ok, deposit} = Column.Checks.deposit(%{
  bank_account_id: "bacc_456",
  amount: 10_000,
  currency_code: "USD"
})
Column.Checks.capture_front(deposit["id"], "/tmp/check_front.jpg")
Column.Checks.capture_back(deposit["id"], "/tmp/check_back.jpg")

Summary

Functions

Upload the back image of a check deposit.

Upload the front image of a check deposit.

Create a return for a check transfer.

Initiate a check deposit (remote deposit capture).

Get a check transfer by ID.

Get a PDF preview of an issued check.

Get returns for a check transfer.

Issue a check (Column prints and mails it).

List all check transfers.

List all check returns across all check transfers.

Stop a check transfer.

Types

id()

@type id() :: String.t()

opts()

@type opts() :: keyword()

params()

@type params() :: map()

result()

@type result() :: {:ok, map()} | {:error, Column.Error.t()}

Functions

capture_back(id, file_path, opts \\ [])

@spec capture_back(id(), String.t(), opts()) :: result()

Upload the back image of a check deposit.

capture_front(id, file_path, opts \\ [])

@spec capture_front(id(), String.t(), opts()) :: result()

Upload the front image of a check deposit.

create_return(id, params, opts \\ [])

@spec create_return(id(), params(), opts()) :: result()

Create a return for a check transfer.

deposit(params, opts \\ [])

@spec deposit(params(), opts()) :: result()

Initiate a check deposit (remote deposit capture).

get(id, opts \\ [])

@spec get(id(), opts()) :: result()

Get a check transfer by ID.

get_preview(id, opts \\ [])

@spec get_preview(id(), opts()) :: result()

Get a PDF preview of an issued check.

get_returns(id, opts \\ [])

@spec get_returns(id(), opts()) :: result()

Get returns for a check transfer.

issue(params, opts \\ [])

@spec issue(params(), opts()) :: result()

Issue a check (Column prints and mails it).

list(opts \\ [])

@spec list(opts()) :: result()

List all check transfers.

list_returns(opts \\ [])

@spec list_returns(opts()) :: result()

List all check returns across all check transfers.

stop(id, opts \\ [])

@spec stop(id(), opts()) :: result()

Stop a check transfer.