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

# `created`

```elixir
@type created() :: %{
  optional(:gt) =&gt; integer(),
  optional(:gte) =&gt; integer(),
  optional(:lt) =&gt; integer(),
  optional(:lte) =&gt; integer()
}
```

# `t`

```elixir
@type t() :: %Stripe.ApplicationFee{
  account: binary() | Stripe.Account.t(),
  amount: integer(),
  amount_refunded: integer(),
  application: binary() | term(),
  balance_transaction: (binary() | Stripe.BalanceTransaction.t()) | nil,
  charge: binary() | Stripe.Charge.t(),
  created: integer(),
  currency: binary(),
  fee_source: term() | nil,
  id: binary(),
  livemode: boolean(),
  object: binary(),
  originating_transaction: (binary() | Stripe.Charge.t()) | nil,
  refunded: boolean(),
  refunds: term()
}
```

The `application_fee` type.

  * `account` ID of the Stripe account this fee was taken from.
  * `amount` Amount earned, in cents (or local equivalent).
  * `amount_refunded` Amount in cents (or local equivalent) refunded (can be less than the amount attribute on the fee if a partial refund was issued)
  * `application` ID of the Connect application that earned the fee.
  * `balance_transaction` Balance transaction that describes the impact of this collected application fee on your account balance (not including refunds).
  * `charge` ID of the charge that the application fee was taken from.
  * `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).
  * `fee_source` Polymorphic source of the application fee. Includes the ID of the object the application fee was created from.
  * `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.
  * `object` String representing the object's type. Objects of the same type share the same value.
  * `originating_transaction` ID of the corresponding charge on the platform account, if this fee was the result of a charge using the `destination` parameter.
  * `refunded` Whether the fee has been fully refunded. If the fee is only partially refunded, this attribute will still be false.
  * `refunds` A list of refunds that have been applied to the fee.

# `list`

```elixir
@spec list(
  params :: %{
    optional(:charge) =&gt; binary(),
    optional(:created) =&gt; created() | integer(),
    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 application fees you’ve previously collected. The application fees are returned in sorted order, with the most recent fees appearing first.</p>

#### Details

 * Method: `get`
 * Path: `/v1/application_fees`

# `retrieve`

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

<p>Retrieves the details of an application fee that your account has collected. The same information is returned when refunding the application fee.</p>

#### Details

 * Method: `get`
 * Path: `/v1/application_fees/{id}`

---

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