IntentMode class sealed

Annotations
  • @freezed

Constructors

IntentMode.fromJson(Map<String, dynamic> json)
factory
IntentMode.paymentMode({required String currencyCode, required int amount, IntentFutureUsage? setupFutureUsage, CaptureMethod? captureMethod})
const
factory
IntentMode.setupMode({String? currencyCode, required IntentFutureUsage setupFutureUsage})
const
factory

Properties

copyWith → $IntentModeCopyWith<IntentMode>
no setterinherited
currencyCode String?
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
setupFutureUsage IntentFutureUsage?
Data related to the future payment intent
no setterinherited

Methods

map<TResult extends Object?>({required TResult paymentMode(_PaymentMode value), required TResult setupMode(_SetupMode value)}) → TResult
inherited
mapOrNull<TResult extends Object?>({TResult? paymentMode(_PaymentMode value)?, TResult? setupMode(_SetupMode value)?}) → TResult?
inherited
maybeMap<TResult extends Object?>({TResult paymentMode(_PaymentMode value)?, TResult setupMode(_SetupMode value)?, required TResult orElse()}) → TResult
inherited
maybeWhen<TResult extends Object?>({TResult paymentMode(String currencyCode, int amount, IntentFutureUsage? setupFutureUsage, CaptureMethod? captureMethod)?, TResult setupMode(String? currencyCode, IntentFutureUsage setupFutureUsage)?, 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 paymentMode(String currencyCode, int amount, IntentFutureUsage? setupFutureUsage, CaptureMethod? captureMethod), required TResult setupMode(String? currencyCode, IntentFutureUsage setupFutureUsage)}) → TResult
inherited
whenOrNull<TResult extends Object?>({TResult? paymentMode(String currencyCode, int amount, IntentFutureUsage? setupFutureUsage, CaptureMethod? captureMethod)?, TResult? setupMode(String? currencyCode, IntentFutureUsage setupFutureUsage)?}) → TResult?
inherited

Operators

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