Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for ExpiresAt on File #1165

Merged
merged 1 commit into from
Aug 19, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 10 additions & 8 deletions file.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,16 @@ type FileListParams struct {
// For more details see https://stripe.com/docs/api#file_object.
type File struct {
APIResource
Created int64 `json:"created"`
ID string `json:"id"`
Filename string `json:"filename"`
Links *FileLinkList `json:"links"`
Purpose FilePurpose `json:"purpose"`
Size int64 `json:"size"`
Type string `json:"type"`
URL string `json:"url"`
Created int64 `json:"created"`
ExpiresAt int64 `json:"expires_at"`
Filename string `json:"filename"`
ID string `json:"id"`
Links *FileLinkList `json:"links"`
Object string `json:"object"`
Purpose FilePurpose `json:"purpose"`
Size int64 `json:"size"`
Type string `json:"type"`
URL string `json:"url"`
}

// FileList is a list of files as retrieved from a list endpoint.
Expand Down