BankAccountToken class abstract
- Available extensions
- Annotations
-
- @freezed
Constructors
- BankAccountToken({required String id, @Default.new("bank_account") String object, @JsonKey.new(name: "account_holder_name") String? accountHolderName, @JsonKey.new(name: "account_holder_type") BankAccountHolderType? accountHolderType, @JsonKey.new(name: "account_type") String? accountType, @JsonKey.new(name: "bank_name") String? bankName, String? country, String? currency, String? fingerprint, String? last4, @JsonKey.new(name: "routing_number") String? routingNumber, BankAccountStatus? status})
-
constfactory
-
BankAccountToken.fromJson(Map<
String, dynamic> json) -
factory
Properties
- accountHolderName → String?
-
The name of the person or business that owns the bank account.
no setterinherited
- accountHolderType → BankAccountHolderType?
-
The type of entity that holds the account.
This can be either individual or company.
no setterinherited
- accountType → String?
-
The bank account type.
This can only be checking or savings in most countries.
In Japan, this can only be futsu or toza.
no setterinherited
- bankName → String?
-
Name of the bank associated with the routing number (e.g., WELLS FARGO).
no setterinherited
-
copyWith
→ $BankAccountTokenCopyWith<
BankAccountToken> -
Create a copy of BankAccountToken
with the given fields replaced by the non-null parameter values.
no setterinherited
- country → String?
-
Two-letter ISO code representing the country the bank account is
located in.
no setterinherited
- currency → String?
-
Three-letter ISO code for the currency paid out to the bank account.
no setterinherited
- fingerprint → String?
-
Uniquely identifies this particular bank account.
You can use this attribute to check whether two bank accounts are
the same.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
Unique identifier for the object.
no setterinherited
- last4 → String?
-
The last four digits of the bank account number.
no setterinherited
- object → String
-
String representing the object’s type.
Objects of the same type share the same value.
Value is "bank_account".
no setterinherited
- routingNumber → String?
-
The routing transit number for the bank account.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → 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.
no setterinherited
Methods
-
map<
TResult extends Object?> (TResult $default(_BankAccountToken value)) → TResult -
Available on BankAccountToken, provided by the BankAccountTokenPatterns extension
Aswitch
-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_BankAccountToken value)?) → TResult? -
Available on BankAccountToken, provided by the BankAccountTokenPatterns extension
A variant ofmap
that fallback to returningnull
. -
maybeMap<
TResult extends Object?> (TResult $default(_BankAccountToken value)?, {required TResult orElse()}) → TResult -
Available on BankAccountToken, provided by the BankAccountTokenPatterns extension
A variant ofmap
that fallback to returningorElse
. -
maybeWhen<
TResult extends Object?> (TResult $default(String id, String object, String? accountHolderName, BankAccountHolderType? accountHolderType, String? accountType, String? bankName, String? country, String? currency, String? fingerprint, String? last4, String? routingNumber, BankAccountStatus? status)?, {required TResult orElse()}) → TResult -
Available on BankAccountToken, provided by the BankAccountTokenPatterns extension
A variant ofwhen
that fallback to anorElse
callback. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serializes this BankAccountToken to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
when<
TResult extends Object?> (TResult $default(String id, String object, String? accountHolderName, BankAccountHolderType? accountHolderType, String? accountType, String? bankName, String? country, String? currency, String? fingerprint, String? last4, String? routingNumber, BankAccountStatus? status)) → TResult -
Available on BankAccountToken, provided by the BankAccountTokenPatterns extension
Aswitch
-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(String id, String object, String? accountHolderName, BankAccountHolderType? accountHolderType, String? accountType, String? bankName, String? country, String? currency, String? fingerprint, String? last4, String? routingNumber, BankAccountStatus? status)?) → TResult? -
Available on BankAccountToken, provided by the BankAccountTokenPatterns extension
A variant ofwhen
that fallback to returningnull
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited