diff --git a/example/lib/screens/payment_sheet/payment_sheet_screen.dart b/example/lib/screens/payment_sheet/payment_sheet_screen.dart index 485d405e..b3ef7244 100644 --- a/example/lib/screens/payment_sheet/payment_sheet_screen.dart +++ b/example/lib/screens/payment_sheet/payment_sheet_screen.dart @@ -104,6 +104,7 @@ class _PaymentSheetScreenState extends State { googlePay: PaymentSheetGooglePay( merchantCountryCode: 'DE', testEnv: true, + buttonType: PlatformButtonType.book, ), style: ThemeMode.dark, appearance: PaymentSheetAppearance( 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 7fa0f5ef..eb76582c 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/address.freezed.dart b/packages/stripe_platform_interface/lib/src/models/address.freezed.dart index d59839b7..76ea8d82 100644 --- a/packages/stripe_platform_interface/lib/src/models/address.freezed.dart +++ b/packages/stripe_platform_interface/lib/src/models/address.freezed.dart @@ -29,12 +29,8 @@ mixin _$AddressDetails { /// the customer's phonumber String? get phoneNumber => throw _privateConstructorUsedError; - /// Serializes this AddressDetails to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of AddressDetails - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $AddressDetailsCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -60,8 +56,6 @@ class _$AddressDetailsCopyWithImpl<$Res, $Val extends AddressDetails> // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of AddressDetails - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -85,8 +79,6 @@ class _$AddressDetailsCopyWithImpl<$Res, $Val extends AddressDetails> ) as $Val); } - /// Create a copy of AddressDetails - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $AddressCopyWith<$Res>? get address { @@ -122,8 +114,6 @@ class __$$AddressDetailsImplCopyWithImpl<$Res> _$AddressDetailsImpl _value, $Res Function(_$AddressDetailsImpl) _then) : super(_value, _then); - /// Create a copy of AddressDetails - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -185,13 +175,11 @@ class _$AddressDetailsImpl implements _AddressDetails { other.phoneNumber == phoneNumber)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, name, address, phoneNumber); - /// Create a copy of AddressDetails - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$AddressDetailsImplCopyWith<_$AddressDetailsImpl> get copyWith => @@ -215,22 +203,20 @@ abstract class _AddressDetails implements AddressDetails { factory _AddressDetails.fromJson(Map json) = _$AddressDetailsImpl.fromJson; - /// The customer's full name @override + + /// The customer's full name String? get name; + @override /// The customer's address - @override Address? get address; + @override /// the customer's phonumber - @override String? get phoneNumber; - - /// Create a copy of AddressDetails - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$AddressDetailsImplCopyWith<_$AddressDetailsImpl> get copyWith => throw _privateConstructorUsedError; } @@ -259,12 +245,8 @@ mixin _$Address { /// State or province. String? get state => throw _privateConstructorUsedError; - /// Serializes this Address to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of Address - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $AddressCopyWith
get copyWith => throw _privateConstructorUsedError; } @@ -292,8 +274,6 @@ class _$AddressCopyWithImpl<$Res, $Val extends Address> // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of Address - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -357,8 +337,6 @@ class __$$AddressImplCopyWithImpl<$Res> _$AddressImpl _value, $Res Function(_$AddressImpl) _then) : super(_value, _then); - /// Create a copy of Address - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -457,14 +435,12 @@ class _$AddressImpl extends _Address { (identical(other.state, state) || other.state == state)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, city, country, line1, line2, postalCode, state); - /// Create a copy of Address - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$AddressImplCopyWith<_$AddressImpl> get copyWith => @@ -490,34 +466,32 @@ abstract class _Address extends Address { factory _Address.fromJson(Map json) = _$AddressImpl.fromJson; - /// City, town or district. @override + + /// City, town or district. String? get city; + @override /// Country - @override String? get country; + @override /// Address line1 (e.g. Street, C/O , PO Box). - @override String? get line1; + @override /// Address line2 (e.g. building, appartment or unit). - @override String? get line2; + @override /// ZIP or postal code. - @override String? get postalCode; + @override /// State or province. - @override String? get state; - - /// Create a copy of Address - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$AddressImplCopyWith<_$AddressImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_platform_interface/lib/src/models/app_info.freezed.dart b/packages/stripe_platform_interface/lib/src/models/app_info.freezed.dart index f1362850..3c71d686 100644 --- a/packages/stripe_platform_interface/lib/src/models/app_info.freezed.dart +++ b/packages/stripe_platform_interface/lib/src/models/app_info.freezed.dart @@ -25,12 +25,8 @@ mixin _$AppInfo { String? get url => throw _privateConstructorUsedError; String? get version => throw _privateConstructorUsedError; - /// Serializes this AppInfo to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of AppInfo - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $AppInfoCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -52,8 +48,6 @@ class _$AppInfoCopyWithImpl<$Res, $Val extends AppInfo> // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of AppInfo - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -101,8 +95,6 @@ class __$$AppInfoImplCopyWithImpl<$Res> _$AppInfoImpl _value, $Res Function(_$AppInfoImpl) _then) : super(_value, _then); - /// Create a copy of AppInfo - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -167,13 +159,11 @@ class _$AppInfoImpl implements _AppInfo { (identical(other.version, version) || other.version == version)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, name, partnerId, url, version); - /// Create a copy of AppInfo - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$AppInfoImplCopyWith<_$AppInfoImpl> get copyWith => @@ -204,11 +194,8 @@ abstract class _AppInfo implements AppInfo { String? get url; @override String? get version; - - /// Create a copy of AppInfo - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$AppInfoImplCopyWith<_$AppInfoImpl> 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 5e62ae05..378cba9d 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/aubecs_form.freezed.dart b/packages/stripe_platform_interface/lib/src/models/aubecs_form.freezed.dart index 61f55ca9..3eb4c527 100644 --- a/packages/stripe_platform_interface/lib/src/models/aubecs_form.freezed.dart +++ b/packages/stripe_platform_interface/lib/src/models/aubecs_form.freezed.dart @@ -42,12 +42,8 @@ mixin _$AubecsFormStyle { /// Only available for Android int? get borderRadius => throw _privateConstructorUsedError; - /// Serializes this AubecsFormStyle to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of AubecsFormStyle - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $AubecsFormStyleCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -84,8 +80,6 @@ class _$AubecsFormStyleCopyWithImpl<$Res, $Val extends AubecsFormStyle> // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of AubecsFormStyle - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -167,8 +161,6 @@ class __$$AubecsFormStyleImplCopyWithImpl<$Res> _$AubecsFormStyleImpl _value, $Res Function(_$AubecsFormStyleImpl) _then) : super(_value, _then); - /// Create a copy of AubecsFormStyle - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -298,7 +290,7 @@ class _$AubecsFormStyleImpl implements _AubecsFormStyle { other.borderRadius == borderRadius)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash( runtimeType, @@ -311,9 +303,7 @@ class _$AubecsFormStyleImpl implements _AubecsFormStyle { borderColor, borderRadius); - /// Create a copy of AubecsFormStyle - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$AubecsFormStyleImplCopyWith<_$AubecsFormStyleImpl> get copyWith => @@ -356,14 +346,14 @@ abstract class _AubecsFormStyle implements AubecsFormStyle { @override @JsonKey(toJson: ColorKey.toJson, fromJson: ColorKey.fromJson) Color? get placeholderColor; + @override /// Size of the font in the input form. - @override int? get fontSize; + @override /// Borderwith of the form /// Only available for Android - @override int? get borderWidth; @override @JsonKey(toJson: ColorKey.toJson, fromJson: ColorKey.fromJson) @@ -371,16 +361,13 @@ abstract class _AubecsFormStyle implements AubecsFormStyle { @override @JsonKey(toJson: ColorKey.toJson, fromJson: ColorKey.fromJson) Color? get borderColor; + @override /// Borderadius of the form /// Only available for Android - @override int? get borderRadius; - - /// Create a copy of AubecsFormStyle - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$AubecsFormStyleImplCopyWith<_$AubecsFormStyleImpl> get copyWith => throw _privateConstructorUsedError; } @@ -404,12 +391,8 @@ mixin _$AubecsFormInputDetails { /// Email of the accountholder. String? get email => throw _privateConstructorUsedError; - /// Serializes this AubecsFormInputDetails to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of AubecsFormInputDetails - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $AubecsFormInputDetailsCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -435,8 +418,6 @@ class _$AubecsFormInputDetailsCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of AubecsFormInputDetails - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -489,8 +470,6 @@ class __$$AubecsFormInputDetailsImplCopyWithImpl<$Res> $Res Function(_$AubecsFormInputDetailsImpl) _then) : super(_value, _then); - /// Create a copy of AubecsFormInputDetails - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -564,14 +543,12 @@ class _$AubecsFormInputDetailsImpl implements _AubecsFormInputDetails { (identical(other.email, email) || other.email == email)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, bsbNumber, name, accountNumber, email); - /// Create a copy of AubecsFormInputDetails - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$AubecsFormInputDetailsImplCopyWith<_$AubecsFormInputDetailsImpl> @@ -596,26 +573,24 @@ abstract class _AubecsFormInputDetails implements AubecsFormInputDetails { factory _AubecsFormInputDetails.fromJson(Map json) = _$AubecsFormInputDetailsImpl.fromJson; - /// Six digit identifier to identify the branch of an financial institution. @override + + /// Six digit identifier to identify the branch of an financial institution. String? get bsbNumber; + @override /// The name of the accountholder. - @override String? get name; + @override /// The account number. - @override String? get accountNumber; + @override /// Email of the accountholder. - @override String? get email; - - /// Create a copy of AubecsFormInputDetails - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$AubecsFormInputDetailsImplCopyWith<_$AubecsFormInputDetailsImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_platform_interface/lib/src/models/card_details.freezed.dart b/packages/stripe_platform_interface/lib/src/models/card_details.freezed.dart index 7d8951b5..4c2f6b11 100644 --- a/packages/stripe_platform_interface/lib/src/models/card_details.freezed.dart +++ b/packages/stripe_platform_interface/lib/src/models/card_details.freezed.dart @@ -25,12 +25,8 @@ mixin _$CardDetails { int? get expirationMonth => throw _privateConstructorUsedError; String? get cvc => throw _privateConstructorUsedError; - /// Serializes this CardDetails to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of CardDetails - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $CardDetailsCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -55,8 +51,6 @@ class _$CardDetailsCopyWithImpl<$Res, $Val extends CardDetails> // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of CardDetails - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -108,8 +102,6 @@ class __$$CardDetailsConstructorImplCopyWithImpl<$Res> $Res Function(_$CardDetailsConstructorImpl) _then) : super(_value, _then); - /// Create a copy of CardDetails - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -177,14 +169,12 @@ class _$CardDetailsConstructorImpl extends _CardDetailsConstructor { (identical(other.cvc, cvc) || other.cvc == cvc)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, number, expirationYear, expirationMonth, cvc); - /// Create a copy of CardDetails - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$CardDetailsConstructorImplCopyWith<_$CardDetailsConstructorImpl> @@ -218,11 +208,8 @@ abstract class _CardDetailsConstructor extends CardDetails { int? get expirationMonth; @override String? get cvc; - - /// Create a copy of CardDetails - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$CardDetailsConstructorImplCopyWith<_$CardDetailsConstructorImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_platform_interface/lib/src/models/card_field_input.freezed.dart b/packages/stripe_platform_interface/lib/src/models/card_field_input.freezed.dart index a871ee78..ea4e04fd 100644 --- a/packages/stripe_platform_interface/lib/src/models/card_field_input.freezed.dart +++ b/packages/stripe_platform_interface/lib/src/models/card_field_input.freezed.dart @@ -46,12 +46,8 @@ mixin _$CardStyle { @JsonKey(toJson: ColorKey.toJson, fromJson: ColorKey.fromJson) Color? get placeholderColor => throw _privateConstructorUsedError; - /// Serializes this CardStyle to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of CardStyle - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $CardStyleCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -90,8 +86,6 @@ class _$CardStyleCopyWithImpl<$Res, $Val extends CardStyle> // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of CardStyle - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -186,8 +180,6 @@ class __$$CardStyleConstructorImplCopyWithImpl<$Res> $Res Function(_$CardStyleConstructorImpl) _then) : super(_value, _then); - /// Create a copy of CardStyle - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -341,7 +333,7 @@ class _$CardStyleConstructorImpl extends _CardStyleConstructor { other.placeholderColor == placeholderColor)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash( runtimeType, @@ -356,9 +348,7 @@ class _$CardStyleConstructorImpl extends _CardStyleConstructor { textErrorColor, placeholderColor); - /// Create a copy of CardStyle - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$CardStyleConstructorImplCopyWith<_$CardStyleConstructorImpl> @@ -397,8 +387,9 @@ abstract class _CardStyleConstructor extends CardStyle { factory _CardStyleConstructor.fromJson(Map json) = _$CardStyleConstructorImpl.fromJson; - /// Width for the border. @override + + /// Width for the border. int? get borderWidth; @override @JsonKey(toJson: ColorKey.toJson, fromJson: ColorKey.fromJson) @@ -406,9 +397,9 @@ abstract class _CardStyleConstructor extends CardStyle { @override @JsonKey(toJson: ColorKey.toJson, fromJson: ColorKey.fromJson) Color? get borderColor; + @override /// Borderradius that can give the Cardfield rounded corners. - @override int? get borderRadius; @override @JsonKey(toJson: ColorKey.toJson, fromJson: ColorKey.fromJson) @@ -416,27 +407,24 @@ abstract class _CardStyleConstructor extends CardStyle { @override @JsonKey(toJson: ColorKey.toJson, fromJson: ColorKey.fromJson) Color? get textColor; + @override /// Font size. - @override int? get fontSize; + @override /// Font family - @override String? get fontFamily; + @override /// Color of the input in case incorrect data is entered. - @override @JsonKey(toJson: ColorKey.toJson, fromJson: ColorKey.fromJson) Color? get textErrorColor; @override @JsonKey(toJson: ColorKey.toJson, fromJson: ColorKey.fromJson) Color? get placeholderColor; - - /// Create a copy of CardStyle - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$CardStyleConstructorImplCopyWith<_$CardStyleConstructorImpl> get copyWith => throw _privateConstructorUsedError; } @@ -471,12 +459,8 @@ mixin _$CardFormStyle { @JsonKey(toJson: ColorKey.toJson, fromJson: ColorKey.fromJson) Color? get placeholderColor => throw _privateConstructorUsedError; - /// Serializes this CardFormStyle to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of CardFormStyle - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $CardFormStyleCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -515,8 +499,6 @@ class _$CardFormStyleCopyWithImpl<$Res, $Val extends CardFormStyle> // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of CardFormStyle - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -607,8 +589,6 @@ class __$$CardFormStyleConstructorImplCopyWithImpl<$Res> $Res Function(_$CardFormStyleConstructorImpl) _then) : super(_value, _then); - /// Create a copy of CardFormStyle - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -751,7 +731,7 @@ class _$CardFormStyleConstructorImpl extends _CardFormStyleConstructor { other.placeholderColor == placeholderColor)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash( runtimeType, @@ -765,9 +745,7 @@ class _$CardFormStyleConstructorImpl extends _CardFormStyleConstructor { textErrorColor, placeholderColor); - /// Create a copy of CardFormStyle - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$CardFormStyleConstructorImplCopyWith<_$CardFormStyleConstructorImpl> @@ -807,16 +785,16 @@ abstract class _CardFormStyleConstructor extends CardFormStyle { @override @JsonKey(toJson: ColorKey.toJson, fromJson: ColorKey.fromJson) Color? get backgroundColor; + @override /// Width for the border. - @override int? get borderWidth; @override @JsonKey(toJson: ColorKey.toJson, fromJson: ColorKey.fromJson) Color? get borderColor; + @override /// Borderradius that can give the Cardfield rounded corners. - @override int? get borderRadius; @override @JsonKey(toJson: ColorKey.toJson, fromJson: ColorKey.fromJson) @@ -824,23 +802,20 @@ abstract class _CardFormStyleConstructor extends CardFormStyle { @override @JsonKey(toJson: ColorKey.toJson, fromJson: ColorKey.fromJson) Color? get textColor; + @override /// Font size. - @override int? get fontSize; + @override /// Color of the input in case incorrect data is entered. - @override @JsonKey(toJson: ColorKey.toJson, fromJson: ColorKey.fromJson) Color? get textErrorColor; @override @JsonKey(toJson: ColorKey.toJson, fromJson: ColorKey.fromJson) Color? get placeholderColor; - - /// Create a copy of CardFormStyle - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$CardFormStyleConstructorImplCopyWith<_$CardFormStyleConstructorImpl> get copyWith => throw _privateConstructorUsedError; } @@ -863,12 +838,8 @@ mixin _$CardPlaceholder { /// Localized placeholder for postal code field. String? get postalCode => throw _privateConstructorUsedError; - /// Serializes this CardPlaceholder to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of CardPlaceholder - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $CardPlaceholderCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -893,8 +864,6 @@ class _$CardPlaceholderCopyWithImpl<$Res, $Val extends CardPlaceholder> // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of CardPlaceholder - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -947,8 +916,6 @@ class __$$CardPlaceholderConstructorImplCopyWithImpl<$Res> $Res Function(_$CardPlaceholderConstructorImpl) _then) : super(_value, _then); - /// Create a copy of CardPlaceholder - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1024,14 +991,12 @@ class _$CardPlaceholderConstructorImpl extends _CardPlaceholderConstructor { other.postalCode == postalCode)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, number, expiration, cvc, postalCode); - /// Create a copy of CardPlaceholder - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$CardPlaceholderConstructorImplCopyWith<_$CardPlaceholderConstructorImpl> @@ -1057,26 +1022,24 @@ abstract class _CardPlaceholderConstructor extends CardPlaceholder { factory _CardPlaceholderConstructor.fromJson(Map json) = _$CardPlaceholderConstructorImpl.fromJson; - /// Localized placeholder for card number field. @override + + /// Localized placeholder for card number field. String? get number; + @override /// Localized placeholder for expiration field. - @override String? get expiration; + @override /// Localized placeholder for cvc field. - @override String? get cvc; + @override /// Localized placeholder for postal code field. - @override String? get postalCode; - - /// Create a copy of CardPlaceholder - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$CardPlaceholderConstructorImplCopyWith<_$CardPlaceholderConstructorImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1123,12 +1086,8 @@ mixin _$CardFieldInputDetails { /// The [CardValidationState] of the entered card number. CardValidationState get validNumber => throw _privateConstructorUsedError; - /// Serializes this CardFieldInputDetails to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of CardFieldInputDetails - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $CardFieldInputDetailsCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -1164,8 +1123,6 @@ class _$CardFieldInputDetailsCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of CardFieldInputDetails - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1262,8 +1219,6 @@ class __$$CardFieldInputDetailsImplCopyWithImpl<$Res> $Res Function(_$CardFieldInputDetailsImpl) _then) : super(_value, _then); - /// Create a copy of CardFieldInputDetails - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1428,7 +1383,7 @@ class _$CardFieldInputDetailsImpl extends _CardFieldInputDetails { other.validNumber == validNumber)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash( runtimeType, @@ -1444,9 +1399,7 @@ class _$CardFieldInputDetailsImpl extends _CardFieldInputDetails { validCVC, validNumber); - /// Create a copy of CardFieldInputDetails - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$CardFieldInputDetailsImplCopyWith<_$CardFieldInputDetailsImpl> @@ -1479,56 +1432,54 @@ abstract class _CardFieldInputDetails extends CardFieldInputDetails { factory _CardFieldInputDetails.fromJson(Map json) = _$CardFieldInputDetailsImpl.fromJson; - /// Indicates whether the card field input is complete. @override + + /// Indicates whether the card field input is complete. bool get complete; + @override /// Last 4 digits of the entered card number. - @override String? get last4; + @override /// Month of the entered expiry date of the card. - @override int? get expiryMonth; + @override /// Year of the entered expiry date of the card. - @override int? get expiryYear; + @override /// Entered postcal code. - @override String? get postalCode; + @override /// Brand of the card. - @override String? get brand; + @override /// Card number. /// This information is not available by default to comply with the PCI compliance - @override String? get number; + @override /// CVC code. /// This information is not available by default to comply with the PCI compliance - @override String? get cvc; + @override /// The [CardValidationState] of the entered expiry date. - @override CardValidationState get validExpiryDate; + @override /// The [CardValidationState] of the entered cvc. - @override CardValidationState get validCVC; + @override /// The [CardValidationState] of the entered card number. - @override CardValidationState get validNumber; - - /// Create a copy of CardFieldInputDetails - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$CardFieldInputDetailsImplCopyWith<_$CardFieldInputDetailsImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1541,12 +1492,8 @@ CardFieldFocusName _$CardFieldFocusNameFromJson(Map json) { mixin _$CardFieldFocusName { CardFieldName? get focusedField => throw _privateConstructorUsedError; - /// Serializes this CardFieldFocusName to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of CardFieldFocusName - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $CardFieldFocusNameCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -1570,8 +1517,6 @@ class _$CardFieldFocusNameCopyWithImpl<$Res, $Val extends CardFieldFocusName> // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of CardFieldFocusName - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1605,8 +1550,6 @@ class __$$CardFieldFocusNameImplCopyWithImpl<$Res> $Res Function(_$CardFieldFocusNameImpl) _then) : super(_value, _then); - /// Create a copy of CardFieldFocusName - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1647,13 +1590,11 @@ class _$CardFieldFocusNameImpl implements _CardFieldFocusName { other.focusedField == focusedField)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, focusedField); - /// Create a copy of CardFieldFocusName - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$CardFieldFocusNameImplCopyWith<_$CardFieldFocusNameImpl> get copyWith => @@ -1677,11 +1618,8 @@ abstract class _CardFieldFocusName implements CardFieldFocusName { @override CardFieldName? get focusedField; - - /// Create a copy of CardFieldFocusName - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$CardFieldFocusNameImplCopyWith<_$CardFieldFocusNameImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_platform_interface/lib/src/models/create_token_data.freezed.dart b/packages/stripe_platform_interface/lib/src/models/create_token_data.freezed.dart index 47059663..c202abe1 100644 --- a/packages/stripe_platform_interface/lib/src/models/create_token_data.freezed.dart +++ b/packages/stripe_platform_interface/lib/src/models/create_token_data.freezed.dart @@ -85,8 +85,6 @@ mixin _$CreateTokenParams { required TResult orElse(), }) => throw _privateConstructorUsedError; - - /// Serializes this CreateTokenParams to a JSON map. Map toJson() => throw _privateConstructorUsedError; } @@ -106,9 +104,6 @@ class _$CreateTokenParamsCopyWithImpl<$Res, $Val extends CreateTokenParams> final $Val _value; // ignore: unused_field final $Res Function($Val) _then; - - /// Create a copy of CreateTokenParams - /// with the given fields replaced by the non-null parameter values. } /// @nodoc @@ -132,8 +127,6 @@ class __$$CreateTokenParamsLegacyImplCopyWithImpl<$Res> $Res Function(_$CreateTokenParamsLegacyImpl) _then) : super(_value, _then); - /// Create a copy of CreateTokenParams - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -157,8 +150,6 @@ class __$$CreateTokenParamsLegacyImplCopyWithImpl<$Res> )); } - /// Create a copy of CreateTokenParams - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $AddressCopyWith<$Res>? get address { @@ -218,13 +209,11 @@ class _$CreateTokenParamsLegacyImpl implements _CreateTokenParamsLegacy { (identical(other.address, address) || other.address == address)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, type, name, address); - /// Create a copy of CreateTokenParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$CreateTokenParamsLegacyImplCopyWith<_$CreateTokenParamsLegacyImpl> @@ -332,10 +321,7 @@ abstract class _CreateTokenParamsLegacy implements CreateTokenParams { /// Additional address details Address? get address; - - /// Create a copy of CreateTokenParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$CreateTokenParamsLegacyImplCopyWith<_$CreateTokenParamsLegacyImpl> get copyWith => throw _privateConstructorUsedError; } @@ -360,8 +346,6 @@ class __$$CreateTokenParamsCardImplCopyWithImpl<$Res> $Res Function(_$CreateTokenParamsCardImpl) _then) : super(_value, _then); - /// Create a copy of CreateTokenParams - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -375,8 +359,6 @@ class __$$CreateTokenParamsCardImplCopyWithImpl<$Res> )); } - /// Create a copy of CreateTokenParams - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $CardTokenParamsCopyWith<$Res> get params { @@ -415,13 +397,11 @@ class _$CreateTokenParamsCardImpl implements _CreateTokenParamsCard { (identical(other.params, params) || other.params == params)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, params); - /// Create a copy of CreateTokenParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$CreateTokenParamsCardImplCopyWith<_$CreateTokenParamsCardImpl> @@ -520,10 +500,7 @@ abstract class _CreateTokenParamsCard implements CreateTokenParams { _$CreateTokenParamsCardImpl.fromJson; CardTokenParams get params; - - /// Create a copy of CreateTokenParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$CreateTokenParamsCardImplCopyWith<_$CreateTokenParamsCardImpl> get copyWith => throw _privateConstructorUsedError; } @@ -550,8 +527,6 @@ class __$$CreateTokenParamsBankAccountImplCopyWithImpl<$Res> $Res Function(_$CreateTokenParamsBankAccountImpl) _then) : super(_value, _then); - /// Create a copy of CreateTokenParams - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -565,8 +540,6 @@ class __$$CreateTokenParamsBankAccountImplCopyWithImpl<$Res> )); } - /// Create a copy of CreateTokenParams - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $BankAccountTokenParamsCopyWith<$Res> get params { @@ -608,13 +581,11 @@ class _$CreateTokenParamsBankAccountImpl (identical(other.params, params) || other.params == params)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, params); - /// Create a copy of CreateTokenParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$CreateTokenParamsBankAccountImplCopyWith< @@ -715,10 +686,7 @@ abstract class _CreateTokenParamsBankAccount implements CreateTokenParams { _$CreateTokenParamsBankAccountImpl.fromJson; BankAccountTokenParams get params; - - /// Create a copy of CreateTokenParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$CreateTokenParamsBankAccountImplCopyWith< _$CreateTokenParamsBankAccountImpl> get copyWith => throw _privateConstructorUsedError; @@ -743,8 +711,6 @@ class __$$CreateTokenParamsPIIImplCopyWithImpl<$Res> $Res Function(_$CreateTokenParamsPIIImpl) _then) : super(_value, _then); - /// Create a copy of CreateTokenParams - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -758,8 +724,6 @@ class __$$CreateTokenParamsPIIImplCopyWithImpl<$Res> )); } - /// Create a copy of CreateTokenParams - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PIITokenParamsCopyWith<$Res> get params { @@ -798,13 +762,11 @@ class _$CreateTokenParamsPIIImpl implements _CreateTokenParamsPII { (identical(other.params, params) || other.params == params)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, params); - /// Create a copy of CreateTokenParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$CreateTokenParamsPIIImplCopyWith<_$CreateTokenParamsPIIImpl> @@ -904,10 +866,7 @@ abstract class _CreateTokenParamsPII implements CreateTokenParams { _$CreateTokenParamsPIIImpl.fromJson; PIITokenParams get params; - - /// Create a copy of CreateTokenParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$CreateTokenParamsPIIImplCopyWith<_$CreateTokenParamsPIIImpl> get copyWith => throw _privateConstructorUsedError; } @@ -930,12 +889,8 @@ mixin _$CardTokenParams { /// The three letter ISO 4217 code for the currency. String? get currency => throw _privateConstructorUsedError; - /// Serializes this CardTokenParams to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of CardTokenParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $CardTokenParamsCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -961,8 +916,6 @@ class _$CardTokenParamsCopyWithImpl<$Res, $Val extends CardTokenParams> // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of CardTokenParams - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -991,8 +944,6 @@ class _$CardTokenParamsCopyWithImpl<$Res, $Val extends CardTokenParams> ) as $Val); } - /// Create a copy of CardTokenParams - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $AddressCopyWith<$Res>? get address { @@ -1028,8 +979,6 @@ class __$$CardTokenParamsImplCopyWithImpl<$Res> _$CardTokenParamsImpl _value, $Res Function(_$CardTokenParamsImpl) _then) : super(_value, _then); - /// Create a copy of CardTokenParams - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1102,13 +1051,11 @@ class _$CardTokenParamsImpl implements _CardTokenParams { other.currency == currency)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, type, name, address, currency); - /// Create a copy of CardTokenParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$CardTokenParamsImplCopyWith<_$CardTokenParamsImpl> get copyWith => @@ -1133,26 +1080,24 @@ abstract class _CardTokenParams implements CardTokenParams { factory _CardTokenParams.fromJson(Map json) = _$CardTokenParamsImpl.fromJson; - /// Type of token. @override + + /// Type of token. TokenType get type; + @override /// Name of the card holder - @override String? get name; + @override /// Additional address details - @override Address? get address; + @override /// The three letter ISO 4217 code for the currency. - @override String? get currency; - - /// Create a copy of CardTokenParams - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$CardTokenParamsImplCopyWith<_$CardTokenParamsImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1169,12 +1114,8 @@ mixin _$PIITokenParams { /// The user's personal ID number String get personalId => throw _privateConstructorUsedError; - /// Serializes this PIITokenParams to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of PIITokenParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $PIITokenParamsCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -1198,8 +1139,6 @@ class _$PIITokenParamsCopyWithImpl<$Res, $Val extends PIITokenParams> // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of PIITokenParams - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1238,8 +1177,6 @@ class __$$PIITokenParamsImplCopyWithImpl<$Res> _$PIITokenParamsImpl _value, $Res Function(_$PIITokenParamsImpl) _then) : super(_value, _then); - /// Create a copy of PIITokenParams - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1292,13 +1229,11 @@ class _$PIITokenParamsImpl implements _PIITokenParams { other.personalId == personalId)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, type, personalId); - /// Create a copy of PIITokenParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$PIITokenParamsImplCopyWith<_$PIITokenParamsImpl> get copyWith => @@ -1321,18 +1256,16 @@ abstract class _PIITokenParams implements PIITokenParams { factory _PIITokenParams.fromJson(Map json) = _$PIITokenParamsImpl.fromJson; - /// Type of token. @override + + /// Type of token. TokenType get type; + @override /// The user's personal ID number - @override String get personalId; - - /// Create a copy of PIITokenParams - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$PIITokenParamsImplCopyWith<_$PIITokenParamsImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1366,12 +1299,8 @@ mixin _$BankAccountTokenParams { /// The routing number of the bank account (e.g. needer for US accounts). String? get routingNumber => throw _privateConstructorUsedError; - /// Serializes this BankAccountTokenParams to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of BankAccountTokenParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $BankAccountTokenParamsCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -1403,8 +1332,6 @@ class _$BankAccountTokenParamsCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of BankAccountTokenParams - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1478,8 +1405,6 @@ class __$$BankAccountTokenParamsImplCopyWithImpl<$Res> $Res Function(_$BankAccountTokenParamsImpl) _then) : super(_value, _then); - /// Create a copy of BankAccountTokenParams - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1592,14 +1517,12 @@ class _$BankAccountTokenParamsImpl implements _BankAccountTokenParams { other.routingNumber == routingNumber)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, type, accountNumber, country, currency, accountHolderName, accountHolderType, routingNumber); - /// Create a copy of BankAccountTokenParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$BankAccountTokenParamsImplCopyWith<_$BankAccountTokenParamsImpl> @@ -1627,38 +1550,36 @@ abstract class _BankAccountTokenParams implements BankAccountTokenParams { factory _BankAccountTokenParams.fromJson(Map json) = _$BankAccountTokenParamsImpl.fromJson; - /// Type of token. @override + + /// Type of token. TokenType get type; + @override /// unique number of the account. - @override String get accountNumber; + @override /// 2 letter code of the country where the account is located - @override String get country; + @override /// The three letter ISO 4217 code for the currency. - @override String get currency; + @override /// Full name of the account holder - @override String? get accountHolderName; + @override /// Entity that is holder of the account. - @override BankAccountHolderType? get accountHolderType; + @override /// The routing number of the bank account (e.g. needer for US accounts). - @override String? get routingNumber; - - /// Create a copy of BankAccountTokenParams - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$BankAccountTokenParamsImplCopyWith<_$BankAccountTokenParamsImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1688,12 +1609,8 @@ mixin _$TokenData { /// Card data CardData? get card => throw _privateConstructorUsedError; - /// Serializes this TokenData to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of TokenData - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $TokenDataCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -1725,8 +1642,6 @@ class _$TokenDataCopyWithImpl<$Res, $Val extends TokenData> // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of TokenData - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1765,8 +1680,6 @@ class _$TokenDataCopyWithImpl<$Res, $Val extends TokenData> ) as $Val); } - /// Create a copy of TokenData - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $BankAccountCopyWith<$Res>? get bankAccount { @@ -1779,8 +1692,6 @@ class _$TokenDataCopyWithImpl<$Res, $Val extends TokenData> }); } - /// Create a copy of TokenData - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $CardDataCopyWith<$Res>? get card { @@ -1824,8 +1735,6 @@ class __$$TokenDataImplCopyWithImpl<$Res> _$TokenDataImpl _value, $Res Function(_$TokenDataImpl) _then) : super(_value, _then); - /// Create a copy of TokenData - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1925,14 +1834,12 @@ class _$TokenDataImpl extends _TokenData { (identical(other.card, card) || other.card == card)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, id, created, type, livemode, bankAccount, card); - /// Create a copy of TokenData - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$TokenDataImplCopyWith<_$TokenDataImpl> get copyWith => @@ -1959,35 +1866,33 @@ abstract class _TokenData extends TokenData { factory _TokenData.fromJson(Map json) = _$TokenDataImpl.fromJson; - /// Unique identifier of the token @override + + /// Unique identifier of the token String get id; + @override /// Timestamp when token was created - @override @JsonKey(name: 'created') String get created; + @override /// Type of the token - @override TokenType get type; + @override /// Whether or not the object exists in livemode - @override bool get livemode; + @override /// Bank account data - @override BankAccount? get bankAccount; + @override /// Card data - @override CardData? get card; - - /// Create a copy of TokenData - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$TokenDataImplCopyWith<_$TokenDataImpl> get copyWith => throw _privateConstructorUsedError; } @@ -2028,12 +1933,8 @@ mixin _$CardData { /// Address of the cardholder Address? get address => throw _privateConstructorUsedError; - /// Serializes this CardData to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of CardData - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $CardDataCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -2068,8 +1969,6 @@ class _$CardDataCopyWithImpl<$Res, $Val extends CardData> // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of CardData - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -2128,8 +2027,6 @@ class _$CardDataCopyWithImpl<$Res, $Val extends CardData> ) as $Val); } - /// Create a copy of CardData - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $AddressCopyWith<$Res>? get address { @@ -2175,8 +2072,6 @@ class __$$CardDataImplCopyWithImpl<$Res> _$CardDataImpl _value, $Res Function(_$CardDataImpl) _then) : super(_value, _then); - /// Create a copy of CardData - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -2319,14 +2214,12 @@ class _$CardDataImpl implements _CardData { (identical(other.address, address) || other.address == address)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, id, brand, country, currency, expYear, expMonth, name, funding, last4, address); - /// Create a copy of CardData - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$CardDataImplCopyWith<_$CardDataImpl> get copyWith => @@ -2356,50 +2249,48 @@ abstract class _CardData implements CardData { factory _CardData.fromJson(Map json) = _$CardDataImpl.fromJson; - /// Unique identifier @override + + /// Unique identifier String? get id; + @override /// The brand associated to the card e.g. (visa, amex). - @override String get brand; + @override /// Two letter iso code. - @override String? get country; + @override /// The three letter ISO 4217 code for the currency. - @override String? get currency; + @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 /// Fullname of the cardholder - @override String? get name; + @override /// card funding type e.g. (credit, debit). - @override String? get funding; + @override /// last four digits of the card. - @override String? get last4; + @override /// Address of the cardholder - @override Address? get address; - - /// Create a copy of CardData - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$CardDataImplCopyWith<_$CardDataImpl> get copyWith => throw _privateConstructorUsedError; } @@ -2443,12 +2334,8 @@ mixin _$BankAccount { /// Last four numbers of the bank account number String? get last4 => throw _privateConstructorUsedError; - /// Serializes this BankAccount to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of BankAccount - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $BankAccountCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -2482,8 +2369,6 @@ class _$BankAccountCopyWithImpl<$Res, $Val extends BankAccount> // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of BankAccount - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -2572,8 +2457,6 @@ class __$$BankAccountImplCopyWithImpl<$Res> _$BankAccountImpl _value, $Res Function(_$BankAccountImpl) _then) : super(_value, _then); - /// Create a copy of BankAccount - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -2721,7 +2604,7 @@ class _$BankAccountImpl implements _BankAccount { (identical(other.last4, last4) || other.last4 == last4)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash( runtimeType, @@ -2736,9 +2619,7 @@ class _$BankAccountImpl implements _BankAccount { fingerprint, last4); - /// Create a copy of BankAccount - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$BankAccountImplCopyWith<_$BankAccountImpl> get copyWith => @@ -2768,52 +2649,50 @@ abstract class _BankAccount implements BankAccount { factory _BankAccount.fromJson(Map json) = _$BankAccountImpl.fromJson; - /// Unique id for this bank account @override + + /// Unique id for this bank account String get id; + @override /// Entity that is holder of the account. - @override BankAccountHolderType? get accountHolderType; + @override /// Name of the bank where the account is registered. - @override String? get bankName; + @override /// Full name of the account holder - @override String? get accountHolderName; + @override /// 2 letter code of the country where the account is located - @override String? get country; + @override /// The three letter ISO 4217 code for the currency. - @override String? get currency; + @override /// The routing number of the bank account (e.g. needer for US accounts). - @override String? get routingNumber; + @override /// Status of the bank account. - @override BankAccountStatus? get status; + @override /// Uniquely identifies the particular bank account. /// /// You can use this to check whether or not two bank accounts are the same. - @override String? get fingerprint; + @override /// Last four numbers of the bank account number - @override String? get last4; - - /// Create a copy of BankAccount - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$BankAccountImplCopyWith<_$BankAccountImpl> 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 32991e29..25723698 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/errors.freezed.dart b/packages/stripe_platform_interface/lib/src/models/errors.freezed.dart index 77ebd213..8be8457d 100644 --- a/packages/stripe_platform_interface/lib/src/models/errors.freezed.dart +++ b/packages/stripe_platform_interface/lib/src/models/errors.freezed.dart @@ -24,12 +24,8 @@ mixin _$StripeError { @JsonKey(fromJson: _dataFromJson, toJson: _dataToJson) T get code => throw _privateConstructorUsedError; - /// Serializes this StripeError to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of StripeError - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $StripeErrorCopyWith> get copyWith => throw _privateConstructorUsedError; } @@ -55,8 +51,6 @@ class _$StripeErrorCopyWithImpl> // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of StripeError - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -97,8 +91,6 @@ class __$$StripeErrorGenericImplCopyWithImpl $Res Function(_$StripeErrorGenericImpl) _then) : super(_value, _then); - /// Create a copy of StripeError - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -151,14 +143,12 @@ class _$StripeErrorGenericImpl implements _StripeErrorGeneric { const DeepCollectionEquality().equals(other.code, code)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash( runtimeType, message, const DeepCollectionEquality().hash(code)); - /// Create a copy of StripeError - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$StripeErrorGenericImplCopyWith> @@ -187,11 +177,8 @@ abstract class _StripeErrorGeneric implements StripeError { @override @JsonKey(fromJson: _dataFromJson, toJson: _dataToJson) T get code; - - /// Create a copy of StripeError - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$StripeErrorGenericImplCopyWith> get copyWith => throw _privateConstructorUsedError; } @@ -205,12 +192,8 @@ mixin _$StripeException { /// error details LocalizedErrorMessage get error => throw _privateConstructorUsedError; - /// Serializes this StripeException to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of StripeException - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $StripeExceptionCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -236,8 +219,6 @@ class _$StripeExceptionCopyWithImpl<$Res, $Val extends StripeException> // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of StripeException - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -251,8 +232,6 @@ class _$StripeExceptionCopyWithImpl<$Res, $Val extends StripeException> ) as $Val); } - /// Create a copy of StripeException - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $LocalizedErrorMessageCopyWith<$Res> get error { @@ -284,8 +263,6 @@ class __$$StripeExceptionImplCopyWithImpl<$Res> _$StripeExceptionImpl _value, $Res Function(_$StripeExceptionImpl) _then) : super(_value, _then); - /// Create a copy of StripeException - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -325,13 +302,11 @@ class _$StripeExceptionImpl implements _StripeException { (identical(other.error, error) || other.error == error)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, error); - /// Create a copy of StripeException - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$StripeExceptionImplCopyWith<_$StripeExceptionImpl> get copyWith => @@ -353,14 +328,12 @@ abstract class _StripeException implements StripeException { factory _StripeException.fromJson(Map json) = _$StripeExceptionImpl.fromJson; - /// error details @override - LocalizedErrorMessage get error; - /// Create a copy of StripeException - /// with the given fields replaced by the non-null parameter values. + /// error details + LocalizedErrorMessage get error; @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$StripeExceptionImplCopyWith<_$StripeExceptionImpl> get copyWith => throw _privateConstructorUsedError; } @@ -391,12 +364,8 @@ mixin _$LocalizedErrorMessage { /// Error type String? get type => throw _privateConstructorUsedError; - /// Serializes this LocalizedErrorMessage to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of LocalizedErrorMessage - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $LocalizedErrorMessageCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -427,8 +396,6 @@ class _$LocalizedErrorMessageCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of LocalizedErrorMessage - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -495,8 +462,6 @@ class __$$LocalizedErrorMessageImplCopyWithImpl<$Res> $Res Function(_$LocalizedErrorMessageImpl) _then) : super(_value, _then); - /// Create a copy of LocalizedErrorMessage - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -597,14 +562,12 @@ class _$LocalizedErrorMessageImpl implements _LocalizedErrorMessage { (identical(other.type, type) || other.type == type)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, code, localizedMessage, message, stripeErrorCode, declineCode, type); - /// Create a copy of LocalizedErrorMessage - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$LocalizedErrorMessageImplCopyWith<_$LocalizedErrorMessageImpl> @@ -632,35 +595,33 @@ abstract class _LocalizedErrorMessage implements LocalizedErrorMessage { factory _LocalizedErrorMessage.fromJson(Map json) = _$LocalizedErrorMessageImpl.fromJson; - /// The error code for example Cancelled @override + + /// The error code for example Cancelled @JsonKey(unknownEnumValue: FailureCode.Unknown) FailureCode get code; + @override /// Localized error message if any - @override String? get localizedMessage; + @override /// Generic untranslated error message. - @override String? get message; + @override /// Stripe error code - @override String? get stripeErrorCode; + @override /// Code in case payment is declined - @override String? get declineCode; + @override /// Error type - @override String? get type; - - /// Create a copy of LocalizedErrorMessage - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$LocalizedErrorMessageImplCopyWith<_$LocalizedErrorMessageImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_platform_interface/lib/src/models/financial_connections.freezed.dart b/packages/stripe_platform_interface/lib/src/models/financial_connections.freezed.dart index a2ea83ba..a670d49b 100644 --- a/packages/stripe_platform_interface/lib/src/models/financial_connections.freezed.dart +++ b/packages/stripe_platform_interface/lib/src/models/financial_connections.freezed.dart @@ -23,12 +23,8 @@ FinancialConnectionSessionResult _$FinancialConnectionSessionResultFromJson( mixin _$FinancialConnectionSessionResult { FinancialConnectionSession get session => throw _privateConstructorUsedError; - /// Serializes this FinancialConnectionSessionResult to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of FinancialConnectionSessionResult - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $FinancialConnectionSessionResultCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -57,8 +53,6 @@ class _$FinancialConnectionSessionResultCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of FinancialConnectionSessionResult - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -72,8 +66,6 @@ class _$FinancialConnectionSessionResultCopyWithImpl<$Res, ) as $Val); } - /// Create a copy of FinancialConnectionSessionResult - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $FinancialConnectionSessionCopyWith<$Res> get session { @@ -108,8 +100,6 @@ class __$$FinancialConnectionSessionResultImplCopyWithImpl<$Res> $Res Function(_$FinancialConnectionSessionResultImpl) _then) : super(_value, _then); - /// Create a copy of FinancialConnectionSessionResult - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -151,13 +141,11 @@ class _$FinancialConnectionSessionResultImpl (identical(other.session, session) || other.session == session)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, session); - /// Create a copy of FinancialConnectionSessionResult - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$FinancialConnectionSessionResultImplCopyWith< @@ -185,11 +173,8 @@ abstract class _FinancialConnectionSessionResult @override FinancialConnectionSession get session; - - /// Create a copy of FinancialConnectionSessionResult - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$FinancialConnectionSessionResultImplCopyWith< _$FinancialConnectionSessionResultImpl> get copyWith => throw _privateConstructorUsedError; @@ -206,12 +191,8 @@ mixin _$FinancialConnectionTokenResult { FinancialConnectionBankAccountToken get token => throw _privateConstructorUsedError; - /// Serializes this FinancialConnectionTokenResult to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of FinancialConnectionTokenResult - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $FinancialConnectionTokenResultCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -243,8 +224,6 @@ class _$FinancialConnectionTokenResultCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of FinancialConnectionTokenResult - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -263,8 +242,6 @@ class _$FinancialConnectionTokenResultCopyWithImpl<$Res, ) as $Val); } - /// Create a copy of FinancialConnectionTokenResult - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $FinancialConnectionSessionCopyWith<$Res> get session { @@ -273,8 +250,6 @@ class _$FinancialConnectionTokenResultCopyWithImpl<$Res, }); } - /// Create a copy of FinancialConnectionTokenResult - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $FinancialConnectionBankAccountTokenCopyWith<$Res> get token { @@ -314,8 +289,6 @@ class __$$FinancialConnectionTokenResultImplCopyWithImpl<$Res> $Res Function(_$FinancialConnectionTokenResultImpl) _then) : super(_value, _then); - /// Create a copy of FinancialConnectionTokenResult - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -366,13 +339,11 @@ class _$FinancialConnectionTokenResultImpl (identical(other.token, token) || other.token == token)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, session, token); - /// Create a copy of FinancialConnectionTokenResult - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$FinancialConnectionTokenResultImplCopyWith< @@ -402,11 +373,8 @@ abstract class _FinancialConnectionTokenResult FinancialConnectionSession get session; @override FinancialConnectionBankAccountToken get token; - - /// Create a copy of FinancialConnectionTokenResult - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$FinancialConnectionTokenResultImplCopyWith< _$FinancialConnectionTokenResultImpl> get copyWith => throw _privateConstructorUsedError; @@ -432,12 +400,8 @@ mixin _$FinancialConnectionSession { List get accounts => throw _privateConstructorUsedError; - /// Serializes this FinancialConnectionSession to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of FinancialConnectionSession - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $FinancialConnectionSessionCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -467,8 +431,6 @@ class _$FinancialConnectionSessionCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of FinancialConnectionSession - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -524,8 +486,6 @@ class __$$FinancialConnectionSessionImplCopyWithImpl<$Res> $Res Function(_$FinancialConnectionSessionImpl) _then) : super(_value, _then); - /// Create a copy of FinancialConnectionSession - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -611,14 +571,12 @@ class _$FinancialConnectionSessionImpl implements _FinancialConnectionSession { const DeepCollectionEquality().equals(other._accounts, _accounts)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, id, clientSecret, livemode, const DeepCollectionEquality().hash(_accounts)); - /// Create a copy of FinancialConnectionSession - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$FinancialConnectionSessionImplCopyWith<_$FinancialConnectionSessionImpl> @@ -645,26 +603,24 @@ abstract class _FinancialConnectionSession factory _FinancialConnectionSession.fromJson(Map json) = _$FinancialConnectionSessionImpl.fromJson; - /// Unique id for this session @override + + /// Unique id for this session String get id; + @override /// The client secret of the session - @override String get clientSecret; + @override /// When `true` the object exists in livemode and when false the object exists in test mode. - @override bool get livemode; + @override /// The accounts that were collected as part of this session - @override List get accounts; - - /// Create a copy of FinancialConnectionSession - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$FinancialConnectionSessionImplCopyWith<_$FinancialConnectionSessionImpl> get copyWith => throw _privateConstructorUsedError; } @@ -691,12 +647,8 @@ mixin _$FinancialConnectionBankAccountToken { /// The Unix timestamp (in milliseconds) of the date this token was created int? get created => throw _privateConstructorUsedError; - /// Serializes this FinancialConnectionBankAccountToken to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of FinancialConnectionBankAccountToken - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $FinancialConnectionBankAccountTokenCopyWith< FinancialConnectionBankAccountToken> get copyWith => throw _privateConstructorUsedError; @@ -731,8 +683,6 @@ class _$FinancialConnectionBankAccountTokenCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of FinancialConnectionBankAccountToken - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -766,8 +716,6 @@ class _$FinancialConnectionBankAccountTokenCopyWithImpl<$Res, ) as $Val); } - /// Create a copy of FinancialConnectionBankAccountToken - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $BankAccountCopyWith<$Res>? get bankAccount { @@ -811,8 +759,6 @@ class __$$FinancialConnectionBankAccountTokenImplCopyWithImpl<$Res> $Res Function(_$FinancialConnectionBankAccountTokenImpl) _then) : super(_value, _then); - /// Create a copy of FinancialConnectionBankAccountToken - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -902,14 +848,12 @@ class _$FinancialConnectionBankAccountTokenImpl (identical(other.created, created) || other.created == created)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, bankAccount, livemode, id, used, created); - /// Create a copy of FinancialConnectionBankAccountToken - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$FinancialConnectionBankAccountTokenImplCopyWith< @@ -938,30 +882,28 @@ abstract class _FinancialConnectionBankAccountToken Map json) = _$FinancialConnectionBankAccountTokenImpl.fromJson; - /// Bamkaccount details @override + + /// Bamkaccount details BankAccount? get bankAccount; + @override /// When `true` the object exists in livemode and when false the object exists in test mode. - @override bool get livemode; + @override /// Unique id for this token. - @override String? get id; + @override /// whether or not this token has been used - @override bool get used; + @override /// The Unix timestamp (in milliseconds) of the date this token was created - @override int? get created; - - /// Create a copy of FinancialConnectionBankAccountToken - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$FinancialConnectionBankAccountTokenImplCopyWith< _$FinancialConnectionBankAccountTokenImpl> get copyWith => throw _privateConstructorUsedError; @@ -1015,12 +957,8 @@ mixin _$FinancialConnectionAccount { List get supportedPaymentMethodTypes => throw _privateConstructorUsedError; - /// Serializes this FinancialConnectionAccount to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of FinancialConnectionAccount - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $FinancialConnectionAccountCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -1062,8 +1000,6 @@ class _$FinancialConnectionAccountCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of FinancialConnectionAccount - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1137,8 +1073,6 @@ class _$FinancialConnectionAccountCopyWithImpl<$Res, ) as $Val); } - /// Create a copy of FinancialConnectionAccount - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $AccountBalanceCopyWith<$Res>? get balance { @@ -1151,8 +1085,6 @@ class _$FinancialConnectionAccountCopyWithImpl<$Res, }); } - /// Create a copy of FinancialConnectionAccount - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $BalanceRefreshCopyWith<$Res>? get balanceRefresh { @@ -1206,8 +1138,6 @@ class __$$FinancialConnectionAccountImplCopyWithImpl<$Res> $Res Function(_$FinancialConnectionAccountImpl) _then) : super(_value, _then); - /// Create a copy of FinancialConnectionAccount - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1412,7 +1342,7 @@ class _$FinancialConnectionAccountImpl implements _FinancialConnectionAccount { _supportedPaymentMethodTypes)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash( runtimeType, @@ -1430,9 +1360,7 @@ class _$FinancialConnectionAccountImpl implements _FinancialConnectionAccount { const DeepCollectionEquality().hash(_permissions), const DeepCollectionEquality().hash(_supportedPaymentMethodTypes)); - /// Create a copy of FinancialConnectionAccount - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$FinancialConnectionAccountImplCopyWith<_$FinancialConnectionAccountImpl> @@ -1468,62 +1396,60 @@ abstract class _FinancialConnectionAccount factory _FinancialConnectionAccount.fromJson(Map json) = _$FinancialConnectionAccountImpl.fromJson; - /// Unique id for this Financial connection account. @override + + /// Unique id for this Financial connection account. String get id; + @override /// Has the value true if the object exist in livemode. - @override bool get livemode; + @override /// display name of the account. - @override String? get displayName; + @override /// The current status of the account. - @override AccountStatus get status; + @override /// The name of the financial institution. - @override String get institutionName; + @override /// Last4 of the account number. - @override String? get last4; + @override /// Unix timestamp in milliseconds of the date this account was created. - @override int get created; + @override /// The balance of the account - @override AccountBalance? get balance; + @override /// The last balance refresh. - @override BalanceRefresh? get balanceRefresh; + @override /// The category of this account - @override AccountCategory get category; + @override /// The subcategory of this account, - @override AccountSubcategory get subcategory; + @override /// Permissions requested for accounts collected during this session. - @override List? get permissions; + @override /// Support payment method types for this account. - @override List get supportedPaymentMethodTypes; - - /// Create a copy of FinancialConnectionAccount - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$FinancialConnectionAccountImplCopyWith<_$FinancialConnectionAccountImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1540,12 +1466,8 @@ mixin _$BalanceRefresh { /// Unix timestamp (in milliseconds) of the time of the last refresh attempt. int get lastAttemptedAt => throw _privateConstructorUsedError; - /// Serializes this BalanceRefresh to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of BalanceRefresh - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $BalanceRefreshCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -1569,8 +1491,6 @@ class _$BalanceRefreshCopyWithImpl<$Res, $Val extends BalanceRefresh> // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of BalanceRefresh - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1609,8 +1529,6 @@ class __$$BalanceRefreshImplCopyWithImpl<$Res> _$BalanceRefreshImpl _value, $Res Function(_$BalanceRefreshImpl) _then) : super(_value, _then); - /// Create a copy of BalanceRefresh - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1663,13 +1581,11 @@ class _$BalanceRefreshImpl implements _BalanceRefresh { other.lastAttemptedAt == lastAttemptedAt)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, status, lastAttemptedAt); - /// Create a copy of BalanceRefresh - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$BalanceRefreshImplCopyWith<_$BalanceRefreshImpl> get copyWith => @@ -1692,18 +1608,16 @@ abstract class _BalanceRefresh implements BalanceRefresh { factory _BalanceRefresh.fromJson(Map json) = _$BalanceRefreshImpl.fromJson; - /// Status of the balance refresh attempt @override + + /// Status of the balance refresh attempt BalanceRefreshStatus get status; + @override /// Unix timestamp (in milliseconds) of the time of the last refresh attempt. - @override int get lastAttemptedAt; - - /// Create a copy of BalanceRefresh - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$BalanceRefreshImplCopyWith<_$BalanceRefreshImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1739,12 +1653,8 @@ mixin _$AccountBalance { /// Each value is a integer amount. A positive amount indicates money owed to the account holder. A negative amount indicates money owed by the account holder. Map? get current => throw _privateConstructorUsedError; - /// Serializes this AccountBalance to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of AccountBalance - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $AccountBalanceCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -1773,8 +1683,6 @@ class _$AccountBalanceCopyWithImpl<$Res, $Val extends AccountBalance> // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of AccountBalance - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1833,8 +1741,6 @@ class __$$AccountBalanceImplCopyWithImpl<$Res> _$AccountBalanceImpl _value, $Res Function(_$AccountBalanceImpl) _then) : super(_value, _then); - /// Create a copy of AccountBalance - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1970,7 +1876,7 @@ class _$AccountBalanceImpl implements _AccountBalance { const DeepCollectionEquality().equals(other._current, _current)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash( runtimeType, @@ -1980,9 +1886,7 @@ class _$AccountBalanceImpl implements _AccountBalance { const DeepCollectionEquality().hash(_credit), const DeepCollectionEquality().hash(_current)); - /// Create a copy of AccountBalance - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$AccountBalanceImplCopyWith<_$AccountBalanceImpl> get copyWith => @@ -2008,40 +1912,38 @@ abstract class _AccountBalance implements AccountBalance { factory _AccountBalance.fromJson(Map json) = _$AccountBalanceImpl.fromJson; - /// Unix timestamp in milliseconds of time the external instition calculated this balance. @override + + /// Unix timestamp in milliseconds of time the external instition calculated this balance. int get asOf; + @override /// The type of balance. - @override BalanceType get type; + @override /// The funds available to the account holder. /// /// Typically this is the current balance less any holds. /// Each key is a three letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html) in lowercase. /// Each value is an integer amount. A positive amount indicates money owed to the account holder. A negative amount indicates money owed by the account holder. - @override Map? get cash; + @override /// The credit that has been used by the account holder. /// /// Each key is a three letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html) in lowercase. /// Each value is a integer amount. A positive amount indicates money owed to the account holder. A negative amount indicates money owed by the account holder. - @override Map? get credit; + @override /// The balances owed to (or by) the account holder. /// /// Each key is a three letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html) in lowercase. /// Each value is a integer amount. A positive amount indicates money owed to the account holder. A negative amount indicates money owed by the account holder. - @override Map? get current; - - /// Create a copy of AccountBalance - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$AccountBalanceImplCopyWith<_$AccountBalanceImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_platform_interface/lib/src/models/google_pay.freezed.dart b/packages/stripe_platform_interface/lib/src/models/google_pay.freezed.dart index a7c8abed..819b51a2 100644 --- a/packages/stripe_platform_interface/lib/src/models/google_pay.freezed.dart +++ b/packages/stripe_platform_interface/lib/src/models/google_pay.freezed.dart @@ -33,12 +33,8 @@ mixin _$PresentGooglePayParams { /// For more details see: https://developers.google.com/pay/api/android/reference/request-objects#TransactionInfo . String? get currencyCode => throw _privateConstructorUsedError; - /// Serializes this PresentGooglePayParams to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of PresentGooglePayParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $PresentGooglePayParamsCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -63,8 +59,6 @@ class _$PresentGooglePayParamsCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of PresentGooglePayParams - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -111,8 +105,6 @@ class __$$PresentGooglePayParamsImplCopyWithImpl<$Res> $Res Function(_$PresentGooglePayParamsImpl) _then) : super(_value, _then); - /// Create a copy of PresentGooglePayParams - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -183,14 +175,12 @@ class _$PresentGooglePayParamsImpl implements _PresentGooglePayParams { other.currencyCode == currencyCode)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, clientSecret, forSetupIntent, currencyCode); - /// Create a copy of PresentGooglePayParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$PresentGooglePayParamsImplCopyWith<_$PresentGooglePayParamsImpl> @@ -214,25 +204,23 @@ abstract class _PresentGooglePayParams implements PresentGooglePayParams { factory _PresentGooglePayParams.fromJson(Map json) = _$PresentGooglePayParamsImpl.fromJson; - /// The client is secret is used for handling the payment from the Client side. @override + + /// The client is secret is used for handling the payment from the Client side. String get clientSecret; + @override /// Determines whether to present Google Pay in order to confirm a [SetupIntent] /// or a [PaymentIntent]. - @override bool get forSetupIntent; + @override /// When forSetupIntent is `true` it is required to provide a currencyCode. /// /// For more details see: https://developers.google.com/pay/api/android/reference/request-objects#TransactionInfo . - @override String? get currencyCode; - - /// Create a copy of PresentGooglePayParams - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$PresentGooglePayParamsImplCopyWith<_$PresentGooglePayParamsImpl> get copyWith => throw _privateConstructorUsedError; } @@ -269,12 +257,8 @@ mixin _$GooglePayInitParams { /// 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. double? get amount => throw _privateConstructorUsedError; - /// Serializes this GooglePayInitParams to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of GooglePayInitParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $GooglePayInitParamsCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -308,8 +292,6 @@ class _$GooglePayInitParamsCopyWithImpl<$Res, $Val extends GooglePayInitParams> // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of GooglePayInitParams - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -358,8 +340,6 @@ class _$GooglePayInitParamsCopyWithImpl<$Res, $Val extends GooglePayInitParams> ) as $Val); } - /// Create a copy of GooglePayInitParams - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $BillingAddressConfigCopyWith<$Res>? get billingAddressConfig { @@ -404,8 +384,6 @@ class __$$GooglePayInitParamsImplCopyWithImpl<$Res> $Res Function(_$GooglePayInitParamsImpl) _then) : super(_value, _then); - /// Create a copy of GooglePayInitParams - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -535,7 +513,7 @@ class _$GooglePayInitParamsImpl implements _GooglePayInitParams { (identical(other.amount, amount) || other.amount == amount)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash( runtimeType, @@ -548,9 +526,7 @@ class _$GooglePayInitParamsImpl implements _GooglePayInitParams { label, amount); - /// Create a copy of GooglePayInitParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$GooglePayInitParamsImplCopyWith<_$GooglePayInitParamsImpl> get copyWith => @@ -579,43 +555,41 @@ abstract class _GooglePayInitParams implements GooglePayInitParams { factory _GooglePayInitParams.fromJson(Map json) = _$GooglePayInitParamsImpl.fromJson; - /// Merchant name @override + + /// Merchant name String get merchantName; + @override /// ISO country code of the merchant - @override String get countryCode; + @override /// Flag to use test environment or live environment. - @override bool get testEnv; + @override /// Configuration regarding collection of billing address, - @override BillingAddressConfig? get billingAddressConfig; + @override /// Flag to indicate wheter Google Pay should collect email of the customer. - @override bool get isEmailRequired; + @override /// When `true` Google Pay is considered ready if the customers's Google Pay /// wallet has existing payment methods. - @override bool get existingPaymentMethodRequired; + @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 double? get amount; - - /// Create a copy of GooglePayInitParams - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$GooglePayInitParamsImplCopyWith<_$GooglePayInitParamsImpl> get copyWith => throw _privateConstructorUsedError; } @@ -637,12 +611,8 @@ mixin _$BillingAddressConfig { /// the transaction. bool? get isPhoneNumberRequired => throw _privateConstructorUsedError; - /// Serializes this BillingAddressConfig to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of BillingAddressConfig - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $BillingAddressConfigCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -670,8 +640,6 @@ class _$BillingAddressConfigCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of BillingAddressConfig - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -718,8 +686,6 @@ class __$$BillingAddressConfigImplCopyWithImpl<$Res> $Res Function(_$BillingAddressConfigImpl) _then) : super(_value, _then); - /// Create a copy of BillingAddressConfig - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -785,14 +751,12 @@ class _$BillingAddressConfigImpl implements _BillingAddressConfig { other.isPhoneNumberRequired == isPhoneNumberRequired)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, isRequired, format, isPhoneNumberRequired); - /// Create a copy of BillingAddressConfig - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$BillingAddressConfigImplCopyWith<_$BillingAddressConfigImpl> @@ -817,24 +781,22 @@ abstract class _BillingAddressConfig implements BillingAddressConfig { factory _BillingAddressConfig.fromJson(Map json) = _$BillingAddressConfigImpl.fromJson; + @override + /// If `true` Google pay requires a Billing address in order to process the /// payment. - @override bool? get isRequired; + @override /// Desired format - @override BillingAddressFormat? get format; + @override /// If `true` customer needs to provide a phonenummer in order to process /// the transaction. - @override bool? get isPhoneNumberRequired; - - /// Create a copy of BillingAddressConfig - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$BillingAddressConfigImplCopyWith<_$BillingAddressConfigImpl> get copyWith => throw _privateConstructorUsedError; } @@ -857,12 +819,8 @@ mixin _$CreateGooglePayPaymentParams { /// in the smallest currency unit (e.g. cents for US dollar). int get amount => throw _privateConstructorUsedError; - /// Serializes this CreateGooglePayPaymentParams to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of CreateGooglePayPaymentParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $CreateGooglePayPaymentParamsCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -889,8 +847,6 @@ class _$CreateGooglePayPaymentParamsCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of CreateGooglePayPaymentParams - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -932,8 +888,6 @@ class __$$CreateGooglePayPaymentParamsImplCopyWithImpl<$Res> $Res Function(_$CreateGooglePayPaymentParamsImpl) _then) : super(_value, _then); - /// Create a copy of CreateGooglePayPaymentParams - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -993,13 +947,11 @@ class _$CreateGooglePayPaymentParamsImpl (identical(other.amount, amount) || other.amount == amount)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, currencyCode, amount); - /// Create a copy of CreateGooglePayPaymentParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$CreateGooglePayPaymentParamsImplCopyWith< @@ -1024,23 +976,21 @@ abstract class _CreateGooglePayPaymentParams factory _CreateGooglePayPaymentParams.fromJson(Map json) = _$CreateGooglePayPaymentParamsImpl.fromJson; + @override + /// ISO 4217 alphabetic currency code. /// /// For example: `USD` - @override String get currencyCode; + @override /// Amount intended to be collected. /// /// The amount has to be a positive zero-digit integer representing the charge /// in the smallest currency unit (e.g. cents for US dollar). - @override int get amount; - - /// Create a copy of CreateGooglePayPaymentParams - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$CreateGooglePayPaymentParamsImplCopyWith< _$CreateGooglePayPaymentParamsImpl> get copyWith => throw _privateConstructorUsedError; @@ -1068,12 +1018,8 @@ mixin _$IsGooglePaySupportedParams { //NFC is required for paying in stores. Defaults to `true`. Set this to `false` bool get supportsTapToPay => throw _privateConstructorUsedError; - /// Serializes this IsGooglePaySupportedParams to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of IsGooglePaySupportedParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $IsGooglePaySupportedParamsCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -1102,8 +1048,6 @@ class _$IsGooglePaySupportedParamsCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of IsGooglePaySupportedParams - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1153,8 +1097,6 @@ class __$$IsGooglePaySupportedParamsImplCopyWithImpl<$Res> $Res Function(_$IsGooglePaySupportedParamsImpl) _then) : super(_value, _then); - /// Create a copy of IsGooglePaySupportedParams - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1232,14 +1174,12 @@ class _$IsGooglePaySupportedParamsImpl implements _IsGooglePaySupportedParams { other.supportsTapToPay == supportsTapToPay)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash( runtimeType, testEnv, existingPaymentMethodRequired, supportsTapToPay); - /// Create a copy of IsGooglePaySupportedParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$IsGooglePaySupportedParamsImplCopyWith<_$IsGooglePaySupportedParamsImpl> @@ -1264,28 +1204,25 @@ abstract class _IsGooglePaySupportedParams factory _IsGooglePaySupportedParams.fromJson(Map json) = _$IsGooglePaySupportedParamsImpl.fromJson; + @override + /// Flag to use test environment or live environment. /// /// Defaults to `false`. - @override bool get testEnv; + @override /// When set to true Google pay is only considered ready in case the /// customers google Pay wallet has an existing payment method configured. /// /// Defaults to `false`. - @override - bool - get existingPaymentMethodRequired; // When set to true it allow users without NFC-enabled devices to add cards to the wallet. + bool get existingPaymentMethodRequired; + @override // When set to true it allow users without NFC-enabled devices to add cards to the wallet. // //NFC is required for paying in stores. Defaults to `true`. Set this to `false` - @override bool get supportsTapToPay; - - /// Create a copy of IsGooglePaySupportedParams - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$IsGooglePaySupportedParamsImplCopyWith<_$IsGooglePaySupportedParamsImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_platform_interface/lib/src/models/intent_creation_callback_params.freezed.dart b/packages/stripe_platform_interface/lib/src/models/intent_creation_callback_params.freezed.dart index d8b3c8c1..35d65746 100644 --- a/packages/stripe_platform_interface/lib/src/models/intent_creation_callback_params.freezed.dart +++ b/packages/stripe_platform_interface/lib/src/models/intent_creation_callback_params.freezed.dart @@ -27,12 +27,8 @@ mixin _$IntentCreationCallbackParams { /// Error that occurred during the creation of the payment intent or setup intent. StripeException? get error => throw _privateConstructorUsedError; - /// Serializes this IntentCreationCallbackParams to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of IntentCreationCallbackParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $IntentCreationCallbackParamsCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -61,8 +57,6 @@ class _$IntentCreationCallbackParamsCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of IntentCreationCallbackParams - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -81,8 +75,6 @@ class _$IntentCreationCallbackParamsCopyWithImpl<$Res, ) as $Val); } - /// Create a copy of IntentCreationCallbackParams - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $StripeExceptionCopyWith<$Res>? get error { @@ -121,8 +113,6 @@ class __$$IntentCreationCallbackParamsImplCopyWithImpl<$Res> $Res Function(_$IntentCreationCallbackParamsImpl) _then) : super(_value, _then); - /// Create a copy of IntentCreationCallbackParams - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -176,13 +166,11 @@ class _$IntentCreationCallbackParamsImpl (identical(other.error, error) || other.error == error)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, clientSecret, error); - /// Create a copy of IntentCreationCallbackParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$IntentCreationCallbackParamsImplCopyWith< @@ -207,18 +195,16 @@ abstract class _IntentCreationCallbackParams factory _IntentCreationCallbackParams.fromJson(Map json) = _$IntentCreationCallbackParamsImpl.fromJson; - /// Client secret of the payment intent or setup intent. @override + + /// Client secret of the payment intent or setup intent. String? get clientSecret; + @override /// Error that occurred during the creation of the payment intent or setup intent. - @override StripeException? get error; - - /// Create a copy of IntentCreationCallbackParams - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$IntentCreationCallbackParamsImplCopyWith< _$IntentCreationCallbackParamsImpl> get copyWith => throw _privateConstructorUsedError; diff --git a/packages/stripe_platform_interface/lib/src/models/next_action.freezed.dart b/packages/stripe_platform_interface/lib/src/models/next_action.freezed.dart index af8fca23..c8277ea7 100644 --- a/packages/stripe_platform_interface/lib/src/models/next_action.freezed.dart +++ b/packages/stripe_platform_interface/lib/src/models/next_action.freezed.dart @@ -105,8 +105,6 @@ mixin _$NextAction { required TResult orElse(), }) => throw _privateConstructorUsedError; - - /// Serializes this NextAction to a JSON map. Map toJson() => throw _privateConstructorUsedError; } @@ -126,9 +124,6 @@ class _$NextActionCopyWithImpl<$Res, $Val extends NextAction> final $Val _value; // ignore: unused_field final $Res Function($Val) _then; - - /// Create a copy of NextAction - /// with the given fields replaced by the non-null parameter values. } /// @nodoc @@ -148,8 +143,6 @@ class __$$NextActionRedirectImplCopyWithImpl<$Res> $Res Function(_$NextActionRedirectImpl) _then) : super(_value, _then); - /// Create a copy of NextAction - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -195,13 +188,11 @@ class _$NextActionRedirectImpl implements _NextActionRedirect { other.redirectUrl == redirectUrl)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, redirectUrl); - /// Create a copy of NextAction - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$NextActionRedirectImplCopyWith<_$NextActionRedirectImpl> get copyWith => @@ -319,10 +310,7 @@ abstract class _NextActionRedirect implements NextAction { /// Url to redirect to String? get redirectUrl; - - /// Create a copy of NextAction - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$NextActionRedirectImplCopyWith<_$NextActionRedirectImpl> get copyWith => throw _privateConstructorUsedError; } @@ -344,8 +332,6 @@ class __$$NextActionOxxoImplCopyWithImpl<$Res> _$NextActionOxxoImpl _value, $Res Function(_$NextActionOxxoImpl) _then) : super(_value, _then); - /// Create a copy of NextAction - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -417,14 +403,12 @@ class _$NextActionOxxoImpl implements _NextActionOxxo { other.voucherNumber == voucherNumber)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, expiration, voucherURL, voucherNumber); - /// Create a copy of NextAction - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$NextActionOxxoImplCopyWith<_$NextActionOxxoImpl> get copyWith => @@ -550,10 +534,7 @@ abstract class _NextActionOxxo implements NextAction { /// Oxxo reference number String? get voucherNumber; - - /// Create a copy of NextAction - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$NextActionOxxoImplCopyWith<_$NextActionOxxoImpl> get copyWith => throw _privateConstructorUsedError; } @@ -577,8 +558,6 @@ class __$$NextActionWeChatRedirectImplCopyWithImpl<$Res> $Res Function(_$NextActionWeChatRedirectImpl) _then) : super(_value, _then); - /// Create a copy of NextAction - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -624,13 +603,11 @@ class _$NextActionWeChatRedirectImpl implements _NextActionWeChatRedirect { other.redirectUrl == redirectUrl)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, redirectUrl); - /// Create a copy of NextAction - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$NextActionWeChatRedirectImplCopyWith<_$NextActionWeChatRedirectImpl> @@ -748,10 +725,7 @@ abstract class _NextActionWeChatRedirect implements NextAction { /// Url to the Qr code. String? get redirectUrl; - - /// Create a copy of NextAction - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$NextActionWeChatRedirectImplCopyWith<_$NextActionWeChatRedirectImpl> get copyWith => throw _privateConstructorUsedError; } @@ -776,8 +750,6 @@ class __$$NextActionMicroDepositsImplCopyWithImpl<$Res> $Res Function(_$NextActionMicroDepositsImpl) _then) : super(_value, _then); - /// Create a copy of NextAction - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -849,14 +821,12 @@ class _$NextActionMicroDepositsImpl implements _NextActionMicroDeposits { other.microdepositType == microdepositType)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, arrivalDate, redirectUrl, microdepositType); - /// Create a copy of NextAction - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$NextActionMicroDepositsImplCopyWith<_$NextActionMicroDepositsImpl> @@ -984,10 +954,7 @@ abstract class _NextActionMicroDeposits implements NextAction { /// The type of the microdeposit sent to the customer. String? get microdepositType; - - /// Create a copy of NextAction - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$NextActionMicroDepositsImplCopyWith<_$NextActionMicroDepositsImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1009,8 +976,6 @@ class __$$NextActionMultiBancoImplCopyWithImpl<$Res> $Res Function(_$NextActionMultiBancoImpl) _then) : super(_value, _then); - /// Create a copy of NextAction - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1056,13 +1021,11 @@ class _$NextActionMultiBancoImpl implements _NextActionMultiBanco { other.voucherURL == voucherURL)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, voucherURL); - /// Create a copy of NextAction - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$NextActionMultiBancoImplCopyWith<_$NextActionMultiBancoImpl> @@ -1181,10 +1144,7 @@ abstract class _NextActionMultiBanco implements NextAction { /// The URL for the hosted multibanco voucher page, which allows customers to view and print an multibanco voucher. String? get voucherURL; - - /// Create a copy of NextAction - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$NextActionMultiBancoImplCopyWith<_$NextActionMultiBancoImpl> 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 112b6bde..49a747da 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 5ea59f6b..468af102 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 e997ac22..74175f91 100644 --- a/packages/stripe_platform_interface/lib/src/models/payment_sheet.dart +++ b/packages/stripe_platform_interface/lib/src/models/payment_sheet.dart @@ -213,9 +213,12 @@ class PaymentSheetGooglePay with _$PaymentSheetGooglePay { String? amount, /// The Google Pay button type to use. Set to "Pay" by default. + @JsonKey(toJson: PaymentSheetGooglePay.platformButtonTypeToJson) PlatformButtonType? buttonType, }) = _PaymentSheetGooglePay; + static int? platformButtonTypeToJson(PlatformButtonType? type) => type?.id; + factory PaymentSheetGooglePay.fromJson(Map json) => _$PaymentSheetGooglePayFromJson(json); } 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 1f43aff3..f254fa83 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 @@ -119,12 +119,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; } @@ -181,8 +177,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({ @@ -294,8 +288,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 +301,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 +313,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 +325,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 +337,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 +349,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>? @@ -438,8 +420,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({ @@ -780,7 +760,7 @@ class _$SetupParametersImpl implements _SetupParameters { const DeepCollectionEquality().equals(other._preferredNetworks, _preferredNetworks)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hashAll([ runtimeType, @@ -806,9 +786,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 => @@ -852,76 +830,78 @@ 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 /// 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 +909,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 +969,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 +1000,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 +1023,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 +1058,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 +1141,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 +1171,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 +1260,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 +1285,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 +1327,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 +1406,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 +1511,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 +1543,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 +1599,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 +1699,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 +1736,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 +1770,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 +1803,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 +1844,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 +1950,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 +1960,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 +1988,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; } @@ -2115,14 +2042,11 @@ mixin _$PaymentSheetGooglePay { String? get amount => throw _privateConstructorUsedError; /// The Google Pay button type to use. Set to "Pay" by default. + @JsonKey(toJson: PaymentSheetGooglePay.platformButtonTypeToJson) 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; } @@ -2139,6 +2063,7 @@ abstract class $PaymentSheetGooglePayCopyWith<$Res> { bool testEnv, String? label, String? amount, + @JsonKey(toJson: PaymentSheetGooglePay.platformButtonTypeToJson) PlatformButtonType? buttonType}); } @@ -2153,8 +2078,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({ @@ -2209,6 +2132,7 @@ abstract class _$$PaymentSheetGooglePayImplCopyWith<$Res> bool testEnv, String? label, String? amount, + @JsonKey(toJson: PaymentSheetGooglePay.platformButtonTypeToJson) PlatformButtonType? buttonType}); } @@ -2221,8 +2145,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({ @@ -2272,6 +2194,7 @@ class _$PaymentSheetGooglePayImpl implements _PaymentSheetGooglePay { this.testEnv = false, this.label, this.amount, + @JsonKey(toJson: PaymentSheetGooglePay.platformButtonTypeToJson) this.buttonType}); factory _$PaymentSheetGooglePayImpl.fromJson(Map json) => @@ -2300,6 +2223,7 @@ class _$PaymentSheetGooglePayImpl implements _PaymentSheetGooglePay { /// The Google Pay button type to use. Set to "Pay" by default. @override + @JsonKey(toJson: PaymentSheetGooglePay.platformButtonTypeToJson) final PlatformButtonType? buttonType; @override @@ -2323,14 +2247,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> @@ -2352,39 +2274,39 @@ abstract class _PaymentSheetGooglePay implements PaymentSheetGooglePay { final bool testEnv, final String? label, final String? amount, + @JsonKey(toJson: PaymentSheetGooglePay.platformButtonTypeToJson) final PlatformButtonType? buttonType}) = _$PaymentSheetGooglePayImpl; 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 + @JsonKey(toJson: PaymentSheetGooglePay.platformButtonTypeToJson) 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 +2329,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 +2362,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 +2385,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 +2397,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 +2409,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 +2455,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 +2517,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 +2546,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 +2619,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 +2669,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 +2777,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 +2962,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 +2978,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 +3023,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 +3104,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 +3134,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 +3157,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 +3195,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 +3258,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 +3287,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 +3322,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 +3354,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 +3377,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 +3419,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 +3484,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 +3513,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 +3545,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 +3571,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 +3612,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 +3662,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 +3688,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 +3717,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 +3751,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 +3769,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 +3782,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 +3825,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 +3877,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 +3908,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 +3939,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 +3972,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 +3995,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 +4036,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 +4101,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 +4131,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 +4165,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 +4198,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 +4216,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 +4229,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 +4272,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 +4324,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 +4354,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 +4388,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 +4423,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 +4475,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 +4545,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 +4579,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 +4620,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 +4648,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 +4687,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 +4746,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 +4773,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 +4786,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 +4806,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 +4833,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 +4869,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 +4913,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 +4940,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 +4966,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 +4992,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 +5033,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 +5083,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 +5110,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 +5156,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 +5190,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 +5251,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 +5351,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 +5386,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 a001e075..9c5c4177 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 @@ -245,7 +245,8 @@ Map _$$PaymentSheetGooglePayImplToJson( 'testEnv': instance.testEnv, 'label': instance.label, 'amount': instance.amount, - 'buttonType': _$PlatformButtonTypeEnumMap[instance.buttonType], + 'buttonType': + PaymentSheetGooglePay.platformButtonTypeToJson(instance.buttonType), }; _$PaymentSheetAppearanceImpl _$$PaymentSheetAppearanceImplFromJson( 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 99b44138..f83fcd43 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/push_provisioning.freezed.dart b/packages/stripe_platform_interface/lib/src/models/push_provisioning.freezed.dart index 44c5c763..54905cec 100644 --- a/packages/stripe_platform_interface/lib/src/models/push_provisioning.freezed.dart +++ b/packages/stripe_platform_interface/lib/src/models/push_provisioning.freezed.dart @@ -44,12 +44,8 @@ mixin _$GooglePayCardToken { /// Deprecated. Use fpanLastFour or dpanLastFour., String get cardLastFour => throw _privateConstructorUsedError; - /// Serializes this GooglePayCardToken to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of GooglePayCardToken - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $GooglePayCardTokenCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -81,8 +77,6 @@ class _$GooglePayCardTokenCopyWithImpl<$Res, $Val extends GooglePayCardToken> // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of GooglePayCardToken - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -159,8 +153,6 @@ class __$$GooglePayCardTokenImplCopyWithImpl<$Res> $Res Function(_$GooglePayCardTokenImpl) _then) : super(_value, _then); - /// Create a copy of GooglePayCardToken - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -283,14 +275,12 @@ class _$GooglePayCardTokenImpl implements _GooglePayCardToken { other.cardLastFour == cardLastFour)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, id, fpanLastFour, dpanLastFour, network, serviceProvider, issuer, status, cardLastFour); - /// Create a copy of GooglePayCardToken - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$GooglePayCardTokenImplCopyWith<_$GooglePayCardTokenImpl> get copyWith => @@ -319,42 +309,40 @@ abstract class _GooglePayCardToken implements GooglePayCardToken { factory _GooglePayCardToken.fromJson(Map json) = _$GooglePayCardTokenImpl.fromJson; - /// The token reference ID., @override + + /// The token reference ID., String get id; + @override /// Last four digits of the FPAN, - @override String get fpanLastFour; + @override /// Last four digits of the DPAN, - @override String get dpanLastFour; + @override /// The network of the card. - @override int get network; + @override /// The service provider of the card. - @override int get serviceProvider; + @override /// The name of the issuer., - @override String get issuer; + @override /// The GooglePayCardTokenStatus., - @override GooglePayCardTokenStatus get status; + @override /// Deprecated. Use fpanLastFour or dpanLastFour., - @override String get cardLastFour; - - /// Create a copy of GooglePayCardToken - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$GooglePayCardTokenImplCopyWith<_$GooglePayCardTokenImpl> get copyWith => throw _privateConstructorUsedError; } @@ -368,12 +356,8 @@ mixin _$IsCardInWalletResult { bool get isInWallet => throw _privateConstructorUsedError; GooglePayCardToken? get token => throw _privateConstructorUsedError; - /// Serializes this IsCardInWalletResult to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of IsCardInWalletResult - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $IsCardInWalletResultCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -400,8 +384,6 @@ class _$IsCardInWalletResultCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of IsCardInWalletResult - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -420,8 +402,6 @@ class _$IsCardInWalletResultCopyWithImpl<$Res, ) as $Val); } - /// Create a copy of IsCardInWalletResult - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $GooglePayCardTokenCopyWith<$Res>? get token { @@ -457,8 +437,6 @@ class __$$IsCardInWalletResultImplCopyWithImpl<$Res> $Res Function(_$IsCardInWalletResultImpl) _then) : super(_value, _then); - /// Create a copy of IsCardInWalletResult - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -507,13 +485,11 @@ class _$IsCardInWalletResultImpl implements _IsCardInWalletResult { (identical(other.token, token) || other.token == token)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, isInWallet, token); - /// Create a copy of IsCardInWalletResult - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$IsCardInWalletResultImplCopyWith<_$IsCardInWalletResultImpl> @@ -541,11 +517,8 @@ abstract class _IsCardInWalletResult implements IsCardInWalletResult { bool get isInWallet; @override GooglePayCardToken? get token; - - /// Create a copy of IsCardInWalletResult - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$IsCardInWalletResultImplCopyWith<_$IsCardInWalletResultImpl> get copyWith => throw _privateConstructorUsedError; } @@ -560,12 +533,8 @@ mixin _$CanAddCardToWalletResult { bool get canAddCard => throw _privateConstructorUsedError; CanAddCardToDetails? get details => throw _privateConstructorUsedError; - /// Serializes this CanAddCardToWalletResult to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of CanAddCardToWalletResult - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $CanAddCardToWalletResultCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -592,8 +561,6 @@ class _$CanAddCardToWalletResultCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of CanAddCardToWalletResult - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -612,8 +579,6 @@ class _$CanAddCardToWalletResultCopyWithImpl<$Res, ) as $Val); } - /// Create a copy of CanAddCardToWalletResult - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $CanAddCardToDetailsCopyWith<$Res>? get details { @@ -652,8 +617,6 @@ class __$$CanAddCardToWalletResultImplCopyWithImpl<$Res> $Res Function(_$CanAddCardToWalletResultImpl) _then) : super(_value, _then); - /// Create a copy of CanAddCardToWalletResult - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -703,13 +666,11 @@ class _$CanAddCardToWalletResultImpl implements _CanAddCardToWalletResult { (identical(other.details, details) || other.details == details)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, canAddCard, details); - /// Create a copy of CanAddCardToWalletResult - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$CanAddCardToWalletResultImplCopyWith<_$CanAddCardToWalletResultImpl> @@ -736,11 +697,8 @@ abstract class _CanAddCardToWalletResult implements CanAddCardToWalletResult { bool get canAddCard; @override CanAddCardToDetails? get details; - - /// Create a copy of CanAddCardToWalletResult - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$CanAddCardToWalletResultImplCopyWith<_$CanAddCardToWalletResultImpl> get copyWith => throw _privateConstructorUsedError; } @@ -754,12 +712,8 @@ mixin _$CanAddCardToDetails { GooglePayCardToken? get token => throw _privateConstructorUsedError; CanAddCardToWalletStatus? get status => throw _privateConstructorUsedError; - /// Serializes this CanAddCardToDetails to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of CanAddCardToDetails - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $CanAddCardToDetailsCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -785,8 +739,6 @@ class _$CanAddCardToDetailsCopyWithImpl<$Res, $Val extends CanAddCardToDetails> // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of CanAddCardToDetails - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -805,8 +757,6 @@ class _$CanAddCardToDetailsCopyWithImpl<$Res, $Val extends CanAddCardToDetails> ) as $Val); } - /// Create a copy of CanAddCardToDetails - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $GooglePayCardTokenCopyWith<$Res>? get token { @@ -842,8 +792,6 @@ class __$$CanAddCardToDetailsImplCopyWithImpl<$Res> $Res Function(_$CanAddCardToDetailsImpl) _then) : super(_value, _then); - /// Create a copy of CanAddCardToDetails - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -891,13 +839,11 @@ class _$CanAddCardToDetailsImpl implements _CanAddCardToDetails { (identical(other.status, status) || other.status == status)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, token, status); - /// Create a copy of CanAddCardToDetails - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$CanAddCardToDetailsImplCopyWith<_$CanAddCardToDetailsImpl> get copyWith => @@ -924,11 +870,8 @@ abstract class _CanAddCardToDetails implements CanAddCardToDetails { GooglePayCardToken? get token; @override CanAddCardToWalletStatus? get status; - - /// Create a copy of CanAddCardToDetails - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$CanAddCardToDetailsImplCopyWith<_$CanAddCardToDetailsImpl> get copyWith => throw _privateConstructorUsedError; } @@ -955,12 +898,8 @@ mixin _$CanAddCardToWalletParams { /// Android only, defaults to `true`. Set this to `false` if you'd like to allow users without NFC-enabled devices to add cards to the wallet. NFC is required for paying in stores. bool? get supportsTapToPay => throw _privateConstructorUsedError; - /// Serializes this CanAddCardToWalletParams to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of CanAddCardToWalletParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $CanAddCardToWalletParamsCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -990,8 +929,6 @@ class _$CanAddCardToWalletParamsCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of CanAddCardToWalletParams - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1053,8 +990,6 @@ class __$$CanAddCardToWalletParamsImplCopyWithImpl<$Res> $Res Function(_$CanAddCardToWalletParamsImpl) _then) : super(_value, _then); - /// Create a copy of CanAddCardToWalletParams - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1145,14 +1080,12 @@ class _$CanAddCardToWalletParamsImpl implements _CanAddCardToWalletParams { other.supportsTapToPay == supportsTapToPay)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, primaryAccountIdentifier, cardLastFour, testEnv, hasPairedAppleWatch, supportsTapToPay); - /// Create a copy of CanAddCardToWalletParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$CanAddCardToWalletParamsImplCopyWith<_$CanAddCardToWalletParamsImpl> @@ -1178,30 +1111,28 @@ abstract class _CanAddCardToWalletParams implements CanAddCardToWalletParams { factory _CanAddCardToWalletParams.fromJson(Map json) = _$CanAddCardToWalletParamsImpl.fromJson; - ///The `primary_account_identifier` value from the issued card. Can be an empty string. @override + + ///The `primary_account_identifier` value from the issued card. Can be an empty string. String? get primaryAccountIdentifier; + @override /// Last 4 digits of the card number. Required for Android. - @override String get cardLastFour; + @override /// iOS only. Set this to `true` until shipping through TestFlight || App Store. If false, you must be using live cards, and have the proper iOS entitlement set up. See https://stripe.com/docs/issuing/cards/digital-wallets?platform=react-native#requesting-access-for-ios - @override bool? get testEnv; + @override /// iOS only. Set this to `true` if: your user has an Apple Watch device currently paired, and you want to check that device for the presence of the specified card. - @override bool? get hasPairedAppleWatch; + @override /// Android only, defaults to `true`. Set this to `false` if you'd like to allow users without NFC-enabled devices to add cards to the wallet. NFC is required for paying in stores. - @override bool? get supportsTapToPay; - - /// Create a copy of CanAddCardToWalletParams - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$CanAddCardToWalletParamsImplCopyWith<_$CanAddCardToWalletParamsImpl> 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 2a160874..b855ca03 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; } diff --git a/packages/stripe_platform_interface/lib/src/models/three_d_secure.freezed.dart b/packages/stripe_platform_interface/lib/src/models/three_d_secure.freezed.dart index dddb4c26..a9bdba0e 100644 --- a/packages/stripe_platform_interface/lib/src/models/three_d_secure.freezed.dart +++ b/packages/stripe_platform_interface/lib/src/models/three_d_secure.freezed.dart @@ -55,12 +55,8 @@ mixin _$ThreeDSecureConfigurationParams { ThreeDSecureButtonThemeData? get resendButton => throw _privateConstructorUsedError; - /// Serializes this ThreeDSecureConfigurationParams to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of ThreeDSecureConfigurationParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $ThreeDSecureConfigurationParamsCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -105,8 +101,6 @@ class _$ThreeDSecureConfigurationParamsCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of ThreeDSecureConfigurationParams - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -160,8 +154,6 @@ class _$ThreeDSecureConfigurationParamsCopyWithImpl<$Res, ) as $Val); } - /// Create a copy of ThreeDSecureConfigurationParams - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $ThreeDSecureNavigationBarThemeDataCopyWith<$Res> get navigationBar { @@ -171,8 +163,6 @@ class _$ThreeDSecureConfigurationParamsCopyWithImpl<$Res, }); } - /// Create a copy of ThreeDSecureConfigurationParams - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $ThreeDSecureLabelThemeDataCopyWith<$Res>? get label { @@ -185,8 +175,6 @@ class _$ThreeDSecureConfigurationParamsCopyWithImpl<$Res, }); } - /// Create a copy of ThreeDSecureConfigurationParams - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $ThreeDSecureTextFieldThemeDataCopyWith<$Res>? get textField { @@ -200,8 +188,6 @@ class _$ThreeDSecureConfigurationParamsCopyWithImpl<$Res, }); } - /// Create a copy of ThreeDSecureConfigurationParams - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $ThreeDSecureButtonThemeDataCopyWith<$Res>? get submitButton { @@ -215,8 +201,6 @@ class _$ThreeDSecureConfigurationParamsCopyWithImpl<$Res, }); } - /// Create a copy of ThreeDSecureConfigurationParams - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $ThreeDSecureButtonThemeDataCopyWith<$Res>? get cancelButton { @@ -230,8 +214,6 @@ class _$ThreeDSecureConfigurationParamsCopyWithImpl<$Res, }); } - /// Create a copy of ThreeDSecureConfigurationParams - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $ThreeDSecureButtonThemeDataCopyWith<$Res>? get nextButton { @@ -245,8 +227,6 @@ class _$ThreeDSecureConfigurationParamsCopyWithImpl<$Res, }); } - /// Create a copy of ThreeDSecureConfigurationParams - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $ThreeDSecureButtonThemeDataCopyWith<$Res>? get continueButton { @@ -260,8 +240,6 @@ class _$ThreeDSecureConfigurationParamsCopyWithImpl<$Res, }); } - /// Create a copy of ThreeDSecureConfigurationParams - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $ThreeDSecureButtonThemeDataCopyWith<$Res>? get resendButton { @@ -324,8 +302,6 @@ class __$$ThreeDSecureConfigurationParamsImplCopyWithImpl<$Res> $Res Function(_$ThreeDSecureConfigurationParamsImpl) _then) : super(_value, _then); - /// Create a copy of ThreeDSecureConfigurationParams - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -464,7 +440,7 @@ class _$ThreeDSecureConfigurationParamsImpl other.resendButton == resendButton)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash( runtimeType, @@ -478,9 +454,7 @@ class _$ThreeDSecureConfigurationParamsImpl continueButton, resendButton); - /// Create a copy of ThreeDSecureConfigurationParams - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$ThreeDSecureConfigurationParamsImplCopyWith< @@ -513,46 +487,44 @@ abstract class _ThreeDSecureConfigurationParams factory _ThreeDSecureConfigurationParams.fromJson(Map json) = _$ThreeDSecureConfigurationParamsImpl.fromJson; - /// Styling for the 3d secure navigation bar. @override + + /// Styling for the 3d secure navigation bar. ThreeDSecureNavigationBarThemeData get navigationBar; + @override /// Desired timeout in milliseconds. - @override int? get timeout; + @override /// Styling for the 3d secure label. - @override ThreeDSecureLabelThemeData? get label; + @override /// Styling for the 3d secure textfield. - @override ThreeDSecureTextFieldThemeData? get textField; + @override /// Styling for the 3d secure confirmation button. - @override ThreeDSecureButtonThemeData? get submitButton; + @override /// Styling for the 3d secure cancel button. - @override ThreeDSecureButtonThemeData? get cancelButton; + @override /// Styling for the 3d secure next button. - @override ThreeDSecureButtonThemeData? get nextButton; + @override /// Styling for the 3d secure continue button. - @override ThreeDSecureButtonThemeData? get continueButton; + @override /// Styling for the 3d secure resend button. - @override ThreeDSecureButtonThemeData? get resendButton; - - /// Create a copy of ThreeDSecureConfigurationParams - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$ThreeDSecureConfigurationParamsImplCopyWith< _$ThreeDSecureConfigurationParamsImpl> get copyWith => throw _privateConstructorUsedError; @@ -583,12 +555,8 @@ mixin _$ThreeDSecureNavigationBarThemeData { /// Font size of header text. double? get textFontSize => throw _privateConstructorUsedError; - /// Serializes this ThreeDSecureNavigationBarThemeData to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of ThreeDSecureNavigationBarThemeData - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $ThreeDSecureNavigationBarThemeDataCopyWith< ThreeDSecureNavigationBarThemeData> get copyWith => throw _privateConstructorUsedError; @@ -622,8 +590,6 @@ class _$ThreeDSecureNavigationBarThemeDataCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of ThreeDSecureNavigationBarThemeData - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -691,8 +657,6 @@ class __$$ThreeDSecureNavigationBarThemeDataImplCopyWithImpl<$Res> $Res Function(_$ThreeDSecureNavigationBarThemeDataImpl) _then) : super(_value, _then); - /// Create a copy of ThreeDSecureNavigationBarThemeData - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -797,14 +761,12 @@ class _$ThreeDSecureNavigationBarThemeDataImpl other.textFontSize == textFontSize)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, headerText, buttonText, textColor, statusBarColor, backgroundColor, textFontSize); - /// Create a copy of ThreeDSecureNavigationBarThemeData - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$ThreeDSecureNavigationBarThemeDataImplCopyWith< @@ -834,34 +796,32 @@ abstract class _ThreeDSecureNavigationBarThemeData Map json) = _$ThreeDSecureNavigationBarThemeDataImpl.fromJson; - /// Localised text of the header. @override + + /// Localised text of the header. String? get headerText; + @override /// localised text of the button - @override String? get buttonText; + @override /// Color in hex to display navigation bar header text. - @override String? get textColor; + @override /// Color in hex for the status bar. - @override String? get statusBarColor; + @override /// Color in hex to display navigation bar background. - @override String? get backgroundColor; + @override /// Font size of header text. - @override double? get textFontSize; - - /// Create a copy of ThreeDSecureNavigationBarThemeData - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$ThreeDSecureNavigationBarThemeDataImplCopyWith< _$ThreeDSecureNavigationBarThemeDataImpl> get copyWith => throw _privateConstructorUsedError; @@ -885,12 +845,8 @@ mixin _$ThreeDSecureLabelThemeData { throw _privateConstructorUsedError; // Font size for header. double? get headingFontSize => throw _privateConstructorUsedError; - /// Serializes this ThreeDSecureLabelThemeData to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of ThreeDSecureLabelThemeData - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $ThreeDSecureLabelThemeDataCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -920,8 +876,6 @@ class _$ThreeDSecureLabelThemeDataCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of ThreeDSecureLabelThemeData - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -977,8 +931,6 @@ class __$$ThreeDSecureLabelThemeDataImplCopyWithImpl<$Res> $Res Function(_$ThreeDSecureLabelThemeDataImpl) _then) : super(_value, _then); - /// Create a copy of ThreeDSecureLabelThemeData - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1057,14 +1009,12 @@ class _$ThreeDSecureLabelThemeDataImpl implements _ThreeDSecureLabelThemeData { other.headingFontSize == headingFontSize)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash( runtimeType, headingTextColor, textColor, textFontSize, headingFontSize); - /// Create a copy of ThreeDSecureLabelThemeData - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$ThreeDSecureLabelThemeDataImplCopyWith<_$ThreeDSecureLabelThemeDataImpl> @@ -1090,24 +1040,22 @@ abstract class _ThreeDSecureLabelThemeData factory _ThreeDSecureLabelThemeData.fromJson(Map json) = _$ThreeDSecureLabelThemeDataImpl.fromJson; - /// Color in hex for header text. @override + + /// Color in hex for header text. String? get headingTextColor; + @override /// Color in hex for label text. - @override String? get textColor; + @override /// Font size for label text. - @override - double? get textFontSize; // Font size for header. - @override + double? get textFontSize; + @override // Font size for header. double? get headingFontSize; - - /// Create a copy of ThreeDSecureLabelThemeData - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$ThreeDSecureLabelThemeDataImplCopyWith<_$ThreeDSecureLabelThemeDataImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1134,12 +1082,8 @@ mixin _$ThreeDSecureTextFieldThemeData { /// Font size for the textfield text. double? get textFontSize => throw _privateConstructorUsedError; - /// Serializes this ThreeDSecureTextFieldThemeData to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of ThreeDSecureTextFieldThemeData - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $ThreeDSecureTextFieldThemeDataCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -1171,8 +1115,6 @@ class _$ThreeDSecureTextFieldThemeDataCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of ThreeDSecureTextFieldThemeData - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1234,8 +1176,6 @@ class __$$ThreeDSecureTextFieldThemeDataImplCopyWithImpl<$Res> $Res Function(_$ThreeDSecureTextFieldThemeDataImpl) _then) : super(_value, _then); - /// Create a copy of ThreeDSecureTextFieldThemeData - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1328,14 +1268,12 @@ class _$ThreeDSecureTextFieldThemeDataImpl other.textFontSize == textFontSize)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, borderColor, borderWidth, cornerRadius, textColor, textFontSize); - /// Create a copy of ThreeDSecureTextFieldThemeData - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$ThreeDSecureTextFieldThemeDataImplCopyWith< @@ -1363,30 +1301,28 @@ abstract class _ThreeDSecureTextFieldThemeData factory _ThreeDSecureTextFieldThemeData.fromJson(Map json) = _$ThreeDSecureTextFieldThemeDataImpl.fromJson; - /// Color in hex for the border @override + + /// Color in hex for the border String? get borderColor; + @override /// Thickness of the textfield border. - @override double? get borderWidth; + @override /// Radius for the textfield corners. - @override double? get cornerRadius; + @override /// Color in hex for the textfield value. - @override String? get textColor; + @override /// Font size for the textfield text. - @override double? get textFontSize; - - /// Create a copy of ThreeDSecureTextFieldThemeData - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$ThreeDSecureTextFieldThemeDataImplCopyWith< _$ThreeDSecureTextFieldThemeDataImpl> get copyWith => throw _privateConstructorUsedError; @@ -1411,12 +1347,8 @@ mixin _$ThreeDSecureButtonThemeData { /// Font size for the button text. double? get textFontSize => throw _privateConstructorUsedError; - /// Serializes this ThreeDSecureButtonThemeData to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of ThreeDSecureButtonThemeData - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $ThreeDSecureButtonThemeDataCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -1447,8 +1379,6 @@ class _$ThreeDSecureButtonThemeDataCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of ThreeDSecureButtonThemeData - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1504,8 +1434,6 @@ class __$$ThreeDSecureButtonThemeDataImplCopyWithImpl<$Res> $Res Function(_$ThreeDSecureButtonThemeDataImpl) _then) : super(_value, _then); - /// Create a copy of ThreeDSecureButtonThemeData - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1586,14 +1514,12 @@ class _$ThreeDSecureButtonThemeDataImpl other.textFontSize == textFontSize)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash( runtimeType, backgroundColor, cornerRadius, textColor, textFontSize); - /// Create a copy of ThreeDSecureButtonThemeData - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$ThreeDSecureButtonThemeDataImplCopyWith<_$ThreeDSecureButtonThemeDataImpl> @@ -1619,26 +1545,24 @@ abstract class _ThreeDSecureButtonThemeData factory _ThreeDSecureButtonThemeData.fromJson(Map json) = _$ThreeDSecureButtonThemeDataImpl.fromJson; - /// Color in hex for button background @override + + /// Color in hex for button background String? get backgroundColor; + @override /// Button corner radius. - @override double? get cornerRadius; + @override /// Color in hex for button text. - @override String? get textColor; + @override /// Font size for the button text. - @override double? get textFontSize; - - /// Create a copy of ThreeDSecureButtonThemeData - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$ThreeDSecureButtonThemeDataImplCopyWith<_$ThreeDSecureButtonThemeDataImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_platform_interface/lib/src/models/wallet.freezed.dart b/packages/stripe_platform_interface/lib/src/models/wallet.freezed.dart index 2638c401..09ec2f71 100644 --- a/packages/stripe_platform_interface/lib/src/models/wallet.freezed.dart +++ b/packages/stripe_platform_interface/lib/src/models/wallet.freezed.dart @@ -22,9 +22,7 @@ mixin _$AddToWalletResult { /// additional details from the add to wallet request AddToWalletDetails? get details => throw _privateConstructorUsedError; - /// Create a copy of AddToWalletResult - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $AddToWalletResultCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -50,8 +48,6 @@ class _$AddToWalletResultCopyWithImpl<$Res, $Val extends AddToWalletResult> // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of AddToWalletResult - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -70,8 +66,6 @@ class _$AddToWalletResultCopyWithImpl<$Res, $Val extends AddToWalletResult> ) as $Val); } - /// Create a copy of AddToWalletResult - /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $AddToWalletDetailsCopyWith<$Res>? get details { @@ -107,8 +101,6 @@ class __$$AddToWalletResultImplCopyWithImpl<$Res> $Res Function(_$AddToWalletResultImpl) _then) : super(_value, _then); - /// Create a copy of AddToWalletResult - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -159,9 +151,7 @@ class _$AddToWalletResultImpl implements _AddToWalletResult { @override int get hashCode => Object.hash(runtimeType, canAddToWallet, details); - /// Create a copy of AddToWalletResult - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$AddToWalletResultImplCopyWith<_$AddToWalletResultImpl> get copyWith => @@ -174,18 +164,16 @@ abstract class _AddToWalletResult implements AddToWalletResult { {required final bool canAddToWallet, final AddToWalletDetails? details}) = _$AddToWalletResultImpl; - /// Whether or not the card can be added to the wallet @override + + /// Whether or not the card can be added to the wallet bool get canAddToWallet; + @override /// additional details from the add to wallet request - @override AddToWalletDetails? get details; - - /// Create a copy of AddToWalletResult - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$AddToWalletResultImplCopyWith<_$AddToWalletResultImpl> get copyWith => throw _privateConstructorUsedError; } @@ -202,12 +190,8 @@ mixin _$AddToWalletDetails { /// The card token String? get token => throw _privateConstructorUsedError; - /// Serializes this AddToWalletDetails to a JSON map. Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of AddToWalletDetails - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) $AddToWalletDetailsCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -231,8 +215,6 @@ class _$AddToWalletDetailsCopyWithImpl<$Res, $Val extends AddToWalletDetails> // ignore: unused_field final $Res Function($Val) _then; - /// Create a copy of AddToWalletDetails - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -271,8 +253,6 @@ class __$$AddToWalletDetailsImplCopyWithImpl<$Res> $Res Function(_$AddToWalletDetailsImpl) _then) : super(_value, _then); - /// Create a copy of AddToWalletDetails - /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -322,13 +302,11 @@ class _$AddToWalletDetailsImpl implements _AddToWalletDetails { (identical(other.token, token) || other.token == token)); } - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, status, token); - /// Create a copy of AddToWalletDetails - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$AddToWalletDetailsImplCopyWith<_$AddToWalletDetailsImpl> get copyWith => @@ -351,18 +329,16 @@ abstract class _AddToWalletDetails implements AddToWalletDetails { factory _AddToWalletDetails.fromJson(Map json) = _$AddToWalletDetailsImpl.fromJson; - /// The status of the can add to wallet request in case it failed. @override + + /// The status of the can add to wallet request in case it failed. CanAddToWalletErrorStatus? get status; + @override /// The card token - @override String? get token; - - /// Create a copy of AddToWalletDetails - /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(includeFromJson: false, includeToJson: false) + @JsonKey(ignore: true) _$$AddToWalletDetailsImplCopyWith<_$AddToWalletDetailsImpl> get copyWith => throw _privateConstructorUsedError; }