API module for Unit Counterparties (saved external ACH accounts).
Permissions: "CreditOnly", "DebitOnly", or "CreditAndDebit" (default).
Summary
Functions
Create a counterparty.
Delete a counterparty.
Get a counterparty by ID.
List counterparties.
Update a counterparty's permissions or tags.
Functions
@spec create( map(), keyword() ) :: {:ok, Unit.Resource.Counterparty.t()} | {:error, term()}
Create a counterparty.
Required params
:customer_id,:name,:routing_number,:account_number,:account_type
Optional
:permissions,:tags,:idempotency_key
Delete a counterparty.
@spec get( String.t(), keyword() ) :: {:ok, Unit.Resource.Counterparty.t()} | {:error, term()}
Get a counterparty by ID.
@spec list(keyword()) :: {:ok, [Unit.Resource.Counterparty.t()], map()} | {:error, term()}
List counterparties.
@spec update(String.t(), map(), keyword()) :: {:ok, Unit.Resource.Counterparty.t()} | {:error, term()}
Update a counterparty's permissions or tags.