View Source Stripe.Capability (Striped v0.1.0)
This is an object representing a capability for a Stripe account.
Related guide: Account capabilities.
Link to this section Summary
Functions
Returns a list of capabilities associated with the account. The capabilities are returned sorted by creation date, with the most recent capability appearing first.
Retrieves information about the specified Account Capability.
Updates an existing Account Capability.
Link to this section Types
@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.
accountThe account for which the capability enables functionality.future_requirementsidThe identifier for the capability.objectString representing the object's type. Objects of the same type share the same value.requestedWhether the capability has been requested.requested_atTime at which the capability was requested. Measured in seconds since the Unix epoch.requirementsstatusThe status of the capability. Can beactive,inactive,pending, orunrequested.
Link to this section Functions
@spec list(client :: term(), account :: binary(), params :: map()) :: {:ok, Stripe.List.t(t())} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
Returns a list of capabilities associated with the account. The capabilities are returned sorted by creation date, with the most recent capability appearing first.
Details
- Method:
get - Path:
/v1/accounts/{account}/capabilities
Query parameters
:expandarray of: string
@spec retrieve( client :: term(), account :: binary(), capability :: binary(), params :: map() ) :: {:ok, t()} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
Retrieves information about the specified Account Capability.
Details
- Method:
get - Path:
/v1/accounts/{account}/capabilities/{capability}
Query parameters
:expandarray of: string
@spec update( client :: term(), account :: binary(), capability :: binary(), params :: map() ) :: {:ok, t()} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
Updates an existing Account Capability.
Details
- Method:
post - Path:
/v1/accounts/{account}/capabilities/{capability}