Stripe.FileUpload (stripity_stripe v2.17.2) View Source
Work with Stripe file_upload objects.
You can:
- Create a file
- Retrieve a file
- List all files
Stripe API reference: https://stripe.com/docs/api/files
Link to this section Summary
Functions
Create a file according to Stripe's file_upload rules.
List all file uploads, going back up to 30 days.
Retrieve a file_upload.
Link to this section Types
Specs
t() :: %Stripe.FileUpload{ created: Stripe.timestamp(), expires_at: Stripe.timestamp(), filename: String.t() | nil, id: Stripe.id(), links: Stripe.List.t(Stripe.FileLink.t()), object: String.t(), purpose: String.t(), size: integer(), title: String.t() | nil, type: String.t() | nil, url: String.t() | nil }
Link to this section Functions
Specs
create(map(), Keyword.t()) :: {:ok, t()} | {:error, Stripe.Error.t()}
Create a file according to Stripe's file_upload rules.
Takes the filepath and the purpose.
Specs
list(params, Stripe.options()) :: {:ok, Stripe.List.t(t())} | {:error, Stripe.Error.t()} when params: %{ optional(:ending_before) => t() | Stripe.id(), optional(:limit) => 1..100, optional(:purpose) => String.t(), optional(:starting_after) => t() | Stripe.id() } | %{}
List all file uploads, going back up to 30 days.
Specs
retrieve(Stripe.id() | t(), Stripe.options()) :: {:ok, t()} | {:error, Stripe.Error.t()}
Retrieve a file_upload.