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

This is an object representing a capability for a Stripe account.

Related guide: [Account capabilities](https://stripe.com/docs/connect/account-capabilities)

# `t`

```elixir
@type t() :: %Stripe.Capability{
  account: binary() | Stripe.Account.t(),
  future_requirements: term(),
  id: binary(),
  object: binary(),
  requested: boolean(),
  requested_at: integer() | nil,
  requirements: term(),
  status: binary()
}
```

The `capability` type.

  * `account` The account for which the capability enables functionality.
  * `future_requirements` 
  * `id` The identifier for the capability.
  * `object` String representing the object's type. Objects of the same type share the same value.
  * `requested` Whether the capability has been requested.
  * `requested_at` Time at which the capability was requested. Measured in seconds since the Unix epoch.
  * `requirements` 
  * `status` The status of the capability.

# `list`

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

<p>Returns a list of capabilities associated with the account. The capabilities are returned sorted by creation date, with the most recent capability appearing first.</p>

#### Details

 * Method: `get`
 * Path: `/v1/accounts/{account}/capabilities`

# `retrieve`

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

<p>Retrieves information about the specified Account Capability.</p>

#### Details

 * Method: `get`
 * Path: `/v1/accounts/{account}/capabilities/{capability}`

# `update`

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

<p>Updates an existing Account Capability. Request or remove a capability by updating its <code>requested</code> parameter.</p>

#### Details

 * Method: `post`
 * Path: `/v1/accounts/{account}/capabilities/{capability}`

---

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