NextAction class

Description of the possible next action that must be handled to complete the PaymentIntent.

See: https://stripe.com/docs/api/payment_intents/object#payment_intent_object-next_action-type for more details.

Annotations
  • @Freezed(unionKey: 'type')

Constructors

NextAction.displayOxxoDetails({int? expiration, String? voucherURL, String? voucherNumber})
Contains details necessary for the customer to complete the payment.
const
factory
NextAction.fromJson(Map<String, dynamic> json)
factory
NextAction.redirectToUrl({String? redirectUrl})
Contains instructions for redirecting the customer to a certain url in order to authorise the payment.
const
factory
NextAction.verifyWithMicroDeposits({String? arrivalDate, String? redirectUrl, String? microdepositType})
Contains details describing microdeposits verification flow.
const
factory
NextAction.wechatPayRedirect({String? redirectUrl})
Contains the url for the wechat redirect QR code
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 redirectToUrl(_NextActionRedirect value), required TResult displayOxxoDetails(_NextActionOxxo value), required TResult wechatPayRedirect(_NextActionWeChatRedirect value), required TResult verifyWithMicroDeposits(_NextActionMicroDeposits value)}) → TResult
inherited
mapOrNull<TResult extends Object?>({TResult? redirectToUrl(_NextActionRedirect value)?, TResult? displayOxxoDetails(_NextActionOxxo value)?, TResult? wechatPayRedirect(_NextActionWeChatRedirect value)?, TResult? verifyWithMicroDeposits(_NextActionMicroDeposits value)?}) → TResult?
inherited
maybeMap<TResult extends Object?>({TResult redirectToUrl(_NextActionRedirect value)?, TResult displayOxxoDetails(_NextActionOxxo value)?, TResult wechatPayRedirect(_NextActionWeChatRedirect value)?, TResult verifyWithMicroDeposits(_NextActionMicroDeposits value)?, required TResult orElse()}) → TResult
inherited
maybeWhen<TResult extends Object?>({TResult redirectToUrl(String? redirectUrl)?, TResult displayOxxoDetails(int? expiration, String? voucherURL, String? voucherNumber)?, TResult wechatPayRedirect(String? redirectUrl)?, TResult verifyWithMicroDeposits(String? arrivalDate, String? redirectUrl, String? microdepositType)?, required TResult orElse()}) → TResult
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited
when<TResult extends Object?>({required TResult redirectToUrl(String? redirectUrl), required TResult displayOxxoDetails(int? expiration, String? voucherURL, String? voucherNumber), required TResult wechatPayRedirect(String? redirectUrl), required TResult verifyWithMicroDeposits(String? arrivalDate, String? redirectUrl, String? microdepositType)}) → TResult
inherited
whenOrNull<TResult extends Object?>({TResult? redirectToUrl(String? redirectUrl)?, TResult? displayOxxoDetails(int? expiration, String? voucherURL, String? voucherNumber)?, TResult? wechatPayRedirect(String? redirectUrl)?, TResult? verifyWithMicroDeposits(String? arrivalDate, String? redirectUrl, String? microdepositType)?}) → TResult?
inherited

Operators

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