From deddf04034ffc45be511d130748c6fa4c8f9a7a5 Mon Sep 17 00:00:00 2001 From: jonasbark Date: Tue, 18 Apr 2023 21:23:47 +0200 Subject: [PATCH] sync with stripe-react-native 0.26.0 (#1171) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * sync with stripe-react-native 0.26.0 * add mandatedata to payment method and intents * FEAT: add cashapppay payment method * remove timeout from example app --------- Co-authored-by: Remon <> Co-authored-by: RĂ©mon --- .../payment_sheet/payment_sheet_screen.dart | 4 +- packages/stripe_android/android/build.gradle | 2 +- .../PaymentMethodCreateParamsFactory.kt | 42 +- .../com/reactnativestripesdk/utils/Mappers.kt | 2 + .../ios/Classes/Stripe Sdk/Mappers.swift | 2 + .../Stripe Sdk/PaymentMethodFactory.swift | 24 + .../ios/Classes/Stripe Sdk/StripeSdk.swift | 7 +- packages/stripe_ios/ios/stripe_ios.podspec | 2 +- .../lib/src/models/ach_params.g.dart | 1 + .../lib/src/models/payment_intents.dart | 4 + .../src/models/payment_intents.freezed.dart | 57 +- .../lib/src/models/payment_intents.g.dart | 4 + .../lib/src/models/payment_methods.dart | 88 +- .../src/models/payment_methods.freezed.dart | 5120 +++++++++++------ .../lib/src/models/payment_methods.g.dart | 97 + .../lib/src/models/setup_intent.dart | 3 + .../lib/src/models/setup_intent.freezed.dart | 57 +- .../lib/src/models/setup_intent.g.dart | 5 + 18 files changed, 3608 insertions(+), 1913 deletions(-) diff --git a/example/lib/screens/payment_sheet/payment_sheet_screen.dart b/example/lib/screens/payment_sheet/payment_sheet_screen.dart index 32a704fde..6fb2f05b3 100644 --- a/example/lib/screens/payment_sheet/payment_sheet_screen.dart +++ b/example/lib/screens/payment_sheet/payment_sheet_screen.dart @@ -141,9 +141,7 @@ class _PaymentSheetScreenState extends State { Future confirmPayment() async { try { // 3. display the payment sheet. - await Stripe.instance.presentPaymentSheet( - options: PaymentSheetPresentOptions(timeout: 10000), - ); + await Stripe.instance.presentPaymentSheet(); setState(() { step = 0; diff --git a/packages/stripe_android/android/build.gradle b/packages/stripe_android/android/build.gradle index 60928abbb..08f0c53a5 100644 --- a/packages/stripe_android/android/build.gradle +++ b/packages/stripe_android/android/build.gradle @@ -3,7 +3,7 @@ version '1.0-SNAPSHOT' buildscript { ext.kotlin_version = '1.8.0' - ext.stripe_version = '[20.19.2, 20.20.0[' + ext.stripe_version = '[20.20.0, 20.22.0[' repositories { google() diff --git a/packages/stripe_android/android/src/main/kotlin/com/reactnativestripesdk/PaymentMethodCreateParamsFactory.kt b/packages/stripe_android/android/src/main/kotlin/com/reactnativestripesdk/PaymentMethodCreateParamsFactory.kt index e8a27cb03..2f8208bb0 100644 --- a/packages/stripe_android/android/src/main/kotlin/com/reactnativestripesdk/PaymentMethodCreateParamsFactory.kt +++ b/packages/stripe_android/android/src/main/kotlin/com/reactnativestripesdk/PaymentMethodCreateParamsFactory.kt @@ -37,6 +37,7 @@ class PaymentMethodCreateParamsFactory( PaymentMethod.Type.USBankAccount -> createUSBankAccountParams(paymentMethodData) PaymentMethod.Type.PayPal -> createPayPalParams() PaymentMethod.Type.Affirm -> createAffirmParams() + PaymentMethod.Type.CashAppPay -> createCashAppParams() else -> { throw Exception("This paymentMethodType is not supported yet") } @@ -202,13 +203,17 @@ class PaymentMethodCreateParamsFactory( return PaymentMethodCreateParams.createAffirm(billingDetailsParams) } + @Throws(PaymentMethodCreateParamsException::class) + private fun createCashAppParams(): PaymentMethodCreateParams { + return PaymentMethodCreateParams.createCashAppPay(billingDetailsParams) + } + @Throws(PaymentMethodCreateParamsException::class) fun createParams(clientSecret: String, paymentMethodType: PaymentMethod.Type?, isPaymentIntent: Boolean): ConfirmStripeIntentParams { try { return when (paymentMethodType) { PaymentMethod.Type.Card -> createCardStripeIntentParams(clientSecret, isPaymentIntent) PaymentMethod.Type.USBankAccount -> createUSBankAccountStripeIntentParams(clientSecret, isPaymentIntent) - PaymentMethod.Type.PayPal -> createPayPalStripeIntentParams(clientSecret, isPaymentIntent) PaymentMethod.Type.Affirm -> createAffirmStripeIntentParams(clientSecret, isPaymentIntent) PaymentMethod.Type.Ideal, PaymentMethod.Type.Alipay, @@ -223,7 +228,9 @@ class PaymentMethodCreateParamsFactory( PaymentMethod.Type.Fpx, PaymentMethod.Type.AfterpayClearpay, PaymentMethod.Type.AuBecsDebit, - PaymentMethod.Type.Klarna -> { + PaymentMethod.Type.Klarna, + PaymentMethod.Type.PayPal, + PaymentMethod.Type.CashAppPay -> { val params = createPaymentMethodParams(paymentMethodType) return if (isPaymentIntent) { @@ -232,11 +239,13 @@ class PaymentMethodCreateParamsFactory( paymentMethodCreateParams = params, clientSecret = clientSecret, setupFutureUsage = mapToPaymentIntentFutureUsage(getValOr(options, "setupFutureUsage")), + mandateData = buildMandateDataParams() ) } else { ConfirmSetupIntentParams.create( paymentMethodCreateParams = params, clientSecret = clientSecret, + mandateData = buildMandateDataParams() ) } } @@ -339,20 +348,6 @@ class PaymentMethodCreateParamsFactory( } } - @Throws(PaymentMethodCreateParamsException::class) - private fun createPayPalStripeIntentParams(clientSecret: String, isPaymentIntent: Boolean): ConfirmStripeIntentParams { - if (!isPaymentIntent) { - throw PaymentMethodCreateParamsException("PayPal is not yet supported through SetupIntents.") - } - - val params = createPayPalParams() - - return ConfirmPaymentIntentParams.createWithPaymentMethodCreateParams( - paymentMethodCreateParams = params, - clientSecret = clientSecret, - ) - } - @Throws(PaymentMethodCreateParamsException::class) private fun createAffirmStripeIntentParams(clientSecret: String, isPaymentIntent: Boolean): ConfirmStripeIntentParams { if (!isPaymentIntent) { @@ -366,6 +361,7 @@ class PaymentMethodCreateParamsFactory( paymentMethodCreateParams = params, clientSecret = clientSecret, setupFutureUsage = mapToPaymentIntentFutureUsage(getValOr(options, "setupFutureUsage")), + mandateData = buildMandateDataParams() ) } @@ -401,6 +397,20 @@ class PaymentMethodCreateParamsFactory( null ) } + + private fun buildMandateDataParams(): MandateDataParams? { + getMapOrNull(paymentMethodData, "mandateData")?.let { mandateData -> + getMapOrNull(mandateData, "customerAcceptance")?.let { customerAcceptance -> + getMapOrNull(customerAcceptance, "online")?.let { onlineParams -> + return MandateDataParams(MandateDataParams.Type.Online( + ipAddress = getValOr(onlineParams, "ipAddress", "") ?: "", + userAgent = getValOr(onlineParams, "userAgent", "") ?: "", + )) + } + } + } + return null + } } class PaymentMethodCreateParamsException(message: String) : Exception(message) diff --git a/packages/stripe_android/android/src/main/kotlin/com/reactnativestripesdk/utils/Mappers.kt b/packages/stripe_android/android/src/main/kotlin/com/reactnativestripesdk/utils/Mappers.kt index 2477be8ff..6fc31c167 100644 --- a/packages/stripe_android/android/src/main/kotlin/com/reactnativestripesdk/utils/Mappers.kt +++ b/packages/stripe_android/android/src/main/kotlin/com/reactnativestripesdk/utils/Mappers.kt @@ -123,6 +123,7 @@ internal fun mapPaymentMethodType(type: PaymentMethod.Type?): String { PaymentMethod.Type.USBankAccount -> "USBankAccount" PaymentMethod.Type.PayPal -> "PayPal" PaymentMethod.Type.Affirm -> "Affirm" + PaymentMethod.Type.CashAppPay -> "CashApp" else -> "Unknown" } } @@ -152,6 +153,7 @@ internal fun mapToPaymentMethodType(type: String?): PaymentMethod.Type? { "USBankAccount" -> PaymentMethod.Type.USBankAccount "PayPal" -> PaymentMethod.Type.PayPal "Affirm" -> PaymentMethod.Type.Affirm + "CashApp" -> PaymentMethod.Type.CashAppPay else -> null } } diff --git a/packages/stripe_ios/ios/Classes/Stripe Sdk/Mappers.swift b/packages/stripe_ios/ios/Classes/Stripe Sdk/Mappers.swift index 5157470bb..b91a3a853 100644 --- a/packages/stripe_ios/ios/Classes/Stripe Sdk/Mappers.swift +++ b/packages/stripe_ios/ios/Classes/Stripe Sdk/Mappers.swift @@ -292,6 +292,7 @@ class Mappers { case STPPaymentMethodType.USBankAccount: return "USBankAccount" case STPPaymentMethodType.payPal: return "PayPal" case STPPaymentMethodType.affirm: return "Affirm" + case STPPaymentMethodType.cashApp: return "CashApp" case STPPaymentMethodType.unknown: return "Unknown" default: return "Unknown" } @@ -322,6 +323,7 @@ class Mappers { case "USBankAccount": return STPPaymentMethodType.USBankAccount case "PayPal": return STPPaymentMethodType.payPal case "Affirm": return STPPaymentMethodType.affirm + case "CashApp": return STPPaymentMethodType.cashApp default: return STPPaymentMethodType.unknown } } diff --git a/packages/stripe_ios/ios/Classes/Stripe Sdk/PaymentMethodFactory.swift b/packages/stripe_ios/ios/Classes/Stripe Sdk/PaymentMethodFactory.swift index 32c1d3e4a..dcad5ddb3 100644 --- a/packages/stripe_ios/ios/Classes/Stripe Sdk/PaymentMethodFactory.swift +++ b/packages/stripe_ios/ios/Classes/Stripe Sdk/PaymentMethodFactory.swift @@ -55,6 +55,8 @@ class PaymentMethodFactory { return try createPayPalPaymentMethodParams() case STPPaymentMethodType.affirm: return try createAffirmPaymentMethodParams() + case STPPaymentMethodType.cashApp: + return try createCashAppPaymentMethodParams() // case STPPaymentMethodType.weChatPay: // return try createWeChatPayPaymentMethodParams() default: @@ -106,6 +108,8 @@ class PaymentMethodFactory { return nil case STPPaymentMethodType.affirm: return nil + case STPPaymentMethodType.cashApp: + return nil default: throw PaymentMethodError.paymentNotSupported } @@ -369,6 +373,26 @@ class PaymentMethodFactory { let params = STPPaymentMethodAffirmParams() return STPPaymentMethodParams(affirm: params, metadata: nil) } + + private func createCashAppPaymentMethodParams() throws -> STPPaymentMethodParams { + let params = STPPaymentMethodCashAppParams() + return STPPaymentMethodParams(cashApp: params, billingDetails: billingDetailsParams, metadata: nil) + } + + func createMandateData() -> STPMandateDataParams? { + if let mandateParams = paymentMethodData?["mandateData"] as? NSDictionary { + if let customerAcceptanceParams = mandateParams["customerAcceptance"] as? NSDictionary { + let mandate = STPMandateDataParams.init(customerAcceptance: STPMandateCustomerAcceptanceParams.init()) + + mandate.customerAcceptance.type = .online + if let onlineParams = customerAcceptanceParams["online"] as? NSDictionary { + mandate.customerAcceptance.onlineParams = .init(ipAddress: onlineParams["ipAddress"] as? String ?? "", userAgent: onlineParams["userAgent"] as? String ?? "") + } + return mandate + } + } + return nil + } } enum PaymentMethodError: Error { diff --git a/packages/stripe_ios/ios/Classes/Stripe Sdk/StripeSdk.swift b/packages/stripe_ios/ios/Classes/Stripe Sdk/StripeSdk.swift index a4390b8fe..90cd5c130 100644 --- a/packages/stripe_ios/ios/Classes/Stripe Sdk/StripeSdk.swift +++ b/packages/stripe_ios/ios/Classes/Stripe Sdk/StripeSdk.swift @@ -240,11 +240,6 @@ class StripeSdk: RCTEventEmitter, STPBankSelectionViewControllerDelegate, UIAdap return } - if (paymentMethodType == .payPal) { - resolve(Errors.createError(ErrorType.Failed, "PayPal is not yet supported through SetupIntents.")) - return - } - var err: NSDictionary? = nil let setupIntentParams: STPSetupIntentConfirmParams = { // If payment method data is not supplied, assume payment method was attached through via collectBankAccount @@ -260,6 +255,7 @@ class StripeSdk: RCTEventEmitter, STPBankSelectionViewControllerDelegate, UIAdap do { let paymentMethodParams = try factory.createParams(paymentMethodType: paymentMethodType) parameters.paymentMethodParams = paymentMethodParams + parameters.mandateData = factory.createMandateData() } catch { err = Errors.createError(ErrorType.Failed, error as NSError?) } @@ -881,6 +877,7 @@ class StripeSdk: RCTEventEmitter, STPBankSelectionViewControllerDelegate, UIAdap let paymentMethodOptions = try factory.createOptions(paymentMethodType: paymentMethodType) parameters.paymentMethodParams = paymentMethodParams parameters.paymentMethodOptions = paymentMethodOptions + parameters.mandateData = factory.createMandateData() } catch { err = Errors.createError(ErrorType.Failed, error as NSError?) } diff --git a/packages/stripe_ios/ios/stripe_ios.podspec b/packages/stripe_ios/ios/stripe_ios.podspec index d9d299952..e9b3f8a9f 100644 --- a/packages/stripe_ios/ios/stripe_ios.podspec +++ b/packages/stripe_ios/ios/stripe_ios.podspec @@ -2,7 +2,7 @@ # To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html. # Run `pod lib lint stripe_ios.podspec' to validate before publishing. # -stripe_version = '~> 23.3.3' +stripe_version = '~> 23.5.0' Pod::Spec.new do |s| s.name = 'stripe_ios' s.version = '0.0.1' diff --git a/packages/stripe_platform_interface/lib/src/models/ach_params.g.dart b/packages/stripe_platform_interface/lib/src/models/ach_params.g.dart index 33cdcf1d2..2f0ecfdee 100644 --- a/packages/stripe_platform_interface/lib/src/models/ach_params.g.dart +++ b/packages/stripe_platform_interface/lib/src/models/ach_params.g.dart @@ -27,6 +27,7 @@ Map _$$_CollectBankAccountParamsToJson( const _$PaymentMethodTypeEnumMap = { PaymentMethodType.AfterpayClearpay: 'AfterpayClearpay', PaymentMethodType.Card: 'Card', + PaymentMethodType.CashAppPay: 'CashAppPay', PaymentMethodType.Alipay: 'Alipay', PaymentMethodType.Grabpay: 'Grabpay', PaymentMethodType.Ideal: 'Ideal', diff --git a/packages/stripe_platform_interface/lib/src/models/payment_intents.dart b/packages/stripe_platform_interface/lib/src/models/payment_intents.dart index 20abd61ea..820c13a23 100644 --- a/packages/stripe_platform_interface/lib/src/models/payment_intents.dart +++ b/packages/stripe_platform_interface/lib/src/models/payment_intents.dart @@ -2,6 +2,7 @@ import 'package:freezed_annotation/freezed_annotation.dart'; import 'address.dart'; import 'next_action.dart'; +import 'payment_methods.dart'; part 'payment_intents.freezed.dart'; part 'payment_intents.g.dart'; @@ -61,6 +62,9 @@ class PaymentIntent with _$PaymentIntent { /// Shipping information of the payment intent. ShippingDetails? shipping, + + /// Mandata data for this paymentintent. + MandateData? mandateData, }) = _PaymentIntent; factory PaymentIntent.fromJson(Map json) => 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 2ce20f2d6..60a5edf8f 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 @@ -67,6 +67,9 @@ mixin _$PaymentIntent { /// Shipping information of the payment intent. ShippingDetails? get shipping => throw _privateConstructorUsedError; + /// Mandata data for this paymentintent. + MandateData? get mandateData => throw _privateConstructorUsedError; + Map toJson() => throw _privateConstructorUsedError; @JsonKey(ignore: true) $PaymentIntentCopyWith get copyWith => @@ -94,10 +97,12 @@ abstract class $PaymentIntentCopyWith<$Res> { String? receiptEmail, String? canceledAt, NextAction? nextAction, - ShippingDetails? shipping}); + ShippingDetails? shipping, + MandateData? mandateData}); $NextActionCopyWith<$Res>? get nextAction; $ShippingDetailsCopyWith<$Res>? get shipping; + $MandateDataCopyWith<$Res>? get mandateData; } /// @nodoc @@ -128,6 +133,7 @@ class _$PaymentIntentCopyWithImpl<$Res, $Val extends PaymentIntent> Object? canceledAt = freezed, Object? nextAction = freezed, Object? shipping = freezed, + Object? mandateData = freezed, }) { return _then(_value.copyWith( id: null == id @@ -190,6 +196,10 @@ class _$PaymentIntentCopyWithImpl<$Res, $Val extends PaymentIntent> ? _value.shipping : shipping // ignore: cast_nullable_to_non_nullable as ShippingDetails?, + mandateData: freezed == mandateData + ? _value.mandateData + : mandateData // ignore: cast_nullable_to_non_nullable + as MandateData?, ) as $Val); } @@ -216,6 +226,18 @@ class _$PaymentIntentCopyWithImpl<$Res, $Val extends PaymentIntent> return _then(_value.copyWith(shipping: value) as $Val); }); } + + @override + @pragma('vm:prefer-inline') + $MandateDataCopyWith<$Res>? get mandateData { + if (_value.mandateData == null) { + return null; + } + + return $MandateDataCopyWith<$Res>(_value.mandateData!, (value) { + return _then(_value.copyWith(mandateData: value) as $Val); + }); + } } /// @nodoc @@ -241,12 +263,15 @@ abstract class _$$_PaymentIntentCopyWith<$Res> String? receiptEmail, String? canceledAt, NextAction? nextAction, - ShippingDetails? shipping}); + ShippingDetails? shipping, + MandateData? mandateData}); @override $NextActionCopyWith<$Res>? get nextAction; @override $ShippingDetailsCopyWith<$Res>? get shipping; + @override + $MandateDataCopyWith<$Res>? get mandateData; } /// @nodoc @@ -275,6 +300,7 @@ class __$$_PaymentIntentCopyWithImpl<$Res> Object? canceledAt = freezed, Object? nextAction = freezed, Object? shipping = freezed, + Object? mandateData = freezed, }) { return _then(_$_PaymentIntent( id: null == id @@ -337,6 +363,10 @@ class __$$_PaymentIntentCopyWithImpl<$Res> ? _value.shipping : shipping // ignore: cast_nullable_to_non_nullable as ShippingDetails?, + mandateData: freezed == mandateData + ? _value.mandateData + : mandateData // ignore: cast_nullable_to_non_nullable + as MandateData?, )); } } @@ -360,7 +390,8 @@ class _$_PaymentIntent implements _PaymentIntent { this.receiptEmail, this.canceledAt, this.nextAction, - this.shipping}); + this.shipping, + this.mandateData}); factory _$_PaymentIntent.fromJson(Map json) => _$$_PaymentIntentFromJson(json); @@ -426,9 +457,13 @@ class _$_PaymentIntent implements _PaymentIntent { @override final ShippingDetails? shipping; + /// Mandata data for this paymentintent. + @override + final MandateData? mandateData; + @override String toString() { - return 'PaymentIntent(id: $id, amount: $amount, created: $created, currency: $currency, status: $status, clientSecret: $clientSecret, livemode: $livemode, captureMethod: $captureMethod, confirmationMethod: $confirmationMethod, paymentMethodId: $paymentMethodId, description: $description, receiptEmail: $receiptEmail, canceledAt: $canceledAt, nextAction: $nextAction, shipping: $shipping)'; + return 'PaymentIntent(id: $id, amount: $amount, created: $created, currency: $currency, status: $status, clientSecret: $clientSecret, livemode: $livemode, captureMethod: $captureMethod, confirmationMethod: $confirmationMethod, paymentMethodId: $paymentMethodId, description: $description, receiptEmail: $receiptEmail, canceledAt: $canceledAt, nextAction: $nextAction, shipping: $shipping, mandateData: $mandateData)'; } @override @@ -461,7 +496,9 @@ class _$_PaymentIntent implements _PaymentIntent { (identical(other.nextAction, nextAction) || other.nextAction == nextAction) && (identical(other.shipping, shipping) || - other.shipping == shipping)); + other.shipping == shipping) && + (identical(other.mandateData, mandateData) || + other.mandateData == mandateData)); } @JsonKey(ignore: true) @@ -482,7 +519,8 @@ class _$_PaymentIntent implements _PaymentIntent { receiptEmail, canceledAt, nextAction, - shipping); + shipping, + mandateData); @JsonKey(ignore: true) @override @@ -514,7 +552,8 @@ abstract class _PaymentIntent implements PaymentIntent { final String? receiptEmail, final String? canceledAt, final NextAction? nextAction, - final ShippingDetails? shipping}) = _$_PaymentIntent; + final ShippingDetails? shipping, + final MandateData? mandateData}) = _$_PaymentIntent; factory _PaymentIntent.fromJson(Map json) = _$_PaymentIntent.fromJson; @@ -581,6 +620,10 @@ abstract class _PaymentIntent implements PaymentIntent { /// Shipping information of the payment intent. ShippingDetails? get shipping; @override + + /// Mandata data for this paymentintent. + MandateData? get mandateData; + @override @JsonKey(ignore: true) _$$_PaymentIntentCopyWith<_$_PaymentIntent> get copyWith => throw _privateConstructorUsedError; diff --git a/packages/stripe_platform_interface/lib/src/models/payment_intents.g.dart b/packages/stripe_platform_interface/lib/src/models/payment_intents.g.dart index fe3bf64fa..e34066282 100644 --- a/packages/stripe_platform_interface/lib/src/models/payment_intents.g.dart +++ b/packages/stripe_platform_interface/lib/src/models/payment_intents.g.dart @@ -28,6 +28,9 @@ _$_PaymentIntent _$$_PaymentIntentFromJson(Map json) => shipping: json['shipping'] == null ? null : ShippingDetails.fromJson(json['shipping'] as Map), + mandateData: json['mandateData'] == null + ? null + : MandateData.fromJson(json['mandateData'] as Map), ); Map _$$_PaymentIntentToJson(_$_PaymentIntent instance) => @@ -48,6 +51,7 @@ Map _$$_PaymentIntentToJson(_$_PaymentIntent instance) => 'canceledAt': instance.canceledAt, 'nextAction': instance.nextAction?.toJson(), 'shipping': instance.shipping?.toJson(), + 'mandateData': instance.mandateData?.toJson(), }; const _$PaymentIntentsStatusEnumMap = { diff --git a/packages/stripe_platform_interface/lib/src/models/payment_methods.dart b/packages/stripe_platform_interface/lib/src/models/payment_methods.dart index 39272974d..50b5dea3f 100644 --- a/packages/stripe_platform_interface/lib/src/models/payment_methods.dart +++ b/packages/stripe_platform_interface/lib/src/models/payment_methods.dart @@ -293,6 +293,7 @@ enum UsBankAccountType { enum PaymentMethodType { AfterpayClearpay, Card, + CashAppPay, Alipay, Grabpay, Ideal, @@ -353,6 +354,15 @@ class PaymentMethodParams with _$PaymentMethodParams { required PaymentMethodData paymentMethodData, }) = _PaymentMethodParamsAlipay; + @JsonSerializable(explicitToJson: true) + @FreezedUnionValue('CashAppPay') + + /// Config parameters for Alipay card payment method. + const factory PaymentMethodParams.cashAppPay({ + /// Paymentmethod data for this paymentmethod. + required PaymentMethodData paymentMethodData, + }) = _PaymentMethodParamsCashAppPay; + @JsonSerializable(explicitToJson: true) @FreezedUnionValue('Ideal') @@ -481,9 +491,6 @@ class PaymentMethodParams with _$PaymentMethodParams { /// Paypal is in private beta make sure to request access at Stripe to try it out. const factory PaymentMethodParams.payPal({ /// 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. required PaymentMethodData paymentMethodData, }) = _PaymentMethodParamsPayPal; @@ -516,6 +523,9 @@ class PaymentMethodData with _$PaymentMethodData { /// Shipping details ShippingDetails? shippingDetails, + + /// Mandata data for this paymentmethod. + MandateData? mandateData, }) = _PaymentMethodData; factory PaymentMethodData.fromJson(Map json) => @@ -536,6 +546,9 @@ class PaymentMethodDataCardFromToken with _$PaymentMethodDataCardFromToken { /// Shipping details ShippingDetails? shippingDetails, + + /// Mandata data for this paymentmethod. + MandateData? mandateData, }) = _PaymentMethodDataCardFromToken; factory PaymentMethodDataCardFromToken.fromJson(Map json) => @@ -559,6 +572,9 @@ class PaymentMethodDataCardFromMethod with _$PaymentMethodDataCardFromMethod { /// Shipping details ShippingDetails? shippingDetails, + + /// Mandata data for this paymentmethod. + MandateData? mandateData, }) = _PaymentMethodDataCardFromMethod; factory PaymentMethodDataCardFromMethod.fromJson(Map json) => @@ -579,6 +595,9 @@ class PaymentMethodDataIdeal with _$PaymentMethodDataIdeal { /// Shipping details ShippingDetails? shippingDetails, + + /// Mandata data for this paymentmethod. + MandateData? mandateData, }) = _PaymentMethodDataIdeal; factory PaymentMethodDataIdeal.fromJson(Map json) => @@ -599,6 +618,9 @@ class PaymentMethodDataAubecs with _$PaymentMethodDataAubecs { /// Shipping details ShippingDetails? shippingDetails, + + /// Mandata data for this paymentmethod. + MandateData? mandateData, }) = _PaymentMethodDataAubecs; factory PaymentMethodDataAubecs.fromJson(Map json) => @@ -619,6 +641,9 @@ class PaymentMethodDataFpx with _$PaymentMethodDataFpx { /// Shipping details ShippingDetails? shippingDetails, + + /// Mandata data for this paymentmethod. + MandateData? mandateData, }) = _PaymentMethodDataFpx; factory PaymentMethodDataFpx.fromJson(Map json) => @@ -639,6 +664,9 @@ class PaymentMethodDataSofort with _$PaymentMethodDataSofort { /// Shipping details ShippingDetails? shippingDetails, + + /// Mandata data for this paymentmethod. + MandateData? mandateData, }) = _PaymentMethodDataSofort; factory PaymentMethodDataSofort.fromJson(Map json) => @@ -659,6 +687,9 @@ class PaymentMethodDataSepa with _$PaymentMethodDataSepa { /// Shipping details ShippingDetails? shippingDetails, + + /// Mandata data for this paymentmethod. + MandateData? mandateData, }) = _PaymentMethodDataSepa; factory PaymentMethodDataSepa.fromJson(Map json) => @@ -676,6 +707,9 @@ class PaymentMethodDataAfterPay with _$PaymentMethodDataAfterPay { /// Shipping details ShippingDetails? shippingDetails, + + /// Mandata data for this paymentmethod. + MandateData? mandateData, }) = _PaymentMethodDataAfterPay; factory PaymentMethodDataAfterPay.fromJson(Map json) => @@ -705,6 +739,9 @@ class PaymentMethodDataUsBank with _$PaymentMethodDataUsBank { /// Shipping details ShippingDetails? shippingDetails, + + /// Mandata data for this paymentmethod. + MandateData? mandateData, }) = _PaymentMethodDataUsBank; factory PaymentMethodDataUsBank.fromJson(Map json) => @@ -724,3 +761,48 @@ class PaymentMethodOptions with _$PaymentMethodOptions { factory PaymentMethodOptions.fromJson(Map json) => _$PaymentMethodOptionsFromJson(json); } + +@freezed + +///A Mandate is a record of the permission a customer has given you to debit their payment method. +class MandateData with _$MandateData { + @JsonSerializable(explicitToJson: true) + const factory MandateData({ + /// The type of mandate to create. + MandateDataCustomerAcceptance? customerAcceptance, + }) = _MandateData; + + factory MandateData.fromJson(Map json) => + _$MandateDataFromJson(json); +} + +@freezed + +///Information about the online mandate +class MandateDataCustomerAcceptance with _$MandateDataCustomerAcceptance { + @JsonSerializable(explicitToJson: true) + const factory MandateDataCustomerAcceptance({ + /// Online data regarding the mandate. + MandateDataOnlineData? ipAddress, + }) = _MandateDataCustomerAcceptance; + + factory MandateDataCustomerAcceptance.fromJson(Map json) => + _$MandateDataCustomerAcceptanceFromJson(json); +} + +@freezed + +///Information about the online mandate +class MandateDataOnlineData with _$MandateDataOnlineData { + @JsonSerializable(explicitToJson: true) + const factory MandateDataOnlineData({ + /// The ip address of the user. + String? ipAddress, + + /// The user agent of the user. + String? userAgent, + }) = _MandateDataOnlineData; + + factory MandateDataOnlineData.fromJson(Map json) => + _$MandateDataOnlineDataFromJson(json); +} 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 939b6dc1f..99f33cc95 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 @@ -2813,6 +2813,8 @@ PaymentMethodParams _$PaymentMethodParamsFromJson(Map json) { return _PaymentMethodParamsCardWithMethodId.fromJson(json); case 'Alipay': return _PaymentMethodParamsAlipay.fromJson(json); + case 'CashAppPay': + return _PaymentMethodParamsCashAppPay.fromJson(json); case 'Ideal': return _PaymentMethodParamsIdeal.fromJson(json); case 'AuBecsDebit': @@ -2867,6 +2869,7 @@ mixin _$PaymentMethodParams { required TResult Function(PaymentMethodDataCardFromMethod paymentMethodData) cardFromMethodId, required TResult Function(PaymentMethodData paymentMethodData) alipay, + required TResult Function(PaymentMethodData paymentMethodData) cashAppPay, required TResult Function(PaymentMethodDataIdeal paymentMethodData) ideal, required TResult Function(PaymentMethodDataAubecs paymentMethodData) aubecs, required TResult Function(PaymentMethodData paymentMethodData) bancontact, @@ -2896,6 +2899,7 @@ mixin _$PaymentMethodParams { TResult? Function(PaymentMethodDataCardFromMethod paymentMethodData)? cardFromMethodId, TResult? Function(PaymentMethodData paymentMethodData)? alipay, + TResult? Function(PaymentMethodData paymentMethodData)? cashAppPay, TResult? Function(PaymentMethodDataIdeal paymentMethodData)? ideal, TResult? Function(PaymentMethodDataAubecs paymentMethodData)? aubecs, TResult? Function(PaymentMethodData paymentMethodData)? bancontact, @@ -2923,6 +2927,7 @@ mixin _$PaymentMethodParams { TResult Function(PaymentMethodDataCardFromMethod paymentMethodData)? cardFromMethodId, TResult Function(PaymentMethodData paymentMethodData)? alipay, + TResult Function(PaymentMethodData paymentMethodData)? cashAppPay, TResult Function(PaymentMethodDataIdeal paymentMethodData)? ideal, TResult Function(PaymentMethodDataAubecs paymentMethodData)? aubecs, TResult Function(PaymentMethodData paymentMethodData)? bancontact, @@ -2951,6 +2956,7 @@ mixin _$PaymentMethodParams { required TResult Function(_PaymentMethodParamsCardWithMethodId value) cardFromMethodId, required TResult Function(_PaymentMethodParamsAlipay value) alipay, + required TResult Function(_PaymentMethodParamsCashAppPay value) cashAppPay, required TResult Function(_PaymentMethodParamsIdeal value) ideal, required TResult Function(_PaymentMethodParamsAubecs value) aubecs, required TResult Function(_PaymentMethodParamsBankContact value) bancontact, @@ -2978,6 +2984,7 @@ mixin _$PaymentMethodParams { TResult? Function(_PaymentMethodParamsCardWithMethodId value)? cardFromMethodId, TResult? Function(_PaymentMethodParamsAlipay value)? alipay, + TResult? Function(_PaymentMethodParamsCashAppPay value)? cashAppPay, TResult? Function(_PaymentMethodParamsIdeal value)? ideal, TResult? Function(_PaymentMethodParamsAubecs value)? aubecs, TResult? Function(_PaymentMethodParamsBankContact value)? bancontact, @@ -3004,6 +3011,7 @@ mixin _$PaymentMethodParams { TResult Function(_PaymentMethodParamsCardWithMethodId value)? cardFromMethodId, TResult Function(_PaymentMethodParamsAlipay value)? alipay, + TResult Function(_PaymentMethodParamsCashAppPay value)? cashAppPay, TResult Function(_PaymentMethodParamsIdeal value)? ideal, TResult Function(_PaymentMethodParamsAubecs value)? aubecs, TResult Function(_PaymentMethodParamsBankContact value)? bancontact, @@ -3139,6 +3147,7 @@ class _$_PaymentMethodParamsCard implements _PaymentMethodParamsCard { required TResult Function(PaymentMethodDataCardFromMethod paymentMethodData) cardFromMethodId, required TResult Function(PaymentMethodData paymentMethodData) alipay, + required TResult Function(PaymentMethodData paymentMethodData) cashAppPay, required TResult Function(PaymentMethodDataIdeal paymentMethodData) ideal, required TResult Function(PaymentMethodDataAubecs paymentMethodData) aubecs, required TResult Function(PaymentMethodData paymentMethodData) bancontact, @@ -3171,6 +3180,7 @@ class _$_PaymentMethodParamsCard implements _PaymentMethodParamsCard { TResult? Function(PaymentMethodDataCardFromMethod paymentMethodData)? cardFromMethodId, TResult? Function(PaymentMethodData paymentMethodData)? alipay, + TResult? Function(PaymentMethodData paymentMethodData)? cashAppPay, TResult? Function(PaymentMethodDataIdeal paymentMethodData)? ideal, TResult? Function(PaymentMethodDataAubecs paymentMethodData)? aubecs, TResult? Function(PaymentMethodData paymentMethodData)? bancontact, @@ -3201,6 +3211,7 @@ class _$_PaymentMethodParamsCard implements _PaymentMethodParamsCard { TResult Function(PaymentMethodDataCardFromMethod paymentMethodData)? cardFromMethodId, TResult Function(PaymentMethodData paymentMethodData)? alipay, + TResult Function(PaymentMethodData paymentMethodData)? cashAppPay, TResult Function(PaymentMethodDataIdeal paymentMethodData)? ideal, TResult Function(PaymentMethodDataAubecs paymentMethodData)? aubecs, TResult Function(PaymentMethodData paymentMethodData)? bancontact, @@ -3235,6 +3246,7 @@ class _$_PaymentMethodParamsCard implements _PaymentMethodParamsCard { required TResult Function(_PaymentMethodParamsCardWithMethodId value) cardFromMethodId, required TResult Function(_PaymentMethodParamsAlipay value) alipay, + required TResult Function(_PaymentMethodParamsCashAppPay value) cashAppPay, required TResult Function(_PaymentMethodParamsIdeal value) ideal, required TResult Function(_PaymentMethodParamsAubecs value) aubecs, required TResult Function(_PaymentMethodParamsBankContact value) bancontact, @@ -3265,6 +3277,7 @@ class _$_PaymentMethodParamsCard implements _PaymentMethodParamsCard { TResult? Function(_PaymentMethodParamsCardWithMethodId value)? cardFromMethodId, TResult? Function(_PaymentMethodParamsAlipay value)? alipay, + TResult? Function(_PaymentMethodParamsCashAppPay value)? cashAppPay, TResult? Function(_PaymentMethodParamsIdeal value)? ideal, TResult? Function(_PaymentMethodParamsAubecs value)? aubecs, TResult? Function(_PaymentMethodParamsBankContact value)? bancontact, @@ -3294,6 +3307,7 @@ class _$_PaymentMethodParamsCard implements _PaymentMethodParamsCard { TResult Function(_PaymentMethodParamsCardWithMethodId value)? cardFromMethodId, TResult Function(_PaymentMethodParamsAlipay value)? alipay, + TResult Function(_PaymentMethodParamsCashAppPay value)? cashAppPay, TResult Function(_PaymentMethodParamsIdeal value)? ideal, TResult Function(_PaymentMethodParamsAubecs value)? aubecs, TResult Function(_PaymentMethodParamsBankContact value)? bancontact, @@ -3444,6 +3458,7 @@ class _$_PaymentMethodParamsCardWithToken required TResult Function(PaymentMethodDataCardFromMethod paymentMethodData) cardFromMethodId, required TResult Function(PaymentMethodData paymentMethodData) alipay, + required TResult Function(PaymentMethodData paymentMethodData) cashAppPay, required TResult Function(PaymentMethodDataIdeal paymentMethodData) ideal, required TResult Function(PaymentMethodDataAubecs paymentMethodData) aubecs, required TResult Function(PaymentMethodData paymentMethodData) bancontact, @@ -3476,6 +3491,7 @@ class _$_PaymentMethodParamsCardWithToken TResult? Function(PaymentMethodDataCardFromMethod paymentMethodData)? cardFromMethodId, TResult? Function(PaymentMethodData paymentMethodData)? alipay, + TResult? Function(PaymentMethodData paymentMethodData)? cashAppPay, TResult? Function(PaymentMethodDataIdeal paymentMethodData)? ideal, TResult? Function(PaymentMethodDataAubecs paymentMethodData)? aubecs, TResult? Function(PaymentMethodData paymentMethodData)? bancontact, @@ -3506,6 +3522,7 @@ class _$_PaymentMethodParamsCardWithToken TResult Function(PaymentMethodDataCardFromMethod paymentMethodData)? cardFromMethodId, TResult Function(PaymentMethodData paymentMethodData)? alipay, + TResult Function(PaymentMethodData paymentMethodData)? cashAppPay, TResult Function(PaymentMethodDataIdeal paymentMethodData)? ideal, TResult Function(PaymentMethodDataAubecs paymentMethodData)? aubecs, TResult Function(PaymentMethodData paymentMethodData)? bancontact, @@ -3540,6 +3557,7 @@ class _$_PaymentMethodParamsCardWithToken required TResult Function(_PaymentMethodParamsCardWithMethodId value) cardFromMethodId, required TResult Function(_PaymentMethodParamsAlipay value) alipay, + required TResult Function(_PaymentMethodParamsCashAppPay value) cashAppPay, required TResult Function(_PaymentMethodParamsIdeal value) ideal, required TResult Function(_PaymentMethodParamsAubecs value) aubecs, required TResult Function(_PaymentMethodParamsBankContact value) bancontact, @@ -3570,6 +3588,7 @@ class _$_PaymentMethodParamsCardWithToken TResult? Function(_PaymentMethodParamsCardWithMethodId value)? cardFromMethodId, TResult? Function(_PaymentMethodParamsAlipay value)? alipay, + TResult? Function(_PaymentMethodParamsCashAppPay value)? cashAppPay, TResult? Function(_PaymentMethodParamsIdeal value)? ideal, TResult? Function(_PaymentMethodParamsAubecs value)? aubecs, TResult? Function(_PaymentMethodParamsBankContact value)? bancontact, @@ -3599,6 +3618,7 @@ class _$_PaymentMethodParamsCardWithToken TResult Function(_PaymentMethodParamsCardWithMethodId value)? cardFromMethodId, TResult Function(_PaymentMethodParamsAlipay value)? alipay, + TResult Function(_PaymentMethodParamsCashAppPay value)? cashAppPay, TResult Function(_PaymentMethodParamsIdeal value)? ideal, TResult Function(_PaymentMethodParamsAubecs value)? aubecs, TResult Function(_PaymentMethodParamsBankContact value)? bancontact, @@ -3751,6 +3771,7 @@ class _$_PaymentMethodParamsCardWithMethodId required TResult Function(PaymentMethodDataCardFromMethod paymentMethodData) cardFromMethodId, required TResult Function(PaymentMethodData paymentMethodData) alipay, + required TResult Function(PaymentMethodData paymentMethodData) cashAppPay, required TResult Function(PaymentMethodDataIdeal paymentMethodData) ideal, required TResult Function(PaymentMethodDataAubecs paymentMethodData) aubecs, required TResult Function(PaymentMethodData paymentMethodData) bancontact, @@ -3783,6 +3804,7 @@ class _$_PaymentMethodParamsCardWithMethodId TResult? Function(PaymentMethodDataCardFromMethod paymentMethodData)? cardFromMethodId, TResult? Function(PaymentMethodData paymentMethodData)? alipay, + TResult? Function(PaymentMethodData paymentMethodData)? cashAppPay, TResult? Function(PaymentMethodDataIdeal paymentMethodData)? ideal, TResult? Function(PaymentMethodDataAubecs paymentMethodData)? aubecs, TResult? Function(PaymentMethodData paymentMethodData)? bancontact, @@ -3813,6 +3835,7 @@ class _$_PaymentMethodParamsCardWithMethodId TResult Function(PaymentMethodDataCardFromMethod paymentMethodData)? cardFromMethodId, TResult Function(PaymentMethodData paymentMethodData)? alipay, + TResult Function(PaymentMethodData paymentMethodData)? cashAppPay, TResult Function(PaymentMethodDataIdeal paymentMethodData)? ideal, TResult Function(PaymentMethodDataAubecs paymentMethodData)? aubecs, TResult Function(PaymentMethodData paymentMethodData)? bancontact, @@ -3847,6 +3870,7 @@ class _$_PaymentMethodParamsCardWithMethodId required TResult Function(_PaymentMethodParamsCardWithMethodId value) cardFromMethodId, required TResult Function(_PaymentMethodParamsAlipay value) alipay, + required TResult Function(_PaymentMethodParamsCashAppPay value) cashAppPay, required TResult Function(_PaymentMethodParamsIdeal value) ideal, required TResult Function(_PaymentMethodParamsAubecs value) aubecs, required TResult Function(_PaymentMethodParamsBankContact value) bancontact, @@ -3877,6 +3901,7 @@ class _$_PaymentMethodParamsCardWithMethodId TResult? Function(_PaymentMethodParamsCardWithMethodId value)? cardFromMethodId, TResult? Function(_PaymentMethodParamsAlipay value)? alipay, + TResult? Function(_PaymentMethodParamsCashAppPay value)? cashAppPay, TResult? Function(_PaymentMethodParamsIdeal value)? ideal, TResult? Function(_PaymentMethodParamsAubecs value)? aubecs, TResult? Function(_PaymentMethodParamsBankContact value)? bancontact, @@ -3906,6 +3931,7 @@ class _$_PaymentMethodParamsCardWithMethodId TResult Function(_PaymentMethodParamsCardWithMethodId value)? cardFromMethodId, TResult Function(_PaymentMethodParamsAlipay value)? alipay, + TResult Function(_PaymentMethodParamsCashAppPay value)? cashAppPay, TResult Function(_PaymentMethodParamsIdeal value)? ideal, TResult Function(_PaymentMethodParamsAubecs value)? aubecs, TResult Function(_PaymentMethodParamsBankContact value)? bancontact, @@ -4055,6 +4081,7 @@ class _$_PaymentMethodParamsAlipay implements _PaymentMethodParamsAlipay { required TResult Function(PaymentMethodDataCardFromMethod paymentMethodData) cardFromMethodId, required TResult Function(PaymentMethodData paymentMethodData) alipay, + required TResult Function(PaymentMethodData paymentMethodData) cashAppPay, required TResult Function(PaymentMethodDataIdeal paymentMethodData) ideal, required TResult Function(PaymentMethodDataAubecs paymentMethodData) aubecs, required TResult Function(PaymentMethodData paymentMethodData) bancontact, @@ -4087,6 +4114,7 @@ class _$_PaymentMethodParamsAlipay implements _PaymentMethodParamsAlipay { TResult? Function(PaymentMethodDataCardFromMethod paymentMethodData)? cardFromMethodId, TResult? Function(PaymentMethodData paymentMethodData)? alipay, + TResult? Function(PaymentMethodData paymentMethodData)? cashAppPay, TResult? Function(PaymentMethodDataIdeal paymentMethodData)? ideal, TResult? Function(PaymentMethodDataAubecs paymentMethodData)? aubecs, TResult? Function(PaymentMethodData paymentMethodData)? bancontact, @@ -4117,6 +4145,7 @@ class _$_PaymentMethodParamsAlipay implements _PaymentMethodParamsAlipay { TResult Function(PaymentMethodDataCardFromMethod paymentMethodData)? cardFromMethodId, TResult Function(PaymentMethodData paymentMethodData)? alipay, + TResult Function(PaymentMethodData paymentMethodData)? cashAppPay, TResult Function(PaymentMethodDataIdeal paymentMethodData)? ideal, TResult Function(PaymentMethodDataAubecs paymentMethodData)? aubecs, TResult Function(PaymentMethodData paymentMethodData)? bancontact, @@ -4151,6 +4180,7 @@ class _$_PaymentMethodParamsAlipay implements _PaymentMethodParamsAlipay { required TResult Function(_PaymentMethodParamsCardWithMethodId value) cardFromMethodId, required TResult Function(_PaymentMethodParamsAlipay value) alipay, + required TResult Function(_PaymentMethodParamsCashAppPay value) cashAppPay, required TResult Function(_PaymentMethodParamsIdeal value) ideal, required TResult Function(_PaymentMethodParamsAubecs value) aubecs, required TResult Function(_PaymentMethodParamsBankContact value) bancontact, @@ -4181,6 +4211,7 @@ class _$_PaymentMethodParamsAlipay implements _PaymentMethodParamsAlipay { TResult? Function(_PaymentMethodParamsCardWithMethodId value)? cardFromMethodId, TResult? Function(_PaymentMethodParamsAlipay value)? alipay, + TResult? Function(_PaymentMethodParamsCashAppPay value)? cashAppPay, TResult? Function(_PaymentMethodParamsIdeal value)? ideal, TResult? Function(_PaymentMethodParamsAubecs value)? aubecs, TResult? Function(_PaymentMethodParamsBankContact value)? bancontact, @@ -4210,6 +4241,7 @@ class _$_PaymentMethodParamsAlipay implements _PaymentMethodParamsAlipay { TResult Function(_PaymentMethodParamsCardWithMethodId value)? cardFromMethodId, TResult Function(_PaymentMethodParamsAlipay value)? alipay, + TResult Function(_PaymentMethodParamsCashAppPay value)? cashAppPay, TResult Function(_PaymentMethodParamsIdeal value)? ideal, TResult Function(_PaymentMethodParamsAubecs value)? aubecs, TResult Function(_PaymentMethodParamsBankContact value)? bancontact, @@ -4261,23 +4293,25 @@ abstract class _PaymentMethodParamsAlipay implements PaymentMethodParams { } /// @nodoc -abstract class _$$_PaymentMethodParamsIdealCopyWith<$Res> { - factory _$$_PaymentMethodParamsIdealCopyWith( - _$_PaymentMethodParamsIdeal value, - $Res Function(_$_PaymentMethodParamsIdeal) then) = - __$$_PaymentMethodParamsIdealCopyWithImpl<$Res>; +abstract class _$$_PaymentMethodParamsCashAppPayCopyWith<$Res> { + factory _$$_PaymentMethodParamsCashAppPayCopyWith( + _$_PaymentMethodParamsCashAppPay value, + $Res Function(_$_PaymentMethodParamsCashAppPay) then) = + __$$_PaymentMethodParamsCashAppPayCopyWithImpl<$Res>; @useResult - $Res call({PaymentMethodDataIdeal paymentMethodData}); + $Res call({PaymentMethodData paymentMethodData}); - $PaymentMethodDataIdealCopyWith<$Res> get paymentMethodData; + $PaymentMethodDataCopyWith<$Res> get paymentMethodData; } /// @nodoc -class __$$_PaymentMethodParamsIdealCopyWithImpl<$Res> - extends _$PaymentMethodParamsCopyWithImpl<$Res, _$_PaymentMethodParamsIdeal> - implements _$$_PaymentMethodParamsIdealCopyWith<$Res> { - __$$_PaymentMethodParamsIdealCopyWithImpl(_$_PaymentMethodParamsIdeal _value, - $Res Function(_$_PaymentMethodParamsIdeal) _then) +class __$$_PaymentMethodParamsCashAppPayCopyWithImpl<$Res> + extends _$PaymentMethodParamsCopyWithImpl<$Res, + _$_PaymentMethodParamsCashAppPay> + implements _$$_PaymentMethodParamsCashAppPayCopyWith<$Res> { + __$$_PaymentMethodParamsCashAppPayCopyWithImpl( + _$_PaymentMethodParamsCashAppPay _value, + $Res Function(_$_PaymentMethodParamsCashAppPay) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -4285,19 +4319,18 @@ class __$$_PaymentMethodParamsIdealCopyWithImpl<$Res> $Res call({ Object? paymentMethodData = null, }) { - return _then(_$_PaymentMethodParamsIdeal( + return _then(_$_PaymentMethodParamsCashAppPay( paymentMethodData: null == paymentMethodData ? _value.paymentMethodData : paymentMethodData // ignore: cast_nullable_to_non_nullable - as PaymentMethodDataIdeal, + as PaymentMethodData, )); } @override @pragma('vm:prefer-inline') - $PaymentMethodDataIdealCopyWith<$Res> get paymentMethodData { - return $PaymentMethodDataIdealCopyWith<$Res>(_value.paymentMethodData, - (value) { + $PaymentMethodDataCopyWith<$Res> get paymentMethodData { + return $PaymentMethodDataCopyWith<$Res>(_value.paymentMethodData, (value) { return _then(_value.copyWith(paymentMethodData: value)); }); } @@ -4306,31 +4339,33 @@ class __$$_PaymentMethodParamsIdealCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_PaymentMethodParamsIdeal implements _PaymentMethodParamsIdeal { - const _$_PaymentMethodParamsIdeal( +class _$_PaymentMethodParamsCashAppPay + implements _PaymentMethodParamsCashAppPay { + const _$_PaymentMethodParamsCashAppPay( {required this.paymentMethodData, final String? $type}) - : $type = $type ?? 'Ideal'; + : $type = $type ?? 'CashAppPay'; - factory _$_PaymentMethodParamsIdeal.fromJson(Map json) => - _$$_PaymentMethodParamsIdealFromJson(json); + factory _$_PaymentMethodParamsCashAppPay.fromJson( + Map json) => + _$$_PaymentMethodParamsCashAppPayFromJson(json); /// Paymentmethod data for this paymentmethod. @override - final PaymentMethodDataIdeal paymentMethodData; + final PaymentMethodData paymentMethodData; @JsonKey(name: 'paymentMethodType') final String $type; @override String toString() { - return 'PaymentMethodParams.ideal(paymentMethodData: $paymentMethodData)'; + return 'PaymentMethodParams.cashAppPay(paymentMethodData: $paymentMethodData)'; } @override bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentMethodParamsIdeal && + other is _$_PaymentMethodParamsCashAppPay && (identical(other.paymentMethodData, paymentMethodData) || other.paymentMethodData == paymentMethodData)); } @@ -4342,9 +4377,9 @@ class _$_PaymentMethodParamsIdeal implements _PaymentMethodParamsIdeal { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentMethodParamsIdealCopyWith<_$_PaymentMethodParamsIdeal> - get copyWith => __$$_PaymentMethodParamsIdealCopyWithImpl< - _$_PaymentMethodParamsIdeal>(this, _$identity); + _$$_PaymentMethodParamsCashAppPayCopyWith<_$_PaymentMethodParamsCashAppPay> + get copyWith => __$$_PaymentMethodParamsCashAppPayCopyWithImpl< + _$_PaymentMethodParamsCashAppPay>(this, _$identity); @override @optionalTypeArgs @@ -4355,6 +4390,7 @@ class _$_PaymentMethodParamsIdeal implements _PaymentMethodParamsIdeal { required TResult Function(PaymentMethodDataCardFromMethod paymentMethodData) cardFromMethodId, required TResult Function(PaymentMethodData paymentMethodData) alipay, + required TResult Function(PaymentMethodData paymentMethodData) cashAppPay, required TResult Function(PaymentMethodDataIdeal paymentMethodData) ideal, required TResult Function(PaymentMethodDataAubecs paymentMethodData) aubecs, required TResult Function(PaymentMethodData paymentMethodData) bancontact, @@ -4375,7 +4411,7 @@ class _$_PaymentMethodParamsIdeal implements _PaymentMethodParamsIdeal { required TResult Function(PaymentMethodDataUsBank paymentMethodData) usBankAccount, }) { - return ideal(paymentMethodData); + return cashAppPay(paymentMethodData); } @override @@ -4387,6 +4423,7 @@ class _$_PaymentMethodParamsIdeal implements _PaymentMethodParamsIdeal { TResult? Function(PaymentMethodDataCardFromMethod paymentMethodData)? cardFromMethodId, TResult? Function(PaymentMethodData paymentMethodData)? alipay, + TResult? Function(PaymentMethodData paymentMethodData)? cashAppPay, TResult? Function(PaymentMethodDataIdeal paymentMethodData)? ideal, TResult? Function(PaymentMethodDataAubecs paymentMethodData)? aubecs, TResult? Function(PaymentMethodData paymentMethodData)? bancontact, @@ -4405,7 +4442,7 @@ class _$_PaymentMethodParamsIdeal implements _PaymentMethodParamsIdeal { TResult? Function(PaymentMethodData paymentMethodData)? payPal, TResult? Function(PaymentMethodDataUsBank paymentMethodData)? usBankAccount, }) { - return ideal?.call(paymentMethodData); + return cashAppPay?.call(paymentMethodData); } @override @@ -4417,6 +4454,7 @@ class _$_PaymentMethodParamsIdeal implements _PaymentMethodParamsIdeal { TResult Function(PaymentMethodDataCardFromMethod paymentMethodData)? cardFromMethodId, TResult Function(PaymentMethodData paymentMethodData)? alipay, + TResult Function(PaymentMethodData paymentMethodData)? cashAppPay, TResult Function(PaymentMethodDataIdeal paymentMethodData)? ideal, TResult Function(PaymentMethodDataAubecs paymentMethodData)? aubecs, TResult Function(PaymentMethodData paymentMethodData)? bancontact, @@ -4436,8 +4474,8 @@ class _$_PaymentMethodParamsIdeal implements _PaymentMethodParamsIdeal { TResult Function(PaymentMethodDataUsBank paymentMethodData)? usBankAccount, required TResult orElse(), }) { - if (ideal != null) { - return ideal(paymentMethodData); + if (cashAppPay != null) { + return cashAppPay(paymentMethodData); } return orElse(); } @@ -4451,6 +4489,7 @@ class _$_PaymentMethodParamsIdeal implements _PaymentMethodParamsIdeal { required TResult Function(_PaymentMethodParamsCardWithMethodId value) cardFromMethodId, required TResult Function(_PaymentMethodParamsAlipay value) alipay, + required TResult Function(_PaymentMethodParamsCashAppPay value) cashAppPay, required TResult Function(_PaymentMethodParamsIdeal value) ideal, required TResult Function(_PaymentMethodParamsAubecs value) aubecs, required TResult Function(_PaymentMethodParamsBankContact value) bancontact, @@ -4470,7 +4509,7 @@ class _$_PaymentMethodParamsIdeal implements _PaymentMethodParamsIdeal { required TResult Function(_PaymentMethodParamsUsBankAccount value) usBankAccount, }) { - return ideal(this); + return cashAppPay(this); } @override @@ -4481,6 +4520,7 @@ class _$_PaymentMethodParamsIdeal implements _PaymentMethodParamsIdeal { TResult? Function(_PaymentMethodParamsCardWithMethodId value)? cardFromMethodId, TResult? Function(_PaymentMethodParamsAlipay value)? alipay, + TResult? Function(_PaymentMethodParamsCashAppPay value)? cashAppPay, TResult? Function(_PaymentMethodParamsIdeal value)? ideal, TResult? Function(_PaymentMethodParamsAubecs value)? aubecs, TResult? Function(_PaymentMethodParamsBankContact value)? bancontact, @@ -4499,7 +4539,7 @@ class _$_PaymentMethodParamsIdeal implements _PaymentMethodParamsIdeal { TResult? Function(_PaymentMethodParamsPayPal value)? payPal, TResult? Function(_PaymentMethodParamsUsBankAccount value)? usBankAccount, }) { - return ideal?.call(this); + return cashAppPay?.call(this); } @override @@ -4510,6 +4550,7 @@ class _$_PaymentMethodParamsIdeal implements _PaymentMethodParamsIdeal { TResult Function(_PaymentMethodParamsCardWithMethodId value)? cardFromMethodId, TResult Function(_PaymentMethodParamsAlipay value)? alipay, + TResult Function(_PaymentMethodParamsCashAppPay value)? cashAppPay, TResult Function(_PaymentMethodParamsIdeal value)? ideal, TResult Function(_PaymentMethodParamsAubecs value)? aubecs, TResult Function(_PaymentMethodParamsBankContact value)? bancontact, @@ -4529,57 +4570,55 @@ class _$_PaymentMethodParamsIdeal implements _PaymentMethodParamsIdeal { TResult Function(_PaymentMethodParamsUsBankAccount value)? usBankAccount, required TResult orElse(), }) { - if (ideal != null) { - return ideal(this); + if (cashAppPay != null) { + return cashAppPay(this); } return orElse(); } @override Map toJson() { - return _$$_PaymentMethodParamsIdealToJson( + return _$$_PaymentMethodParamsCashAppPayToJson( this, ); } } -abstract class _PaymentMethodParamsIdeal implements PaymentMethodParams { - const factory _PaymentMethodParamsIdeal( - {required final PaymentMethodDataIdeal paymentMethodData}) = - _$_PaymentMethodParamsIdeal; +abstract class _PaymentMethodParamsCashAppPay implements PaymentMethodParams { + const factory _PaymentMethodParamsCashAppPay( + {required final PaymentMethodData paymentMethodData}) = + _$_PaymentMethodParamsCashAppPay; - factory _PaymentMethodParamsIdeal.fromJson(Map json) = - _$_PaymentMethodParamsIdeal.fromJson; + factory _PaymentMethodParamsCashAppPay.fromJson(Map json) = + _$_PaymentMethodParamsCashAppPay.fromJson; @override /// Paymentmethod data for this paymentmethod. - PaymentMethodDataIdeal get paymentMethodData; + PaymentMethodData get paymentMethodData; @JsonKey(ignore: true) - _$$_PaymentMethodParamsIdealCopyWith<_$_PaymentMethodParamsIdeal> + _$$_PaymentMethodParamsCashAppPayCopyWith<_$_PaymentMethodParamsCashAppPay> get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$_PaymentMethodParamsAubecsCopyWith<$Res> { - factory _$$_PaymentMethodParamsAubecsCopyWith( - _$_PaymentMethodParamsAubecs value, - $Res Function(_$_PaymentMethodParamsAubecs) then) = - __$$_PaymentMethodParamsAubecsCopyWithImpl<$Res>; +abstract class _$$_PaymentMethodParamsIdealCopyWith<$Res> { + factory _$$_PaymentMethodParamsIdealCopyWith( + _$_PaymentMethodParamsIdeal value, + $Res Function(_$_PaymentMethodParamsIdeal) then) = + __$$_PaymentMethodParamsIdealCopyWithImpl<$Res>; @useResult - $Res call({PaymentMethodDataAubecs paymentMethodData}); + $Res call({PaymentMethodDataIdeal paymentMethodData}); - $PaymentMethodDataAubecsCopyWith<$Res> get paymentMethodData; + $PaymentMethodDataIdealCopyWith<$Res> get paymentMethodData; } /// @nodoc -class __$$_PaymentMethodParamsAubecsCopyWithImpl<$Res> - extends _$PaymentMethodParamsCopyWithImpl<$Res, - _$_PaymentMethodParamsAubecs> - implements _$$_PaymentMethodParamsAubecsCopyWith<$Res> { - __$$_PaymentMethodParamsAubecsCopyWithImpl( - _$_PaymentMethodParamsAubecs _value, - $Res Function(_$_PaymentMethodParamsAubecs) _then) +class __$$_PaymentMethodParamsIdealCopyWithImpl<$Res> + extends _$PaymentMethodParamsCopyWithImpl<$Res, _$_PaymentMethodParamsIdeal> + implements _$$_PaymentMethodParamsIdealCopyWith<$Res> { + __$$_PaymentMethodParamsIdealCopyWithImpl(_$_PaymentMethodParamsIdeal _value, + $Res Function(_$_PaymentMethodParamsIdeal) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -4587,18 +4626,18 @@ class __$$_PaymentMethodParamsAubecsCopyWithImpl<$Res> $Res call({ Object? paymentMethodData = null, }) { - return _then(_$_PaymentMethodParamsAubecs( + return _then(_$_PaymentMethodParamsIdeal( paymentMethodData: null == paymentMethodData ? _value.paymentMethodData : paymentMethodData // ignore: cast_nullable_to_non_nullable - as PaymentMethodDataAubecs, + as PaymentMethodDataIdeal, )); } @override @pragma('vm:prefer-inline') - $PaymentMethodDataAubecsCopyWith<$Res> get paymentMethodData { - return $PaymentMethodDataAubecsCopyWith<$Res>(_value.paymentMethodData, + $PaymentMethodDataIdealCopyWith<$Res> get paymentMethodData { + return $PaymentMethodDataIdealCopyWith<$Res>(_value.paymentMethodData, (value) { return _then(_value.copyWith(paymentMethodData: value)); }); @@ -4608,31 +4647,31 @@ class __$$_PaymentMethodParamsAubecsCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_PaymentMethodParamsAubecs implements _PaymentMethodParamsAubecs { - const _$_PaymentMethodParamsAubecs( +class _$_PaymentMethodParamsIdeal implements _PaymentMethodParamsIdeal { + const _$_PaymentMethodParamsIdeal( {required this.paymentMethodData, final String? $type}) - : $type = $type ?? 'AuBecsDebit'; + : $type = $type ?? 'Ideal'; - factory _$_PaymentMethodParamsAubecs.fromJson(Map json) => - _$$_PaymentMethodParamsAubecsFromJson(json); + factory _$_PaymentMethodParamsIdeal.fromJson(Map json) => + _$$_PaymentMethodParamsIdealFromJson(json); /// Paymentmethod data for this paymentmethod. @override - final PaymentMethodDataAubecs paymentMethodData; + final PaymentMethodDataIdeal paymentMethodData; @JsonKey(name: 'paymentMethodType') final String $type; @override String toString() { - return 'PaymentMethodParams.aubecs(paymentMethodData: $paymentMethodData)'; + return 'PaymentMethodParams.ideal(paymentMethodData: $paymentMethodData)'; } @override bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentMethodParamsAubecs && + other is _$_PaymentMethodParamsIdeal && (identical(other.paymentMethodData, paymentMethodData) || other.paymentMethodData == paymentMethodData)); } @@ -4644,9 +4683,9 @@ class _$_PaymentMethodParamsAubecs implements _PaymentMethodParamsAubecs { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentMethodParamsAubecsCopyWith<_$_PaymentMethodParamsAubecs> - get copyWith => __$$_PaymentMethodParamsAubecsCopyWithImpl< - _$_PaymentMethodParamsAubecs>(this, _$identity); + _$$_PaymentMethodParamsIdealCopyWith<_$_PaymentMethodParamsIdeal> + get copyWith => __$$_PaymentMethodParamsIdealCopyWithImpl< + _$_PaymentMethodParamsIdeal>(this, _$identity); @override @optionalTypeArgs @@ -4657,6 +4696,7 @@ class _$_PaymentMethodParamsAubecs implements _PaymentMethodParamsAubecs { required TResult Function(PaymentMethodDataCardFromMethod paymentMethodData) cardFromMethodId, required TResult Function(PaymentMethodData paymentMethodData) alipay, + required TResult Function(PaymentMethodData paymentMethodData) cashAppPay, required TResult Function(PaymentMethodDataIdeal paymentMethodData) ideal, required TResult Function(PaymentMethodDataAubecs paymentMethodData) aubecs, required TResult Function(PaymentMethodData paymentMethodData) bancontact, @@ -4677,7 +4717,7 @@ class _$_PaymentMethodParamsAubecs implements _PaymentMethodParamsAubecs { required TResult Function(PaymentMethodDataUsBank paymentMethodData) usBankAccount, }) { - return aubecs(paymentMethodData); + return ideal(paymentMethodData); } @override @@ -4689,6 +4729,7 @@ class _$_PaymentMethodParamsAubecs implements _PaymentMethodParamsAubecs { TResult? Function(PaymentMethodDataCardFromMethod paymentMethodData)? cardFromMethodId, TResult? Function(PaymentMethodData paymentMethodData)? alipay, + TResult? Function(PaymentMethodData paymentMethodData)? cashAppPay, TResult? Function(PaymentMethodDataIdeal paymentMethodData)? ideal, TResult? Function(PaymentMethodDataAubecs paymentMethodData)? aubecs, TResult? Function(PaymentMethodData paymentMethodData)? bancontact, @@ -4707,7 +4748,7 @@ class _$_PaymentMethodParamsAubecs implements _PaymentMethodParamsAubecs { TResult? Function(PaymentMethodData paymentMethodData)? payPal, TResult? Function(PaymentMethodDataUsBank paymentMethodData)? usBankAccount, }) { - return aubecs?.call(paymentMethodData); + return ideal?.call(paymentMethodData); } @override @@ -4719,6 +4760,7 @@ class _$_PaymentMethodParamsAubecs implements _PaymentMethodParamsAubecs { TResult Function(PaymentMethodDataCardFromMethod paymentMethodData)? cardFromMethodId, TResult Function(PaymentMethodData paymentMethodData)? alipay, + TResult Function(PaymentMethodData paymentMethodData)? cashAppPay, TResult Function(PaymentMethodDataIdeal paymentMethodData)? ideal, TResult Function(PaymentMethodDataAubecs paymentMethodData)? aubecs, TResult Function(PaymentMethodData paymentMethodData)? bancontact, @@ -4738,8 +4780,8 @@ class _$_PaymentMethodParamsAubecs implements _PaymentMethodParamsAubecs { TResult Function(PaymentMethodDataUsBank paymentMethodData)? usBankAccount, required TResult orElse(), }) { - if (aubecs != null) { - return aubecs(paymentMethodData); + if (ideal != null) { + return ideal(paymentMethodData); } return orElse(); } @@ -4753,6 +4795,7 @@ class _$_PaymentMethodParamsAubecs implements _PaymentMethodParamsAubecs { required TResult Function(_PaymentMethodParamsCardWithMethodId value) cardFromMethodId, required TResult Function(_PaymentMethodParamsAlipay value) alipay, + required TResult Function(_PaymentMethodParamsCashAppPay value) cashAppPay, required TResult Function(_PaymentMethodParamsIdeal value) ideal, required TResult Function(_PaymentMethodParamsAubecs value) aubecs, required TResult Function(_PaymentMethodParamsBankContact value) bancontact, @@ -4772,7 +4815,7 @@ class _$_PaymentMethodParamsAubecs implements _PaymentMethodParamsAubecs { required TResult Function(_PaymentMethodParamsUsBankAccount value) usBankAccount, }) { - return aubecs(this); + return ideal(this); } @override @@ -4783,6 +4826,7 @@ class _$_PaymentMethodParamsAubecs implements _PaymentMethodParamsAubecs { TResult? Function(_PaymentMethodParamsCardWithMethodId value)? cardFromMethodId, TResult? Function(_PaymentMethodParamsAlipay value)? alipay, + TResult? Function(_PaymentMethodParamsCashAppPay value)? cashAppPay, TResult? Function(_PaymentMethodParamsIdeal value)? ideal, TResult? Function(_PaymentMethodParamsAubecs value)? aubecs, TResult? Function(_PaymentMethodParamsBankContact value)? bancontact, @@ -4801,7 +4845,7 @@ class _$_PaymentMethodParamsAubecs implements _PaymentMethodParamsAubecs { TResult? Function(_PaymentMethodParamsPayPal value)? payPal, TResult? Function(_PaymentMethodParamsUsBankAccount value)? usBankAccount, }) { - return aubecs?.call(this); + return ideal?.call(this); } @override @@ -4812,6 +4856,7 @@ class _$_PaymentMethodParamsAubecs implements _PaymentMethodParamsAubecs { TResult Function(_PaymentMethodParamsCardWithMethodId value)? cardFromMethodId, TResult Function(_PaymentMethodParamsAlipay value)? alipay, + TResult Function(_PaymentMethodParamsCashAppPay value)? cashAppPay, TResult Function(_PaymentMethodParamsIdeal value)? ideal, TResult Function(_PaymentMethodParamsAubecs value)? aubecs, TResult Function(_PaymentMethodParamsBankContact value)? bancontact, @@ -4831,57 +4876,57 @@ class _$_PaymentMethodParamsAubecs implements _PaymentMethodParamsAubecs { TResult Function(_PaymentMethodParamsUsBankAccount value)? usBankAccount, required TResult orElse(), }) { - if (aubecs != null) { - return aubecs(this); + if (ideal != null) { + return ideal(this); } return orElse(); } @override Map toJson() { - return _$$_PaymentMethodParamsAubecsToJson( + return _$$_PaymentMethodParamsIdealToJson( this, ); } } -abstract class _PaymentMethodParamsAubecs implements PaymentMethodParams { - const factory _PaymentMethodParamsAubecs( - {required final PaymentMethodDataAubecs paymentMethodData}) = - _$_PaymentMethodParamsAubecs; +abstract class _PaymentMethodParamsIdeal implements PaymentMethodParams { + const factory _PaymentMethodParamsIdeal( + {required final PaymentMethodDataIdeal paymentMethodData}) = + _$_PaymentMethodParamsIdeal; - factory _PaymentMethodParamsAubecs.fromJson(Map json) = - _$_PaymentMethodParamsAubecs.fromJson; + factory _PaymentMethodParamsIdeal.fromJson(Map json) = + _$_PaymentMethodParamsIdeal.fromJson; @override /// Paymentmethod data for this paymentmethod. - PaymentMethodDataAubecs get paymentMethodData; + PaymentMethodDataIdeal get paymentMethodData; @JsonKey(ignore: true) - _$$_PaymentMethodParamsAubecsCopyWith<_$_PaymentMethodParamsAubecs> + _$$_PaymentMethodParamsIdealCopyWith<_$_PaymentMethodParamsIdeal> get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$_PaymentMethodParamsBankContactCopyWith<$Res> { - factory _$$_PaymentMethodParamsBankContactCopyWith( - _$_PaymentMethodParamsBankContact value, - $Res Function(_$_PaymentMethodParamsBankContact) then) = - __$$_PaymentMethodParamsBankContactCopyWithImpl<$Res>; +abstract class _$$_PaymentMethodParamsAubecsCopyWith<$Res> { + factory _$$_PaymentMethodParamsAubecsCopyWith( + _$_PaymentMethodParamsAubecs value, + $Res Function(_$_PaymentMethodParamsAubecs) then) = + __$$_PaymentMethodParamsAubecsCopyWithImpl<$Res>; @useResult - $Res call({PaymentMethodData paymentMethodData}); + $Res call({PaymentMethodDataAubecs paymentMethodData}); - $PaymentMethodDataCopyWith<$Res> get paymentMethodData; + $PaymentMethodDataAubecsCopyWith<$Res> get paymentMethodData; } /// @nodoc -class __$$_PaymentMethodParamsBankContactCopyWithImpl<$Res> +class __$$_PaymentMethodParamsAubecsCopyWithImpl<$Res> extends _$PaymentMethodParamsCopyWithImpl<$Res, - _$_PaymentMethodParamsBankContact> - implements _$$_PaymentMethodParamsBankContactCopyWith<$Res> { - __$$_PaymentMethodParamsBankContactCopyWithImpl( - _$_PaymentMethodParamsBankContact _value, - $Res Function(_$_PaymentMethodParamsBankContact) _then) + _$_PaymentMethodParamsAubecs> + implements _$$_PaymentMethodParamsAubecsCopyWith<$Res> { + __$$_PaymentMethodParamsAubecsCopyWithImpl( + _$_PaymentMethodParamsAubecs _value, + $Res Function(_$_PaymentMethodParamsAubecs) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -4889,18 +4934,19 @@ class __$$_PaymentMethodParamsBankContactCopyWithImpl<$Res> $Res call({ Object? paymentMethodData = null, }) { - return _then(_$_PaymentMethodParamsBankContact( + return _then(_$_PaymentMethodParamsAubecs( paymentMethodData: null == paymentMethodData ? _value.paymentMethodData : paymentMethodData // ignore: cast_nullable_to_non_nullable - as PaymentMethodData, + as PaymentMethodDataAubecs, )); } @override @pragma('vm:prefer-inline') - $PaymentMethodDataCopyWith<$Res> get paymentMethodData { - return $PaymentMethodDataCopyWith<$Res>(_value.paymentMethodData, (value) { + $PaymentMethodDataAubecsCopyWith<$Res> get paymentMethodData { + return $PaymentMethodDataAubecsCopyWith<$Res>(_value.paymentMethodData, + (value) { return _then(_value.copyWith(paymentMethodData: value)); }); } @@ -4909,33 +4955,31 @@ class __$$_PaymentMethodParamsBankContactCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_PaymentMethodParamsBankContact - implements _PaymentMethodParamsBankContact { - const _$_PaymentMethodParamsBankContact( +class _$_PaymentMethodParamsAubecs implements _PaymentMethodParamsAubecs { + const _$_PaymentMethodParamsAubecs( {required this.paymentMethodData, final String? $type}) - : $type = $type ?? 'Bancontact'; + : $type = $type ?? 'AuBecsDebit'; - factory _$_PaymentMethodParamsBankContact.fromJson( - Map json) => - _$$_PaymentMethodParamsBankContactFromJson(json); + factory _$_PaymentMethodParamsAubecs.fromJson(Map json) => + _$$_PaymentMethodParamsAubecsFromJson(json); /// Paymentmethod data for this paymentmethod. @override - final PaymentMethodData paymentMethodData; + final PaymentMethodDataAubecs paymentMethodData; @JsonKey(name: 'paymentMethodType') final String $type; @override String toString() { - return 'PaymentMethodParams.bancontact(paymentMethodData: $paymentMethodData)'; + return 'PaymentMethodParams.aubecs(paymentMethodData: $paymentMethodData)'; } @override bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentMethodParamsBankContact && + other is _$_PaymentMethodParamsAubecs && (identical(other.paymentMethodData, paymentMethodData) || other.paymentMethodData == paymentMethodData)); } @@ -4947,9 +4991,9 @@ class _$_PaymentMethodParamsBankContact @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentMethodParamsBankContactCopyWith<_$_PaymentMethodParamsBankContact> - get copyWith => __$$_PaymentMethodParamsBankContactCopyWithImpl< - _$_PaymentMethodParamsBankContact>(this, _$identity); + _$$_PaymentMethodParamsAubecsCopyWith<_$_PaymentMethodParamsAubecs> + get copyWith => __$$_PaymentMethodParamsAubecsCopyWithImpl< + _$_PaymentMethodParamsAubecs>(this, _$identity); @override @optionalTypeArgs @@ -4960,6 +5004,7 @@ class _$_PaymentMethodParamsBankContact required TResult Function(PaymentMethodDataCardFromMethod paymentMethodData) cardFromMethodId, required TResult Function(PaymentMethodData paymentMethodData) alipay, + required TResult Function(PaymentMethodData paymentMethodData) cashAppPay, required TResult Function(PaymentMethodDataIdeal paymentMethodData) ideal, required TResult Function(PaymentMethodDataAubecs paymentMethodData) aubecs, required TResult Function(PaymentMethodData paymentMethodData) bancontact, @@ -4980,7 +5025,7 @@ class _$_PaymentMethodParamsBankContact required TResult Function(PaymentMethodDataUsBank paymentMethodData) usBankAccount, }) { - return bancontact(paymentMethodData); + return aubecs(paymentMethodData); } @override @@ -4992,6 +5037,7 @@ class _$_PaymentMethodParamsBankContact TResult? Function(PaymentMethodDataCardFromMethod paymentMethodData)? cardFromMethodId, TResult? Function(PaymentMethodData paymentMethodData)? alipay, + TResult? Function(PaymentMethodData paymentMethodData)? cashAppPay, TResult? Function(PaymentMethodDataIdeal paymentMethodData)? ideal, TResult? Function(PaymentMethodDataAubecs paymentMethodData)? aubecs, TResult? Function(PaymentMethodData paymentMethodData)? bancontact, @@ -5010,7 +5056,7 @@ class _$_PaymentMethodParamsBankContact TResult? Function(PaymentMethodData paymentMethodData)? payPal, TResult? Function(PaymentMethodDataUsBank paymentMethodData)? usBankAccount, }) { - return bancontact?.call(paymentMethodData); + return aubecs?.call(paymentMethodData); } @override @@ -5022,6 +5068,7 @@ class _$_PaymentMethodParamsBankContact TResult Function(PaymentMethodDataCardFromMethod paymentMethodData)? cardFromMethodId, TResult Function(PaymentMethodData paymentMethodData)? alipay, + TResult Function(PaymentMethodData paymentMethodData)? cashAppPay, TResult Function(PaymentMethodDataIdeal paymentMethodData)? ideal, TResult Function(PaymentMethodDataAubecs paymentMethodData)? aubecs, TResult Function(PaymentMethodData paymentMethodData)? bancontact, @@ -5041,8 +5088,8 @@ class _$_PaymentMethodParamsBankContact TResult Function(PaymentMethodDataUsBank paymentMethodData)? usBankAccount, required TResult orElse(), }) { - if (bancontact != null) { - return bancontact(paymentMethodData); + if (aubecs != null) { + return aubecs(paymentMethodData); } return orElse(); } @@ -5056,6 +5103,7 @@ class _$_PaymentMethodParamsBankContact required TResult Function(_PaymentMethodParamsCardWithMethodId value) cardFromMethodId, required TResult Function(_PaymentMethodParamsAlipay value) alipay, + required TResult Function(_PaymentMethodParamsCashAppPay value) cashAppPay, required TResult Function(_PaymentMethodParamsIdeal value) ideal, required TResult Function(_PaymentMethodParamsAubecs value) aubecs, required TResult Function(_PaymentMethodParamsBankContact value) bancontact, @@ -5075,7 +5123,7 @@ class _$_PaymentMethodParamsBankContact required TResult Function(_PaymentMethodParamsUsBankAccount value) usBankAccount, }) { - return bancontact(this); + return aubecs(this); } @override @@ -5086,6 +5134,7 @@ class _$_PaymentMethodParamsBankContact TResult? Function(_PaymentMethodParamsCardWithMethodId value)? cardFromMethodId, TResult? Function(_PaymentMethodParamsAlipay value)? alipay, + TResult? Function(_PaymentMethodParamsCashAppPay value)? cashAppPay, TResult? Function(_PaymentMethodParamsIdeal value)? ideal, TResult? Function(_PaymentMethodParamsAubecs value)? aubecs, TResult? Function(_PaymentMethodParamsBankContact value)? bancontact, @@ -5104,7 +5153,7 @@ class _$_PaymentMethodParamsBankContact TResult? Function(_PaymentMethodParamsPayPal value)? payPal, TResult? Function(_PaymentMethodParamsUsBankAccount value)? usBankAccount, }) { - return bancontact?.call(this); + return aubecs?.call(this); } @override @@ -5115,6 +5164,7 @@ class _$_PaymentMethodParamsBankContact TResult Function(_PaymentMethodParamsCardWithMethodId value)? cardFromMethodId, TResult Function(_PaymentMethodParamsAlipay value)? alipay, + TResult Function(_PaymentMethodParamsCashAppPay value)? cashAppPay, TResult Function(_PaymentMethodParamsIdeal value)? ideal, TResult Function(_PaymentMethodParamsAubecs value)? aubecs, TResult Function(_PaymentMethodParamsBankContact value)? bancontact, @@ -5134,43 +5184,43 @@ class _$_PaymentMethodParamsBankContact TResult Function(_PaymentMethodParamsUsBankAccount value)? usBankAccount, required TResult orElse(), }) { - if (bancontact != null) { - return bancontact(this); + if (aubecs != null) { + return aubecs(this); } return orElse(); } @override Map toJson() { - return _$$_PaymentMethodParamsBankContactToJson( + return _$$_PaymentMethodParamsAubecsToJson( this, ); } } -abstract class _PaymentMethodParamsBankContact implements PaymentMethodParams { - const factory _PaymentMethodParamsBankContact( - {required final PaymentMethodData paymentMethodData}) = - _$_PaymentMethodParamsBankContact; +abstract class _PaymentMethodParamsAubecs implements PaymentMethodParams { + const factory _PaymentMethodParamsAubecs( + {required final PaymentMethodDataAubecs paymentMethodData}) = + _$_PaymentMethodParamsAubecs; - factory _PaymentMethodParamsBankContact.fromJson(Map json) = - _$_PaymentMethodParamsBankContact.fromJson; + factory _PaymentMethodParamsAubecs.fromJson(Map json) = + _$_PaymentMethodParamsAubecs.fromJson; @override /// Paymentmethod data for this paymentmethod. - PaymentMethodData get paymentMethodData; + PaymentMethodDataAubecs get paymentMethodData; @JsonKey(ignore: true) - _$$_PaymentMethodParamsBankContactCopyWith<_$_PaymentMethodParamsBankContact> + _$$_PaymentMethodParamsAubecsCopyWith<_$_PaymentMethodParamsAubecs> get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$_PaymentMethodParamsGiroPayCopyWith<$Res> { - factory _$$_PaymentMethodParamsGiroPayCopyWith( - _$_PaymentMethodParamsGiroPay value, - $Res Function(_$_PaymentMethodParamsGiroPay) then) = - __$$_PaymentMethodParamsGiroPayCopyWithImpl<$Res>; +abstract class _$$_PaymentMethodParamsBankContactCopyWith<$Res> { + factory _$$_PaymentMethodParamsBankContactCopyWith( + _$_PaymentMethodParamsBankContact value, + $Res Function(_$_PaymentMethodParamsBankContact) then) = + __$$_PaymentMethodParamsBankContactCopyWithImpl<$Res>; @useResult $Res call({PaymentMethodData paymentMethodData}); @@ -5178,21 +5228,21 @@ abstract class _$$_PaymentMethodParamsGiroPayCopyWith<$Res> { } /// @nodoc -class __$$_PaymentMethodParamsGiroPayCopyWithImpl<$Res> +class __$$_PaymentMethodParamsBankContactCopyWithImpl<$Res> extends _$PaymentMethodParamsCopyWithImpl<$Res, - _$_PaymentMethodParamsGiroPay> - implements _$$_PaymentMethodParamsGiroPayCopyWith<$Res> { - __$$_PaymentMethodParamsGiroPayCopyWithImpl( - _$_PaymentMethodParamsGiroPay _value, - $Res Function(_$_PaymentMethodParamsGiroPay) _then) - : super(_value, _then); + _$_PaymentMethodParamsBankContact> + implements _$$_PaymentMethodParamsBankContactCopyWith<$Res> { + __$$_PaymentMethodParamsBankContactCopyWithImpl( + _$_PaymentMethodParamsBankContact _value, + $Res Function(_$_PaymentMethodParamsBankContact) _then) + : super(_value, _then); @pragma('vm:prefer-inline') @override $Res call({ Object? paymentMethodData = null, }) { - return _then(_$_PaymentMethodParamsGiroPay( + return _then(_$_PaymentMethodParamsBankContact( paymentMethodData: null == paymentMethodData ? _value.paymentMethodData : paymentMethodData // ignore: cast_nullable_to_non_nullable @@ -5212,13 +5262,15 @@ class __$$_PaymentMethodParamsGiroPayCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_PaymentMethodParamsGiroPay implements _PaymentMethodParamsGiroPay { - const _$_PaymentMethodParamsGiroPay( +class _$_PaymentMethodParamsBankContact + implements _PaymentMethodParamsBankContact { + const _$_PaymentMethodParamsBankContact( {required this.paymentMethodData, final String? $type}) - : $type = $type ?? 'Giropay'; + : $type = $type ?? 'Bancontact'; - factory _$_PaymentMethodParamsGiroPay.fromJson(Map json) => - _$$_PaymentMethodParamsGiroPayFromJson(json); + factory _$_PaymentMethodParamsBankContact.fromJson( + Map json) => + _$$_PaymentMethodParamsBankContactFromJson(json); /// Paymentmethod data for this paymentmethod. @override @@ -5229,14 +5281,14 @@ class _$_PaymentMethodParamsGiroPay implements _PaymentMethodParamsGiroPay { @override String toString() { - return 'PaymentMethodParams.giroPay(paymentMethodData: $paymentMethodData)'; + return 'PaymentMethodParams.bancontact(paymentMethodData: $paymentMethodData)'; } @override bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentMethodParamsGiroPay && + other is _$_PaymentMethodParamsBankContact && (identical(other.paymentMethodData, paymentMethodData) || other.paymentMethodData == paymentMethodData)); } @@ -5248,9 +5300,9 @@ class _$_PaymentMethodParamsGiroPay implements _PaymentMethodParamsGiroPay { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentMethodParamsGiroPayCopyWith<_$_PaymentMethodParamsGiroPay> - get copyWith => __$$_PaymentMethodParamsGiroPayCopyWithImpl< - _$_PaymentMethodParamsGiroPay>(this, _$identity); + _$$_PaymentMethodParamsBankContactCopyWith<_$_PaymentMethodParamsBankContact> + get copyWith => __$$_PaymentMethodParamsBankContactCopyWithImpl< + _$_PaymentMethodParamsBankContact>(this, _$identity); @override @optionalTypeArgs @@ -5261,6 +5313,7 @@ class _$_PaymentMethodParamsGiroPay implements _PaymentMethodParamsGiroPay { required TResult Function(PaymentMethodDataCardFromMethod paymentMethodData) cardFromMethodId, required TResult Function(PaymentMethodData paymentMethodData) alipay, + required TResult Function(PaymentMethodData paymentMethodData) cashAppPay, required TResult Function(PaymentMethodDataIdeal paymentMethodData) ideal, required TResult Function(PaymentMethodDataAubecs paymentMethodData) aubecs, required TResult Function(PaymentMethodData paymentMethodData) bancontact, @@ -5281,7 +5334,7 @@ class _$_PaymentMethodParamsGiroPay implements _PaymentMethodParamsGiroPay { required TResult Function(PaymentMethodDataUsBank paymentMethodData) usBankAccount, }) { - return giroPay(paymentMethodData); + return bancontact(paymentMethodData); } @override @@ -5293,6 +5346,7 @@ class _$_PaymentMethodParamsGiroPay implements _PaymentMethodParamsGiroPay { TResult? Function(PaymentMethodDataCardFromMethod paymentMethodData)? cardFromMethodId, TResult? Function(PaymentMethodData paymentMethodData)? alipay, + TResult? Function(PaymentMethodData paymentMethodData)? cashAppPay, TResult? Function(PaymentMethodDataIdeal paymentMethodData)? ideal, TResult? Function(PaymentMethodDataAubecs paymentMethodData)? aubecs, TResult? Function(PaymentMethodData paymentMethodData)? bancontact, @@ -5311,7 +5365,7 @@ class _$_PaymentMethodParamsGiroPay implements _PaymentMethodParamsGiroPay { TResult? Function(PaymentMethodData paymentMethodData)? payPal, TResult? Function(PaymentMethodDataUsBank paymentMethodData)? usBankAccount, }) { - return giroPay?.call(paymentMethodData); + return bancontact?.call(paymentMethodData); } @override @@ -5323,6 +5377,7 @@ class _$_PaymentMethodParamsGiroPay implements _PaymentMethodParamsGiroPay { TResult Function(PaymentMethodDataCardFromMethod paymentMethodData)? cardFromMethodId, TResult Function(PaymentMethodData paymentMethodData)? alipay, + TResult Function(PaymentMethodData paymentMethodData)? cashAppPay, TResult Function(PaymentMethodDataIdeal paymentMethodData)? ideal, TResult Function(PaymentMethodDataAubecs paymentMethodData)? aubecs, TResult Function(PaymentMethodData paymentMethodData)? bancontact, @@ -5342,8 +5397,8 @@ class _$_PaymentMethodParamsGiroPay implements _PaymentMethodParamsGiroPay { TResult Function(PaymentMethodDataUsBank paymentMethodData)? usBankAccount, required TResult orElse(), }) { - if (giroPay != null) { - return giroPay(paymentMethodData); + if (bancontact != null) { + return bancontact(paymentMethodData); } return orElse(); } @@ -5357,6 +5412,7 @@ class _$_PaymentMethodParamsGiroPay implements _PaymentMethodParamsGiroPay { required TResult Function(_PaymentMethodParamsCardWithMethodId value) cardFromMethodId, required TResult Function(_PaymentMethodParamsAlipay value) alipay, + required TResult Function(_PaymentMethodParamsCashAppPay value) cashAppPay, required TResult Function(_PaymentMethodParamsIdeal value) ideal, required TResult Function(_PaymentMethodParamsAubecs value) aubecs, required TResult Function(_PaymentMethodParamsBankContact value) bancontact, @@ -5376,7 +5432,7 @@ class _$_PaymentMethodParamsGiroPay implements _PaymentMethodParamsGiroPay { required TResult Function(_PaymentMethodParamsUsBankAccount value) usBankAccount, }) { - return giroPay(this); + return bancontact(this); } @override @@ -5387,6 +5443,7 @@ class _$_PaymentMethodParamsGiroPay implements _PaymentMethodParamsGiroPay { TResult? Function(_PaymentMethodParamsCardWithMethodId value)? cardFromMethodId, TResult? Function(_PaymentMethodParamsAlipay value)? alipay, + TResult? Function(_PaymentMethodParamsCashAppPay value)? cashAppPay, TResult? Function(_PaymentMethodParamsIdeal value)? ideal, TResult? Function(_PaymentMethodParamsAubecs value)? aubecs, TResult? Function(_PaymentMethodParamsBankContact value)? bancontact, @@ -5405,7 +5462,7 @@ class _$_PaymentMethodParamsGiroPay implements _PaymentMethodParamsGiroPay { TResult? Function(_PaymentMethodParamsPayPal value)? payPal, TResult? Function(_PaymentMethodParamsUsBankAccount value)? usBankAccount, }) { - return giroPay?.call(this); + return bancontact?.call(this); } @override @@ -5416,6 +5473,7 @@ class _$_PaymentMethodParamsGiroPay implements _PaymentMethodParamsGiroPay { TResult Function(_PaymentMethodParamsCardWithMethodId value)? cardFromMethodId, TResult Function(_PaymentMethodParamsAlipay value)? alipay, + TResult Function(_PaymentMethodParamsCashAppPay value)? cashAppPay, TResult Function(_PaymentMethodParamsIdeal value)? ideal, TResult Function(_PaymentMethodParamsAubecs value)? aubecs, TResult Function(_PaymentMethodParamsBankContact value)? bancontact, @@ -5435,42 +5493,43 @@ class _$_PaymentMethodParamsGiroPay implements _PaymentMethodParamsGiroPay { TResult Function(_PaymentMethodParamsUsBankAccount value)? usBankAccount, required TResult orElse(), }) { - if (giroPay != null) { - return giroPay(this); + if (bancontact != null) { + return bancontact(this); } return orElse(); } @override Map toJson() { - return _$$_PaymentMethodParamsGiroPayToJson( + return _$$_PaymentMethodParamsBankContactToJson( this, ); } } -abstract class _PaymentMethodParamsGiroPay implements PaymentMethodParams { - const factory _PaymentMethodParamsGiroPay( +abstract class _PaymentMethodParamsBankContact implements PaymentMethodParams { + const factory _PaymentMethodParamsBankContact( {required final PaymentMethodData paymentMethodData}) = - _$_PaymentMethodParamsGiroPay; + _$_PaymentMethodParamsBankContact; - factory _PaymentMethodParamsGiroPay.fromJson(Map json) = - _$_PaymentMethodParamsGiroPay.fromJson; + factory _PaymentMethodParamsBankContact.fromJson(Map json) = + _$_PaymentMethodParamsBankContact.fromJson; @override /// Paymentmethod data for this paymentmethod. PaymentMethodData get paymentMethodData; @JsonKey(ignore: true) - _$$_PaymentMethodParamsGiroPayCopyWith<_$_PaymentMethodParamsGiroPay> + _$$_PaymentMethodParamsBankContactCopyWith<_$_PaymentMethodParamsBankContact> get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$_PaymentMethodParamsEpsCopyWith<$Res> { - factory _$$_PaymentMethodParamsEpsCopyWith(_$_PaymentMethodParamsEps value, - $Res Function(_$_PaymentMethodParamsEps) then) = - __$$_PaymentMethodParamsEpsCopyWithImpl<$Res>; +abstract class _$$_PaymentMethodParamsGiroPayCopyWith<$Res> { + factory _$$_PaymentMethodParamsGiroPayCopyWith( + _$_PaymentMethodParamsGiroPay value, + $Res Function(_$_PaymentMethodParamsGiroPay) then) = + __$$_PaymentMethodParamsGiroPayCopyWithImpl<$Res>; @useResult $Res call({PaymentMethodData paymentMethodData}); @@ -5478,11 +5537,13 @@ abstract class _$$_PaymentMethodParamsEpsCopyWith<$Res> { } /// @nodoc -class __$$_PaymentMethodParamsEpsCopyWithImpl<$Res> - extends _$PaymentMethodParamsCopyWithImpl<$Res, _$_PaymentMethodParamsEps> - implements _$$_PaymentMethodParamsEpsCopyWith<$Res> { - __$$_PaymentMethodParamsEpsCopyWithImpl(_$_PaymentMethodParamsEps _value, - $Res Function(_$_PaymentMethodParamsEps) _then) +class __$$_PaymentMethodParamsGiroPayCopyWithImpl<$Res> + extends _$PaymentMethodParamsCopyWithImpl<$Res, + _$_PaymentMethodParamsGiroPay> + implements _$$_PaymentMethodParamsGiroPayCopyWith<$Res> { + __$$_PaymentMethodParamsGiroPayCopyWithImpl( + _$_PaymentMethodParamsGiroPay _value, + $Res Function(_$_PaymentMethodParamsGiroPay) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -5490,7 +5551,7 @@ class __$$_PaymentMethodParamsEpsCopyWithImpl<$Res> $Res call({ Object? paymentMethodData = null, }) { - return _then(_$_PaymentMethodParamsEps( + return _then(_$_PaymentMethodParamsGiroPay( paymentMethodData: null == paymentMethodData ? _value.paymentMethodData : paymentMethodData // ignore: cast_nullable_to_non_nullable @@ -5510,13 +5571,13 @@ class __$$_PaymentMethodParamsEpsCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_PaymentMethodParamsEps implements _PaymentMethodParamsEps { - const _$_PaymentMethodParamsEps( +class _$_PaymentMethodParamsGiroPay implements _PaymentMethodParamsGiroPay { + const _$_PaymentMethodParamsGiroPay( {required this.paymentMethodData, final String? $type}) - : $type = $type ?? 'Eps'; + : $type = $type ?? 'Giropay'; - factory _$_PaymentMethodParamsEps.fromJson(Map json) => - _$$_PaymentMethodParamsEpsFromJson(json); + factory _$_PaymentMethodParamsGiroPay.fromJson(Map json) => + _$$_PaymentMethodParamsGiroPayFromJson(json); /// Paymentmethod data for this paymentmethod. @override @@ -5527,14 +5588,14 @@ class _$_PaymentMethodParamsEps implements _PaymentMethodParamsEps { @override String toString() { - return 'PaymentMethodParams.eps(paymentMethodData: $paymentMethodData)'; + return 'PaymentMethodParams.giroPay(paymentMethodData: $paymentMethodData)'; } @override bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentMethodParamsEps && + other is _$_PaymentMethodParamsGiroPay && (identical(other.paymentMethodData, paymentMethodData) || other.paymentMethodData == paymentMethodData)); } @@ -5546,9 +5607,9 @@ class _$_PaymentMethodParamsEps implements _PaymentMethodParamsEps { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentMethodParamsEpsCopyWith<_$_PaymentMethodParamsEps> get copyWith => - __$$_PaymentMethodParamsEpsCopyWithImpl<_$_PaymentMethodParamsEps>( - this, _$identity); + _$$_PaymentMethodParamsGiroPayCopyWith<_$_PaymentMethodParamsGiroPay> + get copyWith => __$$_PaymentMethodParamsGiroPayCopyWithImpl< + _$_PaymentMethodParamsGiroPay>(this, _$identity); @override @optionalTypeArgs @@ -5559,6 +5620,7 @@ class _$_PaymentMethodParamsEps implements _PaymentMethodParamsEps { required TResult Function(PaymentMethodDataCardFromMethod paymentMethodData) cardFromMethodId, required TResult Function(PaymentMethodData paymentMethodData) alipay, + required TResult Function(PaymentMethodData paymentMethodData) cashAppPay, required TResult Function(PaymentMethodDataIdeal paymentMethodData) ideal, required TResult Function(PaymentMethodDataAubecs paymentMethodData) aubecs, required TResult Function(PaymentMethodData paymentMethodData) bancontact, @@ -5579,7 +5641,7 @@ class _$_PaymentMethodParamsEps implements _PaymentMethodParamsEps { required TResult Function(PaymentMethodDataUsBank paymentMethodData) usBankAccount, }) { - return eps(paymentMethodData); + return giroPay(paymentMethodData); } @override @@ -5591,6 +5653,7 @@ class _$_PaymentMethodParamsEps implements _PaymentMethodParamsEps { TResult? Function(PaymentMethodDataCardFromMethod paymentMethodData)? cardFromMethodId, TResult? Function(PaymentMethodData paymentMethodData)? alipay, + TResult? Function(PaymentMethodData paymentMethodData)? cashAppPay, TResult? Function(PaymentMethodDataIdeal paymentMethodData)? ideal, TResult? Function(PaymentMethodDataAubecs paymentMethodData)? aubecs, TResult? Function(PaymentMethodData paymentMethodData)? bancontact, @@ -5609,7 +5672,7 @@ class _$_PaymentMethodParamsEps implements _PaymentMethodParamsEps { TResult? Function(PaymentMethodData paymentMethodData)? payPal, TResult? Function(PaymentMethodDataUsBank paymentMethodData)? usBankAccount, }) { - return eps?.call(paymentMethodData); + return giroPay?.call(paymentMethodData); } @override @@ -5621,6 +5684,7 @@ class _$_PaymentMethodParamsEps implements _PaymentMethodParamsEps { TResult Function(PaymentMethodDataCardFromMethod paymentMethodData)? cardFromMethodId, TResult Function(PaymentMethodData paymentMethodData)? alipay, + TResult Function(PaymentMethodData paymentMethodData)? cashAppPay, TResult Function(PaymentMethodDataIdeal paymentMethodData)? ideal, TResult Function(PaymentMethodDataAubecs paymentMethodData)? aubecs, TResult Function(PaymentMethodData paymentMethodData)? bancontact, @@ -5640,8 +5704,8 @@ class _$_PaymentMethodParamsEps implements _PaymentMethodParamsEps { TResult Function(PaymentMethodDataUsBank paymentMethodData)? usBankAccount, required TResult orElse(), }) { - if (eps != null) { - return eps(paymentMethodData); + if (giroPay != null) { + return giroPay(paymentMethodData); } return orElse(); } @@ -5655,6 +5719,7 @@ class _$_PaymentMethodParamsEps implements _PaymentMethodParamsEps { required TResult Function(_PaymentMethodParamsCardWithMethodId value) cardFromMethodId, required TResult Function(_PaymentMethodParamsAlipay value) alipay, + required TResult Function(_PaymentMethodParamsCashAppPay value) cashAppPay, required TResult Function(_PaymentMethodParamsIdeal value) ideal, required TResult Function(_PaymentMethodParamsAubecs value) aubecs, required TResult Function(_PaymentMethodParamsBankContact value) bancontact, @@ -5674,7 +5739,7 @@ class _$_PaymentMethodParamsEps implements _PaymentMethodParamsEps { required TResult Function(_PaymentMethodParamsUsBankAccount value) usBankAccount, }) { - return eps(this); + return giroPay(this); } @override @@ -5685,6 +5750,7 @@ class _$_PaymentMethodParamsEps implements _PaymentMethodParamsEps { TResult? Function(_PaymentMethodParamsCardWithMethodId value)? cardFromMethodId, TResult? Function(_PaymentMethodParamsAlipay value)? alipay, + TResult? Function(_PaymentMethodParamsCashAppPay value)? cashAppPay, TResult? Function(_PaymentMethodParamsIdeal value)? ideal, TResult? Function(_PaymentMethodParamsAubecs value)? aubecs, TResult? Function(_PaymentMethodParamsBankContact value)? bancontact, @@ -5703,7 +5769,7 @@ class _$_PaymentMethodParamsEps implements _PaymentMethodParamsEps { TResult? Function(_PaymentMethodParamsPayPal value)? payPal, TResult? Function(_PaymentMethodParamsUsBankAccount value)? usBankAccount, }) { - return eps?.call(this); + return giroPay?.call(this); } @override @@ -5714,6 +5780,7 @@ class _$_PaymentMethodParamsEps implements _PaymentMethodParamsEps { TResult Function(_PaymentMethodParamsCardWithMethodId value)? cardFromMethodId, TResult Function(_PaymentMethodParamsAlipay value)? alipay, + TResult Function(_PaymentMethodParamsCashAppPay value)? cashAppPay, TResult Function(_PaymentMethodParamsIdeal value)? ideal, TResult Function(_PaymentMethodParamsAubecs value)? aubecs, TResult Function(_PaymentMethodParamsBankContact value)? bancontact, @@ -5733,43 +5800,42 @@ class _$_PaymentMethodParamsEps implements _PaymentMethodParamsEps { TResult Function(_PaymentMethodParamsUsBankAccount value)? usBankAccount, required TResult orElse(), }) { - if (eps != null) { - return eps(this); + if (giroPay != null) { + return giroPay(this); } return orElse(); } @override Map toJson() { - return _$$_PaymentMethodParamsEpsToJson( + return _$$_PaymentMethodParamsGiroPayToJson( this, ); } } -abstract class _PaymentMethodParamsEps implements PaymentMethodParams { - const factory _PaymentMethodParamsEps( +abstract class _PaymentMethodParamsGiroPay implements PaymentMethodParams { + const factory _PaymentMethodParamsGiroPay( {required final PaymentMethodData paymentMethodData}) = - _$_PaymentMethodParamsEps; + _$_PaymentMethodParamsGiroPay; - factory _PaymentMethodParamsEps.fromJson(Map json) = - _$_PaymentMethodParamsEps.fromJson; + factory _PaymentMethodParamsGiroPay.fromJson(Map json) = + _$_PaymentMethodParamsGiroPay.fromJson; @override /// Paymentmethod data for this paymentmethod. PaymentMethodData get paymentMethodData; @JsonKey(ignore: true) - _$$_PaymentMethodParamsEpsCopyWith<_$_PaymentMethodParamsEps> get copyWith => - throw _privateConstructorUsedError; + _$$_PaymentMethodParamsGiroPayCopyWith<_$_PaymentMethodParamsGiroPay> + get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$_PaymentMethodParamsAffirmCopyWith<$Res> { - factory _$$_PaymentMethodParamsAffirmCopyWith( - _$_PaymentMethodParamsAffirm value, - $Res Function(_$_PaymentMethodParamsAffirm) then) = - __$$_PaymentMethodParamsAffirmCopyWithImpl<$Res>; +abstract class _$$_PaymentMethodParamsEpsCopyWith<$Res> { + factory _$$_PaymentMethodParamsEpsCopyWith(_$_PaymentMethodParamsEps value, + $Res Function(_$_PaymentMethodParamsEps) then) = + __$$_PaymentMethodParamsEpsCopyWithImpl<$Res>; @useResult $Res call({PaymentMethodData paymentMethodData}); @@ -5777,13 +5843,11 @@ abstract class _$$_PaymentMethodParamsAffirmCopyWith<$Res> { } /// @nodoc -class __$$_PaymentMethodParamsAffirmCopyWithImpl<$Res> - extends _$PaymentMethodParamsCopyWithImpl<$Res, - _$_PaymentMethodParamsAffirm> - implements _$$_PaymentMethodParamsAffirmCopyWith<$Res> { - __$$_PaymentMethodParamsAffirmCopyWithImpl( - _$_PaymentMethodParamsAffirm _value, - $Res Function(_$_PaymentMethodParamsAffirm) _then) +class __$$_PaymentMethodParamsEpsCopyWithImpl<$Res> + extends _$PaymentMethodParamsCopyWithImpl<$Res, _$_PaymentMethodParamsEps> + implements _$$_PaymentMethodParamsEpsCopyWith<$Res> { + __$$_PaymentMethodParamsEpsCopyWithImpl(_$_PaymentMethodParamsEps _value, + $Res Function(_$_PaymentMethodParamsEps) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -5791,7 +5855,7 @@ class __$$_PaymentMethodParamsAffirmCopyWithImpl<$Res> $Res call({ Object? paymentMethodData = null, }) { - return _then(_$_PaymentMethodParamsAffirm( + return _then(_$_PaymentMethodParamsEps( paymentMethodData: null == paymentMethodData ? _value.paymentMethodData : paymentMethodData // ignore: cast_nullable_to_non_nullable @@ -5811,13 +5875,13 @@ class __$$_PaymentMethodParamsAffirmCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_PaymentMethodParamsAffirm implements _PaymentMethodParamsAffirm { - const _$_PaymentMethodParamsAffirm( +class _$_PaymentMethodParamsEps implements _PaymentMethodParamsEps { + const _$_PaymentMethodParamsEps( {required this.paymentMethodData, final String? $type}) - : $type = $type ?? 'Affirm'; + : $type = $type ?? 'Eps'; - factory _$_PaymentMethodParamsAffirm.fromJson(Map json) => - _$$_PaymentMethodParamsAffirmFromJson(json); + factory _$_PaymentMethodParamsEps.fromJson(Map json) => + _$$_PaymentMethodParamsEpsFromJson(json); /// Paymentmethod data for this paymentmethod. @override @@ -5828,14 +5892,14 @@ class _$_PaymentMethodParamsAffirm implements _PaymentMethodParamsAffirm { @override String toString() { - return 'PaymentMethodParams.affirm(paymentMethodData: $paymentMethodData)'; + return 'PaymentMethodParams.eps(paymentMethodData: $paymentMethodData)'; } @override bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentMethodParamsAffirm && + other is _$_PaymentMethodParamsEps && (identical(other.paymentMethodData, paymentMethodData) || other.paymentMethodData == paymentMethodData)); } @@ -5847,9 +5911,9 @@ class _$_PaymentMethodParamsAffirm implements _PaymentMethodParamsAffirm { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentMethodParamsAffirmCopyWith<_$_PaymentMethodParamsAffirm> - get copyWith => __$$_PaymentMethodParamsAffirmCopyWithImpl< - _$_PaymentMethodParamsAffirm>(this, _$identity); + _$$_PaymentMethodParamsEpsCopyWith<_$_PaymentMethodParamsEps> get copyWith => + __$$_PaymentMethodParamsEpsCopyWithImpl<_$_PaymentMethodParamsEps>( + this, _$identity); @override @optionalTypeArgs @@ -5860,6 +5924,7 @@ class _$_PaymentMethodParamsAffirm implements _PaymentMethodParamsAffirm { required TResult Function(PaymentMethodDataCardFromMethod paymentMethodData) cardFromMethodId, required TResult Function(PaymentMethodData paymentMethodData) alipay, + required TResult Function(PaymentMethodData paymentMethodData) cashAppPay, required TResult Function(PaymentMethodDataIdeal paymentMethodData) ideal, required TResult Function(PaymentMethodDataAubecs paymentMethodData) aubecs, required TResult Function(PaymentMethodData paymentMethodData) bancontact, @@ -5880,7 +5945,7 @@ class _$_PaymentMethodParamsAffirm implements _PaymentMethodParamsAffirm { required TResult Function(PaymentMethodDataUsBank paymentMethodData) usBankAccount, }) { - return affirm(paymentMethodData); + return eps(paymentMethodData); } @override @@ -5892,6 +5957,7 @@ class _$_PaymentMethodParamsAffirm implements _PaymentMethodParamsAffirm { TResult? Function(PaymentMethodDataCardFromMethod paymentMethodData)? cardFromMethodId, TResult? Function(PaymentMethodData paymentMethodData)? alipay, + TResult? Function(PaymentMethodData paymentMethodData)? cashAppPay, TResult? Function(PaymentMethodDataIdeal paymentMethodData)? ideal, TResult? Function(PaymentMethodDataAubecs paymentMethodData)? aubecs, TResult? Function(PaymentMethodData paymentMethodData)? bancontact, @@ -5910,7 +5976,7 @@ class _$_PaymentMethodParamsAffirm implements _PaymentMethodParamsAffirm { TResult? Function(PaymentMethodData paymentMethodData)? payPal, TResult? Function(PaymentMethodDataUsBank paymentMethodData)? usBankAccount, }) { - return affirm?.call(paymentMethodData); + return eps?.call(paymentMethodData); } @override @@ -5922,6 +5988,7 @@ class _$_PaymentMethodParamsAffirm implements _PaymentMethodParamsAffirm { TResult Function(PaymentMethodDataCardFromMethod paymentMethodData)? cardFromMethodId, TResult Function(PaymentMethodData paymentMethodData)? alipay, + TResult Function(PaymentMethodData paymentMethodData)? cashAppPay, TResult Function(PaymentMethodDataIdeal paymentMethodData)? ideal, TResult Function(PaymentMethodDataAubecs paymentMethodData)? aubecs, TResult Function(PaymentMethodData paymentMethodData)? bancontact, @@ -5941,8 +6008,8 @@ class _$_PaymentMethodParamsAffirm implements _PaymentMethodParamsAffirm { TResult Function(PaymentMethodDataUsBank paymentMethodData)? usBankAccount, required TResult orElse(), }) { - if (affirm != null) { - return affirm(paymentMethodData); + if (eps != null) { + return eps(paymentMethodData); } return orElse(); } @@ -5956,6 +6023,7 @@ class _$_PaymentMethodParamsAffirm implements _PaymentMethodParamsAffirm { required TResult Function(_PaymentMethodParamsCardWithMethodId value) cardFromMethodId, required TResult Function(_PaymentMethodParamsAlipay value) alipay, + required TResult Function(_PaymentMethodParamsCashAppPay value) cashAppPay, required TResult Function(_PaymentMethodParamsIdeal value) ideal, required TResult Function(_PaymentMethodParamsAubecs value) aubecs, required TResult Function(_PaymentMethodParamsBankContact value) bancontact, @@ -5975,7 +6043,7 @@ class _$_PaymentMethodParamsAffirm implements _PaymentMethodParamsAffirm { required TResult Function(_PaymentMethodParamsUsBankAccount value) usBankAccount, }) { - return affirm(this); + return eps(this); } @override @@ -5986,6 +6054,7 @@ class _$_PaymentMethodParamsAffirm implements _PaymentMethodParamsAffirm { TResult? Function(_PaymentMethodParamsCardWithMethodId value)? cardFromMethodId, TResult? Function(_PaymentMethodParamsAlipay value)? alipay, + TResult? Function(_PaymentMethodParamsCashAppPay value)? cashAppPay, TResult? Function(_PaymentMethodParamsIdeal value)? ideal, TResult? Function(_PaymentMethodParamsAubecs value)? aubecs, TResult? Function(_PaymentMethodParamsBankContact value)? bancontact, @@ -6004,7 +6073,7 @@ class _$_PaymentMethodParamsAffirm implements _PaymentMethodParamsAffirm { TResult? Function(_PaymentMethodParamsPayPal value)? payPal, TResult? Function(_PaymentMethodParamsUsBankAccount value)? usBankAccount, }) { - return affirm?.call(this); + return eps?.call(this); } @override @@ -6015,6 +6084,7 @@ class _$_PaymentMethodParamsAffirm implements _PaymentMethodParamsAffirm { TResult Function(_PaymentMethodParamsCardWithMethodId value)? cardFromMethodId, TResult Function(_PaymentMethodParamsAlipay value)? alipay, + TResult Function(_PaymentMethodParamsCashAppPay value)? cashAppPay, TResult Function(_PaymentMethodParamsIdeal value)? ideal, TResult Function(_PaymentMethodParamsAubecs value)? aubecs, TResult Function(_PaymentMethodParamsBankContact value)? bancontact, @@ -6034,42 +6104,43 @@ class _$_PaymentMethodParamsAffirm implements _PaymentMethodParamsAffirm { TResult Function(_PaymentMethodParamsUsBankAccount value)? usBankAccount, required TResult orElse(), }) { - if (affirm != null) { - return affirm(this); + if (eps != null) { + return eps(this); } return orElse(); } @override Map toJson() { - return _$$_PaymentMethodParamsAffirmToJson( + return _$$_PaymentMethodParamsEpsToJson( this, ); } } -abstract class _PaymentMethodParamsAffirm implements PaymentMethodParams { - const factory _PaymentMethodParamsAffirm( +abstract class _PaymentMethodParamsEps implements PaymentMethodParams { + const factory _PaymentMethodParamsEps( {required final PaymentMethodData paymentMethodData}) = - _$_PaymentMethodParamsAffirm; + _$_PaymentMethodParamsEps; - factory _PaymentMethodParamsAffirm.fromJson(Map json) = - _$_PaymentMethodParamsAffirm.fromJson; + factory _PaymentMethodParamsEps.fromJson(Map json) = + _$_PaymentMethodParamsEps.fromJson; @override /// Paymentmethod data for this paymentmethod. PaymentMethodData get paymentMethodData; @JsonKey(ignore: true) - _$$_PaymentMethodParamsAffirmCopyWith<_$_PaymentMethodParamsAffirm> - get copyWith => throw _privateConstructorUsedError; + _$$_PaymentMethodParamsEpsCopyWith<_$_PaymentMethodParamsEps> get copyWith => + throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$_PaymentMethodParamsPayCopyWith<$Res> { - factory _$$_PaymentMethodParamsPayCopyWith(_$_PaymentMethodParamsPay value, - $Res Function(_$_PaymentMethodParamsPay) then) = - __$$_PaymentMethodParamsPayCopyWithImpl<$Res>; +abstract class _$$_PaymentMethodParamsAffirmCopyWith<$Res> { + factory _$$_PaymentMethodParamsAffirmCopyWith( + _$_PaymentMethodParamsAffirm value, + $Res Function(_$_PaymentMethodParamsAffirm) then) = + __$$_PaymentMethodParamsAffirmCopyWithImpl<$Res>; @useResult $Res call({PaymentMethodData paymentMethodData}); @@ -6077,11 +6148,13 @@ abstract class _$$_PaymentMethodParamsPayCopyWith<$Res> { } /// @nodoc -class __$$_PaymentMethodParamsPayCopyWithImpl<$Res> - extends _$PaymentMethodParamsCopyWithImpl<$Res, _$_PaymentMethodParamsPay> - implements _$$_PaymentMethodParamsPayCopyWith<$Res> { - __$$_PaymentMethodParamsPayCopyWithImpl(_$_PaymentMethodParamsPay _value, - $Res Function(_$_PaymentMethodParamsPay) _then) +class __$$_PaymentMethodParamsAffirmCopyWithImpl<$Res> + extends _$PaymentMethodParamsCopyWithImpl<$Res, + _$_PaymentMethodParamsAffirm> + implements _$$_PaymentMethodParamsAffirmCopyWith<$Res> { + __$$_PaymentMethodParamsAffirmCopyWithImpl( + _$_PaymentMethodParamsAffirm _value, + $Res Function(_$_PaymentMethodParamsAffirm) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -6089,7 +6162,7 @@ class __$$_PaymentMethodParamsPayCopyWithImpl<$Res> $Res call({ Object? paymentMethodData = null, }) { - return _then(_$_PaymentMethodParamsPay( + return _then(_$_PaymentMethodParamsAffirm( paymentMethodData: null == paymentMethodData ? _value.paymentMethodData : paymentMethodData // ignore: cast_nullable_to_non_nullable @@ -6109,13 +6182,13 @@ class __$$_PaymentMethodParamsPayCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_PaymentMethodParamsPay implements _PaymentMethodParamsPay { - const _$_PaymentMethodParamsPay( +class _$_PaymentMethodParamsAffirm implements _PaymentMethodParamsAffirm { + const _$_PaymentMethodParamsAffirm( {required this.paymentMethodData, final String? $type}) - : $type = $type ?? 'GrabPay'; + : $type = $type ?? 'Affirm'; - factory _$_PaymentMethodParamsPay.fromJson(Map json) => - _$$_PaymentMethodParamsPayFromJson(json); + factory _$_PaymentMethodParamsAffirm.fromJson(Map json) => + _$$_PaymentMethodParamsAffirmFromJson(json); /// Paymentmethod data for this paymentmethod. @override @@ -6126,14 +6199,14 @@ class _$_PaymentMethodParamsPay implements _PaymentMethodParamsPay { @override String toString() { - return 'PaymentMethodParams.grabPay(paymentMethodData: $paymentMethodData)'; + return 'PaymentMethodParams.affirm(paymentMethodData: $paymentMethodData)'; } @override bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentMethodParamsPay && + other is _$_PaymentMethodParamsAffirm && (identical(other.paymentMethodData, paymentMethodData) || other.paymentMethodData == paymentMethodData)); } @@ -6145,9 +6218,9 @@ class _$_PaymentMethodParamsPay implements _PaymentMethodParamsPay { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentMethodParamsPayCopyWith<_$_PaymentMethodParamsPay> get copyWith => - __$$_PaymentMethodParamsPayCopyWithImpl<_$_PaymentMethodParamsPay>( - this, _$identity); + _$$_PaymentMethodParamsAffirmCopyWith<_$_PaymentMethodParamsAffirm> + get copyWith => __$$_PaymentMethodParamsAffirmCopyWithImpl< + _$_PaymentMethodParamsAffirm>(this, _$identity); @override @optionalTypeArgs @@ -6158,6 +6231,7 @@ class _$_PaymentMethodParamsPay implements _PaymentMethodParamsPay { required TResult Function(PaymentMethodDataCardFromMethod paymentMethodData) cardFromMethodId, required TResult Function(PaymentMethodData paymentMethodData) alipay, + required TResult Function(PaymentMethodData paymentMethodData) cashAppPay, required TResult Function(PaymentMethodDataIdeal paymentMethodData) ideal, required TResult Function(PaymentMethodDataAubecs paymentMethodData) aubecs, required TResult Function(PaymentMethodData paymentMethodData) bancontact, @@ -6178,7 +6252,7 @@ class _$_PaymentMethodParamsPay implements _PaymentMethodParamsPay { required TResult Function(PaymentMethodDataUsBank paymentMethodData) usBankAccount, }) { - return grabPay(paymentMethodData); + return affirm(paymentMethodData); } @override @@ -6190,6 +6264,7 @@ class _$_PaymentMethodParamsPay implements _PaymentMethodParamsPay { TResult? Function(PaymentMethodDataCardFromMethod paymentMethodData)? cardFromMethodId, TResult? Function(PaymentMethodData paymentMethodData)? alipay, + TResult? Function(PaymentMethodData paymentMethodData)? cashAppPay, TResult? Function(PaymentMethodDataIdeal paymentMethodData)? ideal, TResult? Function(PaymentMethodDataAubecs paymentMethodData)? aubecs, TResult? Function(PaymentMethodData paymentMethodData)? bancontact, @@ -6208,7 +6283,7 @@ class _$_PaymentMethodParamsPay implements _PaymentMethodParamsPay { TResult? Function(PaymentMethodData paymentMethodData)? payPal, TResult? Function(PaymentMethodDataUsBank paymentMethodData)? usBankAccount, }) { - return grabPay?.call(paymentMethodData); + return affirm?.call(paymentMethodData); } @override @@ -6220,6 +6295,7 @@ class _$_PaymentMethodParamsPay implements _PaymentMethodParamsPay { TResult Function(PaymentMethodDataCardFromMethod paymentMethodData)? cardFromMethodId, TResult Function(PaymentMethodData paymentMethodData)? alipay, + TResult Function(PaymentMethodData paymentMethodData)? cashAppPay, TResult Function(PaymentMethodDataIdeal paymentMethodData)? ideal, TResult Function(PaymentMethodDataAubecs paymentMethodData)? aubecs, TResult Function(PaymentMethodData paymentMethodData)? bancontact, @@ -6239,8 +6315,8 @@ class _$_PaymentMethodParamsPay implements _PaymentMethodParamsPay { TResult Function(PaymentMethodDataUsBank paymentMethodData)? usBankAccount, required TResult orElse(), }) { - if (grabPay != null) { - return grabPay(paymentMethodData); + if (affirm != null) { + return affirm(paymentMethodData); } return orElse(); } @@ -6254,6 +6330,7 @@ class _$_PaymentMethodParamsPay implements _PaymentMethodParamsPay { required TResult Function(_PaymentMethodParamsCardWithMethodId value) cardFromMethodId, required TResult Function(_PaymentMethodParamsAlipay value) alipay, + required TResult Function(_PaymentMethodParamsCashAppPay value) cashAppPay, required TResult Function(_PaymentMethodParamsIdeal value) ideal, required TResult Function(_PaymentMethodParamsAubecs value) aubecs, required TResult Function(_PaymentMethodParamsBankContact value) bancontact, @@ -6273,7 +6350,7 @@ class _$_PaymentMethodParamsPay implements _PaymentMethodParamsPay { required TResult Function(_PaymentMethodParamsUsBankAccount value) usBankAccount, }) { - return grabPay(this); + return affirm(this); } @override @@ -6284,6 +6361,7 @@ class _$_PaymentMethodParamsPay implements _PaymentMethodParamsPay { TResult? Function(_PaymentMethodParamsCardWithMethodId value)? cardFromMethodId, TResult? Function(_PaymentMethodParamsAlipay value)? alipay, + TResult? Function(_PaymentMethodParamsCashAppPay value)? cashAppPay, TResult? Function(_PaymentMethodParamsIdeal value)? ideal, TResult? Function(_PaymentMethodParamsAubecs value)? aubecs, TResult? Function(_PaymentMethodParamsBankContact value)? bancontact, @@ -6302,7 +6380,7 @@ class _$_PaymentMethodParamsPay implements _PaymentMethodParamsPay { TResult? Function(_PaymentMethodParamsPayPal value)? payPal, TResult? Function(_PaymentMethodParamsUsBankAccount value)? usBankAccount, }) { - return grabPay?.call(this); + return affirm?.call(this); } @override @@ -6313,6 +6391,7 @@ class _$_PaymentMethodParamsPay implements _PaymentMethodParamsPay { TResult Function(_PaymentMethodParamsCardWithMethodId value)? cardFromMethodId, TResult Function(_PaymentMethodParamsAlipay value)? alipay, + TResult Function(_PaymentMethodParamsCashAppPay value)? cashAppPay, TResult Function(_PaymentMethodParamsIdeal value)? ideal, TResult Function(_PaymentMethodParamsAubecs value)? aubecs, TResult Function(_PaymentMethodParamsBankContact value)? bancontact, @@ -6332,42 +6411,42 @@ class _$_PaymentMethodParamsPay implements _PaymentMethodParamsPay { TResult Function(_PaymentMethodParamsUsBankAccount value)? usBankAccount, required TResult orElse(), }) { - if (grabPay != null) { - return grabPay(this); + if (affirm != null) { + return affirm(this); } return orElse(); } @override Map toJson() { - return _$$_PaymentMethodParamsPayToJson( + return _$$_PaymentMethodParamsAffirmToJson( this, ); } } -abstract class _PaymentMethodParamsPay implements PaymentMethodParams { - const factory _PaymentMethodParamsPay( +abstract class _PaymentMethodParamsAffirm implements PaymentMethodParams { + const factory _PaymentMethodParamsAffirm( {required final PaymentMethodData paymentMethodData}) = - _$_PaymentMethodParamsPay; + _$_PaymentMethodParamsAffirm; - factory _PaymentMethodParamsPay.fromJson(Map json) = - _$_PaymentMethodParamsPay.fromJson; + factory _PaymentMethodParamsAffirm.fromJson(Map json) = + _$_PaymentMethodParamsAffirm.fromJson; @override /// Paymentmethod data for this paymentmethod. PaymentMethodData get paymentMethodData; @JsonKey(ignore: true) - _$$_PaymentMethodParamsPayCopyWith<_$_PaymentMethodParamsPay> get copyWith => - throw _privateConstructorUsedError; + _$$_PaymentMethodParamsAffirmCopyWith<_$_PaymentMethodParamsAffirm> + get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$_PaymentMethodParamsP24CopyWith<$Res> { - factory _$$_PaymentMethodParamsP24CopyWith(_$_PaymentMethodParamsP24 value, - $Res Function(_$_PaymentMethodParamsP24) then) = - __$$_PaymentMethodParamsP24CopyWithImpl<$Res>; +abstract class _$$_PaymentMethodParamsPayCopyWith<$Res> { + factory _$$_PaymentMethodParamsPayCopyWith(_$_PaymentMethodParamsPay value, + $Res Function(_$_PaymentMethodParamsPay) then) = + __$$_PaymentMethodParamsPayCopyWithImpl<$Res>; @useResult $Res call({PaymentMethodData paymentMethodData}); @@ -6375,11 +6454,11 @@ abstract class _$$_PaymentMethodParamsP24CopyWith<$Res> { } /// @nodoc -class __$$_PaymentMethodParamsP24CopyWithImpl<$Res> - extends _$PaymentMethodParamsCopyWithImpl<$Res, _$_PaymentMethodParamsP24> - implements _$$_PaymentMethodParamsP24CopyWith<$Res> { - __$$_PaymentMethodParamsP24CopyWithImpl(_$_PaymentMethodParamsP24 _value, - $Res Function(_$_PaymentMethodParamsP24) _then) +class __$$_PaymentMethodParamsPayCopyWithImpl<$Res> + extends _$PaymentMethodParamsCopyWithImpl<$Res, _$_PaymentMethodParamsPay> + implements _$$_PaymentMethodParamsPayCopyWith<$Res> { + __$$_PaymentMethodParamsPayCopyWithImpl(_$_PaymentMethodParamsPay _value, + $Res Function(_$_PaymentMethodParamsPay) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -6387,7 +6466,7 @@ class __$$_PaymentMethodParamsP24CopyWithImpl<$Res> $Res call({ Object? paymentMethodData = null, }) { - return _then(_$_PaymentMethodParamsP24( + return _then(_$_PaymentMethodParamsPay( paymentMethodData: null == paymentMethodData ? _value.paymentMethodData : paymentMethodData // ignore: cast_nullable_to_non_nullable @@ -6407,13 +6486,13 @@ class __$$_PaymentMethodParamsP24CopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_PaymentMethodParamsP24 implements _PaymentMethodParamsP24 { - const _$_PaymentMethodParamsP24( +class _$_PaymentMethodParamsPay implements _PaymentMethodParamsPay { + const _$_PaymentMethodParamsPay( {required this.paymentMethodData, final String? $type}) - : $type = $type ?? 'P24'; + : $type = $type ?? 'GrabPay'; - factory _$_PaymentMethodParamsP24.fromJson(Map json) => - _$$_PaymentMethodParamsP24FromJson(json); + factory _$_PaymentMethodParamsPay.fromJson(Map json) => + _$$_PaymentMethodParamsPayFromJson(json); /// Paymentmethod data for this paymentmethod. @override @@ -6424,14 +6503,14 @@ class _$_PaymentMethodParamsP24 implements _PaymentMethodParamsP24 { @override String toString() { - return 'PaymentMethodParams.p24(paymentMethodData: $paymentMethodData)'; + return 'PaymentMethodParams.grabPay(paymentMethodData: $paymentMethodData)'; } @override bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentMethodParamsP24 && + other is _$_PaymentMethodParamsPay && (identical(other.paymentMethodData, paymentMethodData) || other.paymentMethodData == paymentMethodData)); } @@ -6443,8 +6522,8 @@ class _$_PaymentMethodParamsP24 implements _PaymentMethodParamsP24 { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentMethodParamsP24CopyWith<_$_PaymentMethodParamsP24> get copyWith => - __$$_PaymentMethodParamsP24CopyWithImpl<_$_PaymentMethodParamsP24>( + _$$_PaymentMethodParamsPayCopyWith<_$_PaymentMethodParamsPay> get copyWith => + __$$_PaymentMethodParamsPayCopyWithImpl<_$_PaymentMethodParamsPay>( this, _$identity); @override @@ -6456,6 +6535,7 @@ class _$_PaymentMethodParamsP24 implements _PaymentMethodParamsP24 { required TResult Function(PaymentMethodDataCardFromMethod paymentMethodData) cardFromMethodId, required TResult Function(PaymentMethodData paymentMethodData) alipay, + required TResult Function(PaymentMethodData paymentMethodData) cashAppPay, required TResult Function(PaymentMethodDataIdeal paymentMethodData) ideal, required TResult Function(PaymentMethodDataAubecs paymentMethodData) aubecs, required TResult Function(PaymentMethodData paymentMethodData) bancontact, @@ -6476,7 +6556,7 @@ class _$_PaymentMethodParamsP24 implements _PaymentMethodParamsP24 { required TResult Function(PaymentMethodDataUsBank paymentMethodData) usBankAccount, }) { - return p24(paymentMethodData); + return grabPay(paymentMethodData); } @override @@ -6488,6 +6568,7 @@ class _$_PaymentMethodParamsP24 implements _PaymentMethodParamsP24 { TResult? Function(PaymentMethodDataCardFromMethod paymentMethodData)? cardFromMethodId, TResult? Function(PaymentMethodData paymentMethodData)? alipay, + TResult? Function(PaymentMethodData paymentMethodData)? cashAppPay, TResult? Function(PaymentMethodDataIdeal paymentMethodData)? ideal, TResult? Function(PaymentMethodDataAubecs paymentMethodData)? aubecs, TResult? Function(PaymentMethodData paymentMethodData)? bancontact, @@ -6506,7 +6587,7 @@ class _$_PaymentMethodParamsP24 implements _PaymentMethodParamsP24 { TResult? Function(PaymentMethodData paymentMethodData)? payPal, TResult? Function(PaymentMethodDataUsBank paymentMethodData)? usBankAccount, }) { - return p24?.call(paymentMethodData); + return grabPay?.call(paymentMethodData); } @override @@ -6518,6 +6599,7 @@ class _$_PaymentMethodParamsP24 implements _PaymentMethodParamsP24 { TResult Function(PaymentMethodDataCardFromMethod paymentMethodData)? cardFromMethodId, TResult Function(PaymentMethodData paymentMethodData)? alipay, + TResult Function(PaymentMethodData paymentMethodData)? cashAppPay, TResult Function(PaymentMethodDataIdeal paymentMethodData)? ideal, TResult Function(PaymentMethodDataAubecs paymentMethodData)? aubecs, TResult Function(PaymentMethodData paymentMethodData)? bancontact, @@ -6537,8 +6619,8 @@ class _$_PaymentMethodParamsP24 implements _PaymentMethodParamsP24 { TResult Function(PaymentMethodDataUsBank paymentMethodData)? usBankAccount, required TResult orElse(), }) { - if (p24 != null) { - return p24(paymentMethodData); + if (grabPay != null) { + return grabPay(paymentMethodData); } return orElse(); } @@ -6552,6 +6634,7 @@ class _$_PaymentMethodParamsP24 implements _PaymentMethodParamsP24 { required TResult Function(_PaymentMethodParamsCardWithMethodId value) cardFromMethodId, required TResult Function(_PaymentMethodParamsAlipay value) alipay, + required TResult Function(_PaymentMethodParamsCashAppPay value) cashAppPay, required TResult Function(_PaymentMethodParamsIdeal value) ideal, required TResult Function(_PaymentMethodParamsAubecs value) aubecs, required TResult Function(_PaymentMethodParamsBankContact value) bancontact, @@ -6571,7 +6654,7 @@ class _$_PaymentMethodParamsP24 implements _PaymentMethodParamsP24 { required TResult Function(_PaymentMethodParamsUsBankAccount value) usBankAccount, }) { - return p24(this); + return grabPay(this); } @override @@ -6582,6 +6665,7 @@ class _$_PaymentMethodParamsP24 implements _PaymentMethodParamsP24 { TResult? Function(_PaymentMethodParamsCardWithMethodId value)? cardFromMethodId, TResult? Function(_PaymentMethodParamsAlipay value)? alipay, + TResult? Function(_PaymentMethodParamsCashAppPay value)? cashAppPay, TResult? Function(_PaymentMethodParamsIdeal value)? ideal, TResult? Function(_PaymentMethodParamsAubecs value)? aubecs, TResult? Function(_PaymentMethodParamsBankContact value)? bancontact, @@ -6600,7 +6684,7 @@ class _$_PaymentMethodParamsP24 implements _PaymentMethodParamsP24 { TResult? Function(_PaymentMethodParamsPayPal value)? payPal, TResult? Function(_PaymentMethodParamsUsBankAccount value)? usBankAccount, }) { - return p24?.call(this); + return grabPay?.call(this); } @override @@ -6611,6 +6695,7 @@ class _$_PaymentMethodParamsP24 implements _PaymentMethodParamsP24 { TResult Function(_PaymentMethodParamsCardWithMethodId value)? cardFromMethodId, TResult Function(_PaymentMethodParamsAlipay value)? alipay, + TResult Function(_PaymentMethodParamsCashAppPay value)? cashAppPay, TResult Function(_PaymentMethodParamsIdeal value)? ideal, TResult Function(_PaymentMethodParamsAubecs value)? aubecs, TResult Function(_PaymentMethodParamsBankContact value)? bancontact, @@ -6630,54 +6715,54 @@ class _$_PaymentMethodParamsP24 implements _PaymentMethodParamsP24 { TResult Function(_PaymentMethodParamsUsBankAccount value)? usBankAccount, required TResult orElse(), }) { - if (p24 != null) { - return p24(this); + if (grabPay != null) { + return grabPay(this); } return orElse(); } @override Map toJson() { - return _$$_PaymentMethodParamsP24ToJson( + return _$$_PaymentMethodParamsPayToJson( this, ); } } -abstract class _PaymentMethodParamsP24 implements PaymentMethodParams { - const factory _PaymentMethodParamsP24( +abstract class _PaymentMethodParamsPay implements PaymentMethodParams { + const factory _PaymentMethodParamsPay( {required final PaymentMethodData paymentMethodData}) = - _$_PaymentMethodParamsP24; + _$_PaymentMethodParamsPay; - factory _PaymentMethodParamsP24.fromJson(Map json) = - _$_PaymentMethodParamsP24.fromJson; + factory _PaymentMethodParamsPay.fromJson(Map json) = + _$_PaymentMethodParamsPay.fromJson; @override /// Paymentmethod data for this paymentmethod. PaymentMethodData get paymentMethodData; @JsonKey(ignore: true) - _$$_PaymentMethodParamsP24CopyWith<_$_PaymentMethodParamsP24> get copyWith => + _$$_PaymentMethodParamsPayCopyWith<_$_PaymentMethodParamsPay> get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$_PaymentMethodParamsFpxCopyWith<$Res> { - factory _$$_PaymentMethodParamsFpxCopyWith(_$_PaymentMethodParamsFpx value, - $Res Function(_$_PaymentMethodParamsFpx) then) = - __$$_PaymentMethodParamsFpxCopyWithImpl<$Res>; +abstract class _$$_PaymentMethodParamsP24CopyWith<$Res> { + factory _$$_PaymentMethodParamsP24CopyWith(_$_PaymentMethodParamsP24 value, + $Res Function(_$_PaymentMethodParamsP24) then) = + __$$_PaymentMethodParamsP24CopyWithImpl<$Res>; @useResult - $Res call({PaymentMethodDataFpx paymentMethodData}); + $Res call({PaymentMethodData paymentMethodData}); - $PaymentMethodDataFpxCopyWith<$Res> get paymentMethodData; + $PaymentMethodDataCopyWith<$Res> get paymentMethodData; } /// @nodoc -class __$$_PaymentMethodParamsFpxCopyWithImpl<$Res> - extends _$PaymentMethodParamsCopyWithImpl<$Res, _$_PaymentMethodParamsFpx> - implements _$$_PaymentMethodParamsFpxCopyWith<$Res> { - __$$_PaymentMethodParamsFpxCopyWithImpl(_$_PaymentMethodParamsFpx _value, - $Res Function(_$_PaymentMethodParamsFpx) _then) +class __$$_PaymentMethodParamsP24CopyWithImpl<$Res> + extends _$PaymentMethodParamsCopyWithImpl<$Res, _$_PaymentMethodParamsP24> + implements _$$_PaymentMethodParamsP24CopyWith<$Res> { + __$$_PaymentMethodParamsP24CopyWithImpl(_$_PaymentMethodParamsP24 _value, + $Res Function(_$_PaymentMethodParamsP24) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -6685,19 +6770,18 @@ class __$$_PaymentMethodParamsFpxCopyWithImpl<$Res> $Res call({ Object? paymentMethodData = null, }) { - return _then(_$_PaymentMethodParamsFpx( + return _then(_$_PaymentMethodParamsP24( paymentMethodData: null == paymentMethodData ? _value.paymentMethodData : paymentMethodData // ignore: cast_nullable_to_non_nullable - as PaymentMethodDataFpx, + as PaymentMethodData, )); } @override @pragma('vm:prefer-inline') - $PaymentMethodDataFpxCopyWith<$Res> get paymentMethodData { - return $PaymentMethodDataFpxCopyWith<$Res>(_value.paymentMethodData, - (value) { + $PaymentMethodDataCopyWith<$Res> get paymentMethodData { + return $PaymentMethodDataCopyWith<$Res>(_value.paymentMethodData, (value) { return _then(_value.copyWith(paymentMethodData: value)); }); } @@ -6706,31 +6790,31 @@ class __$$_PaymentMethodParamsFpxCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_PaymentMethodParamsFpx implements _PaymentMethodParamsFpx { - const _$_PaymentMethodParamsFpx( +class _$_PaymentMethodParamsP24 implements _PaymentMethodParamsP24 { + const _$_PaymentMethodParamsP24( {required this.paymentMethodData, final String? $type}) - : $type = $type ?? 'Fpx'; + : $type = $type ?? 'P24'; - factory _$_PaymentMethodParamsFpx.fromJson(Map json) => - _$$_PaymentMethodParamsFpxFromJson(json); + factory _$_PaymentMethodParamsP24.fromJson(Map json) => + _$$_PaymentMethodParamsP24FromJson(json); /// Paymentmethod data for this paymentmethod. @override - final PaymentMethodDataFpx paymentMethodData; + final PaymentMethodData paymentMethodData; @JsonKey(name: 'paymentMethodType') final String $type; @override String toString() { - return 'PaymentMethodParams.fpx(paymentMethodData: $paymentMethodData)'; + return 'PaymentMethodParams.p24(paymentMethodData: $paymentMethodData)'; } @override bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentMethodParamsFpx && + other is _$_PaymentMethodParamsP24 && (identical(other.paymentMethodData, paymentMethodData) || other.paymentMethodData == paymentMethodData)); } @@ -6742,8 +6826,8 @@ class _$_PaymentMethodParamsFpx implements _PaymentMethodParamsFpx { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentMethodParamsFpxCopyWith<_$_PaymentMethodParamsFpx> get copyWith => - __$$_PaymentMethodParamsFpxCopyWithImpl<_$_PaymentMethodParamsFpx>( + _$$_PaymentMethodParamsP24CopyWith<_$_PaymentMethodParamsP24> get copyWith => + __$$_PaymentMethodParamsP24CopyWithImpl<_$_PaymentMethodParamsP24>( this, _$identity); @override @@ -6755,6 +6839,7 @@ class _$_PaymentMethodParamsFpx implements _PaymentMethodParamsFpx { required TResult Function(PaymentMethodDataCardFromMethod paymentMethodData) cardFromMethodId, required TResult Function(PaymentMethodData paymentMethodData) alipay, + required TResult Function(PaymentMethodData paymentMethodData) cashAppPay, required TResult Function(PaymentMethodDataIdeal paymentMethodData) ideal, required TResult Function(PaymentMethodDataAubecs paymentMethodData) aubecs, required TResult Function(PaymentMethodData paymentMethodData) bancontact, @@ -6775,7 +6860,7 @@ class _$_PaymentMethodParamsFpx implements _PaymentMethodParamsFpx { required TResult Function(PaymentMethodDataUsBank paymentMethodData) usBankAccount, }) { - return fpx(paymentMethodData); + return p24(paymentMethodData); } @override @@ -6787,6 +6872,7 @@ class _$_PaymentMethodParamsFpx implements _PaymentMethodParamsFpx { TResult? Function(PaymentMethodDataCardFromMethod paymentMethodData)? cardFromMethodId, TResult? Function(PaymentMethodData paymentMethodData)? alipay, + TResult? Function(PaymentMethodData paymentMethodData)? cashAppPay, TResult? Function(PaymentMethodDataIdeal paymentMethodData)? ideal, TResult? Function(PaymentMethodDataAubecs paymentMethodData)? aubecs, TResult? Function(PaymentMethodData paymentMethodData)? bancontact, @@ -6805,7 +6891,7 @@ class _$_PaymentMethodParamsFpx implements _PaymentMethodParamsFpx { TResult? Function(PaymentMethodData paymentMethodData)? payPal, TResult? Function(PaymentMethodDataUsBank paymentMethodData)? usBankAccount, }) { - return fpx?.call(paymentMethodData); + return p24?.call(paymentMethodData); } @override @@ -6817,6 +6903,7 @@ class _$_PaymentMethodParamsFpx implements _PaymentMethodParamsFpx { TResult Function(PaymentMethodDataCardFromMethod paymentMethodData)? cardFromMethodId, TResult Function(PaymentMethodData paymentMethodData)? alipay, + TResult Function(PaymentMethodData paymentMethodData)? cashAppPay, TResult Function(PaymentMethodDataIdeal paymentMethodData)? ideal, TResult Function(PaymentMethodDataAubecs paymentMethodData)? aubecs, TResult Function(PaymentMethodData paymentMethodData)? bancontact, @@ -6836,8 +6923,8 @@ class _$_PaymentMethodParamsFpx implements _PaymentMethodParamsFpx { TResult Function(PaymentMethodDataUsBank paymentMethodData)? usBankAccount, required TResult orElse(), }) { - if (fpx != null) { - return fpx(paymentMethodData); + if (p24 != null) { + return p24(paymentMethodData); } return orElse(); } @@ -6851,6 +6938,7 @@ class _$_PaymentMethodParamsFpx implements _PaymentMethodParamsFpx { required TResult Function(_PaymentMethodParamsCardWithMethodId value) cardFromMethodId, required TResult Function(_PaymentMethodParamsAlipay value) alipay, + required TResult Function(_PaymentMethodParamsCashAppPay value) cashAppPay, required TResult Function(_PaymentMethodParamsIdeal value) ideal, required TResult Function(_PaymentMethodParamsAubecs value) aubecs, required TResult Function(_PaymentMethodParamsBankContact value) bancontact, @@ -6870,7 +6958,7 @@ class _$_PaymentMethodParamsFpx implements _PaymentMethodParamsFpx { required TResult Function(_PaymentMethodParamsUsBankAccount value) usBankAccount, }) { - return fpx(this); + return p24(this); } @override @@ -6881,6 +6969,7 @@ class _$_PaymentMethodParamsFpx implements _PaymentMethodParamsFpx { TResult? Function(_PaymentMethodParamsCardWithMethodId value)? cardFromMethodId, TResult? Function(_PaymentMethodParamsAlipay value)? alipay, + TResult? Function(_PaymentMethodParamsCashAppPay value)? cashAppPay, TResult? Function(_PaymentMethodParamsIdeal value)? ideal, TResult? Function(_PaymentMethodParamsAubecs value)? aubecs, TResult? Function(_PaymentMethodParamsBankContact value)? bancontact, @@ -6899,7 +6988,7 @@ class _$_PaymentMethodParamsFpx implements _PaymentMethodParamsFpx { TResult? Function(_PaymentMethodParamsPayPal value)? payPal, TResult? Function(_PaymentMethodParamsUsBankAccount value)? usBankAccount, }) { - return fpx?.call(this); + return p24?.call(this); } @override @@ -6910,6 +6999,7 @@ class _$_PaymentMethodParamsFpx implements _PaymentMethodParamsFpx { TResult Function(_PaymentMethodParamsCardWithMethodId value)? cardFromMethodId, TResult Function(_PaymentMethodParamsAlipay value)? alipay, + TResult Function(_PaymentMethodParamsCashAppPay value)? cashAppPay, TResult Function(_PaymentMethodParamsIdeal value)? ideal, TResult Function(_PaymentMethodParamsAubecs value)? aubecs, TResult Function(_PaymentMethodParamsBankContact value)? bancontact, @@ -6929,57 +7019,54 @@ class _$_PaymentMethodParamsFpx implements _PaymentMethodParamsFpx { TResult Function(_PaymentMethodParamsUsBankAccount value)? usBankAccount, required TResult orElse(), }) { - if (fpx != null) { - return fpx(this); + if (p24 != null) { + return p24(this); } return orElse(); } @override Map toJson() { - return _$$_PaymentMethodParamsFpxToJson( + return _$$_PaymentMethodParamsP24ToJson( this, ); } } -abstract class _PaymentMethodParamsFpx implements PaymentMethodParams { - const factory _PaymentMethodParamsFpx( - {required final PaymentMethodDataFpx paymentMethodData}) = - _$_PaymentMethodParamsFpx; +abstract class _PaymentMethodParamsP24 implements PaymentMethodParams { + const factory _PaymentMethodParamsP24( + {required final PaymentMethodData paymentMethodData}) = + _$_PaymentMethodParamsP24; - factory _PaymentMethodParamsFpx.fromJson(Map json) = - _$_PaymentMethodParamsFpx.fromJson; + factory _PaymentMethodParamsP24.fromJson(Map json) = + _$_PaymentMethodParamsP24.fromJson; @override /// Paymentmethod data for this paymentmethod. - PaymentMethodDataFpx get paymentMethodData; + PaymentMethodData get paymentMethodData; @JsonKey(ignore: true) - _$$_PaymentMethodParamsFpxCopyWith<_$_PaymentMethodParamsFpx> get copyWith => + _$$_PaymentMethodParamsP24CopyWith<_$_PaymentMethodParamsP24> get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$_PaymentMethodParamsSepaDebitCopyWith<$Res> { - factory _$$_PaymentMethodParamsSepaDebitCopyWith( - _$_PaymentMethodParamsSepaDebit value, - $Res Function(_$_PaymentMethodParamsSepaDebit) then) = - __$$_PaymentMethodParamsSepaDebitCopyWithImpl<$Res>; +abstract class _$$_PaymentMethodParamsFpxCopyWith<$Res> { + factory _$$_PaymentMethodParamsFpxCopyWith(_$_PaymentMethodParamsFpx value, + $Res Function(_$_PaymentMethodParamsFpx) then) = + __$$_PaymentMethodParamsFpxCopyWithImpl<$Res>; @useResult - $Res call({PaymentMethodDataSepa paymentMethodData}); + $Res call({PaymentMethodDataFpx paymentMethodData}); - $PaymentMethodDataSepaCopyWith<$Res> get paymentMethodData; + $PaymentMethodDataFpxCopyWith<$Res> get paymentMethodData; } /// @nodoc -class __$$_PaymentMethodParamsSepaDebitCopyWithImpl<$Res> - extends _$PaymentMethodParamsCopyWithImpl<$Res, - _$_PaymentMethodParamsSepaDebit> - implements _$$_PaymentMethodParamsSepaDebitCopyWith<$Res> { - __$$_PaymentMethodParamsSepaDebitCopyWithImpl( - _$_PaymentMethodParamsSepaDebit _value, - $Res Function(_$_PaymentMethodParamsSepaDebit) _then) +class __$$_PaymentMethodParamsFpxCopyWithImpl<$Res> + extends _$PaymentMethodParamsCopyWithImpl<$Res, _$_PaymentMethodParamsFpx> + implements _$$_PaymentMethodParamsFpxCopyWith<$Res> { + __$$_PaymentMethodParamsFpxCopyWithImpl(_$_PaymentMethodParamsFpx _value, + $Res Function(_$_PaymentMethodParamsFpx) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -6987,18 +7074,18 @@ class __$$_PaymentMethodParamsSepaDebitCopyWithImpl<$Res> $Res call({ Object? paymentMethodData = null, }) { - return _then(_$_PaymentMethodParamsSepaDebit( + return _then(_$_PaymentMethodParamsFpx( paymentMethodData: null == paymentMethodData ? _value.paymentMethodData : paymentMethodData // ignore: cast_nullable_to_non_nullable - as PaymentMethodDataSepa, + as PaymentMethodDataFpx, )); } @override @pragma('vm:prefer-inline') - $PaymentMethodDataSepaCopyWith<$Res> get paymentMethodData { - return $PaymentMethodDataSepaCopyWith<$Res>(_value.paymentMethodData, + $PaymentMethodDataFpxCopyWith<$Res> get paymentMethodData { + return $PaymentMethodDataFpxCopyWith<$Res>(_value.paymentMethodData, (value) { return _then(_value.copyWith(paymentMethodData: value)); }); @@ -7008,31 +7095,31 @@ class __$$_PaymentMethodParamsSepaDebitCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_PaymentMethodParamsSepaDebit implements _PaymentMethodParamsSepaDebit { - const _$_PaymentMethodParamsSepaDebit( +class _$_PaymentMethodParamsFpx implements _PaymentMethodParamsFpx { + const _$_PaymentMethodParamsFpx( {required this.paymentMethodData, final String? $type}) - : $type = $type ?? 'SepaDebit'; + : $type = $type ?? 'Fpx'; - factory _$_PaymentMethodParamsSepaDebit.fromJson(Map json) => - _$$_PaymentMethodParamsSepaDebitFromJson(json); + factory _$_PaymentMethodParamsFpx.fromJson(Map json) => + _$$_PaymentMethodParamsFpxFromJson(json); /// Paymentmethod data for this paymentmethod. @override - final PaymentMethodDataSepa paymentMethodData; + final PaymentMethodDataFpx paymentMethodData; @JsonKey(name: 'paymentMethodType') final String $type; @override String toString() { - return 'PaymentMethodParams.sepaDebit(paymentMethodData: $paymentMethodData)'; + return 'PaymentMethodParams.fpx(paymentMethodData: $paymentMethodData)'; } @override bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentMethodParamsSepaDebit && + other is _$_PaymentMethodParamsFpx && (identical(other.paymentMethodData, paymentMethodData) || other.paymentMethodData == paymentMethodData)); } @@ -7044,9 +7131,9 @@ class _$_PaymentMethodParamsSepaDebit implements _PaymentMethodParamsSepaDebit { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentMethodParamsSepaDebitCopyWith<_$_PaymentMethodParamsSepaDebit> - get copyWith => __$$_PaymentMethodParamsSepaDebitCopyWithImpl< - _$_PaymentMethodParamsSepaDebit>(this, _$identity); + _$$_PaymentMethodParamsFpxCopyWith<_$_PaymentMethodParamsFpx> get copyWith => + __$$_PaymentMethodParamsFpxCopyWithImpl<_$_PaymentMethodParamsFpx>( + this, _$identity); @override @optionalTypeArgs @@ -7057,6 +7144,7 @@ class _$_PaymentMethodParamsSepaDebit implements _PaymentMethodParamsSepaDebit { required TResult Function(PaymentMethodDataCardFromMethod paymentMethodData) cardFromMethodId, required TResult Function(PaymentMethodData paymentMethodData) alipay, + required TResult Function(PaymentMethodData paymentMethodData) cashAppPay, required TResult Function(PaymentMethodDataIdeal paymentMethodData) ideal, required TResult Function(PaymentMethodDataAubecs paymentMethodData) aubecs, required TResult Function(PaymentMethodData paymentMethodData) bancontact, @@ -7077,7 +7165,7 @@ class _$_PaymentMethodParamsSepaDebit implements _PaymentMethodParamsSepaDebit { required TResult Function(PaymentMethodDataUsBank paymentMethodData) usBankAccount, }) { - return sepaDebit(paymentMethodData); + return fpx(paymentMethodData); } @override @@ -7089,6 +7177,7 @@ class _$_PaymentMethodParamsSepaDebit implements _PaymentMethodParamsSepaDebit { TResult? Function(PaymentMethodDataCardFromMethod paymentMethodData)? cardFromMethodId, TResult? Function(PaymentMethodData paymentMethodData)? alipay, + TResult? Function(PaymentMethodData paymentMethodData)? cashAppPay, TResult? Function(PaymentMethodDataIdeal paymentMethodData)? ideal, TResult? Function(PaymentMethodDataAubecs paymentMethodData)? aubecs, TResult? Function(PaymentMethodData paymentMethodData)? bancontact, @@ -7107,7 +7196,7 @@ class _$_PaymentMethodParamsSepaDebit implements _PaymentMethodParamsSepaDebit { TResult? Function(PaymentMethodData paymentMethodData)? payPal, TResult? Function(PaymentMethodDataUsBank paymentMethodData)? usBankAccount, }) { - return sepaDebit?.call(paymentMethodData); + return fpx?.call(paymentMethodData); } @override @@ -7119,6 +7208,7 @@ class _$_PaymentMethodParamsSepaDebit implements _PaymentMethodParamsSepaDebit { TResult Function(PaymentMethodDataCardFromMethod paymentMethodData)? cardFromMethodId, TResult Function(PaymentMethodData paymentMethodData)? alipay, + TResult Function(PaymentMethodData paymentMethodData)? cashAppPay, TResult Function(PaymentMethodDataIdeal paymentMethodData)? ideal, TResult Function(PaymentMethodDataAubecs paymentMethodData)? aubecs, TResult Function(PaymentMethodData paymentMethodData)? bancontact, @@ -7138,8 +7228,8 @@ class _$_PaymentMethodParamsSepaDebit implements _PaymentMethodParamsSepaDebit { TResult Function(PaymentMethodDataUsBank paymentMethodData)? usBankAccount, required TResult orElse(), }) { - if (sepaDebit != null) { - return sepaDebit(paymentMethodData); + if (fpx != null) { + return fpx(paymentMethodData); } return orElse(); } @@ -7153,6 +7243,7 @@ class _$_PaymentMethodParamsSepaDebit implements _PaymentMethodParamsSepaDebit { required TResult Function(_PaymentMethodParamsCardWithMethodId value) cardFromMethodId, required TResult Function(_PaymentMethodParamsAlipay value) alipay, + required TResult Function(_PaymentMethodParamsCashAppPay value) cashAppPay, required TResult Function(_PaymentMethodParamsIdeal value) ideal, required TResult Function(_PaymentMethodParamsAubecs value) aubecs, required TResult Function(_PaymentMethodParamsBankContact value) bancontact, @@ -7172,7 +7263,7 @@ class _$_PaymentMethodParamsSepaDebit implements _PaymentMethodParamsSepaDebit { required TResult Function(_PaymentMethodParamsUsBankAccount value) usBankAccount, }) { - return sepaDebit(this); + return fpx(this); } @override @@ -7183,6 +7274,7 @@ class _$_PaymentMethodParamsSepaDebit implements _PaymentMethodParamsSepaDebit { TResult? Function(_PaymentMethodParamsCardWithMethodId value)? cardFromMethodId, TResult? Function(_PaymentMethodParamsAlipay value)? alipay, + TResult? Function(_PaymentMethodParamsCashAppPay value)? cashAppPay, TResult? Function(_PaymentMethodParamsIdeal value)? ideal, TResult? Function(_PaymentMethodParamsAubecs value)? aubecs, TResult? Function(_PaymentMethodParamsBankContact value)? bancontact, @@ -7201,7 +7293,7 @@ class _$_PaymentMethodParamsSepaDebit implements _PaymentMethodParamsSepaDebit { TResult? Function(_PaymentMethodParamsPayPal value)? payPal, TResult? Function(_PaymentMethodParamsUsBankAccount value)? usBankAccount, }) { - return sepaDebit?.call(this); + return fpx?.call(this); } @override @@ -7212,6 +7304,7 @@ class _$_PaymentMethodParamsSepaDebit implements _PaymentMethodParamsSepaDebit { TResult Function(_PaymentMethodParamsCardWithMethodId value)? cardFromMethodId, TResult Function(_PaymentMethodParamsAlipay value)? alipay, + TResult Function(_PaymentMethodParamsCashAppPay value)? cashAppPay, TResult Function(_PaymentMethodParamsIdeal value)? ideal, TResult Function(_PaymentMethodParamsAubecs value)? aubecs, TResult Function(_PaymentMethodParamsBankContact value)? bancontact, @@ -7231,57 +7324,57 @@ class _$_PaymentMethodParamsSepaDebit implements _PaymentMethodParamsSepaDebit { TResult Function(_PaymentMethodParamsUsBankAccount value)? usBankAccount, required TResult orElse(), }) { - if (sepaDebit != null) { - return sepaDebit(this); + if (fpx != null) { + return fpx(this); } return orElse(); } @override Map toJson() { - return _$$_PaymentMethodParamsSepaDebitToJson( + return _$$_PaymentMethodParamsFpxToJson( this, ); } } -abstract class _PaymentMethodParamsSepaDebit implements PaymentMethodParams { - const factory _PaymentMethodParamsSepaDebit( - {required final PaymentMethodDataSepa paymentMethodData}) = - _$_PaymentMethodParamsSepaDebit; +abstract class _PaymentMethodParamsFpx implements PaymentMethodParams { + const factory _PaymentMethodParamsFpx( + {required final PaymentMethodDataFpx paymentMethodData}) = + _$_PaymentMethodParamsFpx; - factory _PaymentMethodParamsSepaDebit.fromJson(Map json) = - _$_PaymentMethodParamsSepaDebit.fromJson; + factory _PaymentMethodParamsFpx.fromJson(Map json) = + _$_PaymentMethodParamsFpx.fromJson; @override /// Paymentmethod data for this paymentmethod. - PaymentMethodDataSepa get paymentMethodData; + PaymentMethodDataFpx get paymentMethodData; @JsonKey(ignore: true) - _$$_PaymentMethodParamsSepaDebitCopyWith<_$_PaymentMethodParamsSepaDebit> - get copyWith => throw _privateConstructorUsedError; + _$$_PaymentMethodParamsFpxCopyWith<_$_PaymentMethodParamsFpx> get copyWith => + throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$_PaymentMethodParamsSofortCopyWith<$Res> { - factory _$$_PaymentMethodParamsSofortCopyWith( - _$_PaymentMethodParamsSofort value, - $Res Function(_$_PaymentMethodParamsSofort) then) = - __$$_PaymentMethodParamsSofortCopyWithImpl<$Res>; +abstract class _$$_PaymentMethodParamsSepaDebitCopyWith<$Res> { + factory _$$_PaymentMethodParamsSepaDebitCopyWith( + _$_PaymentMethodParamsSepaDebit value, + $Res Function(_$_PaymentMethodParamsSepaDebit) then) = + __$$_PaymentMethodParamsSepaDebitCopyWithImpl<$Res>; @useResult - $Res call({PaymentMethodDataSofort paymentMethodData}); + $Res call({PaymentMethodDataSepa paymentMethodData}); - $PaymentMethodDataSofortCopyWith<$Res> get paymentMethodData; + $PaymentMethodDataSepaCopyWith<$Res> get paymentMethodData; } /// @nodoc -class __$$_PaymentMethodParamsSofortCopyWithImpl<$Res> +class __$$_PaymentMethodParamsSepaDebitCopyWithImpl<$Res> extends _$PaymentMethodParamsCopyWithImpl<$Res, - _$_PaymentMethodParamsSofort> - implements _$$_PaymentMethodParamsSofortCopyWith<$Res> { - __$$_PaymentMethodParamsSofortCopyWithImpl( - _$_PaymentMethodParamsSofort _value, - $Res Function(_$_PaymentMethodParamsSofort) _then) + _$_PaymentMethodParamsSepaDebit> + implements _$$_PaymentMethodParamsSepaDebitCopyWith<$Res> { + __$$_PaymentMethodParamsSepaDebitCopyWithImpl( + _$_PaymentMethodParamsSepaDebit _value, + $Res Function(_$_PaymentMethodParamsSepaDebit) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -7289,18 +7382,18 @@ class __$$_PaymentMethodParamsSofortCopyWithImpl<$Res> $Res call({ Object? paymentMethodData = null, }) { - return _then(_$_PaymentMethodParamsSofort( + return _then(_$_PaymentMethodParamsSepaDebit( paymentMethodData: null == paymentMethodData ? _value.paymentMethodData : paymentMethodData // ignore: cast_nullable_to_non_nullable - as PaymentMethodDataSofort, + as PaymentMethodDataSepa, )); } @override @pragma('vm:prefer-inline') - $PaymentMethodDataSofortCopyWith<$Res> get paymentMethodData { - return $PaymentMethodDataSofortCopyWith<$Res>(_value.paymentMethodData, + $PaymentMethodDataSepaCopyWith<$Res> get paymentMethodData { + return $PaymentMethodDataSepaCopyWith<$Res>(_value.paymentMethodData, (value) { return _then(_value.copyWith(paymentMethodData: value)); }); @@ -7310,30 +7403,31 @@ class __$$_PaymentMethodParamsSofortCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_PaymentMethodParamsSofort implements _PaymentMethodParamsSofort { - const _$_PaymentMethodParamsSofort( +class _$_PaymentMethodParamsSepaDebit implements _PaymentMethodParamsSepaDebit { + const _$_PaymentMethodParamsSepaDebit( {required this.paymentMethodData, final String? $type}) - : $type = $type ?? 'Sofort'; + : $type = $type ?? 'SepaDebit'; - factory _$_PaymentMethodParamsSofort.fromJson(Map json) => - _$$_PaymentMethodParamsSofortFromJson(json); + factory _$_PaymentMethodParamsSepaDebit.fromJson(Map json) => + _$$_PaymentMethodParamsSepaDebitFromJson(json); + /// Paymentmethod data for this paymentmethod. @override - final PaymentMethodDataSofort paymentMethodData; + final PaymentMethodDataSepa paymentMethodData; @JsonKey(name: 'paymentMethodType') final String $type; @override String toString() { - return 'PaymentMethodParams.sofort(paymentMethodData: $paymentMethodData)'; + return 'PaymentMethodParams.sepaDebit(paymentMethodData: $paymentMethodData)'; } @override bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentMethodParamsSofort && + other is _$_PaymentMethodParamsSepaDebit && (identical(other.paymentMethodData, paymentMethodData) || other.paymentMethodData == paymentMethodData)); } @@ -7345,9 +7439,9 @@ class _$_PaymentMethodParamsSofort implements _PaymentMethodParamsSofort { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentMethodParamsSofortCopyWith<_$_PaymentMethodParamsSofort> - get copyWith => __$$_PaymentMethodParamsSofortCopyWithImpl< - _$_PaymentMethodParamsSofort>(this, _$identity); + _$$_PaymentMethodParamsSepaDebitCopyWith<_$_PaymentMethodParamsSepaDebit> + get copyWith => __$$_PaymentMethodParamsSepaDebitCopyWithImpl< + _$_PaymentMethodParamsSepaDebit>(this, _$identity); @override @optionalTypeArgs @@ -7358,6 +7452,7 @@ class _$_PaymentMethodParamsSofort implements _PaymentMethodParamsSofort { required TResult Function(PaymentMethodDataCardFromMethod paymentMethodData) cardFromMethodId, required TResult Function(PaymentMethodData paymentMethodData) alipay, + required TResult Function(PaymentMethodData paymentMethodData) cashAppPay, required TResult Function(PaymentMethodDataIdeal paymentMethodData) ideal, required TResult Function(PaymentMethodDataAubecs paymentMethodData) aubecs, required TResult Function(PaymentMethodData paymentMethodData) bancontact, @@ -7378,7 +7473,7 @@ class _$_PaymentMethodParamsSofort implements _PaymentMethodParamsSofort { required TResult Function(PaymentMethodDataUsBank paymentMethodData) usBankAccount, }) { - return sofort(paymentMethodData); + return sepaDebit(paymentMethodData); } @override @@ -7390,6 +7485,7 @@ class _$_PaymentMethodParamsSofort implements _PaymentMethodParamsSofort { TResult? Function(PaymentMethodDataCardFromMethod paymentMethodData)? cardFromMethodId, TResult? Function(PaymentMethodData paymentMethodData)? alipay, + TResult? Function(PaymentMethodData paymentMethodData)? cashAppPay, TResult? Function(PaymentMethodDataIdeal paymentMethodData)? ideal, TResult? Function(PaymentMethodDataAubecs paymentMethodData)? aubecs, TResult? Function(PaymentMethodData paymentMethodData)? bancontact, @@ -7408,7 +7504,7 @@ class _$_PaymentMethodParamsSofort implements _PaymentMethodParamsSofort { TResult? Function(PaymentMethodData paymentMethodData)? payPal, TResult? Function(PaymentMethodDataUsBank paymentMethodData)? usBankAccount, }) { - return sofort?.call(paymentMethodData); + return sepaDebit?.call(paymentMethodData); } @override @@ -7420,6 +7516,7 @@ class _$_PaymentMethodParamsSofort implements _PaymentMethodParamsSofort { TResult Function(PaymentMethodDataCardFromMethod paymentMethodData)? cardFromMethodId, TResult Function(PaymentMethodData paymentMethodData)? alipay, + TResult Function(PaymentMethodData paymentMethodData)? cashAppPay, TResult Function(PaymentMethodDataIdeal paymentMethodData)? ideal, TResult Function(PaymentMethodDataAubecs paymentMethodData)? aubecs, TResult Function(PaymentMethodData paymentMethodData)? bancontact, @@ -7439,8 +7536,8 @@ class _$_PaymentMethodParamsSofort implements _PaymentMethodParamsSofort { TResult Function(PaymentMethodDataUsBank paymentMethodData)? usBankAccount, required TResult orElse(), }) { - if (sofort != null) { - return sofort(paymentMethodData); + if (sepaDebit != null) { + return sepaDebit(paymentMethodData); } return orElse(); } @@ -7454,6 +7551,7 @@ class _$_PaymentMethodParamsSofort implements _PaymentMethodParamsSofort { required TResult Function(_PaymentMethodParamsCardWithMethodId value) cardFromMethodId, required TResult Function(_PaymentMethodParamsAlipay value) alipay, + required TResult Function(_PaymentMethodParamsCashAppPay value) cashAppPay, required TResult Function(_PaymentMethodParamsIdeal value) ideal, required TResult Function(_PaymentMethodParamsAubecs value) aubecs, required TResult Function(_PaymentMethodParamsBankContact value) bancontact, @@ -7473,7 +7571,7 @@ class _$_PaymentMethodParamsSofort implements _PaymentMethodParamsSofort { required TResult Function(_PaymentMethodParamsUsBankAccount value) usBankAccount, }) { - return sofort(this); + return sepaDebit(this); } @override @@ -7484,6 +7582,7 @@ class _$_PaymentMethodParamsSofort implements _PaymentMethodParamsSofort { TResult? Function(_PaymentMethodParamsCardWithMethodId value)? cardFromMethodId, TResult? Function(_PaymentMethodParamsAlipay value)? alipay, + TResult? Function(_PaymentMethodParamsCashAppPay value)? cashAppPay, TResult? Function(_PaymentMethodParamsIdeal value)? ideal, TResult? Function(_PaymentMethodParamsAubecs value)? aubecs, TResult? Function(_PaymentMethodParamsBankContact value)? bancontact, @@ -7502,7 +7601,7 @@ class _$_PaymentMethodParamsSofort implements _PaymentMethodParamsSofort { TResult? Function(_PaymentMethodParamsPayPal value)? payPal, TResult? Function(_PaymentMethodParamsUsBankAccount value)? usBankAccount, }) { - return sofort?.call(this); + return sepaDebit?.call(this); } @override @@ -7513,6 +7612,7 @@ class _$_PaymentMethodParamsSofort implements _PaymentMethodParamsSofort { TResult Function(_PaymentMethodParamsCardWithMethodId value)? cardFromMethodId, TResult Function(_PaymentMethodParamsAlipay value)? alipay, + TResult Function(_PaymentMethodParamsCashAppPay value)? cashAppPay, TResult Function(_PaymentMethodParamsIdeal value)? ideal, TResult Function(_PaymentMethodParamsAubecs value)? aubecs, TResult Function(_PaymentMethodParamsBankContact value)? bancontact, @@ -7532,55 +7632,57 @@ class _$_PaymentMethodParamsSofort implements _PaymentMethodParamsSofort { TResult Function(_PaymentMethodParamsUsBankAccount value)? usBankAccount, required TResult orElse(), }) { - if (sofort != null) { - return sofort(this); + if (sepaDebit != null) { + return sepaDebit(this); } return orElse(); } @override Map toJson() { - return _$$_PaymentMethodParamsSofortToJson( + return _$$_PaymentMethodParamsSepaDebitToJson( this, ); } } -abstract class _PaymentMethodParamsSofort implements PaymentMethodParams { - const factory _PaymentMethodParamsSofort( - {required final PaymentMethodDataSofort paymentMethodData}) = - _$_PaymentMethodParamsSofort; +abstract class _PaymentMethodParamsSepaDebit implements PaymentMethodParams { + const factory _PaymentMethodParamsSepaDebit( + {required final PaymentMethodDataSepa paymentMethodData}) = + _$_PaymentMethodParamsSepaDebit; - factory _PaymentMethodParamsSofort.fromJson(Map json) = - _$_PaymentMethodParamsSofort.fromJson; + factory _PaymentMethodParamsSepaDebit.fromJson(Map json) = + _$_PaymentMethodParamsSepaDebit.fromJson; @override - PaymentMethodDataSofort get paymentMethodData; + + /// Paymentmethod data for this paymentmethod. + PaymentMethodDataSepa get paymentMethodData; @JsonKey(ignore: true) - _$$_PaymentMethodParamsSofortCopyWith<_$_PaymentMethodParamsSofort> + _$$_PaymentMethodParamsSepaDebitCopyWith<_$_PaymentMethodParamsSepaDebit> get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$_PaymentMethodParamsAfterpayClearpayCopyWith<$Res> { - factory _$$_PaymentMethodParamsAfterpayClearpayCopyWith( - _$_PaymentMethodParamsAfterpayClearpay value, - $Res Function(_$_PaymentMethodParamsAfterpayClearpay) then) = - __$$_PaymentMethodParamsAfterpayClearpayCopyWithImpl<$Res>; +abstract class _$$_PaymentMethodParamsSofortCopyWith<$Res> { + factory _$$_PaymentMethodParamsSofortCopyWith( + _$_PaymentMethodParamsSofort value, + $Res Function(_$_PaymentMethodParamsSofort) then) = + __$$_PaymentMethodParamsSofortCopyWithImpl<$Res>; @useResult - $Res call({PaymentMethodDataAfterPay paymentMethodData}); + $Res call({PaymentMethodDataSofort paymentMethodData}); - $PaymentMethodDataAfterPayCopyWith<$Res> get paymentMethodData; + $PaymentMethodDataSofortCopyWith<$Res> get paymentMethodData; } /// @nodoc -class __$$_PaymentMethodParamsAfterpayClearpayCopyWithImpl<$Res> +class __$$_PaymentMethodParamsSofortCopyWithImpl<$Res> extends _$PaymentMethodParamsCopyWithImpl<$Res, - _$_PaymentMethodParamsAfterpayClearpay> - implements _$$_PaymentMethodParamsAfterpayClearpayCopyWith<$Res> { - __$$_PaymentMethodParamsAfterpayClearpayCopyWithImpl( - _$_PaymentMethodParamsAfterpayClearpay _value, - $Res Function(_$_PaymentMethodParamsAfterpayClearpay) _then) + _$_PaymentMethodParamsSofort> + implements _$$_PaymentMethodParamsSofortCopyWith<$Res> { + __$$_PaymentMethodParamsSofortCopyWithImpl( + _$_PaymentMethodParamsSofort _value, + $Res Function(_$_PaymentMethodParamsSofort) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -7588,18 +7690,18 @@ class __$$_PaymentMethodParamsAfterpayClearpayCopyWithImpl<$Res> $Res call({ Object? paymentMethodData = null, }) { - return _then(_$_PaymentMethodParamsAfterpayClearpay( + return _then(_$_PaymentMethodParamsSofort( paymentMethodData: null == paymentMethodData ? _value.paymentMethodData : paymentMethodData // ignore: cast_nullable_to_non_nullable - as PaymentMethodDataAfterPay, + as PaymentMethodDataSofort, )); } @override @pragma('vm:prefer-inline') - $PaymentMethodDataAfterPayCopyWith<$Res> get paymentMethodData { - return $PaymentMethodDataAfterPayCopyWith<$Res>(_value.paymentMethodData, + $PaymentMethodDataSofortCopyWith<$Res> get paymentMethodData { + return $PaymentMethodDataSofortCopyWith<$Res>(_value.paymentMethodData, (value) { return _then(_value.copyWith(paymentMethodData: value)); }); @@ -7609,32 +7711,30 @@ class __$$_PaymentMethodParamsAfterpayClearpayCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_PaymentMethodParamsAfterpayClearpay - implements _PaymentMethodParamsAfterpayClearpay { - const _$_PaymentMethodParamsAfterpayClearpay( +class _$_PaymentMethodParamsSofort implements _PaymentMethodParamsSofort { + const _$_PaymentMethodParamsSofort( {required this.paymentMethodData, final String? $type}) - : $type = $type ?? 'AfterpayClearpay'; + : $type = $type ?? 'Sofort'; - factory _$_PaymentMethodParamsAfterpayClearpay.fromJson( - Map json) => - _$$_PaymentMethodParamsAfterpayClearpayFromJson(json); + factory _$_PaymentMethodParamsSofort.fromJson(Map json) => + _$$_PaymentMethodParamsSofortFromJson(json); @override - final PaymentMethodDataAfterPay paymentMethodData; + final PaymentMethodDataSofort paymentMethodData; @JsonKey(name: 'paymentMethodType') final String $type; @override String toString() { - return 'PaymentMethodParams.afterpayClearpay(paymentMethodData: $paymentMethodData)'; + return 'PaymentMethodParams.sofort(paymentMethodData: $paymentMethodData)'; } @override bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentMethodParamsAfterpayClearpay && + other is _$_PaymentMethodParamsSofort && (identical(other.paymentMethodData, paymentMethodData) || other.paymentMethodData == paymentMethodData)); } @@ -7646,10 +7746,9 @@ class _$_PaymentMethodParamsAfterpayClearpay @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentMethodParamsAfterpayClearpayCopyWith< - _$_PaymentMethodParamsAfterpayClearpay> - get copyWith => __$$_PaymentMethodParamsAfterpayClearpayCopyWithImpl< - _$_PaymentMethodParamsAfterpayClearpay>(this, _$identity); + _$$_PaymentMethodParamsSofortCopyWith<_$_PaymentMethodParamsSofort> + get copyWith => __$$_PaymentMethodParamsSofortCopyWithImpl< + _$_PaymentMethodParamsSofort>(this, _$identity); @override @optionalTypeArgs @@ -7660,6 +7759,7 @@ class _$_PaymentMethodParamsAfterpayClearpay required TResult Function(PaymentMethodDataCardFromMethod paymentMethodData) cardFromMethodId, required TResult Function(PaymentMethodData paymentMethodData) alipay, + required TResult Function(PaymentMethodData paymentMethodData) cashAppPay, required TResult Function(PaymentMethodDataIdeal paymentMethodData) ideal, required TResult Function(PaymentMethodDataAubecs paymentMethodData) aubecs, required TResult Function(PaymentMethodData paymentMethodData) bancontact, @@ -7680,7 +7780,7 @@ class _$_PaymentMethodParamsAfterpayClearpay required TResult Function(PaymentMethodDataUsBank paymentMethodData) usBankAccount, }) { - return afterpayClearpay(paymentMethodData); + return sofort(paymentMethodData); } @override @@ -7692,6 +7792,7 @@ class _$_PaymentMethodParamsAfterpayClearpay TResult? Function(PaymentMethodDataCardFromMethod paymentMethodData)? cardFromMethodId, TResult? Function(PaymentMethodData paymentMethodData)? alipay, + TResult? Function(PaymentMethodData paymentMethodData)? cashAppPay, TResult? Function(PaymentMethodDataIdeal paymentMethodData)? ideal, TResult? Function(PaymentMethodDataAubecs paymentMethodData)? aubecs, TResult? Function(PaymentMethodData paymentMethodData)? bancontact, @@ -7710,7 +7811,7 @@ class _$_PaymentMethodParamsAfterpayClearpay TResult? Function(PaymentMethodData paymentMethodData)? payPal, TResult? Function(PaymentMethodDataUsBank paymentMethodData)? usBankAccount, }) { - return afterpayClearpay?.call(paymentMethodData); + return sofort?.call(paymentMethodData); } @override @@ -7722,6 +7823,7 @@ class _$_PaymentMethodParamsAfterpayClearpay TResult Function(PaymentMethodDataCardFromMethod paymentMethodData)? cardFromMethodId, TResult Function(PaymentMethodData paymentMethodData)? alipay, + TResult Function(PaymentMethodData paymentMethodData)? cashAppPay, TResult Function(PaymentMethodDataIdeal paymentMethodData)? ideal, TResult Function(PaymentMethodDataAubecs paymentMethodData)? aubecs, TResult Function(PaymentMethodData paymentMethodData)? bancontact, @@ -7741,8 +7843,8 @@ class _$_PaymentMethodParamsAfterpayClearpay TResult Function(PaymentMethodDataUsBank paymentMethodData)? usBankAccount, required TResult orElse(), }) { - if (afterpayClearpay != null) { - return afterpayClearpay(paymentMethodData); + if (sofort != null) { + return sofort(paymentMethodData); } return orElse(); } @@ -7756,6 +7858,7 @@ class _$_PaymentMethodParamsAfterpayClearpay required TResult Function(_PaymentMethodParamsCardWithMethodId value) cardFromMethodId, required TResult Function(_PaymentMethodParamsAlipay value) alipay, + required TResult Function(_PaymentMethodParamsCashAppPay value) cashAppPay, required TResult Function(_PaymentMethodParamsIdeal value) ideal, required TResult Function(_PaymentMethodParamsAubecs value) aubecs, required TResult Function(_PaymentMethodParamsBankContact value) bancontact, @@ -7775,7 +7878,7 @@ class _$_PaymentMethodParamsAfterpayClearpay required TResult Function(_PaymentMethodParamsUsBankAccount value) usBankAccount, }) { - return afterpayClearpay(this); + return sofort(this); } @override @@ -7786,6 +7889,7 @@ class _$_PaymentMethodParamsAfterpayClearpay TResult? Function(_PaymentMethodParamsCardWithMethodId value)? cardFromMethodId, TResult? Function(_PaymentMethodParamsAlipay value)? alipay, + TResult? Function(_PaymentMethodParamsCashAppPay value)? cashAppPay, TResult? Function(_PaymentMethodParamsIdeal value)? ideal, TResult? Function(_PaymentMethodParamsAubecs value)? aubecs, TResult? Function(_PaymentMethodParamsBankContact value)? bancontact, @@ -7804,7 +7908,7 @@ class _$_PaymentMethodParamsAfterpayClearpay TResult? Function(_PaymentMethodParamsPayPal value)? payPal, TResult? Function(_PaymentMethodParamsUsBankAccount value)? usBankAccount, }) { - return afterpayClearpay?.call(this); + return sofort?.call(this); } @override @@ -7815,6 +7919,7 @@ class _$_PaymentMethodParamsAfterpayClearpay TResult Function(_PaymentMethodParamsCardWithMethodId value)? cardFromMethodId, TResult Function(_PaymentMethodParamsAlipay value)? alipay, + TResult Function(_PaymentMethodParamsCashAppPay value)? cashAppPay, TResult Function(_PaymentMethodParamsIdeal value)? ideal, TResult Function(_PaymentMethodParamsAubecs value)? aubecs, TResult Function(_PaymentMethodParamsBankContact value)? bancontact, @@ -7834,55 +7939,55 @@ class _$_PaymentMethodParamsAfterpayClearpay TResult Function(_PaymentMethodParamsUsBankAccount value)? usBankAccount, required TResult orElse(), }) { - if (afterpayClearpay != null) { - return afterpayClearpay(this); + if (sofort != null) { + return sofort(this); } return orElse(); } @override Map toJson() { - return _$$_PaymentMethodParamsAfterpayClearpayToJson( + return _$$_PaymentMethodParamsSofortToJson( this, ); } } -abstract class _PaymentMethodParamsAfterpayClearpay - implements PaymentMethodParams { - const factory _PaymentMethodParamsAfterpayClearpay( - {required final PaymentMethodDataAfterPay paymentMethodData}) = - _$_PaymentMethodParamsAfterpayClearpay; +abstract class _PaymentMethodParamsSofort implements PaymentMethodParams { + const factory _PaymentMethodParamsSofort( + {required final PaymentMethodDataSofort paymentMethodData}) = + _$_PaymentMethodParamsSofort; - factory _PaymentMethodParamsAfterpayClearpay.fromJson( - Map json) = - _$_PaymentMethodParamsAfterpayClearpay.fromJson; + factory _PaymentMethodParamsSofort.fromJson(Map json) = + _$_PaymentMethodParamsSofort.fromJson; @override - PaymentMethodDataAfterPay get paymentMethodData; + PaymentMethodDataSofort get paymentMethodData; @JsonKey(ignore: true) - _$$_PaymentMethodParamsAfterpayClearpayCopyWith< - _$_PaymentMethodParamsAfterpayClearpay> + _$$_PaymentMethodParamsSofortCopyWith<_$_PaymentMethodParamsSofort> get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$_PaymentMethodParamsOxxoCopyWith<$Res> { - factory _$$_PaymentMethodParamsOxxoCopyWith(_$_PaymentMethodParamsOxxo value, - $Res Function(_$_PaymentMethodParamsOxxo) then) = - __$$_PaymentMethodParamsOxxoCopyWithImpl<$Res>; +abstract class _$$_PaymentMethodParamsAfterpayClearpayCopyWith<$Res> { + factory _$$_PaymentMethodParamsAfterpayClearpayCopyWith( + _$_PaymentMethodParamsAfterpayClearpay value, + $Res Function(_$_PaymentMethodParamsAfterpayClearpay) then) = + __$$_PaymentMethodParamsAfterpayClearpayCopyWithImpl<$Res>; @useResult - $Res call({PaymentMethodData paymentMethodData}); + $Res call({PaymentMethodDataAfterPay paymentMethodData}); - $PaymentMethodDataCopyWith<$Res> get paymentMethodData; + $PaymentMethodDataAfterPayCopyWith<$Res> get paymentMethodData; } /// @nodoc -class __$$_PaymentMethodParamsOxxoCopyWithImpl<$Res> - extends _$PaymentMethodParamsCopyWithImpl<$Res, _$_PaymentMethodParamsOxxo> - implements _$$_PaymentMethodParamsOxxoCopyWith<$Res> { - __$$_PaymentMethodParamsOxxoCopyWithImpl(_$_PaymentMethodParamsOxxo _value, - $Res Function(_$_PaymentMethodParamsOxxo) _then) +class __$$_PaymentMethodParamsAfterpayClearpayCopyWithImpl<$Res> + extends _$PaymentMethodParamsCopyWithImpl<$Res, + _$_PaymentMethodParamsAfterpayClearpay> + implements _$$_PaymentMethodParamsAfterpayClearpayCopyWith<$Res> { + __$$_PaymentMethodParamsAfterpayClearpayCopyWithImpl( + _$_PaymentMethodParamsAfterpayClearpay _value, + $Res Function(_$_PaymentMethodParamsAfterpayClearpay) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -7890,18 +7995,19 @@ class __$$_PaymentMethodParamsOxxoCopyWithImpl<$Res> $Res call({ Object? paymentMethodData = null, }) { - return _then(_$_PaymentMethodParamsOxxo( + return _then(_$_PaymentMethodParamsAfterpayClearpay( paymentMethodData: null == paymentMethodData ? _value.paymentMethodData : paymentMethodData // ignore: cast_nullable_to_non_nullable - as PaymentMethodData, + as PaymentMethodDataAfterPay, )); } @override @pragma('vm:prefer-inline') - $PaymentMethodDataCopyWith<$Res> get paymentMethodData { - return $PaymentMethodDataCopyWith<$Res>(_value.paymentMethodData, (value) { + $PaymentMethodDataAfterPayCopyWith<$Res> get paymentMethodData { + return $PaymentMethodDataAfterPayCopyWith<$Res>(_value.paymentMethodData, + (value) { return _then(_value.copyWith(paymentMethodData: value)); }); } @@ -7910,31 +8016,32 @@ class __$$_PaymentMethodParamsOxxoCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_PaymentMethodParamsOxxo implements _PaymentMethodParamsOxxo { - const _$_PaymentMethodParamsOxxo( +class _$_PaymentMethodParamsAfterpayClearpay + implements _PaymentMethodParamsAfterpayClearpay { + const _$_PaymentMethodParamsAfterpayClearpay( {required this.paymentMethodData, final String? $type}) - : $type = $type ?? 'Oxxo'; + : $type = $type ?? 'AfterpayClearpay'; - factory _$_PaymentMethodParamsOxxo.fromJson(Map json) => - _$$_PaymentMethodParamsOxxoFromJson(json); + factory _$_PaymentMethodParamsAfterpayClearpay.fromJson( + Map json) => + _$$_PaymentMethodParamsAfterpayClearpayFromJson(json); - /// Paymentmethod data for this paymentmethod. @override - final PaymentMethodData paymentMethodData; + final PaymentMethodDataAfterPay paymentMethodData; @JsonKey(name: 'paymentMethodType') final String $type; @override String toString() { - return 'PaymentMethodParams.oxxo(paymentMethodData: $paymentMethodData)'; + return 'PaymentMethodParams.afterpayClearpay(paymentMethodData: $paymentMethodData)'; } @override bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentMethodParamsOxxo && + other is _$_PaymentMethodParamsAfterpayClearpay && (identical(other.paymentMethodData, paymentMethodData) || other.paymentMethodData == paymentMethodData)); } @@ -7946,10 +8053,10 @@ class _$_PaymentMethodParamsOxxo implements _PaymentMethodParamsOxxo { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentMethodParamsOxxoCopyWith<_$_PaymentMethodParamsOxxo> - get copyWith => - __$$_PaymentMethodParamsOxxoCopyWithImpl<_$_PaymentMethodParamsOxxo>( - this, _$identity); + _$$_PaymentMethodParamsAfterpayClearpayCopyWith< + _$_PaymentMethodParamsAfterpayClearpay> + get copyWith => __$$_PaymentMethodParamsAfterpayClearpayCopyWithImpl< + _$_PaymentMethodParamsAfterpayClearpay>(this, _$identity); @override @optionalTypeArgs @@ -7960,6 +8067,7 @@ class _$_PaymentMethodParamsOxxo implements _PaymentMethodParamsOxxo { required TResult Function(PaymentMethodDataCardFromMethod paymentMethodData) cardFromMethodId, required TResult Function(PaymentMethodData paymentMethodData) alipay, + required TResult Function(PaymentMethodData paymentMethodData) cashAppPay, required TResult Function(PaymentMethodDataIdeal paymentMethodData) ideal, required TResult Function(PaymentMethodDataAubecs paymentMethodData) aubecs, required TResult Function(PaymentMethodData paymentMethodData) bancontact, @@ -7980,7 +8088,7 @@ class _$_PaymentMethodParamsOxxo implements _PaymentMethodParamsOxxo { required TResult Function(PaymentMethodDataUsBank paymentMethodData) usBankAccount, }) { - return oxxo(paymentMethodData); + return afterpayClearpay(paymentMethodData); } @override @@ -7992,6 +8100,7 @@ class _$_PaymentMethodParamsOxxo implements _PaymentMethodParamsOxxo { TResult? Function(PaymentMethodDataCardFromMethod paymentMethodData)? cardFromMethodId, TResult? Function(PaymentMethodData paymentMethodData)? alipay, + TResult? Function(PaymentMethodData paymentMethodData)? cashAppPay, TResult? Function(PaymentMethodDataIdeal paymentMethodData)? ideal, TResult? Function(PaymentMethodDataAubecs paymentMethodData)? aubecs, TResult? Function(PaymentMethodData paymentMethodData)? bancontact, @@ -8010,7 +8119,7 @@ class _$_PaymentMethodParamsOxxo implements _PaymentMethodParamsOxxo { TResult? Function(PaymentMethodData paymentMethodData)? payPal, TResult? Function(PaymentMethodDataUsBank paymentMethodData)? usBankAccount, }) { - return oxxo?.call(paymentMethodData); + return afterpayClearpay?.call(paymentMethodData); } @override @@ -8022,6 +8131,7 @@ class _$_PaymentMethodParamsOxxo implements _PaymentMethodParamsOxxo { TResult Function(PaymentMethodDataCardFromMethod paymentMethodData)? cardFromMethodId, TResult Function(PaymentMethodData paymentMethodData)? alipay, + TResult Function(PaymentMethodData paymentMethodData)? cashAppPay, TResult Function(PaymentMethodDataIdeal paymentMethodData)? ideal, TResult Function(PaymentMethodDataAubecs paymentMethodData)? aubecs, TResult Function(PaymentMethodData paymentMethodData)? bancontact, @@ -8041,8 +8151,8 @@ class _$_PaymentMethodParamsOxxo implements _PaymentMethodParamsOxxo { TResult Function(PaymentMethodDataUsBank paymentMethodData)? usBankAccount, required TResult orElse(), }) { - if (oxxo != null) { - return oxxo(paymentMethodData); + if (afterpayClearpay != null) { + return afterpayClearpay(paymentMethodData); } return orElse(); } @@ -8056,6 +8166,7 @@ class _$_PaymentMethodParamsOxxo implements _PaymentMethodParamsOxxo { required TResult Function(_PaymentMethodParamsCardWithMethodId value) cardFromMethodId, required TResult Function(_PaymentMethodParamsAlipay value) alipay, + required TResult Function(_PaymentMethodParamsCashAppPay value) cashAppPay, required TResult Function(_PaymentMethodParamsIdeal value) ideal, required TResult Function(_PaymentMethodParamsAubecs value) aubecs, required TResult Function(_PaymentMethodParamsBankContact value) bancontact, @@ -8075,7 +8186,7 @@ class _$_PaymentMethodParamsOxxo implements _PaymentMethodParamsOxxo { required TResult Function(_PaymentMethodParamsUsBankAccount value) usBankAccount, }) { - return oxxo(this); + return afterpayClearpay(this); } @override @@ -8086,6 +8197,7 @@ class _$_PaymentMethodParamsOxxo implements _PaymentMethodParamsOxxo { TResult? Function(_PaymentMethodParamsCardWithMethodId value)? cardFromMethodId, TResult? Function(_PaymentMethodParamsAlipay value)? alipay, + TResult? Function(_PaymentMethodParamsCashAppPay value)? cashAppPay, TResult? Function(_PaymentMethodParamsIdeal value)? ideal, TResult? Function(_PaymentMethodParamsAubecs value)? aubecs, TResult? Function(_PaymentMethodParamsBankContact value)? bancontact, @@ -8104,7 +8216,7 @@ class _$_PaymentMethodParamsOxxo implements _PaymentMethodParamsOxxo { TResult? Function(_PaymentMethodParamsPayPal value)? payPal, TResult? Function(_PaymentMethodParamsUsBankAccount value)? usBankAccount, }) { - return oxxo?.call(this); + return afterpayClearpay?.call(this); } @override @@ -8115,6 +8227,7 @@ class _$_PaymentMethodParamsOxxo implements _PaymentMethodParamsOxxo { TResult Function(_PaymentMethodParamsCardWithMethodId value)? cardFromMethodId, TResult Function(_PaymentMethodParamsAlipay value)? alipay, + TResult Function(_PaymentMethodParamsCashAppPay value)? cashAppPay, TResult Function(_PaymentMethodParamsIdeal value)? ideal, TResult Function(_PaymentMethodParamsAubecs value)? aubecs, TResult Function(_PaymentMethodParamsBankContact value)? bancontact, @@ -8134,43 +8247,43 @@ class _$_PaymentMethodParamsOxxo implements _PaymentMethodParamsOxxo { TResult Function(_PaymentMethodParamsUsBankAccount value)? usBankAccount, required TResult orElse(), }) { - if (oxxo != null) { - return oxxo(this); + if (afterpayClearpay != null) { + return afterpayClearpay(this); } return orElse(); } @override Map toJson() { - return _$$_PaymentMethodParamsOxxoToJson( + return _$$_PaymentMethodParamsAfterpayClearpayToJson( this, ); } } -abstract class _PaymentMethodParamsOxxo implements PaymentMethodParams { - const factory _PaymentMethodParamsOxxo( - {required final PaymentMethodData paymentMethodData}) = - _$_PaymentMethodParamsOxxo; +abstract class _PaymentMethodParamsAfterpayClearpay + implements PaymentMethodParams { + const factory _PaymentMethodParamsAfterpayClearpay( + {required final PaymentMethodDataAfterPay paymentMethodData}) = + _$_PaymentMethodParamsAfterpayClearpay; - factory _PaymentMethodParamsOxxo.fromJson(Map json) = - _$_PaymentMethodParamsOxxo.fromJson; + factory _PaymentMethodParamsAfterpayClearpay.fromJson( + Map json) = + _$_PaymentMethodParamsAfterpayClearpay.fromJson; @override - - /// Paymentmethod data for this paymentmethod. - PaymentMethodData get paymentMethodData; + PaymentMethodDataAfterPay get paymentMethodData; @JsonKey(ignore: true) - _$$_PaymentMethodParamsOxxoCopyWith<_$_PaymentMethodParamsOxxo> + _$$_PaymentMethodParamsAfterpayClearpayCopyWith< + _$_PaymentMethodParamsAfterpayClearpay> get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$_PaymentMethodParamsKlarnaCopyWith<$Res> { - factory _$$_PaymentMethodParamsKlarnaCopyWith( - _$_PaymentMethodParamsKlarna value, - $Res Function(_$_PaymentMethodParamsKlarna) then) = - __$$_PaymentMethodParamsKlarnaCopyWithImpl<$Res>; +abstract class _$$_PaymentMethodParamsOxxoCopyWith<$Res> { + factory _$$_PaymentMethodParamsOxxoCopyWith(_$_PaymentMethodParamsOxxo value, + $Res Function(_$_PaymentMethodParamsOxxo) then) = + __$$_PaymentMethodParamsOxxoCopyWithImpl<$Res>; @useResult $Res call({PaymentMethodData paymentMethodData}); @@ -8178,13 +8291,11 @@ abstract class _$$_PaymentMethodParamsKlarnaCopyWith<$Res> { } /// @nodoc -class __$$_PaymentMethodParamsKlarnaCopyWithImpl<$Res> - extends _$PaymentMethodParamsCopyWithImpl<$Res, - _$_PaymentMethodParamsKlarna> - implements _$$_PaymentMethodParamsKlarnaCopyWith<$Res> { - __$$_PaymentMethodParamsKlarnaCopyWithImpl( - _$_PaymentMethodParamsKlarna _value, - $Res Function(_$_PaymentMethodParamsKlarna) _then) +class __$$_PaymentMethodParamsOxxoCopyWithImpl<$Res> + extends _$PaymentMethodParamsCopyWithImpl<$Res, _$_PaymentMethodParamsOxxo> + implements _$$_PaymentMethodParamsOxxoCopyWith<$Res> { + __$$_PaymentMethodParamsOxxoCopyWithImpl(_$_PaymentMethodParamsOxxo _value, + $Res Function(_$_PaymentMethodParamsOxxo) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -8192,7 +8303,7 @@ class __$$_PaymentMethodParamsKlarnaCopyWithImpl<$Res> $Res call({ Object? paymentMethodData = null, }) { - return _then(_$_PaymentMethodParamsKlarna( + return _then(_$_PaymentMethodParamsOxxo( paymentMethodData: null == paymentMethodData ? _value.paymentMethodData : paymentMethodData // ignore: cast_nullable_to_non_nullable @@ -8212,18 +8323,15 @@ class __$$_PaymentMethodParamsKlarnaCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_PaymentMethodParamsKlarna implements _PaymentMethodParamsKlarna { - const _$_PaymentMethodParamsKlarna( +class _$_PaymentMethodParamsOxxo implements _PaymentMethodParamsOxxo { + const _$_PaymentMethodParamsOxxo( {required this.paymentMethodData, final String? $type}) - : $type = $type ?? 'Klarna'; + : $type = $type ?? 'Oxxo'; - factory _$_PaymentMethodParamsKlarna.fromJson(Map json) => - _$$_PaymentMethodParamsKlarnaFromJson(json); + factory _$_PaymentMethodParamsOxxo.fromJson(Map json) => + _$$_PaymentMethodParamsOxxoFromJson(json); /// 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 final PaymentMethodData paymentMethodData; @@ -8232,14 +8340,14 @@ class _$_PaymentMethodParamsKlarna implements _PaymentMethodParamsKlarna { @override String toString() { - return 'PaymentMethodParams.klarna(paymentMethodData: $paymentMethodData)'; + return 'PaymentMethodParams.oxxo(paymentMethodData: $paymentMethodData)'; } @override bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentMethodParamsKlarna && + other is _$_PaymentMethodParamsOxxo && (identical(other.paymentMethodData, paymentMethodData) || other.paymentMethodData == paymentMethodData)); } @@ -8251,9 +8359,10 @@ class _$_PaymentMethodParamsKlarna implements _PaymentMethodParamsKlarna { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentMethodParamsKlarnaCopyWith<_$_PaymentMethodParamsKlarna> - get copyWith => __$$_PaymentMethodParamsKlarnaCopyWithImpl< - _$_PaymentMethodParamsKlarna>(this, _$identity); + _$$_PaymentMethodParamsOxxoCopyWith<_$_PaymentMethodParamsOxxo> + get copyWith => + __$$_PaymentMethodParamsOxxoCopyWithImpl<_$_PaymentMethodParamsOxxo>( + this, _$identity); @override @optionalTypeArgs @@ -8264,6 +8373,7 @@ class _$_PaymentMethodParamsKlarna implements _PaymentMethodParamsKlarna { required TResult Function(PaymentMethodDataCardFromMethod paymentMethodData) cardFromMethodId, required TResult Function(PaymentMethodData paymentMethodData) alipay, + required TResult Function(PaymentMethodData paymentMethodData) cashAppPay, required TResult Function(PaymentMethodDataIdeal paymentMethodData) ideal, required TResult Function(PaymentMethodDataAubecs paymentMethodData) aubecs, required TResult Function(PaymentMethodData paymentMethodData) bancontact, @@ -8284,7 +8394,7 @@ class _$_PaymentMethodParamsKlarna implements _PaymentMethodParamsKlarna { required TResult Function(PaymentMethodDataUsBank paymentMethodData) usBankAccount, }) { - return klarna(paymentMethodData); + return oxxo(paymentMethodData); } @override @@ -8296,6 +8406,7 @@ class _$_PaymentMethodParamsKlarna implements _PaymentMethodParamsKlarna { TResult? Function(PaymentMethodDataCardFromMethod paymentMethodData)? cardFromMethodId, TResult? Function(PaymentMethodData paymentMethodData)? alipay, + TResult? Function(PaymentMethodData paymentMethodData)? cashAppPay, TResult? Function(PaymentMethodDataIdeal paymentMethodData)? ideal, TResult? Function(PaymentMethodDataAubecs paymentMethodData)? aubecs, TResult? Function(PaymentMethodData paymentMethodData)? bancontact, @@ -8314,7 +8425,7 @@ class _$_PaymentMethodParamsKlarna implements _PaymentMethodParamsKlarna { TResult? Function(PaymentMethodData paymentMethodData)? payPal, TResult? Function(PaymentMethodDataUsBank paymentMethodData)? usBankAccount, }) { - return klarna?.call(paymentMethodData); + return oxxo?.call(paymentMethodData); } @override @@ -8326,6 +8437,7 @@ class _$_PaymentMethodParamsKlarna implements _PaymentMethodParamsKlarna { TResult Function(PaymentMethodDataCardFromMethod paymentMethodData)? cardFromMethodId, TResult Function(PaymentMethodData paymentMethodData)? alipay, + TResult Function(PaymentMethodData paymentMethodData)? cashAppPay, TResult Function(PaymentMethodDataIdeal paymentMethodData)? ideal, TResult Function(PaymentMethodDataAubecs paymentMethodData)? aubecs, TResult Function(PaymentMethodData paymentMethodData)? bancontact, @@ -8345,8 +8457,8 @@ class _$_PaymentMethodParamsKlarna implements _PaymentMethodParamsKlarna { TResult Function(PaymentMethodDataUsBank paymentMethodData)? usBankAccount, required TResult orElse(), }) { - if (klarna != null) { - return klarna(paymentMethodData); + if (oxxo != null) { + return oxxo(paymentMethodData); } return orElse(); } @@ -8360,6 +8472,7 @@ class _$_PaymentMethodParamsKlarna implements _PaymentMethodParamsKlarna { required TResult Function(_PaymentMethodParamsCardWithMethodId value) cardFromMethodId, required TResult Function(_PaymentMethodParamsAlipay value) alipay, + required TResult Function(_PaymentMethodParamsCashAppPay value) cashAppPay, required TResult Function(_PaymentMethodParamsIdeal value) ideal, required TResult Function(_PaymentMethodParamsAubecs value) aubecs, required TResult Function(_PaymentMethodParamsBankContact value) bancontact, @@ -8379,7 +8492,7 @@ class _$_PaymentMethodParamsKlarna implements _PaymentMethodParamsKlarna { required TResult Function(_PaymentMethodParamsUsBankAccount value) usBankAccount, }) { - return klarna(this); + return oxxo(this); } @override @@ -8390,6 +8503,7 @@ class _$_PaymentMethodParamsKlarna implements _PaymentMethodParamsKlarna { TResult? Function(_PaymentMethodParamsCardWithMethodId value)? cardFromMethodId, TResult? Function(_PaymentMethodParamsAlipay value)? alipay, + TResult? Function(_PaymentMethodParamsCashAppPay value)? cashAppPay, TResult? Function(_PaymentMethodParamsIdeal value)? ideal, TResult? Function(_PaymentMethodParamsAubecs value)? aubecs, TResult? Function(_PaymentMethodParamsBankContact value)? bancontact, @@ -8408,7 +8522,7 @@ class _$_PaymentMethodParamsKlarna implements _PaymentMethodParamsKlarna { TResult? Function(_PaymentMethodParamsPayPal value)? payPal, TResult? Function(_PaymentMethodParamsUsBankAccount value)? usBankAccount, }) { - return klarna?.call(this); + return oxxo?.call(this); } @override @@ -8419,6 +8533,7 @@ class _$_PaymentMethodParamsKlarna implements _PaymentMethodParamsKlarna { TResult Function(_PaymentMethodParamsCardWithMethodId value)? cardFromMethodId, TResult Function(_PaymentMethodParamsAlipay value)? alipay, + TResult Function(_PaymentMethodParamsCashAppPay value)? cashAppPay, TResult Function(_PaymentMethodParamsIdeal value)? ideal, TResult Function(_PaymentMethodParamsAubecs value)? aubecs, TResult Function(_PaymentMethodParamsBankContact value)? bancontact, @@ -8438,46 +8553,43 @@ class _$_PaymentMethodParamsKlarna implements _PaymentMethodParamsKlarna { TResult Function(_PaymentMethodParamsUsBankAccount value)? usBankAccount, required TResult orElse(), }) { - if (klarna != null) { - return klarna(this); + if (oxxo != null) { + return oxxo(this); } return orElse(); } @override Map toJson() { - return _$$_PaymentMethodParamsKlarnaToJson( + return _$$_PaymentMethodParamsOxxoToJson( this, ); } } -abstract class _PaymentMethodParamsKlarna implements PaymentMethodParams { - const factory _PaymentMethodParamsKlarna( +abstract class _PaymentMethodParamsOxxo implements PaymentMethodParams { + const factory _PaymentMethodParamsOxxo( {required final PaymentMethodData paymentMethodData}) = - _$_PaymentMethodParamsKlarna; + _$_PaymentMethodParamsOxxo; - factory _PaymentMethodParamsKlarna.fromJson(Map json) = - _$_PaymentMethodParamsKlarna.fromJson; + factory _PaymentMethodParamsOxxo.fromJson(Map json) = + _$_PaymentMethodParamsOxxo.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. PaymentMethodData get paymentMethodData; @JsonKey(ignore: true) - _$$_PaymentMethodParamsKlarnaCopyWith<_$_PaymentMethodParamsKlarna> + _$$_PaymentMethodParamsOxxoCopyWith<_$_PaymentMethodParamsOxxo> get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$_PaymentMethodParamsPayPalCopyWith<$Res> { - factory _$$_PaymentMethodParamsPayPalCopyWith( - _$_PaymentMethodParamsPayPal value, - $Res Function(_$_PaymentMethodParamsPayPal) then) = - __$$_PaymentMethodParamsPayPalCopyWithImpl<$Res>; +abstract class _$$_PaymentMethodParamsKlarnaCopyWith<$Res> { + factory _$$_PaymentMethodParamsKlarnaCopyWith( + _$_PaymentMethodParamsKlarna value, + $Res Function(_$_PaymentMethodParamsKlarna) then) = + __$$_PaymentMethodParamsKlarnaCopyWithImpl<$Res>; @useResult $Res call({PaymentMethodData paymentMethodData}); @@ -8485,13 +8597,13 @@ abstract class _$$_PaymentMethodParamsPayPalCopyWith<$Res> { } /// @nodoc -class __$$_PaymentMethodParamsPayPalCopyWithImpl<$Res> +class __$$_PaymentMethodParamsKlarnaCopyWithImpl<$Res> extends _$PaymentMethodParamsCopyWithImpl<$Res, - _$_PaymentMethodParamsPayPal> - implements _$$_PaymentMethodParamsPayPalCopyWith<$Res> { - __$$_PaymentMethodParamsPayPalCopyWithImpl( - _$_PaymentMethodParamsPayPal _value, - $Res Function(_$_PaymentMethodParamsPayPal) _then) + _$_PaymentMethodParamsKlarna> + implements _$$_PaymentMethodParamsKlarnaCopyWith<$Res> { + __$$_PaymentMethodParamsKlarnaCopyWithImpl( + _$_PaymentMethodParamsKlarna _value, + $Res Function(_$_PaymentMethodParamsKlarna) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -8499,7 +8611,7 @@ class __$$_PaymentMethodParamsPayPalCopyWithImpl<$Res> $Res call({ Object? paymentMethodData = null, }) { - return _then(_$_PaymentMethodParamsPayPal( + return _then(_$_PaymentMethodParamsKlarna( paymentMethodData: null == paymentMethodData ? _value.paymentMethodData : paymentMethodData // ignore: cast_nullable_to_non_nullable @@ -8519,13 +8631,13 @@ class __$$_PaymentMethodParamsPayPalCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_PaymentMethodParamsPayPal implements _PaymentMethodParamsPayPal { - const _$_PaymentMethodParamsPayPal( +class _$_PaymentMethodParamsKlarna implements _PaymentMethodParamsKlarna { + const _$_PaymentMethodParamsKlarna( {required this.paymentMethodData, final String? $type}) - : $type = $type ?? 'PayPal'; + : $type = $type ?? 'Klarna'; - factory _$_PaymentMethodParamsPayPal.fromJson(Map json) => - _$$_PaymentMethodParamsPayPalFromJson(json); + factory _$_PaymentMethodParamsKlarna.fromJson(Map json) => + _$$_PaymentMethodParamsKlarnaFromJson(json); /// Paymentmethod data for this paymentmethod. /// @@ -8539,14 +8651,14 @@ class _$_PaymentMethodParamsPayPal implements _PaymentMethodParamsPayPal { @override String toString() { - return 'PaymentMethodParams.payPal(paymentMethodData: $paymentMethodData)'; + return 'PaymentMethodParams.klarna(paymentMethodData: $paymentMethodData)'; } @override bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentMethodParamsPayPal && + other is _$_PaymentMethodParamsKlarna && (identical(other.paymentMethodData, paymentMethodData) || other.paymentMethodData == paymentMethodData)); } @@ -8558,9 +8670,9 @@ class _$_PaymentMethodParamsPayPal implements _PaymentMethodParamsPayPal { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentMethodParamsPayPalCopyWith<_$_PaymentMethodParamsPayPal> - get copyWith => __$$_PaymentMethodParamsPayPalCopyWithImpl< - _$_PaymentMethodParamsPayPal>(this, _$identity); + _$$_PaymentMethodParamsKlarnaCopyWith<_$_PaymentMethodParamsKlarna> + get copyWith => __$$_PaymentMethodParamsKlarnaCopyWithImpl< + _$_PaymentMethodParamsKlarna>(this, _$identity); @override @optionalTypeArgs @@ -8571,6 +8683,7 @@ class _$_PaymentMethodParamsPayPal implements _PaymentMethodParamsPayPal { required TResult Function(PaymentMethodDataCardFromMethod paymentMethodData) cardFromMethodId, required TResult Function(PaymentMethodData paymentMethodData) alipay, + required TResult Function(PaymentMethodData paymentMethodData) cashAppPay, required TResult Function(PaymentMethodDataIdeal paymentMethodData) ideal, required TResult Function(PaymentMethodDataAubecs paymentMethodData) aubecs, required TResult Function(PaymentMethodData paymentMethodData) bancontact, @@ -8591,7 +8704,7 @@ class _$_PaymentMethodParamsPayPal implements _PaymentMethodParamsPayPal { required TResult Function(PaymentMethodDataUsBank paymentMethodData) usBankAccount, }) { - return payPal(paymentMethodData); + return klarna(paymentMethodData); } @override @@ -8603,6 +8716,7 @@ class _$_PaymentMethodParamsPayPal implements _PaymentMethodParamsPayPal { TResult? Function(PaymentMethodDataCardFromMethod paymentMethodData)? cardFromMethodId, TResult? Function(PaymentMethodData paymentMethodData)? alipay, + TResult? Function(PaymentMethodData paymentMethodData)? cashAppPay, TResult? Function(PaymentMethodDataIdeal paymentMethodData)? ideal, TResult? Function(PaymentMethodDataAubecs paymentMethodData)? aubecs, TResult? Function(PaymentMethodData paymentMethodData)? bancontact, @@ -8621,7 +8735,7 @@ class _$_PaymentMethodParamsPayPal implements _PaymentMethodParamsPayPal { TResult? Function(PaymentMethodData paymentMethodData)? payPal, TResult? Function(PaymentMethodDataUsBank paymentMethodData)? usBankAccount, }) { - return payPal?.call(paymentMethodData); + return klarna?.call(paymentMethodData); } @override @@ -8633,6 +8747,7 @@ class _$_PaymentMethodParamsPayPal implements _PaymentMethodParamsPayPal { TResult Function(PaymentMethodDataCardFromMethod paymentMethodData)? cardFromMethodId, TResult Function(PaymentMethodData paymentMethodData)? alipay, + TResult Function(PaymentMethodData paymentMethodData)? cashAppPay, TResult Function(PaymentMethodDataIdeal paymentMethodData)? ideal, TResult Function(PaymentMethodDataAubecs paymentMethodData)? aubecs, TResult Function(PaymentMethodData paymentMethodData)? bancontact, @@ -8652,8 +8767,8 @@ class _$_PaymentMethodParamsPayPal implements _PaymentMethodParamsPayPal { TResult Function(PaymentMethodDataUsBank paymentMethodData)? usBankAccount, required TResult orElse(), }) { - if (payPal != null) { - return payPal(paymentMethodData); + if (klarna != null) { + return klarna(paymentMethodData); } return orElse(); } @@ -8667,6 +8782,7 @@ class _$_PaymentMethodParamsPayPal implements _PaymentMethodParamsPayPal { required TResult Function(_PaymentMethodParamsCardWithMethodId value) cardFromMethodId, required TResult Function(_PaymentMethodParamsAlipay value) alipay, + required TResult Function(_PaymentMethodParamsCashAppPay value) cashAppPay, required TResult Function(_PaymentMethodParamsIdeal value) ideal, required TResult Function(_PaymentMethodParamsAubecs value) aubecs, required TResult Function(_PaymentMethodParamsBankContact value) bancontact, @@ -8686,7 +8802,7 @@ class _$_PaymentMethodParamsPayPal implements _PaymentMethodParamsPayPal { required TResult Function(_PaymentMethodParamsUsBankAccount value) usBankAccount, }) { - return payPal(this); + return klarna(this); } @override @@ -8697,6 +8813,7 @@ class _$_PaymentMethodParamsPayPal implements _PaymentMethodParamsPayPal { TResult? Function(_PaymentMethodParamsCardWithMethodId value)? cardFromMethodId, TResult? Function(_PaymentMethodParamsAlipay value)? alipay, + TResult? Function(_PaymentMethodParamsCashAppPay value)? cashAppPay, TResult? Function(_PaymentMethodParamsIdeal value)? ideal, TResult? Function(_PaymentMethodParamsAubecs value)? aubecs, TResult? Function(_PaymentMethodParamsBankContact value)? bancontact, @@ -8715,7 +8832,7 @@ class _$_PaymentMethodParamsPayPal implements _PaymentMethodParamsPayPal { TResult? Function(_PaymentMethodParamsPayPal value)? payPal, TResult? Function(_PaymentMethodParamsUsBankAccount value)? usBankAccount, }) { - return payPal?.call(this); + return klarna?.call(this); } @override @@ -8726,6 +8843,7 @@ class _$_PaymentMethodParamsPayPal implements _PaymentMethodParamsPayPal { TResult Function(_PaymentMethodParamsCardWithMethodId value)? cardFromMethodId, TResult Function(_PaymentMethodParamsAlipay value)? alipay, + TResult Function(_PaymentMethodParamsCashAppPay value)? cashAppPay, TResult Function(_PaymentMethodParamsIdeal value)? ideal, TResult Function(_PaymentMethodParamsAubecs value)? aubecs, TResult Function(_PaymentMethodParamsBankContact value)? bancontact, @@ -8745,27 +8863,27 @@ class _$_PaymentMethodParamsPayPal implements _PaymentMethodParamsPayPal { TResult Function(_PaymentMethodParamsUsBankAccount value)? usBankAccount, required TResult orElse(), }) { - if (payPal != null) { - return payPal(this); + if (klarna != null) { + return klarna(this); } return orElse(); } @override Map toJson() { - return _$$_PaymentMethodParamsPayPalToJson( + return _$$_PaymentMethodParamsKlarnaToJson( this, ); } } -abstract class _PaymentMethodParamsPayPal implements PaymentMethodParams { - const factory _PaymentMethodParamsPayPal( +abstract class _PaymentMethodParamsKlarna implements PaymentMethodParams { + const factory _PaymentMethodParamsKlarna( {required final PaymentMethodData paymentMethodData}) = - _$_PaymentMethodParamsPayPal; + _$_PaymentMethodParamsKlarna; - factory _PaymentMethodParamsPayPal.fromJson(Map json) = - _$_PaymentMethodParamsPayPal.fromJson; + factory _PaymentMethodParamsKlarna.fromJson(Map json) = + _$_PaymentMethodParamsKlarna.fromJson; @override @@ -8775,30 +8893,30 @@ abstract class _PaymentMethodParamsPayPal implements PaymentMethodParams { /// billingdetails which is required for using Klarna. PaymentMethodData get paymentMethodData; @JsonKey(ignore: true) - _$$_PaymentMethodParamsPayPalCopyWith<_$_PaymentMethodParamsPayPal> + _$$_PaymentMethodParamsKlarnaCopyWith<_$_PaymentMethodParamsKlarna> get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$_PaymentMethodParamsUsBankAccountCopyWith<$Res> { - factory _$$_PaymentMethodParamsUsBankAccountCopyWith( - _$_PaymentMethodParamsUsBankAccount value, - $Res Function(_$_PaymentMethodParamsUsBankAccount) then) = - __$$_PaymentMethodParamsUsBankAccountCopyWithImpl<$Res>; +abstract class _$$_PaymentMethodParamsPayPalCopyWith<$Res> { + factory _$$_PaymentMethodParamsPayPalCopyWith( + _$_PaymentMethodParamsPayPal value, + $Res Function(_$_PaymentMethodParamsPayPal) then) = + __$$_PaymentMethodParamsPayPalCopyWithImpl<$Res>; @useResult - $Res call({PaymentMethodDataUsBank paymentMethodData}); + $Res call({PaymentMethodData paymentMethodData}); - $PaymentMethodDataUsBankCopyWith<$Res> get paymentMethodData; + $PaymentMethodDataCopyWith<$Res> get paymentMethodData; } /// @nodoc -class __$$_PaymentMethodParamsUsBankAccountCopyWithImpl<$Res> +class __$$_PaymentMethodParamsPayPalCopyWithImpl<$Res> extends _$PaymentMethodParamsCopyWithImpl<$Res, - _$_PaymentMethodParamsUsBankAccount> - implements _$$_PaymentMethodParamsUsBankAccountCopyWith<$Res> { - __$$_PaymentMethodParamsUsBankAccountCopyWithImpl( - _$_PaymentMethodParamsUsBankAccount _value, - $Res Function(_$_PaymentMethodParamsUsBankAccount) _then) + _$_PaymentMethodParamsPayPal> + implements _$$_PaymentMethodParamsPayPalCopyWith<$Res> { + __$$_PaymentMethodParamsPayPalCopyWithImpl( + _$_PaymentMethodParamsPayPal _value, + $Res Function(_$_PaymentMethodParamsPayPal) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -8806,19 +8924,18 @@ class __$$_PaymentMethodParamsUsBankAccountCopyWithImpl<$Res> $Res call({ Object? paymentMethodData = null, }) { - return _then(_$_PaymentMethodParamsUsBankAccount( + return _then(_$_PaymentMethodParamsPayPal( paymentMethodData: null == paymentMethodData ? _value.paymentMethodData : paymentMethodData // ignore: cast_nullable_to_non_nullable - as PaymentMethodDataUsBank, + as PaymentMethodData, )); } @override @pragma('vm:prefer-inline') - $PaymentMethodDataUsBankCopyWith<$Res> get paymentMethodData { - return $PaymentMethodDataUsBankCopyWith<$Res>(_value.paymentMethodData, - (value) { + $PaymentMethodDataCopyWith<$Res> get paymentMethodData { + return $PaymentMethodDataCopyWith<$Res>(_value.paymentMethodData, (value) { return _then(_value.copyWith(paymentMethodData: value)); }); } @@ -8827,33 +8944,31 @@ class __$$_PaymentMethodParamsUsBankAccountCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_PaymentMethodParamsUsBankAccount - implements _PaymentMethodParamsUsBankAccount { - const _$_PaymentMethodParamsUsBankAccount( +class _$_PaymentMethodParamsPayPal implements _PaymentMethodParamsPayPal { + const _$_PaymentMethodParamsPayPal( {required this.paymentMethodData, final String? $type}) - : $type = $type ?? 'USBankAccount'; + : $type = $type ?? 'PayPal'; - factory _$_PaymentMethodParamsUsBankAccount.fromJson( - Map json) => - _$$_PaymentMethodParamsUsBankAccountFromJson(json); + factory _$_PaymentMethodParamsPayPal.fromJson(Map json) => + _$$_PaymentMethodParamsPayPalFromJson(json); /// Paymentmethod data for this paymentmethod. @override - final PaymentMethodDataUsBank paymentMethodData; + final PaymentMethodData paymentMethodData; @JsonKey(name: 'paymentMethodType') final String $type; @override String toString() { - return 'PaymentMethodParams.usBankAccount(paymentMethodData: $paymentMethodData)'; + return 'PaymentMethodParams.payPal(paymentMethodData: $paymentMethodData)'; } @override bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentMethodParamsUsBankAccount && + other is _$_PaymentMethodParamsPayPal && (identical(other.paymentMethodData, paymentMethodData) || other.paymentMethodData == paymentMethodData)); } @@ -8865,10 +8980,9 @@ class _$_PaymentMethodParamsUsBankAccount @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentMethodParamsUsBankAccountCopyWith< - _$_PaymentMethodParamsUsBankAccount> - get copyWith => __$$_PaymentMethodParamsUsBankAccountCopyWithImpl< - _$_PaymentMethodParamsUsBankAccount>(this, _$identity); + _$$_PaymentMethodParamsPayPalCopyWith<_$_PaymentMethodParamsPayPal> + get copyWith => __$$_PaymentMethodParamsPayPalCopyWithImpl< + _$_PaymentMethodParamsPayPal>(this, _$identity); @override @optionalTypeArgs @@ -8879,6 +8993,7 @@ class _$_PaymentMethodParamsUsBankAccount required TResult Function(PaymentMethodDataCardFromMethod paymentMethodData) cardFromMethodId, required TResult Function(PaymentMethodData paymentMethodData) alipay, + required TResult Function(PaymentMethodData paymentMethodData) cashAppPay, required TResult Function(PaymentMethodDataIdeal paymentMethodData) ideal, required TResult Function(PaymentMethodDataAubecs paymentMethodData) aubecs, required TResult Function(PaymentMethodData paymentMethodData) bancontact, @@ -8899,7 +9014,7 @@ class _$_PaymentMethodParamsUsBankAccount required TResult Function(PaymentMethodDataUsBank paymentMethodData) usBankAccount, }) { - return usBankAccount(paymentMethodData); + return payPal(paymentMethodData); } @override @@ -8911,6 +9026,7 @@ class _$_PaymentMethodParamsUsBankAccount TResult? Function(PaymentMethodDataCardFromMethod paymentMethodData)? cardFromMethodId, TResult? Function(PaymentMethodData paymentMethodData)? alipay, + TResult? Function(PaymentMethodData paymentMethodData)? cashAppPay, TResult? Function(PaymentMethodDataIdeal paymentMethodData)? ideal, TResult? Function(PaymentMethodDataAubecs paymentMethodData)? aubecs, TResult? Function(PaymentMethodData paymentMethodData)? bancontact, @@ -8929,7 +9045,7 @@ class _$_PaymentMethodParamsUsBankAccount TResult? Function(PaymentMethodData paymentMethodData)? payPal, TResult? Function(PaymentMethodDataUsBank paymentMethodData)? usBankAccount, }) { - return usBankAccount?.call(paymentMethodData); + return payPal?.call(paymentMethodData); } @override @@ -8941,6 +9057,7 @@ class _$_PaymentMethodParamsUsBankAccount TResult Function(PaymentMethodDataCardFromMethod paymentMethodData)? cardFromMethodId, TResult Function(PaymentMethodData paymentMethodData)? alipay, + TResult Function(PaymentMethodData paymentMethodData)? cashAppPay, TResult Function(PaymentMethodDataIdeal paymentMethodData)? ideal, TResult Function(PaymentMethodDataAubecs paymentMethodData)? aubecs, TResult Function(PaymentMethodData paymentMethodData)? bancontact, @@ -8960,8 +9077,8 @@ class _$_PaymentMethodParamsUsBankAccount TResult Function(PaymentMethodDataUsBank paymentMethodData)? usBankAccount, required TResult orElse(), }) { - if (usBankAccount != null) { - return usBankAccount(paymentMethodData); + if (payPal != null) { + return payPal(paymentMethodData); } return orElse(); } @@ -8975,6 +9092,7 @@ class _$_PaymentMethodParamsUsBankAccount required TResult Function(_PaymentMethodParamsCardWithMethodId value) cardFromMethodId, required TResult Function(_PaymentMethodParamsAlipay value) alipay, + required TResult Function(_PaymentMethodParamsCashAppPay value) cashAppPay, required TResult Function(_PaymentMethodParamsIdeal value) ideal, required TResult Function(_PaymentMethodParamsAubecs value) aubecs, required TResult Function(_PaymentMethodParamsBankContact value) bancontact, @@ -8994,7 +9112,7 @@ class _$_PaymentMethodParamsUsBankAccount required TResult Function(_PaymentMethodParamsUsBankAccount value) usBankAccount, }) { - return usBankAccount(this); + return payPal(this); } @override @@ -9005,6 +9123,7 @@ class _$_PaymentMethodParamsUsBankAccount TResult? Function(_PaymentMethodParamsCardWithMethodId value)? cardFromMethodId, TResult? Function(_PaymentMethodParamsAlipay value)? alipay, + TResult? Function(_PaymentMethodParamsCashAppPay value)? cashAppPay, TResult? Function(_PaymentMethodParamsIdeal value)? ideal, TResult? Function(_PaymentMethodParamsAubecs value)? aubecs, TResult? Function(_PaymentMethodParamsBankContact value)? bancontact, @@ -9023,7 +9142,7 @@ class _$_PaymentMethodParamsUsBankAccount TResult? Function(_PaymentMethodParamsPayPal value)? payPal, TResult? Function(_PaymentMethodParamsUsBankAccount value)? usBankAccount, }) { - return usBankAccount?.call(this); + return payPal?.call(this); } @override @@ -9034,6 +9153,7 @@ class _$_PaymentMethodParamsUsBankAccount TResult Function(_PaymentMethodParamsCardWithMethodId value)? cardFromMethodId, TResult Function(_PaymentMethodParamsAlipay value)? alipay, + TResult Function(_PaymentMethodParamsCashAppPay value)? cashAppPay, TResult Function(_PaymentMethodParamsIdeal value)? ideal, TResult Function(_PaymentMethodParamsAubecs value)? aubecs, TResult Function(_PaymentMethodParamsBankContact value)? bancontact, @@ -9053,248 +9173,1484 @@ class _$_PaymentMethodParamsUsBankAccount TResult Function(_PaymentMethodParamsUsBankAccount value)? usBankAccount, required TResult orElse(), }) { - if (usBankAccount != null) { - return usBankAccount(this); + if (payPal != null) { + return payPal(this); } return orElse(); } @override Map toJson() { - return _$$_PaymentMethodParamsUsBankAccountToJson( + return _$$_PaymentMethodParamsPayPalToJson( this, ); } } -abstract class _PaymentMethodParamsUsBankAccount - implements PaymentMethodParams { - const factory _PaymentMethodParamsUsBankAccount( - {required final PaymentMethodDataUsBank paymentMethodData}) = - _$_PaymentMethodParamsUsBankAccount; +abstract class _PaymentMethodParamsPayPal implements PaymentMethodParams { + const factory _PaymentMethodParamsPayPal( + {required final PaymentMethodData paymentMethodData}) = + _$_PaymentMethodParamsPayPal; - factory _PaymentMethodParamsUsBankAccount.fromJson( - Map json) = _$_PaymentMethodParamsUsBankAccount.fromJson; + factory _PaymentMethodParamsPayPal.fromJson(Map json) = + _$_PaymentMethodParamsPayPal.fromJson; @override /// Paymentmethod data for this paymentmethod. - PaymentMethodDataUsBank get paymentMethodData; + PaymentMethodData get paymentMethodData; @JsonKey(ignore: true) - _$$_PaymentMethodParamsUsBankAccountCopyWith< - _$_PaymentMethodParamsUsBankAccount> + _$$_PaymentMethodParamsPayPalCopyWith<_$_PaymentMethodParamsPayPal> get copyWith => throw _privateConstructorUsedError; } -PaymentMethodData _$PaymentMethodDataFromJson(Map json) { - return _PaymentMethodData.fromJson(json); -} - /// @nodoc -mixin _$PaymentMethodData { - /// Billing information. - BillingDetails? get billingDetails => throw _privateConstructorUsedError; - - /// Shipping details - ShippingDetails? get shippingDetails => throw _privateConstructorUsedError; - - Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) - $PaymentMethodDataCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $PaymentMethodDataCopyWith<$Res> { - factory $PaymentMethodDataCopyWith( - PaymentMethodData value, $Res Function(PaymentMethodData) then) = - _$PaymentMethodDataCopyWithImpl<$Res, PaymentMethodData>; +abstract class _$$_PaymentMethodParamsUsBankAccountCopyWith<$Res> { + factory _$$_PaymentMethodParamsUsBankAccountCopyWith( + _$_PaymentMethodParamsUsBankAccount value, + $Res Function(_$_PaymentMethodParamsUsBankAccount) then) = + __$$_PaymentMethodParamsUsBankAccountCopyWithImpl<$Res>; @useResult - $Res call({BillingDetails? billingDetails, ShippingDetails? shippingDetails}); + $Res call({PaymentMethodDataUsBank paymentMethodData}); - $BillingDetailsCopyWith<$Res>? get billingDetails; - $ShippingDetailsCopyWith<$Res>? get shippingDetails; + $PaymentMethodDataUsBankCopyWith<$Res> get paymentMethodData; } /// @nodoc -class _$PaymentMethodDataCopyWithImpl<$Res, $Val extends PaymentMethodData> - implements $PaymentMethodDataCopyWith<$Res> { - _$PaymentMethodDataCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; +class __$$_PaymentMethodParamsUsBankAccountCopyWithImpl<$Res> + extends _$PaymentMethodParamsCopyWithImpl<$Res, + _$_PaymentMethodParamsUsBankAccount> + implements _$$_PaymentMethodParamsUsBankAccountCopyWith<$Res> { + __$$_PaymentMethodParamsUsBankAccountCopyWithImpl( + _$_PaymentMethodParamsUsBankAccount _value, + $Res Function(_$_PaymentMethodParamsUsBankAccount) _then) + : super(_value, _then); @pragma('vm:prefer-inline') @override $Res call({ - Object? billingDetails = freezed, - Object? shippingDetails = freezed, + Object? paymentMethodData = null, }) { - return _then(_value.copyWith( - billingDetails: freezed == billingDetails - ? _value.billingDetails - : billingDetails // ignore: cast_nullable_to_non_nullable - as BillingDetails?, - shippingDetails: freezed == shippingDetails - ? _value.shippingDetails - : shippingDetails // ignore: cast_nullable_to_non_nullable - as ShippingDetails?, - ) as $Val); - } - - @override - @pragma('vm:prefer-inline') - $BillingDetailsCopyWith<$Res>? get billingDetails { - if (_value.billingDetails == null) { - return null; - } - - return $BillingDetailsCopyWith<$Res>(_value.billingDetails!, (value) { - return _then(_value.copyWith(billingDetails: value) as $Val); - }); + return _then(_$_PaymentMethodParamsUsBankAccount( + paymentMethodData: null == paymentMethodData + ? _value.paymentMethodData + : paymentMethodData // ignore: cast_nullable_to_non_nullable + as PaymentMethodDataUsBank, + )); } @override @pragma('vm:prefer-inline') - $ShippingDetailsCopyWith<$Res>? get shippingDetails { - if (_value.shippingDetails == null) { - return null; - } - - return $ShippingDetailsCopyWith<$Res>(_value.shippingDetails!, (value) { - return _then(_value.copyWith(shippingDetails: value) as $Val); + $PaymentMethodDataUsBankCopyWith<$Res> get paymentMethodData { + return $PaymentMethodDataUsBankCopyWith<$Res>(_value.paymentMethodData, + (value) { + return _then(_value.copyWith(paymentMethodData: value)); }); } } -/// @nodoc -abstract class _$$_PaymentMethodDataCopyWith<$Res> - implements $PaymentMethodDataCopyWith<$Res> { - factory _$$_PaymentMethodDataCopyWith(_$_PaymentMethodData value, - $Res Function(_$_PaymentMethodData) then) = - __$$_PaymentMethodDataCopyWithImpl<$Res>; - @override - @useResult - $Res call({BillingDetails? billingDetails, ShippingDetails? shippingDetails}); - - @override - $BillingDetailsCopyWith<$Res>? get billingDetails; - @override - $ShippingDetailsCopyWith<$Res>? get shippingDetails; -} - -/// @nodoc -class __$$_PaymentMethodDataCopyWithImpl<$Res> - extends _$PaymentMethodDataCopyWithImpl<$Res, _$_PaymentMethodData> - implements _$$_PaymentMethodDataCopyWith<$Res> { - __$$_PaymentMethodDataCopyWithImpl( - _$_PaymentMethodData _value, $Res Function(_$_PaymentMethodData) _then) - : super(_value, _then); - - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? billingDetails = freezed, - Object? shippingDetails = freezed, - }) { - return _then(_$_PaymentMethodData( - billingDetails: freezed == billingDetails - ? _value.billingDetails - : billingDetails // ignore: cast_nullable_to_non_nullable - as BillingDetails?, - shippingDetails: freezed == shippingDetails - ? _value.shippingDetails - : shippingDetails // ignore: cast_nullable_to_non_nullable - as ShippingDetails?, - )); - } -} - /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_PaymentMethodData implements _PaymentMethodData { - const _$_PaymentMethodData({this.billingDetails, this.shippingDetails}); +class _$_PaymentMethodParamsUsBankAccount + implements _PaymentMethodParamsUsBankAccount { + const _$_PaymentMethodParamsUsBankAccount( + {required this.paymentMethodData, final String? $type}) + : $type = $type ?? 'USBankAccount'; - factory _$_PaymentMethodData.fromJson(Map json) => - _$$_PaymentMethodDataFromJson(json); + factory _$_PaymentMethodParamsUsBankAccount.fromJson( + Map json) => + _$$_PaymentMethodParamsUsBankAccountFromJson(json); - /// Billing information. + /// Paymentmethod data for this paymentmethod. @override - final BillingDetails? billingDetails; + final PaymentMethodDataUsBank paymentMethodData; - /// Shipping details - @override - final ShippingDetails? shippingDetails; + @JsonKey(name: 'paymentMethodType') + final String $type; @override String toString() { - return 'PaymentMethodData(billingDetails: $billingDetails, shippingDetails: $shippingDetails)'; + return 'PaymentMethodParams.usBankAccount(paymentMethodData: $paymentMethodData)'; } @override bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentMethodData && - (identical(other.billingDetails, billingDetails) || - other.billingDetails == billingDetails) && - (identical(other.shippingDetails, shippingDetails) || - other.shippingDetails == shippingDetails)); + other is _$_PaymentMethodParamsUsBankAccount && + (identical(other.paymentMethodData, paymentMethodData) || + other.paymentMethodData == paymentMethodData)); } @JsonKey(ignore: true) @override - int get hashCode => Object.hash(runtimeType, billingDetails, shippingDetails); + int get hashCode => Object.hash(runtimeType, paymentMethodData); @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentMethodDataCopyWith<_$_PaymentMethodData> get copyWith => - __$$_PaymentMethodDataCopyWithImpl<_$_PaymentMethodData>( - this, _$identity); + _$$_PaymentMethodParamsUsBankAccountCopyWith< + _$_PaymentMethodParamsUsBankAccount> + get copyWith => __$$_PaymentMethodParamsUsBankAccountCopyWithImpl< + _$_PaymentMethodParamsUsBankAccount>(this, _$identity); @override - Map toJson() { - return _$$_PaymentMethodDataToJson( - this, - ); + @optionalTypeArgs + TResult when({ + required TResult Function(PaymentMethodData paymentMethodData) card, + required TResult Function(PaymentMethodDataCardFromToken paymentMethodData) + cardFromToken, + required TResult Function(PaymentMethodDataCardFromMethod paymentMethodData) + cardFromMethodId, + required TResult Function(PaymentMethodData paymentMethodData) alipay, + required TResult Function(PaymentMethodData paymentMethodData) cashAppPay, + required TResult Function(PaymentMethodDataIdeal paymentMethodData) ideal, + required TResult Function(PaymentMethodDataAubecs paymentMethodData) aubecs, + required TResult Function(PaymentMethodData paymentMethodData) bancontact, + required TResult Function(PaymentMethodData paymentMethodData) giroPay, + required TResult Function(PaymentMethodData paymentMethodData) eps, + required TResult Function(PaymentMethodData paymentMethodData) affirm, + required TResult Function(PaymentMethodData paymentMethodData) grabPay, + required TResult Function(PaymentMethodData paymentMethodData) p24, + required TResult Function(PaymentMethodDataFpx paymentMethodData) fpx, + required TResult Function(PaymentMethodDataSepa paymentMethodData) + sepaDebit, + required TResult Function(PaymentMethodDataSofort paymentMethodData) sofort, + required TResult Function(PaymentMethodDataAfterPay paymentMethodData) + afterpayClearpay, + required TResult Function(PaymentMethodData paymentMethodData) oxxo, + required TResult Function(PaymentMethodData paymentMethodData) klarna, + required TResult Function(PaymentMethodData paymentMethodData) payPal, + required TResult Function(PaymentMethodDataUsBank paymentMethodData) + usBankAccount, + }) { + return usBankAccount(paymentMethodData); } -} - -abstract class _PaymentMethodData implements PaymentMethodData { - const factory _PaymentMethodData( - {final BillingDetails? billingDetails, - final ShippingDetails? shippingDetails}) = _$_PaymentMethodData; - - factory _PaymentMethodData.fromJson(Map json) = - _$_PaymentMethodData.fromJson; + @override + @optionalTypeArgs + TResult? whenOrNull({ + TResult? Function(PaymentMethodData paymentMethodData)? card, + TResult? Function(PaymentMethodDataCardFromToken paymentMethodData)? + cardFromToken, + TResult? Function(PaymentMethodDataCardFromMethod paymentMethodData)? + cardFromMethodId, + TResult? Function(PaymentMethodData paymentMethodData)? alipay, + TResult? Function(PaymentMethodData paymentMethodData)? cashAppPay, + TResult? Function(PaymentMethodDataIdeal paymentMethodData)? ideal, + TResult? Function(PaymentMethodDataAubecs paymentMethodData)? aubecs, + TResult? Function(PaymentMethodData paymentMethodData)? bancontact, + TResult? Function(PaymentMethodData paymentMethodData)? giroPay, + TResult? Function(PaymentMethodData paymentMethodData)? eps, + TResult? Function(PaymentMethodData paymentMethodData)? affirm, + TResult? Function(PaymentMethodData paymentMethodData)? grabPay, + TResult? Function(PaymentMethodData paymentMethodData)? p24, + TResult? Function(PaymentMethodDataFpx paymentMethodData)? fpx, + TResult? Function(PaymentMethodDataSepa paymentMethodData)? sepaDebit, + TResult? Function(PaymentMethodDataSofort paymentMethodData)? sofort, + TResult? Function(PaymentMethodDataAfterPay paymentMethodData)? + afterpayClearpay, + TResult? Function(PaymentMethodData paymentMethodData)? oxxo, + TResult? Function(PaymentMethodData paymentMethodData)? klarna, + TResult? Function(PaymentMethodData paymentMethodData)? payPal, + TResult? Function(PaymentMethodDataUsBank paymentMethodData)? usBankAccount, + }) { + return usBankAccount?.call(paymentMethodData); + } + + @override + @optionalTypeArgs + TResult maybeWhen({ + TResult Function(PaymentMethodData paymentMethodData)? card, + TResult Function(PaymentMethodDataCardFromToken paymentMethodData)? + cardFromToken, + TResult Function(PaymentMethodDataCardFromMethod paymentMethodData)? + cardFromMethodId, + TResult Function(PaymentMethodData paymentMethodData)? alipay, + TResult Function(PaymentMethodData paymentMethodData)? cashAppPay, + TResult Function(PaymentMethodDataIdeal paymentMethodData)? ideal, + TResult Function(PaymentMethodDataAubecs paymentMethodData)? aubecs, + TResult Function(PaymentMethodData paymentMethodData)? bancontact, + TResult Function(PaymentMethodData paymentMethodData)? giroPay, + TResult Function(PaymentMethodData paymentMethodData)? eps, + TResult Function(PaymentMethodData paymentMethodData)? affirm, + TResult Function(PaymentMethodData paymentMethodData)? grabPay, + TResult Function(PaymentMethodData paymentMethodData)? p24, + TResult Function(PaymentMethodDataFpx paymentMethodData)? fpx, + TResult Function(PaymentMethodDataSepa paymentMethodData)? sepaDebit, + TResult Function(PaymentMethodDataSofort paymentMethodData)? sofort, + TResult Function(PaymentMethodDataAfterPay paymentMethodData)? + afterpayClearpay, + TResult Function(PaymentMethodData paymentMethodData)? oxxo, + TResult Function(PaymentMethodData paymentMethodData)? klarna, + TResult Function(PaymentMethodData paymentMethodData)? payPal, + TResult Function(PaymentMethodDataUsBank paymentMethodData)? usBankAccount, + required TResult orElse(), + }) { + if (usBankAccount != null) { + return usBankAccount(paymentMethodData); + } + return orElse(); + } + + @override + @optionalTypeArgs + TResult map({ + required TResult Function(_PaymentMethodParamsCard value) card, + required TResult Function(_PaymentMethodParamsCardWithToken value) + cardFromToken, + required TResult Function(_PaymentMethodParamsCardWithMethodId value) + cardFromMethodId, + required TResult Function(_PaymentMethodParamsAlipay value) alipay, + required TResult Function(_PaymentMethodParamsCashAppPay value) cashAppPay, + required TResult Function(_PaymentMethodParamsIdeal value) ideal, + required TResult Function(_PaymentMethodParamsAubecs value) aubecs, + required TResult Function(_PaymentMethodParamsBankContact value) bancontact, + required TResult Function(_PaymentMethodParamsGiroPay value) giroPay, + required TResult Function(_PaymentMethodParamsEps value) eps, + required TResult Function(_PaymentMethodParamsAffirm value) affirm, + required TResult Function(_PaymentMethodParamsPay value) grabPay, + required TResult Function(_PaymentMethodParamsP24 value) p24, + required TResult Function(_PaymentMethodParamsFpx value) fpx, + required TResult Function(_PaymentMethodParamsSepaDebit value) sepaDebit, + required TResult Function(_PaymentMethodParamsSofort value) sofort, + required TResult Function(_PaymentMethodParamsAfterpayClearpay value) + afterpayClearpay, + required TResult Function(_PaymentMethodParamsOxxo value) oxxo, + required TResult Function(_PaymentMethodParamsKlarna value) klarna, + required TResult Function(_PaymentMethodParamsPayPal value) payPal, + required TResult Function(_PaymentMethodParamsUsBankAccount value) + usBankAccount, + }) { + return usBankAccount(this); + } + + @override + @optionalTypeArgs + TResult? mapOrNull({ + TResult? Function(_PaymentMethodParamsCard value)? card, + TResult? Function(_PaymentMethodParamsCardWithToken value)? cardFromToken, + TResult? Function(_PaymentMethodParamsCardWithMethodId value)? + cardFromMethodId, + TResult? Function(_PaymentMethodParamsAlipay value)? alipay, + TResult? Function(_PaymentMethodParamsCashAppPay value)? cashAppPay, + TResult? Function(_PaymentMethodParamsIdeal value)? ideal, + TResult? Function(_PaymentMethodParamsAubecs value)? aubecs, + TResult? Function(_PaymentMethodParamsBankContact value)? bancontact, + TResult? Function(_PaymentMethodParamsGiroPay value)? giroPay, + TResult? Function(_PaymentMethodParamsEps value)? eps, + TResult? Function(_PaymentMethodParamsAffirm value)? affirm, + TResult? Function(_PaymentMethodParamsPay value)? grabPay, + TResult? Function(_PaymentMethodParamsP24 value)? p24, + TResult? Function(_PaymentMethodParamsFpx value)? fpx, + TResult? Function(_PaymentMethodParamsSepaDebit value)? sepaDebit, + TResult? Function(_PaymentMethodParamsSofort value)? sofort, + TResult? Function(_PaymentMethodParamsAfterpayClearpay value)? + afterpayClearpay, + TResult? Function(_PaymentMethodParamsOxxo value)? oxxo, + TResult? Function(_PaymentMethodParamsKlarna value)? klarna, + TResult? Function(_PaymentMethodParamsPayPal value)? payPal, + TResult? Function(_PaymentMethodParamsUsBankAccount value)? usBankAccount, + }) { + return usBankAccount?.call(this); + } + + @override + @optionalTypeArgs + TResult maybeMap({ + TResult Function(_PaymentMethodParamsCard value)? card, + TResult Function(_PaymentMethodParamsCardWithToken value)? cardFromToken, + TResult Function(_PaymentMethodParamsCardWithMethodId value)? + cardFromMethodId, + TResult Function(_PaymentMethodParamsAlipay value)? alipay, + TResult Function(_PaymentMethodParamsCashAppPay value)? cashAppPay, + TResult Function(_PaymentMethodParamsIdeal value)? ideal, + TResult Function(_PaymentMethodParamsAubecs value)? aubecs, + TResult Function(_PaymentMethodParamsBankContact value)? bancontact, + TResult Function(_PaymentMethodParamsGiroPay value)? giroPay, + TResult Function(_PaymentMethodParamsEps value)? eps, + TResult Function(_PaymentMethodParamsAffirm value)? affirm, + TResult Function(_PaymentMethodParamsPay value)? grabPay, + TResult Function(_PaymentMethodParamsP24 value)? p24, + TResult Function(_PaymentMethodParamsFpx value)? fpx, + TResult Function(_PaymentMethodParamsSepaDebit value)? sepaDebit, + TResult Function(_PaymentMethodParamsSofort value)? sofort, + TResult Function(_PaymentMethodParamsAfterpayClearpay value)? + afterpayClearpay, + TResult Function(_PaymentMethodParamsOxxo value)? oxxo, + TResult Function(_PaymentMethodParamsKlarna value)? klarna, + TResult Function(_PaymentMethodParamsPayPal value)? payPal, + TResult Function(_PaymentMethodParamsUsBankAccount value)? usBankAccount, + required TResult orElse(), + }) { + if (usBankAccount != null) { + return usBankAccount(this); + } + return orElse(); + } + + @override + Map toJson() { + return _$$_PaymentMethodParamsUsBankAccountToJson( + this, + ); + } +} + +abstract class _PaymentMethodParamsUsBankAccount + implements PaymentMethodParams { + const factory _PaymentMethodParamsUsBankAccount( + {required final PaymentMethodDataUsBank paymentMethodData}) = + _$_PaymentMethodParamsUsBankAccount; + + factory _PaymentMethodParamsUsBankAccount.fromJson( + Map json) = _$_PaymentMethodParamsUsBankAccount.fromJson; + + @override + + /// Paymentmethod data for this paymentmethod. + PaymentMethodDataUsBank get paymentMethodData; + @JsonKey(ignore: true) + _$$_PaymentMethodParamsUsBankAccountCopyWith< + _$_PaymentMethodParamsUsBankAccount> + get copyWith => throw _privateConstructorUsedError; +} + +PaymentMethodData _$PaymentMethodDataFromJson(Map json) { + return _PaymentMethodData.fromJson(json); +} + +/// @nodoc +mixin _$PaymentMethodData { + /// Billing information. + BillingDetails? get billingDetails => throw _privateConstructorUsedError; + + /// Shipping details + ShippingDetails? get shippingDetails => throw _privateConstructorUsedError; + + /// Mandata data for this paymentmethod. + MandateData? get mandateData => throw _privateConstructorUsedError; + + Map toJson() => throw _privateConstructorUsedError; + @JsonKey(ignore: true) + $PaymentMethodDataCopyWith get copyWith => + throw _privateConstructorUsedError; +} + +/// @nodoc +abstract class $PaymentMethodDataCopyWith<$Res> { + factory $PaymentMethodDataCopyWith( + PaymentMethodData value, $Res Function(PaymentMethodData) then) = + _$PaymentMethodDataCopyWithImpl<$Res, PaymentMethodData>; + @useResult + $Res call( + {BillingDetails? billingDetails, + ShippingDetails? shippingDetails, + MandateData? mandateData}); + + $BillingDetailsCopyWith<$Res>? get billingDetails; + $ShippingDetailsCopyWith<$Res>? get shippingDetails; + $MandateDataCopyWith<$Res>? get mandateData; +} + +/// @nodoc +class _$PaymentMethodDataCopyWithImpl<$Res, $Val extends PaymentMethodData> + implements $PaymentMethodDataCopyWith<$Res> { + _$PaymentMethodDataCopyWithImpl(this._value, this._then); + + // ignore: unused_field + final $Val _value; + // ignore: unused_field + final $Res Function($Val) _then; + + @pragma('vm:prefer-inline') + @override + $Res call({ + Object? billingDetails = freezed, + Object? shippingDetails = freezed, + Object? mandateData = freezed, + }) { + return _then(_value.copyWith( + billingDetails: freezed == billingDetails + ? _value.billingDetails + : billingDetails // ignore: cast_nullable_to_non_nullable + as BillingDetails?, + shippingDetails: freezed == shippingDetails + ? _value.shippingDetails + : shippingDetails // ignore: cast_nullable_to_non_nullable + as ShippingDetails?, + mandateData: freezed == mandateData + ? _value.mandateData + : mandateData // ignore: cast_nullable_to_non_nullable + as MandateData?, + ) as $Val); + } + + @override + @pragma('vm:prefer-inline') + $BillingDetailsCopyWith<$Res>? get billingDetails { + if (_value.billingDetails == null) { + return null; + } + + return $BillingDetailsCopyWith<$Res>(_value.billingDetails!, (value) { + return _then(_value.copyWith(billingDetails: value) as $Val); + }); + } + + @override + @pragma('vm:prefer-inline') + $ShippingDetailsCopyWith<$Res>? get shippingDetails { + if (_value.shippingDetails == null) { + return null; + } + + return $ShippingDetailsCopyWith<$Res>(_value.shippingDetails!, (value) { + return _then(_value.copyWith(shippingDetails: value) as $Val); + }); + } + + @override + @pragma('vm:prefer-inline') + $MandateDataCopyWith<$Res>? get mandateData { + if (_value.mandateData == null) { + return null; + } + + return $MandateDataCopyWith<$Res>(_value.mandateData!, (value) { + return _then(_value.copyWith(mandateData: value) as $Val); + }); + } +} + +/// @nodoc +abstract class _$$_PaymentMethodDataCopyWith<$Res> + implements $PaymentMethodDataCopyWith<$Res> { + factory _$$_PaymentMethodDataCopyWith(_$_PaymentMethodData value, + $Res Function(_$_PaymentMethodData) then) = + __$$_PaymentMethodDataCopyWithImpl<$Res>; + @override + @useResult + $Res call( + {BillingDetails? billingDetails, + ShippingDetails? shippingDetails, + MandateData? mandateData}); + + @override + $BillingDetailsCopyWith<$Res>? get billingDetails; + @override + $ShippingDetailsCopyWith<$Res>? get shippingDetails; + @override + $MandateDataCopyWith<$Res>? get mandateData; +} + +/// @nodoc +class __$$_PaymentMethodDataCopyWithImpl<$Res> + extends _$PaymentMethodDataCopyWithImpl<$Res, _$_PaymentMethodData> + implements _$$_PaymentMethodDataCopyWith<$Res> { + __$$_PaymentMethodDataCopyWithImpl( + _$_PaymentMethodData _value, $Res Function(_$_PaymentMethodData) _then) + : super(_value, _then); + + @pragma('vm:prefer-inline') + @override + $Res call({ + Object? billingDetails = freezed, + Object? shippingDetails = freezed, + Object? mandateData = freezed, + }) { + return _then(_$_PaymentMethodData( + billingDetails: freezed == billingDetails + ? _value.billingDetails + : billingDetails // ignore: cast_nullable_to_non_nullable + as BillingDetails?, + shippingDetails: freezed == shippingDetails + ? _value.shippingDetails + : shippingDetails // ignore: cast_nullable_to_non_nullable + as ShippingDetails?, + mandateData: freezed == mandateData + ? _value.mandateData + : mandateData // ignore: cast_nullable_to_non_nullable + as MandateData?, + )); + } +} + +/// @nodoc + +@JsonSerializable(explicitToJson: true) +class _$_PaymentMethodData implements _PaymentMethodData { + const _$_PaymentMethodData( + {this.billingDetails, this.shippingDetails, this.mandateData}); + + factory _$_PaymentMethodData.fromJson(Map json) => + _$$_PaymentMethodDataFromJson(json); + + /// Billing information. + @override + final BillingDetails? billingDetails; + + /// Shipping details + @override + final ShippingDetails? shippingDetails; + + /// Mandata data for this paymentmethod. + @override + final MandateData? mandateData; + + @override + String toString() { + return 'PaymentMethodData(billingDetails: $billingDetails, shippingDetails: $shippingDetails, mandateData: $mandateData)'; + } + + @override + bool operator ==(dynamic other) { + return identical(this, other) || + (other.runtimeType == runtimeType && + other is _$_PaymentMethodData && + (identical(other.billingDetails, billingDetails) || + other.billingDetails == billingDetails) && + (identical(other.shippingDetails, shippingDetails) || + other.shippingDetails == shippingDetails) && + (identical(other.mandateData, mandateData) || + other.mandateData == mandateData)); + } + + @JsonKey(ignore: true) + @override + int get hashCode => + Object.hash(runtimeType, billingDetails, shippingDetails, mandateData); + + @JsonKey(ignore: true) + @override + @pragma('vm:prefer-inline') + _$$_PaymentMethodDataCopyWith<_$_PaymentMethodData> get copyWith => + __$$_PaymentMethodDataCopyWithImpl<_$_PaymentMethodData>( + this, _$identity); + + @override + Map toJson() { + return _$$_PaymentMethodDataToJson( + this, + ); + } +} + +abstract class _PaymentMethodData implements PaymentMethodData { + const factory _PaymentMethodData( + {final BillingDetails? billingDetails, + final ShippingDetails? shippingDetails, + final MandateData? mandateData}) = _$_PaymentMethodData; + + factory _PaymentMethodData.fromJson(Map json) = + _$_PaymentMethodData.fromJson; + + @override + + /// Billing information. + BillingDetails? get billingDetails; + @override + + /// Shipping details + ShippingDetails? get shippingDetails; + @override + + /// Mandata data for this paymentmethod. + MandateData? get mandateData; + @override + @JsonKey(ignore: true) + _$$_PaymentMethodDataCopyWith<_$_PaymentMethodData> get copyWith => + throw _privateConstructorUsedError; +} + +PaymentMethodDataCardFromToken _$PaymentMethodDataCardFromTokenFromJson( + Map json) { + return _PaymentMethodDataCardFromToken.fromJson(json); +} + +/// @nodoc +mixin _$PaymentMethodDataCardFromToken { + /// Token. + String get token => throw _privateConstructorUsedError; + + /// Billing information. + BillingDetails? get billingDetails => throw _privateConstructorUsedError; + + /// Shipping details + ShippingDetails? get shippingDetails => throw _privateConstructorUsedError; + + /// Mandata data for this paymentmethod. + MandateData? get mandateData => throw _privateConstructorUsedError; + + Map toJson() => throw _privateConstructorUsedError; + @JsonKey(ignore: true) + $PaymentMethodDataCardFromTokenCopyWith + get copyWith => throw _privateConstructorUsedError; +} + +/// @nodoc +abstract class $PaymentMethodDataCardFromTokenCopyWith<$Res> { + factory $PaymentMethodDataCardFromTokenCopyWith( + PaymentMethodDataCardFromToken value, + $Res Function(PaymentMethodDataCardFromToken) then) = + _$PaymentMethodDataCardFromTokenCopyWithImpl<$Res, + PaymentMethodDataCardFromToken>; + @useResult + $Res call( + {String token, + BillingDetails? billingDetails, + ShippingDetails? shippingDetails, + MandateData? mandateData}); + + $BillingDetailsCopyWith<$Res>? get billingDetails; + $ShippingDetailsCopyWith<$Res>? get shippingDetails; + $MandateDataCopyWith<$Res>? get mandateData; +} + +/// @nodoc +class _$PaymentMethodDataCardFromTokenCopyWithImpl<$Res, + $Val extends PaymentMethodDataCardFromToken> + implements $PaymentMethodDataCardFromTokenCopyWith<$Res> { + _$PaymentMethodDataCardFromTokenCopyWithImpl(this._value, this._then); + + // ignore: unused_field + final $Val _value; + // ignore: unused_field + final $Res Function($Val) _then; + + @pragma('vm:prefer-inline') + @override + $Res call({ + Object? token = null, + Object? billingDetails = freezed, + Object? shippingDetails = freezed, + Object? mandateData = freezed, + }) { + return _then(_value.copyWith( + token: null == token + ? _value.token + : token // ignore: cast_nullable_to_non_nullable + as String, + billingDetails: freezed == billingDetails + ? _value.billingDetails + : billingDetails // ignore: cast_nullable_to_non_nullable + as BillingDetails?, + shippingDetails: freezed == shippingDetails + ? _value.shippingDetails + : shippingDetails // ignore: cast_nullable_to_non_nullable + as ShippingDetails?, + mandateData: freezed == mandateData + ? _value.mandateData + : mandateData // ignore: cast_nullable_to_non_nullable + as MandateData?, + ) as $Val); + } + + @override + @pragma('vm:prefer-inline') + $BillingDetailsCopyWith<$Res>? get billingDetails { + if (_value.billingDetails == null) { + return null; + } + + return $BillingDetailsCopyWith<$Res>(_value.billingDetails!, (value) { + return _then(_value.copyWith(billingDetails: value) as $Val); + }); + } + + @override + @pragma('vm:prefer-inline') + $ShippingDetailsCopyWith<$Res>? get shippingDetails { + if (_value.shippingDetails == null) { + return null; + } + + return $ShippingDetailsCopyWith<$Res>(_value.shippingDetails!, (value) { + return _then(_value.copyWith(shippingDetails: value) as $Val); + }); + } + + @override + @pragma('vm:prefer-inline') + $MandateDataCopyWith<$Res>? get mandateData { + if (_value.mandateData == null) { + return null; + } + + return $MandateDataCopyWith<$Res>(_value.mandateData!, (value) { + return _then(_value.copyWith(mandateData: value) as $Val); + }); + } +} + +/// @nodoc +abstract class _$$_PaymentMethodDataCardFromTokenCopyWith<$Res> + implements $PaymentMethodDataCardFromTokenCopyWith<$Res> { + factory _$$_PaymentMethodDataCardFromTokenCopyWith( + _$_PaymentMethodDataCardFromToken value, + $Res Function(_$_PaymentMethodDataCardFromToken) then) = + __$$_PaymentMethodDataCardFromTokenCopyWithImpl<$Res>; + @override + @useResult + $Res call( + {String token, + BillingDetails? billingDetails, + ShippingDetails? shippingDetails, + MandateData? mandateData}); + + @override + $BillingDetailsCopyWith<$Res>? get billingDetails; + @override + $ShippingDetailsCopyWith<$Res>? get shippingDetails; + @override + $MandateDataCopyWith<$Res>? get mandateData; +} + +/// @nodoc +class __$$_PaymentMethodDataCardFromTokenCopyWithImpl<$Res> + extends _$PaymentMethodDataCardFromTokenCopyWithImpl<$Res, + _$_PaymentMethodDataCardFromToken> + implements _$$_PaymentMethodDataCardFromTokenCopyWith<$Res> { + __$$_PaymentMethodDataCardFromTokenCopyWithImpl( + _$_PaymentMethodDataCardFromToken _value, + $Res Function(_$_PaymentMethodDataCardFromToken) _then) + : super(_value, _then); + + @pragma('vm:prefer-inline') + @override + $Res call({ + Object? token = null, + Object? billingDetails = freezed, + Object? shippingDetails = freezed, + Object? mandateData = freezed, + }) { + return _then(_$_PaymentMethodDataCardFromToken( + token: null == token + ? _value.token + : token // ignore: cast_nullable_to_non_nullable + as String, + billingDetails: freezed == billingDetails + ? _value.billingDetails + : billingDetails // ignore: cast_nullable_to_non_nullable + as BillingDetails?, + shippingDetails: freezed == shippingDetails + ? _value.shippingDetails + : shippingDetails // ignore: cast_nullable_to_non_nullable + as ShippingDetails?, + mandateData: freezed == mandateData + ? _value.mandateData + : mandateData // ignore: cast_nullable_to_non_nullable + as MandateData?, + )); + } +} + +/// @nodoc + +@JsonSerializable(explicitToJson: true) +class _$_PaymentMethodDataCardFromToken + implements _PaymentMethodDataCardFromToken { + const _$_PaymentMethodDataCardFromToken( + {required this.token, + this.billingDetails, + this.shippingDetails, + this.mandateData}); + + factory _$_PaymentMethodDataCardFromToken.fromJson( + Map json) => + _$$_PaymentMethodDataCardFromTokenFromJson(json); + + /// Token. + @override + final String token; + + /// Billing information. + @override + final BillingDetails? billingDetails; + + /// Shipping details + @override + final ShippingDetails? shippingDetails; + + /// Mandata data for this paymentmethod. + @override + final MandateData? mandateData; + + @override + String toString() { + return 'PaymentMethodDataCardFromToken(token: $token, billingDetails: $billingDetails, shippingDetails: $shippingDetails, mandateData: $mandateData)'; + } + + @override + bool operator ==(dynamic other) { + return identical(this, other) || + (other.runtimeType == runtimeType && + other is _$_PaymentMethodDataCardFromToken && + (identical(other.token, token) || other.token == token) && + (identical(other.billingDetails, billingDetails) || + other.billingDetails == billingDetails) && + (identical(other.shippingDetails, shippingDetails) || + other.shippingDetails == shippingDetails) && + (identical(other.mandateData, mandateData) || + other.mandateData == mandateData)); + } + + @JsonKey(ignore: true) + @override + int get hashCode => Object.hash( + runtimeType, token, billingDetails, shippingDetails, mandateData); + + @JsonKey(ignore: true) + @override + @pragma('vm:prefer-inline') + _$$_PaymentMethodDataCardFromTokenCopyWith<_$_PaymentMethodDataCardFromToken> + get copyWith => __$$_PaymentMethodDataCardFromTokenCopyWithImpl< + _$_PaymentMethodDataCardFromToken>(this, _$identity); + + @override + Map toJson() { + return _$$_PaymentMethodDataCardFromTokenToJson( + this, + ); + } +} + +abstract class _PaymentMethodDataCardFromToken + implements PaymentMethodDataCardFromToken { + const factory _PaymentMethodDataCardFromToken( + {required final String token, + final BillingDetails? billingDetails, + final ShippingDetails? shippingDetails, + final MandateData? mandateData}) = _$_PaymentMethodDataCardFromToken; + + factory _PaymentMethodDataCardFromToken.fromJson(Map json) = + _$_PaymentMethodDataCardFromToken.fromJson; + + @override + + /// Token. + String get token; + @override + + /// Billing information. + BillingDetails? get billingDetails; + @override + + /// Shipping details + ShippingDetails? get shippingDetails; + @override + + /// Mandata data for this paymentmethod. + MandateData? get mandateData; + @override + @JsonKey(ignore: true) + _$$_PaymentMethodDataCardFromTokenCopyWith<_$_PaymentMethodDataCardFromToken> + get copyWith => throw _privateConstructorUsedError; +} + +PaymentMethodDataCardFromMethod _$PaymentMethodDataCardFromMethodFromJson( + Map json) { + return _PaymentMethodDataCardFromMethod.fromJson(json); +} + +/// @nodoc +mixin _$PaymentMethodDataCardFromMethod { + /// Payment method id. + String get paymentMethodId => throw _privateConstructorUsedError; + + /// Cvc of the cart + String? get cvc => throw _privateConstructorUsedError; + + /// Billing information. + BillingDetails? get billingDetails => throw _privateConstructorUsedError; + + /// Shipping details + ShippingDetails? get shippingDetails => throw _privateConstructorUsedError; + + /// Mandata data for this paymentmethod. + MandateData? get mandateData => throw _privateConstructorUsedError; + + Map toJson() => throw _privateConstructorUsedError; + @JsonKey(ignore: true) + $PaymentMethodDataCardFromMethodCopyWith + get copyWith => throw _privateConstructorUsedError; +} + +/// @nodoc +abstract class $PaymentMethodDataCardFromMethodCopyWith<$Res> { + factory $PaymentMethodDataCardFromMethodCopyWith( + PaymentMethodDataCardFromMethod value, + $Res Function(PaymentMethodDataCardFromMethod) then) = + _$PaymentMethodDataCardFromMethodCopyWithImpl<$Res, + PaymentMethodDataCardFromMethod>; + @useResult + $Res call( + {String paymentMethodId, + String? cvc, + BillingDetails? billingDetails, + ShippingDetails? shippingDetails, + MandateData? mandateData}); + + $BillingDetailsCopyWith<$Res>? get billingDetails; + $ShippingDetailsCopyWith<$Res>? get shippingDetails; + $MandateDataCopyWith<$Res>? get mandateData; +} + +/// @nodoc +class _$PaymentMethodDataCardFromMethodCopyWithImpl<$Res, + $Val extends PaymentMethodDataCardFromMethod> + implements $PaymentMethodDataCardFromMethodCopyWith<$Res> { + _$PaymentMethodDataCardFromMethodCopyWithImpl(this._value, this._then); + + // ignore: unused_field + final $Val _value; + // ignore: unused_field + final $Res Function($Val) _then; + + @pragma('vm:prefer-inline') + @override + $Res call({ + Object? paymentMethodId = null, + Object? cvc = freezed, + Object? billingDetails = freezed, + Object? shippingDetails = freezed, + Object? mandateData = freezed, + }) { + return _then(_value.copyWith( + paymentMethodId: null == paymentMethodId + ? _value.paymentMethodId + : paymentMethodId // ignore: cast_nullable_to_non_nullable + as String, + cvc: freezed == cvc + ? _value.cvc + : cvc // ignore: cast_nullable_to_non_nullable + as String?, + billingDetails: freezed == billingDetails + ? _value.billingDetails + : billingDetails // ignore: cast_nullable_to_non_nullable + as BillingDetails?, + shippingDetails: freezed == shippingDetails + ? _value.shippingDetails + : shippingDetails // ignore: cast_nullable_to_non_nullable + as ShippingDetails?, + mandateData: freezed == mandateData + ? _value.mandateData + : mandateData // ignore: cast_nullable_to_non_nullable + as MandateData?, + ) as $Val); + } + + @override + @pragma('vm:prefer-inline') + $BillingDetailsCopyWith<$Res>? get billingDetails { + if (_value.billingDetails == null) { + return null; + } + + return $BillingDetailsCopyWith<$Res>(_value.billingDetails!, (value) { + return _then(_value.copyWith(billingDetails: value) as $Val); + }); + } + + @override + @pragma('vm:prefer-inline') + $ShippingDetailsCopyWith<$Res>? get shippingDetails { + if (_value.shippingDetails == null) { + return null; + } + + return $ShippingDetailsCopyWith<$Res>(_value.shippingDetails!, (value) { + return _then(_value.copyWith(shippingDetails: value) as $Val); + }); + } + + @override + @pragma('vm:prefer-inline') + $MandateDataCopyWith<$Res>? get mandateData { + if (_value.mandateData == null) { + return null; + } + + return $MandateDataCopyWith<$Res>(_value.mandateData!, (value) { + return _then(_value.copyWith(mandateData: value) as $Val); + }); + } +} + +/// @nodoc +abstract class _$$_PaymentMethodDataCardFromMethodCopyWith<$Res> + implements $PaymentMethodDataCardFromMethodCopyWith<$Res> { + factory _$$_PaymentMethodDataCardFromMethodCopyWith( + _$_PaymentMethodDataCardFromMethod value, + $Res Function(_$_PaymentMethodDataCardFromMethod) then) = + __$$_PaymentMethodDataCardFromMethodCopyWithImpl<$Res>; + @override + @useResult + $Res call( + {String paymentMethodId, + String? cvc, + BillingDetails? billingDetails, + ShippingDetails? shippingDetails, + MandateData? mandateData}); + + @override + $BillingDetailsCopyWith<$Res>? get billingDetails; + @override + $ShippingDetailsCopyWith<$Res>? get shippingDetails; + @override + $MandateDataCopyWith<$Res>? get mandateData; +} + +/// @nodoc +class __$$_PaymentMethodDataCardFromMethodCopyWithImpl<$Res> + extends _$PaymentMethodDataCardFromMethodCopyWithImpl<$Res, + _$_PaymentMethodDataCardFromMethod> + implements _$$_PaymentMethodDataCardFromMethodCopyWith<$Res> { + __$$_PaymentMethodDataCardFromMethodCopyWithImpl( + _$_PaymentMethodDataCardFromMethod _value, + $Res Function(_$_PaymentMethodDataCardFromMethod) _then) + : super(_value, _then); + + @pragma('vm:prefer-inline') + @override + $Res call({ + Object? paymentMethodId = null, + Object? cvc = freezed, + Object? billingDetails = freezed, + Object? shippingDetails = freezed, + Object? mandateData = freezed, + }) { + return _then(_$_PaymentMethodDataCardFromMethod( + paymentMethodId: null == paymentMethodId + ? _value.paymentMethodId + : paymentMethodId // ignore: cast_nullable_to_non_nullable + as String, + cvc: freezed == cvc + ? _value.cvc + : cvc // ignore: cast_nullable_to_non_nullable + as String?, + billingDetails: freezed == billingDetails + ? _value.billingDetails + : billingDetails // ignore: cast_nullable_to_non_nullable + as BillingDetails?, + shippingDetails: freezed == shippingDetails + ? _value.shippingDetails + : shippingDetails // ignore: cast_nullable_to_non_nullable + as ShippingDetails?, + mandateData: freezed == mandateData + ? _value.mandateData + : mandateData // ignore: cast_nullable_to_non_nullable + as MandateData?, + )); + } +} + +/// @nodoc + +@JsonSerializable(explicitToJson: true) +class _$_PaymentMethodDataCardFromMethod + implements _PaymentMethodDataCardFromMethod { + const _$_PaymentMethodDataCardFromMethod( + {required this.paymentMethodId, + this.cvc, + this.billingDetails, + this.shippingDetails, + this.mandateData}); + + factory _$_PaymentMethodDataCardFromMethod.fromJson( + Map json) => + _$$_PaymentMethodDataCardFromMethodFromJson(json); + + /// Payment method id. + @override + final String paymentMethodId; + + /// Cvc of the cart + @override + final String? cvc; + + /// Billing information. + @override + final BillingDetails? billingDetails; + + /// Shipping details + @override + final ShippingDetails? shippingDetails; + + /// Mandata data for this paymentmethod. + @override + final MandateData? mandateData; + + @override + String toString() { + return 'PaymentMethodDataCardFromMethod(paymentMethodId: $paymentMethodId, cvc: $cvc, billingDetails: $billingDetails, shippingDetails: $shippingDetails, mandateData: $mandateData)'; + } + + @override + bool operator ==(dynamic other) { + return identical(this, other) || + (other.runtimeType == runtimeType && + other is _$_PaymentMethodDataCardFromMethod && + (identical(other.paymentMethodId, paymentMethodId) || + other.paymentMethodId == paymentMethodId) && + (identical(other.cvc, cvc) || other.cvc == cvc) && + (identical(other.billingDetails, billingDetails) || + other.billingDetails == billingDetails) && + (identical(other.shippingDetails, shippingDetails) || + other.shippingDetails == shippingDetails) && + (identical(other.mandateData, mandateData) || + other.mandateData == mandateData)); + } + + @JsonKey(ignore: true) + @override + int get hashCode => Object.hash(runtimeType, paymentMethodId, cvc, + billingDetails, shippingDetails, mandateData); + + @JsonKey(ignore: true) + @override + @pragma('vm:prefer-inline') + _$$_PaymentMethodDataCardFromMethodCopyWith< + _$_PaymentMethodDataCardFromMethod> + get copyWith => __$$_PaymentMethodDataCardFromMethodCopyWithImpl< + _$_PaymentMethodDataCardFromMethod>(this, _$identity); + + @override + Map toJson() { + return _$$_PaymentMethodDataCardFromMethodToJson( + this, + ); + } +} + +abstract class _PaymentMethodDataCardFromMethod + implements PaymentMethodDataCardFromMethod { + const factory _PaymentMethodDataCardFromMethod( + {required final String paymentMethodId, + final String? cvc, + final BillingDetails? billingDetails, + final ShippingDetails? shippingDetails, + final MandateData? mandateData}) = _$_PaymentMethodDataCardFromMethod; + + factory _PaymentMethodDataCardFromMethod.fromJson(Map json) = + _$_PaymentMethodDataCardFromMethod.fromJson; + + @override + + /// Payment method id. + String get paymentMethodId; + @override + + /// Cvc of the cart + String? get cvc; + @override + + /// Billing information. + BillingDetails? get billingDetails; + @override + + /// Shipping details + ShippingDetails? get shippingDetails; + @override + + /// Mandata data for this paymentmethod. + MandateData? get mandateData; + @override + @JsonKey(ignore: true) + _$$_PaymentMethodDataCardFromMethodCopyWith< + _$_PaymentMethodDataCardFromMethod> + get copyWith => throw _privateConstructorUsedError; +} + +PaymentMethodDataIdeal _$PaymentMethodDataIdealFromJson( + Map json) { + return _PaymentMethodDataIdeal.fromJson(json); +} + +/// @nodoc +mixin _$PaymentMethodDataIdeal { + /// The name of bank. + String? get bankName => throw _privateConstructorUsedError; + + /// Billing information. + BillingDetails? get billingDetails => throw _privateConstructorUsedError; + + /// Shipping details + ShippingDetails? get shippingDetails => throw _privateConstructorUsedError; + + /// Mandata data for this paymentmethod. + MandateData? get mandateData => throw _privateConstructorUsedError; + + Map toJson() => throw _privateConstructorUsedError; + @JsonKey(ignore: true) + $PaymentMethodDataIdealCopyWith get copyWith => + throw _privateConstructorUsedError; +} + +/// @nodoc +abstract class $PaymentMethodDataIdealCopyWith<$Res> { + factory $PaymentMethodDataIdealCopyWith(PaymentMethodDataIdeal value, + $Res Function(PaymentMethodDataIdeal) then) = + _$PaymentMethodDataIdealCopyWithImpl<$Res, PaymentMethodDataIdeal>; + @useResult + $Res call( + {String? bankName, + BillingDetails? billingDetails, + ShippingDetails? shippingDetails, + MandateData? mandateData}); + + $BillingDetailsCopyWith<$Res>? get billingDetails; + $ShippingDetailsCopyWith<$Res>? get shippingDetails; + $MandateDataCopyWith<$Res>? get mandateData; +} + +/// @nodoc +class _$PaymentMethodDataIdealCopyWithImpl<$Res, + $Val extends PaymentMethodDataIdeal> + implements $PaymentMethodDataIdealCopyWith<$Res> { + _$PaymentMethodDataIdealCopyWithImpl(this._value, this._then); + + // ignore: unused_field + final $Val _value; + // ignore: unused_field + final $Res Function($Val) _then; + + @pragma('vm:prefer-inline') + @override + $Res call({ + Object? bankName = freezed, + Object? billingDetails = freezed, + Object? shippingDetails = freezed, + Object? mandateData = freezed, + }) { + return _then(_value.copyWith( + bankName: freezed == bankName + ? _value.bankName + : bankName // ignore: cast_nullable_to_non_nullable + as String?, + billingDetails: freezed == billingDetails + ? _value.billingDetails + : billingDetails // ignore: cast_nullable_to_non_nullable + as BillingDetails?, + shippingDetails: freezed == shippingDetails + ? _value.shippingDetails + : shippingDetails // ignore: cast_nullable_to_non_nullable + as ShippingDetails?, + mandateData: freezed == mandateData + ? _value.mandateData + : mandateData // ignore: cast_nullable_to_non_nullable + as MandateData?, + ) as $Val); + } + + @override + @pragma('vm:prefer-inline') + $BillingDetailsCopyWith<$Res>? get billingDetails { + if (_value.billingDetails == null) { + return null; + } + + return $BillingDetailsCopyWith<$Res>(_value.billingDetails!, (value) { + return _then(_value.copyWith(billingDetails: value) as $Val); + }); + } + + @override + @pragma('vm:prefer-inline') + $ShippingDetailsCopyWith<$Res>? get shippingDetails { + if (_value.shippingDetails == null) { + return null; + } + + return $ShippingDetailsCopyWith<$Res>(_value.shippingDetails!, (value) { + return _then(_value.copyWith(shippingDetails: value) as $Val); + }); + } + + @override + @pragma('vm:prefer-inline') + $MandateDataCopyWith<$Res>? get mandateData { + if (_value.mandateData == null) { + return null; + } + + return $MandateDataCopyWith<$Res>(_value.mandateData!, (value) { + return _then(_value.copyWith(mandateData: value) as $Val); + }); + } +} + +/// @nodoc +abstract class _$$_PaymentMethodDataIdealCopyWith<$Res> + implements $PaymentMethodDataIdealCopyWith<$Res> { + factory _$$_PaymentMethodDataIdealCopyWith(_$_PaymentMethodDataIdeal value, + $Res Function(_$_PaymentMethodDataIdeal) then) = + __$$_PaymentMethodDataIdealCopyWithImpl<$Res>; + @override + @useResult + $Res call( + {String? bankName, + BillingDetails? billingDetails, + ShippingDetails? shippingDetails, + MandateData? mandateData}); + + @override + $BillingDetailsCopyWith<$Res>? get billingDetails; + @override + $ShippingDetailsCopyWith<$Res>? get shippingDetails; + @override + $MandateDataCopyWith<$Res>? get mandateData; +} + +/// @nodoc +class __$$_PaymentMethodDataIdealCopyWithImpl<$Res> + extends _$PaymentMethodDataIdealCopyWithImpl<$Res, + _$_PaymentMethodDataIdeal> + implements _$$_PaymentMethodDataIdealCopyWith<$Res> { + __$$_PaymentMethodDataIdealCopyWithImpl(_$_PaymentMethodDataIdeal _value, + $Res Function(_$_PaymentMethodDataIdeal) _then) + : super(_value, _then); + + @pragma('vm:prefer-inline') + @override + $Res call({ + Object? bankName = freezed, + Object? billingDetails = freezed, + Object? shippingDetails = freezed, + Object? mandateData = freezed, + }) { + return _then(_$_PaymentMethodDataIdeal( + bankName: freezed == bankName + ? _value.bankName + : bankName // ignore: cast_nullable_to_non_nullable + as String?, + billingDetails: freezed == billingDetails + ? _value.billingDetails + : billingDetails // ignore: cast_nullable_to_non_nullable + as BillingDetails?, + shippingDetails: freezed == shippingDetails + ? _value.shippingDetails + : shippingDetails // ignore: cast_nullable_to_non_nullable + as ShippingDetails?, + mandateData: freezed == mandateData + ? _value.mandateData + : mandateData // ignore: cast_nullable_to_non_nullable + as MandateData?, + )); + } +} + +/// @nodoc + +@JsonSerializable(explicitToJson: true) +class _$_PaymentMethodDataIdeal implements _PaymentMethodDataIdeal { + const _$_PaymentMethodDataIdeal( + {this.bankName, + this.billingDetails, + this.shippingDetails, + this.mandateData}); + + factory _$_PaymentMethodDataIdeal.fromJson(Map json) => + _$$_PaymentMethodDataIdealFromJson(json); + + /// The name of bank. + @override + final String? bankName; + + /// Billing information. + @override + final BillingDetails? billingDetails; + + /// Shipping details + @override + final ShippingDetails? shippingDetails; + + /// Mandata data for this paymentmethod. + @override + final MandateData? mandateData; + + @override + String toString() { + return 'PaymentMethodDataIdeal(bankName: $bankName, billingDetails: $billingDetails, shippingDetails: $shippingDetails, mandateData: $mandateData)'; + } + + @override + bool operator ==(dynamic other) { + return identical(this, other) || + (other.runtimeType == runtimeType && + other is _$_PaymentMethodDataIdeal && + (identical(other.bankName, bankName) || + other.bankName == bankName) && + (identical(other.billingDetails, billingDetails) || + other.billingDetails == billingDetails) && + (identical(other.shippingDetails, shippingDetails) || + other.shippingDetails == shippingDetails) && + (identical(other.mandateData, mandateData) || + other.mandateData == mandateData)); + } + + @JsonKey(ignore: true) + @override + int get hashCode => Object.hash( + runtimeType, bankName, billingDetails, shippingDetails, mandateData); + + @JsonKey(ignore: true) + @override + @pragma('vm:prefer-inline') + _$$_PaymentMethodDataIdealCopyWith<_$_PaymentMethodDataIdeal> get copyWith => + __$$_PaymentMethodDataIdealCopyWithImpl<_$_PaymentMethodDataIdeal>( + this, _$identity); + + @override + Map toJson() { + return _$$_PaymentMethodDataIdealToJson( + this, + ); + } +} + +abstract class _PaymentMethodDataIdeal implements PaymentMethodDataIdeal { + const factory _PaymentMethodDataIdeal( + {final String? bankName, + final BillingDetails? billingDetails, + final ShippingDetails? shippingDetails, + final MandateData? mandateData}) = _$_PaymentMethodDataIdeal; + + factory _PaymentMethodDataIdeal.fromJson(Map json) = + _$_PaymentMethodDataIdeal.fromJson; + + @override + + /// The name of bank. + String? get bankName; + @override + + /// Billing information. + BillingDetails? get billingDetails; @override - /// Billing information. - BillingDetails? get billingDetails; - @override - /// Shipping details ShippingDetails? get shippingDetails; @override + + /// Mandata data for this paymentmethod. + MandateData? get mandateData; + @override @JsonKey(ignore: true) - _$$_PaymentMethodDataCopyWith<_$_PaymentMethodData> get copyWith => + _$$_PaymentMethodDataIdealCopyWith<_$_PaymentMethodDataIdeal> get copyWith => throw _privateConstructorUsedError; } -PaymentMethodDataCardFromToken _$PaymentMethodDataCardFromTokenFromJson( +PaymentMethodDataAubecs _$PaymentMethodDataAubecsFromJson( Map json) { - return _PaymentMethodDataCardFromToken.fromJson(json); + return _PaymentMethodDataAubecs.fromJson(json); } /// @nodoc -mixin _$PaymentMethodDataCardFromToken { - /// Token. - String get token => throw _privateConstructorUsedError; +mixin _$PaymentMethodDataAubecs { + /// form input details + AubecsFormInputDetails get formDetails => throw _privateConstructorUsedError; /// Billing information. BillingDetails? get billingDetails => throw _privateConstructorUsedError; @@ -9302,34 +10658,38 @@ mixin _$PaymentMethodDataCardFromToken { /// Shipping details ShippingDetails? get shippingDetails => throw _privateConstructorUsedError; + /// Mandata data for this paymentmethod. + MandateData? get mandateData => throw _privateConstructorUsedError; + Map toJson() => throw _privateConstructorUsedError; @JsonKey(ignore: true) - $PaymentMethodDataCardFromTokenCopyWith - get copyWith => throw _privateConstructorUsedError; + $PaymentMethodDataAubecsCopyWith get copyWith => + throw _privateConstructorUsedError; } /// @nodoc -abstract class $PaymentMethodDataCardFromTokenCopyWith<$Res> { - factory $PaymentMethodDataCardFromTokenCopyWith( - PaymentMethodDataCardFromToken value, - $Res Function(PaymentMethodDataCardFromToken) then) = - _$PaymentMethodDataCardFromTokenCopyWithImpl<$Res, - PaymentMethodDataCardFromToken>; +abstract class $PaymentMethodDataAubecsCopyWith<$Res> { + factory $PaymentMethodDataAubecsCopyWith(PaymentMethodDataAubecs value, + $Res Function(PaymentMethodDataAubecs) then) = + _$PaymentMethodDataAubecsCopyWithImpl<$Res, PaymentMethodDataAubecs>; @useResult $Res call( - {String token, + {AubecsFormInputDetails formDetails, BillingDetails? billingDetails, - ShippingDetails? shippingDetails}); + ShippingDetails? shippingDetails, + MandateData? mandateData}); + $AubecsFormInputDetailsCopyWith<$Res> get formDetails; $BillingDetailsCopyWith<$Res>? get billingDetails; $ShippingDetailsCopyWith<$Res>? get shippingDetails; + $MandateDataCopyWith<$Res>? get mandateData; } /// @nodoc -class _$PaymentMethodDataCardFromTokenCopyWithImpl<$Res, - $Val extends PaymentMethodDataCardFromToken> - implements $PaymentMethodDataCardFromTokenCopyWith<$Res> { - _$PaymentMethodDataCardFromTokenCopyWithImpl(this._value, this._then); +class _$PaymentMethodDataAubecsCopyWithImpl<$Res, + $Val extends PaymentMethodDataAubecs> + implements $PaymentMethodDataAubecsCopyWith<$Res> { + _$PaymentMethodDataAubecsCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; @@ -9339,15 +10699,16 @@ class _$PaymentMethodDataCardFromTokenCopyWithImpl<$Res, @pragma('vm:prefer-inline') @override $Res call({ - Object? token = null, + Object? formDetails = null, Object? billingDetails = freezed, Object? shippingDetails = freezed, + Object? mandateData = freezed, }) { return _then(_value.copyWith( - token: null == token - ? _value.token - : token // ignore: cast_nullable_to_non_nullable - as String, + formDetails: null == formDetails + ? _value.formDetails + : formDetails // ignore: cast_nullable_to_non_nullable + as AubecsFormInputDetails, billingDetails: freezed == billingDetails ? _value.billingDetails : billingDetails // ignore: cast_nullable_to_non_nullable @@ -9356,9 +10717,21 @@ class _$PaymentMethodDataCardFromTokenCopyWithImpl<$Res, ? _value.shippingDetails : shippingDetails // ignore: cast_nullable_to_non_nullable as ShippingDetails?, + mandateData: freezed == mandateData + ? _value.mandateData + : mandateData // ignore: cast_nullable_to_non_nullable + as MandateData?, ) as $Val); } + @override + @pragma('vm:prefer-inline') + $AubecsFormInputDetailsCopyWith<$Res> get formDetails { + return $AubecsFormInputDetailsCopyWith<$Res>(_value.formDetails, (value) { + return _then(_value.copyWith(formDetails: value) as $Val); + }); + } + @override @pragma('vm:prefer-inline') $BillingDetailsCopyWith<$Res>? get billingDetails { @@ -9373,59 +10746,75 @@ class _$PaymentMethodDataCardFromTokenCopyWithImpl<$Res, @override @pragma('vm:prefer-inline') - $ShippingDetailsCopyWith<$Res>? get shippingDetails { - if (_value.shippingDetails == null) { + $ShippingDetailsCopyWith<$Res>? get shippingDetails { + if (_value.shippingDetails == null) { + return null; + } + + return $ShippingDetailsCopyWith<$Res>(_value.shippingDetails!, (value) { + return _then(_value.copyWith(shippingDetails: value) as $Val); + }); + } + + @override + @pragma('vm:prefer-inline') + $MandateDataCopyWith<$Res>? get mandateData { + if (_value.mandateData == null) { return null; } - return $ShippingDetailsCopyWith<$Res>(_value.shippingDetails!, (value) { - return _then(_value.copyWith(shippingDetails: value) as $Val); + return $MandateDataCopyWith<$Res>(_value.mandateData!, (value) { + return _then(_value.copyWith(mandateData: value) as $Val); }); } } /// @nodoc -abstract class _$$_PaymentMethodDataCardFromTokenCopyWith<$Res> - implements $PaymentMethodDataCardFromTokenCopyWith<$Res> { - factory _$$_PaymentMethodDataCardFromTokenCopyWith( - _$_PaymentMethodDataCardFromToken value, - $Res Function(_$_PaymentMethodDataCardFromToken) then) = - __$$_PaymentMethodDataCardFromTokenCopyWithImpl<$Res>; +abstract class _$$_PaymentMethodDataAubecsCopyWith<$Res> + implements $PaymentMethodDataAubecsCopyWith<$Res> { + factory _$$_PaymentMethodDataAubecsCopyWith(_$_PaymentMethodDataAubecs value, + $Res Function(_$_PaymentMethodDataAubecs) then) = + __$$_PaymentMethodDataAubecsCopyWithImpl<$Res>; @override @useResult $Res call( - {String token, + {AubecsFormInputDetails formDetails, BillingDetails? billingDetails, - ShippingDetails? shippingDetails}); + ShippingDetails? shippingDetails, + MandateData? mandateData}); + @override + $AubecsFormInputDetailsCopyWith<$Res> get formDetails; @override $BillingDetailsCopyWith<$Res>? get billingDetails; @override $ShippingDetailsCopyWith<$Res>? get shippingDetails; + @override + $MandateDataCopyWith<$Res>? get mandateData; } /// @nodoc -class __$$_PaymentMethodDataCardFromTokenCopyWithImpl<$Res> - extends _$PaymentMethodDataCardFromTokenCopyWithImpl<$Res, - _$_PaymentMethodDataCardFromToken> - implements _$$_PaymentMethodDataCardFromTokenCopyWith<$Res> { - __$$_PaymentMethodDataCardFromTokenCopyWithImpl( - _$_PaymentMethodDataCardFromToken _value, - $Res Function(_$_PaymentMethodDataCardFromToken) _then) +class __$$_PaymentMethodDataAubecsCopyWithImpl<$Res> + extends _$PaymentMethodDataAubecsCopyWithImpl<$Res, + _$_PaymentMethodDataAubecs> + implements _$$_PaymentMethodDataAubecsCopyWith<$Res> { + __$$_PaymentMethodDataAubecsCopyWithImpl(_$_PaymentMethodDataAubecs _value, + $Res Function(_$_PaymentMethodDataAubecs) _then) : super(_value, _then); @pragma('vm:prefer-inline') @override $Res call({ - Object? token = null, + Object? formDetails = null, Object? billingDetails = freezed, Object? shippingDetails = freezed, + Object? mandateData = freezed, }) { - return _then(_$_PaymentMethodDataCardFromToken( - token: null == token - ? _value.token - : token // ignore: cast_nullable_to_non_nullable - as String, + return _then(_$_PaymentMethodDataAubecs( + formDetails: null == formDetails + ? _value.formDetails + : formDetails // ignore: cast_nullable_to_non_nullable + as AubecsFormInputDetails, billingDetails: freezed == billingDetails ? _value.billingDetails : billingDetails // ignore: cast_nullable_to_non_nullable @@ -9434,6 +10823,10 @@ class __$$_PaymentMethodDataCardFromTokenCopyWithImpl<$Res> ? _value.shippingDetails : shippingDetails // ignore: cast_nullable_to_non_nullable as ShippingDetails?, + mandateData: freezed == mandateData + ? _value.mandateData + : mandateData // ignore: cast_nullable_to_non_nullable + as MandateData?, )); } } @@ -9441,18 +10834,19 @@ class __$$_PaymentMethodDataCardFromTokenCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_PaymentMethodDataCardFromToken - implements _PaymentMethodDataCardFromToken { - const _$_PaymentMethodDataCardFromToken( - {required this.token, this.billingDetails, this.shippingDetails}); +class _$_PaymentMethodDataAubecs implements _PaymentMethodDataAubecs { + const _$_PaymentMethodDataAubecs( + {required this.formDetails, + this.billingDetails, + this.shippingDetails, + this.mandateData}); - factory _$_PaymentMethodDataCardFromToken.fromJson( - Map json) => - _$$_PaymentMethodDataCardFromTokenFromJson(json); + factory _$_PaymentMethodDataAubecs.fromJson(Map json) => + _$$_PaymentMethodDataAubecsFromJson(json); - /// Token. + /// form input details @override - final String token; + final AubecsFormInputDetails formDetails; /// Billing information. @override @@ -9462,58 +10856,65 @@ class _$_PaymentMethodDataCardFromToken @override final ShippingDetails? shippingDetails; + /// Mandata data for this paymentmethod. + @override + final MandateData? mandateData; + @override String toString() { - return 'PaymentMethodDataCardFromToken(token: $token, billingDetails: $billingDetails, shippingDetails: $shippingDetails)'; + return 'PaymentMethodDataAubecs(formDetails: $formDetails, billingDetails: $billingDetails, shippingDetails: $shippingDetails, mandateData: $mandateData)'; } @override bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentMethodDataCardFromToken && - (identical(other.token, token) || other.token == token) && + other is _$_PaymentMethodDataAubecs && + (identical(other.formDetails, formDetails) || + other.formDetails == formDetails) && (identical(other.billingDetails, billingDetails) || other.billingDetails == billingDetails) && (identical(other.shippingDetails, shippingDetails) || - other.shippingDetails == shippingDetails)); + other.shippingDetails == shippingDetails) && + (identical(other.mandateData, mandateData) || + other.mandateData == mandateData)); } @JsonKey(ignore: true) @override - int get hashCode => - Object.hash(runtimeType, token, billingDetails, shippingDetails); + int get hashCode => Object.hash( + runtimeType, formDetails, billingDetails, shippingDetails, mandateData); @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentMethodDataCardFromTokenCopyWith<_$_PaymentMethodDataCardFromToken> - get copyWith => __$$_PaymentMethodDataCardFromTokenCopyWithImpl< - _$_PaymentMethodDataCardFromToken>(this, _$identity); + _$$_PaymentMethodDataAubecsCopyWith<_$_PaymentMethodDataAubecs> + get copyWith => + __$$_PaymentMethodDataAubecsCopyWithImpl<_$_PaymentMethodDataAubecs>( + this, _$identity); @override Map toJson() { - return _$$_PaymentMethodDataCardFromTokenToJson( + return _$$_PaymentMethodDataAubecsToJson( this, ); } } -abstract class _PaymentMethodDataCardFromToken - implements PaymentMethodDataCardFromToken { - const factory _PaymentMethodDataCardFromToken( - {required final String token, - final BillingDetails? billingDetails, - final ShippingDetails? shippingDetails}) = - _$_PaymentMethodDataCardFromToken; +abstract class _PaymentMethodDataAubecs implements PaymentMethodDataAubecs { + const factory _PaymentMethodDataAubecs( + {required final AubecsFormInputDetails formDetails, + final BillingDetails? billingDetails, + final ShippingDetails? shippingDetails, + final MandateData? mandateData}) = _$_PaymentMethodDataAubecs; - factory _PaymentMethodDataCardFromToken.fromJson(Map json) = - _$_PaymentMethodDataCardFromToken.fromJson; + factory _PaymentMethodDataAubecs.fromJson(Map json) = + _$_PaymentMethodDataAubecs.fromJson; @override - /// Token. - String get token; + /// form input details + AubecsFormInputDetails get formDetails; @override /// Billing information. @@ -9523,23 +10924,23 @@ abstract class _PaymentMethodDataCardFromToken /// Shipping details ShippingDetails? get shippingDetails; @override + + /// Mandata data for this paymentmethod. + MandateData? get mandateData; + @override @JsonKey(ignore: true) - _$$_PaymentMethodDataCardFromTokenCopyWith<_$_PaymentMethodDataCardFromToken> + _$$_PaymentMethodDataAubecsCopyWith<_$_PaymentMethodDataAubecs> get copyWith => throw _privateConstructorUsedError; } -PaymentMethodDataCardFromMethod _$PaymentMethodDataCardFromMethodFromJson( - Map json) { - return _PaymentMethodDataCardFromMethod.fromJson(json); +PaymentMethodDataFpx _$PaymentMethodDataFpxFromJson(Map json) { + return _PaymentMethodDataFpx.fromJson(json); } /// @nodoc -mixin _$PaymentMethodDataCardFromMethod { - /// Payment method id. - String get paymentMethodId => throw _privateConstructorUsedError; - - /// Cvc of the cart - String? get cvc => throw _privateConstructorUsedError; +mixin _$PaymentMethodDataFpx { + /// When set to true you can test offline payment. + bool get testOfflineBank => throw _privateConstructorUsedError; /// Billing information. BillingDetails? get billingDetails => throw _privateConstructorUsedError; @@ -9547,35 +10948,37 @@ mixin _$PaymentMethodDataCardFromMethod { /// Shipping details ShippingDetails? get shippingDetails => throw _privateConstructorUsedError; + /// Mandata data for this paymentmethod. + MandateData? get mandateData => throw _privateConstructorUsedError; + Map toJson() => throw _privateConstructorUsedError; @JsonKey(ignore: true) - $PaymentMethodDataCardFromMethodCopyWith - get copyWith => throw _privateConstructorUsedError; + $PaymentMethodDataFpxCopyWith get copyWith => + throw _privateConstructorUsedError; } /// @nodoc -abstract class $PaymentMethodDataCardFromMethodCopyWith<$Res> { - factory $PaymentMethodDataCardFromMethodCopyWith( - PaymentMethodDataCardFromMethod value, - $Res Function(PaymentMethodDataCardFromMethod) then) = - _$PaymentMethodDataCardFromMethodCopyWithImpl<$Res, - PaymentMethodDataCardFromMethod>; +abstract class $PaymentMethodDataFpxCopyWith<$Res> { + factory $PaymentMethodDataFpxCopyWith(PaymentMethodDataFpx value, + $Res Function(PaymentMethodDataFpx) then) = + _$PaymentMethodDataFpxCopyWithImpl<$Res, PaymentMethodDataFpx>; @useResult $Res call( - {String paymentMethodId, - String? cvc, + {bool testOfflineBank, BillingDetails? billingDetails, - ShippingDetails? shippingDetails}); + ShippingDetails? shippingDetails, + MandateData? mandateData}); $BillingDetailsCopyWith<$Res>? get billingDetails; $ShippingDetailsCopyWith<$Res>? get shippingDetails; + $MandateDataCopyWith<$Res>? get mandateData; } /// @nodoc -class _$PaymentMethodDataCardFromMethodCopyWithImpl<$Res, - $Val extends PaymentMethodDataCardFromMethod> - implements $PaymentMethodDataCardFromMethodCopyWith<$Res> { - _$PaymentMethodDataCardFromMethodCopyWithImpl(this._value, this._then); +class _$PaymentMethodDataFpxCopyWithImpl<$Res, + $Val extends PaymentMethodDataFpx> + implements $PaymentMethodDataFpxCopyWith<$Res> { + _$PaymentMethodDataFpxCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; @@ -9585,20 +10988,16 @@ class _$PaymentMethodDataCardFromMethodCopyWithImpl<$Res, @pragma('vm:prefer-inline') @override $Res call({ - Object? paymentMethodId = null, - Object? cvc = freezed, + Object? testOfflineBank = null, Object? billingDetails = freezed, Object? shippingDetails = freezed, + Object? mandateData = freezed, }) { return _then(_value.copyWith( - paymentMethodId: null == paymentMethodId - ? _value.paymentMethodId - : paymentMethodId // ignore: cast_nullable_to_non_nullable - as String, - cvc: freezed == cvc - ? _value.cvc - : cvc // ignore: cast_nullable_to_non_nullable - as String?, + testOfflineBank: null == testOfflineBank + ? _value.testOfflineBank + : testOfflineBank // ignore: cast_nullable_to_non_nullable + as bool, billingDetails: freezed == billingDetails ? _value.billingDetails : billingDetails // ignore: cast_nullable_to_non_nullable @@ -9607,6 +11006,10 @@ class _$PaymentMethodDataCardFromMethodCopyWithImpl<$Res, ? _value.shippingDetails : shippingDetails // ignore: cast_nullable_to_non_nullable as ShippingDetails?, + mandateData: freezed == mandateData + ? _value.mandateData + : mandateData // ignore: cast_nullable_to_non_nullable + as MandateData?, ) as $Val); } @@ -9633,56 +11036,63 @@ class _$PaymentMethodDataCardFromMethodCopyWithImpl<$Res, return _then(_value.copyWith(shippingDetails: value) as $Val); }); } + + @override + @pragma('vm:prefer-inline') + $MandateDataCopyWith<$Res>? get mandateData { + if (_value.mandateData == null) { + return null; + } + + return $MandateDataCopyWith<$Res>(_value.mandateData!, (value) { + return _then(_value.copyWith(mandateData: value) as $Val); + }); + } } /// @nodoc -abstract class _$$_PaymentMethodDataCardFromMethodCopyWith<$Res> - implements $PaymentMethodDataCardFromMethodCopyWith<$Res> { - factory _$$_PaymentMethodDataCardFromMethodCopyWith( - _$_PaymentMethodDataCardFromMethod value, - $Res Function(_$_PaymentMethodDataCardFromMethod) then) = - __$$_PaymentMethodDataCardFromMethodCopyWithImpl<$Res>; +abstract class _$$_PaymentMethodDataFpxCopyWith<$Res> + implements $PaymentMethodDataFpxCopyWith<$Res> { + factory _$$_PaymentMethodDataFpxCopyWith(_$_PaymentMethodDataFpx value, + $Res Function(_$_PaymentMethodDataFpx) then) = + __$$_PaymentMethodDataFpxCopyWithImpl<$Res>; @override @useResult $Res call( - {String paymentMethodId, - String? cvc, + {bool testOfflineBank, BillingDetails? billingDetails, - ShippingDetails? shippingDetails}); + ShippingDetails? shippingDetails, + MandateData? mandateData}); @override $BillingDetailsCopyWith<$Res>? get billingDetails; @override $ShippingDetailsCopyWith<$Res>? get shippingDetails; + @override + $MandateDataCopyWith<$Res>? get mandateData; } /// @nodoc -class __$$_PaymentMethodDataCardFromMethodCopyWithImpl<$Res> - extends _$PaymentMethodDataCardFromMethodCopyWithImpl<$Res, - _$_PaymentMethodDataCardFromMethod> - implements _$$_PaymentMethodDataCardFromMethodCopyWith<$Res> { - __$$_PaymentMethodDataCardFromMethodCopyWithImpl( - _$_PaymentMethodDataCardFromMethod _value, - $Res Function(_$_PaymentMethodDataCardFromMethod) _then) +class __$$_PaymentMethodDataFpxCopyWithImpl<$Res> + extends _$PaymentMethodDataFpxCopyWithImpl<$Res, _$_PaymentMethodDataFpx> + implements _$$_PaymentMethodDataFpxCopyWith<$Res> { + __$$_PaymentMethodDataFpxCopyWithImpl(_$_PaymentMethodDataFpx _value, + $Res Function(_$_PaymentMethodDataFpx) _then) : super(_value, _then); @pragma('vm:prefer-inline') @override $Res call({ - Object? paymentMethodId = null, - Object? cvc = freezed, + Object? testOfflineBank = null, Object? billingDetails = freezed, Object? shippingDetails = freezed, + Object? mandateData = freezed, }) { - return _then(_$_PaymentMethodDataCardFromMethod( - paymentMethodId: null == paymentMethodId - ? _value.paymentMethodId - : paymentMethodId // ignore: cast_nullable_to_non_nullable - as String, - cvc: freezed == cvc - ? _value.cvc - : cvc // ignore: cast_nullable_to_non_nullable - as String?, + return _then(_$_PaymentMethodDataFpx( + testOfflineBank: null == testOfflineBank + ? _value.testOfflineBank + : testOfflineBank // ignore: cast_nullable_to_non_nullable + as bool, billingDetails: freezed == billingDetails ? _value.billingDetails : billingDetails // ignore: cast_nullable_to_non_nullable @@ -9691,6 +11101,10 @@ class __$$_PaymentMethodDataCardFromMethodCopyWithImpl<$Res> ? _value.shippingDetails : shippingDetails // ignore: cast_nullable_to_non_nullable as ShippingDetails?, + mandateData: freezed == mandateData + ? _value.mandateData + : mandateData // ignore: cast_nullable_to_non_nullable + as MandateData?, )); } } @@ -9698,25 +11112,20 @@ class __$$_PaymentMethodDataCardFromMethodCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_PaymentMethodDataCardFromMethod - implements _PaymentMethodDataCardFromMethod { - const _$_PaymentMethodDataCardFromMethod( - {required this.paymentMethodId, - this.cvc, +class _$_PaymentMethodDataFpx implements _PaymentMethodDataFpx { + const _$_PaymentMethodDataFpx( + {this.testOfflineBank = false, this.billingDetails, - this.shippingDetails}); - - factory _$_PaymentMethodDataCardFromMethod.fromJson( - Map json) => - _$$_PaymentMethodDataCardFromMethodFromJson(json); + this.shippingDetails, + this.mandateData}); - /// Payment method id. - @override - final String paymentMethodId; + factory _$_PaymentMethodDataFpx.fromJson(Map json) => + _$$_PaymentMethodDataFpxFromJson(json); - /// Cvc of the cart + /// When set to true you can test offline payment. @override - final String? cvc; + @JsonKey() + final bool testOfflineBank; /// Billing information. @override @@ -9726,66 +11135,64 @@ class _$_PaymentMethodDataCardFromMethod @override final ShippingDetails? shippingDetails; + /// Mandata data for this paymentmethod. + @override + final MandateData? mandateData; + @override String toString() { - return 'PaymentMethodDataCardFromMethod(paymentMethodId: $paymentMethodId, cvc: $cvc, billingDetails: $billingDetails, shippingDetails: $shippingDetails)'; + return 'PaymentMethodDataFpx(testOfflineBank: $testOfflineBank, billingDetails: $billingDetails, shippingDetails: $shippingDetails, mandateData: $mandateData)'; } @override bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentMethodDataCardFromMethod && - (identical(other.paymentMethodId, paymentMethodId) || - other.paymentMethodId == paymentMethodId) && - (identical(other.cvc, cvc) || other.cvc == cvc) && + other is _$_PaymentMethodDataFpx && + (identical(other.testOfflineBank, testOfflineBank) || + other.testOfflineBank == testOfflineBank) && (identical(other.billingDetails, billingDetails) || other.billingDetails == billingDetails) && (identical(other.shippingDetails, shippingDetails) || - other.shippingDetails == shippingDetails)); + other.shippingDetails == shippingDetails) && + (identical(other.mandateData, mandateData) || + other.mandateData == mandateData)); } @JsonKey(ignore: true) @override - int get hashCode => Object.hash( - runtimeType, paymentMethodId, cvc, billingDetails, shippingDetails); + int get hashCode => Object.hash(runtimeType, testOfflineBank, billingDetails, + shippingDetails, mandateData); @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentMethodDataCardFromMethodCopyWith< - _$_PaymentMethodDataCardFromMethod> - get copyWith => __$$_PaymentMethodDataCardFromMethodCopyWithImpl< - _$_PaymentMethodDataCardFromMethod>(this, _$identity); + _$$_PaymentMethodDataFpxCopyWith<_$_PaymentMethodDataFpx> get copyWith => + __$$_PaymentMethodDataFpxCopyWithImpl<_$_PaymentMethodDataFpx>( + this, _$identity); @override Map toJson() { - return _$$_PaymentMethodDataCardFromMethodToJson( + return _$$_PaymentMethodDataFpxToJson( this, ); } } -abstract class _PaymentMethodDataCardFromMethod - implements PaymentMethodDataCardFromMethod { - const factory _PaymentMethodDataCardFromMethod( - {required final String paymentMethodId, - final String? cvc, - final BillingDetails? billingDetails, - final ShippingDetails? shippingDetails}) = - _$_PaymentMethodDataCardFromMethod; - - factory _PaymentMethodDataCardFromMethod.fromJson(Map json) = - _$_PaymentMethodDataCardFromMethod.fromJson; +abstract class _PaymentMethodDataFpx implements PaymentMethodDataFpx { + const factory _PaymentMethodDataFpx( + {final bool testOfflineBank, + final BillingDetails? billingDetails, + final ShippingDetails? shippingDetails, + final MandateData? mandateData}) = _$_PaymentMethodDataFpx; - @override + factory _PaymentMethodDataFpx.fromJson(Map json) = + _$_PaymentMethodDataFpx.fromJson; - /// Payment method id. - String get paymentMethodId; @override - /// Cvc of the cart - String? get cvc; + /// When set to true you can test offline payment. + bool get testOfflineBank; @override /// Billing information. @@ -9795,21 +11202,24 @@ abstract class _PaymentMethodDataCardFromMethod /// Shipping details ShippingDetails? get shippingDetails; @override + + /// Mandata data for this paymentmethod. + MandateData? get mandateData; + @override @JsonKey(ignore: true) - _$$_PaymentMethodDataCardFromMethodCopyWith< - _$_PaymentMethodDataCardFromMethod> - get copyWith => throw _privateConstructorUsedError; + _$$_PaymentMethodDataFpxCopyWith<_$_PaymentMethodDataFpx> get copyWith => + throw _privateConstructorUsedError; } -PaymentMethodDataIdeal _$PaymentMethodDataIdealFromJson( +PaymentMethodDataSofort _$PaymentMethodDataSofortFromJson( Map json) { - return _PaymentMethodDataIdeal.fromJson(json); + return _PaymentMethodDataSofort.fromJson(json); } /// @nodoc -mixin _$PaymentMethodDataIdeal { - /// The name of bank. - String? get bankName => throw _privateConstructorUsedError; +mixin _$PaymentMethodDataSofort { + /// Country of the accountholder + String get country => throw _privateConstructorUsedError; /// Billing information. BillingDetails? get billingDetails => throw _privateConstructorUsedError; @@ -9817,32 +11227,37 @@ mixin _$PaymentMethodDataIdeal { /// Shipping details ShippingDetails? get shippingDetails => throw _privateConstructorUsedError; + /// Mandata data for this paymentmethod. + MandateData? get mandateData => throw _privateConstructorUsedError; + Map toJson() => throw _privateConstructorUsedError; @JsonKey(ignore: true) - $PaymentMethodDataIdealCopyWith get copyWith => + $PaymentMethodDataSofortCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class $PaymentMethodDataIdealCopyWith<$Res> { - factory $PaymentMethodDataIdealCopyWith(PaymentMethodDataIdeal value, - $Res Function(PaymentMethodDataIdeal) then) = - _$PaymentMethodDataIdealCopyWithImpl<$Res, PaymentMethodDataIdeal>; +abstract class $PaymentMethodDataSofortCopyWith<$Res> { + factory $PaymentMethodDataSofortCopyWith(PaymentMethodDataSofort value, + $Res Function(PaymentMethodDataSofort) then) = + _$PaymentMethodDataSofortCopyWithImpl<$Res, PaymentMethodDataSofort>; @useResult $Res call( - {String? bankName, + {String country, BillingDetails? billingDetails, - ShippingDetails? shippingDetails}); + ShippingDetails? shippingDetails, + MandateData? mandateData}); $BillingDetailsCopyWith<$Res>? get billingDetails; $ShippingDetailsCopyWith<$Res>? get shippingDetails; + $MandateDataCopyWith<$Res>? get mandateData; } /// @nodoc -class _$PaymentMethodDataIdealCopyWithImpl<$Res, - $Val extends PaymentMethodDataIdeal> - implements $PaymentMethodDataIdealCopyWith<$Res> { - _$PaymentMethodDataIdealCopyWithImpl(this._value, this._then); +class _$PaymentMethodDataSofortCopyWithImpl<$Res, + $Val extends PaymentMethodDataSofort> + implements $PaymentMethodDataSofortCopyWith<$Res> { + _$PaymentMethodDataSofortCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; @@ -9852,15 +11267,16 @@ class _$PaymentMethodDataIdealCopyWithImpl<$Res, @pragma('vm:prefer-inline') @override $Res call({ - Object? bankName = freezed, + Object? country = null, Object? billingDetails = freezed, Object? shippingDetails = freezed, + Object? mandateData = freezed, }) { return _then(_value.copyWith( - bankName: freezed == bankName - ? _value.bankName - : bankName // ignore: cast_nullable_to_non_nullable - as String?, + country: null == country + ? _value.country + : country // ignore: cast_nullable_to_non_nullable + as String, billingDetails: freezed == billingDetails ? _value.billingDetails : billingDetails // ignore: cast_nullable_to_non_nullable @@ -9869,6 +11285,10 @@ class _$PaymentMethodDataIdealCopyWithImpl<$Res, ? _value.shippingDetails : shippingDetails // ignore: cast_nullable_to_non_nullable as ShippingDetails?, + mandateData: freezed == mandateData + ? _value.mandateData + : mandateData // ignore: cast_nullable_to_non_nullable + as MandateData?, ) as $Val); } @@ -9895,48 +11315,64 @@ class _$PaymentMethodDataIdealCopyWithImpl<$Res, return _then(_value.copyWith(shippingDetails: value) as $Val); }); } + + @override + @pragma('vm:prefer-inline') + $MandateDataCopyWith<$Res>? get mandateData { + if (_value.mandateData == null) { + return null; + } + + return $MandateDataCopyWith<$Res>(_value.mandateData!, (value) { + return _then(_value.copyWith(mandateData: value) as $Val); + }); + } } /// @nodoc -abstract class _$$_PaymentMethodDataIdealCopyWith<$Res> - implements $PaymentMethodDataIdealCopyWith<$Res> { - factory _$$_PaymentMethodDataIdealCopyWith(_$_PaymentMethodDataIdeal value, - $Res Function(_$_PaymentMethodDataIdeal) then) = - __$$_PaymentMethodDataIdealCopyWithImpl<$Res>; +abstract class _$$_PaymentMethodDataSofortCopyWith<$Res> + implements $PaymentMethodDataSofortCopyWith<$Res> { + factory _$$_PaymentMethodDataSofortCopyWith(_$_PaymentMethodDataSofort value, + $Res Function(_$_PaymentMethodDataSofort) then) = + __$$_PaymentMethodDataSofortCopyWithImpl<$Res>; @override @useResult $Res call( - {String? bankName, + {String country, BillingDetails? billingDetails, - ShippingDetails? shippingDetails}); + ShippingDetails? shippingDetails, + MandateData? mandateData}); @override $BillingDetailsCopyWith<$Res>? get billingDetails; @override $ShippingDetailsCopyWith<$Res>? get shippingDetails; + @override + $MandateDataCopyWith<$Res>? get mandateData; } /// @nodoc -class __$$_PaymentMethodDataIdealCopyWithImpl<$Res> - extends _$PaymentMethodDataIdealCopyWithImpl<$Res, - _$_PaymentMethodDataIdeal> - implements _$$_PaymentMethodDataIdealCopyWith<$Res> { - __$$_PaymentMethodDataIdealCopyWithImpl(_$_PaymentMethodDataIdeal _value, - $Res Function(_$_PaymentMethodDataIdeal) _then) +class __$$_PaymentMethodDataSofortCopyWithImpl<$Res> + extends _$PaymentMethodDataSofortCopyWithImpl<$Res, + _$_PaymentMethodDataSofort> + implements _$$_PaymentMethodDataSofortCopyWith<$Res> { + __$$_PaymentMethodDataSofortCopyWithImpl(_$_PaymentMethodDataSofort _value, + $Res Function(_$_PaymentMethodDataSofort) _then) : super(_value, _then); @pragma('vm:prefer-inline') @override $Res call({ - Object? bankName = freezed, + Object? country = null, Object? billingDetails = freezed, Object? shippingDetails = freezed, + Object? mandateData = freezed, }) { - return _then(_$_PaymentMethodDataIdeal( - bankName: freezed == bankName - ? _value.bankName - : bankName // ignore: cast_nullable_to_non_nullable - as String?, + return _then(_$_PaymentMethodDataSofort( + country: null == country + ? _value.country + : country // ignore: cast_nullable_to_non_nullable + as String, billingDetails: freezed == billingDetails ? _value.billingDetails : billingDetails // ignore: cast_nullable_to_non_nullable @@ -9945,6 +11381,10 @@ class __$$_PaymentMethodDataIdealCopyWithImpl<$Res> ? _value.shippingDetails : shippingDetails // ignore: cast_nullable_to_non_nullable as ShippingDetails?, + mandateData: freezed == mandateData + ? _value.mandateData + : mandateData // ignore: cast_nullable_to_non_nullable + as MandateData?, )); } } @@ -9952,16 +11392,19 @@ class __$$_PaymentMethodDataIdealCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_PaymentMethodDataIdeal implements _PaymentMethodDataIdeal { - const _$_PaymentMethodDataIdeal( - {this.bankName, this.billingDetails, this.shippingDetails}); +class _$_PaymentMethodDataSofort implements _PaymentMethodDataSofort { + const _$_PaymentMethodDataSofort( + {required this.country, + this.billingDetails, + this.shippingDetails, + this.mandateData}); - factory _$_PaymentMethodDataIdeal.fromJson(Map json) => - _$$_PaymentMethodDataIdealFromJson(json); + factory _$_PaymentMethodDataSofort.fromJson(Map json) => + _$$_PaymentMethodDataSofortFromJson(json); - /// The name of bank. + /// Country of the accountholder @override - final String? bankName; + final String country; /// Billing information. @override @@ -9971,57 +11414,64 @@ class _$_PaymentMethodDataIdeal implements _PaymentMethodDataIdeal { @override final ShippingDetails? shippingDetails; + /// Mandata data for this paymentmethod. + @override + final MandateData? mandateData; + @override String toString() { - return 'PaymentMethodDataIdeal(bankName: $bankName, billingDetails: $billingDetails, shippingDetails: $shippingDetails)'; + return 'PaymentMethodDataSofort(country: $country, billingDetails: $billingDetails, shippingDetails: $shippingDetails, mandateData: $mandateData)'; } @override bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentMethodDataIdeal && - (identical(other.bankName, bankName) || - other.bankName == bankName) && + other is _$_PaymentMethodDataSofort && + (identical(other.country, country) || other.country == country) && (identical(other.billingDetails, billingDetails) || other.billingDetails == billingDetails) && (identical(other.shippingDetails, shippingDetails) || - other.shippingDetails == shippingDetails)); + other.shippingDetails == shippingDetails) && + (identical(other.mandateData, mandateData) || + other.mandateData == mandateData)); } @JsonKey(ignore: true) @override - int get hashCode => - Object.hash(runtimeType, bankName, billingDetails, shippingDetails); + int get hashCode => Object.hash( + runtimeType, country, billingDetails, shippingDetails, mandateData); @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentMethodDataIdealCopyWith<_$_PaymentMethodDataIdeal> get copyWith => - __$$_PaymentMethodDataIdealCopyWithImpl<_$_PaymentMethodDataIdeal>( - this, _$identity); + _$$_PaymentMethodDataSofortCopyWith<_$_PaymentMethodDataSofort> + get copyWith => + __$$_PaymentMethodDataSofortCopyWithImpl<_$_PaymentMethodDataSofort>( + this, _$identity); @override Map toJson() { - return _$$_PaymentMethodDataIdealToJson( + return _$$_PaymentMethodDataSofortToJson( this, ); } } -abstract class _PaymentMethodDataIdeal implements PaymentMethodDataIdeal { - const factory _PaymentMethodDataIdeal( - {final String? bankName, +abstract class _PaymentMethodDataSofort implements PaymentMethodDataSofort { + const factory _PaymentMethodDataSofort( + {required final String country, final BillingDetails? billingDetails, - final ShippingDetails? shippingDetails}) = _$_PaymentMethodDataIdeal; + final ShippingDetails? shippingDetails, + final MandateData? mandateData}) = _$_PaymentMethodDataSofort; - factory _PaymentMethodDataIdeal.fromJson(Map json) = - _$_PaymentMethodDataIdeal.fromJson; + factory _PaymentMethodDataSofort.fromJson(Map json) = + _$_PaymentMethodDataSofort.fromJson; @override - /// The name of bank. - String? get bankName; + /// Country of the accountholder + String get country; @override /// Billing information. @@ -10031,20 +11481,24 @@ abstract class _PaymentMethodDataIdeal implements PaymentMethodDataIdeal { /// Shipping details ShippingDetails? get shippingDetails; @override + + /// Mandata data for this paymentmethod. + MandateData? get mandateData; + @override @JsonKey(ignore: true) - _$$_PaymentMethodDataIdealCopyWith<_$_PaymentMethodDataIdeal> get copyWith => - throw _privateConstructorUsedError; + _$$_PaymentMethodDataSofortCopyWith<_$_PaymentMethodDataSofort> + get copyWith => throw _privateConstructorUsedError; } -PaymentMethodDataAubecs _$PaymentMethodDataAubecsFromJson( +PaymentMethodDataSepa _$PaymentMethodDataSepaFromJson( Map json) { - return _PaymentMethodDataAubecs.fromJson(json); + return _PaymentMethodDataSepa.fromJson(json); } /// @nodoc -mixin _$PaymentMethodDataAubecs { - /// form input details - AubecsFormInputDetails get formDetails => throw _privateConstructorUsedError; +mixin _$PaymentMethodDataSepa { + /// Iban number of the accountholder + String get iban => throw _privateConstructorUsedError; /// Billing information. BillingDetails? get billingDetails => throw _privateConstructorUsedError; @@ -10052,33 +11506,37 @@ mixin _$PaymentMethodDataAubecs { /// Shipping details ShippingDetails? get shippingDetails => throw _privateConstructorUsedError; + /// Mandata data for this paymentmethod. + MandateData? get mandateData => throw _privateConstructorUsedError; + Map toJson() => throw _privateConstructorUsedError; @JsonKey(ignore: true) - $PaymentMethodDataAubecsCopyWith get copyWith => + $PaymentMethodDataSepaCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class $PaymentMethodDataAubecsCopyWith<$Res> { - factory $PaymentMethodDataAubecsCopyWith(PaymentMethodDataAubecs value, - $Res Function(PaymentMethodDataAubecs) then) = - _$PaymentMethodDataAubecsCopyWithImpl<$Res, PaymentMethodDataAubecs>; +abstract class $PaymentMethodDataSepaCopyWith<$Res> { + factory $PaymentMethodDataSepaCopyWith(PaymentMethodDataSepa value, + $Res Function(PaymentMethodDataSepa) then) = + _$PaymentMethodDataSepaCopyWithImpl<$Res, PaymentMethodDataSepa>; @useResult $Res call( - {AubecsFormInputDetails formDetails, + {String iban, BillingDetails? billingDetails, - ShippingDetails? shippingDetails}); + ShippingDetails? shippingDetails, + MandateData? mandateData}); - $AubecsFormInputDetailsCopyWith<$Res> get formDetails; $BillingDetailsCopyWith<$Res>? get billingDetails; $ShippingDetailsCopyWith<$Res>? get shippingDetails; + $MandateDataCopyWith<$Res>? get mandateData; } /// @nodoc -class _$PaymentMethodDataAubecsCopyWithImpl<$Res, - $Val extends PaymentMethodDataAubecs> - implements $PaymentMethodDataAubecsCopyWith<$Res> { - _$PaymentMethodDataAubecsCopyWithImpl(this._value, this._then); +class _$PaymentMethodDataSepaCopyWithImpl<$Res, + $Val extends PaymentMethodDataSepa> + implements $PaymentMethodDataSepaCopyWith<$Res> { + _$PaymentMethodDataSepaCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; @@ -10088,15 +11546,16 @@ class _$PaymentMethodDataAubecsCopyWithImpl<$Res, @pragma('vm:prefer-inline') @override $Res call({ - Object? formDetails = null, + Object? iban = null, Object? billingDetails = freezed, Object? shippingDetails = freezed, + Object? mandateData = freezed, }) { return _then(_value.copyWith( - formDetails: null == formDetails - ? _value.formDetails - : formDetails // ignore: cast_nullable_to_non_nullable - as AubecsFormInputDetails, + iban: null == iban + ? _value.iban + : iban // ignore: cast_nullable_to_non_nullable + as String, billingDetails: freezed == billingDetails ? _value.billingDetails : billingDetails // ignore: cast_nullable_to_non_nullable @@ -10105,17 +11564,13 @@ class _$PaymentMethodDataAubecsCopyWithImpl<$Res, ? _value.shippingDetails : shippingDetails // ignore: cast_nullable_to_non_nullable as ShippingDetails?, + mandateData: freezed == mandateData + ? _value.mandateData + : mandateData // ignore: cast_nullable_to_non_nullable + as MandateData?, ) as $Val); } - @override - @pragma('vm:prefer-inline') - $AubecsFormInputDetailsCopyWith<$Res> get formDetails { - return $AubecsFormInputDetailsCopyWith<$Res>(_value.formDetails, (value) { - return _then(_value.copyWith(formDetails: value) as $Val); - }); - } - @override @pragma('vm:prefer-inline') $BillingDetailsCopyWith<$Res>? get billingDetails { @@ -10139,50 +11594,63 @@ class _$PaymentMethodDataAubecsCopyWithImpl<$Res, return _then(_value.copyWith(shippingDetails: value) as $Val); }); } + + @override + @pragma('vm:prefer-inline') + $MandateDataCopyWith<$Res>? get mandateData { + if (_value.mandateData == null) { + return null; + } + + return $MandateDataCopyWith<$Res>(_value.mandateData!, (value) { + return _then(_value.copyWith(mandateData: value) as $Val); + }); + } } /// @nodoc -abstract class _$$_PaymentMethodDataAubecsCopyWith<$Res> - implements $PaymentMethodDataAubecsCopyWith<$Res> { - factory _$$_PaymentMethodDataAubecsCopyWith(_$_PaymentMethodDataAubecs value, - $Res Function(_$_PaymentMethodDataAubecs) then) = - __$$_PaymentMethodDataAubecsCopyWithImpl<$Res>; +abstract class _$$_PaymentMethodDataSepaCopyWith<$Res> + implements $PaymentMethodDataSepaCopyWith<$Res> { + factory _$$_PaymentMethodDataSepaCopyWith(_$_PaymentMethodDataSepa value, + $Res Function(_$_PaymentMethodDataSepa) then) = + __$$_PaymentMethodDataSepaCopyWithImpl<$Res>; @override @useResult $Res call( - {AubecsFormInputDetails formDetails, + {String iban, BillingDetails? billingDetails, - ShippingDetails? shippingDetails}); + ShippingDetails? shippingDetails, + MandateData? mandateData}); - @override - $AubecsFormInputDetailsCopyWith<$Res> get formDetails; @override $BillingDetailsCopyWith<$Res>? get billingDetails; @override $ShippingDetailsCopyWith<$Res>? get shippingDetails; + @override + $MandateDataCopyWith<$Res>? get mandateData; } /// @nodoc -class __$$_PaymentMethodDataAubecsCopyWithImpl<$Res> - extends _$PaymentMethodDataAubecsCopyWithImpl<$Res, - _$_PaymentMethodDataAubecs> - implements _$$_PaymentMethodDataAubecsCopyWith<$Res> { - __$$_PaymentMethodDataAubecsCopyWithImpl(_$_PaymentMethodDataAubecs _value, - $Res Function(_$_PaymentMethodDataAubecs) _then) +class __$$_PaymentMethodDataSepaCopyWithImpl<$Res> + extends _$PaymentMethodDataSepaCopyWithImpl<$Res, _$_PaymentMethodDataSepa> + implements _$$_PaymentMethodDataSepaCopyWith<$Res> { + __$$_PaymentMethodDataSepaCopyWithImpl(_$_PaymentMethodDataSepa _value, + $Res Function(_$_PaymentMethodDataSepa) _then) : super(_value, _then); @pragma('vm:prefer-inline') @override $Res call({ - Object? formDetails = null, + Object? iban = null, Object? billingDetails = freezed, Object? shippingDetails = freezed, + Object? mandateData = freezed, }) { - return _then(_$_PaymentMethodDataAubecs( - formDetails: null == formDetails - ? _value.formDetails - : formDetails // ignore: cast_nullable_to_non_nullable - as AubecsFormInputDetails, + return _then(_$_PaymentMethodDataSepa( + iban: null == iban + ? _value.iban + : iban // ignore: cast_nullable_to_non_nullable + as String, billingDetails: freezed == billingDetails ? _value.billingDetails : billingDetails // ignore: cast_nullable_to_non_nullable @@ -10191,6 +11659,10 @@ class __$$_PaymentMethodDataAubecsCopyWithImpl<$Res> ? _value.shippingDetails : shippingDetails // ignore: cast_nullable_to_non_nullable as ShippingDetails?, + mandateData: freezed == mandateData + ? _value.mandateData + : mandateData // ignore: cast_nullable_to_non_nullable + as MandateData?, )); } } @@ -10198,16 +11670,19 @@ class __$$_PaymentMethodDataAubecsCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_PaymentMethodDataAubecs implements _PaymentMethodDataAubecs { - const _$_PaymentMethodDataAubecs( - {required this.formDetails, this.billingDetails, this.shippingDetails}); +class _$_PaymentMethodDataSepa implements _PaymentMethodDataSepa { + const _$_PaymentMethodDataSepa( + {required this.iban, + this.billingDetails, + this.shippingDetails, + this.mandateData}); - factory _$_PaymentMethodDataAubecs.fromJson(Map json) => - _$$_PaymentMethodDataAubecsFromJson(json); + factory _$_PaymentMethodDataSepa.fromJson(Map json) => + _$$_PaymentMethodDataSepaFromJson(json); - /// form input details + /// Iban number of the accountholder @override - final AubecsFormInputDetails formDetails; + final String iban; /// Billing information. @override @@ -10217,58 +11692,63 @@ class _$_PaymentMethodDataAubecs implements _PaymentMethodDataAubecs { @override final ShippingDetails? shippingDetails; + /// Mandata data for this paymentmethod. + @override + final MandateData? mandateData; + @override String toString() { - return 'PaymentMethodDataAubecs(formDetails: $formDetails, billingDetails: $billingDetails, shippingDetails: $shippingDetails)'; + return 'PaymentMethodDataSepa(iban: $iban, billingDetails: $billingDetails, shippingDetails: $shippingDetails, mandateData: $mandateData)'; } @override bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentMethodDataAubecs && - (identical(other.formDetails, formDetails) || - other.formDetails == formDetails) && + other is _$_PaymentMethodDataSepa && + (identical(other.iban, iban) || other.iban == iban) && (identical(other.billingDetails, billingDetails) || other.billingDetails == billingDetails) && (identical(other.shippingDetails, shippingDetails) || - other.shippingDetails == shippingDetails)); + other.shippingDetails == shippingDetails) && + (identical(other.mandateData, mandateData) || + other.mandateData == mandateData)); } @JsonKey(ignore: true) @override - int get hashCode => - Object.hash(runtimeType, formDetails, billingDetails, shippingDetails); + int get hashCode => Object.hash( + runtimeType, iban, billingDetails, shippingDetails, mandateData); @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentMethodDataAubecsCopyWith<_$_PaymentMethodDataAubecs> - get copyWith => - __$$_PaymentMethodDataAubecsCopyWithImpl<_$_PaymentMethodDataAubecs>( - this, _$identity); + _$$_PaymentMethodDataSepaCopyWith<_$_PaymentMethodDataSepa> get copyWith => + __$$_PaymentMethodDataSepaCopyWithImpl<_$_PaymentMethodDataSepa>( + this, _$identity); @override Map toJson() { - return _$$_PaymentMethodDataAubecsToJson( + return _$$_PaymentMethodDataSepaToJson( this, ); } } -abstract class _PaymentMethodDataAubecs implements PaymentMethodDataAubecs { - const factory _PaymentMethodDataAubecs( - {required final AubecsFormInputDetails formDetails, +abstract class _PaymentMethodDataSepa implements PaymentMethodDataSepa { + const factory _PaymentMethodDataSepa( + {required final String iban, final BillingDetails? billingDetails, - final ShippingDetails? shippingDetails}) = _$_PaymentMethodDataAubecs; + final ShippingDetails? shippingDetails, + final MandateData? mandateData}) = _$_PaymentMethodDataSepa; - factory _PaymentMethodDataAubecs.fromJson(Map json) = - _$_PaymentMethodDataAubecs.fromJson; + factory _PaymentMethodDataSepa.fromJson(Map json) = + _$_PaymentMethodDataSepa.fromJson; @override - /// form input details - AubecsFormInputDetails get formDetails; + /// Iban number of the accountholder + String get iban; @override /// Billing information. @@ -10278,52 +11758,58 @@ abstract class _PaymentMethodDataAubecs implements PaymentMethodDataAubecs { /// Shipping details ShippingDetails? get shippingDetails; @override + + /// Mandata data for this paymentmethod. + MandateData? get mandateData; + @override @JsonKey(ignore: true) - _$$_PaymentMethodDataAubecsCopyWith<_$_PaymentMethodDataAubecs> - get copyWith => throw _privateConstructorUsedError; + _$$_PaymentMethodDataSepaCopyWith<_$_PaymentMethodDataSepa> get copyWith => + throw _privateConstructorUsedError; } -PaymentMethodDataFpx _$PaymentMethodDataFpxFromJson(Map json) { - return _PaymentMethodDataFpx.fromJson(json); +PaymentMethodDataAfterPay _$PaymentMethodDataAfterPayFromJson( + Map json) { + return _PaymentMethodDataAfterPay.fromJson(json); } /// @nodoc -mixin _$PaymentMethodDataFpx { - /// When set to true you can test offline payment. - bool get testOfflineBank => throw _privateConstructorUsedError; - +mixin _$PaymentMethodDataAfterPay { /// Billing information. - BillingDetails? get billingDetails => throw _privateConstructorUsedError; + BillingDetails get billingDetails => throw _privateConstructorUsedError; /// Shipping details ShippingDetails? get shippingDetails => throw _privateConstructorUsedError; + /// Mandata data for this paymentmethod. + MandateData? get mandateData => throw _privateConstructorUsedError; + Map toJson() => throw _privateConstructorUsedError; @JsonKey(ignore: true) - $PaymentMethodDataFpxCopyWith get copyWith => + $PaymentMethodDataAfterPayCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class $PaymentMethodDataFpxCopyWith<$Res> { - factory $PaymentMethodDataFpxCopyWith(PaymentMethodDataFpx value, - $Res Function(PaymentMethodDataFpx) then) = - _$PaymentMethodDataFpxCopyWithImpl<$Res, PaymentMethodDataFpx>; +abstract class $PaymentMethodDataAfterPayCopyWith<$Res> { + factory $PaymentMethodDataAfterPayCopyWith(PaymentMethodDataAfterPay value, + $Res Function(PaymentMethodDataAfterPay) then) = + _$PaymentMethodDataAfterPayCopyWithImpl<$Res, PaymentMethodDataAfterPay>; @useResult $Res call( - {bool testOfflineBank, - BillingDetails? billingDetails, - ShippingDetails? shippingDetails}); + {BillingDetails billingDetails, + ShippingDetails? shippingDetails, + MandateData? mandateData}); - $BillingDetailsCopyWith<$Res>? get billingDetails; + $BillingDetailsCopyWith<$Res> get billingDetails; $ShippingDetailsCopyWith<$Res>? get shippingDetails; + $MandateDataCopyWith<$Res>? get mandateData; } /// @nodoc -class _$PaymentMethodDataFpxCopyWithImpl<$Res, - $Val extends PaymentMethodDataFpx> - implements $PaymentMethodDataFpxCopyWith<$Res> { - _$PaymentMethodDataFpxCopyWithImpl(this._value, this._then); +class _$PaymentMethodDataAfterPayCopyWithImpl<$Res, + $Val extends PaymentMethodDataAfterPay> + implements $PaymentMethodDataAfterPayCopyWith<$Res> { + _$PaymentMethodDataAfterPayCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; @@ -10333,34 +11819,30 @@ class _$PaymentMethodDataFpxCopyWithImpl<$Res, @pragma('vm:prefer-inline') @override $Res call({ - Object? testOfflineBank = null, - Object? billingDetails = freezed, + Object? billingDetails = null, Object? shippingDetails = freezed, + Object? mandateData = freezed, }) { return _then(_value.copyWith( - testOfflineBank: null == testOfflineBank - ? _value.testOfflineBank - : testOfflineBank // ignore: cast_nullable_to_non_nullable - as bool, - billingDetails: freezed == billingDetails + billingDetails: null == billingDetails ? _value.billingDetails : billingDetails // ignore: cast_nullable_to_non_nullable - as BillingDetails?, + as BillingDetails, shippingDetails: freezed == shippingDetails ? _value.shippingDetails : shippingDetails // ignore: cast_nullable_to_non_nullable as ShippingDetails?, + mandateData: freezed == mandateData + ? _value.mandateData + : mandateData // ignore: cast_nullable_to_non_nullable + as MandateData?, ) as $Val); } @override @pragma('vm:prefer-inline') - $BillingDetailsCopyWith<$Res>? get billingDetails { - if (_value.billingDetails == null) { - return null; - } - - return $BillingDetailsCopyWith<$Res>(_value.billingDetails!, (value) { + $BillingDetailsCopyWith<$Res> get billingDetails { + return $BillingDetailsCopyWith<$Res>(_value.billingDetails, (value) { return _then(_value.copyWith(billingDetails: value) as $Val); }); } @@ -10376,55 +11858,72 @@ class _$PaymentMethodDataFpxCopyWithImpl<$Res, return _then(_value.copyWith(shippingDetails: value) as $Val); }); } + + @override + @pragma('vm:prefer-inline') + $MandateDataCopyWith<$Res>? get mandateData { + if (_value.mandateData == null) { + return null; + } + + return $MandateDataCopyWith<$Res>(_value.mandateData!, (value) { + return _then(_value.copyWith(mandateData: value) as $Val); + }); + } } /// @nodoc -abstract class _$$_PaymentMethodDataFpxCopyWith<$Res> - implements $PaymentMethodDataFpxCopyWith<$Res> { - factory _$$_PaymentMethodDataFpxCopyWith(_$_PaymentMethodDataFpx value, - $Res Function(_$_PaymentMethodDataFpx) then) = - __$$_PaymentMethodDataFpxCopyWithImpl<$Res>; +abstract class _$$_PaymentMethodDataAfterPayCopyWith<$Res> + implements $PaymentMethodDataAfterPayCopyWith<$Res> { + factory _$$_PaymentMethodDataAfterPayCopyWith( + _$_PaymentMethodDataAfterPay value, + $Res Function(_$_PaymentMethodDataAfterPay) then) = + __$$_PaymentMethodDataAfterPayCopyWithImpl<$Res>; @override @useResult $Res call( - {bool testOfflineBank, - BillingDetails? billingDetails, - ShippingDetails? shippingDetails}); + {BillingDetails billingDetails, + ShippingDetails? shippingDetails, + MandateData? mandateData}); @override - $BillingDetailsCopyWith<$Res>? get billingDetails; + $BillingDetailsCopyWith<$Res> get billingDetails; @override $ShippingDetailsCopyWith<$Res>? get shippingDetails; + @override + $MandateDataCopyWith<$Res>? get mandateData; } /// @nodoc -class __$$_PaymentMethodDataFpxCopyWithImpl<$Res> - extends _$PaymentMethodDataFpxCopyWithImpl<$Res, _$_PaymentMethodDataFpx> - implements _$$_PaymentMethodDataFpxCopyWith<$Res> { - __$$_PaymentMethodDataFpxCopyWithImpl(_$_PaymentMethodDataFpx _value, - $Res Function(_$_PaymentMethodDataFpx) _then) +class __$$_PaymentMethodDataAfterPayCopyWithImpl<$Res> + extends _$PaymentMethodDataAfterPayCopyWithImpl<$Res, + _$_PaymentMethodDataAfterPay> + implements _$$_PaymentMethodDataAfterPayCopyWith<$Res> { + __$$_PaymentMethodDataAfterPayCopyWithImpl( + _$_PaymentMethodDataAfterPay _value, + $Res Function(_$_PaymentMethodDataAfterPay) _then) : super(_value, _then); @pragma('vm:prefer-inline') @override $Res call({ - Object? testOfflineBank = null, - Object? billingDetails = freezed, + Object? billingDetails = null, Object? shippingDetails = freezed, + Object? mandateData = freezed, }) { - return _then(_$_PaymentMethodDataFpx( - testOfflineBank: null == testOfflineBank - ? _value.testOfflineBank - : testOfflineBank // ignore: cast_nullable_to_non_nullable - as bool, - billingDetails: freezed == billingDetails + return _then(_$_PaymentMethodDataAfterPay( + billingDetails: null == billingDetails ? _value.billingDetails : billingDetails // ignore: cast_nullable_to_non_nullable - as BillingDetails?, + as BillingDetails, shippingDetails: freezed == shippingDetails ? _value.shippingDetails : shippingDetails // ignore: cast_nullable_to_non_nullable as ShippingDetails?, + mandateData: freezed == mandateData + ? _value.mandateData + : mandateData // ignore: cast_nullable_to_non_nullable + as MandateData?, )); } } @@ -10432,102 +11931,110 @@ class __$$_PaymentMethodDataFpxCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_PaymentMethodDataFpx implements _PaymentMethodDataFpx { - const _$_PaymentMethodDataFpx( - {this.testOfflineBank = false, - this.billingDetails, - this.shippingDetails}); - - factory _$_PaymentMethodDataFpx.fromJson(Map json) => - _$$_PaymentMethodDataFpxFromJson(json); +class _$_PaymentMethodDataAfterPay implements _PaymentMethodDataAfterPay { + const _$_PaymentMethodDataAfterPay( + {required this.billingDetails, this.shippingDetails, this.mandateData}); - /// When set to true you can test offline payment. - @override - @JsonKey() - final bool testOfflineBank; + factory _$_PaymentMethodDataAfterPay.fromJson(Map json) => + _$$_PaymentMethodDataAfterPayFromJson(json); /// Billing information. @override - final BillingDetails? billingDetails; + final BillingDetails billingDetails; /// Shipping details @override final ShippingDetails? shippingDetails; + /// Mandata data for this paymentmethod. + @override + final MandateData? mandateData; + @override String toString() { - return 'PaymentMethodDataFpx(testOfflineBank: $testOfflineBank, billingDetails: $billingDetails, shippingDetails: $shippingDetails)'; + return 'PaymentMethodDataAfterPay(billingDetails: $billingDetails, shippingDetails: $shippingDetails, mandateData: $mandateData)'; } @override bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentMethodDataFpx && - (identical(other.testOfflineBank, testOfflineBank) || - other.testOfflineBank == testOfflineBank) && + other is _$_PaymentMethodDataAfterPay && (identical(other.billingDetails, billingDetails) || other.billingDetails == billingDetails) && (identical(other.shippingDetails, shippingDetails) || - other.shippingDetails == shippingDetails)); + other.shippingDetails == shippingDetails) && + (identical(other.mandateData, mandateData) || + other.mandateData == mandateData)); } @JsonKey(ignore: true) @override - int get hashCode => Object.hash( - runtimeType, testOfflineBank, billingDetails, shippingDetails); + int get hashCode => + Object.hash(runtimeType, billingDetails, shippingDetails, mandateData); @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentMethodDataFpxCopyWith<_$_PaymentMethodDataFpx> get copyWith => - __$$_PaymentMethodDataFpxCopyWithImpl<_$_PaymentMethodDataFpx>( - this, _$identity); + _$$_PaymentMethodDataAfterPayCopyWith<_$_PaymentMethodDataAfterPay> + get copyWith => __$$_PaymentMethodDataAfterPayCopyWithImpl< + _$_PaymentMethodDataAfterPay>(this, _$identity); @override Map toJson() { - return _$$_PaymentMethodDataFpxToJson( + return _$$_PaymentMethodDataAfterPayToJson( this, ); } } -abstract class _PaymentMethodDataFpx implements PaymentMethodDataFpx { - const factory _PaymentMethodDataFpx( - {final bool testOfflineBank, - final BillingDetails? billingDetails, - final ShippingDetails? shippingDetails}) = _$_PaymentMethodDataFpx; - - factory _PaymentMethodDataFpx.fromJson(Map json) = - _$_PaymentMethodDataFpx.fromJson; +abstract class _PaymentMethodDataAfterPay implements PaymentMethodDataAfterPay { + const factory _PaymentMethodDataAfterPay( + {required final BillingDetails billingDetails, + final ShippingDetails? shippingDetails, + final MandateData? mandateData}) = _$_PaymentMethodDataAfterPay; - @override + factory _PaymentMethodDataAfterPay.fromJson(Map json) = + _$_PaymentMethodDataAfterPay.fromJson; - /// When set to true you can test offline payment. - bool get testOfflineBank; @override /// Billing information. - BillingDetails? get billingDetails; + BillingDetails get billingDetails; @override /// Shipping details ShippingDetails? get shippingDetails; @override + + /// Mandata data for this paymentmethod. + MandateData? get mandateData; + @override @JsonKey(ignore: true) - _$$_PaymentMethodDataFpxCopyWith<_$_PaymentMethodDataFpx> get copyWith => - throw _privateConstructorUsedError; + _$$_PaymentMethodDataAfterPayCopyWith<_$_PaymentMethodDataAfterPay> + get copyWith => throw _privateConstructorUsedError; } -PaymentMethodDataSofort _$PaymentMethodDataSofortFromJson( +PaymentMethodDataUsBank _$PaymentMethodDataUsBankFromJson( Map json) { - return _PaymentMethodDataSofort.fromJson(json); + return _PaymentMethodDataUsBank.fromJson(json); } /// @nodoc -mixin _$PaymentMethodDataSofort { - /// Country of the accountholder - String get country => throw _privateConstructorUsedError; +mixin _$PaymentMethodDataUsBank { + /// The account number of the bank account. + String? get accountNumber => throw _privateConstructorUsedError; + + ///The routing number, sort code, or other country-appropriate institution + ///number for the bank account. + String? get routingNumber => throw _privateConstructorUsedError; + + /// The bank account type of the holder + BankAccountHolderType? get accountHolderType => + throw _privateConstructorUsedError; + + /// The account type + UsBankAccountType? get accountType => throw _privateConstructorUsedError; /// Billing information. BillingDetails? get billingDetails => throw _privateConstructorUsedError; @@ -10535,32 +12042,40 @@ mixin _$PaymentMethodDataSofort { /// Shipping details ShippingDetails? get shippingDetails => throw _privateConstructorUsedError; + /// Mandata data for this paymentmethod. + MandateData? get mandateData => throw _privateConstructorUsedError; + Map toJson() => throw _privateConstructorUsedError; @JsonKey(ignore: true) - $PaymentMethodDataSofortCopyWith get copyWith => + $PaymentMethodDataUsBankCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class $PaymentMethodDataSofortCopyWith<$Res> { - factory $PaymentMethodDataSofortCopyWith(PaymentMethodDataSofort value, - $Res Function(PaymentMethodDataSofort) then) = - _$PaymentMethodDataSofortCopyWithImpl<$Res, PaymentMethodDataSofort>; +abstract class $PaymentMethodDataUsBankCopyWith<$Res> { + factory $PaymentMethodDataUsBankCopyWith(PaymentMethodDataUsBank value, + $Res Function(PaymentMethodDataUsBank) then) = + _$PaymentMethodDataUsBankCopyWithImpl<$Res, PaymentMethodDataUsBank>; @useResult $Res call( - {String country, + {String? accountNumber, + String? routingNumber, + BankAccountHolderType? accountHolderType, + UsBankAccountType? accountType, BillingDetails? billingDetails, - ShippingDetails? shippingDetails}); + ShippingDetails? shippingDetails, + MandateData? mandateData}); $BillingDetailsCopyWith<$Res>? get billingDetails; $ShippingDetailsCopyWith<$Res>? get shippingDetails; + $MandateDataCopyWith<$Res>? get mandateData; } /// @nodoc -class _$PaymentMethodDataSofortCopyWithImpl<$Res, - $Val extends PaymentMethodDataSofort> - implements $PaymentMethodDataSofortCopyWith<$Res> { - _$PaymentMethodDataSofortCopyWithImpl(this._value, this._then); +class _$PaymentMethodDataUsBankCopyWithImpl<$Res, + $Val extends PaymentMethodDataUsBank> + implements $PaymentMethodDataUsBankCopyWith<$Res> { + _$PaymentMethodDataUsBankCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; @@ -10570,15 +12085,31 @@ class _$PaymentMethodDataSofortCopyWithImpl<$Res, @pragma('vm:prefer-inline') @override $Res call({ - Object? country = null, + Object? accountNumber = freezed, + Object? routingNumber = freezed, + Object? accountHolderType = freezed, + Object? accountType = freezed, Object? billingDetails = freezed, Object? shippingDetails = freezed, + Object? mandateData = freezed, }) { return _then(_value.copyWith( - country: null == country - ? _value.country - : country // ignore: cast_nullable_to_non_nullable - as String, + accountNumber: freezed == accountNumber + ? _value.accountNumber + : accountNumber // ignore: cast_nullable_to_non_nullable + as String?, + routingNumber: freezed == routingNumber + ? _value.routingNumber + : routingNumber // ignore: cast_nullable_to_non_nullable + as String?, + accountHolderType: freezed == accountHolderType + ? _value.accountHolderType + : accountHolderType // ignore: cast_nullable_to_non_nullable + as BankAccountHolderType?, + accountType: freezed == accountType + ? _value.accountType + : accountType // ignore: cast_nullable_to_non_nullable + as UsBankAccountType?, billingDetails: freezed == billingDetails ? _value.billingDetails : billingDetails // ignore: cast_nullable_to_non_nullable @@ -10587,6 +12118,10 @@ class _$PaymentMethodDataSofortCopyWithImpl<$Res, ? _value.shippingDetails : shippingDetails // ignore: cast_nullable_to_non_nullable as ShippingDetails?, + mandateData: freezed == mandateData + ? _value.mandateData + : mandateData // ignore: cast_nullable_to_non_nullable + as MandateData?, ) as $Val); } @@ -10613,48 +12148,82 @@ class _$PaymentMethodDataSofortCopyWithImpl<$Res, return _then(_value.copyWith(shippingDetails: value) as $Val); }); } + + @override + @pragma('vm:prefer-inline') + $MandateDataCopyWith<$Res>? get mandateData { + if (_value.mandateData == null) { + return null; + } + + return $MandateDataCopyWith<$Res>(_value.mandateData!, (value) { + return _then(_value.copyWith(mandateData: value) as $Val); + }); + } } /// @nodoc -abstract class _$$_PaymentMethodDataSofortCopyWith<$Res> - implements $PaymentMethodDataSofortCopyWith<$Res> { - factory _$$_PaymentMethodDataSofortCopyWith(_$_PaymentMethodDataSofort value, - $Res Function(_$_PaymentMethodDataSofort) then) = - __$$_PaymentMethodDataSofortCopyWithImpl<$Res>; +abstract class _$$_PaymentMethodDataUsBankCopyWith<$Res> + implements $PaymentMethodDataUsBankCopyWith<$Res> { + factory _$$_PaymentMethodDataUsBankCopyWith(_$_PaymentMethodDataUsBank value, + $Res Function(_$_PaymentMethodDataUsBank) then) = + __$$_PaymentMethodDataUsBankCopyWithImpl<$Res>; @override @useResult $Res call( - {String country, + {String? accountNumber, + String? routingNumber, + BankAccountHolderType? accountHolderType, + UsBankAccountType? accountType, BillingDetails? billingDetails, - ShippingDetails? shippingDetails}); + ShippingDetails? shippingDetails, + MandateData? mandateData}); @override $BillingDetailsCopyWith<$Res>? get billingDetails; @override $ShippingDetailsCopyWith<$Res>? get shippingDetails; + @override + $MandateDataCopyWith<$Res>? get mandateData; } /// @nodoc -class __$$_PaymentMethodDataSofortCopyWithImpl<$Res> - extends _$PaymentMethodDataSofortCopyWithImpl<$Res, - _$_PaymentMethodDataSofort> - implements _$$_PaymentMethodDataSofortCopyWith<$Res> { - __$$_PaymentMethodDataSofortCopyWithImpl(_$_PaymentMethodDataSofort _value, - $Res Function(_$_PaymentMethodDataSofort) _then) +class __$$_PaymentMethodDataUsBankCopyWithImpl<$Res> + extends _$PaymentMethodDataUsBankCopyWithImpl<$Res, + _$_PaymentMethodDataUsBank> + implements _$$_PaymentMethodDataUsBankCopyWith<$Res> { + __$$_PaymentMethodDataUsBankCopyWithImpl(_$_PaymentMethodDataUsBank _value, + $Res Function(_$_PaymentMethodDataUsBank) _then) : super(_value, _then); @pragma('vm:prefer-inline') @override $Res call({ - Object? country = null, + Object? accountNumber = freezed, + Object? routingNumber = freezed, + Object? accountHolderType = freezed, + Object? accountType = freezed, Object? billingDetails = freezed, Object? shippingDetails = freezed, + Object? mandateData = freezed, }) { - return _then(_$_PaymentMethodDataSofort( - country: null == country - ? _value.country - : country // ignore: cast_nullable_to_non_nullable - as String, + return _then(_$_PaymentMethodDataUsBank( + accountNumber: freezed == accountNumber + ? _value.accountNumber + : accountNumber // ignore: cast_nullable_to_non_nullable + as String?, + routingNumber: freezed == routingNumber + ? _value.routingNumber + : routingNumber // ignore: cast_nullable_to_non_nullable + as String?, + accountHolderType: freezed == accountHolderType + ? _value.accountHolderType + : accountHolderType // ignore: cast_nullable_to_non_nullable + as BankAccountHolderType?, + accountType: freezed == accountType + ? _value.accountType + : accountType // ignore: cast_nullable_to_non_nullable + as UsBankAccountType?, billingDetails: freezed == billingDetails ? _value.billingDetails : billingDetails // ignore: cast_nullable_to_non_nullable @@ -10663,6 +12232,10 @@ class __$$_PaymentMethodDataSofortCopyWithImpl<$Res> ? _value.shippingDetails : shippingDetails // ignore: cast_nullable_to_non_nullable as ShippingDetails?, + mandateData: freezed == mandateData + ? _value.mandateData + : mandateData // ignore: cast_nullable_to_non_nullable + as MandateData?, )); } } @@ -10670,16 +12243,35 @@ class __$$_PaymentMethodDataSofortCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_PaymentMethodDataSofort implements _PaymentMethodDataSofort { - const _$_PaymentMethodDataSofort( - {required this.country, this.billingDetails, this.shippingDetails}); +class _$_PaymentMethodDataUsBank implements _PaymentMethodDataUsBank { + const _$_PaymentMethodDataUsBank( + {this.accountNumber, + this.routingNumber, + this.accountHolderType, + this.accountType, + this.billingDetails, + this.shippingDetails, + this.mandateData}); - factory _$_PaymentMethodDataSofort.fromJson(Map json) => - _$$_PaymentMethodDataSofortFromJson(json); + factory _$_PaymentMethodDataUsBank.fromJson(Map json) => + _$$_PaymentMethodDataUsBankFromJson(json); - /// Country of the accountholder + /// The account number of the bank account. @override - final String country; + final String? accountNumber; + + ///The routing number, sort code, or other country-appropriate institution + ///number for the bank account. + @override + final String? routingNumber; + + /// The bank account type of the holder + @override + final BankAccountHolderType? accountHolderType; + + /// The account type + @override + final UsBankAccountType? accountType; /// Billing information. @override @@ -10689,57 +12281,94 @@ class _$_PaymentMethodDataSofort implements _PaymentMethodDataSofort { @override final ShippingDetails? shippingDetails; + /// Mandata data for this paymentmethod. + @override + final MandateData? mandateData; + @override String toString() { - return 'PaymentMethodDataSofort(country: $country, billingDetails: $billingDetails, shippingDetails: $shippingDetails)'; + return 'PaymentMethodDataUsBank(accountNumber: $accountNumber, routingNumber: $routingNumber, accountHolderType: $accountHolderType, accountType: $accountType, billingDetails: $billingDetails, shippingDetails: $shippingDetails, mandateData: $mandateData)'; } @override bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentMethodDataSofort && - (identical(other.country, country) || other.country == country) && + other is _$_PaymentMethodDataUsBank && + (identical(other.accountNumber, accountNumber) || + other.accountNumber == accountNumber) && + (identical(other.routingNumber, routingNumber) || + other.routingNumber == routingNumber) && + (identical(other.accountHolderType, accountHolderType) || + other.accountHolderType == accountHolderType) && + (identical(other.accountType, accountType) || + other.accountType == accountType) && (identical(other.billingDetails, billingDetails) || other.billingDetails == billingDetails) && (identical(other.shippingDetails, shippingDetails) || - other.shippingDetails == shippingDetails)); + other.shippingDetails == shippingDetails) && + (identical(other.mandateData, mandateData) || + other.mandateData == mandateData)); } @JsonKey(ignore: true) @override - int get hashCode => - Object.hash(runtimeType, country, billingDetails, shippingDetails); + int get hashCode => Object.hash( + runtimeType, + accountNumber, + routingNumber, + accountHolderType, + accountType, + billingDetails, + shippingDetails, + mandateData); @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentMethodDataSofortCopyWith<_$_PaymentMethodDataSofort> + _$$_PaymentMethodDataUsBankCopyWith<_$_PaymentMethodDataUsBank> get copyWith => - __$$_PaymentMethodDataSofortCopyWithImpl<_$_PaymentMethodDataSofort>( + __$$_PaymentMethodDataUsBankCopyWithImpl<_$_PaymentMethodDataUsBank>( this, _$identity); @override Map toJson() { - return _$$_PaymentMethodDataSofortToJson( + return _$$_PaymentMethodDataUsBankToJson( this, ); } } -abstract class _PaymentMethodDataSofort implements PaymentMethodDataSofort { - const factory _PaymentMethodDataSofort( - {required final String country, +abstract class _PaymentMethodDataUsBank implements PaymentMethodDataUsBank { + const factory _PaymentMethodDataUsBank( + {final String? accountNumber, + final String? routingNumber, + final BankAccountHolderType? accountHolderType, + final UsBankAccountType? accountType, final BillingDetails? billingDetails, - final ShippingDetails? shippingDetails}) = _$_PaymentMethodDataSofort; + final ShippingDetails? shippingDetails, + final MandateData? mandateData}) = _$_PaymentMethodDataUsBank; - factory _PaymentMethodDataSofort.fromJson(Map json) = - _$_PaymentMethodDataSofort.fromJson; + factory _PaymentMethodDataUsBank.fromJson(Map json) = + _$_PaymentMethodDataUsBank.fromJson; @override - /// Country of the accountholder - String get country; + /// 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. + String? get routingNumber; + @override + + /// The bank account type of the holder + BankAccountHolderType? get accountHolderType; + @override + + /// The account type + UsBankAccountType? get accountType; @override /// Billing information. @@ -10749,53 +12378,45 @@ abstract class _PaymentMethodDataSofort implements PaymentMethodDataSofort { /// Shipping details ShippingDetails? get shippingDetails; @override + + /// Mandata data for this paymentmethod. + MandateData? get mandateData; + @override @JsonKey(ignore: true) - _$$_PaymentMethodDataSofortCopyWith<_$_PaymentMethodDataSofort> + _$$_PaymentMethodDataUsBankCopyWith<_$_PaymentMethodDataUsBank> get copyWith => throw _privateConstructorUsedError; } -PaymentMethodDataSepa _$PaymentMethodDataSepaFromJson( - Map json) { - return _PaymentMethodDataSepa.fromJson(json); +PaymentMethodOptions _$PaymentMethodOptionsFromJson(Map json) { + return _PaymentMethodOptions.fromJson(json); } /// @nodoc -mixin _$PaymentMethodDataSepa { - /// Iban number of the accountholder - String get iban => throw _privateConstructorUsedError; - - /// Billing information. - BillingDetails? get billingDetails => throw _privateConstructorUsedError; - - /// Shipping details - ShippingDetails? get shippingDetails => throw _privateConstructorUsedError; +mixin _$PaymentMethodOptions { + /// Indicates whether or not you want to reuse this method for future payments. + PaymentIntentsFutureUsage? get setupFutureUsage => + throw _privateConstructorUsedError; Map toJson() => throw _privateConstructorUsedError; @JsonKey(ignore: true) - $PaymentMethodDataSepaCopyWith get copyWith => + $PaymentMethodOptionsCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class $PaymentMethodDataSepaCopyWith<$Res> { - factory $PaymentMethodDataSepaCopyWith(PaymentMethodDataSepa value, - $Res Function(PaymentMethodDataSepa) then) = - _$PaymentMethodDataSepaCopyWithImpl<$Res, PaymentMethodDataSepa>; +abstract class $PaymentMethodOptionsCopyWith<$Res> { + factory $PaymentMethodOptionsCopyWith(PaymentMethodOptions value, + $Res Function(PaymentMethodOptions) then) = + _$PaymentMethodOptionsCopyWithImpl<$Res, PaymentMethodOptions>; @useResult - $Res call( - {String iban, - BillingDetails? billingDetails, - ShippingDetails? shippingDetails}); - - $BillingDetailsCopyWith<$Res>? get billingDetails; - $ShippingDetailsCopyWith<$Res>? get shippingDetails; + $Res call({PaymentIntentsFutureUsage? setupFutureUsage}); } /// @nodoc -class _$PaymentMethodDataSepaCopyWithImpl<$Res, - $Val extends PaymentMethodDataSepa> - implements $PaymentMethodDataSepaCopyWith<$Res> { - _$PaymentMethodDataSepaCopyWithImpl(this._value, this._then); +class _$PaymentMethodOptionsCopyWithImpl<$Res, + $Val extends PaymentMethodOptions> + implements $PaymentMethodOptionsCopyWith<$Res> { + _$PaymentMethodOptionsCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; @@ -10805,98 +12426,46 @@ class _$PaymentMethodDataSepaCopyWithImpl<$Res, @pragma('vm:prefer-inline') @override $Res call({ - Object? iban = null, - Object? billingDetails = freezed, - Object? shippingDetails = freezed, + Object? setupFutureUsage = freezed, }) { return _then(_value.copyWith( - iban: null == iban - ? _value.iban - : iban // ignore: cast_nullable_to_non_nullable - as String, - billingDetails: freezed == billingDetails - ? _value.billingDetails - : billingDetails // ignore: cast_nullable_to_non_nullable - as BillingDetails?, - shippingDetails: freezed == shippingDetails - ? _value.shippingDetails - : shippingDetails // ignore: cast_nullable_to_non_nullable - as ShippingDetails?, - ) as $Val); - } - - @override - @pragma('vm:prefer-inline') - $BillingDetailsCopyWith<$Res>? get billingDetails { - if (_value.billingDetails == null) { - return null; - } - - return $BillingDetailsCopyWith<$Res>(_value.billingDetails!, (value) { - return _then(_value.copyWith(billingDetails: value) as $Val); - }); - } - - @override - @pragma('vm:prefer-inline') - $ShippingDetailsCopyWith<$Res>? get shippingDetails { - if (_value.shippingDetails == null) { - return null; - } - - return $ShippingDetailsCopyWith<$Res>(_value.shippingDetails!, (value) { - return _then(_value.copyWith(shippingDetails: value) as $Val); - }); + setupFutureUsage: freezed == setupFutureUsage + ? _value.setupFutureUsage + : setupFutureUsage // ignore: cast_nullable_to_non_nullable + as PaymentIntentsFutureUsage?, + ) as $Val); } } /// @nodoc -abstract class _$$_PaymentMethodDataSepaCopyWith<$Res> - implements $PaymentMethodDataSepaCopyWith<$Res> { - factory _$$_PaymentMethodDataSepaCopyWith(_$_PaymentMethodDataSepa value, - $Res Function(_$_PaymentMethodDataSepa) then) = - __$$_PaymentMethodDataSepaCopyWithImpl<$Res>; +abstract class _$$_PaymentMethodOptionsCopyWith<$Res> + implements $PaymentMethodOptionsCopyWith<$Res> { + factory _$$_PaymentMethodOptionsCopyWith(_$_PaymentMethodOptions value, + $Res Function(_$_PaymentMethodOptions) then) = + __$$_PaymentMethodOptionsCopyWithImpl<$Res>; @override @useResult - $Res call( - {String iban, - BillingDetails? billingDetails, - ShippingDetails? shippingDetails}); - - @override - $BillingDetailsCopyWith<$Res>? get billingDetails; - @override - $ShippingDetailsCopyWith<$Res>? get shippingDetails; + $Res call({PaymentIntentsFutureUsage? setupFutureUsage}); } /// @nodoc -class __$$_PaymentMethodDataSepaCopyWithImpl<$Res> - extends _$PaymentMethodDataSepaCopyWithImpl<$Res, _$_PaymentMethodDataSepa> - implements _$$_PaymentMethodDataSepaCopyWith<$Res> { - __$$_PaymentMethodDataSepaCopyWithImpl(_$_PaymentMethodDataSepa _value, - $Res Function(_$_PaymentMethodDataSepa) _then) +class __$$_PaymentMethodOptionsCopyWithImpl<$Res> + extends _$PaymentMethodOptionsCopyWithImpl<$Res, _$_PaymentMethodOptions> + implements _$$_PaymentMethodOptionsCopyWith<$Res> { + __$$_PaymentMethodOptionsCopyWithImpl(_$_PaymentMethodOptions _value, + $Res Function(_$_PaymentMethodOptions) _then) : super(_value, _then); @pragma('vm:prefer-inline') @override $Res call({ - Object? iban = null, - Object? billingDetails = freezed, - Object? shippingDetails = freezed, + Object? setupFutureUsage = freezed, }) { - return _then(_$_PaymentMethodDataSepa( - iban: null == iban - ? _value.iban - : iban // ignore: cast_nullable_to_non_nullable - as String, - billingDetails: freezed == billingDetails - ? _value.billingDetails - : billingDetails // ignore: cast_nullable_to_non_nullable - as BillingDetails?, - shippingDetails: freezed == shippingDetails - ? _value.shippingDetails - : shippingDetails // ignore: cast_nullable_to_non_nullable - as ShippingDetails?, + return _then(_$_PaymentMethodOptions( + setupFutureUsage: freezed == setupFutureUsage + ? _value.setupFutureUsage + : setupFutureUsage // ignore: cast_nullable_to_non_nullable + as PaymentIntentsFutureUsage?, )); } } @@ -10904,125 +12473,98 @@ class __$$_PaymentMethodDataSepaCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_PaymentMethodDataSepa implements _PaymentMethodDataSepa { - const _$_PaymentMethodDataSepa( - {required this.iban, this.billingDetails, this.shippingDetails}); - - factory _$_PaymentMethodDataSepa.fromJson(Map json) => - _$$_PaymentMethodDataSepaFromJson(json); - - /// Iban number of the accountholder - @override - final String iban; +class _$_PaymentMethodOptions implements _PaymentMethodOptions { + const _$_PaymentMethodOptions({this.setupFutureUsage}); - /// Billing information. - @override - final BillingDetails? billingDetails; + factory _$_PaymentMethodOptions.fromJson(Map json) => + _$$_PaymentMethodOptionsFromJson(json); - /// Shipping details + /// Indicates whether or not you want to reuse this method for future payments. @override - final ShippingDetails? shippingDetails; + final PaymentIntentsFutureUsage? setupFutureUsage; @override String toString() { - return 'PaymentMethodDataSepa(iban: $iban, billingDetails: $billingDetails, shippingDetails: $shippingDetails)'; + return 'PaymentMethodOptions(setupFutureUsage: $setupFutureUsage)'; } @override bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentMethodDataSepa && - (identical(other.iban, iban) || other.iban == iban) && - (identical(other.billingDetails, billingDetails) || - other.billingDetails == billingDetails) && - (identical(other.shippingDetails, shippingDetails) || - other.shippingDetails == shippingDetails)); + other is _$_PaymentMethodOptions && + (identical(other.setupFutureUsage, setupFutureUsage) || + other.setupFutureUsage == setupFutureUsage)); } @JsonKey(ignore: true) @override - int get hashCode => - Object.hash(runtimeType, iban, billingDetails, shippingDetails); + int get hashCode => Object.hash(runtimeType, setupFutureUsage); @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentMethodDataSepaCopyWith<_$_PaymentMethodDataSepa> get copyWith => - __$$_PaymentMethodDataSepaCopyWithImpl<_$_PaymentMethodDataSepa>( + _$$_PaymentMethodOptionsCopyWith<_$_PaymentMethodOptions> get copyWith => + __$$_PaymentMethodOptionsCopyWithImpl<_$_PaymentMethodOptions>( this, _$identity); @override Map toJson() { - return _$$_PaymentMethodDataSepaToJson( + return _$$_PaymentMethodOptionsToJson( this, ); } } -abstract class _PaymentMethodDataSepa implements PaymentMethodDataSepa { - const factory _PaymentMethodDataSepa( - {required final String iban, - final BillingDetails? billingDetails, - final ShippingDetails? shippingDetails}) = _$_PaymentMethodDataSepa; - - factory _PaymentMethodDataSepa.fromJson(Map json) = - _$_PaymentMethodDataSepa.fromJson; - - @override +abstract class _PaymentMethodOptions implements PaymentMethodOptions { + const factory _PaymentMethodOptions( + {final PaymentIntentsFutureUsage? setupFutureUsage}) = + _$_PaymentMethodOptions; - /// Iban number of the accountholder - String get iban; - @override + factory _PaymentMethodOptions.fromJson(Map json) = + _$_PaymentMethodOptions.fromJson; - /// Billing information. - BillingDetails? get billingDetails; @override - /// Shipping details - ShippingDetails? get shippingDetails; + /// Indicates whether or not you want to reuse this method for future payments. + PaymentIntentsFutureUsage? get setupFutureUsage; @override @JsonKey(ignore: true) - _$$_PaymentMethodDataSepaCopyWith<_$_PaymentMethodDataSepa> get copyWith => + _$$_PaymentMethodOptionsCopyWith<_$_PaymentMethodOptions> get copyWith => throw _privateConstructorUsedError; } -PaymentMethodDataAfterPay _$PaymentMethodDataAfterPayFromJson( - Map json) { - return _PaymentMethodDataAfterPay.fromJson(json); +MandateData _$MandateDataFromJson(Map json) { + return _MandateData.fromJson(json); } /// @nodoc -mixin _$PaymentMethodDataAfterPay { - /// Billing information. - BillingDetails get billingDetails => throw _privateConstructorUsedError; - - /// Shipping details - ShippingDetails? get shippingDetails => throw _privateConstructorUsedError; +mixin _$MandateData { + /// The type of mandate to create. + MandateDataCustomerAcceptance? get customerAcceptance => + throw _privateConstructorUsedError; Map toJson() => throw _privateConstructorUsedError; @JsonKey(ignore: true) - $PaymentMethodDataAfterPayCopyWith get copyWith => + $MandateDataCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class $PaymentMethodDataAfterPayCopyWith<$Res> { - factory $PaymentMethodDataAfterPayCopyWith(PaymentMethodDataAfterPay value, - $Res Function(PaymentMethodDataAfterPay) then) = - _$PaymentMethodDataAfterPayCopyWithImpl<$Res, PaymentMethodDataAfterPay>; +abstract class $MandateDataCopyWith<$Res> { + factory $MandateDataCopyWith( + MandateData value, $Res Function(MandateData) then) = + _$MandateDataCopyWithImpl<$Res, MandateData>; @useResult - $Res call({BillingDetails billingDetails, ShippingDetails? shippingDetails}); + $Res call({MandateDataCustomerAcceptance? customerAcceptance}); - $BillingDetailsCopyWith<$Res> get billingDetails; - $ShippingDetailsCopyWith<$Res>? get shippingDetails; + $MandateDataCustomerAcceptanceCopyWith<$Res>? get customerAcceptance; } /// @nodoc -class _$PaymentMethodDataAfterPayCopyWithImpl<$Res, - $Val extends PaymentMethodDataAfterPay> - implements $PaymentMethodDataAfterPayCopyWith<$Res> { - _$PaymentMethodDataAfterPayCopyWithImpl(this._value, this._then); +class _$MandateDataCopyWithImpl<$Res, $Val extends MandateData> + implements $MandateDataCopyWith<$Res> { + _$MandateDataCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; @@ -11032,84 +12574,62 @@ class _$PaymentMethodDataAfterPayCopyWithImpl<$Res, @pragma('vm:prefer-inline') @override $Res call({ - Object? billingDetails = null, - Object? shippingDetails = freezed, + Object? customerAcceptance = freezed, }) { return _then(_value.copyWith( - billingDetails: null == billingDetails - ? _value.billingDetails - : billingDetails // ignore: cast_nullable_to_non_nullable - as BillingDetails, - shippingDetails: freezed == shippingDetails - ? _value.shippingDetails - : shippingDetails // ignore: cast_nullable_to_non_nullable - as ShippingDetails?, + customerAcceptance: freezed == customerAcceptance + ? _value.customerAcceptance + : customerAcceptance // ignore: cast_nullable_to_non_nullable + as MandateDataCustomerAcceptance?, ) as $Val); } @override @pragma('vm:prefer-inline') - $BillingDetailsCopyWith<$Res> get billingDetails { - return $BillingDetailsCopyWith<$Res>(_value.billingDetails, (value) { - return _then(_value.copyWith(billingDetails: value) as $Val); - }); - } - - @override - @pragma('vm:prefer-inline') - $ShippingDetailsCopyWith<$Res>? get shippingDetails { - if (_value.shippingDetails == null) { + $MandateDataCustomerAcceptanceCopyWith<$Res>? get customerAcceptance { + if (_value.customerAcceptance == null) { return null; } - return $ShippingDetailsCopyWith<$Res>(_value.shippingDetails!, (value) { - return _then(_value.copyWith(shippingDetails: value) as $Val); + return $MandateDataCustomerAcceptanceCopyWith<$Res>( + _value.customerAcceptance!, (value) { + return _then(_value.copyWith(customerAcceptance: value) as $Val); }); } } /// @nodoc -abstract class _$$_PaymentMethodDataAfterPayCopyWith<$Res> - implements $PaymentMethodDataAfterPayCopyWith<$Res> { - factory _$$_PaymentMethodDataAfterPayCopyWith( - _$_PaymentMethodDataAfterPay value, - $Res Function(_$_PaymentMethodDataAfterPay) then) = - __$$_PaymentMethodDataAfterPayCopyWithImpl<$Res>; +abstract class _$$_MandateDataCopyWith<$Res> + implements $MandateDataCopyWith<$Res> { + factory _$$_MandateDataCopyWith( + _$_MandateData value, $Res Function(_$_MandateData) then) = + __$$_MandateDataCopyWithImpl<$Res>; @override @useResult - $Res call({BillingDetails billingDetails, ShippingDetails? shippingDetails}); + $Res call({MandateDataCustomerAcceptance? customerAcceptance}); @override - $BillingDetailsCopyWith<$Res> get billingDetails; - @override - $ShippingDetailsCopyWith<$Res>? get shippingDetails; + $MandateDataCustomerAcceptanceCopyWith<$Res>? get customerAcceptance; } /// @nodoc -class __$$_PaymentMethodDataAfterPayCopyWithImpl<$Res> - extends _$PaymentMethodDataAfterPayCopyWithImpl<$Res, - _$_PaymentMethodDataAfterPay> - implements _$$_PaymentMethodDataAfterPayCopyWith<$Res> { - __$$_PaymentMethodDataAfterPayCopyWithImpl( - _$_PaymentMethodDataAfterPay _value, - $Res Function(_$_PaymentMethodDataAfterPay) _then) +class __$$_MandateDataCopyWithImpl<$Res> + extends _$MandateDataCopyWithImpl<$Res, _$_MandateData> + implements _$$_MandateDataCopyWith<$Res> { + __$$_MandateDataCopyWithImpl( + _$_MandateData _value, $Res Function(_$_MandateData) _then) : super(_value, _then); @pragma('vm:prefer-inline') @override $Res call({ - Object? billingDetails = null, - Object? shippingDetails = freezed, + Object? customerAcceptance = freezed, }) { - return _then(_$_PaymentMethodDataAfterPay( - billingDetails: null == billingDetails - ? _value.billingDetails - : billingDetails // ignore: cast_nullable_to_non_nullable - as BillingDetails, - shippingDetails: freezed == shippingDetails - ? _value.shippingDetails - : shippingDetails // ignore: cast_nullable_to_non_nullable - as ShippingDetails?, + return _then(_$_MandateData( + customerAcceptance: freezed == customerAcceptance + ? _value.customerAcceptance + : customerAcceptance // ignore: cast_nullable_to_non_nullable + as MandateDataCustomerAcceptance?, )); } } @@ -11117,134 +12637,100 @@ class __$$_PaymentMethodDataAfterPayCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_PaymentMethodDataAfterPay implements _PaymentMethodDataAfterPay { - const _$_PaymentMethodDataAfterPay( - {required this.billingDetails, this.shippingDetails}); +class _$_MandateData implements _MandateData { + const _$_MandateData({this.customerAcceptance}); - factory _$_PaymentMethodDataAfterPay.fromJson(Map json) => - _$$_PaymentMethodDataAfterPayFromJson(json); - - /// Billing information. - @override - final BillingDetails billingDetails; + factory _$_MandateData.fromJson(Map json) => + _$$_MandateDataFromJson(json); - /// Shipping details + /// The type of mandate to create. @override - final ShippingDetails? shippingDetails; + final MandateDataCustomerAcceptance? customerAcceptance; @override String toString() { - return 'PaymentMethodDataAfterPay(billingDetails: $billingDetails, shippingDetails: $shippingDetails)'; + return 'MandateData(customerAcceptance: $customerAcceptance)'; } @override bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentMethodDataAfterPay && - (identical(other.billingDetails, billingDetails) || - other.billingDetails == billingDetails) && - (identical(other.shippingDetails, shippingDetails) || - other.shippingDetails == shippingDetails)); + other is _$_MandateData && + (identical(other.customerAcceptance, customerAcceptance) || + other.customerAcceptance == customerAcceptance)); } @JsonKey(ignore: true) @override - int get hashCode => Object.hash(runtimeType, billingDetails, shippingDetails); + int get hashCode => Object.hash(runtimeType, customerAcceptance); @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentMethodDataAfterPayCopyWith<_$_PaymentMethodDataAfterPay> - get copyWith => __$$_PaymentMethodDataAfterPayCopyWithImpl< - _$_PaymentMethodDataAfterPay>(this, _$identity); + _$$_MandateDataCopyWith<_$_MandateData> get copyWith => + __$$_MandateDataCopyWithImpl<_$_MandateData>(this, _$identity); @override Map toJson() { - return _$$_PaymentMethodDataAfterPayToJson( + return _$$_MandateDataToJson( this, ); } } -abstract class _PaymentMethodDataAfterPay implements PaymentMethodDataAfterPay { - const factory _PaymentMethodDataAfterPay( - {required final BillingDetails billingDetails, - final ShippingDetails? shippingDetails}) = _$_PaymentMethodDataAfterPay; - - factory _PaymentMethodDataAfterPay.fromJson(Map json) = - _$_PaymentMethodDataAfterPay.fromJson; +abstract class _MandateData implements MandateData { + const factory _MandateData( + {final MandateDataCustomerAcceptance? customerAcceptance}) = + _$_MandateData; - @override + factory _MandateData.fromJson(Map json) = + _$_MandateData.fromJson; - /// Billing information. - BillingDetails get billingDetails; @override - /// Shipping details - ShippingDetails? get shippingDetails; + /// The type of mandate to create. + MandateDataCustomerAcceptance? get customerAcceptance; @override @JsonKey(ignore: true) - _$$_PaymentMethodDataAfterPayCopyWith<_$_PaymentMethodDataAfterPay> - get copyWith => throw _privateConstructorUsedError; + _$$_MandateDataCopyWith<_$_MandateData> get copyWith => + throw _privateConstructorUsedError; } -PaymentMethodDataUsBank _$PaymentMethodDataUsBankFromJson( +MandateDataCustomerAcceptance _$MandateDataCustomerAcceptanceFromJson( Map json) { - return _PaymentMethodDataUsBank.fromJson(json); + return _MandateDataCustomerAcceptance.fromJson(json); } /// @nodoc -mixin _$PaymentMethodDataUsBank { - /// The account number of the bank account. - String? get accountNumber => throw _privateConstructorUsedError; - - ///The routing number, sort code, or other country-appropriate institution - ///number for the bank account. - String? get routingNumber => throw _privateConstructorUsedError; - - /// The bank account type of the holder - BankAccountHolderType? get accountHolderType => - throw _privateConstructorUsedError; - - /// The account type - UsBankAccountType? get accountType => throw _privateConstructorUsedError; - - /// Billing information. - BillingDetails? get billingDetails => throw _privateConstructorUsedError; - - /// Shipping details - ShippingDetails? get shippingDetails => throw _privateConstructorUsedError; +mixin _$MandateDataCustomerAcceptance { + /// Online data regarding the mandate. + MandateDataOnlineData? get ipAddress => throw _privateConstructorUsedError; Map toJson() => throw _privateConstructorUsedError; @JsonKey(ignore: true) - $PaymentMethodDataUsBankCopyWith get copyWith => - throw _privateConstructorUsedError; + $MandateDataCustomerAcceptanceCopyWith + get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class $PaymentMethodDataUsBankCopyWith<$Res> { - factory $PaymentMethodDataUsBankCopyWith(PaymentMethodDataUsBank value, - $Res Function(PaymentMethodDataUsBank) then) = - _$PaymentMethodDataUsBankCopyWithImpl<$Res, PaymentMethodDataUsBank>; +abstract class $MandateDataCustomerAcceptanceCopyWith<$Res> { + factory $MandateDataCustomerAcceptanceCopyWith( + MandateDataCustomerAcceptance value, + $Res Function(MandateDataCustomerAcceptance) then) = + _$MandateDataCustomerAcceptanceCopyWithImpl<$Res, + MandateDataCustomerAcceptance>; @useResult - $Res call( - {String? accountNumber, - String? routingNumber, - BankAccountHolderType? accountHolderType, - UsBankAccountType? accountType, - BillingDetails? billingDetails, - ShippingDetails? shippingDetails}); - - $BillingDetailsCopyWith<$Res>? get billingDetails; - $ShippingDetailsCopyWith<$Res>? get shippingDetails; + $Res call({MandateDataOnlineData? ipAddress}); + + $MandateDataOnlineDataCopyWith<$Res>? get ipAddress; } /// @nodoc -class _$PaymentMethodDataUsBankCopyWithImpl<$Res, - $Val extends PaymentMethodDataUsBank> - implements $PaymentMethodDataUsBankCopyWith<$Res> { - _$PaymentMethodDataUsBankCopyWithImpl(this._value, this._then); +class _$MandateDataCustomerAcceptanceCopyWithImpl<$Res, + $Val extends MandateDataCustomerAcceptance> + implements $MandateDataCustomerAcceptanceCopyWith<$Res> { + _$MandateDataCustomerAcceptanceCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; @@ -11254,132 +12740,64 @@ class _$PaymentMethodDataUsBankCopyWithImpl<$Res, @pragma('vm:prefer-inline') @override $Res call({ - Object? accountNumber = freezed, - Object? routingNumber = freezed, - Object? accountHolderType = freezed, - Object? accountType = freezed, - Object? billingDetails = freezed, - Object? shippingDetails = freezed, + Object? ipAddress = freezed, }) { return _then(_value.copyWith( - accountNumber: freezed == accountNumber - ? _value.accountNumber - : accountNumber // ignore: cast_nullable_to_non_nullable - as String?, - routingNumber: freezed == routingNumber - ? _value.routingNumber - : routingNumber // ignore: cast_nullable_to_non_nullable - as String?, - accountHolderType: freezed == accountHolderType - ? _value.accountHolderType - : accountHolderType // ignore: cast_nullable_to_non_nullable - as BankAccountHolderType?, - accountType: freezed == accountType - ? _value.accountType - : accountType // ignore: cast_nullable_to_non_nullable - as UsBankAccountType?, - billingDetails: freezed == billingDetails - ? _value.billingDetails - : billingDetails // ignore: cast_nullable_to_non_nullable - as BillingDetails?, - shippingDetails: freezed == shippingDetails - ? _value.shippingDetails - : shippingDetails // ignore: cast_nullable_to_non_nullable - as ShippingDetails?, + ipAddress: freezed == ipAddress + ? _value.ipAddress + : ipAddress // ignore: cast_nullable_to_non_nullable + as MandateDataOnlineData?, ) as $Val); } @override @pragma('vm:prefer-inline') - $BillingDetailsCopyWith<$Res>? get billingDetails { - if (_value.billingDetails == null) { - return null; - } - - return $BillingDetailsCopyWith<$Res>(_value.billingDetails!, (value) { - return _then(_value.copyWith(billingDetails: value) as $Val); - }); - } - - @override - @pragma('vm:prefer-inline') - $ShippingDetailsCopyWith<$Res>? get shippingDetails { - if (_value.shippingDetails == null) { + $MandateDataOnlineDataCopyWith<$Res>? get ipAddress { + if (_value.ipAddress == null) { return null; } - return $ShippingDetailsCopyWith<$Res>(_value.shippingDetails!, (value) { - return _then(_value.copyWith(shippingDetails: value) as $Val); + return $MandateDataOnlineDataCopyWith<$Res>(_value.ipAddress!, (value) { + return _then(_value.copyWith(ipAddress: value) as $Val); }); } } /// @nodoc -abstract class _$$_PaymentMethodDataUsBankCopyWith<$Res> - implements $PaymentMethodDataUsBankCopyWith<$Res> { - factory _$$_PaymentMethodDataUsBankCopyWith(_$_PaymentMethodDataUsBank value, - $Res Function(_$_PaymentMethodDataUsBank) then) = - __$$_PaymentMethodDataUsBankCopyWithImpl<$Res>; +abstract class _$$_MandateDataCustomerAcceptanceCopyWith<$Res> + implements $MandateDataCustomerAcceptanceCopyWith<$Res> { + factory _$$_MandateDataCustomerAcceptanceCopyWith( + _$_MandateDataCustomerAcceptance value, + $Res Function(_$_MandateDataCustomerAcceptance) then) = + __$$_MandateDataCustomerAcceptanceCopyWithImpl<$Res>; @override @useResult - $Res call( - {String? accountNumber, - String? routingNumber, - BankAccountHolderType? accountHolderType, - UsBankAccountType? accountType, - BillingDetails? billingDetails, - ShippingDetails? shippingDetails}); + $Res call({MandateDataOnlineData? ipAddress}); @override - $BillingDetailsCopyWith<$Res>? get billingDetails; - @override - $ShippingDetailsCopyWith<$Res>? get shippingDetails; + $MandateDataOnlineDataCopyWith<$Res>? get ipAddress; } /// @nodoc -class __$$_PaymentMethodDataUsBankCopyWithImpl<$Res> - extends _$PaymentMethodDataUsBankCopyWithImpl<$Res, - _$_PaymentMethodDataUsBank> - implements _$$_PaymentMethodDataUsBankCopyWith<$Res> { - __$$_PaymentMethodDataUsBankCopyWithImpl(_$_PaymentMethodDataUsBank _value, - $Res Function(_$_PaymentMethodDataUsBank) _then) +class __$$_MandateDataCustomerAcceptanceCopyWithImpl<$Res> + extends _$MandateDataCustomerAcceptanceCopyWithImpl<$Res, + _$_MandateDataCustomerAcceptance> + implements _$$_MandateDataCustomerAcceptanceCopyWith<$Res> { + __$$_MandateDataCustomerAcceptanceCopyWithImpl( + _$_MandateDataCustomerAcceptance _value, + $Res Function(_$_MandateDataCustomerAcceptance) _then) : super(_value, _then); @pragma('vm:prefer-inline') @override $Res call({ - Object? accountNumber = freezed, - Object? routingNumber = freezed, - Object? accountHolderType = freezed, - Object? accountType = freezed, - Object? billingDetails = freezed, - Object? shippingDetails = freezed, + Object? ipAddress = freezed, }) { - return _then(_$_PaymentMethodDataUsBank( - accountNumber: freezed == accountNumber - ? _value.accountNumber - : accountNumber // ignore: cast_nullable_to_non_nullable - as String?, - routingNumber: freezed == routingNumber - ? _value.routingNumber - : routingNumber // ignore: cast_nullable_to_non_nullable - as String?, - accountHolderType: freezed == accountHolderType - ? _value.accountHolderType - : accountHolderType // ignore: cast_nullable_to_non_nullable - as BankAccountHolderType?, - accountType: freezed == accountType - ? _value.accountType - : accountType // ignore: cast_nullable_to_non_nullable - as UsBankAccountType?, - billingDetails: freezed == billingDetails - ? _value.billingDetails - : billingDetails // ignore: cast_nullable_to_non_nullable - as BillingDetails?, - shippingDetails: freezed == shippingDetails - ? _value.shippingDetails - : shippingDetails // ignore: cast_nullable_to_non_nullable - as ShippingDetails?, + return _then(_$_MandateDataCustomerAcceptance( + ipAddress: freezed == ipAddress + ? _value.ipAddress + : ipAddress // ignore: cast_nullable_to_non_nullable + as MandateDataOnlineData?, )); } } @@ -11387,161 +12805,103 @@ class __$$_PaymentMethodDataUsBankCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_PaymentMethodDataUsBank implements _PaymentMethodDataUsBank { - const _$_PaymentMethodDataUsBank( - {this.accountNumber, - this.routingNumber, - this.accountHolderType, - this.accountType, - this.billingDetails, - this.shippingDetails}); - - factory _$_PaymentMethodDataUsBank.fromJson(Map json) => - _$$_PaymentMethodDataUsBankFromJson(json); - - /// The account number of the bank account. - @override - final String? accountNumber; - - ///The routing number, sort code, or other country-appropriate institution - ///number for the bank account. - @override - final String? routingNumber; - - /// The bank account type of the holder - @override - final BankAccountHolderType? accountHolderType; - - /// The account type - @override - final UsBankAccountType? accountType; +class _$_MandateDataCustomerAcceptance + implements _MandateDataCustomerAcceptance { + const _$_MandateDataCustomerAcceptance({this.ipAddress}); - /// Billing information. - @override - final BillingDetails? billingDetails; + factory _$_MandateDataCustomerAcceptance.fromJson( + Map json) => + _$$_MandateDataCustomerAcceptanceFromJson(json); - /// Shipping details + /// Online data regarding the mandate. @override - final ShippingDetails? shippingDetails; + final MandateDataOnlineData? ipAddress; @override String toString() { - return 'PaymentMethodDataUsBank(accountNumber: $accountNumber, routingNumber: $routingNumber, accountHolderType: $accountHolderType, accountType: $accountType, billingDetails: $billingDetails, shippingDetails: $shippingDetails)'; + return 'MandateDataCustomerAcceptance(ipAddress: $ipAddress)'; } @override bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentMethodDataUsBank && - (identical(other.accountNumber, accountNumber) || - other.accountNumber == accountNumber) && - (identical(other.routingNumber, routingNumber) || - other.routingNumber == routingNumber) && - (identical(other.accountHolderType, accountHolderType) || - other.accountHolderType == accountHolderType) && - (identical(other.accountType, accountType) || - other.accountType == accountType) && - (identical(other.billingDetails, billingDetails) || - other.billingDetails == billingDetails) && - (identical(other.shippingDetails, shippingDetails) || - other.shippingDetails == shippingDetails)); + other is _$_MandateDataCustomerAcceptance && + (identical(other.ipAddress, ipAddress) || + other.ipAddress == ipAddress)); } @JsonKey(ignore: true) @override - int get hashCode => Object.hash(runtimeType, accountNumber, routingNumber, - accountHolderType, accountType, billingDetails, shippingDetails); + int get hashCode => Object.hash(runtimeType, ipAddress); @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentMethodDataUsBankCopyWith<_$_PaymentMethodDataUsBank> - get copyWith => - __$$_PaymentMethodDataUsBankCopyWithImpl<_$_PaymentMethodDataUsBank>( - this, _$identity); + _$$_MandateDataCustomerAcceptanceCopyWith<_$_MandateDataCustomerAcceptance> + get copyWith => __$$_MandateDataCustomerAcceptanceCopyWithImpl< + _$_MandateDataCustomerAcceptance>(this, _$identity); @override Map toJson() { - return _$$_PaymentMethodDataUsBankToJson( + return _$$_MandateDataCustomerAcceptanceToJson( this, ); } } -abstract class _PaymentMethodDataUsBank implements PaymentMethodDataUsBank { - const factory _PaymentMethodDataUsBank( - {final String? accountNumber, - final String? routingNumber, - final BankAccountHolderType? accountHolderType, - final UsBankAccountType? accountType, - final BillingDetails? billingDetails, - final ShippingDetails? shippingDetails}) = _$_PaymentMethodDataUsBank; - - factory _PaymentMethodDataUsBank.fromJson(Map json) = - _$_PaymentMethodDataUsBank.fromJson; - - @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. - String? get routingNumber; - @override - - /// The bank account type of the holder - BankAccountHolderType? get accountHolderType; - @override +abstract class _MandateDataCustomerAcceptance + implements MandateDataCustomerAcceptance { + const factory _MandateDataCustomerAcceptance( + {final MandateDataOnlineData? ipAddress}) = + _$_MandateDataCustomerAcceptance; - /// The account type - UsBankAccountType? get accountType; - @override + factory _MandateDataCustomerAcceptance.fromJson(Map json) = + _$_MandateDataCustomerAcceptance.fromJson; - /// Billing information. - BillingDetails? get billingDetails; @override - /// Shipping details - ShippingDetails? get shippingDetails; + /// Online data regarding the mandate. + MandateDataOnlineData? get ipAddress; @override @JsonKey(ignore: true) - _$$_PaymentMethodDataUsBankCopyWith<_$_PaymentMethodDataUsBank> + _$$_MandateDataCustomerAcceptanceCopyWith<_$_MandateDataCustomerAcceptance> get copyWith => throw _privateConstructorUsedError; } -PaymentMethodOptions _$PaymentMethodOptionsFromJson(Map json) { - return _PaymentMethodOptions.fromJson(json); +MandateDataOnlineData _$MandateDataOnlineDataFromJson( + Map json) { + return _MandateDataOnlineData.fromJson(json); } /// @nodoc -mixin _$PaymentMethodOptions { - /// Indicates whether or not you want to reuse this method for future payments. - PaymentIntentsFutureUsage? get setupFutureUsage => - throw _privateConstructorUsedError; +mixin _$MandateDataOnlineData { + /// The ip address of the user. + String? get ipAddress => throw _privateConstructorUsedError; + + /// The user agent of the user. + String? get userAgent => throw _privateConstructorUsedError; Map toJson() => throw _privateConstructorUsedError; @JsonKey(ignore: true) - $PaymentMethodOptionsCopyWith get copyWith => + $MandateDataOnlineDataCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class $PaymentMethodOptionsCopyWith<$Res> { - factory $PaymentMethodOptionsCopyWith(PaymentMethodOptions value, - $Res Function(PaymentMethodOptions) then) = - _$PaymentMethodOptionsCopyWithImpl<$Res, PaymentMethodOptions>; +abstract class $MandateDataOnlineDataCopyWith<$Res> { + factory $MandateDataOnlineDataCopyWith(MandateDataOnlineData value, + $Res Function(MandateDataOnlineData) then) = + _$MandateDataOnlineDataCopyWithImpl<$Res, MandateDataOnlineData>; @useResult - $Res call({PaymentIntentsFutureUsage? setupFutureUsage}); + $Res call({String? ipAddress, String? userAgent}); } /// @nodoc -class _$PaymentMethodOptionsCopyWithImpl<$Res, - $Val extends PaymentMethodOptions> - implements $PaymentMethodOptionsCopyWith<$Res> { - _$PaymentMethodOptionsCopyWithImpl(this._value, this._then); +class _$MandateDataOnlineDataCopyWithImpl<$Res, + $Val extends MandateDataOnlineData> + implements $MandateDataOnlineDataCopyWith<$Res> { + _$MandateDataOnlineDataCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; @@ -11551,46 +12911,56 @@ class _$PaymentMethodOptionsCopyWithImpl<$Res, @pragma('vm:prefer-inline') @override $Res call({ - Object? setupFutureUsage = freezed, + Object? ipAddress = freezed, + Object? userAgent = freezed, }) { return _then(_value.copyWith( - setupFutureUsage: freezed == setupFutureUsage - ? _value.setupFutureUsage - : setupFutureUsage // ignore: cast_nullable_to_non_nullable - as PaymentIntentsFutureUsage?, + ipAddress: freezed == ipAddress + ? _value.ipAddress + : ipAddress // ignore: cast_nullable_to_non_nullable + as String?, + userAgent: freezed == userAgent + ? _value.userAgent + : userAgent // ignore: cast_nullable_to_non_nullable + as String?, ) as $Val); } } /// @nodoc -abstract class _$$_PaymentMethodOptionsCopyWith<$Res> - implements $PaymentMethodOptionsCopyWith<$Res> { - factory _$$_PaymentMethodOptionsCopyWith(_$_PaymentMethodOptions value, - $Res Function(_$_PaymentMethodOptions) then) = - __$$_PaymentMethodOptionsCopyWithImpl<$Res>; +abstract class _$$_MandateDataOnlineDataCopyWith<$Res> + implements $MandateDataOnlineDataCopyWith<$Res> { + factory _$$_MandateDataOnlineDataCopyWith(_$_MandateDataOnlineData value, + $Res Function(_$_MandateDataOnlineData) then) = + __$$_MandateDataOnlineDataCopyWithImpl<$Res>; @override @useResult - $Res call({PaymentIntentsFutureUsage? setupFutureUsage}); + $Res call({String? ipAddress, String? userAgent}); } /// @nodoc -class __$$_PaymentMethodOptionsCopyWithImpl<$Res> - extends _$PaymentMethodOptionsCopyWithImpl<$Res, _$_PaymentMethodOptions> - implements _$$_PaymentMethodOptionsCopyWith<$Res> { - __$$_PaymentMethodOptionsCopyWithImpl(_$_PaymentMethodOptions _value, - $Res Function(_$_PaymentMethodOptions) _then) +class __$$_MandateDataOnlineDataCopyWithImpl<$Res> + extends _$MandateDataOnlineDataCopyWithImpl<$Res, _$_MandateDataOnlineData> + implements _$$_MandateDataOnlineDataCopyWith<$Res> { + __$$_MandateDataOnlineDataCopyWithImpl(_$_MandateDataOnlineData _value, + $Res Function(_$_MandateDataOnlineData) _then) : super(_value, _then); @pragma('vm:prefer-inline') @override $Res call({ - Object? setupFutureUsage = freezed, + Object? ipAddress = freezed, + Object? userAgent = freezed, }) { - return _then(_$_PaymentMethodOptions( - setupFutureUsage: freezed == setupFutureUsage - ? _value.setupFutureUsage - : setupFutureUsage // ignore: cast_nullable_to_non_nullable - as PaymentIntentsFutureUsage?, + return _then(_$_MandateDataOnlineData( + ipAddress: freezed == ipAddress + ? _value.ipAddress + : ipAddress // ignore: cast_nullable_to_non_nullable + as String?, + userAgent: freezed == userAgent + ? _value.userAgent + : userAgent // ignore: cast_nullable_to_non_nullable + as String?, )); } } @@ -11598,63 +12968,73 @@ class __$$_PaymentMethodOptionsCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_PaymentMethodOptions implements _PaymentMethodOptions { - const _$_PaymentMethodOptions({this.setupFutureUsage}); +class _$_MandateDataOnlineData implements _MandateDataOnlineData { + const _$_MandateDataOnlineData({this.ipAddress, this.userAgent}); - factory _$_PaymentMethodOptions.fromJson(Map json) => - _$$_PaymentMethodOptionsFromJson(json); + factory _$_MandateDataOnlineData.fromJson(Map json) => + _$$_MandateDataOnlineDataFromJson(json); - /// Indicates whether or not you want to reuse this method for future payments. + /// The ip address of the user. @override - final PaymentIntentsFutureUsage? setupFutureUsage; + final String? ipAddress; + + /// The user agent of the user. + @override + final String? userAgent; @override String toString() { - return 'PaymentMethodOptions(setupFutureUsage: $setupFutureUsage)'; + return 'MandateDataOnlineData(ipAddress: $ipAddress, userAgent: $userAgent)'; } @override bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentMethodOptions && - (identical(other.setupFutureUsage, setupFutureUsage) || - other.setupFutureUsage == setupFutureUsage)); + other is _$_MandateDataOnlineData && + (identical(other.ipAddress, ipAddress) || + other.ipAddress == ipAddress) && + (identical(other.userAgent, userAgent) || + other.userAgent == userAgent)); } @JsonKey(ignore: true) @override - int get hashCode => Object.hash(runtimeType, setupFutureUsage); + int get hashCode => Object.hash(runtimeType, ipAddress, userAgent); @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentMethodOptionsCopyWith<_$_PaymentMethodOptions> get copyWith => - __$$_PaymentMethodOptionsCopyWithImpl<_$_PaymentMethodOptions>( + _$$_MandateDataOnlineDataCopyWith<_$_MandateDataOnlineData> get copyWith => + __$$_MandateDataOnlineDataCopyWithImpl<_$_MandateDataOnlineData>( this, _$identity); @override Map toJson() { - return _$$_PaymentMethodOptionsToJson( + return _$$_MandateDataOnlineDataToJson( this, ); } } -abstract class _PaymentMethodOptions implements PaymentMethodOptions { - const factory _PaymentMethodOptions( - {final PaymentIntentsFutureUsage? setupFutureUsage}) = - _$_PaymentMethodOptions; +abstract class _MandateDataOnlineData implements MandateDataOnlineData { + const factory _MandateDataOnlineData( + {final String? ipAddress, + final String? userAgent}) = _$_MandateDataOnlineData; - factory _PaymentMethodOptions.fromJson(Map json) = - _$_PaymentMethodOptions.fromJson; + factory _MandateDataOnlineData.fromJson(Map json) = + _$_MandateDataOnlineData.fromJson; @override - /// Indicates whether or not you want to reuse this method for future payments. - PaymentIntentsFutureUsage? get setupFutureUsage; + /// The ip address of the user. + String? get ipAddress; + @override + + /// The user agent of the user. + String? get userAgent; @override @JsonKey(ignore: true) - _$$_PaymentMethodOptionsCopyWith<_$_PaymentMethodOptions> get copyWith => + _$$_MandateDataOnlineDataCopyWith<_$_MandateDataOnlineData> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_platform_interface/lib/src/models/payment_methods.g.dart b/packages/stripe_platform_interface/lib/src/models/payment_methods.g.dart index 9eea034fc..6812af9da 100644 --- a/packages/stripe_platform_interface/lib/src/models/payment_methods.g.dart +++ b/packages/stripe_platform_interface/lib/src/models/payment_methods.g.dart @@ -270,6 +270,21 @@ Map _$$_PaymentMethodParamsAlipayToJson( 'paymentMethodType': instance.$type, }; +_$_PaymentMethodParamsCashAppPay _$$_PaymentMethodParamsCashAppPayFromJson( + Map json) => + _$_PaymentMethodParamsCashAppPay( + paymentMethodData: PaymentMethodData.fromJson( + json['paymentMethodData'] as Map), + $type: json['paymentMethodType'] as String?, + ); + +Map _$$_PaymentMethodParamsCashAppPayToJson( + _$_PaymentMethodParamsCashAppPay instance) => + { + 'paymentMethodData': instance.paymentMethodData.toJson(), + 'paymentMethodType': instance.$type, + }; + _$_PaymentMethodParamsIdeal _$$_PaymentMethodParamsIdealFromJson( Map json) => _$_PaymentMethodParamsIdeal( @@ -521,6 +536,9 @@ _$_PaymentMethodData _$$_PaymentMethodDataFromJson(Map json) => ? null : ShippingDetails.fromJson( json['shippingDetails'] as Map), + mandateData: json['mandateData'] == null + ? null + : MandateData.fromJson(json['mandateData'] as Map), ); Map _$$_PaymentMethodDataToJson( @@ -528,6 +546,7 @@ Map _$$_PaymentMethodDataToJson( { 'billingDetails': instance.billingDetails?.toJson(), 'shippingDetails': instance.shippingDetails?.toJson(), + 'mandateData': instance.mandateData?.toJson(), }; _$_PaymentMethodDataCardFromToken _$$_PaymentMethodDataCardFromTokenFromJson( @@ -542,6 +561,9 @@ _$_PaymentMethodDataCardFromToken _$$_PaymentMethodDataCardFromTokenFromJson( ? null : ShippingDetails.fromJson( json['shippingDetails'] as Map), + mandateData: json['mandateData'] == null + ? null + : MandateData.fromJson(json['mandateData'] as Map), ); Map _$$_PaymentMethodDataCardFromTokenToJson( @@ -550,6 +572,7 @@ Map _$$_PaymentMethodDataCardFromTokenToJson( 'token': instance.token, 'billingDetails': instance.billingDetails?.toJson(), 'shippingDetails': instance.shippingDetails?.toJson(), + 'mandateData': instance.mandateData?.toJson(), }; _$_PaymentMethodDataCardFromMethod _$$_PaymentMethodDataCardFromMethodFromJson( @@ -565,6 +588,9 @@ _$_PaymentMethodDataCardFromMethod _$$_PaymentMethodDataCardFromMethodFromJson( ? null : ShippingDetails.fromJson( json['shippingDetails'] as Map), + mandateData: json['mandateData'] == null + ? null + : MandateData.fromJson(json['mandateData'] as Map), ); Map _$$_PaymentMethodDataCardFromMethodToJson( @@ -574,6 +600,7 @@ Map _$$_PaymentMethodDataCardFromMethodToJson( 'cvc': instance.cvc, 'billingDetails': instance.billingDetails?.toJson(), 'shippingDetails': instance.shippingDetails?.toJson(), + 'mandateData': instance.mandateData?.toJson(), }; _$_PaymentMethodDataIdeal _$$_PaymentMethodDataIdealFromJson( @@ -588,6 +615,9 @@ _$_PaymentMethodDataIdeal _$$_PaymentMethodDataIdealFromJson( ? null : ShippingDetails.fromJson( json['shippingDetails'] as Map), + mandateData: json['mandateData'] == null + ? null + : MandateData.fromJson(json['mandateData'] as Map), ); Map _$$_PaymentMethodDataIdealToJson( @@ -596,6 +626,7 @@ Map _$$_PaymentMethodDataIdealToJson( 'bankName': instance.bankName, 'billingDetails': instance.billingDetails?.toJson(), 'shippingDetails': instance.shippingDetails?.toJson(), + 'mandateData': instance.mandateData?.toJson(), }; _$_PaymentMethodDataAubecs _$$_PaymentMethodDataAubecsFromJson( @@ -611,6 +642,9 @@ _$_PaymentMethodDataAubecs _$$_PaymentMethodDataAubecsFromJson( ? null : ShippingDetails.fromJson( json['shippingDetails'] as Map), + mandateData: json['mandateData'] == null + ? null + : MandateData.fromJson(json['mandateData'] as Map), ); Map _$$_PaymentMethodDataAubecsToJson( @@ -619,6 +653,7 @@ Map _$$_PaymentMethodDataAubecsToJson( 'formDetails': instance.formDetails.toJson(), 'billingDetails': instance.billingDetails?.toJson(), 'shippingDetails': instance.shippingDetails?.toJson(), + 'mandateData': instance.mandateData?.toJson(), }; _$_PaymentMethodDataFpx _$$_PaymentMethodDataFpxFromJson( @@ -633,6 +668,9 @@ _$_PaymentMethodDataFpx _$$_PaymentMethodDataFpxFromJson( ? null : ShippingDetails.fromJson( json['shippingDetails'] as Map), + mandateData: json['mandateData'] == null + ? null + : MandateData.fromJson(json['mandateData'] as Map), ); Map _$$_PaymentMethodDataFpxToJson( @@ -641,6 +679,7 @@ Map _$$_PaymentMethodDataFpxToJson( 'testOfflineBank': instance.testOfflineBank, 'billingDetails': instance.billingDetails?.toJson(), 'shippingDetails': instance.shippingDetails?.toJson(), + 'mandateData': instance.mandateData?.toJson(), }; _$_PaymentMethodDataSofort _$$_PaymentMethodDataSofortFromJson( @@ -655,6 +694,9 @@ _$_PaymentMethodDataSofort _$$_PaymentMethodDataSofortFromJson( ? null : ShippingDetails.fromJson( json['shippingDetails'] as Map), + mandateData: json['mandateData'] == null + ? null + : MandateData.fromJson(json['mandateData'] as Map), ); Map _$$_PaymentMethodDataSofortToJson( @@ -663,6 +705,7 @@ Map _$$_PaymentMethodDataSofortToJson( 'country': instance.country, 'billingDetails': instance.billingDetails?.toJson(), 'shippingDetails': instance.shippingDetails?.toJson(), + 'mandateData': instance.mandateData?.toJson(), }; _$_PaymentMethodDataSepa _$$_PaymentMethodDataSepaFromJson( @@ -677,6 +720,9 @@ _$_PaymentMethodDataSepa _$$_PaymentMethodDataSepaFromJson( ? null : ShippingDetails.fromJson( json['shippingDetails'] as Map), + mandateData: json['mandateData'] == null + ? null + : MandateData.fromJson(json['mandateData'] as Map), ); Map _$$_PaymentMethodDataSepaToJson( @@ -685,6 +731,7 @@ Map _$$_PaymentMethodDataSepaToJson( 'iban': instance.iban, 'billingDetails': instance.billingDetails?.toJson(), 'shippingDetails': instance.shippingDetails?.toJson(), + 'mandateData': instance.mandateData?.toJson(), }; _$_PaymentMethodDataAfterPay _$$_PaymentMethodDataAfterPayFromJson( @@ -696,6 +743,9 @@ _$_PaymentMethodDataAfterPay _$$_PaymentMethodDataAfterPayFromJson( ? null : ShippingDetails.fromJson( json['shippingDetails'] as Map), + mandateData: json['mandateData'] == null + ? null + : MandateData.fromJson(json['mandateData'] as Map), ); Map _$$_PaymentMethodDataAfterPayToJson( @@ -703,6 +753,7 @@ Map _$$_PaymentMethodDataAfterPayToJson( { 'billingDetails': instance.billingDetails.toJson(), 'shippingDetails': instance.shippingDetails?.toJson(), + 'mandateData': instance.mandateData?.toJson(), }; _$_PaymentMethodDataUsBank _$$_PaymentMethodDataUsBankFromJson( @@ -722,6 +773,9 @@ _$_PaymentMethodDataUsBank _$$_PaymentMethodDataUsBankFromJson( ? null : ShippingDetails.fromJson( json['shippingDetails'] as Map), + mandateData: json['mandateData'] == null + ? null + : MandateData.fromJson(json['mandateData'] as Map), ); Map _$$_PaymentMethodDataUsBankToJson( @@ -734,6 +788,7 @@ Map _$$_PaymentMethodDataUsBankToJson( 'accountType': _$UsBankAccountTypeEnumMap[instance.accountType], 'billingDetails': instance.billingDetails?.toJson(), 'shippingDetails': instance.shippingDetails?.toJson(), + 'mandateData': instance.mandateData?.toJson(), }; _$_PaymentMethodOptions _$$_PaymentMethodOptionsFromJson( @@ -754,3 +809,45 @@ const _$PaymentIntentsFutureUsageEnumMap = { PaymentIntentsFutureUsage.OffSession: 'OffSession', PaymentIntentsFutureUsage.OnSession: 'OnSession', }; + +_$_MandateData _$$_MandateDataFromJson(Map json) => + _$_MandateData( + customerAcceptance: json['customerAcceptance'] == null + ? null + : MandateDataCustomerAcceptance.fromJson( + json['customerAcceptance'] as Map), + ); + +Map _$$_MandateDataToJson(_$_MandateData instance) => + { + 'customerAcceptance': instance.customerAcceptance?.toJson(), + }; + +_$_MandateDataCustomerAcceptance _$$_MandateDataCustomerAcceptanceFromJson( + Map json) => + _$_MandateDataCustomerAcceptance( + ipAddress: json['ipAddress'] == null + ? null + : MandateDataOnlineData.fromJson( + json['ipAddress'] as Map), + ); + +Map _$$_MandateDataCustomerAcceptanceToJson( + _$_MandateDataCustomerAcceptance instance) => + { + 'ipAddress': instance.ipAddress?.toJson(), + }; + +_$_MandateDataOnlineData _$$_MandateDataOnlineDataFromJson( + Map json) => + _$_MandateDataOnlineData( + ipAddress: json['ipAddress'] as String?, + userAgent: json['userAgent'] as String?, + ); + +Map _$$_MandateDataOnlineDataToJson( + _$_MandateDataOnlineData instance) => + { + 'ipAddress': instance.ipAddress, + 'userAgent': instance.userAgent, + }; diff --git a/packages/stripe_platform_interface/lib/src/models/setup_intent.dart b/packages/stripe_platform_interface/lib/src/models/setup_intent.dart index c2199f56c..723d86126 100644 --- a/packages/stripe_platform_interface/lib/src/models/setup_intent.dart +++ b/packages/stripe_platform_interface/lib/src/models/setup_intent.dart @@ -56,6 +56,9 @@ class SetupIntent with _$SetupIntent { /// Additional action that needs to be taken in order to complete a payment /// using the provided resource. NextAction? nextAction, + + /// Mandata data for this paymentintent. + MandateData? mandateData, }) = _SetupIntent; factory SetupIntent.fromJson(Map json) => 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 6216bbdef..5d5103774 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 @@ -57,6 +57,9 @@ mixin _$SetupIntent { /// using the provided resource. NextAction? get nextAction => throw _privateConstructorUsedError; + /// Mandata data for this paymentintent. + MandateData? get mandateData => throw _privateConstructorUsedError; + Map toJson() => throw _privateConstructorUsedError; @JsonKey(ignore: true) $SetupIntentCopyWith get copyWith => @@ -80,10 +83,12 @@ abstract class $SetupIntentCopyWith<$Res> { String? description, String? created, LastSetupError? lastSetupError, - NextAction? nextAction}); + NextAction? nextAction, + MandateData? mandateData}); $LastSetupErrorCopyWith<$Res>? get lastSetupError; $NextActionCopyWith<$Res>? get nextAction; + $MandateDataCopyWith<$Res>? get mandateData; } /// @nodoc @@ -110,6 +115,7 @@ class _$SetupIntentCopyWithImpl<$Res, $Val extends SetupIntent> Object? created = freezed, Object? lastSetupError = freezed, Object? nextAction = freezed, + Object? mandateData = freezed, }) { return _then(_value.copyWith( id: null == id @@ -156,6 +162,10 @@ class _$SetupIntentCopyWithImpl<$Res, $Val extends SetupIntent> ? _value.nextAction : nextAction // ignore: cast_nullable_to_non_nullable as NextAction?, + mandateData: freezed == mandateData + ? _value.mandateData + : mandateData // ignore: cast_nullable_to_non_nullable + as MandateData?, ) as $Val); } @@ -182,6 +192,18 @@ class _$SetupIntentCopyWithImpl<$Res, $Val extends SetupIntent> return _then(_value.copyWith(nextAction: value) as $Val); }); } + + @override + @pragma('vm:prefer-inline') + $MandateDataCopyWith<$Res>? get mandateData { + if (_value.mandateData == null) { + return null; + } + + return $MandateDataCopyWith<$Res>(_value.mandateData!, (value) { + return _then(_value.copyWith(mandateData: value) as $Val); + }); + } } /// @nodoc @@ -203,12 +225,15 @@ abstract class _$$_SetupIntentCopyWith<$Res> String? description, String? created, LastSetupError? lastSetupError, - NextAction? nextAction}); + NextAction? nextAction, + MandateData? mandateData}); @override $LastSetupErrorCopyWith<$Res>? get lastSetupError; @override $NextActionCopyWith<$Res>? get nextAction; + @override + $MandateDataCopyWith<$Res>? get mandateData; } /// @nodoc @@ -233,6 +258,7 @@ class __$$_SetupIntentCopyWithImpl<$Res> Object? created = freezed, Object? lastSetupError = freezed, Object? nextAction = freezed, + Object? mandateData = freezed, }) { return _then(_$_SetupIntent( id: null == id @@ -279,6 +305,10 @@ class __$$_SetupIntentCopyWithImpl<$Res> ? _value.nextAction : nextAction // ignore: cast_nullable_to_non_nullable as NextAction?, + mandateData: freezed == mandateData + ? _value.mandateData + : mandateData // ignore: cast_nullable_to_non_nullable + as MandateData?, )); } } @@ -298,7 +328,8 @@ class _$_SetupIntent implements _SetupIntent { this.description, this.created, this.lastSetupError, - this.nextAction}) + this.nextAction, + this.mandateData}) : _paymentMethodTypes = paymentMethodTypes; factory _$_SetupIntent.fromJson(Map json) => @@ -359,9 +390,13 @@ class _$_SetupIntent implements _SetupIntent { @override final NextAction? nextAction; + /// Mandata data for this paymentintent. + @override + final MandateData? mandateData; + @override String toString() { - return 'SetupIntent(id: $id, status: $status, livemode: $livemode, clientSecret: $clientSecret, paymentMethodId: $paymentMethodId, usage: $usage, paymentMethodTypes: $paymentMethodTypes, description: $description, created: $created, lastSetupError: $lastSetupError, nextAction: $nextAction)'; + return 'SetupIntent(id: $id, status: $status, livemode: $livemode, clientSecret: $clientSecret, paymentMethodId: $paymentMethodId, usage: $usage, paymentMethodTypes: $paymentMethodTypes, description: $description, created: $created, lastSetupError: $lastSetupError, nextAction: $nextAction, mandateData: $mandateData)'; } @override @@ -386,7 +421,9 @@ class _$_SetupIntent implements _SetupIntent { (identical(other.lastSetupError, lastSetupError) || other.lastSetupError == lastSetupError) && (identical(other.nextAction, nextAction) || - other.nextAction == nextAction)); + other.nextAction == nextAction) && + (identical(other.mandateData, mandateData) || + other.mandateData == mandateData)); } @JsonKey(ignore: true) @@ -403,7 +440,8 @@ class _$_SetupIntent implements _SetupIntent { description, created, lastSetupError, - nextAction); + nextAction, + mandateData); @JsonKey(ignore: true) @override @@ -431,7 +469,8 @@ abstract class _SetupIntent implements SetupIntent { final String? description, final String? created, final LastSetupError? lastSetupError, - final NextAction? nextAction}) = _$_SetupIntent; + final NextAction? nextAction, + final MandateData? mandateData}) = _$_SetupIntent; factory _SetupIntent.fromJson(Map json) = _$_SetupIntent.fromJson; @@ -484,6 +523,10 @@ abstract class _SetupIntent implements SetupIntent { /// using the provided resource. NextAction? get nextAction; @override + + /// Mandata data for this paymentintent. + MandateData? get mandateData; + @override @JsonKey(ignore: true) _$$_SetupIntentCopyWith<_$_SetupIntent> get copyWith => throw _privateConstructorUsedError; diff --git a/packages/stripe_platform_interface/lib/src/models/setup_intent.g.dart b/packages/stripe_platform_interface/lib/src/models/setup_intent.g.dart index 9e00f403c..d05d96b16 100644 --- a/packages/stripe_platform_interface/lib/src/models/setup_intent.g.dart +++ b/packages/stripe_platform_interface/lib/src/models/setup_intent.g.dart @@ -26,6 +26,9 @@ _$_SetupIntent _$$_SetupIntentFromJson(Map json) => nextAction: json['nextAction'] == null ? null : NextAction.fromJson(json['nextAction'] as Map), + mandateData: json['mandateData'] == null + ? null + : MandateData.fromJson(json['mandateData'] as Map), ); Map _$$_SetupIntentToJson(_$_SetupIntent instance) => @@ -43,11 +46,13 @@ Map _$$_SetupIntentToJson(_$_SetupIntent instance) => 'created': instance.created, 'lastSetupError': instance.lastSetupError?.toJson(), 'nextAction': instance.nextAction?.toJson(), + 'mandateData': instance.mandateData?.toJson(), }; const _$PaymentMethodTypeEnumMap = { PaymentMethodType.AfterpayClearpay: 'AfterpayClearpay', PaymentMethodType.Card: 'Card', + PaymentMethodType.CashAppPay: 'CashAppPay', PaymentMethodType.Alipay: 'Alipay', PaymentMethodType.Grabpay: 'Grabpay', PaymentMethodType.Ideal: 'Ideal',