Stripe.Capability (stripity_stripe v2.17.3) View Source

Work with Stripe Connect capability objects.

You can:

Link to this section Summary

Functions

Returns a list of capabilities associated with the account

Retrieves information about the specified Account Capability.

Updates an existing Account Capability.

Link to this section Types

Specs

requirements() :: %{
  current_deadline: Stripe.timestamp() | nil,
  currently_due: Stripe.List.t(String.t()) | nil,
  disabled_reason: String.t() | nil,
  eventually_due: Stripe.List.t(String.t()) | nil,
  past_due: Stripe.List.t(String.t()) | nil,
  pending_verification: Stripe.List.t(String.t()) | nil
}

Specs

t() :: %Stripe.Capability{
  account: Stripe.Account.t(),
  id: String.t(),
  object: String.t(),
  requested: boolean() | nil,
  requested_at: Stripe.timestamp(),
  requirements: requirements() | nil,
  status: String.t() | nil
}

Link to this section Functions

Link to this function

list(params, opts \\ [])

View Source

Specs

list(params, Stripe.options()) ::
  {:ok, Stripe.List.t(t())} | {:error, Stripe.Error.t()}
when params: %{account: Stripe.id()}

Returns a list of capabilities associated with the account

Link to this function

retrieve(id, params, opts \\ [])

View Source

Specs

retrieve(Stripe.id(), params, Stripe.options()) ::
  {:ok, t()} | {:error, Stripe.Error.t()}
when params: %{account: Stripe.id()}

Retrieves information about the specified Account Capability.

Link to this function

update(id, params, opts \\ [])

View Source

Specs

update(Stripe.id(), params, Stripe.options()) ::
  {:ok, t()} | {:error, Stripe.Error.t()}
when params: %{:account => Stripe.id(), optional(:requested) => boolean()}

Updates an existing Account Capability.