public class Account extends APIResource implements HasId, MetadataStore<Account>
| Modifier and Type | Class and Description |
|---|---|
static class |
Account.Keys |
static class |
Account.Verification |
APIResource.RequestMethod, APIResource.RequestTypeCHARSET, GSONPRETTY_PRINT_GSON| Constructor and Description |
|---|
Account() |
| Modifier and Type | Method and Description |
|---|---|
static AccountCollection |
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 AccountCollection |
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. |
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.
|
DeletedAccount |
delete()
Delete an account.
|
DeletedAccount |
delete(java.util.Map<java.lang.String,java.lang.Object> params)
Delete an account.
|
DeletedAccount |
delete(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Delete an account.
|
DeletedAccount |
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.util.List<java.lang.String> |
getCurrenciesSupported()
Deprecated.
Prefer using the
CountrySpec.getSupportedPaymentCurrencies() method
instead. |
java.lang.Boolean |
getDebitNegativeBalances() |
AccountDeclineChargeOn |
getDeclineChargeOn() |
java.lang.String |
getDefaultCurrency() |
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() |
AccountPayoutSchedule |
getPayoutSchedule() |
java.lang.Boolean |
getPayoutsEnabled() |
java.lang.String |
getProductDescription() |
java.lang.String |
getStatementDescriptor() |
java.lang.String |
getSupportEmail() |
java.lang.String |
getSupportPhone() |
java.lang.String |
getSupportURL() |
java.lang.String |
getTimezone() |
AccountTosAcceptance |
getTosAcceptance() |
AccountTransferSchedule |
getTransferSchedule() |
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.
|
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 |
setCurrenciesSupported(java.util.List<java.lang.String> currenciesSupported)
Deprecated.
Prefer using the
CountrySpec.getSupportedPaymentCurrencies() method
instead. |
void |
setDebitNegativeBalances(java.lang.Boolean debitNegativeBalances) |
void |
setDeclineChargeOn(AccountDeclineChargeOn declineChargeOn) |
void |
setDefaultCurrency(java.lang.String defaultCurrency) |
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(AccountPayoutSchedule payoutSchedule) |
void |
setPayoutsEnabled(java.lang.Boolean payoutsEnabled) |
void |
setProductDescription(java.lang.String productDescription) |
void |
setStatementDescriptor(java.lang.String statementDescriptor) |
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(AccountTosAcceptance tosAcceptance) |
void |
setTransferSchedule(AccountTransferSchedule transferSchedule) |
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, urlEncodeequals, getLastResponse, setLastResponse, toJson, toString@Deprecated public static AccountCollection 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 AccountCollection 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.public static Account create(java.util.Map<java.lang.String,java.lang.Object> params) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public static Account create(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public DeletedAccount delete() throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public DeletedAccount delete(RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public DeletedAccount delete(java.util.Map<java.lang.String,java.lang.Object> params) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public DeletedAccount delete(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public static AccountCollection list(java.util.Map<java.lang.String,java.lang.Object> params) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public static AccountCollection list(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public Account reject(java.util.Map<java.lang.String,java.lang.Object> params) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public Account reject(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public static Account retrieve() throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public static Account retrieve(RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
@Deprecated public static Account retrieve(java.lang.String apiKeyOrAccountId) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
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.AuthenticationExceptionInvalidRequestExceptionAPIConnectionExceptionCardExceptionAPIExceptionpublic static Account retrieve(java.lang.String id, RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public static Account retrieve(java.lang.String id, java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public Account update(java.util.Map<java.lang.String,java.lang.Object> params) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
update in interface MetadataStore<Account>AuthenticationExceptionInvalidRequestExceptionAPIConnectionExceptionCardExceptionAPIExceptionpublic Account update(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
update in interface MetadataStore<Account>AuthenticationExceptionInvalidRequestExceptionAPIConnectionExceptionCardExceptionAPIExceptionpublic 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.Boolean getDebitNegativeBalances()
public AccountDeclineChargeOn getDeclineChargeOn()
public java.lang.String getDefaultCurrency()
public java.lang.Boolean getDetailsSubmitted()
public java.lang.String getDisplayName()
public LoginLinkCollection getLoginLinks()
public java.lang.String getEmail()
public ExternalAccountCollection getExternalAccounts()
public Account.Keys getKeys()
public LegalEntity getLegalEntity()
public java.lang.Boolean getPayoutsEnabled()
public AccountPayoutSchedule getPayoutSchedule()
public java.lang.String getProductDescription()
public java.lang.String getStatementDescriptor()
public java.lang.String getSupportEmail()
public java.lang.String getSupportPhone()
public java.lang.String getSupportURL()
public java.lang.String getTimezone()
public AccountTosAcceptance getTosAcceptance()
public AccountTransferSchedule getTransferSchedule()
public java.lang.Boolean getTransfersEnabled()
public java.lang.String getType()
public Account.Verification getVerification()
@Deprecated public java.lang.Boolean getManaged()
type attribute instead.managed attribute.@Deprecated public java.util.List<java.lang.String> getCurrenciesSupported()
CountrySpec.getSupportedPaymentCurrencies() method
instead.currencies_supported 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 setDebitNegativeBalances(java.lang.Boolean debitNegativeBalances)
public void setDeclineChargeOn(AccountDeclineChargeOn declineChargeOn)
public void setDefaultCurrency(java.lang.String defaultCurrency)
public void setDetailsSubmitted(java.lang.Boolean detailsSubmitted)
public void setDisplayName(java.lang.String displayName)
public void setLoginLinks(LoginLinkCollection loginLinks)
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 setMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)
public void setPayoutsEnabled(java.lang.Boolean payoutsEnabled)
public void setPayoutSchedule(AccountPayoutSchedule payoutSchedule)
public void setProductDescription(java.lang.String productDescription)
public void setStatementDescriptor(java.lang.String statementDescriptor)
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(AccountTosAcceptance tosAcceptance)
public void setTransferSchedule(AccountTransferSchedule transferSchedule)
public void setTransfersEnabled(java.lang.Boolean transfersEnabled)
public void setType(java.lang.String type)
public void setVerification(Account.Verification verification)
@Deprecated public void setManaged(java.lang.Boolean managed)
type attribute instead.managed attribute.@Deprecated public void setCurrenciesSupported(java.util.List<java.lang.String> currenciesSupported)
CountrySpec.getSupportedPaymentCurrencies() method
instead.currencies_supported attribute.public boolean equals(java.lang.Object o)
equals in class java.lang.Objectprotected boolean canEqual(java.lang.Object other)
public int hashCode()
hashCode in class java.lang.Objectpublic java.util.Map<java.lang.String,java.lang.String> getMetadata()
getMetadata in interface MetadataStore<Account>