pub struct File {
pub created: i64,
pub expires_at: Option<i64>,
pub filename: Option<String>,
pub id: String,
pub links: Option<FileResourceFileLinkList>,
pub object: String,
pub purpose: String,
pub size: i64,
pub title: Option<String>,
pub type_: Option<String>,
pub url: Option<String>,
}Expand description
This object represents files hosted on Stripe’s servers. You can upload files with the create file request (for example, when uploading dispute evidence). Stripe also creates files independently (for example, the results of a Sigma scheduled query).
Related guide: File upload guide
Fields§
§created: i64Time at which the object was created. Measured in seconds since the Unix epoch.
expires_at: Option<i64>The file expires and isn’t available at this time in epoch seconds.
filename: Option<String>The suitable name for saving the file to a filesystem.
id: StringUnique identifier for the object.
links: Option<FileResourceFileLinkList>A list of file links that point at this file.
object: StringString representing the object’s type. Objects of the same type share the same value.
purpose: StringThe purpose of the uploaded file.
size: i64The size of the file object in bytes.
title: Option<String>A suitable title for the document.
type_: Option<String>The returned file type (for example, csv, pdf, jpg, or png).
url: Option<String>Use your live secret API key to download the file from this URL.