Package com.stripe.model
Class File
java.lang.Object
com.stripe.model.StripeObject
com.stripe.net.ApiResource
com.stripe.model.File
- All Implemented Interfaces:
HasId
,StripeObjectInterface
-
Nested Class Summary
Nested classes/interfaces inherited from class com.stripe.net.ApiResource
ApiResource.RequestMethod
-
Field Summary
Fields inherited from class com.stripe.net.ApiResource
CHARSET, GSON
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
static File
create
(FileCreateParams params) To upload a file to Stripe, you’ll need to send a request of typemultipart/form-data
.static File
create
(FileCreateParams params, RequestOptions options) To upload a file to Stripe, you’ll need to send a request of typemultipart/form-data
.static File
To upload a file to Stripe, you’ll need to send a request of typemultipart/form-data
.static File
create
(Map<String, Object> params, RequestOptions options) To upload a file to Stripe, you’ll need to send a request of typemultipart/form-data
.boolean
Time at which the object was created.The time at which the file expires and is no longer available in epoch seconds.A filename for the file, suitable for saving to a filesystem.getId()
Unique identifier for the object.getLinks()
String representing the object's type.The purpose of the file.getSize()
The size in bytes of the file object.getTitle()
A user friendly title for the document.getType()
The type of the file returned (e.g.,csv
,pdf
,jpg
, orpng
).getUrl()
The URL from which the file can be downloaded using your live secret API key.int
hashCode()
static FileCollection
list
(FileListParams params) Returns a list of the files that your account has access to.static FileCollection
list
(FileListParams params, RequestOptions options) Returns a list of the files that your account has access to.static FileCollection
Returns a list of the files that your account has access to.static FileCollection
list
(Map<String, Object> params, RequestOptions options) Returns a list of the files that your account has access to.static File
Retrieves the details of an existing file object.static File
retrieve
(String id, RequestOptions options) Retrieves the details of an existing file object.static File
Retrieves the details of an existing file object.void
setCreated
(Long created) Time at which the object was created.void
setExpiresAt
(Long expiresAt) The time at which the file expires and is no longer available in epoch seconds.void
setFilename
(String filename) A filename for the file, suitable for saving to a filesystem.void
Unique identifier for the object.void
setLinks
(FileLinkCollection links) void
String representing the object's type.void
setPurpose
(String purpose) The purpose of the file.void
The size in bytes of the file object.void
A user friendly title for the document.void
The type of the file returned (e.g.,csv
,pdf
,jpg
, orpng
).void
The URL from which the file can be downloaded using your live secret API key.Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, classUrl, classUrl, instanceUrl, instanceUrl, request, request, requestCollection, requestCollection, requestSearchResult, requestSearchResult, requestStream, requestStream, setExpandableFieldId, setStripeResponseGetter, singleClassUrl, singleClassUrl, subresourceUrl, urlEncode, urlEncodeId
Methods inherited from class com.stripe.model.StripeObject
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
Constructor Details
-
File
public File()
-
-
Method Details
-
create
To upload a file to Stripe, you’ll need to send a request of typemultipart/form-data
. The request should contain the file you would like to upload, as well as the parameters for creating a file.- Throws:
StripeException
-
create
To upload a file to Stripe, you’ll need to send a request of typemultipart/form-data
. The request should contain the file you would like to upload, as well as the parameters for creating a file.- Throws:
StripeException
-
create
To upload a file to Stripe, you’ll need to send a request of typemultipart/form-data
. The request should contain the file you would like to upload, as well as the parameters for creating a file.- Throws:
StripeException
-
create
To upload a file to Stripe, you’ll need to send a request of typemultipart/form-data
. The request should contain the file you would like to upload, as well as the parameters for creating a file.- Throws:
StripeException
-
list
Returns a list of the files that your account has access to. The files are returned sorted by creation date, with the most recently created files appearing first.- Throws:
StripeException
-
list
public static FileCollection list(Map<String, Object> params, RequestOptions options) throws StripeExceptionReturns a list of the files that your account has access to. The files are returned sorted by creation date, with the most recently created files appearing first.- Throws:
StripeException
-
list
Returns a list of the files that your account has access to. The files are returned sorted by creation date, with the most recently created files appearing first.- Throws:
StripeException
-
list
public static FileCollection list(FileListParams params, RequestOptions options) throws StripeException Returns a list of the files that your account has access to. The files are returned sorted by creation date, with the most recently created files appearing first.- Throws:
StripeException
-
retrieve
Retrieves the details of an existing file object. Supply the unique file ID from a file, and Stripe will return the corresponding file object.- Throws:
StripeException
-
retrieve
Retrieves the details of an existing file object. Supply the unique file ID from a file, and Stripe will return the corresponding file object.- Throws:
StripeException
-
retrieve
public static File retrieve(String id, Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieves the details of an existing file object. Supply the unique file ID from a file, and Stripe will return the corresponding file object.- Throws:
StripeException
-
getCreated
Time at which the object was created. Measured in seconds since the Unix epoch. -
getExpiresAt
The time at which the file expires and is no longer available in epoch seconds. -
getFilename
A filename for the file, suitable for saving to a filesystem. -
getLinks
-
getObject
String representing the object's type. Objects of the same type share the same value. -
getPurpose
The purpose of the file. Possible values arebusiness_icon
,business_logo
,customer_signature
,dispute_evidence
,finance_report_run
,identity_document
,pci_document
,sigma_scheduled_query
, ortax_document_user_upload
. -
getSize
The size in bytes of the file object. -
getTitle
A user friendly title for the document. -
getType
The type of the file returned (e.g.,csv
,pdf
,jpg
, orpng
). -
getUrl
The URL from which the file can be downloaded using your live secret API key. -
setCreated
Time at which the object was created. Measured in seconds since the Unix epoch. -
setExpiresAt
The time at which the file expires and is no longer available in epoch seconds. -
setFilename
A filename for the file, suitable for saving to a filesystem. -
setId
Unique identifier for the object. -
setLinks
-
setObject
String representing the object's type. Objects of the same type share the same value. -
setPurpose
The purpose of the file. Possible values arebusiness_icon
,business_logo
,customer_signature
,dispute_evidence
,finance_report_run
,identity_document
,pci_document
,sigma_scheduled_query
, ortax_document_user_upload
. -
setSize
The size in bytes of the file object. -
setTitle
A user friendly title for the document. -
setType
The type of the file returned (e.g.,csv
,pdf
,jpg
, orpng
). -
setUrl
The URL from which the file can be downloaded using your live secret API key. -
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object.
-