Package com.stripe.service
Class FileService
java.lang.Object
com.stripe.net.ApiService
com.stripe.service.FileService
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreate
(FileCreateParams params) To upload a file to Stripe, you need to send a request of typemultipart/form-data
.create
(FileCreateParams params, RequestOptions options) To upload a file to Stripe, you need to send a request of typemultipart/form-data
.list()
Returns a list of the files that your account has access to.list
(RequestOptions options) Returns a list of the files that your account has access to.list
(FileListParams params) Returns a list of the files that your account has access to.list
(FileListParams params, RequestOptions options) Returns a list of the files that your account has access to.Retrieves the details of an existing file object.retrieve
(String file, RequestOptions options) Retrieves the details of an existing file object.retrieve
(String file, FileRetrieveParams params) Retrieves the details of an existing file object.retrieve
(String file, FileRetrieveParams params, RequestOptions options) Retrieves the details of an existing file object.Methods inherited from class com.stripe.net.ApiService
getResponseGetter, request, requestStream
-
Constructor Details
-
FileService
-
-
Method Details
-
list
Returns a list of the files that your account has access to. Stripe sorts and returns the files by their creation dates, placing the most recently created files at the top.- Throws:
StripeException
-
list
Returns a list of the files that your account has access to. Stripe sorts and returns the files by their creation dates, placing the most recently created files at the top.- Throws:
StripeException
-
list
Returns a list of the files that your account has access to. Stripe sorts and returns the files by their creation dates, placing the most recently created files at the top.- Throws:
StripeException
-
list
public StripeCollection<File> list(FileListParams params, RequestOptions options) throws StripeException Returns a list of the files that your account has access to. Stripe sorts and returns the files by their creation dates, placing the most recently created files at the top.- Throws:
StripeException
-
create
To upload a file to Stripe, you need to send a request of typemultipart/form-data
. Include the file you want to upload in the request, and the parameters for creating a file.All of Stripe’s officially supported Client libraries support sending
multipart/form-data
.- Throws:
StripeException
-
create
To upload a file to Stripe, you need to send a request of typemultipart/form-data
. Include the file you want to upload in the request, and the parameters for creating a file.All of Stripe’s officially supported Client libraries support sending
multipart/form-data
.- Throws:
StripeException
-
retrieve
Retrieves the details of an existing file object. After you supply a unique file ID, Stripe returns the corresponding file object. Learn how to access file contents.- Throws:
StripeException
-
retrieve
Retrieves the details of an existing file object. After you supply a unique file ID, Stripe returns the corresponding file object. Learn how to access file contents.- Throws:
StripeException
-
retrieve
Retrieves the details of an existing file object. After you supply a unique file ID, Stripe returns the corresponding file object. Learn how to access file contents.- Throws:
StripeException
-
retrieve
public File retrieve(String file, FileRetrieveParams params, RequestOptions options) throws StripeException Retrieves the details of an existing file object. After you supply a unique file ID, Stripe returns the corresponding file object. Learn how to access file contents.- Throws:
StripeException
-