Package com.stripe.model.treasury
Class FinancialAccount
java.lang.Object
com.stripe.model.StripeObject
com.stripe.net.ApiResource
com.stripe.model.treasury.FinancialAccount
- All Implemented Interfaces:
HasId
,MetadataStore<FinancialAccount>
,StripeActiveObject
,StripeObjectInterface
Stripe Treasury provides users with a container for money called a FinancialAccount that is
separate from their Payments balance. FinancialAccounts serve as the source and destination of
Treasury’s money movement APIs.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Balance information for the FinancialAccount.static class
FinancialAddresses contain identifying information that resolves to a FinancialAccount.static class
Restrictions that a Connect Platform has placed on this FinancialAccount.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
static FinancialAccount
create
(FinancialAccountCreateParams params) Creates a new FinancialAccount.static FinancialAccount
create
(FinancialAccountCreateParams params, RequestOptions options) Creates a new FinancialAccount.static FinancialAccount
Creates a new FinancialAccount.static FinancialAccount
create
(Map<String, Object> params, RequestOptions options) Creates a new FinancialAccount.boolean
The array of paths to active Features in the Features hash.Balance information for the FinancialAccount.Two-letter country code (ISO 3166-1 alpha-2).Time at which the object was created.Encodes whether a FinancialAccount has access to a particular Feature, with astatus
enum and associatedstatus_details
.The set of credentials that resolve to a FinancialAccount.getId()
Unique identifier for the object.Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.Set of key-value pairs that you can attach to an object.String representing the object's type.The array of paths to pending Features in the Features hash.The set of functionalities that the platform can restrict on the FinancialAccount.The array of paths to restricted Features in the Features hash.The enum specifying what state the account is in.The currencies the FinancialAccount can hold a balance in.int
hashCode()
static FinancialAccountCollection
list
(FinancialAccountListParams params) Returns a list of FinancialAccounts.static FinancialAccountCollection
list
(FinancialAccountListParams params, RequestOptions options) Returns a list of FinancialAccounts.static FinancialAccountCollection
Returns a list of FinancialAccounts.static FinancialAccountCollection
list
(Map<String, Object> params, RequestOptions options) Returns a list of FinancialAccounts.static FinancialAccount
Retrieves the details of a FinancialAccount.static FinancialAccount
retrieve
(String financialAccount, RequestOptions options) Retrieves the details of a FinancialAccount.static FinancialAccount
retrieve
(String financialAccount, FinancialAccountRetrieveParams params, RequestOptions options) Retrieves the details of a FinancialAccount.static FinancialAccount
Retrieves the details of a FinancialAccount.Retrieves Features information associated with the FinancialAccount.Retrieves Features information associated with the FinancialAccount.retrieveFeatures
(FinancialAccountRetrieveFeaturesParams params, RequestOptions options) Retrieves Features information associated with the FinancialAccount.retrieveFeatures
(Map<String, Object> params) Retrieves Features information associated with the FinancialAccount.retrieveFeatures
(Map<String, Object> params, RequestOptions options) Retrieves Features information associated with the FinancialAccount.void
setActiveFeatures
(List<String> activeFeatures) The array of paths to active Features in the Features hash.void
setBalance
(FinancialAccount.Balance balance) Balance information for the FinancialAccount.void
setCountry
(String country) Two-letter country code (ISO 3166-1 alpha-2).void
setCreated
(Long created) Time at which the object was created.void
setFeatures
(FinancialAccountFeatures features) Encodes whether a FinancialAccount has access to a particular Feature, with astatus
enum and associatedstatus_details
.void
setFinancialAddresses
(List<FinancialAccount.FinancialAddress> financialAddresses) The set of credentials that resolve to a FinancialAccount.void
Unique identifier for the object.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
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
setPendingFeatures
(List<String> pendingFeatures) The array of paths to pending Features in the Features hash.void
setPlatformRestrictions
(FinancialAccount.PlatformRestrictions platformRestrictions) The set of functionalities that the platform can restrict on the FinancialAccount.void
setResponseGetter
(StripeResponseGetter responseGetter) The array that contains reasons for a FinancialAccount closure.void
setRestrictedFeatures
(List<String> restrictedFeatures) The array of paths to restricted Features in the Features hash.void
The enum specifying what state the account is in.void
setStatusDetails
(FinancialAccount.StatusDetails statusDetails) void
setSupportedCurrencies
(List<String> supportedCurrencies) The currencies the FinancialAccount can hold a balance in.update
(FinancialAccountUpdateParams params) Updates the details of a FinancialAccount.update
(FinancialAccountUpdateParams params, RequestOptions options) Updates the details of a FinancialAccount.Updates the details of a FinancialAccount.update
(Map<String, Object> params, RequestOptions options) Updates the details of a FinancialAccount.Updates the Features associated with a FinancialAccount.updateFeatures
(RequestOptions options) Updates the Features associated with a FinancialAccount.Updates the Features associated with a FinancialAccount.updateFeatures
(FinancialAccountUpdateFeaturesParams params, RequestOptions options) Updates the Features associated with a FinancialAccount.updateFeatures
(Map<String, Object> params) Updates the Features associated with a FinancialAccount.updateFeatures
(Map<String, Object> params, RequestOptions options) Updates the Features associated with a FinancialAccount.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
-
FinancialAccount
public FinancialAccount()
-
-
Method Details
-
create
Creates a new FinancialAccount. For now, each connected account can only have one FinancialAccount.- Throws:
StripeException
-
create
public static FinancialAccount create(Map<String, Object> params, RequestOptions options) throws StripeExceptionCreates a new FinancialAccount. For now, each connected account can only have one FinancialAccount.- Throws:
StripeException
-
create
Creates a new FinancialAccount. For now, each connected account can only have one FinancialAccount.- Throws:
StripeException
-
create
public static FinancialAccount create(FinancialAccountCreateParams params, RequestOptions options) throws StripeException Creates a new FinancialAccount. For now, each connected account can only have one FinancialAccount.- Throws:
StripeException
-
list
Returns a list of FinancialAccounts.- Throws:
StripeException
-
list
public static FinancialAccountCollection list(Map<String, Object> params, RequestOptions options) throws StripeExceptionReturns a list of FinancialAccounts.- Throws:
StripeException
-
list
public static FinancialAccountCollection list(FinancialAccountListParams params) throws StripeException Returns a list of FinancialAccounts.- Throws:
StripeException
-
list
public static FinancialAccountCollection list(FinancialAccountListParams params, RequestOptions options) throws StripeException Returns a list of FinancialAccounts.- Throws:
StripeException
-
retrieve
Retrieves the details of a FinancialAccount.- Throws:
StripeException
-
retrieve
public static FinancialAccount retrieve(String financialAccount, RequestOptions options) throws StripeException Retrieves the details of a FinancialAccount.- Throws:
StripeException
-
retrieve
public static FinancialAccount retrieve(String financialAccount, Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieves the details of a FinancialAccount.- Throws:
StripeException
-
retrieve
public static FinancialAccount retrieve(String financialAccount, FinancialAccountRetrieveParams params, RequestOptions options) throws StripeException Retrieves the details of a FinancialAccount.- Throws:
StripeException
-
retrieveFeatures
Retrieves Features information associated with the FinancialAccount.- Throws:
StripeException
-
retrieveFeatures
Retrieves Features information associated with the FinancialAccount.- Throws:
StripeException
-
retrieveFeatures
public FinancialAccountFeatures retrieveFeatures(Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieves Features information associated with the FinancialAccount.- Throws:
StripeException
-
retrieveFeatures
public FinancialAccountFeatures retrieveFeatures(FinancialAccountRetrieveFeaturesParams params) throws StripeException Retrieves Features information associated with the FinancialAccount.- Throws:
StripeException
-
retrieveFeatures
public FinancialAccountFeatures retrieveFeatures(FinancialAccountRetrieveFeaturesParams params, RequestOptions options) throws StripeException Retrieves Features information associated with the FinancialAccount.- Throws:
StripeException
-
update
Updates the details of a FinancialAccount.- Specified by:
update
in interfaceMetadataStore<FinancialAccount>
- Throws:
StripeException
-
update
public FinancialAccount update(Map<String, Object> params, RequestOptions options) throws StripeExceptionUpdates the details of a FinancialAccount.- Specified by:
update
in interfaceMetadataStore<FinancialAccount>
- Throws:
StripeException
-
update
Updates the details of a FinancialAccount.- Throws:
StripeException
-
update
public FinancialAccount update(FinancialAccountUpdateParams params, RequestOptions options) throws StripeException Updates the details of a FinancialAccount.- Throws:
StripeException
-
updateFeatures
Updates the Features associated with a FinancialAccount.- Throws:
StripeException
-
updateFeatures
Updates the Features associated with a FinancialAccount.- Throws:
StripeException
-
updateFeatures
Updates the Features associated with a FinancialAccount.- Throws:
StripeException
-
updateFeatures
public FinancialAccountFeatures updateFeatures(Map<String, Object> params, RequestOptions options) throws StripeExceptionUpdates the Features associated with a FinancialAccount.- Throws:
StripeException
-
updateFeatures
public FinancialAccountFeatures updateFeatures(FinancialAccountUpdateFeaturesParams params) throws StripeException Updates the Features associated with a FinancialAccount.- Throws:
StripeException
-
updateFeatures
public FinancialAccountFeatures updateFeatures(FinancialAccountUpdateFeaturesParams params, RequestOptions options) throws StripeException Updates the Features associated with a FinancialAccount.- Throws:
StripeException
-
setResponseGetter
The array that contains reasons for a FinancialAccount closure.- Specified by:
setResponseGetter
in interfaceStripeActiveObject
- Overrides:
setResponseGetter
in classApiResource
- Parameters:
responseGetter
- theStripeResponseGetter
instance to use for making further requests.
-
getActiveFeatures
The array of paths to active Features in the Features hash. -
getBalance
Balance information for the FinancialAccount. -
getCountry
Two-letter country code (ISO 3166-1 alpha-2). -
getCreated
Time at which the object was created. Measured in seconds since the Unix epoch. -
getFeatures
Encodes whether a FinancialAccount has access to a particular Feature, with astatus
enum and associatedstatus_details
. Stripe or the platform can control Features via the requested field. -
getFinancialAddresses
The set of credentials that resolve to a FinancialAccount. -
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
treasury.financial_account
. -
getPendingFeatures
The array of paths to pending Features in the Features hash. -
getPlatformRestrictions
The set of functionalities that the platform can restrict on the FinancialAccount. -
getRestrictedFeatures
The array of paths to restricted Features in the Features hash. -
getStatus
The enum specifying what state the account is in.One of
closed
, oropen
. -
getStatusDetails
-
getSupportedCurrencies
The currencies the FinancialAccount can hold a balance in. Three-letter ISO currency code, in lowercase. -
setActiveFeatures
The array of paths to active Features in the Features hash. -
setBalance
Balance information for the FinancialAccount. -
setCountry
Two-letter country code (ISO 3166-1 alpha-2). -
setCreated
Time at which the object was created. Measured in seconds since the Unix epoch. -
setFeatures
Encodes whether a FinancialAccount has access to a particular Feature, with astatus
enum and associatedstatus_details
. Stripe or the platform can control Features via the requested field. -
setFinancialAddresses
The set of credentials that resolve to a FinancialAccount. -
setId
Unique identifier for the object. -
setLivemode
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode. -
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
treasury.financial_account
. -
setPendingFeatures
The array of paths to pending Features in the Features hash. -
setPlatformRestrictions
The set of functionalities that the platform can restrict on the FinancialAccount. -
setRestrictedFeatures
The array of paths to restricted Features in the Features hash. -
setStatus
The enum specifying what state the account is in.One of
closed
, oropen
. -
setStatusDetails
-
setSupportedCurrencies
The currencies the FinancialAccount can hold a balance in. Three-letter ISO currency code, in lowercase. -
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<FinancialAccount>
-