public class FileUpload extends APIResource implements HasId
APIResource.RequestMethod, APIResource.RequestTypeCHARSET, GSONPRETTY_PRINT_GSON| Constructor and Description |
|---|
FileUpload() |
| Modifier and Type | Method and Description |
|---|---|
static FileUploadCollection |
all(java.util.Map<java.lang.String,java.lang.Object> params)
Deprecated.
Use the
list(Map) method instead.
This method will be removed in the next major version. |
static FileUploadCollection |
all(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Deprecated.
Use the
list(Map, RequestOptions) method instead.
This method will be removed in the next major version. |
static FileUploadCollection |
all(java.util.Map<java.lang.String,java.lang.Object> params,
java.lang.String apiKey)
Deprecated.
Use the
list(Map, RequestOptions) method instead.
This method will be removed in the next major version. |
protected boolean |
canEqual(java.lang.Object other) |
static FileUpload |
create(java.util.Map<java.lang.String,java.lang.Object> params)
Create a file upload.
|
static FileUpload |
create(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Create a file upload.
|
static FileUpload |
create(java.util.Map<java.lang.String,java.lang.Object> params,
java.lang.String apiKey)
Deprecated.
Use the
create(Map, RequestOptions) method instead.
This method will be removed in the next major version. |
boolean |
equals(java.lang.Object o) |
java.lang.Long |
getCreated() |
java.lang.String |
getId() |
java.lang.String |
getObject() |
java.lang.String |
getPurpose() |
java.lang.Long |
getSize() |
java.lang.String |
getType() |
java.lang.String |
getURL() |
int |
hashCode() |
static FileUploadCollection |
list(java.util.Map<java.lang.String,java.lang.Object> params)
List all file uploads.
|
static FileUploadCollection |
list(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
List all file uploads.
|
static FileUpload |
retrieve(java.lang.String id)
Retrieve a file upload.
|
static FileUpload |
retrieve(java.lang.String id,
RequestOptions options)
Retrieve a file upload.
|
static FileUpload |
retrieve(java.lang.String id,
java.lang.String apiKey)
Deprecated.
Use the
retrieve(String, RequestOptions) method instead.
This method will be removed in the next major version. |
void |
setCreated(java.lang.Long created) |
void |
setId(java.lang.String id) |
void |
setObject(java.lang.String object) |
void |
setPurpose(java.lang.String purpose) |
void |
setSize(java.lang.Long size) |
void |
setType(java.lang.String type) |
void |
setURL(java.lang.String url) |
classURL, classURL, instanceURL, instanceURL, multipartRequest, request, requestCollection, setExpandableFieldID, setStripeResponseGetter, singleClassURL, singleClassURL, subresourceURL, urlEncodeequals, getLastResponse, setLastResponse, toJson, toStringpublic java.lang.String getURL()
public void setURL(java.lang.String url)
@Deprecated public static FileUploadCollection all(java.util.Map<java.lang.String,java.lang.Object> params) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
list(Map) method instead.
This method will be removed in the next major version.@Deprecated public static FileUploadCollection all(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
list(Map, RequestOptions) method instead.
This method will be removed in the next major version.@Deprecated public static FileUploadCollection all(java.util.Map<java.lang.String,java.lang.Object> params, java.lang.String apiKey) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
list(Map, RequestOptions) method instead.
This method will be removed in the next major version.public static FileUpload create(java.util.Map<java.lang.String,java.lang.Object> params) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public static FileUpload create(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
@Deprecated public static FileUpload create(java.util.Map<java.lang.String,java.lang.Object> params, java.lang.String apiKey) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
create(Map, RequestOptions) method instead.
This method will be removed in the next major version.public static FileUploadCollection list(java.util.Map<java.lang.String,java.lang.Object> params) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public static FileUploadCollection list(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public static FileUpload retrieve(java.lang.String id) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public static FileUpload retrieve(java.lang.String id, RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
@Deprecated public static FileUpload retrieve(java.lang.String id, java.lang.String apiKey) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
retrieve(String, RequestOptions) method instead.
This method will be removed in the next major version.public java.lang.String getObject()
public java.lang.Long getCreated()
public java.lang.String getPurpose()
public java.lang.Long getSize()
public java.lang.String getType()
public void setId(java.lang.String id)
public void setObject(java.lang.String object)
public void setCreated(java.lang.Long created)
public void setPurpose(java.lang.String purpose)
public void setSize(java.lang.Long size)
public void setType(java.lang.String type)
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectprotected boolean canEqual(java.lang.Object other)
public int hashCode()
hashCode in class java.lang.Object