java.lang.Object |
↳ |
com.wsl.modules.stripe.client.StripeFileUploadClient |
Class Overview
Encapsulates File Upload-related Stripe API calls.
Summary
Public Methods |
FileUpload
|
createFileUpload(String file, FilePurpose purpose)
Create a file upload
To upload a file to Stripe, you'll need to send a request of type multipart/form-data.
|
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
Public Constructors
public
StripeFileUploadClient
()
Public Methods
public
FileUpload
createFileUpload
(String file, FilePurpose purpose)
Create a file upload
To upload a file to Stripe, you'll need to send a request of type multipart/form-data. The request should contain the file you would like to upload, as well as the parameters for creating a file.
Parameters
file
| A file to upload. The file should follow the specifications of RFC 2388 (which defines file transfers for the multipart/form-data protocol). |
purpose
| The purpose of the uploaded file. Possible values are identity_document, dispute_evidence. |