public class Token extends APIResource
APIResource.RequestMethod, APIResource.RequestTypeCHARSET, GSONPRETTY_PRINT_GSON| Constructor and Description |
|---|
Token() |
| Modifier and Type | Method and Description |
|---|---|
static Token |
create(Map<String,Object> params) |
static Token |
create(Map<String,Object> params,
RequestOptions options) |
static Token |
create(Map<String,Object> params,
String apiKey)
Deprecated.
|
Integer |
getAmount() |
BankAccount |
getBankAccount() |
Card |
getCard() |
Long |
getCreated() |
String |
getCurrency() |
String |
getId() |
Boolean |
getLivemode() |
Boolean |
getUsed() |
static Token |
retrieve(String id) |
static Token |
retrieve(String id,
RequestOptions options) |
static Token |
retrieve(String id,
String apiKey)
Deprecated.
|
void |
setAmount(Integer amount) |
void |
setBankAccount(BankAccount bankAccount) |
void |
setCard(Card card) |
void |
setCreated(Long created) |
void |
setCurrency(String currency) |
void |
setId(String id) |
void |
setLivemode(Boolean livemode) |
void |
setUsed(Boolean used) |
classURL, classURL, instanceURL, instanceURL, multipartRequest, request, setStripeResponseGetter, singleClassURL, singleClassURL, urlEncodeequals, toStringpublic Integer getAmount()
public void setAmount(Integer amount)
public Long getCreated()
public void setCreated(Long created)
public String getCurrency()
public void setCurrency(String currency)
public String getId()
public void setId(String id)
public Boolean getLivemode()
public void setLivemode(Boolean livemode)
public Boolean getUsed()
public void setUsed(Boolean used)
public Card getCard()
public void setCard(Card card)
public BankAccount getBankAccount()
public void setBankAccount(BankAccount bankAccount)
public static Token create(Map<String,Object> params) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public static Token retrieve(String id) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
@Deprecated public static Token create(Map<String,Object> params, String apiKey) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public static Token create(Map<String,Object> params, RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
@Deprecated public static Token retrieve(String id, String apiKey) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public static Token retrieve(String id, RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
Copyright © 2015 Stripe. All rights reserved.