public class Recipient extends ApiResource implements HasId, MetadataStore<Recipient>
ApiResource.RequestMethod
CHARSET, GSON
PRETTY_PRINT_GSON
Constructor and Description |
---|
Recipient() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(java.lang.Object other) |
static Recipient |
create(java.util.Map<java.lang.String,java.lang.Object> params)
Creates a new
Recipient object and verifies the recipient’s identity. |
static Recipient |
create(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Creates a new
Recipient object and verifies the recipient’s identity. |
static Recipient |
create(RecipientCreateParams params)
Creates a new
Recipient object and verifies the recipient’s identity. |
static Recipient |
create(RecipientCreateParams params,
RequestOptions options)
Creates a new
Recipient object and verifies the recipient’s identity. |
Recipient |
delete()
Permanently deletes a recipient.
|
Recipient |
delete(java.util.Map<java.lang.String,java.lang.Object> params)
Permanently deletes a recipient.
|
Recipient |
delete(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Permanently deletes a recipient.
|
Recipient |
delete(RequestOptions options)
Permanently deletes a recipient.
|
boolean |
equals(java.lang.Object o) |
BankAccount |
getActiveAccount()
Hash describing the current account on the recipient, if there is one.
|
CardCollection |
getCards() |
java.lang.Long |
getCreated()
Time at which the object was created.
|
java.lang.String |
getDefaultCard()
Get ID of expandable
defaultCard object. |
Card |
getDefaultCardObject()
Get expanded
defaultCard . |
java.lang.Boolean |
getDeleted()
Always true for a deleted object.
|
java.lang.String |
getDescription()
An arbitrary string attached to the object.
|
java.lang.String |
getEmail() |
java.lang.String |
getId()
Unique identifier for the object.
|
java.lang.Boolean |
getLivemode()
Has the value
true if the object exists in live mode or the value false if the
object exists in test mode. |
java.util.Map<java.lang.String,java.lang.String> |
getMetadata()
Set of key-value pairs that you can attach to an object.
|
java.lang.String |
getMigratedTo()
Get ID of expandable
migratedTo object. |
Account |
getMigratedToObject()
Get expanded
migratedTo . |
java.lang.String |
getName()
Full, legal name of the recipient.
|
java.lang.String |
getObject()
String representing the object's type.
|
java.lang.String |
getRolledBackFrom()
Get ID of expandable
rolledBackFrom object. |
Account |
getRolledBackFromObject()
Get expanded
rolledBackFrom . |
java.lang.String |
getType()
Type of the recipient, one of
individual or corporation . |
java.lang.Boolean |
getVerified()
Whether the recipient has been verified.
|
int |
hashCode() |
static RecipientCollection |
list(java.util.Map<java.lang.String,java.lang.Object> params)
Returns a list of your recipients.
|
static RecipientCollection |
list(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Returns a list of your recipients.
|
static RecipientCollection |
list(RecipientListParams params)
Returns a list of your recipients.
|
static RecipientCollection |
list(RecipientListParams params,
RequestOptions options)
Returns a list of your recipients.
|
static Recipient |
retrieve(java.lang.String id)
Retrieves the details of an existing recipient.
|
static Recipient |
retrieve(java.lang.String id,
java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Retrieves the details of an existing recipient.
|
static Recipient |
retrieve(java.lang.String id,
RecipientRetrieveParams params,
RequestOptions options)
Retrieves the details of an existing recipient.
|
static Recipient |
retrieve(java.lang.String id,
RequestOptions options)
Retrieves the details of an existing recipient.
|
void |
setActiveAccount(BankAccount activeAccount)
Hash describing the current account on the recipient, if there is one.
|
void |
setCards(CardCollection cards) |
void |
setCreated(java.lang.Long created)
Time at which the object was created.
|
void |
setDefaultCard(java.lang.String id) |
void |
setDefaultCardObject(Card expandableObject) |
void |
setDeleted(java.lang.Boolean deleted)
Always true for a deleted object.
|
void |
setDescription(java.lang.String description)
An arbitrary string attached to the object.
|
void |
setEmail(java.lang.String email) |
void |
setId(java.lang.String id)
Unique identifier for the object.
|
void |
setLivemode(java.lang.Boolean livemode)
Has the value
true if the object exists in live mode or the value false if the
object exists in test mode. |
void |
setMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)
Set of key-value pairs that you can attach to an object.
|
void |
setMigratedTo(java.lang.String id) |
void |
setMigratedToObject(Account expandableObject) |
void |
setName(java.lang.String name)
Full, legal name of the recipient.
|
void |
setObject(java.lang.String object)
String representing the object's type.
|
void |
setRolledBackFrom(java.lang.String id) |
void |
setRolledBackFromObject(Account expandableObject) |
void |
setType(java.lang.String type)
Type of the recipient, one of
individual or corporation . |
void |
setVerified(java.lang.Boolean verified)
Whether the recipient has been verified.
|
Recipient |
update(java.util.Map<java.lang.String,java.lang.Object> params)
Updates the specified recipient by setting the values of the parameters passed.
|
Recipient |
update(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Updates the specified recipient by setting the values of the parameters passed.
|
Recipient |
update(RecipientUpdateParams params)
Updates the specified recipient by setting the values of the parameters passed.
|
Recipient |
update(RecipientUpdateParams params,
RequestOptions options)
Updates the specified recipient by setting the values of the parameters passed.
|
checkNullTypedParams, classUrl, classUrl, instanceUrl, instanceUrl, request, request, requestCollection, requestCollection, setExpandableFieldId, setStripeResponseGetter, singleClassUrl, singleClassUrl, subresourceUrl, urlEncode, urlEncodeId
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
public java.lang.String getDefaultCard()
defaultCard
object.public void setDefaultCard(java.lang.String id)
public Card getDefaultCardObject()
defaultCard
.public void setDefaultCardObject(Card expandableObject)
public java.lang.String getMigratedTo()
migratedTo
object.public void setMigratedTo(java.lang.String id)
public Account getMigratedToObject()
migratedTo
.public void setMigratedToObject(Account expandableObject)
public java.lang.String getRolledBackFrom()
rolledBackFrom
object.public void setRolledBackFrom(java.lang.String id)
public Account getRolledBackFromObject()
rolledBackFrom
.public void setRolledBackFromObject(Account expandableObject)
public static RecipientCollection list(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
StripeException
public static RecipientCollection list(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
StripeException
public static RecipientCollection list(RecipientListParams params) throws StripeException
StripeException
public static RecipientCollection list(RecipientListParams params, RequestOptions options) throws StripeException
StripeException
public static Recipient create(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
Recipient
object and verifies the recipient’s identity. Also
verifies the recipient’s bank account information or debit card, if either is provided.StripeException
public static Recipient create(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
Recipient
object and verifies the recipient’s identity. Also
verifies the recipient’s bank account information or debit card, if either is provided.StripeException
public static Recipient create(RecipientCreateParams params) throws StripeException
Recipient
object and verifies the recipient’s identity. Also
verifies the recipient’s bank account information or debit card, if either is provided.StripeException
public static Recipient create(RecipientCreateParams params, RequestOptions options) throws StripeException
Recipient
object and verifies the recipient’s identity. Also
verifies the recipient’s bank account information or debit card, if either is provided.StripeException
public static Recipient retrieve(java.lang.String id) throws StripeException
StripeException
public static Recipient retrieve(java.lang.String id, RequestOptions options) throws StripeException
StripeException
public static Recipient retrieve(java.lang.String id, java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
StripeException
public static Recipient retrieve(java.lang.String id, RecipientRetrieveParams params, RequestOptions options) throws StripeException
StripeException
public Recipient update(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
If you update the name or tax ID, the identity verification will automatically be rerun. If you update the bank account, the bank account validation will automatically be rerun.
update
in interface MetadataStore<Recipient>
StripeException
public Recipient update(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
If you update the name or tax ID, the identity verification will automatically be rerun. If you update the bank account, the bank account validation will automatically be rerun.
update
in interface MetadataStore<Recipient>
StripeException
public Recipient update(RecipientUpdateParams params) throws StripeException
If you update the name or tax ID, the identity verification will automatically be rerun. If you update the bank account, the bank account validation will automatically be rerun.
StripeException
public Recipient update(RecipientUpdateParams params, RequestOptions options) throws StripeException
If you update the name or tax ID, the identity verification will automatically be rerun. If you update the bank account, the bank account validation will automatically be rerun.
StripeException
public Recipient delete() throws StripeException
StripeException
public Recipient delete(RequestOptions options) throws StripeException
StripeException
public Recipient delete(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
StripeException
public Recipient delete(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
StripeException
public BankAccount getActiveAccount()
public CardCollection 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()
true
if the object exists in live mode or the value false
if the
object exists in test mode.public java.lang.String getName()
public java.lang.String getObject()
Equal to recipient
.
public java.lang.String getType()
individual
or corporation
.public java.lang.Boolean getVerified()
public void setActiveAccount(BankAccount activeAccount)
public void setCards(CardCollection 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 setId(java.lang.String id)
public void setLivemode(java.lang.Boolean livemode)
true
if the object exists in live mode or the value false
if the
object exists in test mode.public void setMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)
public void setName(java.lang.String name)
public void setObject(java.lang.String object)
Equal to recipient
.
public void setType(java.lang.String type)
individual
or corporation
.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.lang.String getId()
public java.util.Map<java.lang.String,java.lang.String> getMetadata()
getMetadata
in interface MetadataStore<Recipient>