Struct stripe::BankAccount
source · [−]pub struct BankAccount {Show 17 fields
pub id: BankAccountId,
pub account: Option<Expandable<Account>>,
pub account_holder_name: Option<String>,
pub account_holder_type: Option<String>,
pub account_type: Option<String>,
pub available_payout_methods: Option<Vec<BankAccountAvailablePayoutMethods>>,
pub bank_name: Option<String>,
pub country: Option<String>,
pub currency: Currency,
pub customer: Option<Expandable<Customer>>,
pub default_for_currency: Option<bool>,
pub deleted: bool,
pub fingerprint: Option<String>,
pub last4: Option<String>,
pub metadata: Metadata,
pub routing_number: Option<String>,
pub status: Option<BankAccountStatus>,
}
Expand description
The resource representing a Stripe “BankAccount”.
Fields
id: BankAccountId
Unique identifier for the object.
account: Option<Expandable<Account>>
The ID of the account that the bank account is associated with.
account_holder_name: Option<String>
The name of the person or business that owns the bank account.
account_holder_type: Option<String>
The type of entity that holds the account.
This can be either individual
or company
.
account_type: Option<String>
The bank account type.
This can only be checking
or savings
in most countries.
In Japan, this can only be futsu
or toza
.
available_payout_methods: Option<Vec<BankAccountAvailablePayoutMethods>>
A set of available payout methods for this bank account.
Only values from this set should be passed as the method
when creating a payout.
bank_name: Option<String>
Name of the bank associated with the routing number (e.g., WELLS FARGO
).
country: Option<String>
Two-letter ISO code representing the country the bank account is located in.
currency: Currency
Three-letter ISO code for the currency paid out to the bank account.
customer: Option<Expandable<Customer>>
The ID of the customer that the bank account is associated with.
default_for_currency: Option<bool>
Whether this bank account is the default external account for its currency.
deleted: bool
fingerprint: Option<String>
Uniquely identifies this particular bank account.
You can use this attribute to check whether two bank accounts are the same.
last4: Option<String>
The last four digits of the bank account number.
metadata: Metadata
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.
routing_number: Option<String>
The routing transit number for the bank account.
status: Option<BankAccountStatus>
For bank accounts, possible values are new
, validated
, verified
, verification_failed
, or errored
.
A bank account that hasn’t had any activity or validation performed is new
.
If Stripe can determine that the bank account exists, its status will be validated
.
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 be verified
.
If the verification failed for any reason, such as microdeposit failure, the status will be verification_failed
.
If a transfer sent to this bank account fails, we’ll set the status to errored
and will not continue to send transfers until the bank details are updated. For external accounts, possible values are new
and errored
.
Validations aren’t run against external accounts because they’re only used for payouts.
This means the other statuses don’t apply.
If a transfer fails, the status is set to errored
and transfers are stopped until account details are updated.
Trait Implementations
sourceimpl Clone for BankAccount
impl Clone for BankAccount
sourcefn clone(&self) -> BankAccount
fn clone(&self) -> BankAccount
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for BankAccount
impl Debug for BankAccount
sourceimpl Default for BankAccount
impl Default for BankAccount
sourcefn default() -> BankAccount
fn default() -> BankAccount
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for BankAccount
impl<'de> Deserialize<'de> for BankAccount
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Object for BankAccount
impl Object for BankAccount
sourceimpl Serialize for BankAccount
impl Serialize for BankAccount
Auto Trait Implementations
impl RefUnwindSafe for BankAccount
impl Send for BankAccount
impl Sync for BankAccount
impl Unpin for BankAccount
impl UnwindSafe for BankAccount
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more