ApplePayPresentParams class abstract

Available extensions
Annotations
  • @freezed

Constructors

ApplePayPresentParams({required List<ApplePayCartSummaryItem> cartItems, required String country, required String currency, List<ApplePayContactFieldsType>? requiredShippingAddressFields, List<ApplePayContactFieldsType>? requiredBillingContactFields, List<ApplePayShippingMethod>? shippingMethods, @Default.new(false) bool jcbEnabled})
const
factory
ApplePayPresentParams.fromJson(Map<String, dynamic> json)
factory

Properties

cartItems → List<ApplePayCartSummaryItem>
Line Items of the payment request.
no setterinherited
copyWith → $ApplePayPresentParamsCopyWith<ApplePayPresentParams>
Create a copy of ApplePayPresentParams with the given fields replaced by the non-null parameter values.
no setterinherited
country → String
The two letter ISO 3166 country code representing the merchant.
no setterinherited
currency → String
The three letter ISO 4217 code for the currency.
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
jcbEnabled → bool
Add support for jcb as additional payment method.
no setterinherited
requiredBillingContactFields → List<ApplePayContactFieldsType>?
Fields that will be shown on the required billing address section. If empty no fields will be displayed.
no setterinherited
requiredShippingAddressFields → List<ApplePayContactFieldsType>?
Fields that will be shown on the required shipping address section. If empty no fields will be displayed.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
shippingMethods → List<ApplePayShippingMethod>?
List of available shipping methods for goods.
no setterinherited

Methods

map<TResult extends Object?>(TResult $default(_ApplePayPresentParams value)) → TResult

Available on ApplePayPresentParams, provided by the ApplePayPresentParamsPatterns extension

A switch-like method, using callbacks.
mapOrNull<TResult extends Object?>(TResult? $default(_ApplePayPresentParams value)?) → TResult?

Available on ApplePayPresentParams, provided by the ApplePayPresentParamsPatterns extension

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

Available on ApplePayPresentParams, provided by the ApplePayPresentParamsPatterns extension

A variant of map that fallback to returning orElse.
maybeWhen<TResult extends Object?>(TResult $default(List<ApplePayCartSummaryItem> cartItems, String country, String currency, List<ApplePayContactFieldsType>? requiredShippingAddressFields, List<ApplePayContactFieldsType>? requiredBillingContactFields, List<ApplePayShippingMethod>? shippingMethods, bool jcbEnabled)?, {required TResult orElse()}) → TResult

Available on ApplePayPresentParams, provided by the ApplePayPresentParamsPatterns 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 ApplePayPresentParams to a JSON map.
inherited
toString() → String
A string representation of this object.
inherited
when<TResult extends Object?>(TResult $default(List<ApplePayCartSummaryItem> cartItems, String country, String currency, List<ApplePayContactFieldsType>? requiredShippingAddressFields, List<ApplePayContactFieldsType>? requiredBillingContactFields, List<ApplePayShippingMethod>? shippingMethods, bool jcbEnabled)) → TResult

Available on ApplePayPresentParams, provided by the ApplePayPresentParamsPatterns extension

A switch-like method, using callbacks.
whenOrNull<TResult extends Object?>(TResult? $default(List<ApplePayCartSummaryItem> cartItems, String country, String currency, List<ApplePayContactFieldsType>? requiredShippingAddressFields, List<ApplePayContactFieldsType>? requiredBillingContactFields, List<ApplePayShippingMethod>? shippingMethods, bool jcbEnabled)?) → TResult?

Available on ApplePayPresentParams, provided by the ApplePayPresentParamsPatterns extension

A variant of when that fallback to returning null

Operators

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