NextAction class abstract
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.
- Available extensions
- Annotations
- 
    - @Freezed.new(unionKey: 'type')
 
Constructors
- NextAction.displayOxxoDetails({int? expiration, String? voucherURL, String? voucherNumber})
- 
          Contains details necessary for the customer to complete the payment.
            constfactory
- 
          NextAction.fromJson(Map<String, dynamic> json)
- 
          
            factory
- NextAction.multibanco({String? voucherURL})
- 
          Contains details necessary for the customer to complete the payment.
            constfactory
- NextAction.redirectToUrl({String? redirectUrl})
- 
          Contains instructions for redirecting the customer to a certain url
in order to authorise the payment.
            constfactory
- NextAction.verifyWithMicroDeposits({String? arrivalDate, String? redirectUrl, String? microdepositType})
- 
          Contains details describing microdeposits verification flow.
            constfactory
- NextAction.wechatPayRedirect({String? redirectUrl})
- 
          Contains the url for the wechat redirect QR code
            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 redirectToUrl(_NextActionRedirect value), required TResult displayOxxoDetails(_NextActionOxxo value), required TResult wechatPayRedirect(_NextActionWeChatRedirect value), required TResult verifyWithMicroDeposits(_NextActionMicroDeposits value), required TResult multibanco(_NextActionMultiBanco value)}) → TResult 
- 
      Available on NextAction, provided by the NextActionPatterns extension Aswitch-like method, using callbacks.
- 
  mapOrNull<TResult extends Object?> ({TResult? redirectToUrl(_NextActionRedirect value)?, TResult? displayOxxoDetails(_NextActionOxxo value)?, TResult? wechatPayRedirect(_NextActionWeChatRedirect value)?, TResult? verifyWithMicroDeposits(_NextActionMicroDeposits value)?, TResult? multibanco(_NextActionMultiBanco value)?}) → TResult? 
- 
      Available on NextAction, provided by the NextActionPatterns extension A variant ofmapthat fallback to returningnull.
- 
  maybeMap<TResult extends Object?> ({TResult redirectToUrl(_NextActionRedirect value)?, TResult displayOxxoDetails(_NextActionOxxo value)?, TResult wechatPayRedirect(_NextActionWeChatRedirect value)?, TResult verifyWithMicroDeposits(_NextActionMicroDeposits value)?, TResult multibanco(_NextActionMultiBanco value)?, required TResult orElse()}) → TResult 
- 
      Available on NextAction, provided by the NextActionPatterns extension A variant ofmapthat fallback to returningorElse.
- 
  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)?, TResult multibanco(String? voucherURL)?, required TResult orElse()}) → TResult 
- 
      Available on NextAction, provided by the NextActionPatterns extension A variant ofwhenthat fallback to anorElsecallback.
- 
  noSuchMethod(Invocation invocation) → dynamic 
- 
  Invoked when a nonexistent method or property is accessed.
  inherited
- 
  toJson() → Map< String, dynamic> 
- 
  Serializes this NextAction to a JSON map.
  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), required TResult multibanco(String? voucherURL)}) → TResult 
- 
      Available on NextAction, provided by the NextActionPatterns extension Aswitch-like method, using callbacks.
- 
  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? multibanco(String? voucherURL)?}) → TResult? 
- 
      Available on NextAction, provided by the NextActionPatterns extension A variant ofwhenthat fallback to returningnull
Operators
- 
  operator ==(Object other) → bool 
- 
  The equality operator.
  inherited