From d12e8b368bfb38ab0a29667cba767129ddcc5397 Mon Sep 17 00:00:00 2001 From: Remi Jannel Date: Wed, 19 Aug 2020 11:30:43 -0700 Subject: [PATCH] Add support for `ExpiresAt` on `File` --- file.go | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/file.go b/file.go index 327e97a198..0171dfcdb5 100644 --- a/file.go +++ b/file.go @@ -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.