View Source Stripe.EphemeralKey (stripity_stripe v3.2.0)
Summary
Functions
Creates a short-lived API key for a given resource.
Invalidates a short-lived API key for a given resource.
Types
@type t() :: %Stripe.EphemeralKey{ created: integer(), expires: integer(), id: binary(), livemode: boolean(), object: binary(), secret: binary() }
The ephemeral_key type.
createdTime at which the object was created. Measured in seconds since the Unix epoch.expiresTime at which the key will expire. Measured in seconds since the Unix epoch.idUnique identifier for the object.livemodeHas the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.objectString representing the object's type. Objects of the same type share the same value.secretThe key's secret. You can use this value to make authorized requests to the Stripe API.
Functions
@spec create( params :: %{ optional(:customer) => binary(), optional(:expand) => [binary()], optional(:issuing_card) => binary(), optional(:nonce) => binary(), optional(:verification_session) => binary() }, opts :: Keyword.t() ) :: {:ok, t()} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
Creates a short-lived API key for a given resource.
Details
- Method: 
post - Path: 
/v1/ephemeral_keys 
@spec delete( key :: binary(), params :: %{optional(:expand) => [binary()]}, opts :: Keyword.t() ) :: {:ok, t()} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
Invalidates a short-lived API key for a given resource.
Details
- Method: 
delete - Path: 
/v1/ephemeral_keys/{key}