Class Account
java.lang.Object
com.stripe.model.StripeObject
com.stripe.net.ApiResource
com.stripe.model.financialconnections.Account
- All Implemented Interfaces:
HasId
,StripeActiveObject
,StripeObjectInterface
A Financial Connections Account represents an account that exists outside of Stripe, to which you
have been granted some degree of access.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static class
The credit that has been used by the account holder.static class
static class
Nested classes/interfaces inherited from class com.stripe.net.ApiResource
ApiResource.RequestMethod
-
Field Summary
Fields inherited from class com.stripe.net.ApiResource
CHARSET, GSON, INTERNAL_GSON
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
Disables your access to a Financial ConnectionsAccount
.disconnect
(RequestOptions options) Disables your access to a Financial ConnectionsAccount
.disconnect
(AccountDisconnectParams params) Disables your access to a Financial ConnectionsAccount
.disconnect
(AccountDisconnectParams params, RequestOptions options) Disables your access to a Financial ConnectionsAccount
.disconnect
(Map<String, Object> params) Disables your access to a Financial ConnectionsAccount
.disconnect
(Map<String, Object> params, RequestOptions options) Disables your access to a Financial ConnectionsAccount
.boolean
The account holder that this account belongs to.The most recent information about the account's balance.The state of the most recent attempt to refresh the account balance.The type of the account.Time at which the object was created.A human-readable name that has been assigned to this account, either by the account holder or by the institution.getId()
Unique identifier for the object.The name of the institution that holds this account.getLast4()
The last 4 digits of the account number.Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.String representing the object's type.Get ID of expandableownership
object.Get expandedownership
.The state of the most recent attempt to refresh the account owners.The list of permissions granted by this account.The status of the link to the account.Ifcategory
iscash
, one of:The list of data refresh subscriptions requested on this account.The PaymentMethod type(s) that can be created from this account.The state of the most recent attempt to refresh the account transactions.int
hashCode()
static AccountCollection
list
(AccountListParams params) Returns a list of Financial ConnectionsAccount
objects.static AccountCollection
list
(AccountListParams params, RequestOptions options) Returns a list of Financial ConnectionsAccount
objects.static AccountCollection
Returns a list of Financial ConnectionsAccount
objects.static AccountCollection
list
(Map<String, Object> params, RequestOptions options) Returns a list of Financial ConnectionsAccount
objects.listOwners
(AccountListOwnersParams params) Lists all owners for a givenAccount
.listOwners
(AccountListOwnersParams params, RequestOptions options) Lists all owners for a givenAccount
.listOwners
(Map<String, Object> params) Lists all owners for a givenAccount
.listOwners
(Map<String, Object> params, RequestOptions options) Lists all owners for a givenAccount
.refresh
(AccountRefreshParams params) Refreshes the data associated with a Financial ConnectionsAccount
.refresh
(AccountRefreshParams params, RequestOptions options) Refreshes the data associated with a Financial ConnectionsAccount
.Refreshes the data associated with a Financial ConnectionsAccount
.refresh
(Map<String, Object> params, RequestOptions options) Refreshes the data associated with a Financial ConnectionsAccount
.static Account
Retrieves the details of an Financial ConnectionsAccount
.static Account
retrieve
(String account, RequestOptions options) Retrieves the details of an Financial ConnectionsAccount
.static Account
retrieve
(String account, AccountRetrieveParams params, RequestOptions options) Retrieves the details of an Financial ConnectionsAccount
.static Account
Retrieves the details of an Financial ConnectionsAccount
.void
setAccountHolder
(Account.AccountHolder accountHolder) The account holder that this account belongs to.void
setBalance
(Account.Balance balance) The most recent information about the account's balance.void
setBalanceRefresh
(Account.BalanceRefresh balanceRefresh) The state of the most recent attempt to refresh the account balance.void
setCategory
(String category) The type of the account.void
setCreated
(Long created) Time at which the object was created.void
setDisplayName
(String displayName) A human-readable name that has been assigned to this account, either by the account holder or by the institution.void
Unique identifier for the object.void
setInstitutionName
(String institutionName) The name of the institution that holds this account.void
The last 4 digits of the account number.void
setLivemode
(Boolean livemode) Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.void
String representing the object's type.void
setOwnership
(String id) void
setOwnershipObject
(AccountOwnership expandableObject) void
setOwnershipRefresh
(Account.OwnershipRefresh ownershipRefresh) The state of the most recent attempt to refresh the account owners.void
setPermissions
(List<String> permissions) The list of permissions granted by this account.void
setResponseGetter
(StripeResponseGetter responseGetter) Method is used by the containing object orStripeResponseGetter
implementations to set theStripeResponseGetter
instance used to make further requests.void
The status of the link to the account.void
setSubcategory
(String subcategory) Ifcategory
iscash
, one of:void
setSubscriptions
(List<String> subscriptions) The list of data refresh subscriptions requested on this account.void
setSupportedPaymentMethodTypes
(List<String> supportedPaymentMethodTypes) The PaymentMethod type(s) that can be created from this account.void
setTransactionRefresh
(Account.TransactionRefresh transactionRefresh) The state of the most recent attempt to refresh the account transactions.subscribe
(AccountSubscribeParams params) Subscribes to periodic refreshes of data associated with a Financial ConnectionsAccount
.subscribe
(AccountSubscribeParams params, RequestOptions options) Subscribes to periodic refreshes of data associated with a Financial ConnectionsAccount
.Subscribes to periodic refreshes of data associated with a Financial ConnectionsAccount
.subscribe
(Map<String, Object> params, RequestOptions options) Subscribes to periodic refreshes of data associated with a Financial ConnectionsAccount
.unsubscribe
(AccountUnsubscribeParams params) Unsubscribes from periodic refreshes of data associated with a Financial ConnectionsAccount
.unsubscribe
(AccountUnsubscribeParams params, RequestOptions options) Unsubscribes from periodic refreshes of data associated with a Financial ConnectionsAccount
.unsubscribe
(Map<String, Object> params) Unsubscribes from periodic refreshes of data associated with a Financial ConnectionsAccount
.unsubscribe
(Map<String, Object> params, RequestOptions options) Unsubscribes from periodic refreshes of data associated with a Financial ConnectionsAccount
.Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, getGlobalResponseGetter, getResponseGetter, setExpandableFieldId, setStripeResponseGetter, urlEncode, urlEncodeId
Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, 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.StripeActiveObject
trySetResponseGetter
-
Constructor Details
-
Account
public Account()
-
-
Method Details
-
getOwnership
Get ID of expandableownership
object. -
setOwnership
-
getOwnershipObject
Get expandedownership
. -
setOwnershipObject
-
disconnect
Disables your access to a Financial ConnectionsAccount
. You will no longer be able to access data associated with the account (e.g. balances, transactions).- Throws:
StripeException
-
disconnect
Disables your access to a Financial ConnectionsAccount
. You will no longer be able to access data associated with the account (e.g. balances, transactions).- Throws:
StripeException
-
disconnect
Disables your access to a Financial ConnectionsAccount
. You will no longer be able to access data associated with the account (e.g. balances, transactions).- Throws:
StripeException
-
disconnect
Disables your access to a Financial ConnectionsAccount
. You will no longer be able to access data associated with the account (e.g. balances, transactions).- Throws:
StripeException
-
disconnect
Disables your access to a Financial ConnectionsAccount
. You will no longer be able to access data associated with the account (e.g. balances, transactions).- Throws:
StripeException
-
disconnect
public Account disconnect(AccountDisconnectParams params, RequestOptions options) throws StripeException Disables your access to a Financial ConnectionsAccount
. You will no longer be able to access data associated with the account (e.g. balances, transactions).- Throws:
StripeException
-
list
Returns a list of Financial ConnectionsAccount
objects.- Throws:
StripeException
-
list
public static AccountCollection list(Map<String, Object> params, RequestOptions options) throws StripeExceptionReturns a list of Financial ConnectionsAccount
objects.- Throws:
StripeException
-
list
Returns a list of Financial ConnectionsAccount
objects.- Throws:
StripeException
-
list
public static AccountCollection list(AccountListParams params, RequestOptions options) throws StripeException Returns a list of Financial ConnectionsAccount
objects.- Throws:
StripeException
-
listOwners
Lists all owners for a givenAccount
.- Throws:
StripeException
-
listOwners
public AccountOwnerCollection listOwners(Map<String, Object> params, RequestOptions options) throws StripeExceptionLists all owners for a givenAccount
.- Throws:
StripeException
-
listOwners
Lists all owners for a givenAccount
.- Throws:
StripeException
-
listOwners
public AccountOwnerCollection listOwners(AccountListOwnersParams params, RequestOptions options) throws StripeException Lists all owners for a givenAccount
.- Throws:
StripeException
-
refresh
Refreshes the data associated with a Financial ConnectionsAccount
.- Throws:
StripeException
-
refresh
Refreshes the data associated with a Financial ConnectionsAccount
.- Throws:
StripeException
-
refresh
Refreshes the data associated with a Financial ConnectionsAccount
.- Throws:
StripeException
-
refresh
Refreshes the data associated with a Financial ConnectionsAccount
.- Throws:
StripeException
-
retrieve
Retrieves the details of an Financial ConnectionsAccount
.- Throws:
StripeException
-
retrieve
Retrieves the details of an Financial ConnectionsAccount
.- Throws:
StripeException
-
retrieve
public static Account retrieve(String account, Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieves the details of an Financial ConnectionsAccount
.- Throws:
StripeException
-
retrieve
public static Account retrieve(String account, AccountRetrieveParams params, RequestOptions options) throws StripeException Retrieves the details of an Financial ConnectionsAccount
.- Throws:
StripeException
-
subscribe
Subscribes to periodic refreshes of data associated with a Financial ConnectionsAccount
.- Throws:
StripeException
-
subscribe
Subscribes to periodic refreshes of data associated with a Financial ConnectionsAccount
.- Throws:
StripeException
-
subscribe
Subscribes to periodic refreshes of data associated with a Financial ConnectionsAccount
.- Throws:
StripeException
-
subscribe
public Account subscribe(AccountSubscribeParams params, RequestOptions options) throws StripeException Subscribes to periodic refreshes of data associated with a Financial ConnectionsAccount
.- Throws:
StripeException
-
unsubscribe
Unsubscribes from periodic refreshes of data associated with a Financial ConnectionsAccount
.- Throws:
StripeException
-
unsubscribe
public Account unsubscribe(Map<String, Object> params, RequestOptions options) throws StripeExceptionUnsubscribes from periodic refreshes of data associated with a Financial ConnectionsAccount
.- Throws:
StripeException
-
unsubscribe
Unsubscribes from periodic refreshes of data associated with a Financial ConnectionsAccount
.- Throws:
StripeException
-
unsubscribe
public Account unsubscribe(AccountUnsubscribeParams params, RequestOptions options) throws StripeException Unsubscribes from periodic refreshes of data associated with a Financial ConnectionsAccount
.- Throws:
StripeException
-
setResponseGetter
Description copied from interface:StripeActiveObject
Method is used by the containing object orStripeResponseGetter
implementations to set theStripeResponseGetter
instance used to make further requests.- Specified by:
setResponseGetter
in interfaceStripeActiveObject
- Overrides:
setResponseGetter
in classApiResource
- Parameters:
responseGetter
- theStripeResponseGetter
instance to use for making further requests.
-
getAccountHolder
The account holder that this account belongs to. -
getBalance
The most recent information about the account's balance. -
getBalanceRefresh
The state of the most recent attempt to refresh the account balance. -
getCategory
The type of the account. Account category is further divided insubcategory
.One of
cash
,credit
,investment
, orother
. -
getCreated
Time at which the object was created. Measured in seconds since the Unix epoch. -
getDisplayName
A human-readable name that has been assigned to this account, either by the account holder or by the institution. -
getInstitutionName
The name of the institution that holds this account. -
getLast4
The last 4 digits of the account number. If present, this will be 4 numeric characters. -
getLivemode
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode. -
getObject
String representing the object's type. Objects of the same type share the same value.Equal to
financial_connections.account
. -
getOwnershipRefresh
The state of the most recent attempt to refresh the account owners. -
getPermissions
The list of permissions granted by this account. -
getStatus
The status of the link to the account.One of
active
,disconnected
, orinactive
. -
getSubcategory
Ifcategory
iscash
, one of:-
checking
-savings
-other
If
category
iscredit
, one of:-
mortgage
-line_of_credit
-credit_card
-other
If
category
isinvestment
orother
, this will beother
. -
getSubscriptions
The list of data refresh subscriptions requested on this account. -
getSupportedPaymentMethodTypes
The PaymentMethod type(s) that can be created from this account. -
getTransactionRefresh
The state of the most recent attempt to refresh the account transactions. -
setAccountHolder
The account holder that this account belongs to. -
setBalance
The most recent information about the account's balance. -
setBalanceRefresh
The state of the most recent attempt to refresh the account balance. -
setCategory
The type of the account. Account category is further divided insubcategory
.One of
cash
,credit
,investment
, orother
. -
setCreated
Time at which the object was created. Measured in seconds since the Unix epoch. -
setDisplayName
A human-readable name that has been assigned to this account, either by the account holder or by the institution. -
setId
Unique identifier for the object. -
setInstitutionName
The name of the institution that holds this account. -
setLast4
The last 4 digits of the account number. If present, this will be 4 numeric characters. -
setLivemode
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode. -
setObject
String representing the object's type. Objects of the same type share the same value.Equal to
financial_connections.account
. -
setOwnershipRefresh
The state of the most recent attempt to refresh the account owners. -
setPermissions
The list of permissions granted by this account. -
setStatus
The status of the link to the account.One of
active
,disconnected
, orinactive
. -
setSubcategory
Ifcategory
iscash
, one of:-
checking
-savings
-other
If
category
iscredit
, one of:-
mortgage
-line_of_credit
-credit_card
-other
If
category
isinvestment
orother
, this will beother
. -
setSubscriptions
The list of data refresh subscriptions requested on this account. -
setSupportedPaymentMethodTypes
The PaymentMethod type(s) that can be created from this account. -
setTransactionRefresh
The state of the most recent attempt to refresh the account transactions. -
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object.
-