From d1fce742f6f70064f57383c2427c2f61da9bfb7d Mon Sep 17 00:00:00 2001 From: Remon Date: Sun, 3 Nov 2024 17:10:12 +0000 Subject: [PATCH] feat: add customer session client secret to payment sheet --- .../lib/src/models/ach_params.freezed.dart | 54 +- .../lib/src/models/apple_pay.freezed.dart | 203 +-- .../src/models/customer_sheet.freezed.dart | 120 +- .../src/models/payment_intents.freezed.dart | 96 +- .../src/models/payment_methods.freezed.dart | 1255 +++++------------ .../lib/src/models/payment_sheet.dart | 4 + .../lib/src/models/payment_sheet.freezed.dart | 639 +++------ .../lib/src/models/payment_sheet.g.dart | 3 + .../lib/src/models/platform_pay.freezed.dart | 646 +++------ .../lib/src/models/setup_intent.freezed.dart | 78 +- 10 files changed, 882 insertions(+), 2216 deletions(-) diff --git a/packages/stripe_platform_interface/lib/src/models/ach_params.freezed.dart b/packages/stripe_platform_interface/lib/src/models/ach_params.freezed.dart index 7fa0f5ef3..eb76582c3 100644 --- a/packages/stripe_platform_interface/lib/src/models/ach_params.freezed.dart +++ b/packages/stripe_platform_interface/lib/src/models/ach_params.freezed.dart @@ -30,12 +30,8 @@ mixin _$CollectBankAccountParams { /// is supported. PaymentMethodType get paymentMethodType => throw _privateConstructorUsedError; - /// Serializes this CollectBankAccountParams to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of CollectBankAccountParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $CollectBankAccountParamsCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -63,8 +59,6 @@ class _$CollectBankAccountParamsCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of CollectBankAccountParams - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -83,8 +77,6 @@ class _$CollectBankAccountParamsCopyWithImpl<$Res, ) as $Val); } - /// Create a copy of CollectBankAccountParams - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $BillingDetailsCopyWith<$Res> get billingDetails { @@ -120,8 +112,6 @@ class __$$CollectBankAccountParamsImplCopyWithImpl<$Res> $Res Function(_$CollectBankAccountParamsImpl) _then) : super(_value, _then); - /// Create a copy of CollectBankAccountParams - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -180,14 +170,12 @@ class _$CollectBankAccountParamsImpl implements _CollectBankAccountParams { other.paymentMethodType == paymentMethodType)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, billingDetails, paymentMethodType); - /// Create a copy of CollectBankAccountParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$CollectBankAccountParamsImplCopyWith<_$CollectBankAccountParamsImpl> @@ -211,21 +199,19 @@ abstract class _CollectBankAccountParams implements CollectBankAccountParams { factory _CollectBankAccountParams.fromJson(Map json) = _$CollectBankAccountParamsImpl.fromJson; + @override + /// Billingdetails of the account holder /// /// It is required to fill in the name in the billing details - @override BillingDetails get billingDetails; + @override /// The paymentmethod type. At this point only method [PaymentMethodType.USBankAccount] /// is supported. - @override PaymentMethodType get paymentMethodType; - - /// Create a copy of CollectBankAccountParams - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$CollectBankAccountParamsImplCopyWith<_$CollectBankAccountParamsImpl> get copyWith => throw _privateConstructorUsedError; } @@ -248,12 +234,8 @@ mixin _$VerifyMicroDepositsParams { /// When Using this field make sure [amounts] is `null`. String? get descriptorCode => throw _privateConstructorUsedError; - /// Serializes this VerifyMicroDepositsParams to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of VerifyMicroDepositsParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $VerifyMicroDepositsParamsCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -278,8 +260,6 @@ class _$VerifyMicroDepositsParamsCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of VerifyMicroDepositsParams - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -321,8 +301,6 @@ class __$$VerifyMicroDepositsParamsImplCopyWithImpl<$Res> $Res Function(_$VerifyMicroDepositsParamsImpl) _then) : super(_value, _then); - /// Create a copy of VerifyMicroDepositsParams - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -393,14 +371,12 @@ class _$VerifyMicroDepositsParamsImpl implements _VerifyMicroDepositsParams { other.descriptorCode == descriptorCode)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, const DeepCollectionEquality().hash(_amounts), descriptorCode); - /// Create a copy of VerifyMicroDepositsParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$VerifyMicroDepositsParamsImplCopyWith<_$VerifyMicroDepositsParamsImpl> @@ -423,23 +399,21 @@ abstract class _VerifyMicroDepositsParams implements VerifyMicroDepositsParams { factory _VerifyMicroDepositsParams.fromJson(Map json) = _$VerifyMicroDepositsParamsImpl.fromJson; + @override + /// The amounts of the microdeposits that are deposited on the account. /// /// Make sure that the amount is exactly 2. When using this field make sure /// [descriptorCode] is `null`. - @override List? get amounts; + @override /// The descriptor code that is part of the microdepot to the customer bank account. /// /// When Using this field make sure [amounts] is `null`. - @override String? get descriptorCode; - - /// Create a copy of VerifyMicroDepositsParams - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$VerifyMicroDepositsParamsImplCopyWith<_$VerifyMicroDepositsParamsImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_platform_interface/lib/src/models/apple_pay.freezed.dart b/packages/stripe_platform_interface/lib/src/models/apple_pay.freezed.dart index 5e62ae052..378cba9d7 100644 --- a/packages/stripe_platform_interface/lib/src/models/apple_pay.freezed.dart +++ b/packages/stripe_platform_interface/lib/src/models/apple_pay.freezed.dart @@ -50,12 +50,8 @@ mixin _$ApplePayShippingMethod { /// Measured in seconds. int? get endDate => throw _privateConstructorUsedError; - /// Serializes this ApplePayShippingMethod to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of ApplePayShippingMethod - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $ApplePayShippingMethodCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -87,8 +83,6 @@ class _$ApplePayShippingMethodCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of ApplePayShippingMethod - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -162,8 +156,6 @@ class __$$ApplePayShippingMethodImplCopyWithImpl<$Res> $Res Function(_$ApplePayShippingMethodImpl) _then) : super(_value, _then); - /// Create a copy of ApplePayShippingMethod - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -282,14 +274,12 @@ class _$ApplePayShippingMethodImpl implements _ApplePayShippingMethod { (identical(other.endDate, endDate) || other.endDate == endDate)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, label, amount, identifier, isPending, detail, startDate, endDate); - /// Create a copy of ApplePayShippingMethod - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$ApplePayShippingMethodImplCopyWith<_$ApplePayShippingMethodImpl> @@ -317,46 +307,44 @@ abstract class _ApplePayShippingMethod implements ApplePayShippingMethod { factory _ApplePayShippingMethod.fromJson(Map json) = _$ApplePayShippingMethodImpl.fromJson; - /// A short, localized description. @override + + /// A short, localized description. String get label; + @override /// The cost associated with this shipping option. - @override String get amount; + @override /// A unique identifier for the shipping method. - @override String get identifier; + @override /// When creating items for estimates or charges whose final value is not yet known, set this to true. /// /// Defaults to false. - @override bool? get isPending; + @override /// A user-readable description of the shipping method. /// /// For example “Ships in 24 hours.” Don't repeat content - @override String? get detail; + @override /// The unix timestamp of the start date of the expected range of delivery or shipping dates for a package, or the time range when an item is available for pickup. /// /// Measured in seconds - @override int? get startDate; + @override /// The unix timestamp of the end date of the expected range of delivery or shipping dates for a package, or the time range when an item is available for pickup. /// /// Measured in seconds. - @override int? get endDate; - - /// Create a copy of ApplePayShippingMethod - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$ApplePayShippingMethodImplCopyWith<_$ApplePayShippingMethodImpl> get copyWith => throw _privateConstructorUsedError; } @@ -454,13 +442,8 @@ mixin _$ApplePayCartSummaryItem { required TResult orElse(), }) => throw _privateConstructorUsedError; - - /// Serializes this ApplePayCartSummaryItem to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of ApplePayCartSummaryItem - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $ApplePayCartSummaryItemCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -485,8 +468,6 @@ class _$ApplePayCartSummaryItemCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of ApplePayCartSummaryItem - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -528,8 +509,6 @@ class __$$ImmediateCartSummaryItemImplCopyWithImpl<$Res> $Res Function(_$ImmediateCartSummaryItemImpl) _then) : super(_value, _then); - /// Create a copy of ApplePayCartSummaryItem - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -599,13 +578,11 @@ class _$ImmediateCartSummaryItemImpl implements ImmediateCartSummaryItem { other.isPending == isPending)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, label, amount, isPending); - /// Create a copy of ApplePayCartSummaryItem - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$ImmediateCartSummaryItemImplCopyWith<_$ImmediateCartSummaryItemImpl> @@ -720,21 +697,19 @@ abstract class ImmediateCartSummaryItem implements ApplePayCartSummaryItem { factory ImmediateCartSummaryItem.fromJson(Map json) = _$ImmediateCartSummaryItemImpl.fromJson; - /// Short localized description of the item. @override + + /// Short localized description of the item. String get label; + @override /// The monetary amount. - @override String get amount; /// When creating items for estimates or charges whose final value is not yet known, set this to true. bool? get isPending; - - /// Create a copy of ApplePayCartSummaryItem - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$ImmediateCartSummaryItemImplCopyWith<_$ImmediateCartSummaryItemImpl> get copyWith => throw _privateConstructorUsedError; } @@ -759,8 +734,6 @@ class __$$DeferredSummaryItemImplCopyWithImpl<$Res> $Res Function(_$DeferredSummaryItemImpl) _then) : super(_value, _then); - /// Create a copy of ApplePayCartSummaryItem - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -830,13 +803,11 @@ class _$DeferredSummaryItemImpl implements DeferredSummaryItem { other.deferredDate == deferredDate)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, label, amount, deferredDate); - /// Create a copy of ApplePayCartSummaryItem - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$DeferredSummaryItemImplCopyWith<_$DeferredSummaryItemImpl> get copyWith => @@ -951,21 +922,19 @@ abstract class DeferredSummaryItem implements ApplePayCartSummaryItem { factory DeferredSummaryItem.fromJson(Map json) = _$DeferredSummaryItemImpl.fromJson; - /// Short localized description of the item. @override + + /// Short localized description of the item. String get label; + @override /// The monetary amount. - @override String get amount; /// The unix timestamp of the date, in the future, of the payment. Measured in seconds. int get deferredDate; - - /// Create a copy of ApplePayCartSummaryItem - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$DeferredSummaryItemImplCopyWith<_$DeferredSummaryItemImpl> get copyWith => throw _privateConstructorUsedError; } @@ -998,8 +967,6 @@ class __$$RecurringCartSummaryItemImplCopyWithImpl<$Res> $Res Function(_$RecurringCartSummaryItemImpl) _then) : super(_value, _then); - /// Create a copy of ApplePayCartSummaryItem - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1103,14 +1070,12 @@ class _$RecurringCartSummaryItemImpl implements RecurringCartSummaryItem { (identical(other.endDate, endDate) || other.endDate == endDate)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, label, amount, intervalUnit, intervalCount, startDate, endDate); - /// Create a copy of ApplePayCartSummaryItem - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$RecurringCartSummaryItemImplCopyWith<_$RecurringCartSummaryItemImpl> @@ -1231,12 +1196,13 @@ abstract class RecurringCartSummaryItem implements ApplePayCartSummaryItem { factory RecurringCartSummaryItem.fromJson(Map json) = _$RecurringCartSummaryItemImpl.fromJson; - /// Short localized description of the item. @override + + /// Short localized description of the item. String get label; + @override /// The monetary amount. - @override String get amount; /// The amount of time – in calendar units such as day, month, or year – that represents a fraction of the total payment interval. For example, if you set the intervalUnit to 'month' and intervalCount to 3, then the payment interval is three months. @@ -1249,11 +1215,8 @@ abstract class RecurringCartSummaryItem implements ApplePayCartSummaryItem { int? get startDate; ////The unix timestamp of the end date. Measured in seconds. */ int? get endDate; - - /// Create a copy of ApplePayCartSummaryItem - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$RecurringCartSummaryItemImplCopyWith<_$RecurringCartSummaryItemImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1292,12 +1255,8 @@ mixin _$ApplePayPresentParams { /// Add support for jcb as additional payment method. bool get jcbEnabled => throw _privateConstructorUsedError; - /// Serializes this ApplePayPresentParams to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of ApplePayPresentParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $ApplePayPresentParamsCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -1329,8 +1288,6 @@ class _$ApplePayPresentParamsCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of ApplePayPresentParams - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1403,8 +1360,6 @@ class __$$ApplePayPresentParamsImplCopyWithImpl<$Res> $Res Function(_$ApplePayPresentParamsImpl) _then) : super(_value, _then); - /// Create a copy of ApplePayPresentParams - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1565,7 +1520,7 @@ class _$ApplePayPresentParamsImpl implements _ApplePayPresentParams { other.jcbEnabled == jcbEnabled)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash( runtimeType, @@ -1577,9 +1532,7 @@ class _$ApplePayPresentParamsImpl implements _ApplePayPresentParams { const DeepCollectionEquality().hash(_shippingMethods), jcbEnabled); - /// Create a copy of ApplePayPresentParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$ApplePayPresentParamsImplCopyWith<_$ApplePayPresentParamsImpl> @@ -1607,40 +1560,38 @@ abstract class _ApplePayPresentParams implements ApplePayPresentParams { factory _ApplePayPresentParams.fromJson(Map json) = _$ApplePayPresentParamsImpl.fromJson; - /// Line Items of the payment request. @override + + /// Line Items of the payment request. List get cartItems; + @override /// The two letter ISO 3166 country code representing the merchant. - @override String get country; + @override /// The three letter ISO 4217 code for the currency. - @override String get currency; + @override /// Fields that will be shown on the required shipping address section. If /// empty no fields will be displayed. - @override List? get requiredShippingAddressFields; + @override /// Fields that will be shown on the required billing address section. If /// empty no fields will be displayed. - @override List? get requiredBillingContactFields; + @override /// List of available shipping methods for goods. - @override List? get shippingMethods; + @override /// Add support for jcb as additional payment method. - @override bool get jcbEnabled; - - /// Create a copy of ApplePayPresentParams - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$ApplePayPresentParamsImplCopyWith<_$ApplePayPresentParamsImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1660,12 +1611,8 @@ mixin _$ApplePayErrorAddressField { /// Defaults to error in the stripe sdk. String? get message => throw _privateConstructorUsedError; - /// Serializes this ApplePayErrorAddressField to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of ApplePayErrorAddressField - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $ApplePayErrorAddressFieldCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -1690,8 +1637,6 @@ class _$ApplePayErrorAddressFieldCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of ApplePayErrorAddressField - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1733,8 +1678,6 @@ class __$$ApplePayErrorAddressFieldImplCopyWithImpl<$Res> $Res Function(_$ApplePayErrorAddressFieldImpl) _then) : super(_value, _then); - /// Create a copy of ApplePayErrorAddressField - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1787,13 +1730,11 @@ class _$ApplePayErrorAddressFieldImpl implements _ApplePayErrorAddressField { (identical(other.message, message) || other.message == message)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, field, message); - /// Create a copy of ApplePayErrorAddressField - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$ApplePayErrorAddressFieldImplCopyWith<_$ApplePayErrorAddressFieldImpl> @@ -1816,20 +1757,18 @@ abstract class _ApplePayErrorAddressField implements ApplePayErrorAddressField { factory _ApplePayErrorAddressField.fromJson(Map json) = _$ApplePayErrorAddressFieldImpl.fromJson; - /// Address field that is affected by the error @override + + /// Address field that is affected by the error ApplePayContactFieldsType get field; + @override /// The error message that will be shown when it is invalid /// /// Defaults to error in the stripe sdk. - @override String? get message; - - /// Create a copy of ApplePayErrorAddressField - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$ApplePayErrorAddressFieldImplCopyWith<_$ApplePayErrorAddressFieldImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1847,12 +1786,8 @@ mixin _$ApplePayContactName { String? get middleName => throw _privateConstructorUsedError; String? get nickname => throw _privateConstructorUsedError; - /// Serializes this ApplePayContactName to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of ApplePayContactName - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $ApplePayContactNameCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -1882,8 +1817,6 @@ class _$ApplePayContactNameCopyWithImpl<$Res, $Val extends ApplePayContactName> // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of ApplePayContactName - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1948,8 +1881,6 @@ class __$$ApplePayContactNameImplCopyWithImpl<$Res> $Res Function(_$ApplePayContactNameImpl) _then) : super(_value, _then); - /// Create a copy of ApplePayContactName - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -2041,14 +1972,12 @@ class _$ApplePayContactNameImpl implements _ApplePayContactName { other.nickname == nickname)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, familyName, namePrefix, nameSuffix, givenName, middleName, nickname); - /// Create a copy of ApplePayContactName - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$ApplePayContactNameImplCopyWith<_$ApplePayContactNameImpl> get copyWith => @@ -2087,11 +2016,8 @@ abstract class _ApplePayContactName implements ApplePayContactName { String? get middleName; @override String? get nickname; - - /// Create a copy of ApplePayContactName - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$ApplePayContactNameImplCopyWith<_$ApplePayContactNameImpl> get copyWith => throw _privateConstructorUsedError; } @@ -2112,12 +2038,8 @@ mixin _$ApplePayPostalAddress { String? get subAdministrativeArea => throw _privateConstructorUsedError; String? get subLocality => throw _privateConstructorUsedError; - /// Serializes this ApplePayPostalAddress to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of ApplePayPostalAddress - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $ApplePayPostalAddressCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -2150,8 +2072,6 @@ class _$ApplePayPostalAddressCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of ApplePayPostalAddress - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -2230,8 +2150,6 @@ class __$$ApplePayPostalAddressImplCopyWithImpl<$Res> $Res Function(_$ApplePayPostalAddressImpl) _then) : super(_value, _then); - /// Create a copy of ApplePayPostalAddress - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -2339,14 +2257,12 @@ class _$ApplePayPostalAddressImpl implements _ApplePayPostalAddress { other.subLocality == subLocality)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, city, country, postalCode, state, street, isoCountryCode, subAdministrativeArea, subLocality); - /// Create a copy of ApplePayPostalAddress - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$ApplePayPostalAddressImplCopyWith<_$ApplePayPostalAddressImpl> @@ -2391,11 +2307,8 @@ abstract class _ApplePayPostalAddress implements ApplePayPostalAddress { String? get subAdministrativeArea; @override String? get subLocality; - - /// Create a copy of ApplePayPostalAddress - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$ApplePayPostalAddressImplCopyWith<_$ApplePayPostalAddressImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_platform_interface/lib/src/models/customer_sheet.freezed.dart b/packages/stripe_platform_interface/lib/src/models/customer_sheet.freezed.dart index 32991e291..25723698d 100644 --- a/packages/stripe_platform_interface/lib/src/models/customer_sheet.freezed.dart +++ b/packages/stripe_platform_interface/lib/src/models/customer_sheet.freezed.dart @@ -79,12 +79,8 @@ mixin _$CustomerSheetInitParams { @JsonKey(toJson: _cardBrandListToJson) List? get preferredNetworks => throw _privateConstructorUsedError; - /// Serializes this CustomerSheetInitParams to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of CustomerSheetInitParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $CustomerSheetInitParamsCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -131,8 +127,6 @@ class _$CustomerSheetInitParamsCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of CustomerSheetInitParams - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -219,8 +213,6 @@ class _$CustomerSheetInitParamsCopyWithImpl<$Res, ) as $Val); } - /// Create a copy of CustomerSheetInitParams - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentSheetAppearanceCopyWith<$Res>? get appearance { @@ -233,8 +225,6 @@ class _$CustomerSheetInitParamsCopyWithImpl<$Res, }); } - /// Create a copy of CustomerSheetInitParams - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $BillingDetailsCopyWith<$Res>? get defaultBillingDetails { @@ -248,8 +238,6 @@ class _$CustomerSheetInitParamsCopyWithImpl<$Res, }); } - /// Create a copy of CustomerSheetInitParams - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $BillingDetailsCollectionConfigurationCopyWith<$Res>? @@ -313,8 +301,6 @@ class __$$CustomerSheetInitParamsImplCopyWithImpl<$Res> $Res Function(_$CustomerSheetInitParamsImpl) _then) : super(_value, _then); - /// Create a copy of CustomerSheetInitParams - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -556,7 +542,7 @@ class _$CustomerSheetInitParamsImpl implements _CustomerSheetInitParams { const DeepCollectionEquality().equals(other._preferredNetworks, _preferredNetworks)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash( runtimeType, @@ -576,9 +562,7 @@ class _$CustomerSheetInitParamsImpl implements _CustomerSheetInitParams { googlePayEnabled, const DeepCollectionEquality().hash(_preferredNetworks)); - /// Create a copy of CustomerSheetInitParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$CustomerSheetInitParamsImplCopyWith<_$CustomerSheetInitParamsImpl> @@ -617,78 +601,76 @@ abstract class _CustomerSheetInitParams implements CustomerSheetInitParams { factory _CustomerSheetInitParams.fromJson(Map json) = _$CustomerSheetInitParamsImpl.fromJson; - /// Color styling used for the Customersheet UI @override + + /// Color styling used for the Customersheet UI @JsonKey(toJson: UserInterfaceStyleKey.toJson) ThemeMode? get style; + @override /// Appearance of the customersheet. /// /// When no appearance defined it will fallback to [style] or Stripe default. - @override PaymentSheetAppearance? get appearance; + @override /// Optional but recommended for cards, required for other payment methods. The SetupIntent client secret that will be used to confirm a new payment method. If this is missing, you will only be able to add cards without authentication steps. - @override String? get setupIntentClientSecret; + @override /// The identifier of the Stripe Customer object. See https://stripe.com/docs/api/customers/object#customer_object-id - @override String get customerId; + @override /// A short-lived token that allows the SDK to access a Customer's payment methods. - @override String get customerEphemeralKeySecret; + @override /// Your customer-facing business name. The default value is the name of your app. - @override String? get merchantDisplayName; + @override ///This is an experimental feature that may be removed at any time. /// Defaults to true. If true, the customer can delete all saved payment methods. /// If false, the customer can't delete if they only have one saved payment method remaining. - @override bool? get allowsRemovalOfLastSavedPaymentMethod; + @override /// Optional configuration for setting the header text of the Payment Method selection screen - @override String? get headerTextForSelectionScreen; + @override /// CustomerSheet pre-populates fields with the values provided. If `billingDetailsCollectionConfiguration.attachDefaultsToPaymentMethod` is `true`, these values will be attached to the payment method even if they are not collected by the CustomerSheet UI. - @override BillingDetails? get defaultBillingDetails; + @override /// Describes how billing details should be collected. All values default to `AUTOMATIC`. If `NEVER` is used for a required field for the Payment Method, you must provide an appropriate value as part of `defaultBillingDetails`. - @override BillingDetailsCollectionConfiguration? get billingDetailsCollectionConfiguration; + @override /// URL that redirects back to your app that CustomerSheet can use to auto-dismiss web views used for additional authentication, e.g. 3DS2 - @override String? get returnURL; + @override /// Optional configuration to display a custom message when a saved payment method is removed. iOS only. - @override String? get removeSavedPaymentMethodMessage; + @override /// Whether to show Apple Pay as an option. Defaults to `false`. - @override bool get applePayEnabled; + @override /// Whether to show Google Pay as an option. Defaults to `false`. - @override bool get googlePayEnabled; + @override /// The list of preferred networks that should be used to process payments made with a co-branded card. /// This value will only be used if your user hasn't selected a network themselves. - @override @JsonKey(toJson: _cardBrandListToJson) List? get preferredNetworks; - - /// Create a copy of CustomerSheetInitParams - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$CustomerSheetInitParamsImplCopyWith<_$CustomerSheetInitParamsImpl> get copyWith => throw _privateConstructorUsedError; } @@ -712,12 +694,8 @@ mixin _$CustomerSheetPresentParams { /// Time (in milliseconds) before the Customer Sheet will automatically dismiss. int? get timeout => throw _privateConstructorUsedError; - /// Serializes this CustomerSheetPresentParams to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of CustomerSheetPresentParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $CustomerSheetPresentParamsCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -746,8 +724,6 @@ class _$CustomerSheetPresentParamsCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of CustomerSheetPresentParams - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -797,8 +773,6 @@ class __$$CustomerSheetPresentParamsImplCopyWithImpl<$Res> $Res Function(_$CustomerSheetPresentParamsImpl) _then) : super(_value, _then); - /// Create a copy of CustomerSheetPresentParams - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -864,14 +838,12 @@ class _$CustomerSheetPresentParamsImpl implements _CustomerSheetPresentParams { (identical(other.timeout, timeout) || other.timeout == timeout)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, presentationStyle, animationStyle, timeout); - /// Create a copy of CustomerSheetPresentParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$CustomerSheetPresentParamsImplCopyWith<_$CustomerSheetPresentParamsImpl> @@ -896,23 +868,21 @@ abstract class _CustomerSheetPresentParams factory _CustomerSheetPresentParams.fromJson(Map json) = _$CustomerSheetPresentParamsImpl.fromJson; + @override + /// Controls how the modal is presented (after animation). iOS only. Defaults to `popover`. /// See https://developer.apple.com/documentation/uikit/uimodalpresentationstyle for more info. - @override CustomerSheetPresentationStyle? get presentationStyle; + @override /// Controls how the modal animates. iOS only. - @override CustomerSheetAnimationStyle? get animationStyle; + @override /// Time (in milliseconds) before the Customer Sheet will automatically dismiss. - @override int? get timeout; - - /// Create a copy of CustomerSheetPresentParams - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$CustomerSheetPresentParamsImplCopyWith<_$CustomerSheetPresentParamsImpl> get copyWith => throw _privateConstructorUsedError; } @@ -933,12 +903,8 @@ mixin _$CustomerSheetResult { /// The error that occurred StripeError? get error => throw _privateConstructorUsedError; - /// Serializes this CustomerSheetResult to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of CustomerSheetResult - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $CustomerSheetResultCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -969,8 +935,6 @@ class _$CustomerSheetResultCopyWithImpl<$Res, $Val extends CustomerSheetResult> // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of CustomerSheetResult - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -994,8 +958,6 @@ class _$CustomerSheetResultCopyWithImpl<$Res, $Val extends CustomerSheetResult> ) as $Val); } - /// Create a copy of CustomerSheetResult - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentSheetPaymentOptionCopyWith<$Res>? get paymentOption { @@ -1009,8 +971,6 @@ class _$CustomerSheetResultCopyWithImpl<$Res, $Val extends CustomerSheetResult> }); } - /// Create a copy of CustomerSheetResult - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentMethodCopyWith<$Res>? get paymentMethod { @@ -1023,8 +983,6 @@ class _$CustomerSheetResultCopyWithImpl<$Res, $Val extends CustomerSheetResult> }); } - /// Create a copy of CustomerSheetResult - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $StripeErrorCopyWith? get error { @@ -1067,8 +1025,6 @@ class __$$CustomerSheetResultImplCopyWithImpl<$Res> $Res Function(_$CustomerSheetResultImpl) _then) : super(_value, _then); - /// Create a copy of CustomerSheetResult - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1132,14 +1088,12 @@ class _$CustomerSheetResultImpl implements _CustomerSheetResult { (identical(other.error, error) || other.error == error)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, paymentOption, paymentMethod, error); - /// Create a copy of CustomerSheetResult - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$CustomerSheetResultImplCopyWith<_$CustomerSheetResultImpl> get copyWith => @@ -1163,22 +1117,20 @@ abstract class _CustomerSheetResult implements CustomerSheetResult { factory _CustomerSheetResult.fromJson(Map json) = _$CustomerSheetResultImpl.fromJson; - /// The users selected payment option, if one exists. @override + + /// The users selected payment option, if one exists. PaymentSheetPaymentOption? get paymentOption; + @override /// The Stripe PaymentMethod associated with the paymentOption, if it exists. - @override PaymentMethod? get paymentMethod; + @override /// The error that occurred - @override StripeError? get error; - - /// Create a copy of CustomerSheetResult - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$CustomerSheetResultImplCopyWith<_$CustomerSheetResultImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_platform_interface/lib/src/models/payment_intents.freezed.dart b/packages/stripe_platform_interface/lib/src/models/payment_intents.freezed.dart index 112b6bdea..49a747da8 100644 --- a/packages/stripe_platform_interface/lib/src/models/payment_intents.freezed.dart +++ b/packages/stripe_platform_interface/lib/src/models/payment_intents.freezed.dart @@ -75,12 +75,8 @@ mixin _$PaymentIntent { /// This field is only available on stripe web. String? get latestCharge => throw _privateConstructorUsedError; - /// Serializes this PaymentIntent to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of PaymentIntent - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $PaymentIntentCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -125,8 +121,6 @@ class _$PaymentIntentCopyWithImpl<$Res, $Val extends PaymentIntent> // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of PaymentIntent - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -220,8 +214,6 @@ class _$PaymentIntentCopyWithImpl<$Res, $Val extends PaymentIntent> ) as $Val); } - /// Create a copy of PaymentIntent - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $NextActionCopyWith<$Res>? get nextAction { @@ -234,8 +226,6 @@ class _$PaymentIntentCopyWithImpl<$Res, $Val extends PaymentIntent> }); } - /// Create a copy of PaymentIntent - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $ShippingDetailsCopyWith<$Res>? get shipping { @@ -248,8 +238,6 @@ class _$PaymentIntentCopyWithImpl<$Res, $Val extends PaymentIntent> }); } - /// Create a copy of PaymentIntent - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $MandateDataCopyWith<$Res>? get mandateData { @@ -306,8 +294,6 @@ class __$$PaymentIntentImplCopyWithImpl<$Res> _$PaymentIntentImpl _value, $Res Function(_$PaymentIntentImpl) _then) : super(_value, _then); - /// Create a copy of PaymentIntent - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -541,7 +527,7 @@ class _$PaymentIntentImpl implements _PaymentIntent { other.latestCharge == latestCharge)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash( runtimeType, @@ -563,9 +549,7 @@ class _$PaymentIntentImpl implements _PaymentIntent { mandateData, latestCharge); - /// Create a copy of PaymentIntent - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$PaymentIntentImplCopyWith<_$PaymentIntentImpl> get copyWith => @@ -602,81 +586,79 @@ abstract class _PaymentIntent implements PaymentIntent { factory _PaymentIntent.fromJson(Map json) = _$PaymentIntentImpl.fromJson; - /// Unique identifier. @override + + /// Unique identifier. String get id; + @override /// Amount that will be collected in the payment intent. - @override num get amount; + @override /// Timestamp since epoch that represents the time the intent is created. - @override String get created; + @override /// The three letter ISO 4217 code for the currency. - @override String get currency; + @override /// Current status of the intent. - @override PaymentIntentsStatus get status; + @override /// The client is secret is used for handling the payment from the Client side. - @override String get clientSecret; + @override /// Determines whether the intent is in live mode or in test mode. - @override bool get livemode; + @override /// How the funds will be caputure from the customer's account. - @override CaptureMethod get captureMethod; + @override /// Method of how the payment will be confirmed. - @override ConfirmationMethod get confirmationMethod; + @override /// Id of the payment method used in this intent. - @override String? get paymentMethodId; + @override /// Localized description that provides additional context to users. - @override String? get description; + @override /// Email address where the receipt will be send to. - @override String? get receiptEmail; + @override /// Timestamp since epoch when the intent is cancelled. - @override String? get canceledAt; + @override /// Additional action that needs to be taken in order to complete a payment /// using the provided resource. - @override NextAction? get nextAction; + @override /// Shipping information of the payment intent. - @override ShippingDetails? get shipping; + @override /// Mandata data for this paymentintent. - @override MandateData? get mandateData; + @override /// The latest charge created by this payment intent. /// /// This field is only available on stripe web. - @override String? get latestCharge; - - /// Create a copy of PaymentIntent - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$PaymentIntentImplCopyWith<_$PaymentIntentImpl> get copyWith => throw _privateConstructorUsedError; } @@ -703,12 +685,8 @@ mixin _$ShippingDetails { /// with commas. String? get trackingNumber => throw _privateConstructorUsedError; - /// Serializes this ShippingDetails to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of ShippingDetails - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $ShippingDetailsCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -739,8 +717,6 @@ class _$ShippingDetailsCopyWithImpl<$Res, $Val extends ShippingDetails> // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of ShippingDetails - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -774,8 +750,6 @@ class _$ShippingDetailsCopyWithImpl<$Res, $Val extends ShippingDetails> ) as $Val); } - /// Create a copy of ShippingDetails - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $AddressCopyWith<$Res> get address { @@ -812,8 +786,6 @@ class __$$ShippingDetailsImplCopyWithImpl<$Res> _$ShippingDetailsImpl _value, $Res Function(_$ShippingDetailsImpl) _then) : super(_value, _then); - /// Create a copy of ShippingDetails - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -901,14 +873,12 @@ class _$ShippingDetailsImpl implements _ShippingDetails { other.trackingNumber == trackingNumber)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, address, name, carrier, phone, trackingNumber); - /// Create a copy of ShippingDetails - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$ShippingDetailsImplCopyWith<_$ShippingDetailsImpl> get copyWith => @@ -934,31 +904,29 @@ abstract class _ShippingDetails implements ShippingDetails { factory _ShippingDetails.fromJson(Map json) = _$ShippingDetailsImpl.fromJson; - /// Recipient address. @override + + /// Recipient address. Address get address; + @override /// Recipient name. - @override String? get name; + @override /// Deliver service that will ship the product - @override String? get carrier; + @override /// Recipient phone number. - @override String? get phone; + @override /// Tracking number of the shipment. If multiple tracking numbers separate them /// with commas. - @override String? get trackingNumber; - - /// Create a copy of ShippingDetails - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$ShippingDetailsImplCopyWith<_$ShippingDetailsImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_platform_interface/lib/src/models/payment_methods.freezed.dart b/packages/stripe_platform_interface/lib/src/models/payment_methods.freezed.dart index 5ea59f6b4..468af102c 100644 --- a/packages/stripe_platform_interface/lib/src/models/payment_methods.freezed.dart +++ b/packages/stripe_platform_interface/lib/src/models/payment_methods.freezed.dart @@ -71,12 +71,8 @@ mixin _$PaymentMethod { /// Id related to the customer to which this paymentmethod has been saved. String? get customerId => throw _privateConstructorUsedError; - /// Serializes this PaymentMethod to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of PaymentMethod - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $PaymentMethodCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -125,8 +121,6 @@ class _$PaymentMethodCopyWithImpl<$Res, $Val extends PaymentMethod> // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of PaymentMethod - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -205,8 +199,6 @@ class _$PaymentMethodCopyWithImpl<$Res, $Val extends PaymentMethod> ) as $Val); } - /// Create a copy of PaymentMethod - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $BillingDetailsCopyWith<$Res> get billingDetails { @@ -215,8 +207,6 @@ class _$PaymentMethodCopyWithImpl<$Res, $Val extends PaymentMethod> }); } - /// Create a copy of PaymentMethod - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $CardCopyWith<$Res> get card { @@ -225,8 +215,6 @@ class _$PaymentMethodCopyWithImpl<$Res, $Val extends PaymentMethod> }); } - /// Create a copy of PaymentMethod - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $SepaDebitCopyWith<$Res> get sepaDebit { @@ -235,8 +223,6 @@ class _$PaymentMethodCopyWithImpl<$Res, $Val extends PaymentMethod> }); } - /// Create a copy of PaymentMethod - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $BacsDebitCopyWith<$Res> get bacsDebit { @@ -245,8 +231,6 @@ class _$PaymentMethodCopyWithImpl<$Res, $Val extends PaymentMethod> }); } - /// Create a copy of PaymentMethod - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $AuBecsDebitCopyWith<$Res> get auBecsDebit { @@ -255,8 +239,6 @@ class _$PaymentMethodCopyWithImpl<$Res, $Val extends PaymentMethod> }); } - /// Create a copy of PaymentMethod - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $SofortCopyWith<$Res> get sofort { @@ -265,8 +247,6 @@ class _$PaymentMethodCopyWithImpl<$Res, $Val extends PaymentMethod> }); } - /// Create a copy of PaymentMethod - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $IdealCopyWith<$Res> get ideal { @@ -275,8 +255,6 @@ class _$PaymentMethodCopyWithImpl<$Res, $Val extends PaymentMethod> }); } - /// Create a copy of PaymentMethod - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $FpxCopyWith<$Res> get fpx { @@ -285,8 +263,6 @@ class _$PaymentMethodCopyWithImpl<$Res, $Val extends PaymentMethod> }); } - /// Create a copy of PaymentMethod - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $UpiCopyWith<$Res> get upi { @@ -295,8 +271,6 @@ class _$PaymentMethodCopyWithImpl<$Res, $Val extends PaymentMethod> }); } - /// Create a copy of PaymentMethod - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $UsBankAccountCopyWith<$Res> get usBankAccount { @@ -360,8 +334,6 @@ class __$$PaymentMethodImplCopyWithImpl<$Res> _$PaymentMethodImpl _value, $Res Function(_$PaymentMethodImpl) _then) : super(_value, _then); - /// Create a copy of PaymentMethod - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -563,7 +535,7 @@ class _$PaymentMethodImpl implements _PaymentMethod { other.customerId == customerId)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash( runtimeType, @@ -582,9 +554,7 @@ class _$PaymentMethodImpl implements _PaymentMethod { usBankAccount, customerId); - /// Create a copy of PaymentMethod - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$PaymentMethodImplCopyWith<_$PaymentMethodImpl> get copyWith => @@ -619,75 +589,73 @@ abstract class _PaymentMethod implements PaymentMethod { factory _PaymentMethod.fromJson(Map json) = _$PaymentMethodImpl.fromJson; - /// Unique identifier. @override + + /// Unique identifier. String get id; + @override /// Whether or not the object exists in livemode. - @override bool get livemode; + @override /// The type of the paymentmethod. - @override String get paymentMethodType; + @override /// Billing information related to the payment method. - @override BillingDetails get billingDetails; + @override /// Containing additional data in case paymentmethod type is card. - @override @JsonKey(name: 'Card') Card get card; + @override /// Containing additional data in case paymentmethod type is sepa. - @override @JsonKey(name: 'SepaDebit') SepaDebit get sepaDebit; + @override /// Containing additional data in case paymentmethod type is Bacs debit. - @override @JsonKey(name: 'BacsDebit') BacsDebit get bacsDebit; + @override /// Containing additional data in case paymentmethod type is Aubecs debit. - @override @JsonKey(name: 'AuBecsDebit') AuBecsDebit get auBecsDebit; + @override /// Containing additional data in case paymentmethod type is sofort. - @override @JsonKey(name: 'Sofort') Sofort get sofort; + @override /// Containing additional data in case paymentmethod type is Ideal. - @override @JsonKey(name: 'Ideal') Ideal get ideal; + @override /// Containing additional data in case paymentmethod type is FPX. - @override @JsonKey(name: 'Fpx') Fpx get fpx; + @override /// Containing additional data in case paymentmethod type is UPI. - @override @JsonKey(name: 'Upi') Upi get upi; + @override /// Containing additional data in case paymentmethod type is Us bank account. - @override @JsonKey(name: 'USBankAccount') UsBankAccount get usBankAccount; + @override /// Id related to the customer to which this paymentmethod has been saved. - @override String? get customerId; - - /// Create a copy of PaymentMethod - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$PaymentMethodImplCopyWith<_$PaymentMethodImpl> get copyWith => throw _privateConstructorUsedError; } @@ -710,12 +678,8 @@ mixin _$BillingDetails { /// Full name. String? get name => throw _privateConstructorUsedError; - /// Serializes this BillingDetails to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of BillingDetails - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $BillingDetailsCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -741,8 +705,6 @@ class _$BillingDetailsCopyWithImpl<$Res, $Val extends BillingDetails> // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of BillingDetails - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -771,8 +733,6 @@ class _$BillingDetailsCopyWithImpl<$Res, $Val extends BillingDetails> ) as $Val); } - /// Create a copy of BillingDetails - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $AddressCopyWith<$Res>? get address { @@ -808,8 +768,6 @@ class __$$BillingDetailsImplCopyWithImpl<$Res> _$BillingDetailsImpl _value, $Res Function(_$BillingDetailsImpl) _then) : super(_value, _then); - /// Create a copy of BillingDetails - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -880,13 +838,11 @@ class _$BillingDetailsImpl implements _BillingDetails { (identical(other.name, name) || other.name == name)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, email, address, phone, name); - /// Create a copy of BillingDetails - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$BillingDetailsImplCopyWith<_$BillingDetailsImpl> get copyWith => @@ -911,26 +867,24 @@ abstract class _BillingDetails implements BillingDetails { factory _BillingDetails.fromJson(Map json) = _$BillingDetailsImpl.fromJson; - /// Email address. @override + + /// Email address. String? get email; + @override /// Billing address. - @override Address? get address; + @override /// Billing phone number. - @override String? get phone; + @override /// Full name. - @override String? get name; - - /// Create a copy of BillingDetails - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$BillingDetailsImplCopyWith<_$BillingDetailsImpl> get copyWith => throw _privateConstructorUsedError; } @@ -950,12 +904,8 @@ mixin _$AuBecsDebit { /// Six digit number identifying the bank or branch for this account. String? get bsbNumber => throw _privateConstructorUsedError; - /// Serializes this AuBecsDebit to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of AuBecsDebit - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $AuBecsDebitCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -979,8 +929,6 @@ class _$AuBecsDebitCopyWithImpl<$Res, $Val extends AuBecsDebit> // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of AuBecsDebit - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1024,8 +972,6 @@ class __$$AuBecsDebitImplCopyWithImpl<$Res> _$AuBecsDebitImpl _value, $Res Function(_$AuBecsDebitImpl) _then) : super(_value, _then); - /// Create a copy of AuBecsDebit - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1088,13 +1034,11 @@ class _$AuBecsDebitImpl implements _AuBecsDebit { other.bsbNumber == bsbNumber)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, fingerprint, last4, bsbNumber); - /// Create a copy of AuBecsDebit - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$AuBecsDebitImplCopyWith<_$AuBecsDebitImpl> get copyWith => @@ -1117,22 +1061,20 @@ abstract class _AuBecsDebit implements AuBecsDebit { factory _AuBecsDebit.fromJson(Map json) = _$AuBecsDebitImpl.fromJson; - /// Unique identifier for the bankaccount. @override + + /// Unique identifier for the bankaccount. String? get fingerprint; + @override /// Last 4 digits of the bankaccount number. - @override String? get last4; + @override /// Six digit number identifying the bank or branch for this account. - @override String? get bsbNumber; - - /// Create a copy of AuBecsDebit - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$AuBecsDebitImplCopyWith<_$AuBecsDebitImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1152,12 +1094,8 @@ mixin _$BacsDebit { /// Last 4 digits of the bank account. String? get last4 => throw _privateConstructorUsedError; - /// Serializes this BacsDebit to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of BacsDebit - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $BacsDebitCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -1180,8 +1118,6 @@ class _$BacsDebitCopyWithImpl<$Res, $Val extends BacsDebit> // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of BacsDebit - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1225,8 +1161,6 @@ class __$$BacsDebitImplCopyWithImpl<$Res> _$BacsDebitImpl _value, $Res Function(_$BacsDebitImpl) _then) : super(_value, _then); - /// Create a copy of BacsDebit - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1289,13 +1223,11 @@ class _$BacsDebitImpl implements _BacsDebit { (identical(other.last4, last4) || other.last4 == last4)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, sortCode, fingerprint, last4); - /// Create a copy of BacsDebit - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$BacsDebitImplCopyWith<_$BacsDebitImpl> get copyWith => @@ -1318,22 +1250,20 @@ abstract class _BacsDebit implements BacsDebit { factory _BacsDebit.fromJson(Map json) = _$BacsDebitImpl.fromJson; - /// Sort code of the bankaccount. @override + + /// Sort code of the bankaccount. String? get sortCode; + @override /// Unique identifier for the bankaccount. - @override String? get fingerprint; + @override /// Last 4 digits of the bank account. - @override String? get last4; - - /// Create a copy of BacsDebit - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$BacsDebitImplCopyWith<_$BacsDebitImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1372,12 +1302,8 @@ mixin _$Card { ThreeDSecureUsage? get threeDSecureUsage => throw _privateConstructorUsedError; - /// Serializes this Card to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of Card - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $CardCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -1410,8 +1336,6 @@ class _$CardCopyWithImpl<$Res, $Val extends Card> // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of Card - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1465,8 +1389,6 @@ class _$CardCopyWithImpl<$Res, $Val extends Card> ) as $Val); } - /// Create a copy of Card - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $ThreeDSecureUsageCopyWith<$Res>? get threeDSecureUsage { @@ -1509,8 +1431,6 @@ class __$$CardImplCopyWithImpl<$Res> __$$CardImplCopyWithImpl(_$CardImpl _value, $Res Function(_$CardImpl) _then) : super(_value, _then); - /// Create a copy of Card - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1655,7 +1575,7 @@ class _$CardImpl implements _Card { other.threeDSecureUsage == threeDSecureUsage)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash( runtimeType, @@ -1669,9 +1589,7 @@ class _$CardImpl implements _Card { const DeepCollectionEquality().hash(_availableNetworks), threeDSecureUsage); - /// Create a copy of Card - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$CardImplCopyWith<_$CardImpl> get copyWith => @@ -1699,46 +1617,44 @@ abstract class _Card implements Card { factory _Card.fromJson(Map json) = _$CardImpl.fromJson; - /// The brand associated to the card e.g. (visa, amex). @override + + /// The brand associated to the card e.g. (visa, amex). String? get brand; + @override /// Two letter iso code. - @override String? get country; + @override /// four digit number representing the year of expiry of the card. - @override int? get expYear; + @override /// two digit number representing the month of expire of the card. - @override int? get expMonth; + @override /// card funding type e.g. (credit, debit). - @override String? get funding; + @override /// last four digits of the card. - @override String? get last4; + @override /// The preffered card brand for payment - @override String? get preferredNetwork; + @override /// The available networks the card can run. - @override List? get availableNetworks; + @override /// Three 3ds usage data. - @override ThreeDSecureUsage? get threeDSecureUsage; - - /// Create a copy of Card - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$CardImplCopyWith<_$CardImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1755,12 +1671,8 @@ mixin _$Fpx { /// accountholder type String? get accountHolderType => throw _privateConstructorUsedError; - /// Serializes this Fpx to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of Fpx - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $FpxCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -1781,8 +1693,6 @@ class _$FpxCopyWithImpl<$Res, $Val extends Fpx> implements $FpxCopyWith<$Res> { // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of Fpx - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1817,8 +1727,6 @@ class __$$FpxImplCopyWithImpl<$Res> extends _$FpxCopyWithImpl<$Res, _$FpxImpl> __$$FpxImplCopyWithImpl(_$FpxImpl _value, $Res Function(_$FpxImpl) _then) : super(_value, _then); - /// Create a copy of Fpx - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1870,13 +1778,11 @@ class _$FpxImpl implements _Fpx { other.accountHolderType == accountHolderType)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, bank, accountHolderType); - /// Create a copy of Fpx - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$FpxImplCopyWith<_$FpxImpl> get copyWith => @@ -1896,18 +1802,16 @@ abstract class _Fpx implements Fpx { factory _Fpx.fromJson(Map json) = _$FpxImpl.fromJson; - /// the customer bank @override + + /// the customer bank String? get bank; + @override /// accountholder type - @override String? get accountHolderType; - - /// Create a copy of Fpx - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$FpxImplCopyWith<_$FpxImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1924,12 +1828,8 @@ mixin _$Ideal { /// The bank of the customer String? get bank => throw _privateConstructorUsedError; - /// Serializes this Ideal to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of Ideal - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $IdealCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -1951,8 +1851,6 @@ class _$IdealCopyWithImpl<$Res, $Val extends Ideal> // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of Ideal - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1990,8 +1888,6 @@ class __$$IdealImplCopyWithImpl<$Res> _$IdealImpl _value, $Res Function(_$IdealImpl) _then) : super(_value, _then); - /// Create a copy of Ideal - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -2043,13 +1939,11 @@ class _$IdealImpl implements _Ideal { (identical(other.bank, bank) || other.bank == bank)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, bankIdentifierCode, bank); - /// Create a copy of Ideal - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$IdealImplCopyWith<_$IdealImpl> get copyWith => @@ -2069,18 +1963,16 @@ abstract class _Ideal implements Ideal { factory _Ideal.fromJson(Map json) = _$IdealImpl.fromJson; - /// The BIC code of the bank @override + + /// The BIC code of the bank String? get bankIdentifierCode; + @override /// The bank of the customer - @override String? get bank; - - /// Create a copy of Ideal - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$IdealImplCopyWith<_$IdealImpl> get copyWith => throw _privateConstructorUsedError; } @@ -2103,12 +1995,8 @@ mixin _$SepaDebit { /// Last four characters of IBAN. String? get last4 => throw _privateConstructorUsedError; - /// Serializes this SepaDebit to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of SepaDebit - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $SepaDebitCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -2132,8 +2020,6 @@ class _$SepaDebitCopyWithImpl<$Res, $Val extends SepaDebit> // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of SepaDebit - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -2183,8 +2069,6 @@ class __$$SepaDebitImplCopyWithImpl<$Res> _$SepaDebitImpl _value, $Res Function(_$SepaDebitImpl) _then) : super(_value, _then); - /// Create a copy of SepaDebit - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -2258,14 +2142,12 @@ class _$SepaDebitImpl implements _SepaDebit { (identical(other.last4, last4) || other.last4 == last4)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, country, bankCode, fingerprint, last4); - /// Create a copy of SepaDebit - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$SepaDebitImplCopyWith<_$SepaDebitImpl> get copyWith => @@ -2289,26 +2171,24 @@ abstract class _SepaDebit implements SepaDebit { factory _SepaDebit.fromJson(Map json) = _$SepaDebitImpl.fromJson; - /// Two letter ISO code representing the country of the bank account. @override + + /// Two letter ISO code representing the country of the bank account. String? get country; + @override /// Bank code associated with the bankaccount. - @override String? get bankCode; + @override /// Unique ID for the bank account. - @override String? get fingerprint; + @override /// Last four characters of IBAN. - @override String? get last4; - - /// Create a copy of SepaDebit - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$SepaDebitImplCopyWith<_$SepaDebitImpl> get copyWith => throw _privateConstructorUsedError; } @@ -2322,12 +2202,8 @@ mixin _$Sofort { /// Two letter ISO code representing the country of the bank account. String? get country => throw _privateConstructorUsedError; - /// Serializes this Sofort to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of Sofort - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $SofortCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -2349,8 +2225,6 @@ class _$SofortCopyWithImpl<$Res, $Val extends Sofort> // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of Sofort - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -2383,8 +2257,6 @@ class __$$SofortImplCopyWithImpl<$Res> _$SofortImpl _value, $Res Function(_$SofortImpl) _then) : super(_value, _then); - /// Create a copy of Sofort - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -2425,13 +2297,11 @@ class _$SofortImpl implements _Sofort { (identical(other.country, country) || other.country == country)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, country); - /// Create a copy of Sofort - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$SofortImplCopyWith<_$SofortImpl> get copyWith => @@ -2450,14 +2320,12 @@ abstract class _Sofort implements Sofort { factory _Sofort.fromJson(Map json) = _$SofortImpl.fromJson; - /// Two letter ISO code representing the country of the bank account. @override - String? get country; - /// Create a copy of Sofort - /// with the given fields replaced by the non-null parameter values. + /// Two letter ISO code representing the country of the bank account. + String? get country; @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$SofortImplCopyWith<_$SofortImpl> get copyWith => throw _privateConstructorUsedError; } @@ -2471,12 +2339,8 @@ mixin _$Upi { /// The customer's vpa. String? get vpa => throw _privateConstructorUsedError; - /// Serializes this Upi to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of Upi - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $UpiCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -2497,8 +2361,6 @@ class _$UpiCopyWithImpl<$Res, $Val extends Upi> implements $UpiCopyWith<$Res> { // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of Upi - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -2528,8 +2390,6 @@ class __$$UpiImplCopyWithImpl<$Res> extends _$UpiCopyWithImpl<$Res, _$UpiImpl> __$$UpiImplCopyWithImpl(_$UpiImpl _value, $Res Function(_$UpiImpl) _then) : super(_value, _then); - /// Create a copy of Upi - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -2570,13 +2430,11 @@ class _$UpiImpl implements _Upi { (identical(other.vpa, vpa) || other.vpa == vpa)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, vpa); - /// Create a copy of Upi - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$UpiImplCopyWith<_$UpiImpl> get copyWith => @@ -2595,14 +2453,12 @@ abstract class _Upi implements Upi { factory _Upi.fromJson(Map json) = _$UpiImpl.fromJson; - /// The customer's vpa. @override - String? get vpa; - /// Create a copy of Upi - /// with the given fields replaced by the non-null parameter values. + /// The customer's vpa. + String? get vpa; @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$UpiImplCopyWith<_$UpiImpl> get copyWith => throw _privateConstructorUsedError; } @@ -2641,12 +2497,8 @@ mixin _$UsBankAccount { /// list of preferred network names List? get supportedNetworks => throw _privateConstructorUsedError; - /// Serializes this UsBankAccount to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of UsBankAccount - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $UsBankAccountCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -2679,8 +2531,6 @@ class _$UsBankAccountCopyWithImpl<$Res, $Val extends UsBankAccount> // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of UsBankAccount - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -2763,8 +2613,6 @@ class __$$UsBankAccountImplCopyWithImpl<$Res> _$UsBankAccountImpl _value, $Res Function(_$UsBankAccountImpl) _then) : super(_value, _then); - /// Create a copy of UsBankAccount - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -2913,7 +2761,7 @@ class _$UsBankAccountImpl implements _UsBankAccount { .equals(other._supportedNetworks, _supportedNetworks)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash( runtimeType, @@ -2927,9 +2775,7 @@ class _$UsBankAccountImpl implements _UsBankAccount { preferredNetwork, const DeepCollectionEquality().hash(_supportedNetworks)); - /// Create a copy of UsBankAccount - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$UsBankAccountImplCopyWith<_$UsBankAccountImpl> get copyWith => @@ -2958,46 +2804,44 @@ abstract class _UsBankAccount implements UsBankAccount { factory _UsBankAccount.fromJson(Map json) = _$UsBankAccountImpl.fromJson; - /// Routing number of the bank account @override + + /// Routing number of the bank account String? get routingNumber; + @override /// Last 4 digits of the account - @override String? get last4; + @override /// The bank account type of the holder - @override BankAccountHolderType? get accountHolderType; + @override /// The account type - @override UsBankAccountType? get accountType; + @override /// The name of the bank of the account - @override String? get bankName; + @override /// Unique identifier for the bankaccount. - @override String? get fingerprint; + @override /// Number of linkedaccount - @override String? get linkedAccount; + @override /// list of preferred network - @override String? get preferredNetwork; + @override /// list of preferred network names - @override List? get supportedNetworks; - - /// Create a copy of UsBankAccount - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$UsBankAccountImplCopyWith<_$UsBankAccountImpl> get copyWith => throw _privateConstructorUsedError; } @@ -3239,8 +3083,6 @@ mixin _$PaymentMethodParams { required TResult orElse(), }) => throw _privateConstructorUsedError; - - /// Serializes this PaymentMethodParams to a JSON map. Map toJson() => throw _privateConstructorUsedError; } @@ -3260,9 +3102,6 @@ class _$PaymentMethodParamsCopyWithImpl<$Res, $Val extends PaymentMethodParams> final $Val _value; // ignore: unused_field final $Res Function($Val) _then; - - /// Create a copy of PaymentMethodParams - /// with the given fields replaced by the non-null parameter values. } /// @nodoc @@ -3287,8 +3126,6 @@ class __$$PaymentMethodParamsCardImplCopyWithImpl<$Res> $Res Function(_$PaymentMethodParamsCardImpl) _then) : super(_value, _then); - /// Create a copy of PaymentMethodParams - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -3302,8 +3139,6 @@ class __$$PaymentMethodParamsCardImplCopyWithImpl<$Res> )); } - /// Create a copy of PaymentMethodParams - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentMethodDataCopyWith<$Res> get paymentMethodData { @@ -3345,13 +3180,11 @@ class _$PaymentMethodParamsCardImpl implements _PaymentMethodParamsCard { other.paymentMethodData == paymentMethodData)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, paymentMethodData); - /// Create a copy of PaymentMethodParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$PaymentMethodParamsCardImplCopyWith<_$PaymentMethodParamsCardImpl> @@ -3575,13 +3408,11 @@ abstract class _PaymentMethodParamsCard implements PaymentMethodParams { factory _PaymentMethodParamsCard.fromJson(Map json) = _$PaymentMethodParamsCardImpl.fromJson; - /// Paymentmethod data for this paymentmethod. @override - PaymentMethodData get paymentMethodData; - /// Create a copy of PaymentMethodParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + /// Paymentmethod data for this paymentmethod. + PaymentMethodData get paymentMethodData; + @JsonKey(ignore: true) _$$PaymentMethodParamsCardImplCopyWith<_$PaymentMethodParamsCardImpl> get copyWith => throw _privateConstructorUsedError; } @@ -3608,8 +3439,6 @@ class __$$PaymentMethodParamsCardWithTokenImplCopyWithImpl<$Res> $Res Function(_$PaymentMethodParamsCardWithTokenImpl) _then) : super(_value, _then); - /// Create a copy of PaymentMethodParams - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -3623,8 +3452,6 @@ class __$$PaymentMethodParamsCardWithTokenImplCopyWithImpl<$Res> )); } - /// Create a copy of PaymentMethodParams - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentMethodDataCardFromTokenCopyWith<$Res> get paymentMethodData { @@ -3669,13 +3496,11 @@ class _$PaymentMethodParamsCardWithTokenImpl other.paymentMethodData == paymentMethodData)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, paymentMethodData); - /// Create a copy of PaymentMethodParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$PaymentMethodParamsCardWithTokenImplCopyWith< @@ -3902,13 +3727,11 @@ abstract class _PaymentMethodParamsCardWithToken Map json) = _$PaymentMethodParamsCardWithTokenImpl.fromJson; - /// Paymentmethod data for this paymentmethod. @override - PaymentMethodDataCardFromToken get paymentMethodData; - /// Create a copy of PaymentMethodParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + /// Paymentmethod data for this paymentmethod. + PaymentMethodDataCardFromToken get paymentMethodData; + @JsonKey(ignore: true) _$$PaymentMethodParamsCardWithTokenImplCopyWith< _$PaymentMethodParamsCardWithTokenImpl> get copyWith => throw _privateConstructorUsedError; @@ -3936,8 +3759,6 @@ class __$$PaymentMethodParamsCardWithMethodIdImplCopyWithImpl<$Res> $Res Function(_$PaymentMethodParamsCardWithMethodIdImpl) _then) : super(_value, _then); - /// Create a copy of PaymentMethodParams - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -3951,8 +3772,6 @@ class __$$PaymentMethodParamsCardWithMethodIdImplCopyWithImpl<$Res> )); } - /// Create a copy of PaymentMethodParams - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentMethodDataCardFromMethodCopyWith<$Res> get paymentMethodData { @@ -3997,13 +3816,11 @@ class _$PaymentMethodParamsCardWithMethodIdImpl other.paymentMethodData == paymentMethodData)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, paymentMethodData); - /// Create a copy of PaymentMethodParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$PaymentMethodParamsCardWithMethodIdImplCopyWith< @@ -4230,13 +4047,11 @@ abstract class _PaymentMethodParamsCardWithMethodId Map json) = _$PaymentMethodParamsCardWithMethodIdImpl.fromJson; - /// Payment method data object for card from payment method. @override - PaymentMethodDataCardFromMethod get paymentMethodData; - /// Create a copy of PaymentMethodParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + /// Payment method data object for card from payment method. + PaymentMethodDataCardFromMethod get paymentMethodData; + @JsonKey(ignore: true) _$$PaymentMethodParamsCardWithMethodIdImplCopyWith< _$PaymentMethodParamsCardWithMethodIdImpl> get copyWith => throw _privateConstructorUsedError; @@ -4264,8 +4079,6 @@ class __$$PaymentMethodParamsAlipayImplCopyWithImpl<$Res> $Res Function(_$PaymentMethodParamsAlipayImpl) _then) : super(_value, _then); - /// Create a copy of PaymentMethodParams - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -4279,8 +4092,6 @@ class __$$PaymentMethodParamsAlipayImplCopyWithImpl<$Res> )); } - /// Create a copy of PaymentMethodParams - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentMethodDataCopyWith<$Res> get paymentMethodData { @@ -4322,13 +4133,11 @@ class _$PaymentMethodParamsAlipayImpl implements _PaymentMethodParamsAlipay { other.paymentMethodData == paymentMethodData)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, paymentMethodData); - /// Create a copy of PaymentMethodParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$PaymentMethodParamsAlipayImplCopyWith<_$PaymentMethodParamsAlipayImpl> @@ -4552,13 +4361,11 @@ abstract class _PaymentMethodParamsAlipay implements PaymentMethodParams { factory _PaymentMethodParamsAlipay.fromJson(Map json) = _$PaymentMethodParamsAlipayImpl.fromJson; - /// Paymentmethod data for this paymentmethod. @override - PaymentMethodData get paymentMethodData; - /// Create a copy of PaymentMethodParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + /// Paymentmethod data for this paymentmethod. + PaymentMethodData get paymentMethodData; + @JsonKey(ignore: true) _$$PaymentMethodParamsAlipayImplCopyWith<_$PaymentMethodParamsAlipayImpl> get copyWith => throw _privateConstructorUsedError; } @@ -4585,8 +4392,6 @@ class __$$PaymentMethodParamsCashAppPayImplCopyWithImpl<$Res> $Res Function(_$PaymentMethodParamsCashAppPayImpl) _then) : super(_value, _then); - /// Create a copy of PaymentMethodParams - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -4600,8 +4405,6 @@ class __$$PaymentMethodParamsCashAppPayImplCopyWithImpl<$Res> )); } - /// Create a copy of PaymentMethodParams - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentMethodDataCopyWith<$Res> get paymentMethodData { @@ -4645,13 +4448,11 @@ class _$PaymentMethodParamsCashAppPayImpl other.paymentMethodData == paymentMethodData)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, paymentMethodData); - /// Create a copy of PaymentMethodParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$PaymentMethodParamsCashAppPayImplCopyWith< @@ -4876,13 +4677,11 @@ abstract class _PaymentMethodParamsCashAppPay implements PaymentMethodParams { factory _PaymentMethodParamsCashAppPay.fromJson(Map json) = _$PaymentMethodParamsCashAppPayImpl.fromJson; - /// Paymentmethod data for this paymentmethod. @override - PaymentMethodData get paymentMethodData; - /// Create a copy of PaymentMethodParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + /// Paymentmethod data for this paymentmethod. + PaymentMethodData get paymentMethodData; + @JsonKey(ignore: true) _$$PaymentMethodParamsCashAppPayImplCopyWith< _$PaymentMethodParamsCashAppPayImpl> get copyWith => throw _privateConstructorUsedError; @@ -4910,8 +4709,6 @@ class __$$PaymentMethodParamsIdealImplCopyWithImpl<$Res> $Res Function(_$PaymentMethodParamsIdealImpl) _then) : super(_value, _then); - /// Create a copy of PaymentMethodParams - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -4925,8 +4722,6 @@ class __$$PaymentMethodParamsIdealImplCopyWithImpl<$Res> )); } - /// Create a copy of PaymentMethodParams - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentMethodDataIdealCopyWith<$Res> get paymentMethodData { @@ -4969,13 +4764,11 @@ class _$PaymentMethodParamsIdealImpl implements _PaymentMethodParamsIdeal { other.paymentMethodData == paymentMethodData)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, paymentMethodData); - /// Create a copy of PaymentMethodParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$PaymentMethodParamsIdealImplCopyWith<_$PaymentMethodParamsIdealImpl> @@ -5199,13 +4992,11 @@ abstract class _PaymentMethodParamsIdeal implements PaymentMethodParams { factory _PaymentMethodParamsIdeal.fromJson(Map json) = _$PaymentMethodParamsIdealImpl.fromJson; - /// Paymentmethod data for this paymentmethod. @override - PaymentMethodDataIdeal get paymentMethodData; - /// Create a copy of PaymentMethodParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + /// Paymentmethod data for this paymentmethod. + PaymentMethodDataIdeal get paymentMethodData; + @JsonKey(ignore: true) _$$PaymentMethodParamsIdealImplCopyWith<_$PaymentMethodParamsIdealImpl> get copyWith => throw _privateConstructorUsedError; } @@ -5232,8 +5023,6 @@ class __$$PaymentMethodParamsAubecsImplCopyWithImpl<$Res> $Res Function(_$PaymentMethodParamsAubecsImpl) _then) : super(_value, _then); - /// Create a copy of PaymentMethodParams - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -5247,8 +5036,6 @@ class __$$PaymentMethodParamsAubecsImplCopyWithImpl<$Res> )); } - /// Create a copy of PaymentMethodParams - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentMethodDataAubecsCopyWith<$Res> get paymentMethodData { @@ -5291,13 +5078,11 @@ class _$PaymentMethodParamsAubecsImpl implements _PaymentMethodParamsAubecs { other.paymentMethodData == paymentMethodData)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, paymentMethodData); - /// Create a copy of PaymentMethodParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$PaymentMethodParamsAubecsImplCopyWith<_$PaymentMethodParamsAubecsImpl> @@ -5521,13 +5306,11 @@ abstract class _PaymentMethodParamsAubecs implements PaymentMethodParams { factory _PaymentMethodParamsAubecs.fromJson(Map json) = _$PaymentMethodParamsAubecsImpl.fromJson; - /// Paymentmethod data for this paymentmethod. @override - PaymentMethodDataAubecs get paymentMethodData; - /// Create a copy of PaymentMethodParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + /// Paymentmethod data for this paymentmethod. + PaymentMethodDataAubecs get paymentMethodData; + @JsonKey(ignore: true) _$$PaymentMethodParamsAubecsImplCopyWith<_$PaymentMethodParamsAubecsImpl> get copyWith => throw _privateConstructorUsedError; } @@ -5554,8 +5337,6 @@ class __$$PaymentMethodParamsBankContactImplCopyWithImpl<$Res> $Res Function(_$PaymentMethodParamsBankContactImpl) _then) : super(_value, _then); - /// Create a copy of PaymentMethodParams - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -5569,8 +5350,6 @@ class __$$PaymentMethodParamsBankContactImplCopyWithImpl<$Res> )); } - /// Create a copy of PaymentMethodParams - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentMethodDataCopyWith<$Res> get paymentMethodData { @@ -5614,13 +5393,11 @@ class _$PaymentMethodParamsBankContactImpl other.paymentMethodData == paymentMethodData)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, paymentMethodData); - /// Create a copy of PaymentMethodParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$PaymentMethodParamsBankContactImplCopyWith< @@ -5845,13 +5622,11 @@ abstract class _PaymentMethodParamsBankContact implements PaymentMethodParams { factory _PaymentMethodParamsBankContact.fromJson(Map json) = _$PaymentMethodParamsBankContactImpl.fromJson; - /// Paymentmethod data for this paymentmethod. @override - PaymentMethodData get paymentMethodData; - /// Create a copy of PaymentMethodParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + /// Paymentmethod data for this paymentmethod. + PaymentMethodData get paymentMethodData; + @JsonKey(ignore: true) _$$PaymentMethodParamsBankContactImplCopyWith< _$PaymentMethodParamsBankContactImpl> get copyWith => throw _privateConstructorUsedError; @@ -5879,8 +5654,6 @@ class __$$PaymentMethodParamsGiroPayImplCopyWithImpl<$Res> $Res Function(_$PaymentMethodParamsGiroPayImpl) _then) : super(_value, _then); - /// Create a copy of PaymentMethodParams - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -5894,8 +5667,6 @@ class __$$PaymentMethodParamsGiroPayImplCopyWithImpl<$Res> )); } - /// Create a copy of PaymentMethodParams - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentMethodDataCopyWith<$Res> get paymentMethodData { @@ -5938,13 +5709,11 @@ class _$PaymentMethodParamsGiroPayImpl implements _PaymentMethodParamsGiroPay { other.paymentMethodData == paymentMethodData)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, paymentMethodData); - /// Create a copy of PaymentMethodParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$PaymentMethodParamsGiroPayImplCopyWith<_$PaymentMethodParamsGiroPayImpl> @@ -6168,13 +5937,11 @@ abstract class _PaymentMethodParamsGiroPay implements PaymentMethodParams { factory _PaymentMethodParamsGiroPay.fromJson(Map json) = _$PaymentMethodParamsGiroPayImpl.fromJson; - /// Paymentmethod data for this paymentmethod. @override - PaymentMethodData get paymentMethodData; - /// Create a copy of PaymentMethodParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + /// Paymentmethod data for this paymentmethod. + PaymentMethodData get paymentMethodData; + @JsonKey(ignore: true) _$$PaymentMethodParamsGiroPayImplCopyWith<_$PaymentMethodParamsGiroPayImpl> get copyWith => throw _privateConstructorUsedError; } @@ -6201,8 +5968,6 @@ class __$$PaymentMethodParamsEpsImplCopyWithImpl<$Res> $Res Function(_$PaymentMethodParamsEpsImpl) _then) : super(_value, _then); - /// Create a copy of PaymentMethodParams - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -6216,8 +5981,6 @@ class __$$PaymentMethodParamsEpsImplCopyWithImpl<$Res> )); } - /// Create a copy of PaymentMethodParams - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentMethodDataCopyWith<$Res> get paymentMethodData { @@ -6259,13 +6022,11 @@ class _$PaymentMethodParamsEpsImpl implements _PaymentMethodParamsEps { other.paymentMethodData == paymentMethodData)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, paymentMethodData); - /// Create a copy of PaymentMethodParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$PaymentMethodParamsEpsImplCopyWith<_$PaymentMethodParamsEpsImpl> @@ -6489,13 +6250,11 @@ abstract class _PaymentMethodParamsEps implements PaymentMethodParams { factory _PaymentMethodParamsEps.fromJson(Map json) = _$PaymentMethodParamsEpsImpl.fromJson; - /// Paymentmethod data for this paymentmethod. @override - PaymentMethodData get paymentMethodData; - /// Create a copy of PaymentMethodParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + /// Paymentmethod data for this paymentmethod. + PaymentMethodData get paymentMethodData; + @JsonKey(ignore: true) _$$PaymentMethodParamsEpsImplCopyWith<_$PaymentMethodParamsEpsImpl> get copyWith => throw _privateConstructorUsedError; } @@ -6522,8 +6281,6 @@ class __$$PaymentMethodParamsAffirmImplCopyWithImpl<$Res> $Res Function(_$PaymentMethodParamsAffirmImpl) _then) : super(_value, _then); - /// Create a copy of PaymentMethodParams - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -6537,8 +6294,6 @@ class __$$PaymentMethodParamsAffirmImplCopyWithImpl<$Res> )); } - /// Create a copy of PaymentMethodParams - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentMethodDataCopyWith<$Res> get paymentMethodData { @@ -6580,13 +6335,11 @@ class _$PaymentMethodParamsAffirmImpl implements _PaymentMethodParamsAffirm { other.paymentMethodData == paymentMethodData)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, paymentMethodData); - /// Create a copy of PaymentMethodParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$PaymentMethodParamsAffirmImplCopyWith<_$PaymentMethodParamsAffirmImpl> @@ -6810,13 +6563,11 @@ abstract class _PaymentMethodParamsAffirm implements PaymentMethodParams { factory _PaymentMethodParamsAffirm.fromJson(Map json) = _$PaymentMethodParamsAffirmImpl.fromJson; - /// Paymentmethod data for this paymentmethod. @override - PaymentMethodData get paymentMethodData; - /// Create a copy of PaymentMethodParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + /// Paymentmethod data for this paymentmethod. + PaymentMethodData get paymentMethodData; + @JsonKey(ignore: true) _$$PaymentMethodParamsAffirmImplCopyWith<_$PaymentMethodParamsAffirmImpl> get copyWith => throw _privateConstructorUsedError; } @@ -6843,8 +6594,6 @@ class __$$PaymentMethodParamsPayImplCopyWithImpl<$Res> $Res Function(_$PaymentMethodParamsPayImpl) _then) : super(_value, _then); - /// Create a copy of PaymentMethodParams - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -6858,8 +6607,6 @@ class __$$PaymentMethodParamsPayImplCopyWithImpl<$Res> )); } - /// Create a copy of PaymentMethodParams - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentMethodDataCopyWith<$Res> get paymentMethodData { @@ -6901,13 +6648,11 @@ class _$PaymentMethodParamsPayImpl implements _PaymentMethodParamsPay { other.paymentMethodData == paymentMethodData)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, paymentMethodData); - /// Create a copy of PaymentMethodParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$PaymentMethodParamsPayImplCopyWith<_$PaymentMethodParamsPayImpl> @@ -7131,13 +6876,11 @@ abstract class _PaymentMethodParamsPay implements PaymentMethodParams { factory _PaymentMethodParamsPay.fromJson(Map json) = _$PaymentMethodParamsPayImpl.fromJson; - /// Paymentmethod data for this paymentmethod. @override - PaymentMethodData get paymentMethodData; - /// Create a copy of PaymentMethodParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + /// Paymentmethod data for this paymentmethod. + PaymentMethodData get paymentMethodData; + @JsonKey(ignore: true) _$$PaymentMethodParamsPayImplCopyWith<_$PaymentMethodParamsPayImpl> get copyWith => throw _privateConstructorUsedError; } @@ -7164,8 +6907,6 @@ class __$$PaymentMethodParamsP24ImplCopyWithImpl<$Res> $Res Function(_$PaymentMethodParamsP24Impl) _then) : super(_value, _then); - /// Create a copy of PaymentMethodParams - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -7179,8 +6920,6 @@ class __$$PaymentMethodParamsP24ImplCopyWithImpl<$Res> )); } - /// Create a copy of PaymentMethodParams - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentMethodDataCopyWith<$Res> get paymentMethodData { @@ -7222,13 +6961,11 @@ class _$PaymentMethodParamsP24Impl implements _PaymentMethodParamsP24 { other.paymentMethodData == paymentMethodData)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, paymentMethodData); - /// Create a copy of PaymentMethodParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$PaymentMethodParamsP24ImplCopyWith<_$PaymentMethodParamsP24Impl> @@ -7452,13 +7189,11 @@ abstract class _PaymentMethodParamsP24 implements PaymentMethodParams { factory _PaymentMethodParamsP24.fromJson(Map json) = _$PaymentMethodParamsP24Impl.fromJson; - /// Paymentmethod data for this paymentmethod. @override - PaymentMethodData get paymentMethodData; - /// Create a copy of PaymentMethodParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + /// Paymentmethod data for this paymentmethod. + PaymentMethodData get paymentMethodData; + @JsonKey(ignore: true) _$$PaymentMethodParamsP24ImplCopyWith<_$PaymentMethodParamsP24Impl> get copyWith => throw _privateConstructorUsedError; } @@ -7485,8 +7220,6 @@ class __$$PaymentMethodParamsFpxImplCopyWithImpl<$Res> $Res Function(_$PaymentMethodParamsFpxImpl) _then) : super(_value, _then); - /// Create a copy of PaymentMethodParams - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -7500,8 +7233,6 @@ class __$$PaymentMethodParamsFpxImplCopyWithImpl<$Res> )); } - /// Create a copy of PaymentMethodParams - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentMethodDataFpxCopyWith<$Res> get paymentMethodData { @@ -7544,13 +7275,11 @@ class _$PaymentMethodParamsFpxImpl implements _PaymentMethodParamsFpx { other.paymentMethodData == paymentMethodData)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, paymentMethodData); - /// Create a copy of PaymentMethodParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$PaymentMethodParamsFpxImplCopyWith<_$PaymentMethodParamsFpxImpl> @@ -7774,13 +7503,11 @@ abstract class _PaymentMethodParamsFpx implements PaymentMethodParams { factory _PaymentMethodParamsFpx.fromJson(Map json) = _$PaymentMethodParamsFpxImpl.fromJson; - /// Paymentmethod data for this paymentmethod. @override - PaymentMethodDataFpx get paymentMethodData; - /// Create a copy of PaymentMethodParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + /// Paymentmethod data for this paymentmethod. + PaymentMethodDataFpx get paymentMethodData; + @JsonKey(ignore: true) _$$PaymentMethodParamsFpxImplCopyWith<_$PaymentMethodParamsFpxImpl> get copyWith => throw _privateConstructorUsedError; } @@ -7807,8 +7534,6 @@ class __$$PaymentMethodParamsSepaDebitImplCopyWithImpl<$Res> $Res Function(_$PaymentMethodParamsSepaDebitImpl) _then) : super(_value, _then); - /// Create a copy of PaymentMethodParams - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -7822,8 +7547,6 @@ class __$$PaymentMethodParamsSepaDebitImplCopyWithImpl<$Res> )); } - /// Create a copy of PaymentMethodParams - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentMethodDataSepaCopyWith<$Res> get paymentMethodData { @@ -7868,13 +7591,11 @@ class _$PaymentMethodParamsSepaDebitImpl other.paymentMethodData == paymentMethodData)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, paymentMethodData); - /// Create a copy of PaymentMethodParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$PaymentMethodParamsSepaDebitImplCopyWith< @@ -8099,13 +7820,11 @@ abstract class _PaymentMethodParamsSepaDebit implements PaymentMethodParams { factory _PaymentMethodParamsSepaDebit.fromJson(Map json) = _$PaymentMethodParamsSepaDebitImpl.fromJson; - /// Paymentmethod data for this paymentmethod. @override - PaymentMethodDataSepa get paymentMethodData; - /// Create a copy of PaymentMethodParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + /// Paymentmethod data for this paymentmethod. + PaymentMethodDataSepa get paymentMethodData; + @JsonKey(ignore: true) _$$PaymentMethodParamsSepaDebitImplCopyWith< _$PaymentMethodParamsSepaDebitImpl> get copyWith => throw _privateConstructorUsedError; @@ -8133,8 +7852,6 @@ class __$$PaymentMethodParamsSofortImplCopyWithImpl<$Res> $Res Function(_$PaymentMethodParamsSofortImpl) _then) : super(_value, _then); - /// Create a copy of PaymentMethodParams - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -8148,8 +7865,6 @@ class __$$PaymentMethodParamsSofortImplCopyWithImpl<$Res> )); } - /// Create a copy of PaymentMethodParams - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentMethodDataSofortCopyWith<$Res> get paymentMethodData { @@ -8191,13 +7906,11 @@ class _$PaymentMethodParamsSofortImpl implements _PaymentMethodParamsSofort { other.paymentMethodData == paymentMethodData)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, paymentMethodData); - /// Create a copy of PaymentMethodParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$PaymentMethodParamsSofortImplCopyWith<_$PaymentMethodParamsSofortImpl> @@ -8423,10 +8136,7 @@ abstract class _PaymentMethodParamsSofort implements PaymentMethodParams { @override PaymentMethodDataSofort get paymentMethodData; - - /// Create a copy of PaymentMethodParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$PaymentMethodParamsSofortImplCopyWith<_$PaymentMethodParamsSofortImpl> get copyWith => throw _privateConstructorUsedError; } @@ -8453,8 +8163,6 @@ class __$$PaymentMethodParamsAfterpayClearpayImplCopyWithImpl<$Res> $Res Function(_$PaymentMethodParamsAfterpayClearpayImpl) _then) : super(_value, _then); - /// Create a copy of PaymentMethodParams - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -8468,8 +8176,6 @@ class __$$PaymentMethodParamsAfterpayClearpayImplCopyWithImpl<$Res> )); } - /// Create a copy of PaymentMethodParams - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentMethodDataAfterPayCopyWith<$Res> get paymentMethodData { @@ -8513,13 +8219,11 @@ class _$PaymentMethodParamsAfterpayClearpayImpl other.paymentMethodData == paymentMethodData)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, paymentMethodData); - /// Create a copy of PaymentMethodParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$PaymentMethodParamsAfterpayClearpayImplCopyWith< @@ -8748,10 +8452,7 @@ abstract class _PaymentMethodParamsAfterpayClearpay @override PaymentMethodDataAfterPay get paymentMethodData; - - /// Create a copy of PaymentMethodParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$PaymentMethodParamsAfterpayClearpayImplCopyWith< _$PaymentMethodParamsAfterpayClearpayImpl> get copyWith => throw _privateConstructorUsedError; @@ -8779,8 +8480,6 @@ class __$$PaymentMethodParamsOxxoImplCopyWithImpl<$Res> $Res Function(_$PaymentMethodParamsOxxoImpl) _then) : super(_value, _then); - /// Create a copy of PaymentMethodParams - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -8794,8 +8493,6 @@ class __$$PaymentMethodParamsOxxoImplCopyWithImpl<$Res> )); } - /// Create a copy of PaymentMethodParams - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentMethodDataCopyWith<$Res> get paymentMethodData { @@ -8837,13 +8534,11 @@ class _$PaymentMethodParamsOxxoImpl implements _PaymentMethodParamsOxxo { other.paymentMethodData == paymentMethodData)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, paymentMethodData); - /// Create a copy of PaymentMethodParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$PaymentMethodParamsOxxoImplCopyWith<_$PaymentMethodParamsOxxoImpl> @@ -9067,13 +8762,11 @@ abstract class _PaymentMethodParamsOxxo implements PaymentMethodParams { factory _PaymentMethodParamsOxxo.fromJson(Map json) = _$PaymentMethodParamsOxxoImpl.fromJson; - /// Paymentmethod data for this paymentmethod. @override - PaymentMethodData get paymentMethodData; - /// Create a copy of PaymentMethodParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + /// Paymentmethod data for this paymentmethod. + PaymentMethodData get paymentMethodData; + @JsonKey(ignore: true) _$$PaymentMethodParamsOxxoImplCopyWith<_$PaymentMethodParamsOxxoImpl> get copyWith => throw _privateConstructorUsedError; } @@ -9100,8 +8793,6 @@ class __$$PaymentMethodParamsKlarnaImplCopyWithImpl<$Res> $Res Function(_$PaymentMethodParamsKlarnaImpl) _then) : super(_value, _then); - /// Create a copy of PaymentMethodParams - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -9115,8 +8806,6 @@ class __$$PaymentMethodParamsKlarnaImplCopyWithImpl<$Res> )); } - /// Create a copy of PaymentMethodParams - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentMethodDataCopyWith<$Res> get paymentMethodData { @@ -9161,13 +8850,11 @@ class _$PaymentMethodParamsKlarnaImpl implements _PaymentMethodParamsKlarna { other.paymentMethodData == paymentMethodData)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, paymentMethodData); - /// Create a copy of PaymentMethodParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$PaymentMethodParamsKlarnaImplCopyWith<_$PaymentMethodParamsKlarnaImpl> @@ -9391,16 +9078,14 @@ abstract class _PaymentMethodParamsKlarna implements PaymentMethodParams { factory _PaymentMethodParamsKlarna.fromJson(Map json) = _$PaymentMethodParamsKlarnaImpl.fromJson; + @override + /// Paymentmethod data for this paymentmethod. /// /// Make sure to add an email and country (part of the address) in the /// billingdetails which is required for using Klarna. - @override PaymentMethodData get paymentMethodData; - - /// Create a copy of PaymentMethodParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$PaymentMethodParamsKlarnaImplCopyWith<_$PaymentMethodParamsKlarnaImpl> get copyWith => throw _privateConstructorUsedError; } @@ -9427,8 +9112,6 @@ class __$$PaymentMethodParamsPayPalImplCopyWithImpl<$Res> $Res Function(_$PaymentMethodParamsPayPalImpl) _then) : super(_value, _then); - /// Create a copy of PaymentMethodParams - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -9442,8 +9125,6 @@ class __$$PaymentMethodParamsPayPalImplCopyWithImpl<$Res> )); } - /// Create a copy of PaymentMethodParams - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentMethodDataCopyWith<$Res> get paymentMethodData { @@ -9485,13 +9166,11 @@ class _$PaymentMethodParamsPayPalImpl implements _PaymentMethodParamsPayPal { other.paymentMethodData == paymentMethodData)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, paymentMethodData); - /// Create a copy of PaymentMethodParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$PaymentMethodParamsPayPalImplCopyWith<_$PaymentMethodParamsPayPalImpl> @@ -9715,13 +9394,11 @@ abstract class _PaymentMethodParamsPayPal implements PaymentMethodParams { factory _PaymentMethodParamsPayPal.fromJson(Map json) = _$PaymentMethodParamsPayPalImpl.fromJson; - /// Paymentmethod data for this paymentmethod. @override - PaymentMethodData get paymentMethodData; - /// Create a copy of PaymentMethodParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + /// Paymentmethod data for this paymentmethod. + PaymentMethodData get paymentMethodData; + @JsonKey(ignore: true) _$$PaymentMethodParamsPayPalImplCopyWith<_$PaymentMethodParamsPayPalImpl> get copyWith => throw _privateConstructorUsedError; } @@ -9748,8 +9425,6 @@ class __$$PaymentMethodParamsRevolutPayImplCopyWithImpl<$Res> $Res Function(_$PaymentMethodParamsRevolutPayImpl) _then) : super(_value, _then); - /// Create a copy of PaymentMethodParams - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -9763,8 +9438,6 @@ class __$$PaymentMethodParamsRevolutPayImplCopyWithImpl<$Res> )); } - /// Create a copy of PaymentMethodParams - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentMethodDataCopyWith<$Res> get paymentMethodData { @@ -9808,13 +9481,11 @@ class _$PaymentMethodParamsRevolutPayImpl other.paymentMethodData == paymentMethodData)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, paymentMethodData); - /// Create a copy of PaymentMethodParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$PaymentMethodParamsRevolutPayImplCopyWith< @@ -10039,13 +9710,11 @@ abstract class _PaymentMethodParamsRevolutPay implements PaymentMethodParams { factory _PaymentMethodParamsRevolutPay.fromJson(Map json) = _$PaymentMethodParamsRevolutPayImpl.fromJson; - /// Paymentmethod data for this paymentmethod. @override - PaymentMethodData get paymentMethodData; - /// Create a copy of PaymentMethodParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + /// Paymentmethod data for this paymentmethod. + PaymentMethodData get paymentMethodData; + @JsonKey(ignore: true) _$$PaymentMethodParamsRevolutPayImplCopyWith< _$PaymentMethodParamsRevolutPayImpl> get copyWith => throw _privateConstructorUsedError; @@ -10073,8 +9742,6 @@ class __$$PaymentMethodParamsUsBankAccountImplCopyWithImpl<$Res> $Res Function(_$PaymentMethodParamsUsBankAccountImpl) _then) : super(_value, _then); - /// Create a copy of PaymentMethodParams - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -10088,8 +9755,6 @@ class __$$PaymentMethodParamsUsBankAccountImplCopyWithImpl<$Res> )); } - /// Create a copy of PaymentMethodParams - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentMethodDataUsBankCopyWith<$Res> get paymentMethodData { @@ -10134,13 +9799,11 @@ class _$PaymentMethodParamsUsBankAccountImpl other.paymentMethodData == paymentMethodData)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, paymentMethodData); - /// Create a copy of PaymentMethodParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$PaymentMethodParamsUsBankAccountImplCopyWith< @@ -10367,13 +10030,11 @@ abstract class _PaymentMethodParamsUsBankAccount Map json) = _$PaymentMethodParamsUsBankAccountImpl.fromJson; - /// Paymentmethod data for this paymentmethod. @override - PaymentMethodDataUsBank get paymentMethodData; - /// Create a copy of PaymentMethodParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + /// Paymentmethod data for this paymentmethod. + PaymentMethodDataUsBank get paymentMethodData; + @JsonKey(ignore: true) _$$PaymentMethodParamsUsBankAccountImplCopyWith< _$PaymentMethodParamsUsBankAccountImpl> get copyWith => throw _privateConstructorUsedError; @@ -10394,12 +10055,8 @@ mixin _$PaymentMethodData { /// Mandata data for this paymentmethod. MandateData? get mandateData => throw _privateConstructorUsedError; - /// Serializes this PaymentMethodData to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of PaymentMethodData - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $PaymentMethodDataCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -10430,8 +10087,6 @@ class _$PaymentMethodDataCopyWithImpl<$Res, $Val extends PaymentMethodData> // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of PaymentMethodData - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -10455,8 +10110,6 @@ class _$PaymentMethodDataCopyWithImpl<$Res, $Val extends PaymentMethodData> ) as $Val); } - /// Create a copy of PaymentMethodData - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $BillingDetailsCopyWith<$Res>? get billingDetails { @@ -10469,8 +10122,6 @@ class _$PaymentMethodDataCopyWithImpl<$Res, $Val extends PaymentMethodData> }); } - /// Create a copy of PaymentMethodData - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $ShippingDetailsCopyWith<$Res>? get shippingDetails { @@ -10483,8 +10134,6 @@ class _$PaymentMethodDataCopyWithImpl<$Res, $Val extends PaymentMethodData> }); } - /// Create a copy of PaymentMethodData - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $MandateDataCopyWith<$Res>? get mandateData { @@ -10527,8 +10176,6 @@ class __$$PaymentMethodDataImplCopyWithImpl<$Res> $Res Function(_$PaymentMethodDataImpl) _then) : super(_value, _then); - /// Create a copy of PaymentMethodData - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -10593,14 +10240,12 @@ class _$PaymentMethodDataImpl implements _PaymentMethodData { other.mandateData == mandateData)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, billingDetails, shippingDetails, mandateData); - /// Create a copy of PaymentMethodData - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$PaymentMethodDataImplCopyWith<_$PaymentMethodDataImpl> get copyWith => @@ -10624,22 +10269,20 @@ abstract class _PaymentMethodData implements PaymentMethodData { factory _PaymentMethodData.fromJson(Map json) = _$PaymentMethodDataImpl.fromJson; - /// Billing information. @override + + /// Billing information. BillingDetails? get billingDetails; + @override /// Shipping details - @override ShippingDetails? get shippingDetails; + @override /// Mandata data for this paymentmethod. - @override MandateData? get mandateData; - - /// Create a copy of PaymentMethodData - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$PaymentMethodDataImplCopyWith<_$PaymentMethodDataImpl> get copyWith => throw _privateConstructorUsedError; } @@ -10663,12 +10306,8 @@ mixin _$PaymentMethodDataCardFromToken { /// Mandata data for this paymentmethod. MandateData? get mandateData => throw _privateConstructorUsedError; - /// Serializes this PaymentMethodDataCardFromToken to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of PaymentMethodDataCardFromToken - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $PaymentMethodDataCardFromTokenCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -10703,8 +10342,6 @@ class _$PaymentMethodDataCardFromTokenCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of PaymentMethodDataCardFromToken - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -10733,8 +10370,6 @@ class _$PaymentMethodDataCardFromTokenCopyWithImpl<$Res, ) as $Val); } - /// Create a copy of PaymentMethodDataCardFromToken - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $BillingDetailsCopyWith<$Res>? get billingDetails { @@ -10747,8 +10382,6 @@ class _$PaymentMethodDataCardFromTokenCopyWithImpl<$Res, }); } - /// Create a copy of PaymentMethodDataCardFromToken - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $ShippingDetailsCopyWith<$Res>? get shippingDetails { @@ -10761,8 +10394,6 @@ class _$PaymentMethodDataCardFromTokenCopyWithImpl<$Res, }); } - /// Create a copy of PaymentMethodDataCardFromToken - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $MandateDataCopyWith<$Res>? get mandateData { @@ -10809,8 +10440,6 @@ class __$$PaymentMethodDataCardFromTokenImplCopyWithImpl<$Res> $Res Function(_$PaymentMethodDataCardFromTokenImpl) _then) : super(_value, _then); - /// Create a copy of PaymentMethodDataCardFromToken - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -10890,14 +10519,12 @@ class _$PaymentMethodDataCardFromTokenImpl other.mandateData == mandateData)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash( runtimeType, token, billingDetails, shippingDetails, mandateData); - /// Create a copy of PaymentMethodDataCardFromToken - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$PaymentMethodDataCardFromTokenImplCopyWith< @@ -10924,26 +10551,24 @@ abstract class _PaymentMethodDataCardFromToken factory _PaymentMethodDataCardFromToken.fromJson(Map json) = _$PaymentMethodDataCardFromTokenImpl.fromJson; - /// Token. @override + + /// Token. String get token; + @override /// Billing information. - @override BillingDetails? get billingDetails; + @override /// Shipping details - @override ShippingDetails? get shippingDetails; + @override /// Mandata data for this paymentmethod. - @override MandateData? get mandateData; - - /// Create a copy of PaymentMethodDataCardFromToken - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$PaymentMethodDataCardFromTokenImplCopyWith< _$PaymentMethodDataCardFromTokenImpl> get copyWith => throw _privateConstructorUsedError; @@ -10971,12 +10596,8 @@ mixin _$PaymentMethodDataCardFromMethod { /// Mandata data for this paymentmethod. MandateData? get mandateData => throw _privateConstructorUsedError; - /// Serializes this PaymentMethodDataCardFromMethod to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of PaymentMethodDataCardFromMethod - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $PaymentMethodDataCardFromMethodCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -11012,8 +10633,6 @@ class _$PaymentMethodDataCardFromMethodCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of PaymentMethodDataCardFromMethod - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -11047,8 +10666,6 @@ class _$PaymentMethodDataCardFromMethodCopyWithImpl<$Res, ) as $Val); } - /// Create a copy of PaymentMethodDataCardFromMethod - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $BillingDetailsCopyWith<$Res>? get billingDetails { @@ -11061,8 +10678,6 @@ class _$PaymentMethodDataCardFromMethodCopyWithImpl<$Res, }); } - /// Create a copy of PaymentMethodDataCardFromMethod - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $ShippingDetailsCopyWith<$Res>? get shippingDetails { @@ -11075,8 +10690,6 @@ class _$PaymentMethodDataCardFromMethodCopyWithImpl<$Res, }); } - /// Create a copy of PaymentMethodDataCardFromMethod - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $MandateDataCopyWith<$Res>? get mandateData { @@ -11124,8 +10737,6 @@ class __$$PaymentMethodDataCardFromMethodImplCopyWithImpl<$Res> $Res Function(_$PaymentMethodDataCardFromMethodImpl) _then) : super(_value, _then); - /// Create a copy of PaymentMethodDataCardFromMethod - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -11217,14 +10828,12 @@ class _$PaymentMethodDataCardFromMethodImpl other.mandateData == mandateData)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, paymentMethodId, cvc, billingDetails, shippingDetails, mandateData); - /// Create a copy of PaymentMethodDataCardFromMethod - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$PaymentMethodDataCardFromMethodImplCopyWith< @@ -11252,30 +10861,28 @@ abstract class _PaymentMethodDataCardFromMethod factory _PaymentMethodDataCardFromMethod.fromJson(Map json) = _$PaymentMethodDataCardFromMethodImpl.fromJson; - /// Payment method id. @override + + /// Payment method id. String get paymentMethodId; + @override /// Cvc of the cart - @override String? get cvc; + @override /// Billing information. - @override BillingDetails? get billingDetails; + @override /// Shipping details - @override ShippingDetails? get shippingDetails; + @override /// Mandata data for this paymentmethod. - @override MandateData? get mandateData; - - /// Create a copy of PaymentMethodDataCardFromMethod - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$PaymentMethodDataCardFromMethodImplCopyWith< _$PaymentMethodDataCardFromMethodImpl> get copyWith => throw _privateConstructorUsedError; @@ -11303,12 +10910,8 @@ mixin _$PaymentMethodDataIdeal { /// Mandata data for this paymentmethod. MandateData? get mandateData => throw _privateConstructorUsedError; - /// Serializes this PaymentMethodDataIdeal to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of PaymentMethodDataIdeal - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $PaymentMethodDataIdealCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -11342,8 +10945,6 @@ class _$PaymentMethodDataIdealCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of PaymentMethodDataIdeal - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -11377,8 +10978,6 @@ class _$PaymentMethodDataIdealCopyWithImpl<$Res, ) as $Val); } - /// Create a copy of PaymentMethodDataIdeal - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $BillingDetailsCopyWith<$Res>? get billingDetails { @@ -11391,8 +10990,6 @@ class _$PaymentMethodDataIdealCopyWithImpl<$Res, }); } - /// Create a copy of PaymentMethodDataIdeal - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $ShippingDetailsCopyWith<$Res>? get shippingDetails { @@ -11405,8 +11002,6 @@ class _$PaymentMethodDataIdealCopyWithImpl<$Res, }); } - /// Create a copy of PaymentMethodDataIdeal - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $MandateDataCopyWith<$Res>? get mandateData { @@ -11454,8 +11049,6 @@ class __$$PaymentMethodDataIdealImplCopyWithImpl<$Res> $Res Function(_$PaymentMethodDataIdealImpl) _then) : super(_value, _then); - /// Create a copy of PaymentMethodDataIdeal - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -11546,14 +11139,12 @@ class _$PaymentMethodDataIdealImpl implements _PaymentMethodDataIdeal { other.mandateData == mandateData)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, bankIdentifierCode, bankName, billingDetails, shippingDetails, mandateData); - /// Create a copy of PaymentMethodDataIdeal - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$PaymentMethodDataIdealImplCopyWith<_$PaymentMethodDataIdealImpl> @@ -11579,30 +11170,28 @@ abstract class _PaymentMethodDataIdeal implements PaymentMethodDataIdeal { factory _PaymentMethodDataIdeal.fromJson(Map json) = _$PaymentMethodDataIdealImpl.fromJson; - /// The bank identifier code of the bank. @override + + /// The bank identifier code of the bank. String? get bankIdentifierCode; + @override /// The name of bank. - @override String? get bankName; + @override /// Billing information. - @override BillingDetails? get billingDetails; + @override /// Shipping details - @override ShippingDetails? get shippingDetails; + @override /// Mandata data for this paymentmethod. - @override MandateData? get mandateData; - - /// Create a copy of PaymentMethodDataIdeal - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$PaymentMethodDataIdealImplCopyWith<_$PaymentMethodDataIdealImpl> get copyWith => throw _privateConstructorUsedError; } @@ -11626,12 +11215,8 @@ mixin _$PaymentMethodDataAubecs { /// Mandata data for this paymentmethod. MandateData? get mandateData => throw _privateConstructorUsedError; - /// Serializes this PaymentMethodDataAubecs to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of PaymentMethodDataAubecs - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $PaymentMethodDataAubecsCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -11665,8 +11250,6 @@ class _$PaymentMethodDataAubecsCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of PaymentMethodDataAubecs - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -11695,8 +11278,6 @@ class _$PaymentMethodDataAubecsCopyWithImpl<$Res, ) as $Val); } - /// Create a copy of PaymentMethodDataAubecs - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $AubecsFormInputDetailsCopyWith<$Res> get formDetails { @@ -11705,8 +11286,6 @@ class _$PaymentMethodDataAubecsCopyWithImpl<$Res, }); } - /// Create a copy of PaymentMethodDataAubecs - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $BillingDetailsCopyWith<$Res>? get billingDetails { @@ -11719,8 +11298,6 @@ class _$PaymentMethodDataAubecsCopyWithImpl<$Res, }); } - /// Create a copy of PaymentMethodDataAubecs - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $ShippingDetailsCopyWith<$Res>? get shippingDetails { @@ -11733,8 +11310,6 @@ class _$PaymentMethodDataAubecsCopyWithImpl<$Res, }); } - /// Create a copy of PaymentMethodDataAubecs - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $MandateDataCopyWith<$Res>? get mandateData { @@ -11783,8 +11358,6 @@ class __$$PaymentMethodDataAubecsImplCopyWithImpl<$Res> $Res Function(_$PaymentMethodDataAubecsImpl) _then) : super(_value, _then); - /// Create a copy of PaymentMethodDataAubecs - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -11863,14 +11436,12 @@ class _$PaymentMethodDataAubecsImpl implements _PaymentMethodDataAubecs { other.mandateData == mandateData)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash( runtimeType, formDetails, billingDetails, shippingDetails, mandateData); - /// Create a copy of PaymentMethodDataAubecs - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$PaymentMethodDataAubecsImplCopyWith<_$PaymentMethodDataAubecsImpl> @@ -11895,26 +11466,24 @@ abstract class _PaymentMethodDataAubecs implements PaymentMethodDataAubecs { factory _PaymentMethodDataAubecs.fromJson(Map json) = _$PaymentMethodDataAubecsImpl.fromJson; - /// form input details @override + + /// form input details AubecsFormInputDetails get formDetails; + @override /// Billing information. - @override BillingDetails? get billingDetails; + @override /// Shipping details - @override ShippingDetails? get shippingDetails; + @override /// Mandata data for this paymentmethod. - @override MandateData? get mandateData; - - /// Create a copy of PaymentMethodDataAubecs - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$PaymentMethodDataAubecsImplCopyWith<_$PaymentMethodDataAubecsImpl> get copyWith => throw _privateConstructorUsedError; } @@ -11937,12 +11506,8 @@ mixin _$PaymentMethodDataFpx { /// Mandata data for this paymentmethod. MandateData? get mandateData => throw _privateConstructorUsedError; - /// Serializes this PaymentMethodDataFpx to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of PaymentMethodDataFpx - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $PaymentMethodDataFpxCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -11975,8 +11540,6 @@ class _$PaymentMethodDataFpxCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of PaymentMethodDataFpx - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -12005,8 +11568,6 @@ class _$PaymentMethodDataFpxCopyWithImpl<$Res, ) as $Val); } - /// Create a copy of PaymentMethodDataFpx - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $BillingDetailsCopyWith<$Res>? get billingDetails { @@ -12019,8 +11580,6 @@ class _$PaymentMethodDataFpxCopyWithImpl<$Res, }); } - /// Create a copy of PaymentMethodDataFpx - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $ShippingDetailsCopyWith<$Res>? get shippingDetails { @@ -12033,8 +11592,6 @@ class _$PaymentMethodDataFpxCopyWithImpl<$Res, }); } - /// Create a copy of PaymentMethodDataFpx - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $MandateDataCopyWith<$Res>? get mandateData { @@ -12078,8 +11635,6 @@ class __$$PaymentMethodDataFpxImplCopyWithImpl<$Res> $Res Function(_$PaymentMethodDataFpxImpl) _then) : super(_value, _then); - /// Create a copy of PaymentMethodDataFpx - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -12159,14 +11714,12 @@ class _$PaymentMethodDataFpxImpl implements _PaymentMethodDataFpx { other.mandateData == mandateData)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, testOfflineBank, billingDetails, shippingDetails, mandateData); - /// Create a copy of PaymentMethodDataFpx - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$PaymentMethodDataFpxImplCopyWith<_$PaymentMethodDataFpxImpl> @@ -12192,26 +11745,24 @@ abstract class _PaymentMethodDataFpx implements PaymentMethodDataFpx { factory _PaymentMethodDataFpx.fromJson(Map json) = _$PaymentMethodDataFpxImpl.fromJson; - /// When set to true you can test offline payment. @override + + /// When set to true you can test offline payment. bool get testOfflineBank; + @override /// Billing information. - @override BillingDetails? get billingDetails; + @override /// Shipping details - @override ShippingDetails? get shippingDetails; + @override /// Mandata data for this paymentmethod. - @override MandateData? get mandateData; - - /// Create a copy of PaymentMethodDataFpx - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$PaymentMethodDataFpxImplCopyWith<_$PaymentMethodDataFpxImpl> get copyWith => throw _privateConstructorUsedError; } @@ -12235,12 +11786,8 @@ mixin _$PaymentMethodDataSofort { /// Mandata data for this paymentmethod. MandateData? get mandateData => throw _privateConstructorUsedError; - /// Serializes this PaymentMethodDataSofort to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of PaymentMethodDataSofort - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $PaymentMethodDataSofortCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -12273,8 +11820,6 @@ class _$PaymentMethodDataSofortCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of PaymentMethodDataSofort - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -12303,8 +11848,6 @@ class _$PaymentMethodDataSofortCopyWithImpl<$Res, ) as $Val); } - /// Create a copy of PaymentMethodDataSofort - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $BillingDetailsCopyWith<$Res>? get billingDetails { @@ -12317,8 +11860,6 @@ class _$PaymentMethodDataSofortCopyWithImpl<$Res, }); } - /// Create a copy of PaymentMethodDataSofort - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $ShippingDetailsCopyWith<$Res>? get shippingDetails { @@ -12331,8 +11872,6 @@ class _$PaymentMethodDataSofortCopyWithImpl<$Res, }); } - /// Create a copy of PaymentMethodDataSofort - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $MandateDataCopyWith<$Res>? get mandateData { @@ -12379,8 +11918,6 @@ class __$$PaymentMethodDataSofortImplCopyWithImpl<$Res> $Res Function(_$PaymentMethodDataSofortImpl) _then) : super(_value, _then); - /// Create a copy of PaymentMethodDataSofort - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -12458,14 +11995,12 @@ class _$PaymentMethodDataSofortImpl implements _PaymentMethodDataSofort { other.mandateData == mandateData)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash( runtimeType, country, billingDetails, shippingDetails, mandateData); - /// Create a copy of PaymentMethodDataSofort - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$PaymentMethodDataSofortImplCopyWith<_$PaymentMethodDataSofortImpl> @@ -12490,26 +12025,24 @@ abstract class _PaymentMethodDataSofort implements PaymentMethodDataSofort { factory _PaymentMethodDataSofort.fromJson(Map json) = _$PaymentMethodDataSofortImpl.fromJson; - /// Country of the accountholder @override + + /// Country of the accountholder String get country; + @override /// Billing information. - @override BillingDetails? get billingDetails; + @override /// Shipping details - @override ShippingDetails? get shippingDetails; + @override /// Mandata data for this paymentmethod. - @override MandateData? get mandateData; - - /// Create a copy of PaymentMethodDataSofort - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$PaymentMethodDataSofortImplCopyWith<_$PaymentMethodDataSofortImpl> get copyWith => throw _privateConstructorUsedError; } @@ -12533,12 +12066,8 @@ mixin _$PaymentMethodDataSepa { /// Mandata data for this paymentmethod. MandateData? get mandateData => throw _privateConstructorUsedError; - /// Serializes this PaymentMethodDataSepa to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of PaymentMethodDataSepa - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $PaymentMethodDataSepaCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -12571,8 +12100,6 @@ class _$PaymentMethodDataSepaCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of PaymentMethodDataSepa - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -12601,8 +12128,6 @@ class _$PaymentMethodDataSepaCopyWithImpl<$Res, ) as $Val); } - /// Create a copy of PaymentMethodDataSepa - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $BillingDetailsCopyWith<$Res>? get billingDetails { @@ -12615,8 +12140,6 @@ class _$PaymentMethodDataSepaCopyWithImpl<$Res, }); } - /// Create a copy of PaymentMethodDataSepa - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $ShippingDetailsCopyWith<$Res>? get shippingDetails { @@ -12629,8 +12152,6 @@ class _$PaymentMethodDataSepaCopyWithImpl<$Res, }); } - /// Create a copy of PaymentMethodDataSepa - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $MandateDataCopyWith<$Res>? get mandateData { @@ -12676,8 +12197,6 @@ class __$$PaymentMethodDataSepaImplCopyWithImpl<$Res> $Res Function(_$PaymentMethodDataSepaImpl) _then) : super(_value, _then); - /// Create a copy of PaymentMethodDataSepa - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -12755,14 +12274,12 @@ class _$PaymentMethodDataSepaImpl implements _PaymentMethodDataSepa { other.mandateData == mandateData)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash( runtimeType, iban, billingDetails, shippingDetails, mandateData); - /// Create a copy of PaymentMethodDataSepa - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$PaymentMethodDataSepaImplCopyWith<_$PaymentMethodDataSepaImpl> @@ -12787,26 +12304,24 @@ abstract class _PaymentMethodDataSepa implements PaymentMethodDataSepa { factory _PaymentMethodDataSepa.fromJson(Map json) = _$PaymentMethodDataSepaImpl.fromJson; - /// Iban number of the accountholder @override + + /// Iban number of the accountholder String get iban; + @override /// Billing information. - @override BillingDetails? get billingDetails; + @override /// Shipping details - @override ShippingDetails? get shippingDetails; + @override /// Mandata data for this paymentmethod. - @override MandateData? get mandateData; - - /// Create a copy of PaymentMethodDataSepa - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$PaymentMethodDataSepaImplCopyWith<_$PaymentMethodDataSepaImpl> get copyWith => throw _privateConstructorUsedError; } @@ -12827,12 +12342,8 @@ mixin _$PaymentMethodDataAfterPay { /// Mandata data for this paymentmethod. MandateData? get mandateData => throw _privateConstructorUsedError; - /// Serializes this PaymentMethodDataAfterPay to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of PaymentMethodDataAfterPay - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $PaymentMethodDataAfterPayCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -12864,8 +12375,6 @@ class _$PaymentMethodDataAfterPayCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of PaymentMethodDataAfterPay - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -12889,8 +12398,6 @@ class _$PaymentMethodDataAfterPayCopyWithImpl<$Res, ) as $Val); } - /// Create a copy of PaymentMethodDataAfterPay - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $BillingDetailsCopyWith<$Res> get billingDetails { @@ -12899,8 +12406,6 @@ class _$PaymentMethodDataAfterPayCopyWithImpl<$Res, }); } - /// Create a copy of PaymentMethodDataAfterPay - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $ShippingDetailsCopyWith<$Res>? get shippingDetails { @@ -12913,8 +12418,6 @@ class _$PaymentMethodDataAfterPayCopyWithImpl<$Res, }); } - /// Create a copy of PaymentMethodDataAfterPay - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $MandateDataCopyWith<$Res>? get mandateData { @@ -12960,8 +12463,6 @@ class __$$PaymentMethodDataAfterPayImplCopyWithImpl<$Res> $Res Function(_$PaymentMethodDataAfterPayImpl) _then) : super(_value, _then); - /// Create a copy of PaymentMethodDataAfterPay - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -13026,14 +12527,12 @@ class _$PaymentMethodDataAfterPayImpl implements _PaymentMethodDataAfterPay { other.mandateData == mandateData)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, billingDetails, shippingDetails, mandateData); - /// Create a copy of PaymentMethodDataAfterPay - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$PaymentMethodDataAfterPayImplCopyWith<_$PaymentMethodDataAfterPayImpl> @@ -13057,22 +12556,20 @@ abstract class _PaymentMethodDataAfterPay implements PaymentMethodDataAfterPay { factory _PaymentMethodDataAfterPay.fromJson(Map json) = _$PaymentMethodDataAfterPayImpl.fromJson; - /// Billing information. @override + + /// Billing information. BillingDetails get billingDetails; + @override /// Shipping details - @override ShippingDetails? get shippingDetails; + @override /// Mandata data for this paymentmethod. - @override MandateData? get mandateData; - - /// Create a copy of PaymentMethodDataAfterPay - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$PaymentMethodDataAfterPayImplCopyWith<_$PaymentMethodDataAfterPayImpl> get copyWith => throw _privateConstructorUsedError; } @@ -13107,12 +12604,8 @@ mixin _$PaymentMethodDataUsBank { /// Mandata data for this paymentmethod. MandateData? get mandateData => throw _privateConstructorUsedError; - /// Serializes this PaymentMethodDataUsBank to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of PaymentMethodDataUsBank - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $PaymentMethodDataUsBankCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -13148,8 +12641,6 @@ class _$PaymentMethodDataUsBankCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of PaymentMethodDataUsBank - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -13193,8 +12684,6 @@ class _$PaymentMethodDataUsBankCopyWithImpl<$Res, ) as $Val); } - /// Create a copy of PaymentMethodDataUsBank - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $BillingDetailsCopyWith<$Res>? get billingDetails { @@ -13207,8 +12696,6 @@ class _$PaymentMethodDataUsBankCopyWithImpl<$Res, }); } - /// Create a copy of PaymentMethodDataUsBank - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $ShippingDetailsCopyWith<$Res>? get shippingDetails { @@ -13221,8 +12708,6 @@ class _$PaymentMethodDataUsBankCopyWithImpl<$Res, }); } - /// Create a copy of PaymentMethodDataUsBank - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $MandateDataCopyWith<$Res>? get mandateData { @@ -13272,8 +12757,6 @@ class __$$PaymentMethodDataUsBankImplCopyWithImpl<$Res> $Res Function(_$PaymentMethodDataUsBankImpl) _then) : super(_value, _then); - /// Create a copy of PaymentMethodDataUsBank - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -13389,7 +12872,7 @@ class _$PaymentMethodDataUsBankImpl implements _PaymentMethodDataUsBank { other.mandateData == mandateData)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash( runtimeType, @@ -13401,9 +12884,7 @@ class _$PaymentMethodDataUsBankImpl implements _PaymentMethodDataUsBank { shippingDetails, mandateData); - /// Create a copy of PaymentMethodDataUsBank - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$PaymentMethodDataUsBankImplCopyWith<_$PaymentMethodDataUsBankImpl> @@ -13431,39 +12912,37 @@ abstract class _PaymentMethodDataUsBank implements PaymentMethodDataUsBank { factory _PaymentMethodDataUsBank.fromJson(Map json) = _$PaymentMethodDataUsBankImpl.fromJson; - /// The account number of the bank account. @override + + /// The account number of the bank account. String get accountNumber; + @override ///The routing number, sort code, or other country-appropriate institution ///number for the bank account. - @override String get routingNumber; + @override /// The bank account type of the holder - @override BankAccountHolderType? get accountHolderType; + @override /// The account type - @override UsBankAccountType? get accountType; + @override /// Billing information. - @override BillingDetails? get billingDetails; + @override /// Shipping details - @override ShippingDetails? get shippingDetails; + @override /// Mandata data for this paymentmethod. - @override MandateData? get mandateData; - - /// Create a copy of PaymentMethodDataUsBank - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$PaymentMethodDataUsBankImplCopyWith<_$PaymentMethodDataUsBankImpl> get copyWith => throw _privateConstructorUsedError; } @@ -13478,12 +12957,8 @@ mixin _$PaymentMethodOptions { PaymentIntentsFutureUsage? get setupFutureUsage => throw _privateConstructorUsedError; - /// Serializes this PaymentMethodOptions to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of PaymentMethodOptions - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $PaymentMethodOptionsCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -13508,8 +12983,6 @@ class _$PaymentMethodOptionsCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of PaymentMethodOptions - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -13543,8 +13016,6 @@ class __$$PaymentMethodOptionsImplCopyWithImpl<$Res> $Res Function(_$PaymentMethodOptionsImpl) _then) : super(_value, _then); - /// Create a copy of PaymentMethodOptions - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -13586,13 +13057,11 @@ class _$PaymentMethodOptionsImpl implements _PaymentMethodOptions { other.setupFutureUsage == setupFutureUsage)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, setupFutureUsage); - /// Create a copy of PaymentMethodOptions - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$PaymentMethodOptionsImplCopyWith<_$PaymentMethodOptionsImpl> @@ -13616,14 +13085,12 @@ abstract class _PaymentMethodOptions implements PaymentMethodOptions { factory _PaymentMethodOptions.fromJson(Map json) = _$PaymentMethodOptionsImpl.fromJson; - /// Indicates whether or not you want to reuse this method for future payments. @override - PaymentIntentsFutureUsage? get setupFutureUsage; - /// Create a copy of PaymentMethodOptions - /// with the given fields replaced by the non-null parameter values. + /// Indicates whether or not you want to reuse this method for future payments. + PaymentIntentsFutureUsage? get setupFutureUsage; @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$PaymentMethodOptionsImplCopyWith<_$PaymentMethodOptionsImpl> get copyWith => throw _privateConstructorUsedError; } @@ -13638,12 +13105,8 @@ mixin _$MandateData { MandateDataCustomerAcceptance? get customerAcceptance => throw _privateConstructorUsedError; - /// Serializes this MandateData to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of MandateData - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $MandateDataCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -13669,8 +13132,6 @@ class _$MandateDataCopyWithImpl<$Res, $Val extends MandateData> // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of MandateData - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -13684,8 +13145,6 @@ class _$MandateDataCopyWithImpl<$Res, $Val extends MandateData> ) as $Val); } - /// Create a copy of MandateData - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $MandateDataCustomerAcceptanceCopyWith<$Res>? get customerAcceptance { @@ -13722,8 +13181,6 @@ class __$$MandateDataImplCopyWithImpl<$Res> _$MandateDataImpl _value, $Res Function(_$MandateDataImpl) _then) : super(_value, _then); - /// Create a copy of MandateData - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -13765,13 +13222,11 @@ class _$MandateDataImpl implements _MandateData { other.customerAcceptance == customerAcceptance)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, customerAcceptance); - /// Create a copy of MandateData - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$MandateDataImplCopyWith<_$MandateDataImpl> get copyWith => @@ -13793,14 +13248,12 @@ abstract class _MandateData implements MandateData { factory _MandateData.fromJson(Map json) = _$MandateDataImpl.fromJson; - /// The type of mandate to create. @override - MandateDataCustomerAcceptance? get customerAcceptance; - /// Create a copy of MandateData - /// with the given fields replaced by the non-null parameter values. + /// The type of mandate to create. + MandateDataCustomerAcceptance? get customerAcceptance; @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$MandateDataImplCopyWith<_$MandateDataImpl> get copyWith => throw _privateConstructorUsedError; } @@ -13810,9 +13263,7 @@ mixin _$MandateDataCustomerAcceptance { /// Online data regarding the mandate. MandateDataOnlineData? get ipAddress => throw _privateConstructorUsedError; - /// Create a copy of MandateDataCustomerAcceptance - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $MandateDataCustomerAcceptanceCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -13841,8 +13292,6 @@ class _$MandateDataCustomerAcceptanceCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of MandateDataCustomerAcceptance - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -13856,8 +13305,6 @@ class _$MandateDataCustomerAcceptanceCopyWithImpl<$Res, ) as $Val); } - /// Create a copy of MandateDataCustomerAcceptance - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $MandateDataOnlineDataCopyWith<$Res>? get ipAddress { @@ -13896,8 +13343,6 @@ class __$$MandateDataCustomerAcceptanceImplCopyWithImpl<$Res> $Res Function(_$MandateDataCustomerAcceptanceImpl) _then) : super(_value, _then); - /// Create a copy of MandateDataCustomerAcceptance - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -13939,9 +13384,7 @@ class _$MandateDataCustomerAcceptanceImpl @override int get hashCode => Object.hash(runtimeType, ipAddress); - /// Create a copy of MandateDataCustomerAcceptance - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$MandateDataCustomerAcceptanceImplCopyWith< @@ -13957,14 +13400,12 @@ abstract class _MandateDataCustomerAcceptance _$MandateDataCustomerAcceptanceImpl; const _MandateDataCustomerAcceptance._() : super._(); - /// Online data regarding the mandate. @override - MandateDataOnlineData? get ipAddress; - /// Create a copy of MandateDataCustomerAcceptance - /// with the given fields replaced by the non-null parameter values. + /// Online data regarding the mandate. + MandateDataOnlineData? get ipAddress; @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$MandateDataCustomerAcceptanceImplCopyWith< _$MandateDataCustomerAcceptanceImpl> get copyWith => throw _privateConstructorUsedError; @@ -13983,12 +13424,8 @@ mixin _$MandateDataOnlineData { /// The user agent of the user. String? get userAgent => throw _privateConstructorUsedError; - /// Serializes this MandateDataOnlineData to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of MandateDataOnlineData - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $MandateDataOnlineDataCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -14013,8 +13450,6 @@ class _$MandateDataOnlineDataCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of MandateDataOnlineData - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -14055,8 +13490,6 @@ class __$$MandateDataOnlineDataImplCopyWithImpl<$Res> $Res Function(_$MandateDataOnlineDataImpl) _then) : super(_value, _then); - /// Create a copy of MandateDataOnlineData - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -14109,13 +13542,11 @@ class _$MandateDataOnlineDataImpl implements _MandateDataOnlineData { other.userAgent == userAgent)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, ipAddress, userAgent); - /// Create a copy of MandateDataOnlineData - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$MandateDataOnlineDataImplCopyWith<_$MandateDataOnlineDataImpl> @@ -14138,18 +13569,16 @@ abstract class _MandateDataOnlineData implements MandateDataOnlineData { factory _MandateDataOnlineData.fromJson(Map json) = _$MandateDataOnlineDataImpl.fromJson; - /// The ip address of the user. @override + + /// The ip address of the user. String? get ipAddress; + @override /// The user agent of the user. - @override String? get userAgent; - - /// Create a copy of MandateDataOnlineData - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$MandateDataOnlineDataImplCopyWith<_$MandateDataOnlineDataImpl> get copyWith => throw _privateConstructorUsedError; } @@ -14163,12 +13592,8 @@ mixin _$ThreeDSecureUsage { /// Whether 3ds is supported or not. bool? get isSupported => throw _privateConstructorUsedError; - /// Serializes this ThreeDSecureUsage to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of ThreeDSecureUsage - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $ThreeDSecureUsageCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -14192,8 +13617,6 @@ class _$ThreeDSecureUsageCopyWithImpl<$Res, $Val extends ThreeDSecureUsage> // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of ThreeDSecureUsage - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -14227,8 +13650,6 @@ class __$$ThreeDSecureUsageImplCopyWithImpl<$Res> $Res Function(_$ThreeDSecureUsageImpl) _then) : super(_value, _then); - /// Create a copy of ThreeDSecureUsage - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -14270,13 +13691,11 @@ class _$ThreeDSecureUsageImpl implements _ThreeDSecureUsage { other.isSupported == isSupported)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, isSupported); - /// Create a copy of ThreeDSecureUsage - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$ThreeDSecureUsageImplCopyWith<_$ThreeDSecureUsageImpl> get copyWith => @@ -14298,14 +13717,12 @@ abstract class _ThreeDSecureUsage implements ThreeDSecureUsage { factory _ThreeDSecureUsage.fromJson(Map json) = _$ThreeDSecureUsageImpl.fromJson; - /// Whether 3ds is supported or not. @override - bool? get isSupported; - /// Create a copy of ThreeDSecureUsage - /// with the given fields replaced by the non-null parameter values. + /// Whether 3ds is supported or not. + bool? get isSupported; @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$ThreeDSecureUsageImplCopyWith<_$ThreeDSecureUsageImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_platform_interface/lib/src/models/payment_sheet.dart b/packages/stripe_platform_interface/lib/src/models/payment_sheet.dart index e997ac223..3ef3b29fe 100644 --- a/packages/stripe_platform_interface/lib/src/models/payment_sheet.dart +++ b/packages/stripe_platform_interface/lib/src/models/payment_sheet.dart @@ -32,6 +32,10 @@ class SetupPaymentSheetParameters with _$SetupPaymentSheetParameters { ///A temp key can be used for API operations that require a secret key. String? customerEphemeralKeySecret, + /// (Experimental) This parameter can be changed or removed at any time (use at your own risk). + /// The client secret of this Customer Session. Used on the client to set up secure access to the given customer. + String? customerSessionClientSecret, + /// Secret used for client-side retrieval using a publishable key. /// /// If this value is null make sure to add a [setupIntentClientSecret] diff --git a/packages/stripe_platform_interface/lib/src/models/payment_sheet.freezed.dart b/packages/stripe_platform_interface/lib/src/models/payment_sheet.freezed.dart index 1f43aff37..3fb1afa25 100644 --- a/packages/stripe_platform_interface/lib/src/models/payment_sheet.freezed.dart +++ b/packages/stripe_platform_interface/lib/src/models/payment_sheet.freezed.dart @@ -38,6 +38,10 @@ mixin _$SetupPaymentSheetParameters { ///A temp key can be used for API operations that require a secret key. String? get customerEphemeralKeySecret => throw _privateConstructorUsedError; + /// (Experimental) This parameter can be changed or removed at any time (use at your own risk). + /// The client secret of this Customer Session. Used on the client to set up secure access to the given customer. + String? get customerSessionClientSecret => throw _privateConstructorUsedError; + /// Secret used for client-side retrieval using a publishable key. /// /// If this value is null make sure to add a [setupIntentClientSecret] @@ -119,12 +123,8 @@ mixin _$SetupPaymentSheetParameters { @JsonKey(toJson: _cardBrandListToJson) List? get preferredNetworks => throw _privateConstructorUsedError; - /// Serializes this SetupPaymentSheetParameters to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of SetupPaymentSheetParameters - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $SetupPaymentSheetParametersCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -142,6 +142,7 @@ abstract class $SetupPaymentSheetParametersCopyWith<$Res> { String? customerId, String? primaryButtonLabel, String? customerEphemeralKeySecret, + String? customerSessionClientSecret, String? paymentIntentClientSecret, String? setupIntentClientSecret, IntentConfiguration? intentConfiguration, @@ -181,8 +182,6 @@ class _$SetupPaymentSheetParametersCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of SetupPaymentSheetParameters - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -190,6 +189,7 @@ class _$SetupPaymentSheetParametersCopyWithImpl<$Res, Object? customerId = freezed, Object? primaryButtonLabel = freezed, Object? customerEphemeralKeySecret = freezed, + Object? customerSessionClientSecret = freezed, Object? paymentIntentClientSecret = freezed, Object? setupIntentClientSecret = freezed, Object? intentConfiguration = freezed, @@ -224,6 +224,10 @@ class _$SetupPaymentSheetParametersCopyWithImpl<$Res, ? _value.customerEphemeralKeySecret : customerEphemeralKeySecret // ignore: cast_nullable_to_non_nullable as String?, + customerSessionClientSecret: freezed == customerSessionClientSecret + ? _value.customerSessionClientSecret + : customerSessionClientSecret // ignore: cast_nullable_to_non_nullable + as String?, paymentIntentClientSecret: freezed == paymentIntentClientSecret ? _value.paymentIntentClientSecret : paymentIntentClientSecret // ignore: cast_nullable_to_non_nullable @@ -294,8 +298,6 @@ class _$SetupPaymentSheetParametersCopyWithImpl<$Res, ) as $Val); } - /// Create a copy of SetupPaymentSheetParameters - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $IntentConfigurationCopyWith<$Res>? get intentConfiguration { @@ -309,8 +311,6 @@ class _$SetupPaymentSheetParametersCopyWithImpl<$Res, }); } - /// Create a copy of SetupPaymentSheetParameters - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentSheetApplePayCopyWith<$Res>? get applePay { @@ -323,8 +323,6 @@ class _$SetupPaymentSheetParametersCopyWithImpl<$Res, }); } - /// Create a copy of SetupPaymentSheetParameters - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentSheetGooglePayCopyWith<$Res>? get googlePay { @@ -337,8 +335,6 @@ class _$SetupPaymentSheetParametersCopyWithImpl<$Res, }); } - /// Create a copy of SetupPaymentSheetParameters - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentSheetAppearanceCopyWith<$Res>? get appearance { @@ -351,8 +347,6 @@ class _$SetupPaymentSheetParametersCopyWithImpl<$Res, }); } - /// Create a copy of SetupPaymentSheetParameters - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $BillingDetailsCopyWith<$Res>? get billingDetails { @@ -365,8 +359,6 @@ class _$SetupPaymentSheetParametersCopyWithImpl<$Res, }); } - /// Create a copy of SetupPaymentSheetParameters - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $BillingDetailsCollectionConfigurationCopyWith<$Res>? @@ -396,6 +388,7 @@ abstract class _$$SetupParametersImplCopyWith<$Res> String? customerId, String? primaryButtonLabel, String? customerEphemeralKeySecret, + String? customerSessionClientSecret, String? paymentIntentClientSecret, String? setupIntentClientSecret, IntentConfiguration? intentConfiguration, @@ -438,8 +431,6 @@ class __$$SetupParametersImplCopyWithImpl<$Res> _$SetupParametersImpl _value, $Res Function(_$SetupParametersImpl) _then) : super(_value, _then); - /// Create a copy of SetupPaymentSheetParameters - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -447,6 +438,7 @@ class __$$SetupParametersImplCopyWithImpl<$Res> Object? customerId = freezed, Object? primaryButtonLabel = freezed, Object? customerEphemeralKeySecret = freezed, + Object? customerSessionClientSecret = freezed, Object? paymentIntentClientSecret = freezed, Object? setupIntentClientSecret = freezed, Object? intentConfiguration = freezed, @@ -481,6 +473,10 @@ class __$$SetupParametersImplCopyWithImpl<$Res> ? _value.customerEphemeralKeySecret : customerEphemeralKeySecret // ignore: cast_nullable_to_non_nullable as String?, + customerSessionClientSecret: freezed == customerSessionClientSecret + ? _value.customerSessionClientSecret + : customerSessionClientSecret // ignore: cast_nullable_to_non_nullable + as String?, paymentIntentClientSecret: freezed == paymentIntentClientSecret ? _value.paymentIntentClientSecret : paymentIntentClientSecret // ignore: cast_nullable_to_non_nullable @@ -561,6 +557,7 @@ class _$SetupParametersImpl implements _SetupParameters { this.customerId, this.primaryButtonLabel, this.customerEphemeralKeySecret, + this.customerSessionClientSecret, this.paymentIntentClientSecret, this.setupIntentClientSecret, this.intentConfiguration, @@ -606,6 +603,11 @@ class _$SetupParametersImpl implements _SetupParameters { @override final String? customerEphemeralKeySecret; + /// (Experimental) This parameter can be changed or removed at any time (use at your own risk). + /// The client secret of this Customer Session. Used on the client to set up secure access to the given customer. + @override + final String? customerSessionClientSecret; + /// Secret used for client-side retrieval using a publishable key. /// /// If this value is null make sure to add a [setupIntentClientSecret] @@ -727,7 +729,7 @@ class _$SetupParametersImpl implements _SetupParameters { @override String toString() { - return 'SetupPaymentSheetParameters(customFlow: $customFlow, customerId: $customerId, primaryButtonLabel: $primaryButtonLabel, customerEphemeralKeySecret: $customerEphemeralKeySecret, paymentIntentClientSecret: $paymentIntentClientSecret, setupIntentClientSecret: $setupIntentClientSecret, intentConfiguration: $intentConfiguration, merchantDisplayName: $merchantDisplayName, applePay: $applePay, style: $style, googlePay: $googlePay, allowsDelayedPaymentMethods: $allowsDelayedPaymentMethods, appearance: $appearance, billingDetails: $billingDetails, allowsRemovalOfLastSavedPaymentMethod: $allowsRemovalOfLastSavedPaymentMethod, paymentMethodOrder: $paymentMethodOrder, returnURL: $returnURL, billingDetailsCollectionConfiguration: $billingDetailsCollectionConfiguration, removeSavedPaymentMethodMessage: $removeSavedPaymentMethodMessage, preferredNetworks: $preferredNetworks)'; + return 'SetupPaymentSheetParameters(customFlow: $customFlow, customerId: $customerId, primaryButtonLabel: $primaryButtonLabel, customerEphemeralKeySecret: $customerEphemeralKeySecret, customerSessionClientSecret: $customerSessionClientSecret, paymentIntentClientSecret: $paymentIntentClientSecret, setupIntentClientSecret: $setupIntentClientSecret, intentConfiguration: $intentConfiguration, merchantDisplayName: $merchantDisplayName, applePay: $applePay, style: $style, googlePay: $googlePay, allowsDelayedPaymentMethods: $allowsDelayedPaymentMethods, appearance: $appearance, billingDetails: $billingDetails, allowsRemovalOfLastSavedPaymentMethod: $allowsRemovalOfLastSavedPaymentMethod, paymentMethodOrder: $paymentMethodOrder, returnURL: $returnURL, billingDetailsCollectionConfiguration: $billingDetailsCollectionConfiguration, removeSavedPaymentMethodMessage: $removeSavedPaymentMethodMessage, preferredNetworks: $preferredNetworks)'; } @override @@ -744,6 +746,9 @@ class _$SetupParametersImpl implements _SetupParameters { (identical(other.customerEphemeralKeySecret, customerEphemeralKeySecret) || other.customerEphemeralKeySecret == customerEphemeralKeySecret) && + (identical(other.customerSessionClientSecret, customerSessionClientSecret) || + other.customerSessionClientSecret == + customerSessionClientSecret) && (identical(other.paymentIntentClientSecret, paymentIntentClientSecret) || other.paymentIntentClientSecret == paymentIntentClientSecret) && (identical(other.setupIntentClientSecret, setupIntentClientSecret) || @@ -774,13 +779,11 @@ class _$SetupParametersImpl implements _SetupParameters { (identical(other.billingDetailsCollectionConfiguration, billingDetailsCollectionConfiguration) || other.billingDetailsCollectionConfiguration == billingDetailsCollectionConfiguration) && - (identical(other.removeSavedPaymentMethodMessage, removeSavedPaymentMethodMessage) || - other.removeSavedPaymentMethodMessage == - removeSavedPaymentMethodMessage) && + (identical(other.removeSavedPaymentMethodMessage, removeSavedPaymentMethodMessage) || other.removeSavedPaymentMethodMessage == removeSavedPaymentMethodMessage) && const DeepCollectionEquality().equals(other._preferredNetworks, _preferredNetworks)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hashAll([ runtimeType, @@ -788,6 +791,7 @@ class _$SetupParametersImpl implements _SetupParameters { customerId, primaryButtonLabel, customerEphemeralKeySecret, + customerSessionClientSecret, paymentIntentClientSecret, setupIntentClientSecret, intentConfiguration, @@ -806,9 +810,7 @@ class _$SetupParametersImpl implements _SetupParameters { const DeepCollectionEquality().hash(_preferredNetworks) ]); - /// Create a copy of SetupPaymentSheetParameters - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$SetupParametersImplCopyWith<_$SetupParametersImpl> get copyWith => @@ -829,6 +831,7 @@ abstract class _SetupParameters implements SetupPaymentSheetParameters { final String? customerId, final String? primaryButtonLabel, final String? customerEphemeralKeySecret, + final String? customerSessionClientSecret, final String? paymentIntentClientSecret, final String? setupIntentClientSecret, final IntentConfiguration? intentConfiguration, @@ -852,76 +855,83 @@ abstract class _SetupParameters implements SetupPaymentSheetParameters { factory _SetupParameters.fromJson(Map json) = _$SetupParametersImpl.fromJson; + @override + /// Whether or not to use a custom flow. /// /// If this value is true, the payment sheet will allow to select a payment method /// and a later confirmation will be needed by calling [confirmPaymentSheetPayment] /// By default, false. - @override bool get customFlow; + @override /// The identifier of the Stripe Customer object. /// See https://stripe.com/docs/api/customers/object#customer_object-id - @override String? get customerId; + @override /// The label to use for the primary button. If not set, Payment Sheet will display suitable default labels for payment and setup intents - @override String? get primaryButtonLabel; + @override ///A temp key can be used for API operations that require a secret key. - @override String? get customerEphemeralKeySecret; + @override + + /// (Experimental) This parameter can be changed or removed at any time (use at your own risk). + /// The client secret of this Customer Session. Used on the client to set up secure access to the given customer. + String? get customerSessionClientSecret; + @override /// Secret used for client-side retrieval using a publishable key. /// /// If this value is null make sure to add a [setupIntentClientSecret] - @override String? get paymentIntentClientSecret; + @override /// The client secret of this SetupIntent /// /// If this value is null make sure to add a [paymentIntentClientSecret] - @override String? get setupIntentClientSecret; + @override /// Use this when you want to collect payment information before creating a /// setupintent or payment intent. - @override IntentConfiguration? get intentConfiguration; + @override /// Display name of the merchant - @override String? get merchantDisplayName; + @override /// Configuration related to Apple Pay /// If set, PaymentSheet displays Apple Pay as a payment option - @override PaymentSheetApplePay? get applePay; + @override /// iOS only style options for colors in PaymentSheet /// /// Parts can be overridden by [appearance]. - @override @JsonKey(toJson: UserInterfaceStyleKey.toJson) ThemeMode? get style; + @override /// Configuration related to Google Pay /// If set, PaymentSheet displays Google Pay as a payment option - @override PaymentSheetGooglePay? get googlePay; + @override /// Flag that allows payment methods that do not move money at the send of the checkout. /// /// Defaul value is false. - @override bool get allowsDelayedPaymentMethods; + @override /// Appearance of the paymentsheet. /// /// When no appearance defined it will fallback to [style] or Stripe default. - @override PaymentSheetAppearance? get appearance; + @override /// Default billing information of the customer. /// @@ -929,47 +939,43 @@ abstract class _SetupParameters implements SetupPaymentSheetParameters { /// For example when you supply a country the country will be set on the payment sheet + /// alternative localization options. This does not set the billingDetails on the /// paymentIntent since the customer can change those. - @override @JsonKey(name: 'defaultBillingDetails') BillingDetails? get billingDetails; + @override ///This is an experimental feature that may be removed at any time. /// Defaults to true. If true, the customer can delete all saved payment methods. /// If false, the customer can't delete if they only have one saved payment method remaining. - @override bool? get allowsRemovalOfLastSavedPaymentMethod; + @override /// By default, PaymentSheet will use a dynamic ordering that optimizes payment method display for the customer. /// You can override the default order in which payment methods are displayed in PaymentSheet with a list of payment method types. /// See https://stripe.com/docs/api/payment_methods/object#payment_method_object-type for the list of valid types. You may also pass external payment methods. /// Example: ["card", "external_paypal", "klarna"] /// If you omit payment methods from this list, they’ll be automatically ordered by Stripe after the ones you provide. Invalid payment methods are ignored. - @override List? get paymentMethodOrder; + @override /// Return URL is required for IDEAL, Klarna and few other payment methods - @override String? get returnURL; + @override /// Configuration for how billing details are collected during checkout. - @override BillingDetailsCollectionConfiguration? get billingDetailsCollectionConfiguration; + @override /// Optional configuration to display a custom message when a saved payment method is removed. iOS only. - @override String? get removeSavedPaymentMethodMessage; + @override /// The list of preferred networks that should be used to process payments made with a co-branded card. /// This value will only be used if your user hasn't selected a network themselves. - @override @JsonKey(toJson: _cardBrandListToJson) List? get preferredNetworks; - - /// Create a copy of SetupPaymentSheetParameters - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$SetupParametersImplCopyWith<_$SetupParametersImpl> get copyWith => throw _privateConstructorUsedError; } @@ -993,12 +999,8 @@ mixin _$IntentConfiguration { @JsonKey(includeFromJson: false, includeToJson: false) ConfirmHandler? get confirmHandler => throw _privateConstructorUsedError; - /// Serializes this IntentConfiguration to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of IntentConfiguration - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $IntentConfigurationCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -1028,8 +1030,6 @@ class _$IntentConfigurationCopyWithImpl<$Res, $Val extends IntentConfiguration> // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of IntentConfiguration - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1053,8 +1053,6 @@ class _$IntentConfigurationCopyWithImpl<$Res, $Val extends IntentConfiguration> ) as $Val); } - /// Create a copy of IntentConfiguration - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $IntentModeCopyWith<$Res> get mode { @@ -1090,8 +1088,6 @@ class __$$IntentConfigurationImplCopyWithImpl<$Res> $Res Function(_$IntentConfigurationImpl) _then) : super(_value, _then); - /// Create a copy of IntentConfiguration - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1175,14 +1171,12 @@ class _$IntentConfigurationImpl implements _IntentConfiguration { other.confirmHandler == confirmHandler)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, mode, const DeepCollectionEquality().hash(_paymentMethodTypes), confirmHandler); - /// Create a copy of IntentConfiguration - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$IntentConfigurationImplCopyWith<_$IntentConfigurationImpl> get copyWith => @@ -1207,26 +1201,24 @@ abstract class _IntentConfiguration implements IntentConfiguration { factory _IntentConfiguration.fromJson(Map json) = _$IntentConfigurationImpl.fromJson; - /// Data related to the future payment intent @override + + /// Data related to the future payment intent IntentMode get mode; + @override /// The list of payment method types that the customer can use in the payment sheet. /// /// If not set, the payment sheet will display all the payment methods enabled in your Stripe dashboard. - @override List? get paymentMethodTypes; + @override /// Called when the customer confirms payment. Your implementation should create /// a payment intent or setupintent on your server and call the intent creation callback with its client secret or an error if one occurred. - @override @JsonKey(includeFromJson: false, includeToJson: false) ConfirmHandler? get confirmHandler; - - /// Create a copy of IntentConfiguration - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$IntentConfigurationImplCopyWith<_$IntentConfigurationImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1298,13 +1290,8 @@ mixin _$IntentMode { required TResult orElse(), }) => throw _privateConstructorUsedError; - - /// Serializes this IntentMode to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of IntentMode - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $IntentModeCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -1328,8 +1315,6 @@ class _$IntentModeCopyWithImpl<$Res, $Val extends IntentMode> // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of IntentMode - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1372,8 +1357,6 @@ class __$$PaymentModeImplCopyWithImpl<$Res> _$PaymentModeImpl _value, $Res Function(_$PaymentModeImpl) _then) : super(_value, _then); - /// Create a copy of IntentMode - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1453,14 +1436,12 @@ class _$PaymentModeImpl implements _PaymentMode { other.captureMethod == captureMethod)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash( runtimeType, currencyCode, amount, setupFutureUsage, captureMethod); - /// Create a copy of IntentMode - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$PaymentModeImplCopyWith<_$PaymentModeImpl> get copyWith => @@ -1560,18 +1541,15 @@ abstract class _PaymentMode implements IntentMode { @override String get currencyCode; int get amount; + @override /// Data related to the future payment intent - @override IntentFutureUsage? get setupFutureUsage; /// Capture method for the future payment intent CaptureMethod? get captureMethod; - - /// Create a copy of IntentMode - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$PaymentModeImplCopyWith<_$PaymentModeImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1595,8 +1573,6 @@ class __$$SetupModeImplCopyWithImpl<$Res> _$SetupModeImpl _value, $Res Function(_$SetupModeImpl) _then) : super(_value, _then); - /// Create a copy of IntentMode - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1653,13 +1629,11 @@ class _$SetupModeImpl implements _SetupMode { other.setupFutureUsage == setupFutureUsage)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, currencyCode, setupFutureUsage); - /// Create a copy of IntentMode - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$SetupModeImplCopyWith<_$SetupModeImpl> get copyWith => @@ -1755,15 +1729,12 @@ abstract class _SetupMode implements IntentMode { @override String? get currencyCode; + @override /// Data related to the future payment intent - @override IntentFutureUsage get setupFutureUsage; - - /// Create a copy of IntentMode - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$SetupModeImplCopyWith<_$SetupModeImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1795,12 +1766,8 @@ mixin _$PaymentSheetApplePay { @JsonKey(includeFromJson: false, includeToJson: false) OnOrderTracking? get setOrderTracking => throw _privateConstructorUsedError; - /// Serializes this PaymentSheetApplePay to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of PaymentSheetApplePay - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $PaymentSheetApplePayCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -1833,8 +1800,6 @@ class _$PaymentSheetApplePayCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of PaymentSheetApplePay - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1868,8 +1833,6 @@ class _$PaymentSheetApplePayCopyWithImpl<$Res, ) as $Val); } - /// Create a copy of PaymentSheetApplePay - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentRequestTypeCopyWith<$Res>? get request { @@ -1911,8 +1874,6 @@ class __$$PaymentSheetApplePayImplCopyWithImpl<$Res> $Res Function(_$PaymentSheetApplePayImpl) _then) : super(_value, _then); - /// Create a copy of PaymentSheetApplePay - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -2019,7 +1980,7 @@ class _$PaymentSheetApplePayImpl implements _PaymentSheetApplePay { other.setOrderTracking == setOrderTracking)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash( runtimeType, @@ -2029,9 +1990,7 @@ class _$PaymentSheetApplePayImpl implements _PaymentSheetApplePay { request, setOrderTracking); - /// Create a copy of PaymentSheetApplePay - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$PaymentSheetApplePayImplCopyWith<_$PaymentSheetApplePayImpl> @@ -2059,35 +2018,33 @@ abstract class _PaymentSheetApplePay implements PaymentSheetApplePay { factory _PaymentSheetApplePay.fromJson(Map json) = _$PaymentSheetApplePayImpl.fromJson; - ///The two-letter ISO 3166 code of the country of your business, e.g. "US" @override + + ///The two-letter ISO 3166 code of the country of your business, e.g. "US" String get merchantCountryCode; + @override ///An array of CartSummaryItem item objects that summarize the amount of the payment. If you're using a SetupIntent /// for a recurring payment, you should set this to display the amount you intend to charge. - @override List? get cartItems; + @override /// Sets the the text displayed by the call to action button in the apple pay sheet. - @override PlatformButtonType? get buttonType; + @override /// Use this for a different payment request than a one time request. - @override PaymentRequestType? get request; + @override /// Callback function for setting the order details (retrieved from your server) to give users the /// ability to track and manage their purchases in Wallet. Stripe calls your implementation after the /// payment is complete, but before iOS dismisses the Apple Pay sheet. You must call the `completion` /// function, or else the Apple Pay sheet will hang. - @override @JsonKey(includeFromJson: false, includeToJson: false) OnOrderTracking? get setOrderTracking; - - /// Create a copy of PaymentSheetApplePay - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$PaymentSheetApplePayImplCopyWith<_$PaymentSheetApplePayImpl> get copyWith => throw _privateConstructorUsedError; } @@ -2117,12 +2074,8 @@ mixin _$PaymentSheetGooglePay { /// The Google Pay button type to use. Set to "Pay" by default. PlatformButtonType? get buttonType => throw _privateConstructorUsedError; - /// Serializes this PaymentSheetGooglePay to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of PaymentSheetGooglePay - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $PaymentSheetGooglePayCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -2153,8 +2106,6 @@ class _$PaymentSheetGooglePayCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of PaymentSheetGooglePay - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -2221,8 +2172,6 @@ class __$$PaymentSheetGooglePayImplCopyWithImpl<$Res> $Res Function(_$PaymentSheetGooglePayImpl) _then) : super(_value, _then); - /// Create a copy of PaymentSheetGooglePay - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -2323,14 +2272,12 @@ class _$PaymentSheetGooglePayImpl implements _PaymentSheetGooglePay { other.buttonType == buttonType)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, merchantCountryCode, currencyCode, testEnv, label, amount, buttonType); - /// Create a copy of PaymentSheetGooglePay - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$PaymentSheetGooglePayImplCopyWith<_$PaymentSheetGooglePayImpl> @@ -2357,34 +2304,32 @@ abstract class _PaymentSheetGooglePay implements PaymentSheetGooglePay { factory _PaymentSheetGooglePay.fromJson(Map json) = _$PaymentSheetGooglePayImpl.fromJson; - ///The two-letter ISO 3166 code of the country of your business, e.g. "US" @override + + ///The two-letter ISO 3166 code of the country of your business, e.g. "US" String get merchantCountryCode; + @override /// The three-letter ISO 4217 alphabetic currency code, e.g. "USD" or "EUR". Required in order to support Google Pay when processing a Setup Intent. - @override String? get currencyCode; + @override /// Whether or not to use the google pay test environment. Set to `true` until you have applied for and been granted access to the Production environment. - @override bool get testEnv; + @override /// An optional label to display with the amount. Google Pay may or may not display this label depending on its own internal logic. Defaults to a generic label if none is provided. - @override String? get label; + @override /// An optional amount to display for setup intents. Google Pay may or may not display this amount depending on its own internal logic. Defaults to 0 if none is provided. - @override String? get amount; + @override /// The Google Pay button type to use. Set to "Pay" by default. - @override PlatformButtonType? get buttonType; - - /// Create a copy of PaymentSheetGooglePay - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$PaymentSheetGooglePayImplCopyWith<_$PaymentSheetGooglePayImpl> get copyWith => throw _privateConstructorUsedError; } @@ -2407,12 +2352,8 @@ mixin _$PaymentSheetAppearance { PaymentSheetPrimaryButtonAppearance? get primaryButton => throw _privateConstructorUsedError; - /// Serializes this PaymentSheetAppearance to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of PaymentSheetAppearance - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $PaymentSheetAppearanceCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -2444,8 +2385,6 @@ class _$PaymentSheetAppearanceCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of PaymentSheetAppearance - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -2469,8 +2408,6 @@ class _$PaymentSheetAppearanceCopyWithImpl<$Res, ) as $Val); } - /// Create a copy of PaymentSheetAppearance - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentSheetAppearanceColorsCopyWith<$Res>? get colors { @@ -2483,8 +2420,6 @@ class _$PaymentSheetAppearanceCopyWithImpl<$Res, }); } - /// Create a copy of PaymentSheetAppearance - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentSheetShapeCopyWith<$Res>? get shapes { @@ -2497,8 +2432,6 @@ class _$PaymentSheetAppearanceCopyWithImpl<$Res, }); } - /// Create a copy of PaymentSheetAppearance - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentSheetPrimaryButtonAppearanceCopyWith<$Res>? get primaryButton { @@ -2545,8 +2478,6 @@ class __$$PaymentSheetAppearanceImplCopyWithImpl<$Res> $Res Function(_$PaymentSheetAppearanceImpl) _then) : super(_value, _then); - /// Create a copy of PaymentSheetAppearance - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -2609,13 +2540,11 @@ class _$PaymentSheetAppearanceImpl implements _PaymentSheetAppearance { other.primaryButton == primaryButton)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, colors, shapes, primaryButton); - /// Create a copy of PaymentSheetAppearance - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$PaymentSheetAppearanceImplCopyWith<_$PaymentSheetAppearanceImpl> @@ -2640,22 +2569,20 @@ abstract class _PaymentSheetAppearance implements PaymentSheetAppearance { factory _PaymentSheetAppearance.fromJson(Map json) = _$PaymentSheetAppearanceImpl.fromJson; - /// Color parameters @override + + /// Color parameters PaymentSheetAppearanceColors? get colors; + @override /// Shapes parameters - @override PaymentSheetShape? get shapes; + @override /// PaymentSheet appearance - @override PaymentSheetPrimaryButtonAppearance? get primaryButton; - - /// Create a copy of PaymentSheetAppearance - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$PaymentSheetAppearanceImplCopyWith<_$PaymentSheetAppearanceImpl> get copyWith => throw _privateConstructorUsedError; } @@ -2715,12 +2642,8 @@ mixin _$PaymentSheetAppearanceColors { @JsonKey(toJson: ColorKey.toJson, fromJson: ColorKey.fromJson) Color? get error => throw _privateConstructorUsedError; - /// Serializes this PaymentSheetAppearanceColors to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of PaymentSheetAppearanceColors - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $PaymentSheetAppearanceColorsCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -2769,8 +2692,6 @@ class _$PaymentSheetAppearanceColorsCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of PaymentSheetAppearanceColors - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -2879,8 +2800,6 @@ class __$$PaymentSheetAppearanceColorsImplCopyWithImpl<$Res> $Res Function(_$PaymentSheetAppearanceColorsImpl) _then) : super(_value, _then); - /// Create a copy of PaymentSheetAppearanceColors - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -3066,7 +2985,7 @@ class _$PaymentSheetAppearanceColorsImpl (identical(other.error, error) || other.error == error)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash( runtimeType, @@ -3082,9 +3001,7 @@ class _$PaymentSheetAppearanceColorsImpl icon, error); - /// Create a copy of PaymentSheetAppearanceColors - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$PaymentSheetAppearanceColorsImplCopyWith< @@ -3129,69 +3046,67 @@ abstract class _PaymentSheetAppearanceColors factory _PaymentSheetAppearanceColors.fromJson(Map json) = _$PaymentSheetAppearanceColorsImpl.fromJson; + @override + /// Color of the button that represents the primary action on the payment sheet. /// /// Make sure there is enough contrast with [background]. - @override @JsonKey(toJson: ColorKey.toJson, fromJson: ColorKey.fromJson) Color? get primary; + @override /// Background color of the payment sheet. /// /// Make sure there is enough contrast with [primary]. - @override @JsonKey(toJson: ColorKey.toJson, fromJson: ColorKey.fromJson) Color? get background; + @override /// Background color of the payment sheet components. - @override @JsonKey(toJson: ColorKey.toJson, fromJson: ColorKey.fromJson) Color? get componentBackground; + @override /// Border color of the payment sheet components. - @override @JsonKey(toJson: ColorKey.toJson, fromJson: ColorKey.fromJson) Color? get componentBorder; + @override /// Divider color of the payment sheet components. - @override @JsonKey(toJson: ColorKey.toJson, fromJson: ColorKey.fromJson) Color? get componentDivider; + @override /// Color of the entered text in the payment components. - @override @JsonKey(toJson: ColorKey.toJson, fromJson: ColorKey.fromJson) Color? get componentText; + @override /// Primary text color. - @override @JsonKey(toJson: ColorKey.toJson, fromJson: ColorKey.fromJson) Color? get primaryText; + @override /// Secondary text color. - @override @JsonKey(toJson: ColorKey.toJson, fromJson: ColorKey.fromJson) Color? get secondaryText; + @override /// Place holder text color. - @override @JsonKey(toJson: ColorKey.toJson, fromJson: ColorKey.fromJson) Color? get placeholderText; + @override /// Color of the displayed icons - @override @JsonKey(toJson: ColorKey.toJson, fromJson: ColorKey.fromJson) Color? get icon; + @override /// Color of the warning and error messages. - @override @JsonKey(toJson: ColorKey.toJson, fromJson: ColorKey.fromJson) Color? get error; - - /// Create a copy of PaymentSheetAppearanceColors - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$PaymentSheetAppearanceColorsImplCopyWith< _$PaymentSheetAppearanceColorsImpl> get copyWith => throw _privateConstructorUsedError; @@ -3212,12 +3127,8 @@ mixin _$PaymentSheetShape { /// Appearance config of the payment sheet shadow PaymentSheetShadowParams? get shadow => throw _privateConstructorUsedError; - /// Serializes this PaymentSheetShape to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of PaymentSheetShape - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $PaymentSheetShapeCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -3246,8 +3157,6 @@ class _$PaymentSheetShapeCopyWithImpl<$Res, $Val extends PaymentSheetShape> // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of PaymentSheetShape - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -3271,8 +3180,6 @@ class _$PaymentSheetShapeCopyWithImpl<$Res, $Val extends PaymentSheetShape> ) as $Val); } - /// Create a copy of PaymentSheetShape - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentSheetShadowParamsCopyWith<$Res>? get shadow { @@ -3311,8 +3218,6 @@ class __$$PaymentSheetShapeImplCopyWithImpl<$Res> $Res Function(_$PaymentSheetShapeImpl) _then) : super(_value, _then); - /// Create a copy of PaymentSheetShape - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -3376,14 +3281,12 @@ class _$PaymentSheetShapeImpl implements _PaymentSheetShape { (identical(other.shadow, shadow) || other.shadow == shadow)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, borderRadius, borderWidth, shadow); - /// Create a copy of PaymentSheetShape - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$PaymentSheetShapeImplCopyWith<_$PaymentSheetShapeImpl> get copyWith => @@ -3407,22 +3310,20 @@ abstract class _PaymentSheetShape implements PaymentSheetShape { factory _PaymentSheetShape.fromJson(Map json) = _$PaymentSheetShapeImpl.fromJson; - /// Borderradius for the paymentsheet corners @override + + /// Borderradius for the paymentsheet corners double? get borderRadius; + @override /// Borderwidth for the paymentsheet components - @override double? get borderWidth; + @override /// Appearance config of the payment sheet shadow - @override PaymentSheetShadowParams? get shadow; - - /// Create a copy of PaymentSheetShape - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$PaymentSheetShapeImplCopyWith<_$PaymentSheetShapeImpl> get copyWith => throw _privateConstructorUsedError; } @@ -3444,12 +3345,8 @@ mixin _$PaymentSheetShadowParams { /// Shadow offset PaymentSheetShadowOffset? get offset => throw _privateConstructorUsedError; - /// Serializes this PaymentSheetShadowParams to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of PaymentSheetShadowParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $PaymentSheetShadowParamsCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -3480,8 +3377,6 @@ class _$PaymentSheetShadowParamsCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of PaymentSheetShadowParams - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -3505,8 +3400,6 @@ class _$PaymentSheetShadowParamsCopyWithImpl<$Res, ) as $Val); } - /// Create a copy of PaymentSheetShadowParams - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentSheetShadowOffsetCopyWith<$Res>? get offset { @@ -3549,8 +3442,6 @@ class __$$PaymentSheetShadowParamsImplCopyWithImpl<$Res> $Res Function(_$PaymentSheetShadowParamsImpl) _then) : super(_value, _then); - /// Create a copy of PaymentSheetShadowParams - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -3616,13 +3507,11 @@ class _$PaymentSheetShadowParamsImpl implements _PaymentSheetShadowParams { (identical(other.offset, offset) || other.offset == offset)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, color, opacity, offset); - /// Create a copy of PaymentSheetShadowParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$PaymentSheetShadowParamsImplCopyWith<_$PaymentSheetShadowParamsImpl> @@ -3647,23 +3536,21 @@ abstract class _PaymentSheetShadowParams implements PaymentSheetShadowParams { factory _PaymentSheetShadowParams.fromJson(Map json) = _$PaymentSheetShadowParamsImpl.fromJson; - /// Shadow color @override + + /// Shadow color @JsonKey(toJson: ColorKey.toJson, fromJson: ColorKey.fromJson) Color? get color; + @override /// Shadow opacity - @override double? get opacity; + @override /// Shadow offset - @override PaymentSheetShadowOffset? get offset; - - /// Create a copy of PaymentSheetShadowParams - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$PaymentSheetShadowParamsImplCopyWith<_$PaymentSheetShadowParamsImpl> get copyWith => throw _privateConstructorUsedError; } @@ -3681,12 +3568,8 @@ mixin _$PaymentSheetShadowOffset { /// Y value double? get y => throw _privateConstructorUsedError; - /// Serializes this PaymentSheetShadowOffset to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of PaymentSheetShadowOffset - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $PaymentSheetShadowOffsetCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -3711,8 +3594,6 @@ class _$PaymentSheetShadowOffsetCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of PaymentSheetShadowOffset - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -3754,8 +3635,6 @@ class __$$PaymentSheetShadowOffsetImplCopyWithImpl<$Res> $Res Function(_$PaymentSheetShadowOffsetImpl) _then) : super(_value, _then); - /// Create a copy of PaymentSheetShadowOffset - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -3806,13 +3685,11 @@ class _$PaymentSheetShadowOffsetImpl implements _PaymentSheetShadowOffset { (identical(other.y, y) || other.y == y)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, x, y); - /// Create a copy of PaymentSheetShadowOffset - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$PaymentSheetShadowOffsetImplCopyWith<_$PaymentSheetShadowOffsetImpl> @@ -3834,18 +3711,16 @@ abstract class _PaymentSheetShadowOffset implements PaymentSheetShadowOffset { factory _PaymentSheetShadowOffset.fromJson(Map json) = _$PaymentSheetShadowOffsetImpl.fromJson; - /// X value @override + + /// X value double? get x; + @override /// Y value - @override double? get y; - - /// Create a copy of PaymentSheetShadowOffset - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$PaymentSheetShadowOffsetImplCopyWith<_$PaymentSheetShadowOffsetImpl> get copyWith => throw _privateConstructorUsedError; } @@ -3865,12 +3740,8 @@ mixin _$PaymentSheetPrimaryButtonAppearance { PaymentSheetPrimaryButtonShape? get shapes => throw _privateConstructorUsedError; - /// Serializes this PaymentSheetPrimaryButtonAppearance to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of PaymentSheetPrimaryButtonAppearance - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $PaymentSheetPrimaryButtonAppearanceCopyWith< PaymentSheetPrimaryButtonAppearance> get copyWith => throw _privateConstructorUsedError; @@ -3903,8 +3774,6 @@ class _$PaymentSheetPrimaryButtonAppearanceCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of PaymentSheetPrimaryButtonAppearance - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -3923,8 +3792,6 @@ class _$PaymentSheetPrimaryButtonAppearanceCopyWithImpl<$Res, ) as $Val); } - /// Create a copy of PaymentSheetPrimaryButtonAppearance - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentSheetPrimaryButtonThemeCopyWith<$Res>? get colors { @@ -3938,8 +3805,6 @@ class _$PaymentSheetPrimaryButtonAppearanceCopyWithImpl<$Res, }); } - /// Create a copy of PaymentSheetPrimaryButtonAppearance - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentSheetPrimaryButtonShapeCopyWith<$Res>? get shapes { @@ -3983,8 +3848,6 @@ class __$$PaymentSheetPrimaryButtonAppearanceImplCopyWithImpl<$Res> $Res Function(_$PaymentSheetPrimaryButtonAppearanceImpl) _then) : super(_value, _then); - /// Create a copy of PaymentSheetPrimaryButtonAppearance - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -4037,13 +3900,11 @@ class _$PaymentSheetPrimaryButtonAppearanceImpl (identical(other.shapes, shapes) || other.shapes == shapes)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, colors, shapes); - /// Create a copy of PaymentSheetPrimaryButtonAppearance - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$PaymentSheetPrimaryButtonAppearanceImplCopyWith< @@ -4070,18 +3931,16 @@ abstract class _PaymentSheetPrimaryButtonAppearance Map json) = _$PaymentSheetPrimaryButtonAppearanceImpl.fromJson; - /// color theme of the primary button @override + + /// color theme of the primary button PaymentSheetPrimaryButtonTheme? get colors; + @override /// Shape params of the primary button - @override PaymentSheetPrimaryButtonShape? get shapes; - - /// Create a copy of PaymentSheetPrimaryButtonAppearance - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$PaymentSheetPrimaryButtonAppearanceImplCopyWith< _$PaymentSheetPrimaryButtonAppearanceImpl> get copyWith => throw _privateConstructorUsedError; @@ -4103,12 +3962,8 @@ mixin _$PaymentSheetPrimaryButtonShape { /// border width of the primary button on the payment sheet double? get borderWidth => throw _privateConstructorUsedError; - /// Serializes this PaymentSheetPrimaryButtonShape to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of PaymentSheetPrimaryButtonShape - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $PaymentSheetPrimaryButtonShapeCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -4140,8 +3995,6 @@ class _$PaymentSheetPrimaryButtonShapeCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of PaymentSheetPrimaryButtonShape - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -4165,8 +4018,6 @@ class _$PaymentSheetPrimaryButtonShapeCopyWithImpl<$Res, ) as $Val); } - /// Create a copy of PaymentSheetPrimaryButtonShape - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentSheetShadowParamsCopyWith<$Res>? get shadow { @@ -4208,8 +4059,6 @@ class __$$PaymentSheetPrimaryButtonShapeImplCopyWithImpl<$Res> $Res Function(_$PaymentSheetPrimaryButtonShapeImpl) _then) : super(_value, _then); - /// Create a copy of PaymentSheetPrimaryButtonShape - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -4275,13 +4124,11 @@ class _$PaymentSheetPrimaryButtonShapeImpl other.borderWidth == borderWidth)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, shadow, blurRadius, borderWidth); - /// Create a copy of PaymentSheetPrimaryButtonShape - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$PaymentSheetPrimaryButtonShapeImplCopyWith< @@ -4307,22 +4154,20 @@ abstract class _PaymentSheetPrimaryButtonShape factory _PaymentSheetPrimaryButtonShape.fromJson(Map json) = _$PaymentSheetPrimaryButtonShapeImpl.fromJson; - /// Configuration of the primary button's shadow. @override + + /// Configuration of the primary button's shadow. PaymentSheetShadowParams? get shadow; + @override /// the blur radius of the button - @override double? get blurRadius; + @override /// border width of the primary button on the payment sheet - @override double? get borderWidth; - - /// Create a copy of PaymentSheetPrimaryButtonShape - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$PaymentSheetPrimaryButtonShapeImplCopyWith< _$PaymentSheetPrimaryButtonShapeImpl> get copyWith => throw _privateConstructorUsedError; @@ -4343,12 +4188,8 @@ mixin _$PaymentSheetPrimaryButtonTheme { PaymentSheetPrimaryButtonThemeColors? get light => throw _privateConstructorUsedError; - /// Serializes this PaymentSheetPrimaryButtonTheme to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of PaymentSheetPrimaryButtonTheme - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $PaymentSheetPrimaryButtonThemeCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -4380,8 +4221,6 @@ class _$PaymentSheetPrimaryButtonThemeCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of PaymentSheetPrimaryButtonTheme - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -4400,8 +4239,6 @@ class _$PaymentSheetPrimaryButtonThemeCopyWithImpl<$Res, ) as $Val); } - /// Create a copy of PaymentSheetPrimaryButtonTheme - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentSheetPrimaryButtonThemeColorsCopyWith<$Res>? get dark { @@ -4415,8 +4252,6 @@ class _$PaymentSheetPrimaryButtonThemeCopyWithImpl<$Res, }); } - /// Create a copy of PaymentSheetPrimaryButtonTheme - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentSheetPrimaryButtonThemeColorsCopyWith<$Res>? get light { @@ -4460,8 +4295,6 @@ class __$$PaymentSheetPrimaryButtonThemeImplCopyWithImpl<$Res> $Res Function(_$PaymentSheetPrimaryButtonThemeImpl) _then) : super(_value, _then); - /// Create a copy of PaymentSheetPrimaryButtonTheme - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -4514,13 +4347,11 @@ class _$PaymentSheetPrimaryButtonThemeImpl (identical(other.light, light) || other.light == light)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, dark, light); - /// Create a copy of PaymentSheetPrimaryButtonTheme - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$PaymentSheetPrimaryButtonThemeImplCopyWith< @@ -4546,18 +4377,16 @@ abstract class _PaymentSheetPrimaryButtonTheme factory _PaymentSheetPrimaryButtonTheme.fromJson(Map json) = _$PaymentSheetPrimaryButtonThemeImpl.fromJson; - /// Colors when displaying button in dark theme @override + + /// Colors when displaying button in dark theme PaymentSheetPrimaryButtonThemeColors? get dark; + @override /// Colors when displaying button in light theme - @override PaymentSheetPrimaryButtonThemeColors? get light; - - /// Create a copy of PaymentSheetPrimaryButtonTheme - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$PaymentSheetPrimaryButtonThemeImplCopyWith< _$PaymentSheetPrimaryButtonThemeImpl> get copyWith => throw _privateConstructorUsedError; @@ -4582,12 +4411,8 @@ mixin _$PaymentSheetPrimaryButtonThemeColors { @JsonKey(toJson: ColorKey.toJson, fromJson: ColorKey.fromJson) Color? get border => throw _privateConstructorUsedError; - /// Serializes this PaymentSheetPrimaryButtonThemeColors to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of PaymentSheetPrimaryButtonThemeColors - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $PaymentSheetPrimaryButtonThemeColorsCopyWith< PaymentSheetPrimaryButtonThemeColors> get copyWith => throw _privateConstructorUsedError; @@ -4621,8 +4446,6 @@ class _$PaymentSheetPrimaryButtonThemeColorsCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of PaymentSheetPrimaryButtonThemeColors - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -4675,8 +4498,6 @@ class __$$PaymentSheetPrimaryButtonThemeColorsImplCopyWithImpl<$Res> $Res Function(_$PaymentSheetPrimaryButtonThemeColorsImpl) _then) : super(_value, _then); - /// Create a copy of PaymentSheetPrimaryButtonThemeColors - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -4747,13 +4568,11 @@ class _$PaymentSheetPrimaryButtonThemeColorsImpl (identical(other.border, border) || other.border == border)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, background, text, border); - /// Create a copy of PaymentSheetPrimaryButtonThemeColors - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$PaymentSheetPrimaryButtonThemeColorsImplCopyWith< @@ -4783,25 +4602,23 @@ abstract class _PaymentSheetPrimaryButtonThemeColors Map json) = _$PaymentSheetPrimaryButtonThemeColorsImpl.fromJson; - /// Primary button background color @override + + /// Primary button background color @JsonKey(toJson: ColorKey.toJson, fromJson: ColorKey.fromJson) Color? get background; + @override /// Primary button text color - @override @JsonKey(toJson: ColorKey.toJson, fromJson: ColorKey.fromJson) Color? get text; + @override /// Primary button border color - @override @JsonKey(toJson: ColorKey.toJson, fromJson: ColorKey.fromJson) Color? get border; - - /// Create a copy of PaymentSheetPrimaryButtonThemeColors - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$PaymentSheetPrimaryButtonThemeColorsImplCopyWith< _$PaymentSheetPrimaryButtonThemeColorsImpl> get copyWith => throw _privateConstructorUsedError; @@ -4826,12 +4643,8 @@ mixin _$PresentPaymentSheetParameters { /// has to be set to `false` when initializing the payment sheet. bool get confirmPayment => throw _privateConstructorUsedError; - /// Serializes this PresentPaymentSheetParameters to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of PresentPaymentSheetParameters - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $PresentPaymentSheetParametersCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -4858,8 +4671,6 @@ class _$PresentPaymentSheetParametersCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of PresentPaymentSheetParameters - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -4899,8 +4710,6 @@ class __$$PresentParametersImplCopyWithImpl<$Res> $Res Function(_$PresentParametersImpl) _then) : super(_value, _then); - /// Create a copy of PresentPaymentSheetParameters - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -4960,13 +4769,11 @@ class _$PresentParametersImpl implements _PresentParameters { other.confirmPayment == confirmPayment)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, clientSecret, confirmPayment); - /// Create a copy of PresentPaymentSheetParameters - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$PresentParametersImplCopyWith<_$PresentParametersImpl> get copyWith => @@ -4989,9 +4796,11 @@ abstract class _PresentParameters implements PresentPaymentSheetParameters { factory _PresentParameters.fromJson(Map json) = _$PresentParametersImpl.fromJson; - /// Key used for client-side retrieval using a publishable key. @override + + /// Key used for client-side retrieval using a publishable key. String get clientSecret; + @override /// Flag that determines whether or not to present payment options or /// directly goes to confirm payment. @@ -5000,13 +4809,9 @@ abstract class _PresentParameters implements PresentPaymentSheetParameters { /// is set to `true` when initializing the payment sheet. /// If value is set to `true` [SetupPaymentSheetParameters.customFlow] /// has to be set to `false` when initializing the payment sheet. - @override bool get confirmPayment; - - /// Create a copy of PresentPaymentSheetParameters - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$PresentParametersImplCopyWith<_$PresentParametersImpl> get copyWith => throw _privateConstructorUsedError; } @@ -5024,12 +4829,8 @@ mixin _$PaymentSheetPresentOptions { /// At which point presentPaymentSheet` will resolve with an error. int? get timeout => throw _privateConstructorUsedError; - /// Serializes this PaymentSheetPresentOptions to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of PaymentSheetPresentOptions - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $PaymentSheetPresentOptionsCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -5055,8 +4856,6 @@ class _$PaymentSheetPresentOptionsCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of PaymentSheetPresentOptions - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -5093,8 +4892,6 @@ class __$$PaymentSheetPresentOptionsImplCopyWithImpl<$Res> $Res Function(_$PaymentSheetPresentOptionsImpl) _then) : super(_value, _then); - /// Create a copy of PaymentSheetPresentOptions - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -5139,13 +4936,11 @@ class _$PaymentSheetPresentOptionsImpl implements _PaymentSheetPresentOptions { (identical(other.timeout, timeout) || other.timeout == timeout)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, timeout); - /// Create a copy of PaymentSheetPresentOptions - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$PaymentSheetPresentOptionsImplCopyWith<_$PaymentSheetPresentOptionsImpl> @@ -5168,17 +4963,15 @@ abstract class _PaymentSheetPresentOptions factory _PaymentSheetPresentOptions.fromJson(Map json) = _$PaymentSheetPresentOptionsImpl.fromJson; + @override + /// The number of milliseconds (after presenting) before the Payment Sheet /// closes automatically. /// /// At which point presentPaymentSheet` will resolve with an error. - @override int? get timeout; - - /// Create a copy of PaymentSheetPresentOptions - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$PaymentSheetPresentOptionsImplCopyWith<_$PaymentSheetPresentOptionsImpl> get copyWith => throw _privateConstructorUsedError; } @@ -5196,12 +4989,8 @@ mixin _$PaymentSheetPaymentOption { /// String decoding of the image String? get image => throw _privateConstructorUsedError; - /// Serializes this PaymentSheetPaymentOption to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of PaymentSheetPaymentOption - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $PaymentSheetPaymentOptionCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -5226,8 +5015,6 @@ class _$PaymentSheetPaymentOptionCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of PaymentSheetPaymentOption - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -5269,8 +5056,6 @@ class __$$PaymentSheetPaymentOptionImplCopyWithImpl<$Res> $Res Function(_$PaymentSheetPaymentOptionImpl) _then) : super(_value, _then); - /// Create a copy of PaymentSheetPaymentOption - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -5321,13 +5106,11 @@ class _$PaymentSheetPaymentOptionImpl implements _PaymentSheetPaymentOption { (identical(other.image, image) || other.image == image)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, label, image); - /// Create a copy of PaymentSheetPaymentOption - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$PaymentSheetPaymentOptionImplCopyWith<_$PaymentSheetPaymentOptionImpl> @@ -5350,18 +5133,16 @@ abstract class _PaymentSheetPaymentOption implements PaymentSheetPaymentOption { factory _PaymentSheetPaymentOption.fromJson(Map json) = _$PaymentSheetPaymentOptionImpl.fromJson; - /// The label of the payment option @override + + /// The label of the payment option String get label; + @override /// String decoding of the image - @override String? get image; - - /// Create a copy of PaymentSheetPaymentOption - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$PaymentSheetPaymentOptionImplCopyWith<_$PaymentSheetPaymentOptionImpl> get copyWith => throw _privateConstructorUsedError; } @@ -5398,12 +5179,8 @@ mixin _$BillingDetailsCollectionConfiguration { /// If `false` (the default), those values will only be used to prefill the corresponding fields in the form. bool? get attachDefaultsToPaymentMethod => throw _privateConstructorUsedError; - /// Serializes this BillingDetailsCollectionConfiguration to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of BillingDetailsCollectionConfiguration - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $BillingDetailsCollectionConfigurationCopyWith< BillingDetailsCollectionConfiguration> get copyWith => throw _privateConstructorUsedError; @@ -5436,8 +5213,6 @@ class _$BillingDetailsCollectionConfigurationCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of BillingDetailsCollectionConfiguration - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -5499,8 +5274,6 @@ class __$$BillingDetailsCollectionConfigurationImplCopyWithImpl<$Res> $Res Function(_$BillingDetailsCollectionConfigurationImpl) _then) : super(_value, _then); - /// Create a copy of BillingDetailsCollectionConfiguration - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -5601,14 +5374,12 @@ class _$BillingDetailsCollectionConfigurationImpl attachDefaultsToPaymentMethod)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash( runtimeType, name, phone, email, address, attachDefaultsToPaymentMethod); - /// Create a copy of BillingDetailsCollectionConfiguration - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$BillingDetailsCollectionConfigurationImplCopyWith< @@ -5638,40 +5409,38 @@ abstract class _BillingDetailsCollectionConfiguration Map json) = _$BillingDetailsCollectionConfigurationImpl.fromJson; + @override + /// How to collect the name field. /// /// Defaults to `CollectionMode.automatic`. - @override CollectionMode? get name; + @override /// How to collect the phone field. /// /// Defaults to `CollectionMode.automatic`. - @override CollectionMode? get phone; + @override /// How to collect the email field. /// /// Defaults to `CollectionMode.automatic`. - @override CollectionMode? get email; + @override /// How to collect the billing address. /// /// Defaults to `CollectionMode.automatic`. - @override AddressCollectionMode? get address; + @override /// Whether the values included in `Configuration.defaultBillingDetails` should be attached to the payment method, this includes fields that aren't displayed in the form. /// /// If `false` (the default), those values will only be used to prefill the corresponding fields in the form. - @override bool? get attachDefaultsToPaymentMethod; - - /// Create a copy of BillingDetailsCollectionConfiguration - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$BillingDetailsCollectionConfigurationImplCopyWith< _$BillingDetailsCollectionConfigurationImpl> get copyWith => throw _privateConstructorUsedError; diff --git a/packages/stripe_platform_interface/lib/src/models/payment_sheet.g.dart b/packages/stripe_platform_interface/lib/src/models/payment_sheet.g.dart index a001e075a..1a8ec74d2 100644 --- a/packages/stripe_platform_interface/lib/src/models/payment_sheet.g.dart +++ b/packages/stripe_platform_interface/lib/src/models/payment_sheet.g.dart @@ -13,6 +13,8 @@ _$SetupParametersImpl _$$SetupParametersImplFromJson( customerId: json['customerId'] as String?, primaryButtonLabel: json['primaryButtonLabel'] as String?, customerEphemeralKeySecret: json['customerEphemeralKeySecret'] as String?, + customerSessionClientSecret: + json['customerSessionClientSecret'] as String?, paymentIntentClientSecret: json['paymentIntentClientSecret'] as String?, setupIntentClientSecret: json['setupIntentClientSecret'] as String?, intentConfiguration: json['intentConfiguration'] == null @@ -65,6 +67,7 @@ Map _$$SetupParametersImplToJson( 'customerId': instance.customerId, 'primaryButtonLabel': instance.primaryButtonLabel, 'customerEphemeralKeySecret': instance.customerEphemeralKeySecret, + 'customerSessionClientSecret': instance.customerSessionClientSecret, 'paymentIntentClientSecret': instance.paymentIntentClientSecret, 'setupIntentClientSecret': instance.setupIntentClientSecret, 'intentConfiguration': instance.intentConfiguration?.toJson(), diff --git a/packages/stripe_platform_interface/lib/src/models/platform_pay.freezed.dart b/packages/stripe_platform_interface/lib/src/models/platform_pay.freezed.dart index 99b44138c..f83fcd43d 100644 --- a/packages/stripe_platform_interface/lib/src/models/platform_pay.freezed.dart +++ b/packages/stripe_platform_interface/lib/src/models/platform_pay.freezed.dart @@ -28,12 +28,8 @@ mixin _$PlatformPayPaymentMethod { PlatformPayShippingContact? get shippingContact => throw _privateConstructorUsedError; - /// Serializes this PlatformPayPaymentMethod to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of PlatformPayPaymentMethod - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $PlatformPayPaymentMethodCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -63,8 +59,6 @@ class _$PlatformPayPaymentMethodCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of PlatformPayPaymentMethod - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -83,8 +77,6 @@ class _$PlatformPayPaymentMethodCopyWithImpl<$Res, ) as $Val); } - /// Create a copy of PlatformPayPaymentMethod - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentMethodCopyWith<$Res> get paymentMethod { @@ -93,8 +85,6 @@ class _$PlatformPayPaymentMethodCopyWithImpl<$Res, }); } - /// Create a copy of PlatformPayPaymentMethod - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PlatformPayShippingContactCopyWith<$Res>? get shippingContact { @@ -138,8 +128,6 @@ class __$$PlatformPayPaymentMethodImplCopyWithImpl<$Res> $Res Function(_$PlatformPayPaymentMethodImpl) _then) : super(_value, _then); - /// Create a copy of PlatformPayPaymentMethod - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -193,13 +181,11 @@ class _$PlatformPayPaymentMethodImpl implements _PlatformPayPaymentMethod { other.shippingContact == shippingContact)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, paymentMethod, shippingContact); - /// Create a copy of PlatformPayPaymentMethod - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$PlatformPayPaymentMethodImplCopyWith<_$PlatformPayPaymentMethodImpl> @@ -223,18 +209,16 @@ abstract class _PlatformPayPaymentMethod implements PlatformPayPaymentMethod { factory _PlatformPayPaymentMethod.fromJson(Map json) = _$PlatformPayPaymentMethodImpl.fromJson; - /// The payment method @override + + /// The payment method PaymentMethod get paymentMethod; + @override /// shipping contact of the user - @override PlatformPayShippingContact? get shippingContact; - - /// Create a copy of PlatformPayPaymentMethod - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$PlatformPayPaymentMethodImplCopyWith<_$PlatformPayPaymentMethodImpl> get copyWith => throw _privateConstructorUsedError; } @@ -300,13 +284,8 @@ mixin _$PlatformPaySheetUpdateParams { required TResult orElse(), }) => throw _privateConstructorUsedError; - - /// Serializes this PlatformPaySheetUpdateParams to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of PlatformPaySheetUpdateParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $PlatformPaySheetUpdateParamsCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -336,8 +315,6 @@ class _$PlatformPaySheetUpdateParamsCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of PlatformPaySheetUpdateParams - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -387,8 +364,6 @@ class __$$PlatformPaySheetUpdateParamsImplCopyWithImpl<$Res> $Res Function(_$PlatformPaySheetUpdateParamsImpl) _then) : super(_value, _then); - /// Create a copy of PlatformPaySheetUpdateParams - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -482,7 +457,7 @@ class _$PlatformPaySheetUpdateParamsImpl const DeepCollectionEquality().equals(other._errors, _errors)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash( runtimeType, @@ -490,9 +465,7 @@ class _$PlatformPaySheetUpdateParamsImpl const DeepCollectionEquality().hash(_shippingMethods), const DeepCollectionEquality().hash(_errors)); - /// Create a copy of PlatformPaySheetUpdateParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$PlatformPaySheetUpdateParamsImplCopyWith< @@ -587,22 +560,20 @@ abstract class _PlatformPaySheetUpdateParams factory _PlatformPaySheetUpdateParams.fromJson(Map json) = _$PlatformPaySheetUpdateParamsImpl.fromJson; - /// list of updated summary items @override + + /// list of updated summary items List get summaryItems; + @override /// list of updated shipping methods - @override List get shippingMethods; + @override /// In case user input is wrong use this to display the errors in the apple pay sheet. - @override List? get errors; - - /// Create a copy of PlatformPaySheetUpdateParams - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$PlatformPaySheetUpdateParamsImplCopyWith< _$PlatformPaySheetUpdateParamsImpl> get copyWith => throw _privateConstructorUsedError; @@ -694,13 +665,8 @@ mixin _$ApplePaySheetError { required TResult orElse(), }) => throw _privateConstructorUsedError; - - /// Serializes this ApplePaySheetError to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of ApplePaySheetError - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $ApplePaySheetErrorCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -724,8 +690,6 @@ class _$ApplePaySheetErrorCopyWithImpl<$Res, $Val extends ApplePaySheetError> // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of ApplePaySheetError - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -762,8 +726,6 @@ class __$$ApplePaySheetErrorInvalidShippingImplCopyWithImpl<$Res> $Res Function(_$ApplePaySheetErrorInvalidShippingImpl) _then) : super(_value, _then); - /// Create a copy of ApplePaySheetError - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -820,13 +782,11 @@ class _$ApplePaySheetErrorInvalidShippingImpl (identical(other.message, message) || other.message == message)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, field, message); - /// Create a copy of ApplePaySheetError - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$ApplePaySheetErrorInvalidShippingImplCopyWith< @@ -942,15 +902,11 @@ abstract class _ApplePaySheetErrorInvalidShipping _$ApplePaySheetErrorInvalidShippingImpl.fromJson; // Field that will be marked as invalid - InvalidShippingField - get field; // message that needs to be displayed on the sheet - @override + InvalidShippingField get field; + @override // message that needs to be displayed on the sheet String? get message; - - /// Create a copy of ApplePaySheetError - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$ApplePaySheetErrorInvalidShippingImplCopyWith< _$ApplePaySheetErrorInvalidShippingImpl> get copyWith => throw _privateConstructorUsedError; @@ -978,8 +934,6 @@ class __$$ApplePaySheetErrorUnserviceableShippingImplCopyWithImpl<$Res> $Res Function(_$ApplePaySheetErrorUnserviceableShippingImpl) _then) : super(_value, _then); - /// Create a copy of ApplePaySheetError - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1027,13 +981,11 @@ class _$ApplePaySheetErrorUnserviceableShippingImpl (identical(other.message, message) || other.message == message)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, message); - /// Create a copy of ApplePaySheetError - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$ApplePaySheetErrorUnserviceableShippingImplCopyWith< @@ -1148,14 +1100,10 @@ abstract class _ApplePaySheetErrorUnserviceableShipping Map json) = _$ApplePaySheetErrorUnserviceableShippingImpl.fromJson; -// message that needs to be displayed on the sheet - @override + @override // message that needs to be displayed on the sheet String? get message; - - /// Create a copy of ApplePaySheetError - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$ApplePaySheetErrorUnserviceableShippingImplCopyWith< _$ApplePaySheetErrorUnserviceableShippingImpl> get copyWith => throw _privateConstructorUsedError; @@ -1183,8 +1131,6 @@ class __$$ApplePaySheetErrorInvalidCouponCodeImplCopyWithImpl<$Res> $Res Function(_$ApplePaySheetErrorInvalidCouponCodeImpl) _then) : super(_value, _then); - /// Create a copy of ApplePaySheetError - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1231,13 +1177,11 @@ class _$ApplePaySheetErrorInvalidCouponCodeImpl (identical(other.message, message) || other.message == message)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, message); - /// Create a copy of ApplePaySheetError - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$ApplePaySheetErrorInvalidCouponCodeImplCopyWith< @@ -1351,14 +1295,10 @@ abstract class _ApplePaySheetErrorInvalidCouponCode Map json) = _$ApplePaySheetErrorInvalidCouponCodeImpl.fromJson; -// message that needs to be displayed on the sheet - @override + @override // message that needs to be displayed on the sheet String? get message; - - /// Create a copy of ApplePaySheetError - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$ApplePaySheetErrorInvalidCouponCodeImplCopyWith< _$ApplePaySheetErrorInvalidCouponCodeImpl> get copyWith => throw _privateConstructorUsedError; @@ -1386,8 +1326,6 @@ class __$$ApplePaySheetErrorExpiredCouponCodeImplCopyWithImpl<$Res> $Res Function(_$ApplePaySheetErrorExpiredCouponCodeImpl) _then) : super(_value, _then); - /// Create a copy of ApplePaySheetError - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1435,13 +1373,11 @@ class _$ApplePaySheetErrorExpiredCouponCodeImpl (identical(other.message, message) || other.message == message)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, message); - /// Create a copy of ApplePaySheetError - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$ApplePaySheetErrorExpiredCouponCodeImplCopyWith< @@ -1555,14 +1491,10 @@ abstract class _ApplePaySheetErrorExpiredCouponCode Map json) = _$ApplePaySheetErrorExpiredCouponCodeImpl.fromJson; -// message that needs to be displayed on the sheet - @override + @override // message that needs to be displayed on the sheet String? get message; - - /// Create a copy of ApplePaySheetError - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$ApplePaySheetErrorExpiredCouponCodeImplCopyWith< _$ApplePaySheetErrorExpiredCouponCodeImpl> get copyWith => throw _privateConstructorUsedError; @@ -1644,9 +1576,6 @@ class _$PlatformPayPaymentMethodParamsCopyWithImpl<$Res, final $Val _value; // ignore: unused_field final $Res Function($Val) _then; - - /// Create a copy of PlatformPayPaymentMethodParams - /// with the given fields replaced by the non-null parameter values. } /// @nodoc @@ -1674,8 +1603,6 @@ class __$$PlatformPayPaymentMethodParamsGooglePayImplCopyWithImpl<$Res> $Res Function(_$PlatformPayPaymentMethodParamsGooglePayImpl) _then) : super(_value, _then); - /// Create a copy of PlatformPayPaymentMethodParams - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1694,8 +1621,6 @@ class __$$PlatformPayPaymentMethodParamsGooglePayImplCopyWithImpl<$Res> )); } - /// Create a copy of PlatformPayPaymentMethodParams - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $GooglePayParamsCopyWith<$Res> get googlePayParams { @@ -1704,8 +1629,6 @@ class __$$PlatformPayPaymentMethodParamsGooglePayImplCopyWithImpl<$Res> }); } - /// Create a copy of PlatformPayPaymentMethodParams - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $GooglePayPaymentMethodParamsCopyWith<$Res> get googlePayPaymentMethodParams { @@ -1752,9 +1675,7 @@ class _$PlatformPayPaymentMethodParamsGooglePayImpl int get hashCode => Object.hash(runtimeType, googlePayParams, googlePayPaymentMethodParams); - /// Create a copy of PlatformPayPaymentMethodParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$PlatformPayPaymentMethodParamsGooglePayImplCopyWith< @@ -1851,10 +1772,7 @@ abstract class PlatformPayPaymentMethodParamsGooglePay GooglePayParams get googlePayParams; GooglePayPaymentMethodParams get googlePayPaymentMethodParams; - - /// Create a copy of PlatformPayPaymentMethodParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$PlatformPayPaymentMethodParamsGooglePayImplCopyWith< _$PlatformPayPaymentMethodParamsGooglePayImpl> get copyWith => throw _privateConstructorUsedError; @@ -1882,8 +1800,6 @@ class __$$PlatformPayPaymentMethodParamsApplePayImplCopyWithImpl<$Res> $Res Function(_$PlatformPayPaymentMethodParamsApplePayImpl) _then) : super(_value, _then); - /// Create a copy of PlatformPayPaymentMethodParams - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1897,8 +1813,6 @@ class __$$PlatformPayPaymentMethodParamsApplePayImplCopyWithImpl<$Res> )); } - /// Create a copy of PlatformPayPaymentMethodParams - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $ApplePayParamsCopyWith<$Res> get applePayParams { @@ -1936,9 +1850,7 @@ class _$PlatformPayPaymentMethodParamsApplePayImpl @override int get hashCode => Object.hash(runtimeType, applePayParams); - /// Create a copy of PlatformPayPaymentMethodParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$PlatformPayPaymentMethodParamsApplePayImplCopyWith< @@ -2032,10 +1944,7 @@ abstract class PlatformPayPaymentMethodParamsApplePay _$PlatformPayPaymentMethodParamsApplePayImpl; ApplePayParams get applePayParams; - - /// Create a copy of PlatformPayPaymentMethodParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$PlatformPayPaymentMethodParamsApplePayImplCopyWith< _$PlatformPayPaymentMethodParamsApplePayImpl> get copyWith => throw _privateConstructorUsedError; @@ -2063,8 +1972,6 @@ class __$$PlatformPayPaymentMethodParamsWebImplCopyWithImpl<$Res> $Res Function(_$PlatformPayPaymentMethodParamsWebImpl) _then) : super(_value, _then); - /// Create a copy of PlatformPayPaymentMethodParams - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -2078,8 +1985,6 @@ class __$$PlatformPayPaymentMethodParamsWebImplCopyWithImpl<$Res> )); } - /// Create a copy of PlatformPayPaymentMethodParams - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PlatformPayWebPaymentRequestCreateOptionsCopyWith<$Res> get options { @@ -2116,9 +2021,7 @@ class _$PlatformPayPaymentMethodParamsWebImpl @override int get hashCode => Object.hash(runtimeType, options); - /// Create a copy of PlatformPayPaymentMethodParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$PlatformPayPaymentMethodParamsWebImplCopyWith< @@ -2211,10 +2114,7 @@ abstract class PlatformPayPaymentMethodParamsWeb _$PlatformPayPaymentMethodParamsWebImpl; PlatformPayWebPaymentRequestCreateOptions get options; - - /// Create a copy of PlatformPayPaymentMethodParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$PlatformPayPaymentMethodParamsWebImplCopyWith< _$PlatformPayPaymentMethodParamsWebImpl> get copyWith => throw _privateConstructorUsedError; @@ -2287,8 +2187,6 @@ mixin _$PlatformPayConfirmParams { required TResult orElse(), }) => throw _privateConstructorUsedError; - - /// Serializes this PlatformPayConfirmParams to a JSON map. Map toJson() => throw _privateConstructorUsedError; } @@ -2309,9 +2207,6 @@ class _$PlatformPayConfirmParamsCopyWithImpl<$Res, final $Val _value; // ignore: unused_field final $Res Function($Val) _then; - - /// Create a copy of PlatformPayConfirmParams - /// with the given fields replaced by the non-null parameter values. } /// @nodoc @@ -2336,8 +2231,6 @@ class __$$PlatformPayConfirmParamsGooglePayImplCopyWithImpl<$Res> $Res Function(_$PlatformPayConfirmParamsGooglePayImpl) _then) : super(_value, _then); - /// Create a copy of PlatformPayConfirmParams - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -2351,8 +2244,6 @@ class __$$PlatformPayConfirmParamsGooglePayImplCopyWithImpl<$Res> )); } - /// Create a copy of PlatformPayConfirmParams - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $GooglePayParamsCopyWith<$Res> get googlePay { @@ -2395,13 +2286,11 @@ class _$PlatformPayConfirmParamsGooglePayImpl other.googlePay == googlePay)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, googlePay); - /// Create a copy of PlatformPayConfirmParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$PlatformPayConfirmParamsGooglePayImplCopyWith< @@ -2498,10 +2387,7 @@ abstract class PlatformPayConfirmParamsGooglePay _$PlatformPayConfirmParamsGooglePayImpl.fromJson; GooglePayParams get googlePay; - - /// Create a copy of PlatformPayConfirmParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$PlatformPayConfirmParamsGooglePayImplCopyWith< _$PlatformPayConfirmParamsGooglePayImpl> get copyWith => throw _privateConstructorUsedError; @@ -2529,8 +2415,6 @@ class __$$PlatformPayConfirmParamsApplePayImplCopyWithImpl<$Res> $Res Function(_$PlatformPayConfirmParamsApplePayImpl) _then) : super(_value, _then); - /// Create a copy of PlatformPayConfirmParams - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -2544,8 +2428,6 @@ class __$$PlatformPayConfirmParamsApplePayImplCopyWithImpl<$Res> )); } - /// Create a copy of PlatformPayConfirmParams - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $ApplePayParamsCopyWith<$Res> get applePay { @@ -2588,13 +2470,11 @@ class _$PlatformPayConfirmParamsApplePayImpl other.applePay == applePay)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, applePay); - /// Create a copy of PlatformPayConfirmParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$PlatformPayConfirmParamsApplePayImplCopyWith< @@ -2690,10 +2570,7 @@ abstract class PlatformPayConfirmParamsApplePay _$PlatformPayConfirmParamsApplePayImpl.fromJson; ApplePayParams get applePay; - - /// Create a copy of PlatformPayConfirmParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$PlatformPayConfirmParamsApplePayImplCopyWith< _$PlatformPayConfirmParamsApplePayImpl> get copyWith => throw _privateConstructorUsedError; @@ -2721,8 +2598,6 @@ class __$$PlatformPayConfirmParamsWebImplCopyWithImpl<$Res> $Res Function(_$PlatformPayConfirmParamsWebImpl) _then) : super(_value, _then); - /// Create a copy of PlatformPayConfirmParams - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -2736,8 +2611,6 @@ class __$$PlatformPayConfirmParamsWebImplCopyWithImpl<$Res> )); } - /// Create a copy of PlatformPayConfirmParams - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PlatformPayWebPaymentRequestCreateOptionsCopyWith<$Res> get options { @@ -2779,13 +2652,11 @@ class _$PlatformPayConfirmParamsWebImpl implements PlatformPayConfirmParamsWeb { (identical(other.options, options) || other.options == options)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, options); - /// Create a copy of PlatformPayConfirmParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$PlatformPayConfirmParamsWebImplCopyWith<_$PlatformPayConfirmParamsWebImpl> @@ -2879,10 +2750,7 @@ abstract class PlatformPayConfirmParamsWeb implements PlatformPayConfirmParams { _$PlatformPayConfirmParamsWebImpl.fromJson; PlatformPayWebPaymentRequestCreateOptions get options; - - /// Create a copy of PlatformPayConfirmParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$PlatformPayConfirmParamsWebImplCopyWith<_$PlatformPayConfirmParamsWebImpl> get copyWith => throw _privateConstructorUsedError; } @@ -2906,12 +2774,8 @@ mixin _$PlatformPayShippingContact { ///Phone Number of the shipping contact String? get phoneNumber => throw _privateConstructorUsedError; - /// Serializes this PlatformPayShippingContact to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of PlatformPayShippingContact - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $PlatformPayShippingContactCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -2944,8 +2808,6 @@ class _$PlatformPayShippingContactCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of PlatformPayShippingContact - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -2974,8 +2836,6 @@ class _$PlatformPayShippingContactCopyWithImpl<$Res, ) as $Val); } - /// Create a copy of PlatformPayShippingContact - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $ApplePayContactNameCopyWith<$Res> get name { @@ -2984,8 +2844,6 @@ class _$PlatformPayShippingContactCopyWithImpl<$Res, }); } - /// Create a copy of PlatformPayShippingContact - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $ApplePayPostalAddressCopyWith<$Res> get postalAddress { @@ -3026,8 +2884,6 @@ class __$$PlatformPayShippingContactImplCopyWithImpl<$Res> $Res Function(_$PlatformPayShippingContactImpl) _then) : super(_value, _then); - /// Create a copy of PlatformPayShippingContact - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -3106,14 +2962,12 @@ class _$PlatformPayShippingContactImpl implements _PlatformPayShippingContact { other.phoneNumber == phoneNumber)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, emailAddress, name, postalAddress, phoneNumber); - /// Create a copy of PlatformPayShippingContact - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$PlatformPayShippingContactImplCopyWith<_$PlatformPayShippingContactImpl> @@ -3139,26 +2993,24 @@ abstract class _PlatformPayShippingContact factory _PlatformPayShippingContact.fromJson(Map json) = _$PlatformPayShippingContactImpl.fromJson; - /// Email address of the shipping contact @override + + /// Email address of the shipping contact String? get emailAddress; + @override /// Name of shipping contact - @override ApplePayContactName get name; + @override /// Postal address of shipping contact - @override ApplePayPostalAddress get postalAddress; + @override ///Phone Number of the shipping contact - @override String? get phoneNumber; - - /// Create a copy of PlatformPayShippingContact - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$PlatformPayShippingContactImplCopyWith<_$PlatformPayShippingContactImpl> get copyWith => throw _privateConstructorUsedError; } @@ -3220,12 +3072,8 @@ mixin _$ApplePayParams { /// Only supported on iOS 16 and higher. PaymentRequestType? get request => throw _privateConstructorUsedError; - /// Serializes this ApplePayParams to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of ApplePayParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $ApplePayParamsCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -3264,8 +3112,6 @@ class _$ApplePayParamsCopyWithImpl<$Res, $Val extends ApplePayParams> // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of ApplePayParams - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -3339,8 +3185,6 @@ class _$ApplePayParamsCopyWithImpl<$Res, $Val extends ApplePayParams> ) as $Val); } - /// Create a copy of ApplePayParams - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentRequestTypeCopyWith<$Res>? get request { @@ -3389,8 +3233,6 @@ class __$$ApplePayParamsImplCopyWithImpl<$Res> _$ApplePayParamsImpl _value, $Res Function(_$ApplePayParamsImpl) _then) : super(_value, _then); - /// Create a copy of ApplePayParams - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -3657,7 +3499,7 @@ class _$ApplePayParamsImpl implements _ApplePayParams { (identical(other.request, request) || other.request == request)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash( runtimeType, @@ -3675,9 +3517,7 @@ class _$ApplePayParamsImpl implements _ApplePayParams { couponCode, request); - /// Create a copy of ApplePayParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$ApplePayParamsImplCopyWith<_$ApplePayParamsImpl> get copyWith => @@ -3711,68 +3551,66 @@ abstract class _ApplePayParams implements ApplePayParams { factory _ApplePayParams.fromJson(Map json) = _$ApplePayParamsImpl.fromJson; - /// ISO 3166-1 alpha-2 country code where the transaction is processed. @override + + /// ISO 3166-1 alpha-2 country code where the transaction is processed. String get merchantCountryCode; + @override /// ISO 4217 alphabetic currency code. - @override String get currencyCode; + @override /// The SDK accepts Amex, Mastercard, Visa, and Discover for Apple Pay by default. Set this property to enable other card networks, for example: ["JCB", "barcode", "chinaUnionPay"]. A full list of possible networks can be found at https://developer.apple.com/documentation/passkit/pkpaymentnetwork. - @override List? get additionalEnabledNetworks; + @override /// The list of items that describe a purchase. For example: total, tax, discount, and grand total. - @override List get cartItems; + @override /// The list of fields that you need for a shipping contact in order to process the transaction. If provided, you must implement the PlatformPayButton component's `onShippingContactSelected` callback and call `updatePlatformPaySheet` from there. - @override List? get requiredShippingAddressFields; + @override /// The list of fields that you need for a billing contact in order to process the transaction. - @override List? get requiredBillingContactFields; + @override /// An array of shipping method objects that describe the supported shipping methods. If provided, you must implement the PlatformPayButton component's `onShippingMethodSelected` callback and call `updatePlatformPaySheet` from there. - @override List? get shippingMethods; + @override /// Set the payment capabilities you support. If set, 3DS is required. - @override List? get merchantCapabilities; + @override /// An optional value that indicates how to ship purchased items. Defaults to 'Shipping'. - @override ApplePayShippingType? get shippingType; + @override /// A list of two-letter ISO 3166 country codes for limiting payment to cards from specific countries or regions. - @override List? get supportedCountries; + @override /// Enables support for coupon codes in the Apple Pay button. /// When this is set to true it shows the coupon code field and if [couponCode] /// has a value it will display the value as default /// /// Supported on iOS 15 and higher. - @override bool? get supportsCouponCode; + @override /// Default coupon code display in the apple pay sheet - @override String? get couponCode; + @override /// Use this to support different types of payment request. /// /// Only supported on iOS 16 and higher. - @override PaymentRequestType? get request; - - /// Create a copy of ApplePayParams - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$ApplePayParamsImplCopyWith<_$ApplePayParamsImpl> get copyWith => throw _privateConstructorUsedError; } @@ -3811,12 +3649,8 @@ mixin _$GooglePayParams { /// Defaults to true. bool? get allowCreditCards => throw _privateConstructorUsedError; - /// Serializes this GooglePayParams to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of GooglePayParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $GooglePayParamsCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -3846,8 +3680,6 @@ class _$GooglePayParamsCopyWithImpl<$Res, $Val extends GooglePayParams> // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of GooglePayParams - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -3912,8 +3744,6 @@ class __$$GooglePayParamsImplCopyWithImpl<$Res> _$GooglePayParamsImpl _value, $Res Function(_$GooglePayParamsImpl) _then) : super(_value, _then); - /// Create a copy of GooglePayParams - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -4026,14 +3856,12 @@ class _$GooglePayParamsImpl implements _GooglePayParams { other.allowCreditCards == allowCreditCards)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, testEnv, merchantCountryCode, currencyCode, merchantName, isEmailRequired, allowCreditCards); - /// Create a copy of GooglePayParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$GooglePayParamsImplCopyWith<_$GooglePayParamsImpl> get copyWith => @@ -4060,44 +3888,41 @@ abstract class _GooglePayParams implements GooglePayParams { factory _GooglePayParams.fromJson(Map json) = _$GooglePayParamsImpl.fromJson; -/** + @override + /** * Set to true to run in a test environment with relaxed application / merchant requirements. This environment is suggested for early development and for easily testing SDK. - Does not require the application to be uploaded to the Google Play Store. - Does not require a Google Pay Developer Profile. - It uses production data, but at the end of the transaction you will receive a fake and non chargeable payment credential. - The user will see a warning message that the app is not recognized/verified. */ - @override bool get testEnv; + @override /// ISO 3166-1 alpha-2 country code where the transaction is processed. - @override String get merchantCountryCode; + @override /// ISO 4217 alphabetic currency code. - @override String get currencyCode; + @override /// Merchant name, displayed in the Google Pay sheet. - @override String? get merchantName; + @override /// Set to true to request an email address. /// /// Defaults to false. - @override bool? get isEmailRequired; + @override /// Set to false if you don't support credit cards. /// /// Defaults to true. - @override bool? get allowCreditCards; - - /// Create a copy of GooglePayParams - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$GooglePayParamsImplCopyWith<_$GooglePayParamsImpl> get copyWith => throw _privateConstructorUsedError; } @@ -4126,12 +3951,8 @@ mixin _$GooglePayPaymentMethodParams { GooglePayShippingAddressConfig? get shippingAddressConfig => throw _privateConstructorUsedError; - /// Serializes this GooglePayPaymentMethodParams to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of GooglePayPaymentMethodParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $GooglePayPaymentMethodParamsCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -4165,8 +3986,6 @@ class _$GooglePayPaymentMethodParamsCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of GooglePayPaymentMethodParams - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -4195,8 +4014,6 @@ class _$GooglePayPaymentMethodParamsCopyWithImpl<$Res, ) as $Val); } - /// Create a copy of GooglePayPaymentMethodParams - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $GooglePayBillingAddressConfigCopyWith<$Res>? get billingAddressConfig { @@ -4210,8 +4027,6 @@ class _$GooglePayPaymentMethodParamsCopyWithImpl<$Res, }); } - /// Create a copy of GooglePayPaymentMethodParams - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $GooglePayShippingAddressConfigCopyWith<$Res>? get shippingAddressConfig { @@ -4257,8 +4072,6 @@ class __$$GooglePayPaymentMethodParamsImplCopyWithImpl<$Res> $Res Function(_$GooglePayPaymentMethodParamsImpl) _then) : super(_value, _then); - /// Create a copy of GooglePayPaymentMethodParams - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -4343,14 +4156,12 @@ class _$GooglePayPaymentMethodParamsImpl other.shippingAddressConfig == shippingAddressConfig)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, existingPaymentMethodRequired, amount, billingAddressConfig, shippingAddressConfig); - /// Create a copy of GooglePayPaymentMethodParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$GooglePayPaymentMethodParamsImplCopyWith< @@ -4378,29 +4189,27 @@ abstract class _GooglePayPaymentMethodParams factory _GooglePayPaymentMethodParams.fromJson(Map json) = _$GooglePayPaymentMethodParamsImpl.fromJson; + @override + /// If true, Google Pay is considered "available" if the customer's Google Pay wallet has an existing payment method. /// /// Defaults to false. - @override bool? get existingPaymentMethodRequired; + @override /// Total monetary value of the transaction. /// Provide this value in the currency’s smallest unit. - @override int get amount; + @override /// Describes the configuration for billing address collection in the Google Pay sheet. - @override GooglePayBillingAddressConfig? get billingAddressConfig; + @override /// Describes the configuration for shipping address collection in the Google Pay sheet. - @override GooglePayShippingAddressConfig? get shippingAddressConfig; - - /// Create a copy of GooglePayPaymentMethodParams - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$GooglePayPaymentMethodParamsImplCopyWith< _$GooglePayPaymentMethodParamsImpl> get copyWith => throw _privateConstructorUsedError; @@ -4428,12 +4237,8 @@ mixin _$GooglePayBillingAddressConfig { /// Defaults to [BillingAddressFormat.MIN] BillingAddressFormat? get format => throw _privateConstructorUsedError; - /// Serializes this GooglePayBillingAddressConfig to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of GooglePayBillingAddressConfig - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $GooglePayBillingAddressConfigCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -4463,8 +4268,6 @@ class _$GooglePayBillingAddressConfigCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of GooglePayBillingAddressConfig - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -4514,8 +4317,6 @@ class __$$GooglePayBillingAddressConfigImplCopyWithImpl<$Res> $Res Function(_$GooglePayBillingAddressConfigImpl) _then) : super(_value, _then); - /// Create a copy of GooglePayBillingAddressConfig - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -4587,14 +4388,12 @@ class _$GooglePayBillingAddressConfigImpl (identical(other.format, format) || other.format == format)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, isRequired, isPhoneNumberRequired, format); - /// Create a copy of GooglePayBillingAddressConfig - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$GooglePayBillingAddressConfigImplCopyWith< @@ -4621,28 +4420,26 @@ abstract class _GooglePayBillingAddressConfig factory _GooglePayBillingAddressConfig.fromJson(Map json) = _$GooglePayBillingAddressConfigImpl.fromJson; + @override + /// Set to true if billing address is required for payment. /// /// Defaults to false. - @override bool? get isRequired; + @override /// Set to true if phone number is required for payment. /// /// Defaults to false. - @override bool? get isPhoneNumberRequired; + @override /// Defines what address fields to collect. /// /// Defaults to [BillingAddressFormat.MIN] - @override BillingAddressFormat? get format; - - /// Create a copy of GooglePayBillingAddressConfig - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$GooglePayBillingAddressConfigImplCopyWith< _$GooglePayBillingAddressConfigImpl> get copyWith => throw _privateConstructorUsedError; @@ -4670,12 +4467,8 @@ mixin _$GooglePayShippingAddressConfig { /// Defaults to all shipping address countries. List? get allowedCountryCodes => throw _privateConstructorUsedError; - /// Serializes this GooglePayShippingAddressConfig to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of GooglePayShippingAddressConfig - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $GooglePayShippingAddressConfigCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -4705,8 +4498,6 @@ class _$GooglePayShippingAddressConfigCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of GooglePayShippingAddressConfig - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -4756,8 +4547,6 @@ class __$$GooglePayShippingAddressConfigImplCopyWithImpl<$Res> $Res Function(_$GooglePayShippingAddressConfigImpl) _then) : super(_value, _then); - /// Create a copy of GooglePayShippingAddressConfig - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -4845,7 +4634,7 @@ class _$GooglePayShippingAddressConfigImpl .equals(other._allowedCountryCodes, _allowedCountryCodes)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash( runtimeType, @@ -4853,9 +4642,7 @@ class _$GooglePayShippingAddressConfigImpl isPhoneNumberRequired, const DeepCollectionEquality().hash(_allowedCountryCodes)); - /// Create a copy of GooglePayShippingAddressConfig - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$GooglePayShippingAddressConfigImplCopyWith< @@ -4882,28 +4669,26 @@ abstract class _GooglePayShippingAddressConfig factory _GooglePayShippingAddressConfig.fromJson(Map json) = _$GooglePayShippingAddressConfigImpl.fromJson; + @override + /// Set to true if shipping address is required for payment. /// /// Defaults to false - @override bool? get isRequired; + @override /// Set to true if phone number is required for payment. /// /// Defaults to false. - @override bool? get isPhoneNumberRequired; + @override /// List of ISO 3166-1 alpha-2 country code values of the countries where shipping is allowed. /// /// Defaults to all shipping address countries. - @override List? get allowedCountryCodes; - - /// Create a copy of GooglePayShippingAddressConfig - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$GooglePayShippingAddressConfigImplCopyWith< _$GooglePayShippingAddressConfigImpl> get copyWith => throw _privateConstructorUsedError; @@ -5017,8 +4802,6 @@ mixin _$PaymentRequestType { required TResult orElse(), }) => throw _privateConstructorUsedError; - - /// Serializes this PaymentRequestType to a JSON map. Map toJson() => throw _privateConstructorUsedError; } @@ -5038,9 +4821,6 @@ class _$PaymentRequestTypeCopyWithImpl<$Res, $Val extends PaymentRequestType> final $Val _value; // ignore: unused_field final $Res Function($Val) _then; - - /// Create a copy of PaymentRequestType - /// with the given fields replaced by the non-null parameter values. } /// @nodoc @@ -5069,8 +4849,6 @@ class __$$PaymentRequestTypeRecurringImplCopyWithImpl<$Res> $Res Function(_$PaymentRequestTypeRecurringImpl) _then) : super(_value, _then); - /// Create a copy of PaymentRequestType - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -5183,7 +4961,7 @@ class _$PaymentRequestTypeRecurringImpl other.tokenNotificationURL == tokenNotificationURL)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash( runtimeType, @@ -5194,9 +4972,7 @@ class _$PaymentRequestTypeRecurringImpl billingAgreement, tokenNotificationURL); - /// Create a copy of PaymentRequestType - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$PaymentRequestTypeRecurringImplCopyWith<_$PaymentRequestTypeRecurringImpl> @@ -5362,10 +5138,7 @@ abstract class _PaymentRequestTypeRecurring implements PaymentRequestType { /// /// For more info see receiving and handling merchant token notifications String? get tokenNotificationURL; - - /// Create a copy of PaymentRequestType - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$PaymentRequestTypeRecurringImplCopyWith<_$PaymentRequestTypeRecurringImpl> get copyWith => throw _privateConstructorUsedError; } @@ -5397,8 +5170,6 @@ class __$$PaymentRequestTypeReloadImplCopyWithImpl<$Res> $Res Function(_$PaymentRequestTypeReloadImpl) _then) : super(_value, _then); - /// Create a copy of PaymentRequestType - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -5520,7 +5291,7 @@ class _$PaymentRequestTypeReloadImpl implements _PaymentRequestTypeReload { other.tokenNotificationURL == tokenNotificationURL)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash( runtimeType, @@ -5532,9 +5303,7 @@ class _$PaymentRequestTypeReloadImpl implements _PaymentRequestTypeReload { billingAgreement, tokenNotificationURL); - /// Create a copy of PaymentRequestType - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$PaymentRequestTypeReloadImplCopyWith<_$PaymentRequestTypeReloadImpl> @@ -5704,10 +5473,7 @@ abstract class _PaymentRequestTypeReload implements PaymentRequestType { /// /// For more info see receiving and handling merchant token notifications String? get tokenNotificationURL; - - /// Create a copy of PaymentRequestType - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$PaymentRequestTypeReloadImplCopyWith<_$PaymentRequestTypeReloadImpl> get copyWith => throw _privateConstructorUsedError; } @@ -5732,8 +5498,6 @@ class __$$PaymentRequestTypeMultiMerchantImplCopyWithImpl<$Res> $Res Function(_$PaymentRequestTypeMultiMerchantImpl) _then) : super(_value, _then); - /// Create a copy of PaymentRequestType - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -5787,14 +5551,12 @@ class _$PaymentRequestTypeMultiMerchantImpl .equals(other._merchants, _merchants)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, const DeepCollectionEquality().hash(_merchants)); - /// Create a copy of PaymentRequestType - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$PaymentRequestTypeMultiMerchantImplCopyWith< @@ -5934,10 +5696,7 @@ abstract class _PaymentRequestTypeMultiMerchant implements PaymentRequestType { _$PaymentRequestTypeMultiMerchantImpl.fromJson; List get merchants; - - /// Create a copy of PaymentRequestType - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$PaymentRequestTypeMultiMerchantImplCopyWith< _$PaymentRequestTypeMultiMerchantImpl> get copyWith => throw _privateConstructorUsedError; @@ -5965,12 +5724,8 @@ mixin _$ApplePayMultiMerchant { /// Amount to authorize for the payment token String get amount => throw _privateConstructorUsedError; - /// Serializes this ApplePayMultiMerchant to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of ApplePayMultiMerchant - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $ApplePayMultiMerchantCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -6000,8 +5755,6 @@ class _$ApplePayMultiMerchantCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of ApplePayMultiMerchant - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -6062,8 +5815,6 @@ class __$$ApplePayMultiMerchantImplCopyWithImpl<$Res> $Res Function(_$ApplePayMultiMerchantImpl) _then) : super(_value, _then); - /// Create a copy of ApplePayMultiMerchant - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -6153,14 +5904,12 @@ class _$ApplePayMultiMerchantImpl implements _ApplePayMultiMerchant { (identical(other.amount, amount) || other.amount == amount)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, merchantIdentifier, externalIdentifier, merchantName, merchantDomain, amount); - /// Create a copy of ApplePayMultiMerchant - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$ApplePayMultiMerchantImplCopyWith<_$ApplePayMultiMerchantImpl> @@ -6186,30 +5935,28 @@ abstract class _ApplePayMultiMerchant implements ApplePayMultiMerchant { factory _ApplePayMultiMerchant.fromJson(Map json) = _$ApplePayMultiMerchantImpl.fromJson; - /// The apple pay merchant identifier @override + + /// The apple pay merchant identifier String get merchantIdentifier; + @override /// External identifier for the merchant - @override String get externalIdentifier; + @override /// The merchant display name Apple pay associates with the payment token - @override String get merchantName; + @override /// The merchant top level domain Apple Pay associates with teh payment token - @override String? get merchantDomain; + @override /// Amount to authorize for the payment token - @override String get amount; - - /// Create a copy of ApplePayMultiMerchant - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$ApplePayMultiMerchantImplCopyWith<_$ApplePayMultiMerchantImpl> get copyWith => throw _privateConstructorUsedError; } @@ -6273,13 +6020,8 @@ mixin _$PlatformPayOrderDetails { required TResult orElse(), }) => throw _privateConstructorUsedError; - - /// Serializes this PlatformPayOrderDetails to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of PlatformPayOrderDetails - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $PlatformPayOrderDetailsCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -6308,8 +6050,6 @@ class _$PlatformPayOrderDetailsCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of PlatformPayOrderDetails - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -6365,8 +6105,6 @@ class __$$PlatformPayOrderDetailsImplCopyWithImpl<$Res> $Res Function(_$PlatformPayOrderDetailsImpl) _then) : super(_value, _then); - /// Create a copy of PlatformPayOrderDetails - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -6445,14 +6183,12 @@ class _$PlatformPayOrderDetailsImpl implements _PlatformPayOrderDetails { other.authenticationToken == authenticationToken)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, orderTypeIdentifier, orderIdentifier, webServiceUrl, authenticationToken); - /// Create a copy of PlatformPayOrderDetails - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$PlatformPayOrderDetailsImplCopyWith<_$PlatformPayOrderDetailsImpl> @@ -6546,26 +6282,24 @@ abstract class _PlatformPayOrderDetails implements PlatformPayOrderDetails { factory _PlatformPayOrderDetails.fromJson(Map json) = _$PlatformPayOrderDetailsImpl.fromJson; - /// eg: "com.myapp.order" @override + + /// eg: "com.myapp.order" String get orderTypeIdentifier; + @override /// eg: "ABC123-AAAA-1111" - @override String get orderIdentifier; + @override /// eg: "https://my-backend.example.com/apple-order-tracking-backend" - @override String get webServiceUrl; + @override /// eg: "abc123" - @override String get authenticationToken; - - /// Create a copy of PlatformPayOrderDetails - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$PlatformPayOrderDetailsImplCopyWith<_$PlatformPayOrderDetailsImpl> get copyWith => throw _privateConstructorUsedError; } @@ -6621,12 +6355,8 @@ mixin _$PlatformPayWebPaymentRequestCreateOptions { List get disableWallets => throw _privateConstructorUsedError; - /// Serializes this PlatformPayWebPaymentRequestCreateOptions to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of PlatformPayWebPaymentRequestCreateOptions - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $PlatformPayWebPaymentRequestCreateOptionsCopyWith< PlatformPayWebPaymentRequestCreateOptions> get copyWith => throw _privateConstructorUsedError; @@ -6667,8 +6397,6 @@ class _$PlatformPayWebPaymentRequestCreateOptionsCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of PlatformPayWebPaymentRequestCreateOptions - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -6727,8 +6455,6 @@ class _$PlatformPayWebPaymentRequestCreateOptionsCopyWithImpl<$Res, ) as $Val); } - /// Create a copy of PlatformPayWebPaymentRequestCreateOptions - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PlatformPayWebPaymentItemCopyWith<$Res> get total { @@ -6773,8 +6499,6 @@ class __$$PaymentRequestCreateOptionsImplCopyWithImpl<$Res> $Res Function(_$PaymentRequestCreateOptionsImpl) _then) : super(_value, _then); - /// Create a copy of PlatformPayWebPaymentRequestCreateOptions - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -6968,7 +6692,7 @@ class _$PaymentRequestCreateOptionsImpl .equals(other._disableWallets, _disableWallets)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash( runtimeType, @@ -6983,9 +6707,7 @@ class _$PaymentRequestCreateOptionsImpl const DeepCollectionEquality().hash(_shippingOptions), const DeepCollectionEquality().hash(_disableWallets)); - /// Create a copy of PlatformPayWebPaymentRequestCreateOptions - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$PaymentRequestCreateOptionsImplCopyWith<_$PaymentRequestCreateOptionsImpl> @@ -7018,22 +6740,24 @@ abstract class _PaymentRequestCreateOptions factory _PaymentRequestCreateOptions.fromJson(Map json) = _$PaymentRequestCreateOptionsImpl.fromJson; - /// The two-letter country code of your Stripe account (e.g., US). @override + + /// The two-letter country code of your Stripe account (e.g., US). String get country; + @override /// Three character currency code (e.g., usd). - @override String get currency; + @override /// A PaymentItem object. This PaymentItem is shown to the customer in the browser’s payment interface. - @override PlatformPayWebPaymentItem get total; + @override /// An array of PaymentItem objects. These objects are shown as line items in the browser’s payment interface. /// Note that the sum of the line item amounts does not need to add up to the total amount above. - @override List get displayItems; + @override /// By default, the browser‘s payment interface only asks the customer for actual payment information. A customer /// name can be collected by setting this option to true. This collected name will appears in the PaymentResponse object. @@ -7041,37 +6765,33 @@ abstract class _PaymentRequestCreateOptions /// We highly recommend you collect name as this also results in collection of billing address for Apple Pay. /// The billing address can be used to perform address verification and block fraudulent payments. /// For all other payment methods, the billing address is automatically collected when available. - @override bool get requestPayerName; + @override /// See the requestPayerName option. - @override bool get requestPayerEmail; + @override /// See the requestPayerName option. - @override bool get requestPayerPhone; + @override /// Collect shipping address by setting this option to true. The address appears in the PaymentResponse. /// /// You must also supply a valid [ShippingOptions] to the shippingOptions property. This can be up front at the /// time stripe.paymentRequest is called, or in response to a shippingaddresschange event using the updateWith callback. - @override bool get requestShipping; + @override /// An array of ShippingOption objects. The first shipping option listed appears in the browser payment interface as the default option. - @override List get shippingOptions; + @override /// An array of wallet strings. Can be one or more of applePay, googlePay, link, and browserCard. Use this option /// to disable Apple Pay, Google Pay, Link, and/or browser-saved cards. - @override List get disableWallets; - - /// Create a copy of PlatformPayWebPaymentRequestCreateOptions - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$PaymentRequestCreateOptionsImplCopyWith<_$PaymentRequestCreateOptionsImpl> get copyWith => throw _privateConstructorUsedError; } @@ -7097,12 +6817,8 @@ mixin _$PlatformPayWebShippingOption { /// the customer enters, listen for the shippingaddresschange event. num get amount => throw _privateConstructorUsedError; - /// Serializes this PlatformPayWebShippingOption to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of PlatformPayWebShippingOption - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $PlatformPayWebShippingOptionCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -7129,8 +6845,6 @@ class _$PlatformPayWebShippingOptionCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of PlatformPayWebShippingOption - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -7179,8 +6893,6 @@ class __$$$ShippingOptionImplCopyWithImpl<$Res> _$$ShippingOptionImpl _value, $Res Function(_$$ShippingOptionImpl) _then) : super(_value, _then); - /// Create a copy of PlatformPayWebShippingOption - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -7257,13 +6969,11 @@ class _$$ShippingOptionImpl implements _$ShippingOption { (identical(other.amount, amount) || other.amount == amount)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, id, label, detail, amount); - /// Create a copy of PlatformPayWebShippingOption - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$$ShippingOptionImplCopyWith<_$$ShippingOptionImpl> get copyWith => @@ -7288,28 +6998,26 @@ abstract class _$ShippingOption implements PlatformPayWebShippingOption { factory _$ShippingOption.fromJson(Map json) = _$$ShippingOptionImpl.fromJson; + @override + /// A unique ID you create to keep track of this shipping option. You’ll be told the ID of the selected option /// on changes and on completion. - @override String get id; + @override /// A short label for this shipping option. - @override String get label; + @override /// A longer description of this shipping option. - @override String get detail; + @override /// The amount to show for this shipping option. If the cost of this shipping option depends on the shipping address /// the customer enters, listen for the shippingaddresschange event. - @override num get amount; - - /// Create a copy of PlatformPayWebShippingOption - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$$ShippingOptionImplCopyWith<_$$ShippingOptionImpl> get copyWith => throw _privateConstructorUsedError; } @@ -7332,12 +7040,8 @@ mixin _$PlatformPayWebPaymentItem { /// prevent submission. bool get pending => throw _privateConstructorUsedError; - /// Serializes this PlatformPayWebPaymentItem to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of PlatformPayWebPaymentItem - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $PlatformPayWebPaymentItemCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -7362,8 +7066,6 @@ class _$PlatformPayWebPaymentItemCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of PlatformPayWebPaymentItem - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -7407,8 +7109,6 @@ class __$$$PaymentItemImplCopyWithImpl<$Res> _$$PaymentItemImpl _value, $Res Function(_$$PaymentItemImpl) _then) : super(_value, _then); - /// Create a copy of PlatformPayWebPaymentItem - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -7473,13 +7173,11 @@ class _$$PaymentItemImpl implements _$PaymentItem { (identical(other.pending, pending) || other.pending == pending)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, amount, label, pending); - /// Create a copy of PlatformPayWebPaymentItem - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$$PaymentItemImplCopyWith<_$$PaymentItemImpl> get copyWith => @@ -7502,24 +7200,22 @@ abstract class _$PaymentItem implements PlatformPayWebPaymentItem { factory _$PaymentItem.fromJson(Map json) = _$$PaymentItemImpl.fromJson; - /// The amount in the currency's subunit (e.g. cents, yen, etc.) @override + + /// The amount in the currency's subunit (e.g. cents, yen, etc.) num get amount; + @override /// A name that the browser shows the customer in the payment interface. - @override String get label; + @override /// If you might change this amount later (for example, after you have calculated shipping costs), set this to true. /// Note that browsers treat this as a hint for how to display things, and not necessarily as something that will /// prevent submission. - @override bool get pending; - - /// Create a copy of PlatformPayWebPaymentItem - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$$PaymentItemImplCopyWith<_$$PaymentItemImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_platform_interface/lib/src/models/setup_intent.freezed.dart b/packages/stripe_platform_interface/lib/src/models/setup_intent.freezed.dart index 2a1608748..b855ca032 100644 --- a/packages/stripe_platform_interface/lib/src/models/setup_intent.freezed.dart +++ b/packages/stripe_platform_interface/lib/src/models/setup_intent.freezed.dart @@ -60,12 +60,8 @@ mixin _$SetupIntent { /// Mandata data for this paymentintent. MandateData? get mandateData => throw _privateConstructorUsedError; - /// Serializes this SetupIntent to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of SetupIntent - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $SetupIntentCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -105,8 +101,6 @@ class _$SetupIntentCopyWithImpl<$Res, $Val extends SetupIntent> // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of SetupIntent - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -175,8 +169,6 @@ class _$SetupIntentCopyWithImpl<$Res, $Val extends SetupIntent> ) as $Val); } - /// Create a copy of SetupIntent - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $LastSetupErrorCopyWith<$Res>? get lastSetupError { @@ -189,8 +181,6 @@ class _$SetupIntentCopyWithImpl<$Res, $Val extends SetupIntent> }); } - /// Create a copy of SetupIntent - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $NextActionCopyWith<$Res>? get nextAction { @@ -203,8 +193,6 @@ class _$SetupIntentCopyWithImpl<$Res, $Val extends SetupIntent> }); } - /// Create a copy of SetupIntent - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $MandateDataCopyWith<$Res>? get mandateData { @@ -256,8 +244,6 @@ class __$$SetupIntentImplCopyWithImpl<$Res> _$SetupIntentImpl _value, $Res Function(_$SetupIntentImpl) _then) : super(_value, _then); - /// Create a copy of SetupIntent - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -440,7 +426,7 @@ class _$SetupIntentImpl implements _SetupIntent { other.mandateData == mandateData)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash( runtimeType, @@ -457,9 +443,7 @@ class _$SetupIntentImpl implements _SetupIntent { nextAction, mandateData); - /// Create a copy of SetupIntent - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$SetupIntentImplCopyWith<_$SetupIntentImpl> get copyWith => @@ -491,61 +475,59 @@ abstract class _SetupIntent implements SetupIntent { factory _SetupIntent.fromJson(Map json) = _$SetupIntentImpl.fromJson; - /// Unique identifier. @override + + /// Unique identifier. String get id; + @override /// Status of the intent. /// /// See https://stripe.com/docs/payments/intents#intent-statuses. - @override String get status; + @override /// Determines whether the intent is in live mode or in test mode. - @override bool get livemode; + @override /// The client is secret is used for handling the payment from the Client side. - @override String get clientSecret; + @override /// Id of the payment method used in this intent. - @override String get paymentMethodId; + @override /// Indicates how the intent is used in the future. - @override String get usage; + @override /// List of payment method types associated with this intent. - @override List get paymentMethodTypes; + @override /// Localized description that provides additional context to users. - @override String? get description; + @override /// Timestamp since epoch that represents the time the intent is created. - @override String? get created; + @override /// Error encountered since last configmration. - @override LastSetupError? get lastSetupError; + @override /// Additional action that needs to be taken in order to complete a payment /// using the provided resource. - @override NextAction? get nextAction; + @override /// Mandata data for this paymentintent. - @override MandateData? get mandateData; - - /// Create a copy of SetupIntent - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$SetupIntentImplCopyWith<_$SetupIntentImpl> get copyWith => throw _privateConstructorUsedError; } @@ -562,12 +544,8 @@ mixin _$LastSetupError { /// Message. String get message => throw _privateConstructorUsedError; - /// Serializes this LastSetupError to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of LastSetupError - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $LastSetupErrorCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -591,8 +569,6 @@ class _$LastSetupErrorCopyWithImpl<$Res, $Val extends LastSetupError> // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of LastSetupError - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -631,8 +607,6 @@ class __$$LastSetupErrorImplCopyWithImpl<$Res> _$LastSetupErrorImpl _value, $Res Function(_$LastSetupErrorImpl) _then) : super(_value, _then); - /// Create a copy of LastSetupError - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -683,13 +657,11 @@ class _$LastSetupErrorImpl implements _LastSetupError { (identical(other.message, message) || other.message == message)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, code, message); - /// Create a copy of LastSetupError - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$LastSetupErrorImplCopyWith<_$LastSetupErrorImpl> get copyWith => @@ -712,18 +684,16 @@ abstract class _LastSetupError implements LastSetupError { factory _LastSetupError.fromJson(Map json) = _$LastSetupErrorImpl.fromJson; - /// Code. @override + + /// Code. String get code; + @override /// Message. - @override String get message; - - /// Create a copy of LastSetupError - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$LastSetupErrorImplCopyWith<_$LastSetupErrorImpl> get copyWith => throw _privateConstructorUsedError; }