ConfirmCardPaymentData class abstract
- Available extensions
- Annotations
-
- @freezed
Constructors
- ConfirmCardPaymentData({@paymentMethodDetailJsonKey CardPaymentMethodDetails? paymentMethod, ShippingDetails? shipping, @JsonKey.new(name: "return_url") String? returnUrl, @JsonKey.new(name: "receipt_email") String? receiptEmail, @JsonKey.new(name: "setup_future_usage") PaymentIntentSetupFutureUsage? setupFutureUsage, @JsonKey.new(name: "payment_method_options") dynamic paymentMethodOptions})
-
constfactory
-
ConfirmCardPaymentData.fromJson(Map<
String, dynamic> json) -
factory
Properties
-
copyWith
→ $ConfirmCardPaymentDataCopyWith<
ConfirmCardPaymentData> -
Create a copy of ConfirmCardPaymentData
with the given fields replaced by the non-null parameter values.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- paymentMethod → CardPaymentMethodDetails?
-
Either the id of an existing PaymentMethod, or an object containing
data to create a PaymentMethod with.
See the use case sections below for details.
no setterinherited
- paymentMethodOptions → dynamic
-
An object containing payment-method-specific configuration to
confirm the PaymentIntent with.
no setterinherited
- receiptEmail → String?
-
Email address that the receipt for the resulting payment will be sent to.
no setterinherited
- returnUrl → String?
-
If you are handling next actions yourself, pass in a return_url.
If the subsequent action is redirect_to_url,
this URL will be used on the return path for the redirect.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- setupFutureUsage → PaymentIntentSetupFutureUsage?
-
Indicates that you intend to make future payments with this
PaymentIntent's payment method.
no setterinherited
- shipping → ShippingDetails?
-
The shipping details for the payment, if collected.
no setterinherited
Methods
-
map<
TResult extends Object?> (TResult $default(_ConfirmCardPaymentData value)) → TResult -
Available on ConfirmCardPaymentData, provided by the ConfirmCardPaymentDataPatterns extension
Aswitch
-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_ConfirmCardPaymentData value)?) → TResult? -
Available on ConfirmCardPaymentData, provided by the ConfirmCardPaymentDataPatterns extension
A variant ofmap
that fallback to returningnull
. -
maybeMap<
TResult extends Object?> (TResult $default(_ConfirmCardPaymentData value)?, {required TResult orElse()}) → TResult -
Available on ConfirmCardPaymentData, provided by the ConfirmCardPaymentDataPatterns extension
A variant ofmap
that fallback to returningorElse
. -
maybeWhen<
TResult extends Object?> (TResult $default(CardPaymentMethodDetails? paymentMethod, ShippingDetails? shipping, String? returnUrl, String? receiptEmail, PaymentIntentSetupFutureUsage? setupFutureUsage, dynamic paymentMethodOptions)?, {required TResult orElse()}) → TResult -
Available on ConfirmCardPaymentData, provided by the ConfirmCardPaymentDataPatterns extension
A variant ofwhen
that fallback to anorElse
callback. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serializes this ConfirmCardPaymentData to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
when<
TResult extends Object?> (TResult $default(CardPaymentMethodDetails? paymentMethod, ShippingDetails? shipping, String? returnUrl, String? receiptEmail, PaymentIntentSetupFutureUsage? setupFutureUsage, dynamic paymentMethodOptions)) → TResult -
Available on ConfirmCardPaymentData, provided by the ConfirmCardPaymentDataPatterns extension
Aswitch
-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(CardPaymentMethodDetails? paymentMethod, ShippingDetails? shipping, String? returnUrl, String? receiptEmail, PaymentIntentSetupFutureUsage? setupFutureUsage, dynamic paymentMethodOptions)?) → TResult? -
Available on ConfirmCardPaymentData, provided by the ConfirmCardPaymentDataPatterns extension
A variant ofwhen
that fallback to returningnull
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited