View Source Stripe.FileLink (Striped v0.5.0) (generated)
To share the contents of a File object with non-Stripe users, you can
create a FileLink. FileLinks contain a URL that can be used to
retrieve the contents of the file without authentication.
Link to this section 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.
Link to this section 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.expiredWhether this link is already expired.expires_atTime at which 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.
Link to this section Functions
@spec create( client :: Stripe.t(), 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( client :: Stripe.t(), 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( client :: Stripe.t(), 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( client :: Stripe.t(), 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}