public class Account extends ApiResource implements HasId, MetadataStore<Account>
Modifier and Type | Class and Description |
---|---|
static class |
Account.BusinessProfile |
static class |
Account.Capabilities |
static class |
Account.Company |
static class |
Account.DeclineChargeOn |
static class |
Account.Keys
Deprecated.
|
static class |
Account.PayoutSchedule |
static class |
Account.Requirements |
static class |
Account.Settings |
static class |
Account.SettingsBranding |
static class |
Account.SettingsCardPayments |
static class |
Account.SettingsDashboard |
static class |
Account.SettingsPayments |
static class |
Account.SettingsPayouts |
static class |
Account.TosAcceptance |
static class |
Account.TransferSchedule
Deprecated.
|
static class |
Account.Verification
Deprecated.
|
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()
Deprecated.
|
java.lang.String |
getBusinessLogoLarge()
Deprecated.
|
java.lang.String |
getBusinessName()
Deprecated.
|
java.lang.String |
getBusinessPrimaryColor()
Deprecated.
|
Account.BusinessProfile |
getBusinessProfile() |
java.lang.String |
getBusinessType() |
java.lang.String |
getBusinessUrl()
Deprecated.
|
Account.Capabilities |
getCapabilities() |
java.lang.Boolean |
getChargesEnabled() |
Account.Company |
getCompany() |
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()
Deprecated.
|
Account.DeclineChargeOn |
getDeclineChargeOn()
Deprecated.
|
java.lang.String |
getDefaultCurrency() |
java.lang.Boolean |
getDeleted() |
java.lang.Boolean |
getDetailsSubmitted() |
java.lang.String |
getEmail() |
ExternalAccountCollection |
getExternalAccounts() |
java.lang.String |
getId() |
Person |
getIndividual() |
Account.Keys |
getKeys()
Deprecated.
|
LegalEntity |
getLegalEntity()
Deprecated.
|
LoginLinkCollection |
getLoginLinks() |
java.lang.Boolean |
getManaged()
Deprecated.
Prefer using the
type attribute instead. |
java.lang.String |
getMcc()
Deprecated.
|
java.util.Map<java.lang.String,java.lang.String> |
getMetadata() |
java.lang.String |
getObject() |
Account.PayoutSchedule |
getPayoutSchedule()
Deprecated.
|
java.lang.Boolean |
getPayoutsEnabled() |
java.lang.String |
getPayoutStatementDescriptor()
Deprecated.
|
java.lang.String |
getProductDescription()
Deprecated.
|
Account.Requirements |
getRequirements() |
Account.Settings |
getSettings() |
java.lang.String |
getStatementDescriptor()
Deprecated.
|
Address |
getSupportAddress()
Deprecated.
|
java.lang.String |
getSupportEmail()
Deprecated.
|
java.lang.String |
getSupportPhone()
Deprecated.
|
java.lang.String |
getSupportUrl()
Deprecated.
|
Account.TosAcceptance |
getTosAcceptance() |
Account.TransferSchedule |
getTransferSchedule()
Deprecated.
Prefer using the
payoutSchedule attribute instead. |
java.lang.Boolean |
getTransfersEnabled()
Deprecated.
Prefer using the
payoutsEnabled attribute instead. |
java.lang.String |
getType() |
Account.Verification |
getVerification()
Deprecated.
|
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)
Deprecated.
|
void |
setBusinessLogoLarge(java.lang.String businessLogoLarge)
Deprecated.
|
void |
setBusinessName(java.lang.String businessName)
Deprecated.
|
void |
setBusinessPrimaryColor(java.lang.String businessPrimaryColor)
Deprecated.
|
void |
setBusinessProfile(Account.BusinessProfile businessProfile) |
void |
setBusinessType(java.lang.String businessType) |
void |
setBusinessUrl(java.lang.String businessUrl)
Deprecated.
|
void |
setCapabilities(Account.Capabilities capabilities) |
void |
setChargesEnabled(java.lang.Boolean chargesEnabled) |
void |
setCompany(Account.Company company) |
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)
Deprecated.
|
void |
setDeclineChargeOn(Account.DeclineChargeOn declineChargeOn)
Deprecated.
|
void |
setDefaultCurrency(java.lang.String defaultCurrency) |
void |
setDeleted(java.lang.Boolean deleted) |
void |
setDetailsSubmitted(java.lang.Boolean detailsSubmitted) |
void |
setEmail(java.lang.String email) |
void |
setExternalAccounts(ExternalAccountCollection externalAccounts) |
void |
setId(java.lang.String id) |
void |
setIndividual(Person individual) |
void |
setKeys(Account.Keys keys)
Deprecated.
|
void |
setLegalEntity(LegalEntity legalEntity)
Deprecated.
|
void |
setLoginLinks(LoginLinkCollection loginLinks) |
void |
setManaged(java.lang.Boolean managed)
Deprecated.
Prefer using the
type attribute instead. |
void |
setMcc(java.lang.String mcc)
Deprecated.
|
void |
setMetadata(java.util.Map<java.lang.String,java.lang.String> metadata) |
void |
setObject(java.lang.String object) |
void |
setPayoutSchedule(Account.PayoutSchedule payoutSchedule)
Deprecated.
|
void |
setPayoutsEnabled(java.lang.Boolean payoutsEnabled) |
void |
setPayoutStatementDescriptor(java.lang.String payoutStatementDescriptor)
Deprecated.
|
void |
setProductDescription(java.lang.String productDescription)
Deprecated.
|
void |
setRequirements(Account.Requirements requirements) |
void |
setSettings(Account.Settings settings) |
void |
setStatementDescriptor(java.lang.String statementDescriptor)
Deprecated.
|
void |
setSupportAddress(Address supportAddress)
Deprecated.
|
void |
setSupportEmail(java.lang.String supportEmail)
Deprecated.
|
void |
setSupportPhone(java.lang.String supportPhone)
Deprecated.
|
void |
setSupportUrl(java.lang.String supportUrl)
Deprecated.
|
void |
setTosAcceptance(Account.TosAcceptance tosAcceptance) |
void |
setTransferSchedule(Account.TransferSchedule transferSchedule)
Deprecated.
Prefer using the
payoutSchedule attribute instead. |
void |
setTransfersEnabled(java.lang.Boolean transfersEnabled)
Deprecated.
Prefer using the
payoutsEnabled attribute instead. |
void |
setType(java.lang.String type) |
void |
setVerification(Account.Verification verification)
Deprecated.
|
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 Account.BusinessProfile getBusinessProfile()
public java.lang.String getBusinessType()
public Account.Capabilities getCapabilities()
public java.lang.Boolean getChargesEnabled()
public Account.Company getCompany()
public java.lang.String getCountry()
public java.lang.Long getCreated()
public java.lang.String getDefaultCurrency()
public java.lang.Boolean getDeleted()
public java.lang.Boolean getDetailsSubmitted()
public java.lang.String getEmail()
public ExternalAccountCollection getExternalAccounts()
public Person getIndividual()
public LoginLinkCollection getLoginLinks()
public java.util.Map<java.lang.String,java.lang.String> getMetadata()
getMetadata
in interface MetadataStore<Account>
public java.lang.Boolean getPayoutsEnabled()
public Account.Requirements getRequirements()
public Account.Settings getSettings()
public Account.TosAcceptance getTosAcceptance()
public java.lang.String getType()
@Deprecated public java.lang.String getBusinessLogoLarge()
business_logo_large
attribute.@Deprecated public java.lang.String getBusinessLogo()
business_logo
attribute.@Deprecated public java.lang.String getBusinessName()
business_name
attribute.@Deprecated public java.lang.String getBusinessPrimaryColor()
business_primary_color
attribute.@Deprecated public java.lang.String getBusinessUrl()
business_url
attribute.@Deprecated public java.util.List<java.lang.String> getCurrenciesSupported()
CountrySpec.getSupportedPaymentCurrencies()
method
instead.currencies_supported
attribute.@Deprecated public Account.DeclineChargeOn getDeclineChargeOn()
decline_charge_on
attribute.@Deprecated public java.lang.Boolean getDebitNegativeBalances()
debit_negative_balances
attribute.@Deprecated public Account.Keys getKeys()
keys
attribute.@Deprecated public LegalEntity getLegalEntity()
legal_entity
attribute.@Deprecated public java.lang.Boolean getManaged()
type
attribute instead.managed
attribute.@Deprecated public java.lang.String getMcc()
mcc
attribute.@Deprecated public Account.PayoutSchedule getPayoutSchedule()
payout_schedule
attribute.@Deprecated public java.lang.String getPayoutStatementDescriptor()
payout_statement_descriptor
attribute.@Deprecated public java.lang.String getProductDescription()
product_description
attribute.@Deprecated public java.lang.String getStatementDescriptor()
statement_descriptor
attribute.@Deprecated public Address getSupportAddress()
support_address
attribute.@Deprecated public java.lang.String getSupportEmail()
support_email
attribute.@Deprecated public java.lang.String getSupportPhone()
support_phone
attribute.@Deprecated public java.lang.String getSupportUrl()
support_url
attribute.@Deprecated public java.lang.Boolean getTransfersEnabled()
payoutsEnabled
attribute instead.transfers_enabled
attribute.@Deprecated public Account.TransferSchedule getTransferSchedule()
payoutSchedule
attribute instead.transfer_schedule
attribute.@Deprecated public Account.Verification getVerification()
verification
attribute.public void setId(java.lang.String id)
public void setObject(java.lang.String object)
public void setBusinessProfile(Account.BusinessProfile businessProfile)
public void setBusinessType(java.lang.String businessType)
public void setCapabilities(Account.Capabilities capabilities)
public void setChargesEnabled(java.lang.Boolean chargesEnabled)
public void setCompany(Account.Company company)
public void setCountry(java.lang.String country)
public void setCreated(java.lang.Long created)
public void setDefaultCurrency(java.lang.String defaultCurrency)
public void setDeleted(java.lang.Boolean deleted)
public void setDetailsSubmitted(java.lang.Boolean detailsSubmitted)
public void setEmail(java.lang.String email)
public void setExternalAccounts(ExternalAccountCollection externalAccounts)
public void setIndividual(Person individual)
public void setLoginLinks(LoginLinkCollection loginLinks)
public void setMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)
public void setPayoutsEnabled(java.lang.Boolean payoutsEnabled)
public void setRequirements(Account.Requirements requirements)
public void setSettings(Account.Settings settings)
public void setTosAcceptance(Account.TosAcceptance tosAcceptance)
public void setType(java.lang.String type)
@Deprecated public void setBusinessLogoLarge(java.lang.String businessLogoLarge)
business_logo_large
attribute.@Deprecated public void setBusinessLogo(java.lang.String businessLogo)
business_logo
attribute.@Deprecated public void setBusinessName(java.lang.String businessName)
business_name
attribute.@Deprecated public void setBusinessPrimaryColor(java.lang.String businessPrimaryColor)
business_primary_color
attribute.@Deprecated public void setBusinessUrl(java.lang.String businessUrl)
business_url
attribute.@Deprecated public void setCurrenciesSupported(java.util.List<java.lang.String> currenciesSupported)
CountrySpec.getSupportedPaymentCurrencies()
method
instead.currencies_supported
attribute.@Deprecated public void setDeclineChargeOn(Account.DeclineChargeOn declineChargeOn)
decline_charge_on
attribute.@Deprecated public void setDebitNegativeBalances(java.lang.Boolean debitNegativeBalances)
debit_negative_balances
attribute.@Deprecated public void setKeys(Account.Keys keys)
keys
attribute.@Deprecated public void setLegalEntity(LegalEntity legalEntity)
legal_entity
attribute.@Deprecated public void setManaged(java.lang.Boolean managed)
type
attribute instead.managed
attribute.@Deprecated public void setMcc(java.lang.String mcc)
mcc
attribute.@Deprecated public void setPayoutSchedule(Account.PayoutSchedule payoutSchedule)
payout_schedule
attribute.@Deprecated public void setPayoutStatementDescriptor(java.lang.String payoutStatementDescriptor)
payout_statement_descriptor
attribute.@Deprecated public void setProductDescription(java.lang.String productDescription)
product_description
attribute.@Deprecated public void setStatementDescriptor(java.lang.String statementDescriptor)
statement_descriptor
attribute.@Deprecated public void setSupportAddress(Address supportAddress)
support_address
attribute.@Deprecated public void setSupportEmail(java.lang.String supportEmail)
support_email
attribute.@Deprecated public void setSupportPhone(java.lang.String supportPhone)
support_phone
attribute.@Deprecated public void setSupportUrl(java.lang.String supportUrl)
support_url
attribute.@Deprecated public void setTransfersEnabled(java.lang.Boolean transfersEnabled)
payoutsEnabled
attribute instead.transfers_enabled
attribute.@Deprecated public void setTransferSchedule(Account.TransferSchedule transferSchedule)
payoutSchedule
attribute instead.transfer_schedule
attribute.@Deprecated public void setVerification(Account.Verification verification)
verification
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