public class File extends ApiResource implements HasId
ApiResource.RequestMethod, ApiResource.RequestType
CHARSET, GSON
PRETTY_PRINT_GSON
Constructor and Description |
---|
File() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(java.lang.Object other) |
static File |
create(FileCreateParams params)
To upload a file to Stripe, you’ll need to send a request of type
multipart/form-data . |
static File |
create(FileCreateParams params,
RequestOptions options)
To upload a file to Stripe, you’ll need to send a request of type
multipart/form-data . |
static File |
create(java.util.Map<java.lang.String,java.lang.Object> params)
To upload a file to Stripe, you’ll need to send a request of type
multipart/form-data . |
static File |
create(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
To upload a file to Stripe, you’ll need to send a request of type
multipart/form-data . |
boolean |
equals(java.lang.Object o) |
java.lang.Long |
getCreated()
Time at which the object was created.
|
java.lang.String |
getFilename()
A filename for the file, suitable for saving to a filesystem.
|
java.lang.String |
getId()
Unique identifier for the object.
|
FileLinkCollection |
getLinks() |
java.lang.String |
getObject()
String representing the object's type.
|
java.lang.String |
getPurpose()
The purpose of the file.
|
java.lang.Long |
getSize()
The size in bytes of the file object.
|
java.lang.String |
getTitle()
A user friendly title for the document.
|
java.lang.String |
getType()
The type of the file returned (e.g.,
csv , pdf , jpg , or png ). |
java.lang.String |
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 |
list(java.util.Map<java.lang.String,java.lang.Object> params)
Returns a list of the files that your account has access to.
|
static FileCollection |
list(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Returns a list of the files that your account has access to.
|
static File |
retrieve(java.lang.String id)
Retrieves the details of an existing file object.
|
static File |
retrieve(java.lang.String id,
java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Retrieves the details of an existing file object.
|
static File |
retrieve(java.lang.String id,
RequestOptions options)
Retrieves the details of an existing file object.
|
void |
setCreated(java.lang.Long created)
Time at which the object was created.
|
void |
setFilename(java.lang.String filename)
A filename for the file, suitable for saving to a filesystem.
|
void |
setId(java.lang.String id)
Unique identifier for the object.
|
void |
setLinks(FileLinkCollection links) |
void |
setObject(java.lang.String object)
String representing the object's type.
|
void |
setPurpose(java.lang.String purpose)
The purpose of the file.
|
void |
setSize(java.lang.Long size)
The size in bytes of the file object.
|
void |
setTitle(java.lang.String title)
A user friendly title for the document.
|
void |
setType(java.lang.String type)
The type of the file returned (e.g.,
csv , pdf , jpg , or png ). |
void |
setUrl(java.lang.String url)
The URL from which the file can be downloaded using your live secret API key.
|
checkNullTypedParams, classUrl, classUrl, instanceUrl, instanceUrl, multipartRequest, request, request, requestCollection, requestCollection, setExpandableFieldId, setStripeResponseGetter, singleClassUrl, singleClassUrl, subresourceUrl, urlEncode, urlEncodeId
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
public static File create(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
multipart/form-data
.
The request should contain the file you would like to upload, as well as the parameters for
creating a file.StripeException
public static File create(FileCreateParams params) throws StripeException
multipart/form-data
.
The request should contain the file you would like to upload, as well as the parameters for
creating a file.StripeException
public static File create(FileCreateParams params, RequestOptions options) throws StripeException
multipart/form-data
.
The request should contain the file you would like to upload, as well as the parameters for
creating a file.StripeException
public static File create(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
multipart/form-data
.
The request should contain the file you would like to upload, as well as the parameters for
creating a file.StripeException
public static FileCollection list(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
StripeException
public static FileCollection list(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
StripeException
public static FileCollection list(FileListParams params) throws StripeException
StripeException
public static FileCollection list(FileListParams params, RequestOptions options) throws StripeException
StripeException
public static File retrieve(java.lang.String id) throws StripeException
StripeException
public static File retrieve(java.lang.String id, RequestOptions options) throws StripeException
StripeException
public static File retrieve(java.lang.String id, java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
StripeException
public java.lang.Long getCreated()
public java.lang.String getFilename()
public FileLinkCollection getLinks()
public java.lang.String getObject()
public java.lang.String getPurpose()
business_icon
, business_logo
,
customer_signature
, dispute_evidence
, finance_report_run
, identity_document
, pci_document
, sigma_scheduled_query
, or tax_document_user_upload
.public java.lang.Long getSize()
public java.lang.String getTitle()
public java.lang.String getType()
csv
, pdf
, jpg
, or png
).public java.lang.String getUrl()
public void setCreated(java.lang.Long created)
public void setFilename(java.lang.String filename)
public void setId(java.lang.String id)
public void setLinks(FileLinkCollection links)
public void setObject(java.lang.String object)
public void setPurpose(java.lang.String purpose)
business_icon
, business_logo
,
customer_signature
, dispute_evidence
, finance_report_run
, identity_document
, pci_document
, sigma_scheduled_query
, or tax_document_user_upload
.public void setSize(java.lang.Long size)
public void setTitle(java.lang.String title)
public void setType(java.lang.String type)
csv
, pdf
, jpg
, or png
).public void setUrl(java.lang.String url)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
protected boolean canEqual(java.lang.Object other)
public int hashCode()
hashCode
in class java.lang.Object