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)
const
factory
CollectBankAccountResult.setupIntent(SetupIntent setupIntent)
const
factory

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

A switch-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 of map that fallback to returning null.
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 of map that fallback to returning orElse.
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 of when that fallback to an orElse callback.
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

A switch-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 of when that fallback to returning null

Operators

operator ==(Object other) bool
The equality operator.
inherited