View Source Stripe.BankAccount (stripity_stripe v3.3.1)
These bank accounts are payment methods on Customer objects.
On the other hand External Accounts are transfer
destinations on Account objects for connected accounts.
They can be bank accounts or debit cards as well, and are documented in the links above.
Related guide: Bank debits and transfers
Summary
Types
One or more documents that support the Bank account ownership verification requirement. Must be a document associated with the bank account that displays the last 4 digits of the account number, either a statement or a check.
Documents that may be submitted to satisfy various informational requests.
The bank_account type.
Functions
Delete a specified external account for a given account.
Updates the metadata, account holder name, account holder type of a bank account belonging toa connected account and optionally sets it as the default for its currency. Other bank account details are not editable by design.
Verify a specified bank account for a given customer.
Types
@type bank_account_ownership_verification() :: %{optional(:files) => [binary()]}
One or more documents that support the Bank account ownership verification requirement. Must be a document associated with the bank account that displays the last 4 digits of the account number, either a statement or a check.
@type documents() :: %{ optional(:bank_account_ownership_verification) => bank_account_ownership_verification() }
Documents that may be submitted to satisfy various informational requests.
@type t() :: %Stripe.BankAccount{ account: (binary() | Stripe.Account.t()) | nil, account_holder_name: binary() | nil, account_holder_type: binary() | nil, account_type: binary() | nil, available_payout_methods: term() | nil, bank_name: binary() | nil, country: binary(), currency: binary(), customer: (binary() | Stripe.Customer.t() | Stripe.DeletedCustomer.t()) | nil, default_for_currency: boolean() | nil, fingerprint: binary() | nil, future_requirements: term() | nil, id: binary(), last4: binary(), metadata: term() | nil, object: binary(), requirements: term() | nil, routing_number: binary() | nil, status: binary() }
The bank_account type.
accountThe account this bank account belongs to. Only applicable on Accounts (not customers or recipients) This property is only available when returned as an External Account where controller.is_controller istrue.account_holder_nameThe name of the person or business that owns the bank account.account_holder_typeThe type of entity that holds the account. This can be eitherindividualorcompany.account_typeThe bank account type. This can only becheckingorsavingsin most countries. In Japan, this can only befutsuortoza.available_payout_methodsA set of available payout methods for this bank account. Only values from this set should be passed as themethodwhen creating a payout.bank_nameName of the bank associated with the routing number (e.g.,WELLS FARGO).countryTwo-letter ISO code representing the country the bank account is located in.currencyThree-letter ISO code for the currency paid out to the bank account.customerThe ID of the customer that the bank account is associated with.default_for_currencyWhether this bank account is the default external account for its currency.fingerprintUniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.future_requirementsInformation about the upcoming new requirements for the bank account, including what information needs to be collected, and by when.idUnique identifier for the object.last4The last four digits of the bank account number.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.requirementsInformation about the requirements for the bank account, including what information needs to be collected.routing_numberThe routing transit number for the bank account.statusFor bank accounts, possible values arenew,validated,verified,verification_failed,tokenized_account_number_deactivatedorerrored. A bank account that hasn't had any activity or validation performed isnew. If Stripe can determine that the bank account exists, its status will bevalidated. Note that there often isn’t enough information to know (e.g., for smaller credit unions), and the validation is not always run. If customer bank account verification has succeeded, the bank account status will beverified. If the verification failed for any reason, such as microdeposit failure, the status will beverification_failed. If the status istokenized_account_number_deactivated, the account utilizes a tokenized account number which has been deactivated due to expiration or revocation. This account will need to be reverified to continue using it for money movement. If a payout sent to this bank account fails, we'll set the status toerroredand will not continue to send scheduled payouts until the bank details are updated.
For external accounts, possible values are new, errored, verification_failed, and tokenized_account_number_deactivated. If a payout fails, the status is set to errored and scheduled payouts are stopped until account details are updated. In the US and India, if we can't verify the owner of the bank account, we'll set the status to verification_failed. Other validations aren't run against external accounts because they're only used for payouts. This means the other statuses don't apply.
Functions
@spec delete(account :: binary(), id :: binary(), opts :: Keyword.t()) :: {:ok, Stripe.DeletedExternalAccount.t()} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
Delete a specified external account for a given account.
Details
- Method:
delete - Path:
/v1/accounts/{account}/external_accounts/{id}
@spec update( account :: binary(), id :: binary(), params :: %{ optional(:account_holder_name) => binary(), optional(:account_holder_type) => :company | :individual, optional(:account_type) => :checking | :futsu | :savings | :toza, optional(:address_city) => binary(), optional(:address_country) => binary(), optional(:address_line1) => binary(), optional(:address_line2) => binary(), optional(:address_state) => binary(), optional(:address_zip) => binary(), optional(:default_for_currency) => boolean(), optional(:documents) => documents(), optional(:exp_month) => binary(), optional(:exp_year) => binary(), optional(:expand) => [binary()], optional(:metadata) => %{optional(binary()) => binary()} | binary(), optional(:name) => binary() }, opts :: Keyword.t() ) :: {:ok, Stripe.ExternalAccount.t()} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
Updates the metadata, account holder name, account holder type of a bank account belonging toa connected account and optionally sets it as the default for its currency. Other bank account details are not editable by design.
You can only update bank accounts when account.controller.requirement_collection is application, which includes Custom accounts.
You can re-enable a disabled bank account by performing an update call without providing anyarguments or changes.
#### Details * Method: `post` * Path: `/v1/accounts/{account}/external_accounts/{id}`@spec verify( customer :: binary(), id :: binary(), params :: %{ optional(:amounts) => [integer()], optional(:expand) => [binary()] }, opts :: Keyword.t() ) :: {:ok, t()} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
Verify a specified bank account for a given customer.
Details
- Method:
post - Path:
/v1/customers/{customer}/sources/{id}/verify