View Source Stripe.Entitlements.ActiveEntitlement (stripity_stripe v3.3.1)
An active entitlement describes access to a feature for a customer.
Summary
Types
@type t() :: %Stripe.Entitlements.ActiveEntitlement{ feature: binary() | Stripe.Entitlements.Feature.t(), id: binary(), livemode: boolean(), lookup_key: binary(), object: binary() }
The entitlements.active_entitlement type.
featureThe Feature that the customer is entitled to.idUnique identifier for the object.livemodeHas the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.lookup_keyA unique key you provide as your own system identifier. This may be up to 80 characters.objectString representing the object's type. Objects of the same type share the same value.
Functions
@spec list( params :: %{ optional(:customer) => binary(), optional(:ending_before) => binary(), optional(:expand) => [binary()], optional(:limit) => integer(), optional(:starting_after) => binary() }, opts :: Keyword.t() ) :: {:ok, Stripe.List.t(t())} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
Retrieve a list of active entitlements for a customer
Details
- Method:
get - Path:
/v1/entitlements/active_entitlements
@spec retrieve( id :: binary(), params :: %{optional(:expand) => [binary()]}, opts :: Keyword.t() ) :: {:ok, t()} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
Retrieve an active entitlement
Details
- Method:
get - Path:
/v1/entitlements/active_entitlements/{id}