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
Nested ClassesModifier and TypeClassDescriptionstatic classBalance information for the FinancialAccount.static classFinancialAddresses contain identifying information that resolves to a FinancialAccount.static classRestrictions that a Connect Platform has placed on this FinancialAccount.static classFor more details about StatusDetails, please refer to the API Reference.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_GSONFields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanclose()Closes a FinancialAccount.close(RequestOptions options) Closes a FinancialAccount.close(FinancialAccountCloseParams params) Closes a FinancialAccount.close(FinancialAccountCloseParams params, RequestOptions options) Closes a FinancialAccount.Closes a FinancialAccount.close(Map<String, Object> params, RequestOptions options) Closes a FinancialAccount.static FinancialAccountcreate(FinancialAccountCreateParams params) Creates a new FinancialAccount.static FinancialAccountcreate(FinancialAccountCreateParams params, RequestOptions options) Creates a new FinancialAccount.static FinancialAccountCreates a new FinancialAccount.static FinancialAccountcreate(Map<String, Object> params, RequestOptions options) Creates a new FinancialAccount.booleanThe 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.The display name for the FinancialAccount.Encodes whether a FinancialAccount has access to a particular Feature, with astatusenum and associatedstatus_details.The set of credentials that resolve to a FinancialAccount.getId()Unique identifier for the object.Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.Set of key-value pairs that you can attach to an object.The nickname for the FinancialAccount.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.Status of this FinancialAccount.The currencies the FinancialAccount can hold a balance in.inthashCode()static FinancialAccountCollectionlist(FinancialAccountListParams params) Returns a list of FinancialAccounts.static FinancialAccountCollectionlist(FinancialAccountListParams params, RequestOptions options) Returns a list of FinancialAccounts.static FinancialAccountCollectionReturns a list of FinancialAccounts.static FinancialAccountCollectionlist(Map<String, Object> params, RequestOptions options) Returns a list of FinancialAccounts.static FinancialAccountRetrieves the details of a FinancialAccount.static FinancialAccountretrieve(String financialAccount, RequestOptions options) Retrieves the details of a FinancialAccount.static FinancialAccountretrieve(String financialAccount, FinancialAccountRetrieveParams params, RequestOptions options) Retrieves the details of a FinancialAccount.static FinancialAccountRetrieves 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.voidsetActiveFeatures(List<String> activeFeatures) The array of paths to active Features in the Features hash.voidsetBalance(FinancialAccount.Balance balance) Balance information for the FinancialAccount.voidsetCountry(String country) Two-letter country code (ISO 3166-1 alpha-2).voidsetCreated(Long created) Time at which the object was created.voidsetDisplayName(String displayName) The display name for the FinancialAccount.voidsetFeatures(FinancialAccountFeatures features) Encodes whether a FinancialAccount has access to a particular Feature, with astatusenum and associatedstatus_details.voidsetFinancialAddresses(List<FinancialAccount.FinancialAddress> financialAddresses) The set of credentials that resolve to a FinancialAccount.voidUnique identifier for the object.voidsetIsDefault(Boolean isDefault) voidsetLivemode(Boolean livemode) Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.voidsetMetadata(Map<String, String> metadata) Set of key-value pairs that you can attach to an object.voidsetNickname(String nickname) The nickname for the FinancialAccount.voidString representing the object's type.voidsetPendingFeatures(List<String> pendingFeatures) The array of paths to pending Features in the Features hash.voidsetPlatformRestrictions(FinancialAccount.PlatformRestrictions platformRestrictions) The set of functionalities that the platform can restrict on the FinancialAccount.voidsetResponseGetter(StripeResponseGetter responseGetter) The array that contains reasons for a FinancialAccount closure.voidsetRestrictedFeatures(List<String> restrictedFeatures) The array of paths to restricted Features in the Features hash.voidStatus of this FinancialAccount.voidsetStatusDetails(FinancialAccount.StatusDetails statusDetails) voidsetSupportedCurrencies(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, setGlobalResponseGetter, urlEncode, urlEncodeIdMethods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.stripe.model.StripeActiveObject
trySetResponseGetter
-
Constructor Details
-
FinancialAccount
public FinancialAccount()
-
-
Method Details
-
close
Closes a FinancialAccount. A FinancialAccount can only be closed if it has a zero balance, has no pending InboundTransfers, and has canceled all attached Issuing cards.- Throws:
StripeException
-
close
Closes a FinancialAccount. A FinancialAccount can only be closed if it has a zero balance, has no pending InboundTransfers, and has canceled all attached Issuing cards.- Throws:
StripeException
-
close
Closes a FinancialAccount. A FinancialAccount can only be closed if it has a zero balance, has no pending InboundTransfers, and has canceled all attached Issuing cards.- Throws:
StripeException
-
close
public FinancialAccount close(Map<String, Object> params, RequestOptions options) throws StripeExceptionCloses a FinancialAccount. A FinancialAccount can only be closed if it has a zero balance, has no pending InboundTransfers, and has canceled all attached Issuing cards.- Throws:
StripeException
-
close
Closes a FinancialAccount. A FinancialAccount can only be closed if it has a zero balance, has no pending InboundTransfers, and has canceled all attached Issuing cards.- Throws:
StripeException
-
close
public FinancialAccount close(FinancialAccountCloseParams params, RequestOptions options) throws StripeException Closes a FinancialAccount. A FinancialAccount can only be closed if it has a zero balance, has no pending InboundTransfers, and has canceled all attached Issuing cards.- Throws:
StripeException
-
create
Creates a new FinancialAccount. Each connected account can have up to three FinancialAccounts by default.- Throws:
StripeException
-
create
public static FinancialAccount create(Map<String, Object> params, RequestOptions options) throws StripeExceptionCreates a new FinancialAccount. Each connected account can have up to three FinancialAccounts by default.- Throws:
StripeException
-
create
Creates a new FinancialAccount. Each connected account can have up to three FinancialAccounts by default.- Throws:
StripeException
-
create
public static FinancialAccount create(FinancialAccountCreateParams params, RequestOptions options) throws StripeException Creates a new FinancialAccount. Each connected account can have up to three FinancialAccounts by default.- 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:
updatein interfaceMetadataStore<FinancialAccount>- Throws:
StripeException
-
update
public FinancialAccount update(Map<String, Object> params, RequestOptions options) throws StripeExceptionUpdates the details of a FinancialAccount.- Specified by:
updatein 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:
setResponseGetterin interfaceStripeActiveObject- Overrides:
setResponseGetterin classApiResource- Parameters:
responseGetter- theStripeResponseGetterinstance 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. -
getDisplayName
The display name for the FinancialAccount. Use this field to customize the names of the FinancialAccounts for your connected accounts. Unlike thenicknamefield,display_nameis not internal metadata and will be exposed to connected accounts. -
getFeatures
Encodes whether a FinancialAccount has access to a particular Feature, with astatusenum and associatedstatus_details. Stripe or the platform can control Features via the requested field. -
getFinancialAddresses
The set of credentials that resolve to a FinancialAccount. -
getIsDefault
-
getLivemode
Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode. -
getNickname
The nickname for the FinancialAccount. -
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
Status of this FinancialAccount.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. -
setDisplayName
The display name for the FinancialAccount. Use this field to customize the names of the FinancialAccounts for your connected accounts. Unlike thenicknamefield,display_nameis not internal metadata and will be exposed to connected accounts. -
setFeatures
Encodes whether a FinancialAccount has access to a particular Feature, with astatusenum 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. -
setIsDefault
-
setLivemode
Has the valuetrueif the object exists in live mode or the valuefalseif 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. -
setNickname
The nickname for the FinancialAccount. -
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
Status of this FinancialAccount.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:
getMetadatain interfaceMetadataStore<FinancialAccount>
-