# `Stripe.CashBalance`
[🔗](https://github.com/code-corps/stripity_stripe/blob/v3.3.3/lib/generated/cash_balance.ex#L1)

A customer's `Cash balance` represents real funds. Customers can add funds to their cash balance by sending a bank transfer. These funds can be used for payment and can eventually be paid out to your bank account.

# `settings`

```elixir
@type settings() :: %{
  optional(:reconciliation_mode) =&gt; :automatic | :manual | :merchant_default
}
```

A hash of settings for this cash balance.

# `t`

```elixir
@type t() :: %Stripe.CashBalance{
  available: term() | nil,
  customer: binary(),
  livemode: boolean(),
  object: binary(),
  settings: term()
}
```

The `cash_balance` type.

  * `available` A hash of all cash balances available to this customer. You cannot delete a customer with any cash balances, even if the balance is 0. Amounts are represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal).
  * `customer` The ID of the customer whose cash balance this object represents.
  * `livemode` Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
  * `object` String representing the object's type. Objects of the same type share the same value.
  * `settings` 

# `retrieve`

```elixir
@spec retrieve(
  customer :: binary(),
  params :: %{optional(:expand) =&gt; [binary()]},
  opts :: Keyword.t()
) ::
  {:ok, t()} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
```

<p>Retrieves a customer’s cash balance.</p>

#### Details

 * Method: `get`
 * Path: `/v1/customers/{customer}/cash_balance`

# `update`

```elixir
@spec update(
  customer :: binary(),
  params :: %{
    optional(:expand) =&gt; [binary()],
    optional(:settings) =&gt; settings()
  },
  opts :: Keyword.t()
) :: {:ok, t()} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
```

<p>Changes the settings on a customer’s cash balance.</p>

#### Details

 * Method: `post`
 * Path: `/v1/customers/{customer}/cash_balance`

---

*Consult [api-reference.md](api-reference.md) for complete listing*
