View Source Stripe.Treasury.FinancialAccount (Striped v0.1.0)
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.
Link to this section Summary
Functions
Creates a new FinancialAccount. For now, each connected account can only have one FinancialAccount.
Returns a list of FinancialAccounts.
Retrieves the details of a FinancialAccount.
Retrieves Features information associated with the FinancialAccount.
Updates the details of a FinancialAccount.
Updates the Features associated with a FinancialAccount.
Link to this section Types
@type t() :: %Stripe.Treasury.FinancialAccount{ active_features: term(), balance: term(), country: binary(), created: integer(), features: Stripe.Treasury.FinancialAccountFeatures.t(), financial_addresses: term(), id: binary(), livemode: boolean(), metadata: term() | nil, object: binary(), pending_features: term(), platform_restrictions: term() | nil, restricted_features: term(), status: binary(), status_details: term(), supported_currencies: term() }
The treasury.financial_account type.
active_featuresThe array of paths to active Features in the Features hash.balancecountryTwo-letter country code (ISO 3166-1 alpha-2).createdTime at which the object was created. Measured in seconds since the Unix epoch.featuresfinancial_addressesThe set of credentials that resolve to a FinancialAccount.idUnique identifier for the object.livemodeHas the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.metadataSet 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.objectString representing the object's type. Objects of the same type share the same value.pending_featuresThe array of paths to pending Features in the Features hash.platform_restrictionsThe set of functionalities that the platform can restrict on the FinancialAccount.restricted_featuresThe array of paths to restricted Features in the Features hash.statusThe enum specifying what state the account is in.status_detailssupported_currenciesThe currencies the FinancialAccount can hold a balance in. Three-letter ISO currency code, in lowercase.
Link to this section Functions
@spec create(client :: term(), params :: map()) :: {:ok, t()} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
Creates a new FinancialAccount. For now, each connected account can only have one FinancialAccount.
Details
- Method:
post - Path:
/v1/treasury/financial_accounts
@spec list(client :: term(), params :: map()) :: {:ok, Stripe.List.t(t())} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
Returns a list of FinancialAccounts.
Details
- Method:
get - Path:
/v1/treasury/financial_accounts
Query parameters
:createdany of:- object with (optional) properties:
gt: integergte: integerlt: integerlte: integer
- integer
- object with (optional) properties:
:ending_beforestring:expandarray of: string:limitinteger:starting_afterstring
@spec retrieve(client :: term(), financial_account :: binary(), params :: map()) :: {:ok, t()} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
Retrieves the details of a FinancialAccount.
Details
- Method:
get - Path:
/v1/treasury/financial_accounts/{financial_account}
Query parameters
:expandarray of: string
@spec retrieve_features( client :: term(), financial_account :: binary(), params :: map() ) :: {:ok, Stripe.Treasury.FinancialAccountFeatures.t()} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
Retrieves Features information associated with the FinancialAccount.
Details
- Method:
get - Path:
/v1/treasury/financial_accounts/{financial_account}/features
Query parameters
:expandarray of: string
@spec update(client :: term(), financial_account :: binary(), params :: map()) :: {:ok, t()} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
Updates the details of a FinancialAccount.
Details
- Method:
post - Path:
/v1/treasury/financial_accounts/{financial_account}
@spec update_features( client :: term(), financial_account :: binary(), params :: map() ) :: {:ok, Stripe.Treasury.FinancialAccountFeatures.t()} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
Updates the Features associated with a FinancialAccount.
Details
- Method:
post - Path:
/v1/treasury/financial_accounts/{financial_account}/features