public class Token extends APIResource
APIResource.RequestMethodCHARSET, 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,
String apiKey) |
Integer |
getAmount() |
Card |
getCard() |
Long |
getCreated() |
String |
getCurrency() |
String |
getId() |
Boolean |
getLivemode() |
Boolean |
getUsed() |
static Token |
retrieve(String id) |
static Token |
retrieve(String id,
String apiKey) |
void |
setAmount(Integer amount) |
void |
setCard(Card card) |
void |
setCreated(Long created) |
void |
setCurrency(String currency) |
void |
setId(String id) |
void |
setLivemode(Boolean livemode) |
void |
setUsed(Boolean used) |
_request, classURL, instanceURL, request, singleClassURLtoStringpublic 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 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
public static Token create(Map<String,Object> params, String apiKey) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public static Token retrieve(String id, String apiKey) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
Copyright © 2014 Stripe. All rights reserved.