Package com.stripe.model
Class Recipient
- java.lang.Object
-
- com.stripe.model.StripeObject
-
- com.stripe.net.ApiResource
-
- com.stripe.model.Recipient
-
- All Implemented Interfaces:
HasId
,MetadataStore<Recipient>
public class Recipient extends ApiResource implements MetadataStore<Recipient>, HasId
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.stripe.net.ApiResource
ApiResource.RequestMethod, ApiResource.RequestType
-
-
Field Summary
-
Fields inherited from class com.stripe.net.ApiResource
CHARSET, GSON
-
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
-
Constructor Summary
Constructors Constructor Description Recipient()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.Recipient
delete()
Delete a recipient.Recipient
delete(RequestOptions options)
Delete a recipient.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.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.-
Methods inherited from class com.stripe.net.ApiResource
classUrl, classUrl, instanceUrl, instanceUrl, multipartRequest, request, requestCollection, setExpandableFieldId, setStripeResponseGetter, singleClassUrl, singleClassUrl, subresourceUrl, urlEncode
-
Methods inherited from class com.stripe.model.StripeObject
equals, getLastResponse, setLastResponse, toJson, toString
-
-
-
-
Method Detail
-
getDefaultCard
public java.lang.String getDefaultCard()
-
setDefaultCard
public void setDefaultCard(java.lang.String defaultCardId)
-
getDefaultCardObject
public Card getDefaultCardObject()
-
setDefaultCardObject
public void setDefaultCardObject(Card c)
-
getMigratedTo
public java.lang.String getMigratedTo()
-
setMigratedTo
public void setMigratedTo(java.lang.String migratedToId)
-
getMigratedToObject
public Account getMigratedToObject()
-
setMigratedToObject
public void setMigratedToObject(Account c)
-
create
public static Recipient create(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
Create a recipient.- Throws:
StripeException
-
create
public static Recipient create(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
Create a recipient.- Throws:
StripeException
-
delete
public Recipient delete() throws StripeException
Delete a recipient.- Throws:
StripeException
-
delete
public Recipient delete(RequestOptions options) throws StripeException
Delete a recipient.- Throws:
StripeException
-
list
public static RecipientCollection list(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
List all recipients.- Throws:
StripeException
-
list
public static RecipientCollection list(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
List all recipients.- Throws:
StripeException
-
retrieve
public static Recipient retrieve(java.lang.String id) throws StripeException
Retrieve a recipient.- Throws:
StripeException
-
retrieve
public static Recipient retrieve(java.lang.String id, RequestOptions options) throws StripeException
Retrieve a recipient.- Throws:
StripeException
-
retrieve
public static Recipient retrieve(java.lang.String id, java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
Retrieve a recipient.- Throws:
StripeException
-
update
public Recipient update(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
Update a recipient.- Specified by:
update
in interfaceMetadataStore<Recipient>
- Throws:
StripeException
-
update
public Recipient update(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
Update a recipient.- Specified by:
update
in interfaceMetadataStore<Recipient>
- Throws:
StripeException
-
getObject
public java.lang.String getObject()
-
getActiveAccount
public BankAccount getActiveAccount()
-
getCards
public RecipientCardCollection getCards()
-
getCreated
public java.lang.Long getCreated()
-
getDeleted
public java.lang.Boolean getDeleted()
-
getDescription
public java.lang.String getDescription()
-
getEmail
public java.lang.String getEmail()
-
getLivemode
public java.lang.Boolean getLivemode()
-
getName
public java.lang.String getName()
-
getType
public java.lang.String getType()
-
getVerified
public java.lang.Boolean getVerified()
-
setId
public void setId(java.lang.String id)
-
setObject
public void setObject(java.lang.String object)
-
setActiveAccount
public void setActiveAccount(BankAccount activeAccount)
-
setCards
public void setCards(RecipientCardCollection cards)
-
setCreated
public void setCreated(java.lang.Long created)
-
setDeleted
public void setDeleted(java.lang.Boolean deleted)
-
setDescription
public void setDescription(java.lang.String description)
-
setEmail
public void setEmail(java.lang.String email)
-
setLivemode
public void setLivemode(java.lang.Boolean livemode)
-
setMetadata
public void setMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)
-
setName
public void setName(java.lang.String name)
-
setType
public void setType(java.lang.String type)
-
setVerified
public void setVerified(java.lang.Boolean verified)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
getMetadata
public java.util.Map<java.lang.String,java.lang.String> getMetadata()
- Specified by:
getMetadata
in interfaceMetadataStore<Recipient>
-
-