public class Account extends ApiResource implements HasId, MetadataStore<Account>
Modifier and Type | Class and Description |
---|---|
static class |
Account.DeclineChargeOn |
static class |
Account.Keys |
static class |
Account.PayoutSchedule |
static class |
Account.TosAcceptance |
static class |
Account.TransferSchedule |
static class |
Account.Verification |
ApiResource.RequestMethod, ApiResource.RequestType
CHARSET, GSON
PRETTY_PRINT_GSON
Constructor and Description |
---|
Account() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(java.lang.Object other) |
static Account |
create(java.util.Map<java.lang.String,java.lang.Object> params)
Create an account.
|
static Account |
create(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Create an account.
|
Account |
delete()
Delete an account.
|
Account |
delete(java.util.Map<java.lang.String,java.lang.Object> params)
Delete an account.
|
Account |
delete(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Delete an account.
|
Account |
delete(RequestOptions options)
Delete an account.
|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getBusinessLogo() |
java.lang.String |
getBusinessName() |
java.lang.String |
getBusinessPrimaryColor() |
java.lang.String |
getBusinessUrl() |
java.lang.Boolean |
getChargesEnabled() |
java.lang.String |
getCountry() |
java.lang.Long |
getCreated() |
java.util.List<java.lang.String> |
getCurrenciesSupported()
Deprecated.
Prefer using the
CountrySpec.getSupportedPaymentCurrencies() method
instead. |
java.lang.Boolean |
getDebitNegativeBalances() |
Account.DeclineChargeOn |
getDeclineChargeOn() |
java.lang.String |
getDefaultCurrency() |
java.lang.Boolean |
getDeleted() |
java.lang.Boolean |
getDetailsSubmitted() |
java.lang.String |
getDisplayName() |
java.lang.String |
getEmail() |
ExternalAccountCollection |
getExternalAccounts() |
java.lang.String |
getId() |
Account.Keys |
getKeys() |
LegalEntity |
getLegalEntity() |
LoginLinkCollection |
getLoginLinks() |
java.lang.Boolean |
getManaged()
Deprecated.
Prefer using the
type attribute instead. |
java.util.Map<java.lang.String,java.lang.String> |
getMetadata() |
java.lang.String |
getObject() |
Account.PayoutSchedule |
getPayoutSchedule() |
java.lang.Boolean |
getPayoutsEnabled() |
java.lang.String |
getPayoutStatementDescriptor() |
java.lang.String |
getProductDescription() |
java.lang.String |
getStatementDescriptor() |
Address |
getSupportAddress() |
java.lang.String |
getSupportEmail() |
java.lang.String |
getSupportPhone() |
java.lang.String |
getSupportUrl() |
java.lang.String |
getTimezone() |
Account.TosAcceptance |
getTosAcceptance() |
Account.TransferSchedule |
getTransferSchedule()
Deprecated.
Prefer using the
payoutSchedule attribute instead. |
java.lang.Boolean |
getTransfersEnabled() |
java.lang.String |
getType() |
Account.Verification |
getVerification() |
int |
hashCode() |
static AccountCollection |
list(java.util.Map<java.lang.String,java.lang.Object> params)
List all connected accounts.
|
static AccountCollection |
list(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
List all connected accounts.
|
PersonCollection |
persons()
List an account's persons.
|
PersonCollection |
persons(java.util.Map<java.lang.String,java.lang.Object> params)
List an account's persons.
|
PersonCollection |
persons(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
List an account's persons.
|
Account |
reject(java.util.Map<java.lang.String,java.lang.Object> params)
Reject an account.
|
Account |
reject(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Reject an account.
|
static Account |
retrieve()
Retrieve account details.
|
static Account |
retrieve(RequestOptions options)
Retrieve account details.
|
static Account |
retrieve(java.lang.String apiKeyOrAccountId)
Deprecated.
This method will only accept account IDs in the next major version. If you call
this method with API keys, use the
retrieve(RequestOptions) method instead. |
static Account |
retrieve(java.lang.String id,
java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Retrieve account details.
|
static Account |
retrieve(java.lang.String id,
RequestOptions options)
Retrieve account details.
|
void |
setBusinessLogo(java.lang.String businessLogo) |
void |
setBusinessName(java.lang.String businessName) |
void |
setBusinessPrimaryColor(java.lang.String businessPrimaryColor) |
void |
setBusinessUrl(java.lang.String businessUrl) |
void |
setChargesEnabled(java.lang.Boolean chargesEnabled) |
void |
setCountry(java.lang.String country) |
void |
setCreated(java.lang.Long created) |
void |
setCurrenciesSupported(java.util.List<java.lang.String> currenciesSupported)
Deprecated.
Prefer using the
CountrySpec.getSupportedPaymentCurrencies() method
instead. |
void |
setDebitNegativeBalances(java.lang.Boolean debitNegativeBalances) |
void |
setDeclineChargeOn(Account.DeclineChargeOn declineChargeOn) |
void |
setDefaultCurrency(java.lang.String defaultCurrency) |
void |
setDeleted(java.lang.Boolean deleted) |
void |
setDetailsSubmitted(java.lang.Boolean detailsSubmitted) |
void |
setDisplayName(java.lang.String displayName) |
void |
setEmail(java.lang.String email) |
void |
setExternalAccounts(ExternalAccountCollection externalAccounts) |
void |
setId(java.lang.String id) |
void |
setKeys(Account.Keys keys) |
void |
setLegalEntity(LegalEntity legalEntity) |
void |
setLoginLinks(LoginLinkCollection loginLinks) |
void |
setManaged(java.lang.Boolean managed)
Deprecated.
Prefer using the
type attribute instead. |
void |
setMetadata(java.util.Map<java.lang.String,java.lang.String> metadata) |
void |
setObject(java.lang.String object) |
void |
setPayoutSchedule(Account.PayoutSchedule payoutSchedule) |
void |
setPayoutsEnabled(java.lang.Boolean payoutsEnabled) |
void |
setPayoutStatementDescriptor(java.lang.String payoutStatementDescriptor) |
void |
setProductDescription(java.lang.String productDescription) |
void |
setStatementDescriptor(java.lang.String statementDescriptor) |
void |
setSupportAddress(Address supportAddress) |
void |
setSupportEmail(java.lang.String supportEmail) |
void |
setSupportPhone(java.lang.String supportPhone) |
void |
setSupportUrl(java.lang.String supportUrl) |
void |
setTimezone(java.lang.String timezone) |
void |
setTosAcceptance(Account.TosAcceptance tosAcceptance) |
void |
setTransferSchedule(Account.TransferSchedule transferSchedule)
Deprecated.
Prefer using the
payoutSchedule attribute instead. |
void |
setTransfersEnabled(java.lang.Boolean transfersEnabled) |
void |
setType(java.lang.String type) |
void |
setVerification(Account.Verification verification) |
Account |
update(java.util.Map<java.lang.String,java.lang.Object> params)
Update an account.
|
Account |
update(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Update an account.
|
classUrl, classUrl, instanceUrl, instanceUrl, multipartRequest, request, requestCollection, setExpandableFieldId, setStripeResponseGetter, singleClassUrl, singleClassUrl, subresourceUrl, urlEncode
equals, getLastResponse, setLastResponse, toJson, toString
public static Account create(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
StripeException
public static Account create(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
StripeException
public Account delete() throws StripeException
StripeException
public Account delete(RequestOptions options) throws StripeException
StripeException
public Account delete(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
StripeException
public Account delete(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
StripeException
public static AccountCollection list(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
StripeException
public static AccountCollection list(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
StripeException
public PersonCollection persons() throws StripeException
StripeException
public PersonCollection persons(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
StripeException
public PersonCollection persons(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
StripeException
public Account reject(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
StripeException
public Account reject(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
StripeException
public static Account retrieve() throws StripeException
StripeException
public static Account retrieve(RequestOptions options) throws StripeException
StripeException
@Deprecated public static Account retrieve(java.lang.String apiKeyOrAccountId) throws StripeException
retrieve(RequestOptions)
method instead.apiKeyOrAccountId
- If the parameter looks like an API key (starts with "sk_"), retrieve
the account resource with no ID parameter set. Otherwise, use the String parameter as the
account ID.StripeException
public static Account retrieve(java.lang.String id, RequestOptions options) throws StripeException
StripeException
public static Account retrieve(java.lang.String id, java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
StripeException
public Account update(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
update
in interface MetadataStore<Account>
StripeException
public Account update(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
update
in interface MetadataStore<Account>
StripeException
public java.lang.String getObject()
public java.lang.String getBusinessLogo()
public java.lang.String getBusinessName()
public java.lang.String getBusinessPrimaryColor()
public java.lang.String getBusinessUrl()
public java.lang.Boolean getChargesEnabled()
public java.lang.String getCountry()
public java.lang.Long getCreated()
public java.lang.Boolean getDebitNegativeBalances()
public Account.DeclineChargeOn getDeclineChargeOn()
public java.lang.String getDefaultCurrency()
public java.lang.Boolean getDeleted()
public java.lang.Boolean getDetailsSubmitted()
public java.lang.String getDisplayName()
public java.lang.String getEmail()
public ExternalAccountCollection getExternalAccounts()
public Account.Keys getKeys()
public LegalEntity getLegalEntity()
public LoginLinkCollection getLoginLinks()
public Account.PayoutSchedule getPayoutSchedule()
public java.lang.String getPayoutStatementDescriptor()
public java.lang.Boolean getPayoutsEnabled()
public java.lang.String getProductDescription()
public java.lang.String getStatementDescriptor()
public Address getSupportAddress()
public java.lang.String getSupportEmail()
public java.lang.String getSupportPhone()
public java.lang.String getSupportUrl()
public java.lang.String getTimezone()
public Account.TosAcceptance getTosAcceptance()
public java.lang.Boolean getTransfersEnabled()
public java.lang.String getType()
public Account.Verification getVerification()
@Deprecated public java.util.List<java.lang.String> getCurrenciesSupported()
CountrySpec.getSupportedPaymentCurrencies()
method
instead.currencies_supported
attribute.@Deprecated public java.lang.Boolean getManaged()
type
attribute instead.managed
attribute.@Deprecated public Account.TransferSchedule getTransferSchedule()
payoutSchedule
attribute instead.transfer_schedule
attribute.public void setId(java.lang.String id)
public void setObject(java.lang.String object)
public void setBusinessLogo(java.lang.String businessLogo)
public void setBusinessName(java.lang.String businessName)
public void setBusinessPrimaryColor(java.lang.String businessPrimaryColor)
public void setBusinessUrl(java.lang.String businessUrl)
public void setChargesEnabled(java.lang.Boolean chargesEnabled)
public void setCountry(java.lang.String country)
public void setCreated(java.lang.Long created)
public void setDebitNegativeBalances(java.lang.Boolean debitNegativeBalances)
public void setDeclineChargeOn(Account.DeclineChargeOn declineChargeOn)
public void setDefaultCurrency(java.lang.String defaultCurrency)
public void setDeleted(java.lang.Boolean deleted)
public void setDetailsSubmitted(java.lang.Boolean detailsSubmitted)
public void setDisplayName(java.lang.String displayName)
public void setEmail(java.lang.String email)
public void setExternalAccounts(ExternalAccountCollection externalAccounts)
public void setKeys(Account.Keys keys)
public void setLegalEntity(LegalEntity legalEntity)
public void setLoginLinks(LoginLinkCollection loginLinks)
public void setMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)
public void setPayoutSchedule(Account.PayoutSchedule payoutSchedule)
public void setPayoutStatementDescriptor(java.lang.String payoutStatementDescriptor)
public void setPayoutsEnabled(java.lang.Boolean payoutsEnabled)
public void setProductDescription(java.lang.String productDescription)
public void setStatementDescriptor(java.lang.String statementDescriptor)
public void setSupportAddress(Address supportAddress)
public void setSupportEmail(java.lang.String supportEmail)
public void setSupportPhone(java.lang.String supportPhone)
public void setSupportUrl(java.lang.String supportUrl)
public void setTimezone(java.lang.String timezone)
public void setTosAcceptance(Account.TosAcceptance tosAcceptance)
public void setTransfersEnabled(java.lang.Boolean transfersEnabled)
public void setType(java.lang.String type)
public void setVerification(Account.Verification verification)
@Deprecated public void setCurrenciesSupported(java.util.List<java.lang.String> currenciesSupported)
CountrySpec.getSupportedPaymentCurrencies()
method
instead.currencies_supported
attribute.@Deprecated public void setManaged(java.lang.Boolean managed)
type
attribute instead.managed
attribute.@Deprecated public void setTransferSchedule(Account.TransferSchedule transferSchedule)
payoutSchedule
attribute instead.transfer_schedule
attribute.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<Account>