-
Notifications
You must be signed in to change notification settings - Fork 460
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
As we discussed in #578, here we unify the `File` and `FileUpload` models into a single type. We do this by removing `File`, and changing all instances where it was referenced to `FileUpload`. These two structs were almost identical already, with the exception of the `MIMEType` field on `File`, which is called `Type` on `FileUpload`. Aside from that, the rename should cause very minimal breakage because most users would have been accessing members without referencing the struct's name directly like `dispute.Evidence.CustomerSignature.URL`. Also, just examining the server-side resources, I'm pretty sure that `MIMEType` didn't even work because it looks like the field is actually called `Type` for both files and file uploads. So even if a user has referenced the property, they should fix their use anyway.
- Loading branch information
Showing
3 changed files
with
27 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters