Skip to content

Commit

Permalink
Merge pull request #1165 from stripe/remi-add-fil-expiry
Browse files Browse the repository at this point in the history
Add support for `ExpiresAt` on `File`
  • Loading branch information
remi-stripe authored Aug 19, 2020
2 parents 0b33a95 + d12e8b3 commit 50fae76
Showing 1 changed file with 10 additions and 8 deletions.
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

0 comments on commit 50fae76

Please sign in to comment.