Class Account
- All Implemented Interfaces:
HasId
,MetadataStore<Account>
,PaymentSource
,StripeObjectInterface
Some properties, marked below, are available only to platforms that want to create and manage Express or Custom accounts.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
static class
static class
Get expandedfront
.static class
static class
The specific user onboarding requirement field (in the requirements hash) that needs to be resolved.static class
The specific user onboarding requirement field (in the requirements hash) that needs to be resolved.static class
The user agent of the browser from which the account representative accepted the service agreement.Nested classes/interfaces inherited from class com.stripe.net.ApiResource
ApiResource.RequestMethod
-
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 -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
Returns a list of capabilities associated with the account.Returns a list of capabilities associated with the account.capabilities
(AccountCapabilitiesParams params, RequestOptions options) Returns a list of capabilities associated with the account.capabilities
(Map<String, Object> params) Returns a list of capabilities associated with the account.capabilities
(Map<String, Object> params, RequestOptions options) Returns a list of capabilities associated with the account.static Account
create
(AccountCreateParams params) With Connect, you can create Stripe accounts for your users.static Account
create
(AccountCreateParams params, RequestOptions options) With Connect, you can create Stripe accounts for your users.static Account
With Connect, you can create Stripe accounts for your users.static Account
create
(Map<String, Object> params, RequestOptions options) With Connect, you can create Stripe accounts for your users.delete()
With Connect, you can delete accounts you manage.delete
(RequestOptions options) With Connect, you can delete accounts you manage.With Connect, you can delete accounts you manage.delete
(Map<String, Object> params, RequestOptions options) With Connect, you can delete accounts you manage.boolean
Business information about the account.The business type.Whether the account can create live charges.The account's country.Time at which the account was connected.Three-letter ISO currency code representing the default currency for the account.Always true for a deleted object.Whether account details have been submitted.getEmail()
An email address associated with the account.External accounts (bank accounts and debit cards) currently attached to this account.getId()
Unique identifier for the object.This is an object representing a person associated with a Stripe account.Set of key-value pairs that you can attach to an object.String representing the object's type.Whether Stripe can send payouts to this account.Options for customizing how the account functions within Stripe.getType()
The Stripe account type.int
hashCode()
static AccountCollection
list
(AccountListParams params) Returns a list of accounts connected to your platform via Connect.static AccountCollection
list
(AccountListParams params, RequestOptions options) Returns a list of accounts connected to your platform via Connect.static AccountCollection
Returns a list of accounts connected to your platform via Connect.static AccountCollection
list
(Map<String, Object> params, RequestOptions options) Returns a list of accounts connected to your platform via Connect.persons()
Returns a list of people associated with the account’s legal entity.persons
(AccountPersonsParams params) Returns a list of people associated with the account’s legal entity.persons
(AccountPersonsParams params, RequestOptions options) Returns a list of people associated with the account’s legal entity.Returns a list of people associated with the account’s legal entity.persons
(Map<String, Object> params, RequestOptions options) Returns a list of people associated with the account’s legal entity.reject
(AccountRejectParams params) With Connect, you may flag accounts as suspicious.reject
(AccountRejectParams params, RequestOptions options) With Connect, you may flag accounts as suspicious.With Connect, you may flag accounts as suspicious.reject
(Map<String, Object> params, RequestOptions options) With Connect, you may flag accounts as suspicious.static Account
retrieve()
Retrieves the details of an account.static Account
retrieve
(RequestOptions options) Retrieves the details of an account.static Account
retrieve
(AccountRetrieveParams params, RequestOptions options) Retrieves the details of an account.static Account
Retrieves the details of an account.static Account
retrieve
(String account, RequestOptions options) Retrieves the details of an account.static Account
retrieve
(String account, AccountRetrieveParams params, RequestOptions options) Retrieves the details of an account.static Account
Retrieves the details of an account.static Account
retrieve
(Map<String, Object> params, RequestOptions options) Retrieves the details of an account.void
setBusinessProfile
(Account.BusinessProfile businessProfile) Business information about the account.void
setBusinessType
(String businessType) The business type.void
setCapabilities
(Account.Capabilities capabilities) void
setChargesEnabled
(Boolean chargesEnabled) Whether the account can create live charges.void
setCompany
(Account.Company company) void
setController
(Account.Controller controller) void
setCountry
(String country) The account's country.void
setCreated
(Long created) Time at which the account was connected.void
setDefaultCurrency
(String defaultCurrency) Three-letter ISO currency code representing the default currency for the account.void
setDeleted
(Boolean deleted) Always true for a deleted object.void
setDetailsSubmitted
(Boolean detailsSubmitted) Whether account details have been submitted.void
An email address associated with the account.void
setExternalAccounts
(ExternalAccountCollection externalAccounts) External accounts (bank accounts and debit cards) currently attached to this account.void
setFutureRequirements
(Account.FutureRequirements futureRequirements) void
Unique identifier for the object.void
setIndividual
(Person individual) This is an object representing a person associated with a Stripe account.void
setMetadata
(Map<String, String> metadata) Set of key-value pairs that you can attach to an object.void
String representing the object's type.void
setPayoutsEnabled
(Boolean payoutsEnabled) Whether Stripe can send payouts to this account.void
setRequirements
(Account.Requirements requirements) void
setSettings
(Account.Settings settings) Options for customizing how the account functions within Stripe.void
setTosAcceptance
(Account.TosAcceptance tosAcceptance) void
The Stripe account type.update
(AccountUpdateParams params) Updates a connected account by setting the values of the parameters passed.update
(AccountUpdateParams params, RequestOptions options) Updates a connected account by setting the values of the parameters passed.Updates a connected account by setting the values of the parameters passed.update
(Map<String, Object> params, RequestOptions options) Updates a connected account by setting the values of the parameters passed.Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, classUrl, classUrl, instanceUrl, instanceUrl, request, request, requestCollection, requestCollection, requestSearchResult, requestSearchResult, requestStream, requestStream, setExpandableFieldId, setStripeResponseGetter, singleClassUrl, singleClassUrl, subresourceUrl, urlEncode, urlEncodeId
Methods inherited from class com.stripe.model.StripeObject
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.stripe.model.StripeObjectInterface
getLastResponse, setLastResponse
-
Constructor Details
-
Account
public Account()
-
-
Method Details
-
capabilities
Returns a list of capabilities associated with the account. The capabilities are returned sorted by creation date, with the most recent capability appearing first.- Throws:
StripeException
-
capabilities
Returns a list of capabilities associated with the account. The capabilities are returned sorted by creation date, with the most recent capability appearing first.- Throws:
StripeException
-
capabilities
public CapabilityCollection capabilities(Map<String, Object> params, RequestOptions options) throws StripeExceptionReturns a list of capabilities associated with the account. The capabilities are returned sorted by creation date, with the most recent capability appearing first.- Throws:
StripeException
-
capabilities
Returns a list of capabilities associated with the account. The capabilities are returned sorted by creation date, with the most recent capability appearing first.- Throws:
StripeException
-
capabilities
public CapabilityCollection capabilities(AccountCapabilitiesParams params, RequestOptions options) throws StripeException Returns a list of capabilities associated with the account. The capabilities are returned sorted by creation date, with the most recent capability appearing first.- Throws:
StripeException
-
create
With Connect, you can create Stripe accounts for your users. To do this, you’ll first need to register your platform.- Throws:
StripeException
-
create
public static Account create(Map<String, Object> params, RequestOptions options) throws StripeExceptionWith Connect, you can create Stripe accounts for your users. To do this, you’ll first need to register your platform.- Throws:
StripeException
-
create
With Connect, you can create Stripe accounts for your users. To do this, you’ll first need to register your platform.- Throws:
StripeException
-
create
public static Account create(AccountCreateParams params, RequestOptions options) throws StripeException With Connect, you can create Stripe accounts for your users. To do this, you’ll first need to register your platform.- Throws:
StripeException
-
delete
With Connect, you can delete accounts you manage.Accounts created using test-mode keys can be deleted at any time. Standard accounts created using live-mode keys cannot be deleted. Custom or Express accounts created using live-mode keys can only be deleted once all balances are zero.
If you want to delete your own account, use the account information tab in your account settings instead.
- Throws:
StripeException
-
delete
With Connect, you can delete accounts you manage.Accounts created using test-mode keys can be deleted at any time. Standard accounts created using live-mode keys cannot be deleted. Custom or Express accounts created using live-mode keys can only be deleted once all balances are zero.
If you want to delete your own account, use the account information tab in your account settings instead.
- Throws:
StripeException
-
delete
With Connect, you can delete accounts you manage.Accounts created using test-mode keys can be deleted at any time. Standard accounts created using live-mode keys cannot be deleted. Custom or Express accounts created using live-mode keys can only be deleted once all balances are zero.
If you want to delete your own account, use the account information tab in your account settings instead.
- Throws:
StripeException
-
delete
With Connect, you can delete accounts you manage.Accounts created using test-mode keys can be deleted at any time. Standard accounts created using live-mode keys cannot be deleted. Custom or Express accounts created using live-mode keys can only be deleted once all balances are zero.
If you want to delete your own account, use the account information tab in your account settings instead.
- Throws:
StripeException
-
list
Returns a list of accounts connected to your platform via Connect. If you’re not a platform, the list is empty.- Throws:
StripeException
-
list
public static AccountCollection list(Map<String, Object> params, RequestOptions options) throws StripeExceptionReturns a list of accounts connected to your platform via Connect. If you’re not a platform, the list is empty.- Throws:
StripeException
-
list
Returns a list of accounts connected to your platform via Connect. If you’re not a platform, the list is empty.- Throws:
StripeException
-
list
public static AccountCollection list(AccountListParams params, RequestOptions options) throws StripeException Returns a list of accounts connected to your platform via Connect. If you’re not a platform, the list is empty.- Throws:
StripeException
-
persons
Returns a list of people associated with the account’s legal entity. The people are returned sorted by creation date, with the most recent people appearing first.- Throws:
StripeException
-
persons
Returns a list of people associated with the account’s legal entity. The people are returned sorted by creation date, with the most recent people appearing first.- Throws:
StripeException
-
persons
public PersonCollection persons(Map<String, Object> params, RequestOptions options) throws StripeExceptionReturns a list of people associated with the account’s legal entity. The people are returned sorted by creation date, with the most recent people appearing first.- Throws:
StripeException
-
persons
Returns a list of people associated with the account’s legal entity. The people are returned sorted by creation date, with the most recent people appearing first.- Throws:
StripeException
-
persons
public PersonCollection persons(AccountPersonsParams params, RequestOptions options) throws StripeException Returns a list of people associated with the account’s legal entity. The people are returned sorted by creation date, with the most recent people appearing first.- Throws:
StripeException
-
reject
With Connect, you may flag accounts as suspicious.Test-mode Custom and Express accounts can be rejected at any time. Accounts created using live-mode keys may only be rejected once all balances are zero.
- Throws:
StripeException
-
reject
With Connect, you may flag accounts as suspicious.Test-mode Custom and Express accounts can be rejected at any time. Accounts created using live-mode keys may only be rejected once all balances are zero.
- Throws:
StripeException
-
reject
With Connect, you may flag accounts as suspicious.Test-mode Custom and Express accounts can be rejected at any time. Accounts created using live-mode keys may only be rejected once all balances are zero.
- Throws:
StripeException
-
reject
With Connect, you may flag accounts as suspicious.Test-mode Custom and Express accounts can be rejected at any time. Accounts created using live-mode keys may only be rejected once all balances are zero.
- Throws:
StripeException
-
retrieve
Retrieves the details of an account.- Throws:
StripeException
-
retrieve
Retrieves the details of an account.- Throws:
StripeException
-
retrieve
public static Account retrieve(Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieves the details of an account.- Throws:
StripeException
-
retrieve
public static Account retrieve(AccountRetrieveParams params, RequestOptions options) throws StripeException Retrieves the details of an account.- Throws:
StripeException
-
retrieve
Retrieves the details of an account.- Throws:
StripeException
-
retrieve
Retrieves the details of an account.- Throws:
StripeException
-
retrieve
public static Account retrieve(String account, Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieves the details of an account.- Throws:
StripeException
-
retrieve
public static Account retrieve(String account, AccountRetrieveParams params, RequestOptions options) throws StripeException Retrieves the details of an account.- Throws:
StripeException
-
update
Updates a connected account by setting the values of the parameters passed. Any parameters not provided are left unchanged. Most parameters can be changed only for Custom accounts. (These are marked Custom Only below.) Parameters marked Custom and Express are not supported for Standard accounts.To update your own account, use the Dashboard. Refer to our Connect documentation to learn more about updating accounts.
- Specified by:
update
in interfaceMetadataStore<Account>
- Throws:
StripeException
-
update
Updates a connected account by setting the values of the parameters passed. Any parameters not provided are left unchanged. Most parameters can be changed only for Custom accounts. (These are marked Custom Only below.) Parameters marked Custom and Express are not supported for Standard accounts.To update your own account, use the Dashboard. Refer to our Connect documentation to learn more about updating accounts.
- Specified by:
update
in interfaceMetadataStore<Account>
- Throws:
StripeException
-
update
Updates a connected account by setting the values of the parameters passed. Any parameters not provided are left unchanged. Most parameters can be changed only for Custom accounts. (These are marked Custom Only below.) Parameters marked Custom and Express are not supported for Standard accounts.To update your own account, use the Dashboard. Refer to our Connect documentation to learn more about updating accounts.
- Throws:
StripeException
-
update
Updates a connected account by setting the values of the parameters passed. Any parameters not provided are left unchanged. Most parameters can be changed only for Custom accounts. (These are marked Custom Only below.) Parameters marked Custom and Express are not supported for Standard accounts.To update your own account, use the Dashboard. Refer to our Connect documentation to learn more about updating accounts.
- Throws:
StripeException
-
getBusinessProfile
Business information about the account. -
getBusinessType
The business type.One of
company
,government_entity
,individual
, ornon_profit
. -
getCapabilities
-
getChargesEnabled
Whether the account can create live charges. -
getCompany
-
getController
-
getCountry
The account's country. -
getCreated
Time at which the account was connected. Measured in seconds since the Unix epoch. -
getDefaultCurrency
Three-letter ISO currency code representing the default currency for the account. This must be a currency that Stripe supports in the account's country. -
getDeleted
Always true for a deleted object. -
getDetailsSubmitted
Whether account details have been submitted. Standard accounts cannot receive payouts before this is true. -
getEmail
An email address associated with the account. You can treat this as metadata: it is not used for authentication or messaging account holders. -
getExternalAccounts
External accounts (bank accounts and debit cards) currently attached to this account. -
getFutureRequirements
-
getIndividual
This is an object representing a person associated with a Stripe account.A platform cannot access a Standard or Express account's persons after the account starts onboarding, such as after generating an account link for the account. See the Standard onboarding or Express onboarding documentation for information about platform pre-filling and account onboarding steps.
Related guide: Handling Identity Verification with the API.
-
getObject
String representing the object's type. Objects of the same type share the same value.Equal to
account
. -
getPayoutsEnabled
Whether Stripe can send payouts to this account. -
getRequirements
-
getSettings
Options for customizing how the account functions within Stripe. -
getTosAcceptance
-
getType
The Stripe account type. Can bestandard
,express
, orcustom
. -
setBusinessProfile
Business information about the account. -
setBusinessType
The business type.One of
company
,government_entity
,individual
, ornon_profit
. -
setCapabilities
-
setChargesEnabled
Whether the account can create live charges. -
setCompany
-
setController
-
setCountry
The account's country. -
setCreated
Time at which the account was connected. Measured in seconds since the Unix epoch. -
setDefaultCurrency
Three-letter ISO currency code representing the default currency for the account. This must be a currency that Stripe supports in the account's country. -
setDeleted
Always true for a deleted object. -
setDetailsSubmitted
Whether account details have been submitted. Standard accounts cannot receive payouts before this is true. -
setEmail
An email address associated with the account. You can treat this as metadata: it is not used for authentication or messaging account holders. -
setExternalAccounts
External accounts (bank accounts and debit cards) currently attached to this account. -
setFutureRequirements
-
setId
Unique identifier for the object. -
setIndividual
This is an object representing a person associated with a Stripe account.A platform cannot access a Standard or Express account's persons after the account starts onboarding, such as after generating an account link for the account. See the Standard onboarding or Express onboarding documentation for information about platform pre-filling and account onboarding steps.
Related guide: Handling Identity Verification with the API.
-
setMetadata
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. -
setObject
String representing the object's type. Objects of the same type share the same value.Equal to
account
. -
setPayoutsEnabled
Whether Stripe can send payouts to this account. -
setRequirements
-
setSettings
Options for customizing how the account functions within Stripe. -
setTosAcceptance
-
setType
The Stripe account type. Can bestandard
,express
, orcustom
. -
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object. -
getMetadata
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.- Specified by:
getMetadata
in interfaceMetadataStore<Account>
-