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

Customers with certain payments enabled have a cash balance, representing funds that were paid
by the customer to a merchant, but have not yet been allocated to a payment. Cash Balance Transactions
represent when funds are moved into or out of this balance. This includes funding by the customer, allocation
to payments, and refunds to the customer.

# `t`

```elixir
@type t() :: %Stripe.CustomerCashBalanceTransaction{
  adjusted_for_overdraft: term(),
  applied_to_payment: term(),
  created: integer(),
  currency: binary(),
  customer: binary() | Stripe.Customer.t(),
  ending_balance: integer(),
  funded: term(),
  id: binary(),
  livemode: boolean(),
  net_amount: integer(),
  object: binary(),
  refunded_from_payment: term(),
  transferred_to_balance: term(),
  type: binary(),
  unapplied_from_payment: term()
}
```

The `customer_cash_balance_transaction` type.

  * `adjusted_for_overdraft` 
  * `applied_to_payment` 
  * `created` Time at which the object was created. Measured in seconds since the Unix epoch.
  * `currency` Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
  * `customer` The customer whose available cash balance changed as a result of this transaction.
  * `ending_balance` The total available cash balance for the specified currency after this transaction was applied. Represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal).
  * `funded` 
  * `id` Unique identifier for the object.
  * `livemode` Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
  * `net_amount` The amount by which the cash balance changed, represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). A positive value represents funds being added to the cash balance, a negative value represents funds being removed from the cash balance.
  * `object` String representing the object's type. Objects of the same type share the same value.
  * `refunded_from_payment` 
  * `transferred_to_balance` 
  * `type` The type of the cash balance transaction. New types may be added in future. See [Customer Balance](https://stripe.com/docs/payments/customer-balance#types) to learn more about these types.
  * `unapplied_from_payment` 

# `list`

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

<p>Returns a list of transactions that modified the customer’s <a href="/docs/payments/customer-balance">cash balance</a>.</p>

#### Details

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

# `retrieve`

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

<p>Retrieves a specific cash balance transaction, which updated the customer’s <a href="/docs/payments/customer-balance">cash balance</a>.</p>

#### Details

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

---

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