P24PaymentMethodDetails class abstract

Implemented types
Available extensions
Annotations
  • @Freezed.new(unionKey: 'type')

Constructors

P24PaymentMethodDetails({@JsonKey.new(name: "billing_details") required BillingDetails? billingDetails})
Use stripe.confirmCardPayment with payment data from an Element by passing a card or cardNumber Element as payment_methodcard in the data argument.
const
factory
P24PaymentMethodDetails.fromJson(Map<String, dynamic> json)
factory
P24PaymentMethodDetails.id(String id)
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?>(TResult $default(_P24PaymentMethodDetailsWithBilling value), {required TResult id(_IdP24PaymentMethodDetailsIdOnly value)}) → TResult

Available on P24PaymentMethodDetails, provided by the P24PaymentMethodDetailsPatterns extension

A switch-like method, using callbacks.
mapOrNull<TResult extends Object?>(TResult? $default(_P24PaymentMethodDetailsWithBilling value)?, {TResult? id(_IdP24PaymentMethodDetailsIdOnly value)?}) → TResult?

Available on P24PaymentMethodDetails, provided by the P24PaymentMethodDetailsPatterns extension

A variant of map that fallback to returning null.
maybeMap<TResult extends Object?>(TResult $default(_P24PaymentMethodDetailsWithBilling value)?, {TResult id(_IdP24PaymentMethodDetailsIdOnly value)?, required TResult orElse()}) → TResult

Available on P24PaymentMethodDetails, provided by the P24PaymentMethodDetailsPatterns extension

A variant of map that fallback to returning orElse.
maybeWhen<TResult extends Object?>(TResult $default(BillingDetails? billingDetails)?, {TResult id(String id)?, required TResult orElse()}) → TResult

Available on P24PaymentMethodDetails, provided by the P24PaymentMethodDetailsPatterns 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
toJson() Map<String, dynamic>
Serializes this P24PaymentMethodDetails to a JSON map.
inherited
toString() String
A string representation of this object.
inherited
when<TResult extends Object?>(TResult $default(BillingDetails? billingDetails), {required TResult id(String id)}) → TResult

Available on P24PaymentMethodDetails, provided by the P24PaymentMethodDetailsPatterns extension

A switch-like method, using callbacks.
whenOrNull<TResult extends Object?>(TResult? $default(BillingDetails? billingDetails)?, {TResult? id(String id)?}) → TResult?

Available on P24PaymentMethodDetails, provided by the P24PaymentMethodDetailsPatterns extension

A variant of when that fallback to returning null

Operators

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