public class Token extends APIResource implements HasId
APIResource.RequestMethod, APIResource.RequestTypeCHARSET, GSONPRETTY_PRINT_GSON| Constructor and Description |
|---|
Token() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canEqual(java.lang.Object other) |
static Token |
create(java.util.Map<java.lang.String,java.lang.Object> params)
Create a token.
|
static Token |
create(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Create a token.
|
static Token |
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 |
getAmount() |
BankAccount |
getBankAccount() |
Card |
getCard() |
java.lang.String |
getClientIp() |
java.lang.Long |
getCreated() |
java.lang.String |
getCurrency() |
java.lang.String |
getEmail() |
java.lang.String |
getId() |
java.lang.Boolean |
getLivemode() |
java.lang.String |
getObject() |
java.lang.String |
getType() |
java.lang.Boolean |
getUsed() |
int |
hashCode() |
static Token |
retrieve(java.lang.String id)
Retrieve a token.
|
static Token |
retrieve(java.lang.String id,
RequestOptions options)
Retrieve a token.
|
static Token |
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 |
setAmount(java.lang.Long amount) |
void |
setBankAccount(BankAccount bankAccount) |
void |
setCard(Card card) |
void |
setClientIp(java.lang.String clientIp) |
void |
setCreated(java.lang.Long created) |
void |
setCurrency(java.lang.String currency) |
void |
setEmail(java.lang.String email) |
void |
setId(java.lang.String id) |
void |
setLivemode(java.lang.Boolean livemode) |
void |
setObject(java.lang.String object) |
void |
setType(java.lang.String type) |
void |
setUsed(java.lang.Boolean used) |
classURL, classURL, instanceURL, instanceURL, multipartRequest, request, requestCollection, setExpandableFieldID, setStripeResponseGetter, singleClassURL, singleClassURL, subresourceURL, urlEncodeequals, getLastResponse, setLastResponse, toJson, toStringpublic static Token create(java.util.Map<java.lang.String,java.lang.Object> params) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public static Token create(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
@Deprecated public static Token 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 Token retrieve(java.lang.String id) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public static Token retrieve(java.lang.String id, RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
@Deprecated public static Token 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 getAmount()
public BankAccount getBankAccount()
public Card getCard()
public java.lang.String getClientIp()
public java.lang.Long getCreated()
public java.lang.String getCurrency()
public java.lang.String getEmail()
public java.lang.Boolean getLivemode()
public java.lang.String getType()
public java.lang.Boolean getUsed()
public void setId(java.lang.String id)
public void setObject(java.lang.String object)
public void setAmount(java.lang.Long amount)
public void setBankAccount(BankAccount bankAccount)
public void setCard(Card card)
public void setClientIp(java.lang.String clientIp)
public void setCreated(java.lang.Long created)
public void setCurrency(java.lang.String currency)
public void setEmail(java.lang.String email)
public void setLivemode(java.lang.Boolean livemode)
public void setType(java.lang.String type)
public void setUsed(java.lang.Boolean used)
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