PaymentRequestType class

Request for a one time payment.

To support different types of payments request include a payment request type. Only supported on iOS 16 and higher.

Annotations
  • @Freezed(unionKey: 'type')

Constructors

PaymentRequestType.automaticReload({required String description, required String managementUrl, required String label, required String reloadAmount, required String thresholdAmount, String? billingAgreement, String? tokenNotificationURL})
Use this for a reload or refill payment
const
factory
PaymentRequestType.fromJson(Map<String, dynamic> json)
factory
PaymentRequestType.multiMerchant({required List<ApplePayMultiMerchant> merchants})
Use this to indicate payments for multiple merchants.
const
factory
PaymentRequestType.recurring({required String description, required String managementUrl, required RecurringCartSummaryItem billing, RecurringCartSummaryItem? trialBilling, String? billingAgreement, String? tokenNotificationURL})
Use this for a recurring payment
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?>({required TResult recurring(_PaymentRequestTypeRecurring value), required TResult automaticReload(_PaymentRequestTypeReload value), required TResult multiMerchant(_PaymentRequestTypeMultiMerchant value)}) → TResult
inherited
mapOrNull<TResult extends Object?>({TResult? recurring(_PaymentRequestTypeRecurring value)?, TResult? automaticReload(_PaymentRequestTypeReload value)?, TResult? multiMerchant(_PaymentRequestTypeMultiMerchant value)?}) → TResult?
inherited
maybeMap<TResult extends Object?>({TResult recurring(_PaymentRequestTypeRecurring value)?, TResult automaticReload(_PaymentRequestTypeReload value)?, TResult multiMerchant(_PaymentRequestTypeMultiMerchant value)?, required TResult orElse()}) → TResult
inherited
maybeWhen<TResult extends Object?>({TResult recurring(String description, String managementUrl, RecurringCartSummaryItem billing, RecurringCartSummaryItem? trialBilling, String? billingAgreement, String? tokenNotificationURL)?, TResult automaticReload(String description, String managementUrl, String label, String reloadAmount, String thresholdAmount, String? billingAgreement, String? tokenNotificationURL)?, TResult multiMerchant(List<ApplePayMultiMerchant> merchants)?, 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 recurring(String description, String managementUrl, RecurringCartSummaryItem billing, RecurringCartSummaryItem? trialBilling, String? billingAgreement, String? tokenNotificationURL), required TResult automaticReload(String description, String managementUrl, String label, String reloadAmount, String thresholdAmount, String? billingAgreement, String? tokenNotificationURL), required TResult multiMerchant(List<ApplePayMultiMerchant> merchants)}) → TResult
inherited
whenOrNull<TResult extends Object?>({TResult? recurring(String description, String managementUrl, RecurringCartSummaryItem billing, RecurringCartSummaryItem? trialBilling, String? billingAgreement, String? tokenNotificationURL)?, TResult? automaticReload(String description, String managementUrl, String label, String reloadAmount, String thresholdAmount, String? billingAgreement, String? tokenNotificationURL)?, TResult? multiMerchant(List<ApplePayMultiMerchant> merchants)?}) → TResult?
inherited

Operators

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