public class Recipient extends APIResource implements MetadataStore<Recipient>, HasId
APIResource.RequestMethod, APIResource.RequestType
CHARSET, GSON
PRETTY_PRINT_GSON
Constructor and Description |
---|
Recipient() |
classURL, classURL, instanceURL, instanceURL, multipartRequest, request, requestCollection, setExpandableFieldID, setStripeResponseGetter, singleClassURL, singleClassURL, urlEncode
equals, toJson, toString
public void setId(String id)
public String getObject()
public void setObject(String object)
public BankAccount getActiveAccount()
public void setActiveAccount(BankAccount activeAccount)
public RecipientCardCollection getCards()
public Long getCreated()
public void setCreated(Long created)
public String getDefaultCard()
public void setDefaultCard(String defaultCardID)
public Card getDefaultCardObject()
public void setDefaultCardObject(Card c)
public Boolean getDeleted()
public String getDescription()
public void setDescription(String description)
public String getEmail()
public void setEmail(String email)
public Boolean getLivemode()
public void setLivemode(Boolean livemode)
public Map<String,String> getMetadata()
getMetadata
in interface MetadataStore<Recipient>
public String getMigratedTo()
public void setMigratedTo(String migratedToID)
public Account getMigratedToObject()
public void setMigratedToObject(Account c)
public String getName()
public void setName(String name)
public String getType()
public void setType(String type)
public Boolean getVerified()
public void setVerified(Boolean verified)
public static Recipient create(Map<String,Object> params) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public static Recipient retrieve(String id) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public Recipient update(Map<String,Object> params) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
update
in interface MetadataStore<Recipient>
AuthenticationException
InvalidRequestException
APIConnectionException
CardException
APIException
public DeletedRecipient delete() throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public Card createCard(String token) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public Card createCard(Map<String,Object> params) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
@Deprecated public Card createCard(String token, String apiKey) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public Card createCard(String token, RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
@Deprecated public Card createCard(Map<String,Object> params, String apiKey) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public Card createCard(Map<String,Object> params, RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
@Deprecated public static Recipient create(Map<String,Object> params, String apiKey) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public static Recipient create(Map<String,Object> params, RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
@Deprecated public static Recipient retrieve(String id, String apiKey) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public static Recipient retrieve(String id, RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public static Recipient retrieve(String id, Map<String,Object> params, RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public static RecipientCollection list(Map<String,Object> params) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public static RecipientCollection list(Map<String,Object> params, RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
@Deprecated public static RecipientCollection all(Map<String,Object> params) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
@Deprecated public static RecipientCollection all(Map<String,Object> params, String apiKey) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
@Deprecated public static RecipientCollection all(Map<String,Object> params, RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
@Deprecated public Recipient update(Map<String,Object> params, String apiKey) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public Recipient update(Map<String,Object> params, RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
update
in interface MetadataStore<Recipient>
AuthenticationException
InvalidRequestException
APIConnectionException
CardException
APIException
@Deprecated public DeletedRecipient delete(String apiKey) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public DeletedRecipient delete(RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
Copyright © 2017 Stripe. All rights reserved.