CollectBankAccountResult class sealed
Result of collectBankAccount / verifyPaymentIntentWithMicrodeposits.
Native SDKs return either a payment intent or a setup intent depending on the client secret that was supplied, so the result is modelled as a sealed union to keep both flows strongly typed.
- Available extensions
- Annotations
-
- @freezed
Constructors
-
CollectBankAccountResult.fromJson(Map<
String, dynamic> json) -
Parses a native method-channel response into the matching variant, or
throws StripeException when neither key is present.
factory
- CollectBankAccountResult.paymentIntent(PaymentIntent paymentIntent)
-
constfactory
- CollectBankAccountResult.setupIntent(SetupIntent setupIntent)
-
constfactory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
map<
TResult extends Object?> ({required TResult paymentIntent(CollectBankAccountPaymentIntentResult value), required TResult setupIntent(CollectBankAccountSetupIntentResult value)}) → TResult -
Available on CollectBankAccountResult, provided by the CollectBankAccountResultPatterns extension
Aswitch-like method, using callbacks. -
mapOrNull<
TResult extends Object?> ({TResult? paymentIntent(CollectBankAccountPaymentIntentResult value)?, TResult? setupIntent(CollectBankAccountSetupIntentResult value)?}) → TResult? -
Available on CollectBankAccountResult, provided by the CollectBankAccountResultPatterns extension
A variant ofmapthat fallback to returningnull. -
maybeMap<
TResult extends Object?> ({TResult paymentIntent(CollectBankAccountPaymentIntentResult value)?, TResult setupIntent(CollectBankAccountSetupIntentResult value)?, required TResult orElse()}) → TResult -
Available on CollectBankAccountResult, provided by the CollectBankAccountResultPatterns extension
A variant ofmapthat fallback to returningorElse. -
maybeWhen<
TResult extends Object?> ({TResult paymentIntent(PaymentIntent paymentIntent)?, TResult setupIntent(SetupIntent setupIntent)?, required TResult orElse()}) → TResult -
Available on CollectBankAccountResult, provided by the CollectBankAccountResultPatterns extension
A variant ofwhenthat fallback to anorElsecallback. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
when<
TResult extends Object?> ({required TResult paymentIntent(PaymentIntent paymentIntent), required TResult setupIntent(SetupIntent setupIntent)}) → TResult -
Available on CollectBankAccountResult, provided by the CollectBankAccountResultPatterns extension
Aswitch-like method, using callbacks. -
whenOrNull<
TResult extends Object?> ({TResult? paymentIntent(PaymentIntent paymentIntent)?, TResult? setupIntent(SetupIntent setupIntent)?}) → TResult? -
Available on CollectBankAccountResult, provided by the CollectBankAccountResultPatterns extension
A variant ofwhenthat fallback to returningnull
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited