-
Notifications
You must be signed in to change notification settings - Fork 48
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
This func should be mutating func #126
Conversation
varungakhar
commented
Apr 22, 2021
•
edited
Loading
edited
What the actual issue here? The screenshot you posted has no context? |
when i am trying to create file , i am getting this error |
What's the actual error? None of the other functions on any other API route needs to be a |
I see, it's because the implementation itself is a |
@@ -17,7 +17,7 @@ public protocol FileRoutes { | |||
/// - purpose: The purpose of the uploaded file. Possible values are `business_icon`, `business_logo`, `customer_signature`, `dispute_evidence`, `identity_document`, `pci_document`, or `tax_document_user_upload`. | |||
/// - fileLinkData: Optional parameters to automatically create a file link for the newly created file. | |||
/// - Returns: A `StripeFile`. | |||
func create(file: Data, purpose: StripeFilePurpose, fileLinkData: [String: Any]?) -> EventLoopFuture<StripeFile> | |||
mutating func create(file: Data, purpose: StripeFilePurpose, fileLinkData: [String: Any]?) -> EventLoopFuture<StripeFile> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small indentation here.