View Source Stripe.FileLink (stripity_stripe v3.2.0)
To share the contents of a File object with non-Stripe users, you can
create a FileLink. FileLinks contain a URL that you can use to
retrieve the contents of the file without authentication.
Summary
Functions
Creates a new file link object.
Returns a list of file links.
Retrieves the file link with the given ID.
Updates an existing file link object. Expired links can no longer be updated.
Types
@type t() :: %Stripe.FileLink{ created: integer(), expired: boolean(), expires_at: integer() | nil, file: binary() | Stripe.File.t(), id: binary(), livemode: boolean(), metadata: term(), object: binary(), url: binary() | nil }
The file_link type.
createdTime at which the object was created. Measured in seconds since the Unix epoch.expiredReturns if the link is already expired.expires_atTime that the link expires.fileThe file object this link points to.idUnique identifier for the object.livemodeHas the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.metadataSet of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.objectString representing the object's type. Objects of the same type share the same value.urlThe publicly accessible URL to download the file.
Functions
@spec create( params :: %{ optional(:expand) => [binary()], optional(:expires_at) => integer(), optional(:file) => binary(), optional(:metadata) => %{optional(binary()) => binary()} | binary() }, opts :: Keyword.t() ) :: {:ok, t()} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
Creates a new file link object.
Details
- Method: 
post - Path: 
/v1/file_links 
@spec list( params :: %{ optional(:created) => created() | integer(), optional(:ending_before) => binary(), optional(:expand) => [binary()], optional(:expired) => boolean(), optional(:file) => binary(), optional(:limit) => integer(), optional(:starting_after) => binary() }, opts :: Keyword.t() ) :: {:ok, Stripe.List.t(t())} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
Returns a list of file links.
Details
- Method: 
get - Path: 
/v1/file_links 
@spec retrieve( link :: binary(), params :: %{optional(:expand) => [binary()]}, opts :: Keyword.t() ) :: {:ok, t()} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
Retrieves the file link with the given ID.
Details
- Method: 
get - Path: 
/v1/file_links/{link} 
@spec update( link :: binary(), params :: %{ optional(:expand) => [binary()], optional(:expires_at) => :now | integer() | binary(), optional(:metadata) => %{optional(binary()) => binary()} | binary() }, opts :: Keyword.t() ) :: {:ok, t()} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
Updates an existing file link object. Expired links can no longer be updated.
Details
- Method: 
post - Path: 
/v1/file_links/{link}