Class BankAccount
- All Implemented Interfaces:
ExternalAccount
,HasId
,MetadataStore<BankAccount>
,PaymentSource
,StripeActiveObject
,StripeObjectInterface
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
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
The specific user onboarding requirement field (in the requirements hash) that needs to be resolved.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
delete()
Delete a specified external account for a given account.delete
(RequestOptions options) Delete a specified external account for a given account.Delete a specified external account for a given account.delete
(Map<String, Object> params, RequestOptions options) Delete a specified external account for a given account.boolean
Get ID of expandableaccount
object.The name of the person or business that owns the bank account.The type of entity that holds the account.Get expandedaccount
.The bank account type.A set of available payout methods for this bank account.Name of the bank associated with the routing number (e.g.,WELLS FARGO
).Two-letter ISO code representing the country the bank account is located in.Three-letter ISO code for the currency paid out to the bank account.Get ID of expandablecustomer
object.Get expandedcustomer
.Whether this bank account is the default external account for its currency.Always true for a deleted object.Uniquely identifies this particular bank account.Information about the upcoming new requirements for the bank account, including what information needs to be collected, and by when.getId()
Unique identifier for the object.getLast4()
The last four digits of the bank account number.Set of key-value pairs that you can attach to an object.String representing the object's type.Information about the requirements for the bank account, including what information needs to be collected.The routing transit number for the bank account.For bank accounts, possible values arenew
,validated
,verified
,verification_failed
, orerrored
.int
hashCode()
void
setAccount
(String id) void
setAccountHolderName
(String accountHolderName) The name of the person or business that owns the bank account.void
setAccountHolderType
(String accountHolderType) The type of entity that holds the account.void
setAccountObject
(Account expandableObject) void
setAccountType
(String accountType) The bank account type.void
setAvailablePayoutMethods
(List<String> availablePayoutMethods) A set of available payout methods for this bank account.void
setBankName
(String bankName) Name of the bank associated with the routing number (e.g.,WELLS FARGO
).void
setCountry
(String country) Two-letter ISO code representing the country the bank account is located in.void
setCurrency
(String currency) Three-letter ISO code for the currency paid out to the bank account.void
setCustomer
(String id) void
setCustomerObject
(Customer expandableObject) void
setDefaultForCurrency
(Boolean defaultForCurrency) Whether this bank account is the default external account for its currency.void
setDeleted
(Boolean deleted) Always true for a deleted object.void
setFingerprint
(String fingerprint) Uniquely identifies this particular bank account.void
setFutureRequirements
(BankAccount.FutureRequirements futureRequirements) Information about the upcoming new requirements for the bank account, including what information needs to be collected, and by when.void
Unique identifier for the object.void
The last four digits of the bank account number.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
setRequirements
(BankAccount.Requirements requirements) Information about the requirements for the bank account, including what information needs to be collected.void
setResponseGetter
(StripeResponseGetter responseGetter) The specific user onboarding requirement field (in the requirements hash) that needs to be resolved.void
setRoutingNumber
(String routingNumber) The routing transit number for the bank account.void
For bank accounts, possible values arenew
,validated
,verified
,verification_failed
, orerrored
.Updates the metadata, account holder name, and account holder type of a bank account belonging to a Custom account, and optionally sets it as the default for its currency.update
(BankAccountUpdateOnAccountParams params, RequestOptions options) Updates the metadata, account holder name, and account holder type of a bank account belonging to a Custom account, and optionally sets it as the default for its currency.Updates the metadata, account holder name, and account holder type of a bank account belonging to a Custom account, and optionally sets it as the default for its currency.update
(BankAccountUpdateOnCustomerParams params, RequestOptions options) Updates the metadata, account holder name, and account holder type of a bank account belonging to a Custom account, and optionally sets it as the default for its currency.Updates the metadata, account holder name, and account holder type of a bank account belonging to a Custom account, and optionally sets it as the default for its currency.update
(Map<String, Object> params, RequestOptions options) Updates the metadata, account holder name, and account holder type of a bank account belonging to a Custom account, and optionally sets it as the default for its currency.verify()
Verify a specified bank account for a given customer.verify
(RequestOptions options) Verify a specified bank account for a given customer.verify
(BankAccountVerifyParams params) Verify a specified bank account for a given customer.verify
(BankAccountVerifyParams params, RequestOptions options) Verify a specified bank account for a given customer.Verify a specified bank account for a given customer.verify
(Map<String, Object> params, RequestOptions options) Verify a specified bank account for a given customer.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
Methods inherited from interface com.stripe.model.StripeObjectInterface
getLastResponse, setLastResponse
-
Constructor Details
-
BankAccount
public BankAccount()
-
-
Method Details
-
getAccount
Get ID of expandableaccount
object. -
setAccount
-
getAccountObject
Get expandedaccount
. -
setAccountObject
-
getCustomer
Get ID of expandablecustomer
object. -
setCustomer
-
getCustomerObject
Get expandedcustomer
. -
setCustomerObject
-
verify
Verify a specified bank account for a given customer.- Throws:
StripeException
-
verify
Verify a specified bank account for a given customer.- Throws:
StripeException
-
verify
Verify a specified bank account for a given customer.- Throws:
StripeException
-
verify
Verify a specified bank account for a given customer.- Throws:
StripeException
-
verify
Verify a specified bank account for a given customer.- Throws:
StripeException
-
verify
public BankAccount verify(BankAccountVerifyParams params, RequestOptions options) throws StripeException Verify a specified bank account for a given customer.- Throws:
StripeException
-
update
Updates the metadata, account holder name, and account holder type of a bank account belonging to a Custom account, and optionally sets it as the default for its currency. Other bank account details are not editable by design.You can re-enable a disabled bank account by performing an update call without providing any arguments or changes.
Updates the
account_holder_name
,account_holder_type
, andmetadata
of a bank account belonging to a customer. Other bank account details are not editable, by design.- Specified by:
update
in interfaceExternalAccount
- Specified by:
update
in interfaceMetadataStore<BankAccount>
- Throws:
StripeException
-
update
Updates the metadata, account holder name, and account holder type of a bank account belonging to a Custom account, and optionally sets it as the default for its currency. Other bank account details are not editable by design.You can re-enable a disabled bank account by performing an update call without providing any arguments or changes.
Updates the
account_holder_name
,account_holder_type
, andmetadata
of a bank account belonging to a customer. Other bank account details are not editable, by design.- Specified by:
update
in interfaceExternalAccount
- Specified by:
update
in interfaceMetadataStore<BankAccount>
- Throws:
StripeException
-
update
Updates the metadata, account holder name, and account holder type of a bank account belonging to a Custom account, and optionally sets it as the default for its currency. Other bank account details are not editable by design.You can re-enable a disabled bank account by performing an update call without providing any arguments or changes.
Updates the
account_holder_name
,account_holder_type
, andmetadata
of a bank account belonging to a customer. Other bank account details are not editable, by design.- Throws:
StripeException
-
update
public BankAccount update(BankAccountUpdateOnAccountParams params, RequestOptions options) throws StripeException Updates the metadata, account holder name, and account holder type of a bank account belonging to a Custom account, and optionally sets it as the default for its currency. Other bank account details are not editable by design.You can re-enable a disabled bank account by performing an update call without providing any arguments or changes.
Updates the
account_holder_name
,account_holder_type
, andmetadata
of a bank account belonging to a customer. Other bank account details are not editable, by design.- Throws:
StripeException
-
update
Updates the metadata, account holder name, and account holder type of a bank account belonging to a Custom account, and optionally sets it as the default for its currency. Other bank account details are not editable by design.You can re-enable a disabled bank account by performing an update call without providing any arguments or changes.
Updates the
account_holder_name
,account_holder_type
, andmetadata
of a bank account belonging to a customer. Other bank account details are not editable, by design.- Throws:
StripeException
-
update
public BankAccount update(BankAccountUpdateOnCustomerParams params, RequestOptions options) throws StripeException Updates the metadata, account holder name, and account holder type of a bank account belonging to a Custom account, and optionally sets it as the default for its currency. Other bank account details are not editable by design.You can re-enable a disabled bank account by performing an update call without providing any arguments or changes.
Updates the
account_holder_name
,account_holder_type
, andmetadata
of a bank account belonging to a customer. Other bank account details are not editable, by design.- Throws:
StripeException
-
delete
Delete a specified external account for a given account.Delete a specified source for a given customer.
- Specified by:
delete
in interfaceExternalAccount
- Throws:
StripeException
-
delete
Delete a specified external account for a given account.Delete a specified source for a given customer.
- Specified by:
delete
in interfaceExternalAccount
- Throws:
StripeException
-
delete
Delete a specified external account for a given account.Delete a specified source for a given customer.
- Specified by:
delete
in interfaceExternalAccount
- Throws:
StripeException
-
delete
Delete a specified external account for a given account.Delete a specified source for a given customer.
- Specified by:
delete
in interfaceExternalAccount
- Throws:
StripeException
-
setResponseGetter
The specific user onboarding requirement field (in the requirements hash) that needs to be resolved.- Specified by:
setResponseGetter
in interfaceStripeActiveObject
- Overrides:
setResponseGetter
in classApiResource
- Parameters:
responseGetter
- theStripeResponseGetter
instance to use for making further requests.
-
getAccountHolderName
The name of the person or business that owns the bank account. -
getAccountHolderType
The type of entity that holds the account. This can be eitherindividual
orcompany
. -
getAccountType
The bank account type. This can only bechecking
orsavings
in most countries. In Japan, this can only befutsu
ortoza
. -
getAvailablePayoutMethods
A set of available payout methods for this bank account. Only values from this set should be passed as themethod
when creating a payout. -
getBankName
Name of the bank associated with the routing number (e.g.,WELLS FARGO
). -
getCountry
Two-letter ISO code representing the country the bank account is located in. -
getCurrency
Three-letter ISO code for the currency paid out to the bank account. -
getDefaultForCurrency
Whether this bank account is the default external account for its currency. -
getDeleted
Always true for a deleted object. -
getFingerprint
Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same. -
getFutureRequirements
Information about the upcoming new requirements for the bank account, including what information needs to be collected, and by when. -
getLast4
The last four digits of the bank account number. -
getObject
String representing the object's type. Objects of the same type share the same value.Equal to
bank_account
. -
getRequirements
Information about the requirements for the bank account, including what information needs to be collected. -
getRoutingNumber
The routing transit number for the bank account. -
getStatus
For bank accounts, possible values arenew
,validated
,verified
,verification_failed
, orerrored
. 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 a payout sent to this bank account fails, we'll set the status toerrored
and will not continue to send scheduled payouts until the bank details are updated.For external accounts, possible values are
new
,errored
andverification_failed
. If a payout fails, the status is set toerrored
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 toverification_failed
. Other validations aren't run against external accounts because they're only used for payouts. This means the other statuses don't apply. -
setAccountHolderName
The name of the person or business that owns the bank account. -
setAccountHolderType
The type of entity that holds the account. This can be eitherindividual
orcompany
. -
setAccountType
The bank account type. This can only bechecking
orsavings
in most countries. In Japan, this can only befutsu
ortoza
. -
setAvailablePayoutMethods
A set of available payout methods for this bank account. Only values from this set should be passed as themethod
when creating a payout. -
setBankName
Name of the bank associated with the routing number (e.g.,WELLS FARGO
). -
setCountry
Two-letter ISO code representing the country the bank account is located in. -
setCurrency
Three-letter ISO code for the currency paid out to the bank account. -
setDefaultForCurrency
Whether this bank account is the default external account for its currency. -
setDeleted
Always true for a deleted object. -
setFingerprint
Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same. -
setFutureRequirements
Information about the upcoming new requirements for the bank account, including what information needs to be collected, and by when. -
setId
Unique identifier for the object. -
setLast4
The last four digits of the bank account number. -
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
bank_account
. -
setRequirements
Information about the requirements for the bank account, including what information needs to be collected. -
setRoutingNumber
The routing transit number for the bank account. -
setStatus
For bank accounts, possible values arenew
,validated
,verified
,verification_failed
, orerrored
. 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 a payout sent to this bank account fails, we'll set the status toerrored
and will not continue to send scheduled payouts until the bank details are updated.For external accounts, possible values are
new
,errored
andverification_failed
. If a payout fails, the status is set toerrored
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 toverification_failed
. Other validations aren't run against external accounts because they're only used for payouts. This means the other statuses don't apply. -
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<BankAccount>
-