public class

StripeFileUploadClient

extends Object
java.lang.Object
   ↳ com.wsl.modules.stripe.client.StripeFileUploadClient

Class Overview

Encapsulates File Upload-related Stripe API calls.

Summary

Public Constructors
StripeFileUploadClient()
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

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.
Returns
  • Returns the file object.
Throws
StripeConnectorException when there is a problem with the Connector