Search documentation of tiger_stripe

# Stripe.Services.Treasury.FinancialAccountService (tiger_stripe v0.1.1)

Copy Markdown View Source

TreasuryFinancialAccountsResourceFinancialAccount

Stripe Treasury provides users with a container for money called a FinancialAccount that is separate from their Payments balance. FinancialAccounts serve as the source and destination of Treasury’s money movement APIs.

## Summary

### Functions

close(client, financial_account, params \\ %{}, opts \\ [])

Close a FinancialAccount

create(client, params \\ %{}, opts \\ [])

Create a FinancialAccount

list(client, params \\ %{}, opts \\ [])

List all FinancialAccounts

retrieve(client, financial_account, params \\ %{}, opts \\ [])

Retrieve a FinancialAccount

update(client, financial_account, params \\ %{}, opts \\ [])

Update a FinancialAccount

## Functions

# close(client, financial_account, params \\ %{}, opts \\ [])

    @spec close(Stripe.Client.t(), String.t(), map(), keyword()) ::
      {:ok, term()} | {:error, Stripe.Error.t()}

Close a FinancialAccount

Closes a FinancialAccount. A FinancialAccount can only be closed if it has a zero balance, has no pending InboundTransfers, and has canceled all attached Issuing cards.

# create(client, params \\ %{}, opts \\ [])

    @spec create(Stripe.Client.t(), map(), keyword()) ::
      {:ok, term()} | {:error, Stripe.Error.t()}

Create a FinancialAccount

Creates a new FinancialAccount. Each connected account can have up to three FinancialAccounts by default.

# list(client, params \\ %{}, opts \\ [])

    @spec list(Stripe.Client.t(), map(), keyword()) ::
      {:ok, term()} | {:error, Stripe.Error.t()}

List all FinancialAccounts

Returns a list of FinancialAccounts.

# retrieve(client, financial_account, params \\ %{}, opts \\ [])

    @spec retrieve(Stripe.Client.t(), String.t(), map(), keyword()) ::
      {:ok, term()} | {:error, Stripe.Error.t()}

Retrieve a FinancialAccount

Retrieves the details of a FinancialAccount.

# update(client, financial_account, params \\ %{}, opts \\ [])

    @spec update(Stripe.Client.t(), String.t(), map(), keyword()) ::
      {:ok, term()} | {:error, Stripe.Error.t()}

Update a FinancialAccount

Updates the details of a FinancialAccount.