HasId
, MetadataStore<Recipient>
public class Recipient extends APIResource implements MetadataStore<Recipient>, HasId
APIResource.RequestMethod, APIResource.RequestType
CHARSET, GSON
PRETTY_PRINT_GSON
Constructor | Description |
---|---|
Recipient() |
Modifier and Type | Method | Description |
---|---|---|
static RecipientCollection |
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 RecipientCollection |
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 RecipientCollection |
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 Recipient |
create(java.util.Map<java.lang.String,java.lang.Object> params) |
Create a recipient.
|
static Recipient |
create(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options) |
Create a recipient.
|
static Recipient |
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. |
Card |
createCard(java.lang.String token) |
Deprecated.
Use
getCards() and
RecipientCardCollection.create(Map) instead.
This method will be removed in the next major version. |
Card |
createCard(java.lang.String token,
RequestOptions options) |
Deprecated.
Use
getCards() and
RecipientCardCollection.create(Map, RequestOptions) instead.
This method will be removed in the next major version. |
Card |
createCard(java.lang.String token,
java.lang.String apiKey) |
Deprecated.
Use
getCards() and
RecipientCardCollection.create(Map, RequestOptions) instead.
This method will be removed in the next major version. |
Card |
createCard(java.util.Map<java.lang.String,java.lang.Object> params) |
Deprecated.
Use
getCards() and
RecipientCardCollection.create(Map) instead.
This method will be removed in the next major version. |
Card |
createCard(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options) |
Deprecated.
Use
getCards() and
RecipientCardCollection.create(Map, RequestOptions) instead.
This method will be removed in the next major version. |
Card |
createCard(java.util.Map<java.lang.String,java.lang.Object> params,
java.lang.String apiKey) |
Deprecated.
Use
getCards() and
RecipientCardCollection.create(Map, RequestOptions) instead.
This method will be removed in the next major version. |
DeletedRecipient |
delete() |
Delete a recipient.
|
DeletedRecipient |
delete(RequestOptions options) |
Delete a recipient.
|
DeletedRecipient |
delete(java.lang.String apiKey) |
Deprecated.
Use the
delete(RequestOptions) method instead.
This method will be removed in the next major version. |
boolean |
equals(java.lang.Object o) |
|
BankAccount |
getActiveAccount() |
|
RecipientCardCollection |
getCards() |
|
java.lang.Long |
getCreated() |
|
java.lang.String |
getDefaultCard() |
|
Card |
getDefaultCardObject() |
|
java.lang.Boolean |
getDeleted() |
|
java.lang.String |
getDescription() |
|
java.lang.String |
getEmail() |
|
java.lang.String |
getId() |
|
java.lang.Boolean |
getLivemode() |
|
java.util.Map<java.lang.String,java.lang.String> |
getMetadata() |
|
java.lang.String |
getMigratedTo() |
|
Account |
getMigratedToObject() |
|
java.lang.String |
getName() |
|
java.lang.String |
getObject() |
|
java.lang.String |
getType() |
|
java.lang.Boolean |
getVerified() |
|
int |
hashCode() |
|
static RecipientCollection |
list(java.util.Map<java.lang.String,java.lang.Object> params) |
List all recipients.
|
static RecipientCollection |
list(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options) |
List all recipients.
|
static Recipient |
retrieve(java.lang.String id) |
Retrieve a recipient.
|
static Recipient |
retrieve(java.lang.String id,
RequestOptions options) |
Retrieve a recipient.
|
static Recipient |
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. |
static Recipient |
retrieve(java.lang.String id,
java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options) |
Retrieve a recipient.
|
void |
setActiveAccount(BankAccount activeAccount) |
|
void |
setCards(RecipientCardCollection cards) |
|
void |
setCreated(java.lang.Long created) |
|
void |
setDefaultCard(java.lang.String defaultCardID) |
|
void |
setDefaultCardObject(Card c) |
|
void |
setDeleted(java.lang.Boolean deleted) |
|
void |
setDescription(java.lang.String description) |
|
void |
setEmail(java.lang.String email) |
|
void |
setId(java.lang.String id) |
|
void |
setLivemode(java.lang.Boolean livemode) |
|
void |
setMetadata(java.util.Map<java.lang.String,java.lang.String> metadata) |
|
void |
setMigratedTo(java.lang.String migratedToID) |
|
void |
setMigratedToObject(Account c) |
|
void |
setName(java.lang.String name) |
|
void |
setObject(java.lang.String object) |
|
void |
setType(java.lang.String type) |
|
void |
setVerified(java.lang.Boolean verified) |
|
Recipient |
update(java.util.Map<java.lang.String,java.lang.Object> params) |
Update a recipient.
|
Recipient |
update(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options) |
Update a recipient.
|
Recipient |
update(java.util.Map<java.lang.String,java.lang.Object> params,
java.lang.String apiKey) |
Deprecated.
Use the
update(Map, RequestOptions) method instead.
This method will be removed in the next major version. |
classURL, classURL, instanceURL, instanceURL, multipartRequest, request, requestCollection, setExpandableFieldID, setStripeResponseGetter, singleClassURL, singleClassURL, subresourceURL, urlEncode
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
equals, getLastResponse, setLastResponse, toJson, toString
public java.lang.String getDefaultCard()
public void setDefaultCard(java.lang.String defaultCardID)
public Card getDefaultCardObject()
public void setDefaultCardObject(Card c)
public java.lang.String getMigratedTo()
public void setMigratedTo(java.lang.String migratedToID)
public Account getMigratedToObject()
public void setMigratedToObject(Account c)
@Deprecated public static RecipientCollection 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 RecipientCollection 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 RecipientCollection 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 Recipient create(java.util.Map<java.lang.String,java.lang.Object> params) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public static Recipient create(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
@Deprecated public static Recipient 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.@Deprecated public Card createCard(java.lang.String token) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
getCards()
and
RecipientCardCollection.create(Map)
instead.
This method will be removed in the next major version.@Deprecated public Card createCard(java.lang.String token, RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
getCards()
and
RecipientCardCollection.create(Map, RequestOptions)
instead.
This method will be removed in the next major version.@Deprecated public Card createCard(java.lang.String token, java.lang.String apiKey) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
getCards()
and
RecipientCardCollection.create(Map, RequestOptions)
instead.
This method will be removed in the next major version.@Deprecated public Card createCard(java.util.Map<java.lang.String,java.lang.Object> params) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
getCards()
and
RecipientCardCollection.create(Map)
instead.
This method will be removed in the next major version.@Deprecated public Card createCard(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
getCards()
and
RecipientCardCollection.create(Map, RequestOptions)
instead.
This method will be removed in the next major version.@Deprecated public Card createCard(java.util.Map<java.lang.String,java.lang.Object> params, java.lang.String apiKey) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
getCards()
and
RecipientCardCollection.create(Map, RequestOptions)
instead.
This method will be removed in the next major version.public DeletedRecipient delete() throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public DeletedRecipient delete(RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
@Deprecated public DeletedRecipient delete(java.lang.String apiKey) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
delete(RequestOptions)
method instead.
This method will be removed in the next major version.public static RecipientCollection list(java.util.Map<java.lang.String,java.lang.Object> params) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public static RecipientCollection list(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public static Recipient retrieve(java.lang.String id) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public static Recipient retrieve(java.lang.String id, RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
@Deprecated public static Recipient 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 static Recipient retrieve(java.lang.String id, java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public Recipient update(java.util.Map<java.lang.String,java.lang.Object> params) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
update
in interface MetadataStore<Recipient>
AuthenticationException
InvalidRequestException
APIConnectionException
CardException
APIException
public Recipient update(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
update
in interface MetadataStore<Recipient>
AuthenticationException
InvalidRequestException
APIConnectionException
CardException
APIException
@Deprecated public Recipient update(java.util.Map<java.lang.String,java.lang.Object> params, java.lang.String apiKey) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
update(Map, RequestOptions)
method instead.
This method will be removed in the next major version.public java.lang.String getObject()
public BankAccount getActiveAccount()
public RecipientCardCollection getCards()
public java.lang.Long getCreated()
public java.lang.Boolean getDeleted()
public java.lang.String getDescription()
public java.lang.String getEmail()
public java.lang.Boolean getLivemode()
public java.lang.String getName()
public java.lang.String getType()
public java.lang.Boolean getVerified()
public void setId(java.lang.String id)
public void setObject(java.lang.String object)
public void setActiveAccount(BankAccount activeAccount)
public void setCards(RecipientCardCollection cards)
public void setCreated(java.lang.Long created)
public void setDeleted(java.lang.Boolean deleted)
public void setDescription(java.lang.String description)
public void setEmail(java.lang.String email)
public void setLivemode(java.lang.Boolean livemode)
public void setMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)
public void setName(java.lang.String name)
public void setType(java.lang.String type)
public void setVerified(java.lang.Boolean verified)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
protected boolean canEqual(java.lang.Object other)
public int hashCode()
hashCode
in class java.lang.Object
public java.util.Map<java.lang.String,java.lang.String> getMetadata()
getMetadata
in interface MetadataStore<Recipient>