diff --git a/example/android/app/build.gradle b/example/android/app/build.gradle index 305a150cb..a87950487 100644 --- a/example/android/app/build.gradle +++ b/example/android/app/build.gradle @@ -1,3 +1,9 @@ +plugins { + id "com.android.application" + id "kotlin-android" + id "dev.flutter.flutter-gradle-plugin" +} + def localProperties = new Properties() def localPropertiesFile = rootProject.file('local.properties') if (localPropertiesFile.exists()) { @@ -6,11 +12,6 @@ if (localPropertiesFile.exists()) { } } -def flutterRoot = localProperties.getProperty('flutter.sdk') -if (flutterRoot == null) { - throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") -} - def flutterVersionCode = localProperties.getProperty('flutter.versionCode') if (flutterVersionCode == null) { flutterVersionCode = '1' @@ -21,9 +22,7 @@ if (flutterVersionName == null) { flutterVersionName = '1.0' } -apply plugin: 'com.android.application' -apply plugin: 'kotlin-android' -apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" + android { namespace 'com.flutter.stripe.example' @@ -65,7 +64,6 @@ flutter { } dependencies { - implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" implementation 'com.tencent.mm.opensdk:wechat-sdk-android-without-mta:6.7.0' implementation 'com.google.android.gms:play-services-wallet:19.1.0' androidTestImplementation 'androidx.test:runner:1.2.0' diff --git a/example/android/build.gradle b/example/android/build.gradle index 329bcf480..bc157bd1a 100644 --- a/example/android/build.gradle +++ b/example/android/build.gradle @@ -1,16 +1,3 @@ -buildscript { - ext.kotlin_version = '1.8.10' - repositories { - google() - mavenCentral() - } - - dependencies { - classpath 'com.android.tools.build:gradle:8.1.3' - classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" - } -} - allprojects { repositories { google() diff --git a/example/android/gradle/wrapper/gradle-wrapper.properties b/example/android/gradle/wrapper/gradle-wrapper.properties index 79cf8cdfe..dc8c5b1bf 100644 --- a/example/android/gradle/wrapper/gradle-wrapper.properties +++ b/example/android/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ #Mon Nov 13 19:26:48 WET 2023 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists diff --git a/example/android/settings.gradle b/example/android/settings.gradle index 44e62bcf0..8e11cefd8 100644 --- a/example/android/settings.gradle +++ b/example/android/settings.gradle @@ -1,11 +1,25 @@ -include ':app' +pluginManagement { + def flutterSdkPath = { + def properties = new Properties() + file("local.properties").withInputStream { properties.load(it) } + def flutterSdkPath = properties.getProperty("flutter.sdk") + assert flutterSdkPath != null, "flutter.sdk not set in local.properties" + return flutterSdkPath + }() -def localPropertiesFile = new File(rootProject.projectDir, "local.properties") -def properties = new Properties() + includeBuild("$flutterSdkPath/packages/flutter_tools/gradle") -assert localPropertiesFile.exists() -localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) } + repositories { + google() + mavenCentral() + gradlePluginPortal() + } +} -def flutterSdkPath = properties.getProperty("flutter.sdk") -assert flutterSdkPath != null, "flutter.sdk not set in local.properties" -apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle" +plugins { + id "dev.flutter.flutter-plugin-loader" version "1.0.0" + id "com.android.application" version "8.5.1" apply false + id "org.jetbrains.kotlin.android" version "1.8.10" apply false +} + +include ":app" \ No newline at end of file diff --git a/example/pubspec.yaml b/example/pubspec.yaml index 7367d849c..e858ef581 100644 --- a/example/pubspec.yaml +++ b/example/pubspec.yaml @@ -12,11 +12,11 @@ dependencies: sdk: flutter flutter_stripe: ^10.2.0 flutter_stripe_web: ^5.1.0 - pay: ^1.1.0 + pay: ^2.0.0 http: ^1.1.0 font_awesome_flutter: ^10.6.0 platform: ^3.0.0 - web: ^0.5.1 + web: ^1.0.0 dev_dependencies: integration_test: diff --git a/packages/stripe/lib/src/stripe.dart b/packages/stripe/lib/src/stripe.dart index bdbf11b6d..dccdd468c 100644 --- a/packages/stripe/lib/src/stripe.dart +++ b/packages/stripe/lib/src/stripe.dart @@ -141,7 +141,7 @@ class Stripe { return isSupported; } - /// Laucnhes the relevant native wallsheet (Apple Pay on iOS and Google Pay on Android) + /// Launches the relevant native wallsheet (Apple Pay on iOS and Google Pay on Android) /// in order to create a payment intent /// /// Argument [params] is describing the the Apple Pay or Google pay configuration. diff --git a/packages/stripe/lib/src/widgets/apple_pay_button.dart b/packages/stripe/lib/src/widgets/apple_pay_button.dart index 8ad31247b..58535bf5c 100644 --- a/packages/stripe/lib/src/widgets/apple_pay_button.dart +++ b/packages/stripe/lib/src/widgets/apple_pay_button.dart @@ -14,7 +14,7 @@ const double _kApplePayButtonDefaultHeight = 48; class ApplePayButton extends StatelessWidget { ApplePayButton({ - Key? key, + super.key, this.style = PlatformButtonStyle.automatic, this.type = PlatformButtonType.plain, this.cornerRadius = 4, @@ -30,8 +30,7 @@ class ApplePayButton extends StatelessWidget { constraints = (width != null || height != null) ? constraints?.tighten(width: width, height: height) ?? BoxConstraints.tightFor(width: width, height: height) - : constraints, - super(key: key); + : constraints; /// Style of the the apple payment button. /// @@ -113,7 +112,6 @@ class ApplePayButton extends StatelessWidget { class _UiKitApplePayButton extends StatefulWidget { const _UiKitApplePayButton({ - Key? key, required this.style, required this.type, this.cornerRadius = 4, @@ -122,7 +120,7 @@ class _UiKitApplePayButton extends StatefulWidget { this.onCouponCodeEntered, this.onShippingMethodSelected, this.onOrderTracking, - }) : super(key: key); + }); final PlatformButtonStyle style; final PlatformButtonType type; diff --git a/packages/stripe/lib/src/widgets/aubecs_debit_form.dart b/packages/stripe/lib/src/widgets/aubecs_debit_form.dart index dd63df90c..7ce2dce00 100644 --- a/packages/stripe/lib/src/widgets/aubecs_debit_form.dart +++ b/packages/stripe/lib/src/widgets/aubecs_debit_form.dart @@ -11,8 +11,8 @@ class AubecsFormField extends StatelessWidget { this.style, this.companyName, this.controller, - Key? key, - }) : super(key: key); + super.key, + }); @override Widget build(BuildContext context) { @@ -36,8 +36,7 @@ class _AubecsFormField extends StatefulWidget { this.style, this.companyName, this.controller, - Key? key, - }) : super(key: key); + }); @override _AubecsFormFieldState createState() => _AubecsFormFieldState(); diff --git a/packages/stripe/lib/src/widgets/card_field.dart b/packages/stripe/lib/src/widgets/card_field.dart index f599d368c..2fe16c9fd 100644 --- a/packages/stripe/lib/src/widgets/card_field.dart +++ b/packages/stripe/lib/src/widgets/card_field.dart @@ -14,7 +14,7 @@ import 'keep_visible_on_focus.dart'; class CardField extends StatefulWidget { const CardField({ this.onCardChanged, - Key? key, + super.key, this.onFocus, this.decoration, this.enablePostalCode = false, @@ -33,7 +33,7 @@ class CardField extends StatefulWidget { this.preferredNetworks, this.androidPlatformViewRenderType = AndroidPlatformViewRenderType.expensiveAndroidView, - }) : super(key: key); + }); /// Decoration related to the input fields. final InputDecoration? decoration; @@ -282,7 +282,6 @@ class _MethodChannelCardField extends StatefulWidget { this.onCardChanged, required this.controller, required this.androidPlatformViewRenderType, - Key? key, this.onFocus, this.style, this.placeholder, @@ -301,8 +300,7 @@ class _MethodChannelCardField extends StatefulWidget { constraints = (width != null || height != null) ? constraints?.tighten(width: width, height: height) ?? BoxConstraints.tightFor(width: width, height: height) - : constraints, - super(key: key); + : constraints; final BoxConstraints? constraints; final CardFocusCallback? onFocus; @@ -613,12 +611,12 @@ class _MethodChannelCardFieldState extends State<_MethodChannelCardField> class _AndroidCardField extends StatelessWidget { const _AndroidCardField({ - Key? key, required this.viewType, required this.creationParams, required this.onPlatformViewCreated, required this.androidPlatformViewRenderType, - }) : super(key: key); + super.key, + }); final AndroidPlatformViewRenderType androidPlatformViewRenderType; final String viewType; @@ -673,11 +671,11 @@ class _AndroidCardField extends StatelessWidget { class _UiKitCardField extends StatelessWidget { const _UiKitCardField({ - Key? key, required this.viewType, required this.creationParams, required this.onPlatformViewCreated, - }) : super(key: key); + super.key, + }); final String viewType; final Map creationParams; diff --git a/packages/stripe/lib/src/widgets/card_form_field.dart b/packages/stripe/lib/src/widgets/card_form_field.dart index 268485037..2a2fbfa2e 100644 --- a/packages/stripe/lib/src/widgets/card_form_field.dart +++ b/packages/stripe/lib/src/widgets/card_form_field.dart @@ -20,7 +20,6 @@ import 'keep_visible_on_focus.dart'; class CardFormField extends StatefulWidget { const CardFormField({ this.onCardChanged, - Key? key, this.onFocus, this.enablePostalCode = true, this.countryCode, @@ -31,7 +30,8 @@ class CardFormField extends StatefulWidget { this.disabled = false, this.controller, this.preferredNetworks, - }) : super(key: key); + super.key, + }); /// Callback that will be executed when a specific field gets focus. final CardFocusCallback? onFocus; @@ -216,7 +216,6 @@ class _MethodChannelCardFormField extends StatefulWidget { _MethodChannelCardFormField({ this.onCardChanged, required this.controller, - Key? key, this.onFocus, this.style, this.enablePostalCode = true, @@ -234,8 +233,7 @@ class _MethodChannelCardFormField extends StatefulWidget { constraints = (width != null || height != null) ? constraints?.tighten(width: width, height: height) ?? BoxConstraints.tightFor(width: width, height: height) - : constraints, - super(key: key); + : constraints; final BoxConstraints? constraints; final CardFocusCallback? onFocus; @@ -526,11 +524,11 @@ class _MethodChannelCardFormFieldState class _AndroidCardFormField extends StatelessWidget { const _AndroidCardFormField({ - Key? key, required this.viewType, required this.creationParams, required this.onPlatformViewCreated, - }) : super(key: key); + super.key, + }); final String viewType; final Map creationParams; @@ -568,11 +566,11 @@ class _AndroidCardFormField extends StatelessWidget { class _UiKitCardFormField extends StatelessWidget { const _UiKitCardFormField({ - Key? key, required this.viewType, required this.creationParams, required this.onPlatformViewCreated, - }) : super(key: key); + super.key, + }); final String viewType; final Map creationParams; diff --git a/packages/stripe/lib/src/widgets/google_pay_button.dart b/packages/stripe/lib/src/widgets/google_pay_button.dart index 12423fa48..c5970b426 100644 --- a/packages/stripe/lib/src/widgets/google_pay_button.dart +++ b/packages/stripe/lib/src/widgets/google_pay_button.dart @@ -12,8 +12,8 @@ class GooglePayButton extends StatefulWidget { this.buttonType = PlatformButtonType.pay, this.borderRadius, this.appearance = PlatformButtonStyle.automatic, - Key? key, - }) : super(key: key); + super.key, + }); static const _viewType = 'flutter.stripe/google_pay_button'; diff --git a/packages/stripe/lib/src/widgets/keep_visible_on_focus.dart b/packages/stripe/lib/src/widgets/keep_visible_on_focus.dart index 0869a8bb8..91495d6bb 100644 --- a/packages/stripe/lib/src/widgets/keep_visible_on_focus.dart +++ b/packages/stripe/lib/src/widgets/keep_visible_on_focus.dart @@ -3,10 +3,10 @@ import 'package:flutter/widgets.dart'; class KeepVisibleOnFocus extends StatefulWidget { const KeepVisibleOnFocus({ - Key? key, required this.focusNode, required this.child, - }) : super(key: key); + super.key, + }); final FocusNode focusNode; diff --git a/packages/stripe/pubspec.yaml b/packages/stripe/pubspec.yaml index f96dfecf5..f456122cf 100644 --- a/packages/stripe/pubspec.yaml +++ b/packages/stripe/pubspec.yaml @@ -28,4 +28,4 @@ dependencies: dev_dependencies: flutter_test: sdk: flutter - flutter_lints: ^2.0.1 + flutter_lints: ^4.0.0 diff --git a/packages/stripe_android/android/src/main/kotlin/com/flutter/stripe/StripeSdkGooglePayButtonPlatformView.kt b/packages/stripe_android/android/src/main/kotlin/com/flutter/stripe/StripeSdkGooglePayButtonPlatformView.kt index 6ee972944..b8d4c3e39 100644 --- a/packages/stripe_android/android/src/main/kotlin/com/flutter/stripe/StripeSdkGooglePayButtonPlatformView.kt +++ b/packages/stripe_android/android/src/main/kotlin/com/flutter/stripe/StripeSdkGooglePayButtonPlatformView.kt @@ -38,9 +38,6 @@ class StripeSdkGooglePayButtonPlatformView( googlePayButtonManager.borderRadius(payButton, creationParams["borderRadius"] as Int) } payButton.initialize() - payButton.getChildAt(0).setOnClickListener { - channel.invokeMethod("onPressed", null) - } } override fun getView(): View { @@ -53,5 +50,12 @@ class StripeSdkGooglePayButtonPlatformView( override fun onFlutterViewAttached(flutterView: View) { googlePayButtonManager.onAfterUpdateTransaction(payButton) + + // wait until view is attached to the view hierarchy + payButton.post { + (payButton.parent as View).setOnClickListener { + channel.invokeMethod("onPressed", null) + } + }; } } \ No newline at end of file diff --git a/packages/stripe_android/pubspec.yaml b/packages/stripe_android/pubspec.yaml index 520b7eaad..bab1979ff 100644 --- a/packages/stripe_android/pubspec.yaml +++ b/packages/stripe_android/pubspec.yaml @@ -15,7 +15,7 @@ dependencies: dev_dependencies: flutter_test: sdk: flutter - flutter_lints: ^1.0.3 + flutter_lints: ^4.0.0 flutter: plugin: diff --git a/packages/stripe_ios/pubspec.yaml b/packages/stripe_ios/pubspec.yaml index f9b6235e0..ccf22b3d3 100644 --- a/packages/stripe_ios/pubspec.yaml +++ b/packages/stripe_ios/pubspec.yaml @@ -15,7 +15,7 @@ dependencies: dev_dependencies: flutter_test: sdk: flutter - flutter_lints: ^1.0.3 + flutter_lints: ^4.0.0 flutter: plugin: diff --git a/packages/stripe_js/lib/src/js/elements/element_creation_options.dart b/packages/stripe_js/lib/src/js/elements/element_creation_options.dart index 1a1ff6033..ce1debc46 100644 --- a/packages/stripe_js/lib/src/js/elements/element_creation_options.dart +++ b/packages/stripe_js/lib/src/js/elements/element_creation_options.dart @@ -9,12 +9,14 @@ extension type JsElementsCreateOptions._(JSObject o) { String? locale, String? clientSecret, JsElementAppearance? appearance, + String? customerSessionClientSecret, String loader, }); external JSArray fonts; external String locale; external String clientSecret; + external String customerSessionClientSecret; external JsElementAppearance appearance; } diff --git a/packages/stripe_js/pubspec.yaml b/packages/stripe_js/pubspec.yaml index 8a0e35e8c..7434c7a67 100644 --- a/packages/stripe_js/pubspec.yaml +++ b/packages/stripe_js/pubspec.yaml @@ -11,7 +11,7 @@ dependencies: freezed_annotation: ^2.2.0 json_annotation: ^4.8.1 meta: ^1.0.0 - web: ^0.5.1 + web: ^1.0.0 dev_dependencies: build_runner: ^2.3.2 diff --git a/packages/stripe_js/test/src/js/helpers/stripe_element_helper.dart b/packages/stripe_js/test/src/js/helpers/stripe_element_helper.dart index b530ea065..50c35eacf 100644 --- a/packages/stripe_js/test/src/js/helpers/stripe_element_helper.dart +++ b/packages/stripe_js/test/src/js/helpers/stripe_element_helper.dart @@ -26,7 +26,6 @@ extension ElementWaitFor on web.Element { String selectors, { Duration timeout = const Duration(seconds: 2), }) async { - web.console.log(this.innerHTML.toJS); final element = this.querySelector(selectors); if (element != null) { return element; diff --git a/packages/stripe_platform_interface/lib/src/models/ach_params.freezed.dart b/packages/stripe_platform_interface/lib/src/models/ach_params.freezed.dart index 3babcdbda..7fa0f5ef3 100644 --- a/packages/stripe_platform_interface/lib/src/models/ach_params.freezed.dart +++ b/packages/stripe_platform_interface/lib/src/models/ach_params.freezed.dart @@ -12,7 +12,7 @@ part of 'ach_params.dart'; T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); CollectBankAccountParams _$CollectBankAccountParamsFromJson( Map json) { @@ -30,8 +30,12 @@ mixin _$CollectBankAccountParams { /// is supported. PaymentMethodType get paymentMethodType => throw _privateConstructorUsedError; + /// Serializes this CollectBankAccountParams to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of CollectBankAccountParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $CollectBankAccountParamsCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -59,6 +63,8 @@ class _$CollectBankAccountParamsCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of CollectBankAccountParams + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -77,6 +83,8 @@ class _$CollectBankAccountParamsCopyWithImpl<$Res, ) as $Val); } + /// Create a copy of CollectBankAccountParams + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $BillingDetailsCopyWith<$Res> get billingDetails { @@ -112,6 +120,8 @@ class __$$CollectBankAccountParamsImplCopyWithImpl<$Res> $Res Function(_$CollectBankAccountParamsImpl) _then) : super(_value, _then); + /// Create a copy of CollectBankAccountParams + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -160,7 +170,7 @@ class _$CollectBankAccountParamsImpl implements _CollectBankAccountParams { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$CollectBankAccountParamsImpl && @@ -170,12 +180,14 @@ class _$CollectBankAccountParamsImpl implements _CollectBankAccountParams { other.paymentMethodType == paymentMethodType)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, billingDetails, paymentMethodType); - @JsonKey(ignore: true) + /// Create a copy of CollectBankAccountParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$CollectBankAccountParamsImplCopyWith<_$CollectBankAccountParamsImpl> @@ -199,19 +211,21 @@ abstract class _CollectBankAccountParams implements CollectBankAccountParams { factory _CollectBankAccountParams.fromJson(Map json) = _$CollectBankAccountParamsImpl.fromJson; - @override - /// Billingdetails of the account holder /// /// It is required to fill in the name in the billing details - BillingDetails get billingDetails; @override + BillingDetails get billingDetails; /// The paymentmethod type. At this point only method [PaymentMethodType.USBankAccount] /// is supported. + @override PaymentMethodType get paymentMethodType; + + /// Create a copy of CollectBankAccountParams + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$CollectBankAccountParamsImplCopyWith<_$CollectBankAccountParamsImpl> get copyWith => throw _privateConstructorUsedError; } @@ -234,8 +248,12 @@ mixin _$VerifyMicroDepositsParams { /// When Using this field make sure [amounts] is `null`. String? get descriptorCode => throw _privateConstructorUsedError; + /// Serializes this VerifyMicroDepositsParams to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of VerifyMicroDepositsParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $VerifyMicroDepositsParamsCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -260,6 +278,8 @@ class _$VerifyMicroDepositsParamsCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of VerifyMicroDepositsParams + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -301,6 +321,8 @@ class __$$VerifyMicroDepositsParamsImplCopyWithImpl<$Res> $Res Function(_$VerifyMicroDepositsParamsImpl) _then) : super(_value, _then); + /// Create a copy of VerifyMicroDepositsParams + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -362,7 +384,7 @@ class _$VerifyMicroDepositsParamsImpl implements _VerifyMicroDepositsParams { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$VerifyMicroDepositsParamsImpl && @@ -371,12 +393,14 @@ class _$VerifyMicroDepositsParamsImpl implements _VerifyMicroDepositsParams { other.descriptorCode == descriptorCode)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, const DeepCollectionEquality().hash(_amounts), descriptorCode); - @JsonKey(ignore: true) + /// Create a copy of VerifyMicroDepositsParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$VerifyMicroDepositsParamsImplCopyWith<_$VerifyMicroDepositsParamsImpl> @@ -399,21 +423,23 @@ abstract class _VerifyMicroDepositsParams implements VerifyMicroDepositsParams { factory _VerifyMicroDepositsParams.fromJson(Map json) = _$VerifyMicroDepositsParamsImpl.fromJson; - @override - /// The amounts of the microdeposits that are deposited on the account. /// /// Make sure that the amount is exactly 2. When using this field make sure /// [descriptorCode] is `null`. - List? get amounts; @override + List? get amounts; /// The descriptor code that is part of the microdepot to the customer bank account. /// /// When Using this field make sure [amounts] is `null`. + @override String? get descriptorCode; + + /// Create a copy of VerifyMicroDepositsParams + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$VerifyMicroDepositsParamsImplCopyWith<_$VerifyMicroDepositsParamsImpl> get copyWith => throw _privateConstructorUsedError; } 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 8cfbfc56b..35edc1990 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 @@ -52,8 +52,9 @@ const _$PaymentMethodTypeEnumMap = { _$VerifyMicroDepositsParamsImpl _$$VerifyMicroDepositsParamsImplFromJson( Map json) => _$VerifyMicroDepositsParamsImpl( - amounts: - (json['amounts'] as List?)?.map((e) => e as int).toList(), + amounts: (json['amounts'] as List?) + ?.map((e) => (e as num).toInt()) + .toList(), descriptorCode: json['descriptorCode'] as String?, ); diff --git a/packages/stripe_platform_interface/lib/src/models/address.freezed.dart b/packages/stripe_platform_interface/lib/src/models/address.freezed.dart index 0c9335b92..d59839b71 100644 --- a/packages/stripe_platform_interface/lib/src/models/address.freezed.dart +++ b/packages/stripe_platform_interface/lib/src/models/address.freezed.dart @@ -12,7 +12,7 @@ part of 'address.dart'; T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); AddressDetails _$AddressDetailsFromJson(Map json) { return _AddressDetails.fromJson(json); @@ -29,8 +29,12 @@ mixin _$AddressDetails { /// the customer's phonumber String? get phoneNumber => throw _privateConstructorUsedError; + /// Serializes this AddressDetails to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of AddressDetails + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $AddressDetailsCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -56,6 +60,8 @@ class _$AddressDetailsCopyWithImpl<$Res, $Val extends AddressDetails> // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of AddressDetails + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -79,6 +85,8 @@ class _$AddressDetailsCopyWithImpl<$Res, $Val extends AddressDetails> ) as $Val); } + /// Create a copy of AddressDetails + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $AddressCopyWith<$Res>? get address { @@ -114,6 +122,8 @@ class __$$AddressDetailsImplCopyWithImpl<$Res> _$AddressDetailsImpl _value, $Res Function(_$AddressDetailsImpl) _then) : super(_value, _then); + /// Create a copy of AddressDetails + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -165,7 +175,7 @@ class _$AddressDetailsImpl implements _AddressDetails { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$AddressDetailsImpl && @@ -175,11 +185,13 @@ class _$AddressDetailsImpl implements _AddressDetails { other.phoneNumber == phoneNumber)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, name, address, phoneNumber); - @JsonKey(ignore: true) + /// Create a copy of AddressDetails + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$AddressDetailsImplCopyWith<_$AddressDetailsImpl> get copyWith => @@ -203,20 +215,22 @@ abstract class _AddressDetails implements AddressDetails { factory _AddressDetails.fromJson(Map json) = _$AddressDetailsImpl.fromJson; - @override - /// The customer's full name - String? get name; @override + String? get name; /// The customer's address - Address? get address; @override + Address? get address; /// the customer's phonumber + @override String? get phoneNumber; + + /// Create a copy of AddressDetails + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$AddressDetailsImplCopyWith<_$AddressDetailsImpl> get copyWith => throw _privateConstructorUsedError; } @@ -245,8 +259,12 @@ mixin _$Address { /// State or province. String? get state => throw _privateConstructorUsedError; + /// Serializes this Address to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of Address + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $AddressCopyWith
get copyWith => throw _privateConstructorUsedError; } @@ -274,6 +292,8 @@ class _$AddressCopyWithImpl<$Res, $Val extends Address> // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of Address + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -337,6 +357,8 @@ class __$$AddressImplCopyWithImpl<$Res> _$AddressImpl _value, $Res Function(_$AddressImpl) _then) : super(_value, _then); + /// Create a copy of Address + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -422,7 +444,7 @@ class _$AddressImpl extends _Address { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$AddressImpl && @@ -435,12 +457,14 @@ class _$AddressImpl extends _Address { (identical(other.state, state) || other.state == state)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, city, country, line1, line2, postalCode, state); - @JsonKey(ignore: true) + /// Create a copy of Address + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$AddressImplCopyWith<_$AddressImpl> get copyWith => @@ -466,32 +490,34 @@ abstract class _Address extends Address { factory _Address.fromJson(Map json) = _$AddressImpl.fromJson; - @override - /// City, town or district. - String? get city; @override + String? get city; /// Country - String? get country; @override + String? get country; /// Address line1 (e.g. Street, C/O , PO Box). - String? get line1; @override + String? get line1; /// Address line2 (e.g. building, appartment or unit). - String? get line2; @override + String? get line2; /// ZIP or postal code. - String? get postalCode; @override + String? get postalCode; /// State or province. + @override String? get state; + + /// Create a copy of Address + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$AddressImplCopyWith<_$AddressImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_platform_interface/lib/src/models/app_info.freezed.dart b/packages/stripe_platform_interface/lib/src/models/app_info.freezed.dart index 0cb98869c..f13628500 100644 --- a/packages/stripe_platform_interface/lib/src/models/app_info.freezed.dart +++ b/packages/stripe_platform_interface/lib/src/models/app_info.freezed.dart @@ -12,7 +12,7 @@ part of 'app_info.dart'; T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); AppInfo _$AppInfoFromJson(Map json) { return _AppInfo.fromJson(json); @@ -25,8 +25,12 @@ mixin _$AppInfo { String? get url => throw _privateConstructorUsedError; String? get version => throw _privateConstructorUsedError; + /// Serializes this AppInfo to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of AppInfo + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $AppInfoCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -48,6 +52,8 @@ class _$AppInfoCopyWithImpl<$Res, $Val extends AppInfo> // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of AppInfo + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -95,6 +101,8 @@ class __$$AppInfoImplCopyWithImpl<$Res> _$AppInfoImpl _value, $Res Function(_$AppInfoImpl) _then) : super(_value, _then); + /// Create a copy of AppInfo + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -148,7 +156,7 @@ class _$AppInfoImpl implements _AppInfo { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$AppInfoImpl && @@ -159,11 +167,13 @@ class _$AppInfoImpl implements _AppInfo { (identical(other.version, version) || other.version == version)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, name, partnerId, url, version); - @JsonKey(ignore: true) + /// Create a copy of AppInfo + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$AppInfoImplCopyWith<_$AppInfoImpl> get copyWith => @@ -194,8 +204,11 @@ abstract class _AppInfo implements AppInfo { String? get url; @override String? get version; + + /// Create a copy of AppInfo + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$AppInfoImplCopyWith<_$AppInfoImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_platform_interface/lib/src/models/apple_pay.freezed.dart b/packages/stripe_platform_interface/lib/src/models/apple_pay.freezed.dart index f3d2b5216..5e62ae052 100644 --- a/packages/stripe_platform_interface/lib/src/models/apple_pay.freezed.dart +++ b/packages/stripe_platform_interface/lib/src/models/apple_pay.freezed.dart @@ -12,7 +12,7 @@ part of 'apple_pay.dart'; T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); ApplePayShippingMethod _$ApplePayShippingMethodFromJson( Map json) { @@ -50,8 +50,12 @@ mixin _$ApplePayShippingMethod { /// Measured in seconds. int? get endDate => throw _privateConstructorUsedError; + /// Serializes this ApplePayShippingMethod to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of ApplePayShippingMethod + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $ApplePayShippingMethodCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -83,6 +87,8 @@ class _$ApplePayShippingMethodCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of ApplePayShippingMethod + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -156,6 +162,8 @@ class __$$ApplePayShippingMethodImplCopyWithImpl<$Res> $Res Function(_$ApplePayShippingMethodImpl) _then) : super(_value, _then); + /// Create a copy of ApplePayShippingMethod + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -258,7 +266,7 @@ class _$ApplePayShippingMethodImpl implements _ApplePayShippingMethod { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$ApplePayShippingMethodImpl && @@ -274,12 +282,14 @@ class _$ApplePayShippingMethodImpl implements _ApplePayShippingMethod { (identical(other.endDate, endDate) || other.endDate == endDate)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, label, amount, identifier, isPending, detail, startDate, endDate); - @JsonKey(ignore: true) + /// Create a copy of ApplePayShippingMethod + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$ApplePayShippingMethodImplCopyWith<_$ApplePayShippingMethodImpl> @@ -307,44 +317,46 @@ abstract class _ApplePayShippingMethod implements ApplePayShippingMethod { factory _ApplePayShippingMethod.fromJson(Map json) = _$ApplePayShippingMethodImpl.fromJson; - @override - /// A short, localized description. - String get label; @override + String get label; /// The cost associated with this shipping option. - String get amount; @override + String get amount; /// A unique identifier for the shipping method. - String get identifier; @override + String get identifier; /// When creating items for estimates or charges whose final value is not yet known, set this to true. /// /// Defaults to false. - bool? get isPending; @override + bool? get isPending; /// A user-readable description of the shipping method. /// /// For example “Ships in 24 hours.” Don't repeat content - String? get detail; @override + String? get detail; /// The unix timestamp of the start date of the expected range of delivery or shipping dates for a package, or the time range when an item is available for pickup. /// /// Measured in seconds - int? get startDate; @override + int? get startDate; /// The unix timestamp of the end date of the expected range of delivery or shipping dates for a package, or the time range when an item is available for pickup. /// /// Measured in seconds. + @override int? get endDate; + + /// Create a copy of ApplePayShippingMethod + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$ApplePayShippingMethodImplCopyWith<_$ApplePayShippingMethodImpl> get copyWith => throw _privateConstructorUsedError; } @@ -442,8 +454,13 @@ mixin _$ApplePayCartSummaryItem { required TResult orElse(), }) => throw _privateConstructorUsedError; + + /// Serializes this ApplePayCartSummaryItem to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of ApplePayCartSummaryItem + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $ApplePayCartSummaryItemCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -468,6 +485,8 @@ class _$ApplePayCartSummaryItemCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of ApplePayCartSummaryItem + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -509,6 +528,8 @@ class __$$ImmediateCartSummaryItemImplCopyWithImpl<$Res> $Res Function(_$ImmediateCartSummaryItemImpl) _then) : super(_value, _then); + /// Create a copy of ApplePayCartSummaryItem + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -568,7 +589,7 @@ class _$ImmediateCartSummaryItemImpl implements ImmediateCartSummaryItem { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$ImmediateCartSummaryItemImpl && @@ -578,11 +599,13 @@ class _$ImmediateCartSummaryItemImpl implements ImmediateCartSummaryItem { other.isPending == isPending)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, label, amount, isPending); - @JsonKey(ignore: true) + /// Create a copy of ApplePayCartSummaryItem + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$ImmediateCartSummaryItemImplCopyWith<_$ImmediateCartSummaryItemImpl> @@ -697,19 +720,21 @@ abstract class ImmediateCartSummaryItem implements ApplePayCartSummaryItem { factory ImmediateCartSummaryItem.fromJson(Map json) = _$ImmediateCartSummaryItemImpl.fromJson; - @override - /// Short localized description of the item. - String get label; @override + String get label; /// The monetary amount. + @override String get amount; /// When creating items for estimates or charges whose final value is not yet known, set this to true. bool? get isPending; + + /// Create a copy of ApplePayCartSummaryItem + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$ImmediateCartSummaryItemImplCopyWith<_$ImmediateCartSummaryItemImpl> get copyWith => throw _privateConstructorUsedError; } @@ -734,6 +759,8 @@ class __$$DeferredSummaryItemImplCopyWithImpl<$Res> $Res Function(_$DeferredSummaryItemImpl) _then) : super(_value, _then); + /// Create a copy of ApplePayCartSummaryItem + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -793,7 +820,7 @@ class _$DeferredSummaryItemImpl implements DeferredSummaryItem { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$DeferredSummaryItemImpl && @@ -803,11 +830,13 @@ class _$DeferredSummaryItemImpl implements DeferredSummaryItem { other.deferredDate == deferredDate)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, label, amount, deferredDate); - @JsonKey(ignore: true) + /// Create a copy of ApplePayCartSummaryItem + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$DeferredSummaryItemImplCopyWith<_$DeferredSummaryItemImpl> get copyWith => @@ -922,19 +951,21 @@ abstract class DeferredSummaryItem implements ApplePayCartSummaryItem { factory DeferredSummaryItem.fromJson(Map json) = _$DeferredSummaryItemImpl.fromJson; - @override - /// Short localized description of the item. - String get label; @override + String get label; /// The monetary amount. + @override String get amount; /// The unix timestamp of the date, in the future, of the payment. Measured in seconds. int get deferredDate; + + /// Create a copy of ApplePayCartSummaryItem + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$DeferredSummaryItemImplCopyWith<_$DeferredSummaryItemImpl> get copyWith => throw _privateConstructorUsedError; } @@ -967,6 +998,8 @@ class __$$RecurringCartSummaryItemImplCopyWithImpl<$Res> $Res Function(_$RecurringCartSummaryItemImpl) _then) : super(_value, _then); + /// Create a copy of ApplePayCartSummaryItem + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1055,7 +1088,7 @@ class _$RecurringCartSummaryItemImpl implements RecurringCartSummaryItem { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$RecurringCartSummaryItemImpl && @@ -1070,12 +1103,14 @@ class _$RecurringCartSummaryItemImpl implements RecurringCartSummaryItem { (identical(other.endDate, endDate) || other.endDate == endDate)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, label, amount, intervalUnit, intervalCount, startDate, endDate); - @JsonKey(ignore: true) + /// Create a copy of ApplePayCartSummaryItem + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$RecurringCartSummaryItemImplCopyWith<_$RecurringCartSummaryItemImpl> @@ -1196,13 +1231,12 @@ abstract class RecurringCartSummaryItem implements ApplePayCartSummaryItem { factory RecurringCartSummaryItem.fromJson(Map json) = _$RecurringCartSummaryItemImpl.fromJson; - @override - /// Short localized description of the item. - String get label; @override + String get label; /// The monetary amount. + @override String get amount; /// The amount of time – in calendar units such as day, month, or year – that represents a fraction of the total payment interval. For example, if you set the intervalUnit to 'month' and intervalCount to 3, then the payment interval is three months. @@ -1215,8 +1249,11 @@ abstract class RecurringCartSummaryItem implements ApplePayCartSummaryItem { int? get startDate; ////The unix timestamp of the end date. Measured in seconds. */ int? get endDate; + + /// Create a copy of ApplePayCartSummaryItem + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$RecurringCartSummaryItemImplCopyWith<_$RecurringCartSummaryItemImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1255,8 +1292,12 @@ mixin _$ApplePayPresentParams { /// Add support for jcb as additional payment method. bool get jcbEnabled => throw _privateConstructorUsedError; + /// Serializes this ApplePayPresentParams to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of ApplePayPresentParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $ApplePayPresentParamsCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -1288,6 +1329,8 @@ class _$ApplePayPresentParamsCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of ApplePayPresentParams + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1360,6 +1403,8 @@ class __$$ApplePayPresentParamsImplCopyWithImpl<$Res> $Res Function(_$ApplePayPresentParamsImpl) _then) : super(_value, _then); + /// Create a copy of ApplePayPresentParams + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1499,7 +1544,7 @@ class _$ApplePayPresentParamsImpl implements _ApplePayPresentParams { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$ApplePayPresentParamsImpl && @@ -1520,7 +1565,7 @@ class _$ApplePayPresentParamsImpl implements _ApplePayPresentParams { other.jcbEnabled == jcbEnabled)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash( runtimeType, @@ -1532,7 +1577,9 @@ class _$ApplePayPresentParamsImpl implements _ApplePayPresentParams { const DeepCollectionEquality().hash(_shippingMethods), jcbEnabled); - @JsonKey(ignore: true) + /// Create a copy of ApplePayPresentParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$ApplePayPresentParamsImplCopyWith<_$ApplePayPresentParamsImpl> @@ -1560,38 +1607,40 @@ abstract class _ApplePayPresentParams implements ApplePayPresentParams { factory _ApplePayPresentParams.fromJson(Map json) = _$ApplePayPresentParamsImpl.fromJson; - @override - /// Line Items of the payment request. - List get cartItems; @override + List get cartItems; /// The two letter ISO 3166 country code representing the merchant. - String get country; @override + String get country; /// The three letter ISO 4217 code for the currency. - String get currency; @override + String get currency; /// Fields that will be shown on the required shipping address section. If /// empty no fields will be displayed. - List? get requiredShippingAddressFields; @override + List? get requiredShippingAddressFields; /// Fields that will be shown on the required billing address section. If /// empty no fields will be displayed. - List? get requiredBillingContactFields; @override + List? get requiredBillingContactFields; /// List of available shipping methods for goods. - List? get shippingMethods; @override + List? get shippingMethods; /// Add support for jcb as additional payment method. + @override bool get jcbEnabled; + + /// Create a copy of ApplePayPresentParams + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$ApplePayPresentParamsImplCopyWith<_$ApplePayPresentParamsImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1611,8 +1660,12 @@ mixin _$ApplePayErrorAddressField { /// Defaults to error in the stripe sdk. String? get message => throw _privateConstructorUsedError; + /// Serializes this ApplePayErrorAddressField to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of ApplePayErrorAddressField + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $ApplePayErrorAddressFieldCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -1637,6 +1690,8 @@ class _$ApplePayErrorAddressFieldCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of ApplePayErrorAddressField + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1678,6 +1733,8 @@ class __$$ApplePayErrorAddressFieldImplCopyWithImpl<$Res> $Res Function(_$ApplePayErrorAddressFieldImpl) _then) : super(_value, _then); + /// Create a copy of ApplePayErrorAddressField + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1722,7 +1779,7 @@ class _$ApplePayErrorAddressFieldImpl implements _ApplePayErrorAddressField { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$ApplePayErrorAddressFieldImpl && @@ -1730,11 +1787,13 @@ class _$ApplePayErrorAddressFieldImpl implements _ApplePayErrorAddressField { (identical(other.message, message) || other.message == message)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, field, message); - @JsonKey(ignore: true) + /// Create a copy of ApplePayErrorAddressField + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$ApplePayErrorAddressFieldImplCopyWith<_$ApplePayErrorAddressFieldImpl> @@ -1757,18 +1816,20 @@ abstract class _ApplePayErrorAddressField implements ApplePayErrorAddressField { factory _ApplePayErrorAddressField.fromJson(Map json) = _$ApplePayErrorAddressFieldImpl.fromJson; - @override - /// Address field that is affected by the error - ApplePayContactFieldsType get field; @override + ApplePayContactFieldsType get field; /// The error message that will be shown when it is invalid /// /// Defaults to error in the stripe sdk. + @override String? get message; + + /// Create a copy of ApplePayErrorAddressField + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$ApplePayErrorAddressFieldImplCopyWith<_$ApplePayErrorAddressFieldImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1786,8 +1847,12 @@ mixin _$ApplePayContactName { String? get middleName => throw _privateConstructorUsedError; String? get nickname => throw _privateConstructorUsedError; + /// Serializes this ApplePayContactName to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of ApplePayContactName + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $ApplePayContactNameCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -1817,6 +1882,8 @@ class _$ApplePayContactNameCopyWithImpl<$Res, $Val extends ApplePayContactName> // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of ApplePayContactName + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1881,6 +1948,8 @@ class __$$ApplePayContactNameImplCopyWithImpl<$Res> $Res Function(_$ApplePayContactNameImpl) _then) : super(_value, _then); + /// Create a copy of ApplePayContactName + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1954,7 +2023,7 @@ class _$ApplePayContactNameImpl implements _ApplePayContactName { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$ApplePayContactNameImpl && @@ -1972,12 +2041,14 @@ class _$ApplePayContactNameImpl implements _ApplePayContactName { other.nickname == nickname)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, familyName, namePrefix, nameSuffix, givenName, middleName, nickname); - @JsonKey(ignore: true) + /// Create a copy of ApplePayContactName + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$ApplePayContactNameImplCopyWith<_$ApplePayContactNameImpl> get copyWith => @@ -2016,8 +2087,11 @@ abstract class _ApplePayContactName implements ApplePayContactName { String? get middleName; @override String? get nickname; + + /// Create a copy of ApplePayContactName + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$ApplePayContactNameImplCopyWith<_$ApplePayContactNameImpl> get copyWith => throw _privateConstructorUsedError; } @@ -2038,8 +2112,12 @@ mixin _$ApplePayPostalAddress { String? get subAdministrativeArea => throw _privateConstructorUsedError; String? get subLocality => throw _privateConstructorUsedError; + /// Serializes this ApplePayPostalAddress to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of ApplePayPostalAddress + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $ApplePayPostalAddressCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -2072,6 +2150,8 @@ class _$ApplePayPostalAddressCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of ApplePayPostalAddress + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -2150,6 +2230,8 @@ class __$$ApplePayPostalAddressImplCopyWithImpl<$Res> $Res Function(_$ApplePayPostalAddressImpl) _then) : super(_value, _then); + /// Create a copy of ApplePayPostalAddress + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -2239,7 +2321,7 @@ class _$ApplePayPostalAddressImpl implements _ApplePayPostalAddress { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$ApplePayPostalAddressImpl && @@ -2257,12 +2339,14 @@ class _$ApplePayPostalAddressImpl implements _ApplePayPostalAddress { other.subLocality == subLocality)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, city, country, postalCode, state, street, isoCountryCode, subAdministrativeArea, subLocality); - @JsonKey(ignore: true) + /// Create a copy of ApplePayPostalAddress + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$ApplePayPostalAddressImplCopyWith<_$ApplePayPostalAddressImpl> @@ -2307,8 +2391,11 @@ abstract class _ApplePayPostalAddress implements ApplePayPostalAddress { String? get subAdministrativeArea; @override String? get subLocality; + + /// Create a copy of ApplePayPostalAddress + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$ApplePayPostalAddressImplCopyWith<_$ApplePayPostalAddressImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_platform_interface/lib/src/models/apple_pay.g.dart b/packages/stripe_platform_interface/lib/src/models/apple_pay.g.dart index 41286d110..2c9f8dbce 100644 --- a/packages/stripe_platform_interface/lib/src/models/apple_pay.g.dart +++ b/packages/stripe_platform_interface/lib/src/models/apple_pay.g.dart @@ -14,8 +14,8 @@ _$ApplePayShippingMethodImpl _$$ApplePayShippingMethodImplFromJson( identifier: json['identifier'] as String, isPending: json['isPending'] as bool?, detail: json['detail'] as String?, - startDate: json['startDate'] as int?, - endDate: json['endDate'] as int?, + startDate: (json['startDate'] as num?)?.toInt(), + endDate: (json['endDate'] as num?)?.toInt(), ); Map _$$ApplePayShippingMethodImplToJson( @@ -53,7 +53,7 @@ _$DeferredSummaryItemImpl _$$DeferredSummaryItemImplFromJson( _$DeferredSummaryItemImpl( label: json['label'] as String, amount: json['amount'] as String, - deferredDate: json['deferredDate'] as int, + deferredDate: (json['deferredDate'] as num).toInt(), $type: json['paymentType'] as String?, ); @@ -73,9 +73,9 @@ _$RecurringCartSummaryItemImpl _$$RecurringCartSummaryItemImplFromJson( amount: json['amount'] as String, intervalUnit: $enumDecode(_$ApplePayIntervalUnitEnumMap, json['intervalUnit']), - intervalCount: json['intervalCount'] as int, - startDate: json['startDate'] as int?, - endDate: json['endDate'] as int?, + intervalCount: (json['intervalCount'] as num).toInt(), + startDate: (json['startDate'] as num?)?.toInt(), + endDate: (json['endDate'] as num?)?.toInt(), $type: json['paymentType'] as String?, ); diff --git a/packages/stripe_platform_interface/lib/src/models/aubecs_form.freezed.dart b/packages/stripe_platform_interface/lib/src/models/aubecs_form.freezed.dart index 969b08698..61f55ca90 100644 --- a/packages/stripe_platform_interface/lib/src/models/aubecs_form.freezed.dart +++ b/packages/stripe_platform_interface/lib/src/models/aubecs_form.freezed.dart @@ -12,7 +12,7 @@ part of 'aubecs_form.dart'; T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); AubecsFormStyle _$AubecsFormStyleFromJson(Map json) { return _AubecsFormStyle.fromJson(json); @@ -42,8 +42,12 @@ mixin _$AubecsFormStyle { /// Only available for Android int? get borderRadius => throw _privateConstructorUsedError; + /// Serializes this AubecsFormStyle to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of AubecsFormStyle + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $AubecsFormStyleCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -80,6 +84,8 @@ class _$AubecsFormStyleCopyWithImpl<$Res, $Val extends AubecsFormStyle> // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of AubecsFormStyle + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -161,6 +167,8 @@ class __$$AubecsFormStyleImplCopyWithImpl<$Res> _$AubecsFormStyleImpl _value, $Res Function(_$AubecsFormStyleImpl) _then) : super(_value, _then); + /// Create a copy of AubecsFormStyle + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -268,7 +276,7 @@ class _$AubecsFormStyleImpl implements _AubecsFormStyle { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$AubecsFormStyleImpl && @@ -290,7 +298,7 @@ class _$AubecsFormStyleImpl implements _AubecsFormStyle { other.borderRadius == borderRadius)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash( runtimeType, @@ -303,7 +311,9 @@ class _$AubecsFormStyleImpl implements _AubecsFormStyle { borderColor, borderRadius); - @JsonKey(ignore: true) + /// Create a copy of AubecsFormStyle + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$AubecsFormStyleImplCopyWith<_$AubecsFormStyleImpl> get copyWith => @@ -346,14 +356,14 @@ abstract class _AubecsFormStyle implements AubecsFormStyle { @override @JsonKey(toJson: ColorKey.toJson, fromJson: ColorKey.fromJson) Color? get placeholderColor; - @override /// Size of the font in the input form. - int? get fontSize; @override + int? get fontSize; /// Borderwith of the form /// Only available for Android + @override int? get borderWidth; @override @JsonKey(toJson: ColorKey.toJson, fromJson: ColorKey.fromJson) @@ -361,13 +371,16 @@ abstract class _AubecsFormStyle implements AubecsFormStyle { @override @JsonKey(toJson: ColorKey.toJson, fromJson: ColorKey.fromJson) Color? get borderColor; - @override /// Borderadius of the form /// Only available for Android + @override int? get borderRadius; + + /// Create a copy of AubecsFormStyle + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$AubecsFormStyleImplCopyWith<_$AubecsFormStyleImpl> get copyWith => throw _privateConstructorUsedError; } @@ -391,8 +404,12 @@ mixin _$AubecsFormInputDetails { /// Email of the accountholder. String? get email => throw _privateConstructorUsedError; + /// Serializes this AubecsFormInputDetails to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of AubecsFormInputDetails + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $AubecsFormInputDetailsCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -418,6 +435,8 @@ class _$AubecsFormInputDetailsCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of AubecsFormInputDetails + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -470,6 +489,8 @@ class __$$AubecsFormInputDetailsImplCopyWithImpl<$Res> $Res Function(_$AubecsFormInputDetailsImpl) _then) : super(_value, _then); + /// Create a copy of AubecsFormInputDetails + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -531,7 +552,7 @@ class _$AubecsFormInputDetailsImpl implements _AubecsFormInputDetails { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$AubecsFormInputDetailsImpl && @@ -543,12 +564,14 @@ class _$AubecsFormInputDetailsImpl implements _AubecsFormInputDetails { (identical(other.email, email) || other.email == email)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, bsbNumber, name, accountNumber, email); - @JsonKey(ignore: true) + /// Create a copy of AubecsFormInputDetails + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$AubecsFormInputDetailsImplCopyWith<_$AubecsFormInputDetailsImpl> @@ -573,24 +596,26 @@ abstract class _AubecsFormInputDetails implements AubecsFormInputDetails { factory _AubecsFormInputDetails.fromJson(Map json) = _$AubecsFormInputDetailsImpl.fromJson; - @override - /// Six digit identifier to identify the branch of an financial institution. - String? get bsbNumber; @override + String? get bsbNumber; /// The name of the accountholder. - String? get name; @override + String? get name; /// The account number. - String? get accountNumber; @override + String? get accountNumber; /// Email of the accountholder. + @override String? get email; + + /// Create a copy of AubecsFormInputDetails + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$AubecsFormInputDetailsImplCopyWith<_$AubecsFormInputDetailsImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_platform_interface/lib/src/models/aubecs_form.g.dart b/packages/stripe_platform_interface/lib/src/models/aubecs_form.g.dart index b470bb27c..581f39b9d 100644 --- a/packages/stripe_platform_interface/lib/src/models/aubecs_form.g.dart +++ b/packages/stripe_platform_interface/lib/src/models/aubecs_form.g.dart @@ -12,11 +12,11 @@ _$AubecsFormStyleImpl _$$AubecsFormStyleImplFromJson( textColor: ColorKey.fromJson(json['textColor']), textErrorColor: ColorKey.fromJson(json['textErrorColor']), placeholderColor: ColorKey.fromJson(json['placeholderColor']), - fontSize: json['fontSize'] as int?, - borderWidth: json['borderWidth'] as int?, + fontSize: (json['fontSize'] as num?)?.toInt(), + borderWidth: (json['borderWidth'] as num?)?.toInt(), backgroundColor: ColorKey.fromJson(json['backgroundColor']), borderColor: ColorKey.fromJson(json['borderColor']), - borderRadius: json['borderRadius'] as int?, + borderRadius: (json['borderRadius'] as num?)?.toInt(), ); Map _$$AubecsFormStyleImplToJson( diff --git a/packages/stripe_platform_interface/lib/src/models/card_details.freezed.dart b/packages/stripe_platform_interface/lib/src/models/card_details.freezed.dart index 018369ee6..7d8951b5c 100644 --- a/packages/stripe_platform_interface/lib/src/models/card_details.freezed.dart +++ b/packages/stripe_platform_interface/lib/src/models/card_details.freezed.dart @@ -12,7 +12,7 @@ part of 'card_details.dart'; T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); CardDetails _$CardDetailsFromJson(Map json) { return _CardDetailsConstructor.fromJson(json); @@ -25,8 +25,12 @@ mixin _$CardDetails { int? get expirationMonth => throw _privateConstructorUsedError; String? get cvc => throw _privateConstructorUsedError; + /// Serializes this CardDetails to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of CardDetails + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $CardDetailsCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -51,6 +55,8 @@ class _$CardDetailsCopyWithImpl<$Res, $Val extends CardDetails> // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of CardDetails + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -102,6 +108,8 @@ class __$$CardDetailsConstructorImplCopyWithImpl<$Res> $Res Function(_$CardDetailsConstructorImpl) _then) : super(_value, _then); + /// Create a copy of CardDetails + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -157,7 +165,7 @@ class _$CardDetailsConstructorImpl extends _CardDetailsConstructor { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$CardDetailsConstructorImpl && @@ -169,12 +177,14 @@ class _$CardDetailsConstructorImpl extends _CardDetailsConstructor { (identical(other.cvc, cvc) || other.cvc == cvc)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, number, expirationYear, expirationMonth, cvc); - @JsonKey(ignore: true) + /// Create a copy of CardDetails + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$CardDetailsConstructorImplCopyWith<_$CardDetailsConstructorImpl> @@ -208,8 +218,11 @@ abstract class _CardDetailsConstructor extends CardDetails { int? get expirationMonth; @override String? get cvc; + + /// Create a copy of CardDetails + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$CardDetailsConstructorImplCopyWith<_$CardDetailsConstructorImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_platform_interface/lib/src/models/card_details.g.dart b/packages/stripe_platform_interface/lib/src/models/card_details.g.dart index f372a92e2..9cb88bc39 100644 --- a/packages/stripe_platform_interface/lib/src/models/card_details.g.dart +++ b/packages/stripe_platform_interface/lib/src/models/card_details.g.dart @@ -10,8 +10,8 @@ _$CardDetailsConstructorImpl _$$CardDetailsConstructorImplFromJson( Map json) => _$CardDetailsConstructorImpl( number: json['number'] as String?, - expirationYear: json['expirationYear'] as int?, - expirationMonth: json['expirationMonth'] as int?, + expirationYear: (json['expirationYear'] as num?)?.toInt(), + expirationMonth: (json['expirationMonth'] as num?)?.toInt(), cvc: json['cvc'] as String?, ); diff --git a/packages/stripe_platform_interface/lib/src/models/card_field_input.freezed.dart b/packages/stripe_platform_interface/lib/src/models/card_field_input.freezed.dart index b5c82173e..a871ee78f 100644 --- a/packages/stripe_platform_interface/lib/src/models/card_field_input.freezed.dart +++ b/packages/stripe_platform_interface/lib/src/models/card_field_input.freezed.dart @@ -12,7 +12,7 @@ part of 'card_field_input.dart'; T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); CardStyle _$CardStyleFromJson(Map json) { return _CardStyleConstructor.fromJson(json); @@ -46,8 +46,12 @@ mixin _$CardStyle { @JsonKey(toJson: ColorKey.toJson, fromJson: ColorKey.fromJson) Color? get placeholderColor => throw _privateConstructorUsedError; + /// Serializes this CardStyle to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of CardStyle + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $CardStyleCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -86,6 +90,8 @@ class _$CardStyleCopyWithImpl<$Res, $Val extends CardStyle> // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of CardStyle + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -180,6 +186,8 @@ class __$$CardStyleConstructorImplCopyWithImpl<$Res> $Res Function(_$CardStyleConstructorImpl) _then) : super(_value, _then); + /// Create a copy of CardStyle + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -307,7 +315,7 @@ class _$CardStyleConstructorImpl extends _CardStyleConstructor { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$CardStyleConstructorImpl && @@ -333,7 +341,7 @@ class _$CardStyleConstructorImpl extends _CardStyleConstructor { other.placeholderColor == placeholderColor)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash( runtimeType, @@ -348,7 +356,9 @@ class _$CardStyleConstructorImpl extends _CardStyleConstructor { textErrorColor, placeholderColor); - @JsonKey(ignore: true) + /// Create a copy of CardStyle + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$CardStyleConstructorImplCopyWith<_$CardStyleConstructorImpl> @@ -387,9 +397,8 @@ abstract class _CardStyleConstructor extends CardStyle { factory _CardStyleConstructor.fromJson(Map json) = _$CardStyleConstructorImpl.fromJson; - @override - /// Width for the border. + @override int? get borderWidth; @override @JsonKey(toJson: ColorKey.toJson, fromJson: ColorKey.fromJson) @@ -397,9 +406,9 @@ abstract class _CardStyleConstructor extends CardStyle { @override @JsonKey(toJson: ColorKey.toJson, fromJson: ColorKey.fromJson) Color? get borderColor; - @override /// Borderradius that can give the Cardfield rounded corners. + @override int? get borderRadius; @override @JsonKey(toJson: ColorKey.toJson, fromJson: ColorKey.fromJson) @@ -407,24 +416,27 @@ abstract class _CardStyleConstructor extends CardStyle { @override @JsonKey(toJson: ColorKey.toJson, fromJson: ColorKey.fromJson) Color? get textColor; - @override /// Font size. - int? get fontSize; @override + int? get fontSize; /// Font family - String? get fontFamily; @override + String? get fontFamily; /// Color of the input in case incorrect data is entered. + @override @JsonKey(toJson: ColorKey.toJson, fromJson: ColorKey.fromJson) Color? get textErrorColor; @override @JsonKey(toJson: ColorKey.toJson, fromJson: ColorKey.fromJson) Color? get placeholderColor; + + /// Create a copy of CardStyle + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$CardStyleConstructorImplCopyWith<_$CardStyleConstructorImpl> get copyWith => throw _privateConstructorUsedError; } @@ -459,8 +471,12 @@ mixin _$CardFormStyle { @JsonKey(toJson: ColorKey.toJson, fromJson: ColorKey.fromJson) Color? get placeholderColor => throw _privateConstructorUsedError; + /// Serializes this CardFormStyle to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of CardFormStyle + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $CardFormStyleCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -499,6 +515,8 @@ class _$CardFormStyleCopyWithImpl<$Res, $Val extends CardFormStyle> // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of CardFormStyle + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -589,6 +607,8 @@ class __$$CardFormStyleConstructorImplCopyWithImpl<$Res> $Res Function(_$CardFormStyleConstructorImpl) _then) : super(_value, _then); + /// Create a copy of CardFormStyle + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -707,7 +727,7 @@ class _$CardFormStyleConstructorImpl extends _CardFormStyleConstructor { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$CardFormStyleConstructorImpl && @@ -731,7 +751,7 @@ class _$CardFormStyleConstructorImpl extends _CardFormStyleConstructor { other.placeholderColor == placeholderColor)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash( runtimeType, @@ -745,7 +765,9 @@ class _$CardFormStyleConstructorImpl extends _CardFormStyleConstructor { textErrorColor, placeholderColor); - @JsonKey(ignore: true) + /// Create a copy of CardFormStyle + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$CardFormStyleConstructorImplCopyWith<_$CardFormStyleConstructorImpl> @@ -785,16 +807,16 @@ abstract class _CardFormStyleConstructor extends CardFormStyle { @override @JsonKey(toJson: ColorKey.toJson, fromJson: ColorKey.fromJson) Color? get backgroundColor; - @override /// Width for the border. + @override int? get borderWidth; @override @JsonKey(toJson: ColorKey.toJson, fromJson: ColorKey.fromJson) Color? get borderColor; - @override /// Borderradius that can give the Cardfield rounded corners. + @override int? get borderRadius; @override @JsonKey(toJson: ColorKey.toJson, fromJson: ColorKey.fromJson) @@ -802,20 +824,23 @@ abstract class _CardFormStyleConstructor extends CardFormStyle { @override @JsonKey(toJson: ColorKey.toJson, fromJson: ColorKey.fromJson) Color? get textColor; - @override /// Font size. - int? get fontSize; @override + int? get fontSize; /// Color of the input in case incorrect data is entered. + @override @JsonKey(toJson: ColorKey.toJson, fromJson: ColorKey.fromJson) Color? get textErrorColor; @override @JsonKey(toJson: ColorKey.toJson, fromJson: ColorKey.fromJson) Color? get placeholderColor; + + /// Create a copy of CardFormStyle + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$CardFormStyleConstructorImplCopyWith<_$CardFormStyleConstructorImpl> get copyWith => throw _privateConstructorUsedError; } @@ -838,8 +863,12 @@ mixin _$CardPlaceholder { /// Localized placeholder for postal code field. String? get postalCode => throw _privateConstructorUsedError; + /// Serializes this CardPlaceholder to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of CardPlaceholder + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $CardPlaceholderCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -864,6 +893,8 @@ class _$CardPlaceholderCopyWithImpl<$Res, $Val extends CardPlaceholder> // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of CardPlaceholder + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -916,6 +947,8 @@ class __$$CardPlaceholderConstructorImplCopyWithImpl<$Res> $Res Function(_$CardPlaceholderConstructorImpl) _then) : super(_value, _then); + /// Create a copy of CardPlaceholder + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -979,7 +1012,7 @@ class _$CardPlaceholderConstructorImpl extends _CardPlaceholderConstructor { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$CardPlaceholderConstructorImpl && @@ -991,12 +1024,14 @@ class _$CardPlaceholderConstructorImpl extends _CardPlaceholderConstructor { other.postalCode == postalCode)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, number, expiration, cvc, postalCode); - @JsonKey(ignore: true) + /// Create a copy of CardPlaceholder + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$CardPlaceholderConstructorImplCopyWith<_$CardPlaceholderConstructorImpl> @@ -1022,24 +1057,26 @@ abstract class _CardPlaceholderConstructor extends CardPlaceholder { factory _CardPlaceholderConstructor.fromJson(Map json) = _$CardPlaceholderConstructorImpl.fromJson; - @override - /// Localized placeholder for card number field. - String? get number; @override + String? get number; /// Localized placeholder for expiration field. - String? get expiration; @override + String? get expiration; /// Localized placeholder for cvc field. - String? get cvc; @override + String? get cvc; /// Localized placeholder for postal code field. + @override String? get postalCode; + + /// Create a copy of CardPlaceholder + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$CardPlaceholderConstructorImplCopyWith<_$CardPlaceholderConstructorImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1086,8 +1123,12 @@ mixin _$CardFieldInputDetails { /// The [CardValidationState] of the entered card number. CardValidationState get validNumber => throw _privateConstructorUsedError; + /// Serializes this CardFieldInputDetails to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of CardFieldInputDetails + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $CardFieldInputDetailsCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -1123,6 +1164,8 @@ class _$CardFieldInputDetailsCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of CardFieldInputDetails + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1219,6 +1262,8 @@ class __$$CardFieldInputDetailsImplCopyWithImpl<$Res> $Res Function(_$CardFieldInputDetailsImpl) _then) : super(_value, _then); + /// Create a copy of CardFieldInputDetails + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1359,7 +1404,7 @@ class _$CardFieldInputDetailsImpl extends _CardFieldInputDetails { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$CardFieldInputDetailsImpl && @@ -1383,7 +1428,7 @@ class _$CardFieldInputDetailsImpl extends _CardFieldInputDetails { other.validNumber == validNumber)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash( runtimeType, @@ -1399,7 +1444,9 @@ class _$CardFieldInputDetailsImpl extends _CardFieldInputDetails { validCVC, validNumber); - @JsonKey(ignore: true) + /// Create a copy of CardFieldInputDetails + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$CardFieldInputDetailsImplCopyWith<_$CardFieldInputDetailsImpl> @@ -1432,54 +1479,56 @@ abstract class _CardFieldInputDetails extends CardFieldInputDetails { factory _CardFieldInputDetails.fromJson(Map json) = _$CardFieldInputDetailsImpl.fromJson; - @override - /// Indicates whether the card field input is complete. - bool get complete; @override + bool get complete; /// Last 4 digits of the entered card number. - String? get last4; @override + String? get last4; /// Month of the entered expiry date of the card. - int? get expiryMonth; @override + int? get expiryMonth; /// Year of the entered expiry date of the card. - int? get expiryYear; @override + int? get expiryYear; /// Entered postcal code. - String? get postalCode; @override + String? get postalCode; /// Brand of the card. - String? get brand; @override + String? get brand; /// Card number. /// This information is not available by default to comply with the PCI compliance - String? get number; @override + String? get number; /// CVC code. /// This information is not available by default to comply with the PCI compliance - String? get cvc; @override + String? get cvc; /// The [CardValidationState] of the entered expiry date. - CardValidationState get validExpiryDate; @override + CardValidationState get validExpiryDate; /// The [CardValidationState] of the entered cvc. - CardValidationState get validCVC; @override + CardValidationState get validCVC; /// The [CardValidationState] of the entered card number. + @override CardValidationState get validNumber; + + /// Create a copy of CardFieldInputDetails + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$CardFieldInputDetailsImplCopyWith<_$CardFieldInputDetailsImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1492,8 +1541,12 @@ CardFieldFocusName _$CardFieldFocusNameFromJson(Map json) { mixin _$CardFieldFocusName { CardFieldName? get focusedField => throw _privateConstructorUsedError; + /// Serializes this CardFieldFocusName to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of CardFieldFocusName + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $CardFieldFocusNameCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -1517,6 +1570,8 @@ class _$CardFieldFocusNameCopyWithImpl<$Res, $Val extends CardFieldFocusName> // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of CardFieldFocusName + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1550,6 +1605,8 @@ class __$$CardFieldFocusNameImplCopyWithImpl<$Res> $Res Function(_$CardFieldFocusNameImpl) _then) : super(_value, _then); + /// Create a copy of CardFieldFocusName + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1582,7 +1639,7 @@ class _$CardFieldFocusNameImpl implements _CardFieldFocusName { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$CardFieldFocusNameImpl && @@ -1590,11 +1647,13 @@ class _$CardFieldFocusNameImpl implements _CardFieldFocusName { other.focusedField == focusedField)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, focusedField); - @JsonKey(ignore: true) + /// Create a copy of CardFieldFocusName + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$CardFieldFocusNameImplCopyWith<_$CardFieldFocusNameImpl> get copyWith => @@ -1618,8 +1677,11 @@ abstract class _CardFieldFocusName implements CardFieldFocusName { @override CardFieldName? get focusedField; + + /// Create a copy of CardFieldFocusName + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$CardFieldFocusNameImplCopyWith<_$CardFieldFocusNameImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_platform_interface/lib/src/models/card_field_input.g.dart b/packages/stripe_platform_interface/lib/src/models/card_field_input.g.dart index 74264d454..bafba9821 100644 --- a/packages/stripe_platform_interface/lib/src/models/card_field_input.g.dart +++ b/packages/stripe_platform_interface/lib/src/models/card_field_input.g.dart @@ -9,13 +9,13 @@ part of 'card_field_input.dart'; _$CardStyleConstructorImpl _$$CardStyleConstructorImplFromJson( Map json) => _$CardStyleConstructorImpl( - borderWidth: json['borderWidth'] as int?, + borderWidth: (json['borderWidth'] as num?)?.toInt(), backgroundColor: ColorKey.fromJson(json['backgroundColor']), borderColor: ColorKey.fromJson(json['borderColor']), - borderRadius: json['borderRadius'] as int?, + borderRadius: (json['borderRadius'] as num?)?.toInt(), cursorColor: ColorKey.fromJson(json['cursorColor']), textColor: ColorKey.fromJson(json['textColor']), - fontSize: json['fontSize'] as int?, + fontSize: (json['fontSize'] as num?)?.toInt(), fontFamily: json['fontFamily'] as String?, textErrorColor: ColorKey.fromJson(json['textErrorColor']), placeholderColor: ColorKey.fromJson(json['placeholderColor']), @@ -40,12 +40,12 @@ _$CardFormStyleConstructorImpl _$$CardFormStyleConstructorImplFromJson( Map json) => _$CardFormStyleConstructorImpl( backgroundColor: ColorKey.fromJson(json['backgroundColor']), - borderWidth: json['borderWidth'] as int?, + borderWidth: (json['borderWidth'] as num?)?.toInt(), borderColor: ColorKey.fromJson(json['borderColor']), - borderRadius: json['borderRadius'] as int?, + borderRadius: (json['borderRadius'] as num?)?.toInt(), cursorColor: ColorKey.fromJson(json['cursorColor']), textColor: ColorKey.fromJson(json['textColor']), - fontSize: json['fontSize'] as int?, + fontSize: (json['fontSize'] as num?)?.toInt(), textErrorColor: ColorKey.fromJson(json['textErrorColor']), placeholderColor: ColorKey.fromJson(json['placeholderColor']), ); @@ -87,8 +87,8 @@ _$CardFieldInputDetailsImpl _$$CardFieldInputDetailsImplFromJson( _$CardFieldInputDetailsImpl( complete: json['complete'] as bool, last4: json['last4'] as String?, - expiryMonth: json['expiryMonth'] as int?, - expiryYear: json['expiryYear'] as int?, + expiryMonth: (json['expiryMonth'] as num?)?.toInt(), + expiryYear: (json['expiryYear'] as num?)?.toInt(), postalCode: json['postalCode'] as String?, brand: json['brand'] as String?, number: json['number'] as String?, diff --git a/packages/stripe_platform_interface/lib/src/models/create_token_data.freezed.dart b/packages/stripe_platform_interface/lib/src/models/create_token_data.freezed.dart index 9bde8664d..47059663c 100644 --- a/packages/stripe_platform_interface/lib/src/models/create_token_data.freezed.dart +++ b/packages/stripe_platform_interface/lib/src/models/create_token_data.freezed.dart @@ -12,7 +12,7 @@ part of 'create_token_data.dart'; T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); CreateTokenParams _$CreateTokenParamsFromJson(Map json) { switch (json['runtimeType']) { @@ -85,6 +85,8 @@ mixin _$CreateTokenParams { required TResult orElse(), }) => throw _privateConstructorUsedError; + + /// Serializes this CreateTokenParams to a JSON map. Map toJson() => throw _privateConstructorUsedError; } @@ -104,6 +106,9 @@ class _$CreateTokenParamsCopyWithImpl<$Res, $Val extends CreateTokenParams> final $Val _value; // ignore: unused_field final $Res Function($Val) _then; + + /// Create a copy of CreateTokenParams + /// with the given fields replaced by the non-null parameter values. } /// @nodoc @@ -127,6 +132,8 @@ class __$$CreateTokenParamsLegacyImplCopyWithImpl<$Res> $Res Function(_$CreateTokenParamsLegacyImpl) _then) : super(_value, _then); + /// Create a copy of CreateTokenParams + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -150,6 +157,8 @@ class __$$CreateTokenParamsLegacyImplCopyWithImpl<$Res> )); } + /// Create a copy of CreateTokenParams + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $AddressCopyWith<$Res>? get address { @@ -200,7 +209,7 @@ class _$CreateTokenParamsLegacyImpl implements _CreateTokenParamsLegacy { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$CreateTokenParamsLegacyImpl && @@ -209,11 +218,13 @@ class _$CreateTokenParamsLegacyImpl implements _CreateTokenParamsLegacy { (identical(other.address, address) || other.address == address)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, type, name, address); - @JsonKey(ignore: true) + /// Create a copy of CreateTokenParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$CreateTokenParamsLegacyImplCopyWith<_$CreateTokenParamsLegacyImpl> @@ -321,7 +332,10 @@ abstract class _CreateTokenParamsLegacy implements CreateTokenParams { /// Additional address details Address? get address; - @JsonKey(ignore: true) + + /// Create a copy of CreateTokenParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) _$$CreateTokenParamsLegacyImplCopyWith<_$CreateTokenParamsLegacyImpl> get copyWith => throw _privateConstructorUsedError; } @@ -346,6 +360,8 @@ class __$$CreateTokenParamsCardImplCopyWithImpl<$Res> $Res Function(_$CreateTokenParamsCardImpl) _then) : super(_value, _then); + /// Create a copy of CreateTokenParams + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -359,6 +375,8 @@ class __$$CreateTokenParamsCardImplCopyWithImpl<$Res> )); } + /// Create a copy of CreateTokenParams + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $CardTokenParamsCopyWith<$Res> get params { @@ -390,18 +408,20 @@ class _$CreateTokenParamsCardImpl implements _CreateTokenParamsCard { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$CreateTokenParamsCardImpl && (identical(other.params, params) || other.params == params)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, params); - @JsonKey(ignore: true) + /// Create a copy of CreateTokenParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$CreateTokenParamsCardImplCopyWith<_$CreateTokenParamsCardImpl> @@ -500,7 +520,10 @@ abstract class _CreateTokenParamsCard implements CreateTokenParams { _$CreateTokenParamsCardImpl.fromJson; CardTokenParams get params; - @JsonKey(ignore: true) + + /// Create a copy of CreateTokenParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) _$$CreateTokenParamsCardImplCopyWith<_$CreateTokenParamsCardImpl> get copyWith => throw _privateConstructorUsedError; } @@ -527,6 +550,8 @@ class __$$CreateTokenParamsBankAccountImplCopyWithImpl<$Res> $Res Function(_$CreateTokenParamsBankAccountImpl) _then) : super(_value, _then); + /// Create a copy of CreateTokenParams + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -540,6 +565,8 @@ class __$$CreateTokenParamsBankAccountImplCopyWithImpl<$Res> )); } + /// Create a copy of CreateTokenParams + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $BankAccountTokenParamsCopyWith<$Res> get params { @@ -574,18 +601,20 @@ class _$CreateTokenParamsBankAccountImpl } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$CreateTokenParamsBankAccountImpl && (identical(other.params, params) || other.params == params)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, params); - @JsonKey(ignore: true) + /// Create a copy of CreateTokenParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$CreateTokenParamsBankAccountImplCopyWith< @@ -686,7 +715,10 @@ abstract class _CreateTokenParamsBankAccount implements CreateTokenParams { _$CreateTokenParamsBankAccountImpl.fromJson; BankAccountTokenParams get params; - @JsonKey(ignore: true) + + /// Create a copy of CreateTokenParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) _$$CreateTokenParamsBankAccountImplCopyWith< _$CreateTokenParamsBankAccountImpl> get copyWith => throw _privateConstructorUsedError; @@ -711,6 +743,8 @@ class __$$CreateTokenParamsPIIImplCopyWithImpl<$Res> $Res Function(_$CreateTokenParamsPIIImpl) _then) : super(_value, _then); + /// Create a copy of CreateTokenParams + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -724,6 +758,8 @@ class __$$CreateTokenParamsPIIImplCopyWithImpl<$Res> )); } + /// Create a copy of CreateTokenParams + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PIITokenParamsCopyWith<$Res> get params { @@ -755,18 +791,20 @@ class _$CreateTokenParamsPIIImpl implements _CreateTokenParamsPII { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$CreateTokenParamsPIIImpl && (identical(other.params, params) || other.params == params)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, params); - @JsonKey(ignore: true) + /// Create a copy of CreateTokenParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$CreateTokenParamsPIIImplCopyWith<_$CreateTokenParamsPIIImpl> @@ -866,7 +904,10 @@ abstract class _CreateTokenParamsPII implements CreateTokenParams { _$CreateTokenParamsPIIImpl.fromJson; PIITokenParams get params; - @JsonKey(ignore: true) + + /// Create a copy of CreateTokenParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) _$$CreateTokenParamsPIIImplCopyWith<_$CreateTokenParamsPIIImpl> get copyWith => throw _privateConstructorUsedError; } @@ -889,8 +930,12 @@ mixin _$CardTokenParams { /// The three letter ISO 4217 code for the currency. String? get currency => throw _privateConstructorUsedError; + /// Serializes this CardTokenParams to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of CardTokenParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $CardTokenParamsCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -916,6 +961,8 @@ class _$CardTokenParamsCopyWithImpl<$Res, $Val extends CardTokenParams> // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of CardTokenParams + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -944,6 +991,8 @@ class _$CardTokenParamsCopyWithImpl<$Res, $Val extends CardTokenParams> ) as $Val); } + /// Create a copy of CardTokenParams + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $AddressCopyWith<$Res>? get address { @@ -979,6 +1028,8 @@ class __$$CardTokenParamsImplCopyWithImpl<$Res> _$CardTokenParamsImpl _value, $Res Function(_$CardTokenParamsImpl) _then) : super(_value, _then); + /// Create a copy of CardTokenParams + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1040,7 +1091,7 @@ class _$CardTokenParamsImpl implements _CardTokenParams { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$CardTokenParamsImpl && @@ -1051,11 +1102,13 @@ class _$CardTokenParamsImpl implements _CardTokenParams { other.currency == currency)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, type, name, address, currency); - @JsonKey(ignore: true) + /// Create a copy of CardTokenParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$CardTokenParamsImplCopyWith<_$CardTokenParamsImpl> get copyWith => @@ -1080,24 +1133,26 @@ abstract class _CardTokenParams implements CardTokenParams { factory _CardTokenParams.fromJson(Map json) = _$CardTokenParamsImpl.fromJson; - @override - /// Type of token. - TokenType get type; @override + TokenType get type; /// Name of the card holder - String? get name; @override + String? get name; /// Additional address details - Address? get address; @override + Address? get address; /// The three letter ISO 4217 code for the currency. + @override String? get currency; + + /// Create a copy of CardTokenParams + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$CardTokenParamsImplCopyWith<_$CardTokenParamsImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1114,8 +1169,12 @@ mixin _$PIITokenParams { /// The user's personal ID number String get personalId => throw _privateConstructorUsedError; + /// Serializes this PIITokenParams to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of PIITokenParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $PIITokenParamsCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -1139,6 +1198,8 @@ class _$PIITokenParamsCopyWithImpl<$Res, $Val extends PIITokenParams> // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of PIITokenParams + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1177,6 +1238,8 @@ class __$$PIITokenParamsImplCopyWithImpl<$Res> _$PIITokenParamsImpl _value, $Res Function(_$PIITokenParamsImpl) _then) : super(_value, _then); + /// Create a copy of PIITokenParams + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1220,7 +1283,7 @@ class _$PIITokenParamsImpl implements _PIITokenParams { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PIITokenParamsImpl && @@ -1229,11 +1292,13 @@ class _$PIITokenParamsImpl implements _PIITokenParams { other.personalId == personalId)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, type, personalId); - @JsonKey(ignore: true) + /// Create a copy of PIITokenParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PIITokenParamsImplCopyWith<_$PIITokenParamsImpl> get copyWith => @@ -1256,16 +1321,18 @@ abstract class _PIITokenParams implements PIITokenParams { factory _PIITokenParams.fromJson(Map json) = _$PIITokenParamsImpl.fromJson; - @override - /// Type of token. - TokenType get type; @override + TokenType get type; /// The user's personal ID number + @override String get personalId; + + /// Create a copy of PIITokenParams + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$PIITokenParamsImplCopyWith<_$PIITokenParamsImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1299,8 +1366,12 @@ mixin _$BankAccountTokenParams { /// The routing number of the bank account (e.g. needer for US accounts). String? get routingNumber => throw _privateConstructorUsedError; + /// Serializes this BankAccountTokenParams to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of BankAccountTokenParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $BankAccountTokenParamsCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -1332,6 +1403,8 @@ class _$BankAccountTokenParamsCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of BankAccountTokenParams + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1405,6 +1478,8 @@ class __$$BankAccountTokenParamsImplCopyWithImpl<$Res> $Res Function(_$BankAccountTokenParamsImpl) _then) : super(_value, _then); + /// Create a copy of BankAccountTokenParams + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1499,7 +1574,7 @@ class _$BankAccountTokenParamsImpl implements _BankAccountTokenParams { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$BankAccountTokenParamsImpl && @@ -1517,12 +1592,14 @@ class _$BankAccountTokenParamsImpl implements _BankAccountTokenParams { other.routingNumber == routingNumber)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, type, accountNumber, country, currency, accountHolderName, accountHolderType, routingNumber); - @JsonKey(ignore: true) + /// Create a copy of BankAccountTokenParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$BankAccountTokenParamsImplCopyWith<_$BankAccountTokenParamsImpl> @@ -1550,36 +1627,38 @@ abstract class _BankAccountTokenParams implements BankAccountTokenParams { factory _BankAccountTokenParams.fromJson(Map json) = _$BankAccountTokenParamsImpl.fromJson; - @override - /// Type of token. - TokenType get type; @override + TokenType get type; /// unique number of the account. - String get accountNumber; @override + String get accountNumber; /// 2 letter code of the country where the account is located - String get country; @override + String get country; /// The three letter ISO 4217 code for the currency. - String get currency; @override + String get currency; /// Full name of the account holder - String? get accountHolderName; @override + String? get accountHolderName; /// Entity that is holder of the account. - BankAccountHolderType? get accountHolderType; @override + BankAccountHolderType? get accountHolderType; /// The routing number of the bank account (e.g. needer for US accounts). + @override String? get routingNumber; + + /// Create a copy of BankAccountTokenParams + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$BankAccountTokenParamsImplCopyWith<_$BankAccountTokenParamsImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1609,8 +1688,12 @@ mixin _$TokenData { /// Card data CardData? get card => throw _privateConstructorUsedError; + /// Serializes this TokenData to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of TokenData + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $TokenDataCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -1642,6 +1725,8 @@ class _$TokenDataCopyWithImpl<$Res, $Val extends TokenData> // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of TokenData + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1680,6 +1765,8 @@ class _$TokenDataCopyWithImpl<$Res, $Val extends TokenData> ) as $Val); } + /// Create a copy of TokenData + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $BankAccountCopyWith<$Res>? get bankAccount { @@ -1692,6 +1779,8 @@ class _$TokenDataCopyWithImpl<$Res, $Val extends TokenData> }); } + /// Create a copy of TokenData + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $CardDataCopyWith<$Res>? get card { @@ -1735,6 +1824,8 @@ class __$$TokenDataImplCopyWithImpl<$Res> _$TokenDataImpl _value, $Res Function(_$TokenDataImpl) _then) : super(_value, _then); + /// Create a copy of TokenData + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1820,7 +1911,7 @@ class _$TokenDataImpl extends _TokenData { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$TokenDataImpl && @@ -1834,12 +1925,14 @@ class _$TokenDataImpl extends _TokenData { (identical(other.card, card) || other.card == card)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, id, created, type, livemode, bankAccount, card); - @JsonKey(ignore: true) + /// Create a copy of TokenData + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$TokenDataImplCopyWith<_$TokenDataImpl> get copyWith => @@ -1866,33 +1959,35 @@ abstract class _TokenData extends TokenData { factory _TokenData.fromJson(Map json) = _$TokenDataImpl.fromJson; - @override - /// Unique identifier of the token - String get id; @override + String get id; /// Timestamp when token was created + @override @JsonKey(name: 'created') String get created; - @override /// Type of the token - TokenType get type; @override + TokenType get type; /// Whether or not the object exists in livemode - bool get livemode; @override + bool get livemode; /// Bank account data - BankAccount? get bankAccount; @override + BankAccount? get bankAccount; /// Card data + @override CardData? get card; + + /// Create a copy of TokenData + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$TokenDataImplCopyWith<_$TokenDataImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1933,8 +2028,12 @@ mixin _$CardData { /// Address of the cardholder Address? get address => throw _privateConstructorUsedError; + /// Serializes this CardData to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of CardData + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $CardDataCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -1969,6 +2068,8 @@ class _$CardDataCopyWithImpl<$Res, $Val extends CardData> // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of CardData + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -2027,6 +2128,8 @@ class _$CardDataCopyWithImpl<$Res, $Val extends CardData> ) as $Val); } + /// Create a copy of CardData + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $AddressCopyWith<$Res>? get address { @@ -2072,6 +2175,8 @@ class __$$CardDataImplCopyWithImpl<$Res> _$CardDataImpl _value, $Res Function(_$CardDataImpl) _then) : super(_value, _then); + /// Create a copy of CardData + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -2196,7 +2301,7 @@ class _$CardDataImpl implements _CardData { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$CardDataImpl && @@ -2214,12 +2319,14 @@ class _$CardDataImpl implements _CardData { (identical(other.address, address) || other.address == address)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, id, brand, country, currency, expYear, expMonth, name, funding, last4, address); - @JsonKey(ignore: true) + /// Create a copy of CardData + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$CardDataImplCopyWith<_$CardDataImpl> get copyWith => @@ -2249,48 +2356,50 @@ abstract class _CardData implements CardData { factory _CardData.fromJson(Map json) = _$CardDataImpl.fromJson; - @override - /// Unique identifier - String? get id; @override + String? get id; /// The brand associated to the card e.g. (visa, amex). - String get brand; @override + String get brand; /// Two letter iso code. - String? get country; @override + String? get country; /// The three letter ISO 4217 code for the currency. - String? get currency; @override + String? get currency; /// four digit number representing the year of expiry of the card. - int? get expYear; @override + int? get expYear; /// two digit number representing the month of expire of the card. - int? get expMonth; @override + int? get expMonth; /// Fullname of the cardholder - String? get name; @override + String? get name; /// card funding type e.g. (credit, debit). - String? get funding; @override + String? get funding; /// last four digits of the card. - String? get last4; @override + String? get last4; /// Address of the cardholder + @override Address? get address; + + /// Create a copy of CardData + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$CardDataImplCopyWith<_$CardDataImpl> get copyWith => throw _privateConstructorUsedError; } @@ -2334,8 +2443,12 @@ mixin _$BankAccount { /// Last four numbers of the bank account number String? get last4 => throw _privateConstructorUsedError; + /// Serializes this BankAccount to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of BankAccount + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $BankAccountCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -2369,6 +2482,8 @@ class _$BankAccountCopyWithImpl<$Res, $Val extends BankAccount> // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of BankAccount + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -2457,6 +2572,8 @@ class __$$BankAccountImplCopyWithImpl<$Res> _$BankAccountImpl _value, $Res Function(_$BankAccountImpl) _then) : super(_value, _then); + /// Create a copy of BankAccount + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -2582,7 +2699,7 @@ class _$BankAccountImpl implements _BankAccount { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$BankAccountImpl && @@ -2604,7 +2721,7 @@ class _$BankAccountImpl implements _BankAccount { (identical(other.last4, last4) || other.last4 == last4)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash( runtimeType, @@ -2619,7 +2736,9 @@ class _$BankAccountImpl implements _BankAccount { fingerprint, last4); - @JsonKey(ignore: true) + /// Create a copy of BankAccount + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$BankAccountImplCopyWith<_$BankAccountImpl> get copyWith => @@ -2649,50 +2768,52 @@ abstract class _BankAccount implements BankAccount { factory _BankAccount.fromJson(Map json) = _$BankAccountImpl.fromJson; - @override - /// Unique id for this bank account - String get id; @override + String get id; /// Entity that is holder of the account. - BankAccountHolderType? get accountHolderType; @override + BankAccountHolderType? get accountHolderType; /// Name of the bank where the account is registered. - String? get bankName; @override + String? get bankName; /// Full name of the account holder - String? get accountHolderName; @override + String? get accountHolderName; /// 2 letter code of the country where the account is located - String? get country; @override + String? get country; /// The three letter ISO 4217 code for the currency. - String? get currency; @override + String? get currency; /// The routing number of the bank account (e.g. needer for US accounts). - String? get routingNumber; @override + String? get routingNumber; /// Status of the bank account. - BankAccountStatus? get status; @override + BankAccountStatus? get status; /// Uniquely identifies the particular bank account. /// /// You can use this to check whether or not two bank accounts are the same. - String? get fingerprint; @override + String? get fingerprint; /// Last four numbers of the bank account number + @override String? get last4; + + /// Create a copy of BankAccount + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$BankAccountImplCopyWith<_$BankAccountImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_platform_interface/lib/src/models/create_token_data.g.dart b/packages/stripe_platform_interface/lib/src/models/create_token_data.g.dart index 9281ce4ea..58ed794bc 100644 --- a/packages/stripe_platform_interface/lib/src/models/create_token_data.g.dart +++ b/packages/stripe_platform_interface/lib/src/models/create_token_data.g.dart @@ -174,8 +174,8 @@ _$CardDataImpl _$$CardDataImplFromJson(Map json) => brand: json['brand'] as String, country: json['country'] as String?, currency: json['currency'] as String?, - expYear: json['expYear'] as int?, - expMonth: json['expMonth'] as int?, + expYear: (json['expYear'] as num?)?.toInt(), + expMonth: (json['expMonth'] as num?)?.toInt(), name: json['name'] as String?, funding: json['funding'] as String?, last4: json['last4'] as String?, diff --git a/packages/stripe_platform_interface/lib/src/models/customer_sheet.freezed.dart b/packages/stripe_platform_interface/lib/src/models/customer_sheet.freezed.dart index 9f2779114..32991e291 100644 --- a/packages/stripe_platform_interface/lib/src/models/customer_sheet.freezed.dart +++ b/packages/stripe_platform_interface/lib/src/models/customer_sheet.freezed.dart @@ -12,7 +12,7 @@ part of 'customer_sheet.dart'; T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); CustomerSheetInitParams _$CustomerSheetInitParamsFromJson( Map json) { @@ -79,8 +79,12 @@ mixin _$CustomerSheetInitParams { @JsonKey(toJson: _cardBrandListToJson) List? get preferredNetworks => throw _privateConstructorUsedError; + /// Serializes this CustomerSheetInitParams to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of CustomerSheetInitParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $CustomerSheetInitParamsCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -127,6 +131,8 @@ class _$CustomerSheetInitParamsCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of CustomerSheetInitParams + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -213,6 +219,8 @@ class _$CustomerSheetInitParamsCopyWithImpl<$Res, ) as $Val); } + /// Create a copy of CustomerSheetInitParams + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentSheetAppearanceCopyWith<$Res>? get appearance { @@ -225,6 +233,8 @@ class _$CustomerSheetInitParamsCopyWithImpl<$Res, }); } + /// Create a copy of CustomerSheetInitParams + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $BillingDetailsCopyWith<$Res>? get defaultBillingDetails { @@ -238,6 +248,8 @@ class _$CustomerSheetInitParamsCopyWithImpl<$Res, }); } + /// Create a copy of CustomerSheetInitParams + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $BillingDetailsCollectionConfigurationCopyWith<$Res>? @@ -301,6 +313,8 @@ class __$$CustomerSheetInitParamsImplCopyWithImpl<$Res> $Res Function(_$CustomerSheetInitParamsImpl) _then) : super(_value, _then); + /// Create a copy of CustomerSheetInitParams + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -501,7 +515,7 @@ class _$CustomerSheetInitParamsImpl implements _CustomerSheetInitParams { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$CustomerSheetInitParamsImpl && @@ -542,7 +556,7 @@ class _$CustomerSheetInitParamsImpl implements _CustomerSheetInitParams { const DeepCollectionEquality().equals(other._preferredNetworks, _preferredNetworks)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash( runtimeType, @@ -562,7 +576,9 @@ class _$CustomerSheetInitParamsImpl implements _CustomerSheetInitParams { googlePayEnabled, const DeepCollectionEquality().hash(_preferredNetworks)); - @JsonKey(ignore: true) + /// Create a copy of CustomerSheetInitParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$CustomerSheetInitParamsImplCopyWith<_$CustomerSheetInitParamsImpl> @@ -601,76 +617,78 @@ abstract class _CustomerSheetInitParams implements CustomerSheetInitParams { factory _CustomerSheetInitParams.fromJson(Map json) = _$CustomerSheetInitParamsImpl.fromJson; - @override - /// Color styling used for the Customersheet UI + @override @JsonKey(toJson: UserInterfaceStyleKey.toJson) ThemeMode? get style; - @override /// Appearance of the customersheet. /// /// When no appearance defined it will fallback to [style] or Stripe default. - PaymentSheetAppearance? get appearance; @override + PaymentSheetAppearance? get appearance; /// Optional but recommended for cards, required for other payment methods. The SetupIntent client secret that will be used to confirm a new payment method. If this is missing, you will only be able to add cards without authentication steps. - String? get setupIntentClientSecret; @override + String? get setupIntentClientSecret; /// The identifier of the Stripe Customer object. See https://stripe.com/docs/api/customers/object#customer_object-id - String get customerId; @override + String get customerId; /// A short-lived token that allows the SDK to access a Customer's payment methods. - String get customerEphemeralKeySecret; @override + String get customerEphemeralKeySecret; /// Your customer-facing business name. The default value is the name of your app. - String? get merchantDisplayName; @override + String? get merchantDisplayName; ///This is an experimental feature that may be removed at any time. /// Defaults to true. If true, the customer can delete all saved payment methods. /// If false, the customer can't delete if they only have one saved payment method remaining. - bool? get allowsRemovalOfLastSavedPaymentMethod; @override + bool? get allowsRemovalOfLastSavedPaymentMethod; /// Optional configuration for setting the header text of the Payment Method selection screen - String? get headerTextForSelectionScreen; @override + String? get headerTextForSelectionScreen; /// CustomerSheet pre-populates fields with the values provided. If `billingDetailsCollectionConfiguration.attachDefaultsToPaymentMethod` is `true`, these values will be attached to the payment method even if they are not collected by the CustomerSheet UI. - BillingDetails? get defaultBillingDetails; @override + BillingDetails? get defaultBillingDetails; /// Describes how billing details should be collected. All values default to `AUTOMATIC`. If `NEVER` is used for a required field for the Payment Method, you must provide an appropriate value as part of `defaultBillingDetails`. + @override BillingDetailsCollectionConfiguration? get billingDetailsCollectionConfiguration; - @override /// URL that redirects back to your app that CustomerSheet can use to auto-dismiss web views used for additional authentication, e.g. 3DS2 - String? get returnURL; @override + String? get returnURL; /// Optional configuration to display a custom message when a saved payment method is removed. iOS only. - String? get removeSavedPaymentMethodMessage; @override + String? get removeSavedPaymentMethodMessage; /// Whether to show Apple Pay as an option. Defaults to `false`. - bool get applePayEnabled; @override + bool get applePayEnabled; /// Whether to show Google Pay as an option. Defaults to `false`. - bool get googlePayEnabled; @override + bool get googlePayEnabled; /// The list of preferred networks that should be used to process payments made with a co-branded card. /// This value will only be used if your user hasn't selected a network themselves. + @override @JsonKey(toJson: _cardBrandListToJson) List? get preferredNetworks; + + /// Create a copy of CustomerSheetInitParams + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$CustomerSheetInitParamsImplCopyWith<_$CustomerSheetInitParamsImpl> get copyWith => throw _privateConstructorUsedError; } @@ -694,8 +712,12 @@ mixin _$CustomerSheetPresentParams { /// Time (in milliseconds) before the Customer Sheet will automatically dismiss. int? get timeout => throw _privateConstructorUsedError; + /// Serializes this CustomerSheetPresentParams to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of CustomerSheetPresentParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $CustomerSheetPresentParamsCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -724,6 +746,8 @@ class _$CustomerSheetPresentParamsCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of CustomerSheetPresentParams + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -773,6 +797,8 @@ class __$$CustomerSheetPresentParamsImplCopyWithImpl<$Res> $Res Function(_$CustomerSheetPresentParamsImpl) _then) : super(_value, _then); + /// Create a copy of CustomerSheetPresentParams + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -827,7 +853,7 @@ class _$CustomerSheetPresentParamsImpl implements _CustomerSheetPresentParams { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$CustomerSheetPresentParamsImpl && @@ -838,12 +864,14 @@ class _$CustomerSheetPresentParamsImpl implements _CustomerSheetPresentParams { (identical(other.timeout, timeout) || other.timeout == timeout)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, presentationStyle, animationStyle, timeout); - @JsonKey(ignore: true) + /// Create a copy of CustomerSheetPresentParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$CustomerSheetPresentParamsImplCopyWith<_$CustomerSheetPresentParamsImpl> @@ -868,21 +896,23 @@ abstract class _CustomerSheetPresentParams factory _CustomerSheetPresentParams.fromJson(Map json) = _$CustomerSheetPresentParamsImpl.fromJson; - @override - /// Controls how the modal is presented (after animation). iOS only. Defaults to `popover`. /// See https://developer.apple.com/documentation/uikit/uimodalpresentationstyle for more info. - CustomerSheetPresentationStyle? get presentationStyle; @override + CustomerSheetPresentationStyle? get presentationStyle; /// Controls how the modal animates. iOS only. - CustomerSheetAnimationStyle? get animationStyle; @override + CustomerSheetAnimationStyle? get animationStyle; /// Time (in milliseconds) before the Customer Sheet will automatically dismiss. + @override int? get timeout; + + /// Create a copy of CustomerSheetPresentParams + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$CustomerSheetPresentParamsImplCopyWith<_$CustomerSheetPresentParamsImpl> get copyWith => throw _privateConstructorUsedError; } @@ -903,8 +933,12 @@ mixin _$CustomerSheetResult { /// The error that occurred StripeError? get error => throw _privateConstructorUsedError; + /// Serializes this CustomerSheetResult to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of CustomerSheetResult + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $CustomerSheetResultCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -935,6 +969,8 @@ class _$CustomerSheetResultCopyWithImpl<$Res, $Val extends CustomerSheetResult> // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of CustomerSheetResult + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -958,6 +994,8 @@ class _$CustomerSheetResultCopyWithImpl<$Res, $Val extends CustomerSheetResult> ) as $Val); } + /// Create a copy of CustomerSheetResult + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentSheetPaymentOptionCopyWith<$Res>? get paymentOption { @@ -971,6 +1009,8 @@ class _$CustomerSheetResultCopyWithImpl<$Res, $Val extends CustomerSheetResult> }); } + /// Create a copy of CustomerSheetResult + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentMethodCopyWith<$Res>? get paymentMethod { @@ -983,6 +1023,8 @@ class _$CustomerSheetResultCopyWithImpl<$Res, $Val extends CustomerSheetResult> }); } + /// Create a copy of CustomerSheetResult + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $StripeErrorCopyWith? get error { @@ -1025,6 +1067,8 @@ class __$$CustomerSheetResultImplCopyWithImpl<$Res> $Res Function(_$CustomerSheetResultImpl) _then) : super(_value, _then); + /// Create a copy of CustomerSheetResult + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1077,7 +1121,7 @@ class _$CustomerSheetResultImpl implements _CustomerSheetResult { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$CustomerSheetResultImpl && @@ -1088,12 +1132,14 @@ class _$CustomerSheetResultImpl implements _CustomerSheetResult { (identical(other.error, error) || other.error == error)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, paymentOption, paymentMethod, error); - @JsonKey(ignore: true) + /// Create a copy of CustomerSheetResult + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$CustomerSheetResultImplCopyWith<_$CustomerSheetResultImpl> get copyWith => @@ -1117,20 +1163,22 @@ abstract class _CustomerSheetResult implements CustomerSheetResult { factory _CustomerSheetResult.fromJson(Map json) = _$CustomerSheetResultImpl.fromJson; - @override - /// The users selected payment option, if one exists. - PaymentSheetPaymentOption? get paymentOption; @override + PaymentSheetPaymentOption? get paymentOption; /// The Stripe PaymentMethod associated with the paymentOption, if it exists. - PaymentMethod? get paymentMethod; @override + PaymentMethod? get paymentMethod; /// The error that occurred + @override StripeError? get error; + + /// Create a copy of CustomerSheetResult + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$CustomerSheetResultImplCopyWith<_$CustomerSheetResultImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_platform_interface/lib/src/models/customer_sheet.g.dart b/packages/stripe_platform_interface/lib/src/models/customer_sheet.g.dart index b656b7cc1..10f5130f2 100644 --- a/packages/stripe_platform_interface/lib/src/models/customer_sheet.g.dart +++ b/packages/stripe_platform_interface/lib/src/models/customer_sheet.g.dart @@ -90,7 +90,7 @@ _$CustomerSheetPresentParamsImpl _$$CustomerSheetPresentParamsImplFromJson( _$CustomerSheetPresentationStyleEnumMap, json['presentationStyle']), animationStyle: $enumDecodeNullable( _$CustomerSheetAnimationStyleEnumMap, json['animationStyle']), - timeout: json['timeout'] as int?, + timeout: (json['timeout'] as num?)?.toInt(), ); Map _$$CustomerSheetPresentParamsImplToJson( diff --git a/packages/stripe_platform_interface/lib/src/models/errors.freezed.dart b/packages/stripe_platform_interface/lib/src/models/errors.freezed.dart index 808c63523..77ebd213d 100644 --- a/packages/stripe_platform_interface/lib/src/models/errors.freezed.dart +++ b/packages/stripe_platform_interface/lib/src/models/errors.freezed.dart @@ -12,7 +12,7 @@ part of 'errors.dart'; T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); StripeError _$StripeErrorFromJson(Map json) { return _StripeErrorGeneric.fromJson(json); @@ -24,8 +24,12 @@ mixin _$StripeError { @JsonKey(fromJson: _dataFromJson, toJson: _dataToJson) T get code => throw _privateConstructorUsedError; + /// Serializes this StripeError to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of StripeError + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $StripeErrorCopyWith> get copyWith => throw _privateConstructorUsedError; } @@ -51,6 +55,8 @@ class _$StripeErrorCopyWithImpl> // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of StripeError + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -91,6 +97,8 @@ class __$$StripeErrorGenericImplCopyWithImpl $Res Function(_$StripeErrorGenericImpl) _then) : super(_value, _then); + /// Create a copy of StripeError + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -135,7 +143,7 @@ class _$StripeErrorGenericImpl implements _StripeErrorGeneric { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$StripeErrorGenericImpl && @@ -143,12 +151,14 @@ class _$StripeErrorGenericImpl implements _StripeErrorGeneric { const DeepCollectionEquality().equals(other.code, code)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash( runtimeType, message, const DeepCollectionEquality().hash(code)); - @JsonKey(ignore: true) + /// Create a copy of StripeError + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$StripeErrorGenericImplCopyWith> @@ -177,8 +187,11 @@ abstract class _StripeErrorGeneric implements StripeError { @override @JsonKey(fromJson: _dataFromJson, toJson: _dataToJson) T get code; + + /// Create a copy of StripeError + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$StripeErrorGenericImplCopyWith> get copyWith => throw _privateConstructorUsedError; } @@ -192,8 +205,12 @@ mixin _$StripeException { /// error details LocalizedErrorMessage get error => throw _privateConstructorUsedError; + /// Serializes this StripeException to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of StripeException + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $StripeExceptionCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -219,6 +236,8 @@ class _$StripeExceptionCopyWithImpl<$Res, $Val extends StripeException> // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of StripeException + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -232,6 +251,8 @@ class _$StripeExceptionCopyWithImpl<$Res, $Val extends StripeException> ) as $Val); } + /// Create a copy of StripeException + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $LocalizedErrorMessageCopyWith<$Res> get error { @@ -263,6 +284,8 @@ class __$$StripeExceptionImplCopyWithImpl<$Res> _$StripeExceptionImpl _value, $Res Function(_$StripeExceptionImpl) _then) : super(_value, _then); + /// Create a copy of StripeException + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -295,18 +318,20 @@ class _$StripeExceptionImpl implements _StripeException { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$StripeExceptionImpl && (identical(other.error, error) || other.error == error)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, error); - @JsonKey(ignore: true) + /// Create a copy of StripeException + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$StripeExceptionImplCopyWith<_$StripeExceptionImpl> get copyWith => @@ -328,12 +353,14 @@ abstract class _StripeException implements StripeException { factory _StripeException.fromJson(Map json) = _$StripeExceptionImpl.fromJson; - @override - /// error details + @override LocalizedErrorMessage get error; + + /// Create a copy of StripeException + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$StripeExceptionImplCopyWith<_$StripeExceptionImpl> get copyWith => throw _privateConstructorUsedError; } @@ -364,8 +391,12 @@ mixin _$LocalizedErrorMessage { /// Error type String? get type => throw _privateConstructorUsedError; + /// Serializes this LocalizedErrorMessage to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of LocalizedErrorMessage + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $LocalizedErrorMessageCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -396,6 +427,8 @@ class _$LocalizedErrorMessageCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of LocalizedErrorMessage + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -462,6 +495,8 @@ class __$$LocalizedErrorMessageImplCopyWithImpl<$Res> $Res Function(_$LocalizedErrorMessageImpl) _then) : super(_value, _then); + /// Create a copy of LocalizedErrorMessage + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -547,7 +582,7 @@ class _$LocalizedErrorMessageImpl implements _LocalizedErrorMessage { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$LocalizedErrorMessageImpl && @@ -562,12 +597,14 @@ class _$LocalizedErrorMessageImpl implements _LocalizedErrorMessage { (identical(other.type, type) || other.type == type)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, code, localizedMessage, message, stripeErrorCode, declineCode, type); - @JsonKey(ignore: true) + /// Create a copy of LocalizedErrorMessage + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$LocalizedErrorMessageImplCopyWith<_$LocalizedErrorMessageImpl> @@ -595,33 +632,35 @@ abstract class _LocalizedErrorMessage implements LocalizedErrorMessage { factory _LocalizedErrorMessage.fromJson(Map json) = _$LocalizedErrorMessageImpl.fromJson; - @override - /// The error code for example Cancelled + @override @JsonKey(unknownEnumValue: FailureCode.Unknown) FailureCode get code; - @override /// Localized error message if any - String? get localizedMessage; @override + String? get localizedMessage; /// Generic untranslated error message. - String? get message; @override + String? get message; /// Stripe error code - String? get stripeErrorCode; @override + String? get stripeErrorCode; /// Code in case payment is declined - String? get declineCode; @override + String? get declineCode; /// Error type + @override String? get type; + + /// Create a copy of LocalizedErrorMessage + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$LocalizedErrorMessageImplCopyWith<_$LocalizedErrorMessageImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_platform_interface/lib/src/models/financial_connections.dart b/packages/stripe_platform_interface/lib/src/models/financial_connections.dart index 3ddc28199..53d7bc60e 100644 --- a/packages/stripe_platform_interface/lib/src/models/financial_connections.dart +++ b/packages/stripe_platform_interface/lib/src/models/financial_connections.dart @@ -146,6 +146,7 @@ class BalanceRefresh with _$BalanceRefresh { _$BalanceRefreshFromJson(json); } +/// information related to the bank account @freezed class AccountBalance with _$AccountBalance { @JsonSerializable(explicitToJson: true) diff --git a/packages/stripe_platform_interface/lib/src/models/financial_connections.freezed.dart b/packages/stripe_platform_interface/lib/src/models/financial_connections.freezed.dart index 3cc802824..a2ea83baf 100644 --- a/packages/stripe_platform_interface/lib/src/models/financial_connections.freezed.dart +++ b/packages/stripe_platform_interface/lib/src/models/financial_connections.freezed.dart @@ -12,7 +12,7 @@ part of 'financial_connections.dart'; T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); FinancialConnectionSessionResult _$FinancialConnectionSessionResultFromJson( Map json) { @@ -23,8 +23,12 @@ FinancialConnectionSessionResult _$FinancialConnectionSessionResultFromJson( mixin _$FinancialConnectionSessionResult { FinancialConnectionSession get session => throw _privateConstructorUsedError; + /// Serializes this FinancialConnectionSessionResult to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of FinancialConnectionSessionResult + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $FinancialConnectionSessionResultCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -53,6 +57,8 @@ class _$FinancialConnectionSessionResultCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of FinancialConnectionSessionResult + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -66,6 +72,8 @@ class _$FinancialConnectionSessionResultCopyWithImpl<$Res, ) as $Val); } + /// Create a copy of FinancialConnectionSessionResult + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $FinancialConnectionSessionCopyWith<$Res> get session { @@ -100,6 +108,8 @@ class __$$FinancialConnectionSessionResultImplCopyWithImpl<$Res> $Res Function(_$FinancialConnectionSessionResultImpl) _then) : super(_value, _then); + /// Create a copy of FinancialConnectionSessionResult + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -134,18 +144,20 @@ class _$FinancialConnectionSessionResultImpl } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$FinancialConnectionSessionResultImpl && (identical(other.session, session) || other.session == session)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, session); - @JsonKey(ignore: true) + /// Create a copy of FinancialConnectionSessionResult + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$FinancialConnectionSessionResultImplCopyWith< @@ -173,8 +185,11 @@ abstract class _FinancialConnectionSessionResult @override FinancialConnectionSession get session; + + /// Create a copy of FinancialConnectionSessionResult + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$FinancialConnectionSessionResultImplCopyWith< _$FinancialConnectionSessionResultImpl> get copyWith => throw _privateConstructorUsedError; @@ -191,8 +206,12 @@ mixin _$FinancialConnectionTokenResult { FinancialConnectionBankAccountToken get token => throw _privateConstructorUsedError; + /// Serializes this FinancialConnectionTokenResult to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of FinancialConnectionTokenResult + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $FinancialConnectionTokenResultCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -224,6 +243,8 @@ class _$FinancialConnectionTokenResultCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of FinancialConnectionTokenResult + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -242,6 +263,8 @@ class _$FinancialConnectionTokenResultCopyWithImpl<$Res, ) as $Val); } + /// Create a copy of FinancialConnectionTokenResult + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $FinancialConnectionSessionCopyWith<$Res> get session { @@ -250,6 +273,8 @@ class _$FinancialConnectionTokenResultCopyWithImpl<$Res, }); } + /// Create a copy of FinancialConnectionTokenResult + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $FinancialConnectionBankAccountTokenCopyWith<$Res> get token { @@ -289,6 +314,8 @@ class __$$FinancialConnectionTokenResultImplCopyWithImpl<$Res> $Res Function(_$FinancialConnectionTokenResultImpl) _then) : super(_value, _then); + /// Create a copy of FinancialConnectionTokenResult + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -331,7 +358,7 @@ class _$FinancialConnectionTokenResultImpl } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$FinancialConnectionTokenResultImpl && @@ -339,11 +366,13 @@ class _$FinancialConnectionTokenResultImpl (identical(other.token, token) || other.token == token)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, session, token); - @JsonKey(ignore: true) + /// Create a copy of FinancialConnectionTokenResult + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$FinancialConnectionTokenResultImplCopyWith< @@ -373,8 +402,11 @@ abstract class _FinancialConnectionTokenResult FinancialConnectionSession get session; @override FinancialConnectionBankAccountToken get token; + + /// Create a copy of FinancialConnectionTokenResult + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$FinancialConnectionTokenResultImplCopyWith< _$FinancialConnectionTokenResultImpl> get copyWith => throw _privateConstructorUsedError; @@ -400,8 +432,12 @@ mixin _$FinancialConnectionSession { List get accounts => throw _privateConstructorUsedError; + /// Serializes this FinancialConnectionSession to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of FinancialConnectionSession + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $FinancialConnectionSessionCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -431,6 +467,8 @@ class _$FinancialConnectionSessionCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of FinancialConnectionSession + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -486,6 +524,8 @@ class __$$FinancialConnectionSessionImplCopyWithImpl<$Res> $Res Function(_$FinancialConnectionSessionImpl) _then) : super(_value, _then); + /// Create a copy of FinancialConnectionSession + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -559,7 +599,7 @@ class _$FinancialConnectionSessionImpl implements _FinancialConnectionSession { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$FinancialConnectionSessionImpl && @@ -571,12 +611,14 @@ class _$FinancialConnectionSessionImpl implements _FinancialConnectionSession { const DeepCollectionEquality().equals(other._accounts, _accounts)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, id, clientSecret, livemode, const DeepCollectionEquality().hash(_accounts)); - @JsonKey(ignore: true) + /// Create a copy of FinancialConnectionSession + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$FinancialConnectionSessionImplCopyWith<_$FinancialConnectionSessionImpl> @@ -603,24 +645,26 @@ abstract class _FinancialConnectionSession factory _FinancialConnectionSession.fromJson(Map json) = _$FinancialConnectionSessionImpl.fromJson; - @override - /// Unique id for this session - String get id; @override + String get id; /// The client secret of the session - String get clientSecret; @override + String get clientSecret; /// When `true` the object exists in livemode and when false the object exists in test mode. - bool get livemode; @override + bool get livemode; /// The accounts that were collected as part of this session + @override List get accounts; + + /// Create a copy of FinancialConnectionSession + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$FinancialConnectionSessionImplCopyWith<_$FinancialConnectionSessionImpl> get copyWith => throw _privateConstructorUsedError; } @@ -647,8 +691,12 @@ mixin _$FinancialConnectionBankAccountToken { /// The Unix timestamp (in milliseconds) of the date this token was created int? get created => throw _privateConstructorUsedError; + /// Serializes this FinancialConnectionBankAccountToken to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of FinancialConnectionBankAccountToken + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $FinancialConnectionBankAccountTokenCopyWith< FinancialConnectionBankAccountToken> get copyWith => throw _privateConstructorUsedError; @@ -683,6 +731,8 @@ class _$FinancialConnectionBankAccountTokenCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of FinancialConnectionBankAccountToken + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -716,6 +766,8 @@ class _$FinancialConnectionBankAccountTokenCopyWithImpl<$Res, ) as $Val); } + /// Create a copy of FinancialConnectionBankAccountToken + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $BankAccountCopyWith<$Res>? get bankAccount { @@ -759,6 +811,8 @@ class __$$FinancialConnectionBankAccountTokenImplCopyWithImpl<$Res> $Res Function(_$FinancialConnectionBankAccountTokenImpl) _then) : super(_value, _then); + /// Create a copy of FinancialConnectionBankAccountToken + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -835,7 +889,7 @@ class _$FinancialConnectionBankAccountTokenImpl } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$FinancialConnectionBankAccountTokenImpl && @@ -848,12 +902,14 @@ class _$FinancialConnectionBankAccountTokenImpl (identical(other.created, created) || other.created == created)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, bankAccount, livemode, id, used, created); - @JsonKey(ignore: true) + /// Create a copy of FinancialConnectionBankAccountToken + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$FinancialConnectionBankAccountTokenImplCopyWith< @@ -882,28 +938,30 @@ abstract class _FinancialConnectionBankAccountToken Map json) = _$FinancialConnectionBankAccountTokenImpl.fromJson; - @override - /// Bamkaccount details - BankAccount? get bankAccount; @override + BankAccount? get bankAccount; /// When `true` the object exists in livemode and when false the object exists in test mode. - bool get livemode; @override + bool get livemode; /// Unique id for this token. - String? get id; @override + String? get id; /// whether or not this token has been used - bool get used; @override + bool get used; /// The Unix timestamp (in milliseconds) of the date this token was created + @override int? get created; + + /// Create a copy of FinancialConnectionBankAccountToken + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$FinancialConnectionBankAccountTokenImplCopyWith< _$FinancialConnectionBankAccountTokenImpl> get copyWith => throw _privateConstructorUsedError; @@ -957,8 +1015,12 @@ mixin _$FinancialConnectionAccount { List get supportedPaymentMethodTypes => throw _privateConstructorUsedError; + /// Serializes this FinancialConnectionAccount to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of FinancialConnectionAccount + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $FinancialConnectionAccountCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -1000,6 +1062,8 @@ class _$FinancialConnectionAccountCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of FinancialConnectionAccount + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1073,6 +1137,8 @@ class _$FinancialConnectionAccountCopyWithImpl<$Res, ) as $Val); } + /// Create a copy of FinancialConnectionAccount + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $AccountBalanceCopyWith<$Res>? get balance { @@ -1085,6 +1151,8 @@ class _$FinancialConnectionAccountCopyWithImpl<$Res, }); } + /// Create a copy of FinancialConnectionAccount + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $BalanceRefreshCopyWith<$Res>? get balanceRefresh { @@ -1138,6 +1206,8 @@ class __$$FinancialConnectionAccountImplCopyWithImpl<$Res> $Res Function(_$FinancialConnectionAccountImpl) _then) : super(_value, _then); + /// Create a copy of FinancialConnectionAccount + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1314,7 +1384,7 @@ class _$FinancialConnectionAccountImpl implements _FinancialConnectionAccount { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$FinancialConnectionAccountImpl && @@ -1342,7 +1412,7 @@ class _$FinancialConnectionAccountImpl implements _FinancialConnectionAccount { _supportedPaymentMethodTypes)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash( runtimeType, @@ -1360,7 +1430,9 @@ class _$FinancialConnectionAccountImpl implements _FinancialConnectionAccount { const DeepCollectionEquality().hash(_permissions), const DeepCollectionEquality().hash(_supportedPaymentMethodTypes)); - @JsonKey(ignore: true) + /// Create a copy of FinancialConnectionAccount + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$FinancialConnectionAccountImplCopyWith<_$FinancialConnectionAccountImpl> @@ -1396,60 +1468,62 @@ abstract class _FinancialConnectionAccount factory _FinancialConnectionAccount.fromJson(Map json) = _$FinancialConnectionAccountImpl.fromJson; - @override - /// Unique id for this Financial connection account. - String get id; @override + String get id; /// Has the value true if the object exist in livemode. - bool get livemode; @override + bool get livemode; /// display name of the account. - String? get displayName; @override + String? get displayName; /// The current status of the account. - AccountStatus get status; @override + AccountStatus get status; /// The name of the financial institution. - String get institutionName; @override + String get institutionName; /// Last4 of the account number. - String? get last4; @override + String? get last4; /// Unix timestamp in milliseconds of the date this account was created. - int get created; @override + int get created; /// The balance of the account - AccountBalance? get balance; @override + AccountBalance? get balance; /// The last balance refresh. - BalanceRefresh? get balanceRefresh; @override + BalanceRefresh? get balanceRefresh; /// The category of this account - AccountCategory get category; @override + AccountCategory get category; /// The subcategory of this account, - AccountSubcategory get subcategory; @override + AccountSubcategory get subcategory; /// Permissions requested for accounts collected during this session. - List? get permissions; @override + List? get permissions; /// Support payment method types for this account. + @override List get supportedPaymentMethodTypes; + + /// Create a copy of FinancialConnectionAccount + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$FinancialConnectionAccountImplCopyWith<_$FinancialConnectionAccountImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1466,8 +1540,12 @@ mixin _$BalanceRefresh { /// Unix timestamp (in milliseconds) of the time of the last refresh attempt. int get lastAttemptedAt => throw _privateConstructorUsedError; + /// Serializes this BalanceRefresh to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of BalanceRefresh + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $BalanceRefreshCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -1491,6 +1569,8 @@ class _$BalanceRefreshCopyWithImpl<$Res, $Val extends BalanceRefresh> // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of BalanceRefresh + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1529,6 +1609,8 @@ class __$$BalanceRefreshImplCopyWithImpl<$Res> _$BalanceRefreshImpl _value, $Res Function(_$BalanceRefreshImpl) _then) : super(_value, _then); + /// Create a copy of BalanceRefresh + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1572,7 +1654,7 @@ class _$BalanceRefreshImpl implements _BalanceRefresh { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$BalanceRefreshImpl && @@ -1581,11 +1663,13 @@ class _$BalanceRefreshImpl implements _BalanceRefresh { other.lastAttemptedAt == lastAttemptedAt)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, status, lastAttemptedAt); - @JsonKey(ignore: true) + /// Create a copy of BalanceRefresh + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$BalanceRefreshImplCopyWith<_$BalanceRefreshImpl> get copyWith => @@ -1608,16 +1692,18 @@ abstract class _BalanceRefresh implements BalanceRefresh { factory _BalanceRefresh.fromJson(Map json) = _$BalanceRefreshImpl.fromJson; - @override - /// Status of the balance refresh attempt - BalanceRefreshStatus get status; @override + BalanceRefreshStatus get status; /// Unix timestamp (in milliseconds) of the time of the last refresh attempt. + @override int get lastAttemptedAt; + + /// Create a copy of BalanceRefresh + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$BalanceRefreshImplCopyWith<_$BalanceRefreshImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1653,8 +1739,12 @@ mixin _$AccountBalance { /// Each value is a integer amount. A positive amount indicates money owed to the account holder. A negative amount indicates money owed by the account holder. Map? get current => throw _privateConstructorUsedError; + /// Serializes this AccountBalance to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of AccountBalance + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $AccountBalanceCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -1683,6 +1773,8 @@ class _$AccountBalanceCopyWithImpl<$Res, $Val extends AccountBalance> // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of AccountBalance + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1741,6 +1833,8 @@ class __$$AccountBalanceImplCopyWithImpl<$Res> _$AccountBalanceImpl _value, $Res Function(_$AccountBalanceImpl) _then) : super(_value, _then); + /// Create a copy of AccountBalance + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1865,7 +1959,7 @@ class _$AccountBalanceImpl implements _AccountBalance { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$AccountBalanceImpl && @@ -1876,7 +1970,7 @@ class _$AccountBalanceImpl implements _AccountBalance { const DeepCollectionEquality().equals(other._current, _current)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash( runtimeType, @@ -1886,7 +1980,9 @@ class _$AccountBalanceImpl implements _AccountBalance { const DeepCollectionEquality().hash(_credit), const DeepCollectionEquality().hash(_current)); - @JsonKey(ignore: true) + /// Create a copy of AccountBalance + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$AccountBalanceImplCopyWith<_$AccountBalanceImpl> get copyWith => @@ -1912,38 +2008,40 @@ abstract class _AccountBalance implements AccountBalance { factory _AccountBalance.fromJson(Map json) = _$AccountBalanceImpl.fromJson; - @override - /// Unix timestamp in milliseconds of time the external instition calculated this balance. - int get asOf; @override + int get asOf; /// The type of balance. - BalanceType get type; @override + BalanceType get type; /// The funds available to the account holder. /// /// Typically this is the current balance less any holds. /// Each key is a three letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html) in lowercase. /// Each value is an integer amount. A positive amount indicates money owed to the account holder. A negative amount indicates money owed by the account holder. - Map? get cash; @override + Map? get cash; /// The credit that has been used by the account holder. /// /// Each key is a three letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html) in lowercase. /// Each value is a integer amount. A positive amount indicates money owed to the account holder. A negative amount indicates money owed by the account holder. - Map? get credit; @override + Map? get credit; /// The balances owed to (or by) the account holder. /// /// Each key is a three letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html) in lowercase. /// Each value is a integer amount. A positive amount indicates money owed to the account holder. A negative amount indicates money owed by the account holder. + @override Map? get current; + + /// Create a copy of AccountBalance + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$AccountBalanceImplCopyWith<_$AccountBalanceImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_platform_interface/lib/src/models/financial_connections.g.dart b/packages/stripe_platform_interface/lib/src/models/financial_connections.g.dart index c56fe6c92..102418b64 100644 --- a/packages/stripe_platform_interface/lib/src/models/financial_connections.g.dart +++ b/packages/stripe_platform_interface/lib/src/models/financial_connections.g.dart @@ -68,7 +68,7 @@ _$FinancialConnectionBankAccountTokenImpl livemode: json['livemode'] as bool, id: json['id'] as String?, used: json['used'] as bool, - created: json['created'] as int?, + created: (json['created'] as num?)?.toInt(), ); Map _$$FinancialConnectionBankAccountTokenImplToJson( @@ -90,7 +90,7 @@ _$FinancialConnectionAccountImpl _$$FinancialConnectionAccountImplFromJson( status: $enumDecode(_$AccountStatusEnumMap, json['status']), institutionName: json['institutionName'] as String, last4: json['last4'] as String?, - created: json['created'] as int, + created: (json['created'] as num).toInt(), balance: json['balance'] == null ? null : AccountBalance.fromJson(json['balance'] as Map), @@ -171,7 +171,7 @@ const _$FinancialConnectionsPaymentMethodTypeEnumMap = { _$BalanceRefreshImpl _$$BalanceRefreshImplFromJson(Map json) => _$BalanceRefreshImpl( status: $enumDecode(_$BalanceRefreshStatusEnumMap, json['status']), - lastAttemptedAt: json['lastAttemptedAt'] as int, + lastAttemptedAt: (json['lastAttemptedAt'] as num).toInt(), ); Map _$$BalanceRefreshImplToJson( @@ -189,16 +189,16 @@ const _$BalanceRefreshStatusEnumMap = { _$AccountBalanceImpl _$$AccountBalanceImplFromJson(Map json) => _$AccountBalanceImpl( - asOf: json['asOf'] as int, + asOf: (json['asOf'] as num).toInt(), type: $enumDecode(_$BalanceTypeEnumMap, json['type']), cash: (json['cash'] as Map?)?.map( - (k, e) => MapEntry(k, e as int), + (k, e) => MapEntry(k, (e as num).toInt()), ), credit: (json['credit'] as Map?)?.map( - (k, e) => MapEntry(k, e as int), + (k, e) => MapEntry(k, (e as num).toInt()), ), current: (json['current'] as Map?)?.map( - (k, e) => MapEntry(k, e as int), + (k, e) => MapEntry(k, (e as num).toInt()), ), ); diff --git a/packages/stripe_platform_interface/lib/src/models/google_pay.freezed.dart b/packages/stripe_platform_interface/lib/src/models/google_pay.freezed.dart index 3e2996c19..a7c8abed7 100644 --- a/packages/stripe_platform_interface/lib/src/models/google_pay.freezed.dart +++ b/packages/stripe_platform_interface/lib/src/models/google_pay.freezed.dart @@ -12,7 +12,7 @@ part of 'google_pay.dart'; T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); PresentGooglePayParams _$PresentGooglePayParamsFromJson( Map json) { @@ -33,8 +33,12 @@ mixin _$PresentGooglePayParams { /// For more details see: https://developers.google.com/pay/api/android/reference/request-objects#TransactionInfo . String? get currencyCode => throw _privateConstructorUsedError; + /// Serializes this PresentGooglePayParams to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of PresentGooglePayParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $PresentGooglePayParamsCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -59,6 +63,8 @@ class _$PresentGooglePayParamsCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of PresentGooglePayParams + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -105,6 +111,8 @@ class __$$PresentGooglePayParamsImplCopyWithImpl<$Res> $Res Function(_$PresentGooglePayParamsImpl) _then) : super(_value, _then); + /// Create a copy of PresentGooglePayParams + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -163,7 +171,7 @@ class _$PresentGooglePayParamsImpl implements _PresentGooglePayParams { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PresentGooglePayParamsImpl && @@ -175,12 +183,14 @@ class _$PresentGooglePayParamsImpl implements _PresentGooglePayParams { other.currencyCode == currencyCode)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, clientSecret, forSetupIntent, currencyCode); - @JsonKey(ignore: true) + /// Create a copy of PresentGooglePayParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PresentGooglePayParamsImplCopyWith<_$PresentGooglePayParamsImpl> @@ -204,23 +214,25 @@ abstract class _PresentGooglePayParams implements PresentGooglePayParams { factory _PresentGooglePayParams.fromJson(Map json) = _$PresentGooglePayParamsImpl.fromJson; - @override - /// The client is secret is used for handling the payment from the Client side. - String get clientSecret; @override + String get clientSecret; /// Determines whether to present Google Pay in order to confirm a [SetupIntent] /// or a [PaymentIntent]. - bool get forSetupIntent; @override + bool get forSetupIntent; /// When forSetupIntent is `true` it is required to provide a currencyCode. /// /// For more details see: https://developers.google.com/pay/api/android/reference/request-objects#TransactionInfo . + @override String? get currencyCode; + + /// Create a copy of PresentGooglePayParams + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$PresentGooglePayParamsImplCopyWith<_$PresentGooglePayParamsImpl> get copyWith => throw _privateConstructorUsedError; } @@ -257,8 +269,12 @@ mixin _$GooglePayInitParams { /// An optional amount to display for setup intents. Google Pay may or may not display this amount depending on its own internal logic. Defaults to 0 if none is provided. double? get amount => throw _privateConstructorUsedError; + /// Serializes this GooglePayInitParams to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of GooglePayInitParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $GooglePayInitParamsCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -292,6 +308,8 @@ class _$GooglePayInitParamsCopyWithImpl<$Res, $Val extends GooglePayInitParams> // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of GooglePayInitParams + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -340,6 +358,8 @@ class _$GooglePayInitParamsCopyWithImpl<$Res, $Val extends GooglePayInitParams> ) as $Val); } + /// Create a copy of GooglePayInitParams + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $BillingAddressConfigCopyWith<$Res>? get billingAddressConfig { @@ -384,6 +404,8 @@ class __$$GooglePayInitParamsImplCopyWithImpl<$Res> $Res Function(_$GooglePayInitParamsImpl) _then) : super(_value, _then); + /// Create a copy of GooglePayInitParams + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -492,7 +514,7 @@ class _$GooglePayInitParamsImpl implements _GooglePayInitParams { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$GooglePayInitParamsImpl && @@ -513,7 +535,7 @@ class _$GooglePayInitParamsImpl implements _GooglePayInitParams { (identical(other.amount, amount) || other.amount == amount)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash( runtimeType, @@ -526,7 +548,9 @@ class _$GooglePayInitParamsImpl implements _GooglePayInitParams { label, amount); - @JsonKey(ignore: true) + /// Create a copy of GooglePayInitParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$GooglePayInitParamsImplCopyWith<_$GooglePayInitParamsImpl> get copyWith => @@ -555,41 +579,43 @@ abstract class _GooglePayInitParams implements GooglePayInitParams { factory _GooglePayInitParams.fromJson(Map json) = _$GooglePayInitParamsImpl.fromJson; - @override - /// Merchant name - String get merchantName; @override + String get merchantName; /// ISO country code of the merchant - String get countryCode; @override + String get countryCode; /// Flag to use test environment or live environment. - bool get testEnv; @override + bool get testEnv; /// Configuration regarding collection of billing address, - BillingAddressConfig? get billingAddressConfig; @override + BillingAddressConfig? get billingAddressConfig; /// Flag to indicate wheter Google Pay should collect email of the customer. - bool get isEmailRequired; @override + bool get isEmailRequired; /// When `true` Google Pay is considered ready if the customers's Google Pay /// wallet has existing payment methods. - bool get existingPaymentMethodRequired; @override + bool get existingPaymentMethodRequired; /// An optional label to display with the amount. Google Pay may or may not display this label depending on its own internal logic. Defaults to a generic label if none is provided. - String? get label; @override + String? get label; /// An optional amount to display for setup intents. Google Pay may or may not display this amount depending on its own internal logic. Defaults to 0 if none is provided. + @override double? get amount; + + /// Create a copy of GooglePayInitParams + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$GooglePayInitParamsImplCopyWith<_$GooglePayInitParamsImpl> get copyWith => throw _privateConstructorUsedError; } @@ -611,8 +637,12 @@ mixin _$BillingAddressConfig { /// the transaction. bool? get isPhoneNumberRequired => throw _privateConstructorUsedError; + /// Serializes this BillingAddressConfig to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of BillingAddressConfig + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $BillingAddressConfigCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -640,6 +670,8 @@ class _$BillingAddressConfigCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of BillingAddressConfig + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -686,6 +718,8 @@ class __$$BillingAddressConfigImplCopyWithImpl<$Res> $Res Function(_$BillingAddressConfigImpl) _then) : super(_value, _then); + /// Create a copy of BillingAddressConfig + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -740,7 +774,7 @@ class _$BillingAddressConfigImpl implements _BillingAddressConfig { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$BillingAddressConfigImpl && @@ -751,12 +785,14 @@ class _$BillingAddressConfigImpl implements _BillingAddressConfig { other.isPhoneNumberRequired == isPhoneNumberRequired)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, isRequired, format, isPhoneNumberRequired); - @JsonKey(ignore: true) + /// Create a copy of BillingAddressConfig + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$BillingAddressConfigImplCopyWith<_$BillingAddressConfigImpl> @@ -781,22 +817,24 @@ abstract class _BillingAddressConfig implements BillingAddressConfig { factory _BillingAddressConfig.fromJson(Map json) = _$BillingAddressConfigImpl.fromJson; - @override - /// If `true` Google pay requires a Billing address in order to process the /// payment. - bool? get isRequired; @override + bool? get isRequired; /// Desired format - BillingAddressFormat? get format; @override + BillingAddressFormat? get format; /// If `true` customer needs to provide a phonenummer in order to process /// the transaction. + @override bool? get isPhoneNumberRequired; + + /// Create a copy of BillingAddressConfig + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$BillingAddressConfigImplCopyWith<_$BillingAddressConfigImpl> get copyWith => throw _privateConstructorUsedError; } @@ -819,8 +857,12 @@ mixin _$CreateGooglePayPaymentParams { /// in the smallest currency unit (e.g. cents for US dollar). int get amount => throw _privateConstructorUsedError; + /// Serializes this CreateGooglePayPaymentParams to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of CreateGooglePayPaymentParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $CreateGooglePayPaymentParamsCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -847,6 +889,8 @@ class _$CreateGooglePayPaymentParamsCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of CreateGooglePayPaymentParams + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -888,6 +932,8 @@ class __$$CreateGooglePayPaymentParamsImplCopyWithImpl<$Res> $Res Function(_$CreateGooglePayPaymentParamsImpl) _then) : super(_value, _then); + /// Create a copy of CreateGooglePayPaymentParams + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -938,7 +984,7 @@ class _$CreateGooglePayPaymentParamsImpl } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$CreateGooglePayPaymentParamsImpl && @@ -947,11 +993,13 @@ class _$CreateGooglePayPaymentParamsImpl (identical(other.amount, amount) || other.amount == amount)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, currencyCode, amount); - @JsonKey(ignore: true) + /// Create a copy of CreateGooglePayPaymentParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$CreateGooglePayPaymentParamsImplCopyWith< @@ -976,21 +1024,23 @@ abstract class _CreateGooglePayPaymentParams factory _CreateGooglePayPaymentParams.fromJson(Map json) = _$CreateGooglePayPaymentParamsImpl.fromJson; - @override - /// ISO 4217 alphabetic currency code. /// /// For example: `USD` - String get currencyCode; @override + String get currencyCode; /// Amount intended to be collected. /// /// The amount has to be a positive zero-digit integer representing the charge /// in the smallest currency unit (e.g. cents for US dollar). + @override int get amount; + + /// Create a copy of CreateGooglePayPaymentParams + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$CreateGooglePayPaymentParamsImplCopyWith< _$CreateGooglePayPaymentParamsImpl> get copyWith => throw _privateConstructorUsedError; @@ -1018,8 +1068,12 @@ mixin _$IsGooglePaySupportedParams { //NFC is required for paying in stores. Defaults to `true`. Set this to `false` bool get supportsTapToPay => throw _privateConstructorUsedError; + /// Serializes this IsGooglePaySupportedParams to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of IsGooglePaySupportedParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $IsGooglePaySupportedParamsCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -1048,6 +1102,8 @@ class _$IsGooglePaySupportedParamsCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of IsGooglePaySupportedParams + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1097,6 +1153,8 @@ class __$$IsGooglePaySupportedParamsImplCopyWithImpl<$Res> $Res Function(_$IsGooglePaySupportedParamsImpl) _then) : super(_value, _then); + /// Create a copy of IsGooglePaySupportedParams + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1161,7 +1219,7 @@ class _$IsGooglePaySupportedParamsImpl implements _IsGooglePaySupportedParams { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$IsGooglePaySupportedParamsImpl && @@ -1174,12 +1232,14 @@ class _$IsGooglePaySupportedParamsImpl implements _IsGooglePaySupportedParams { other.supportsTapToPay == supportsTapToPay)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash( runtimeType, testEnv, existingPaymentMethodRequired, supportsTapToPay); - @JsonKey(ignore: true) + /// Create a copy of IsGooglePaySupportedParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$IsGooglePaySupportedParamsImplCopyWith<_$IsGooglePaySupportedParamsImpl> @@ -1204,25 +1264,28 @@ abstract class _IsGooglePaySupportedParams factory _IsGooglePaySupportedParams.fromJson(Map json) = _$IsGooglePaySupportedParamsImpl.fromJson; - @override - /// Flag to use test environment or live environment. /// /// Defaults to `false`. - bool get testEnv; @override + bool get testEnv; /// When set to true Google pay is only considered ready in case the /// customers google Pay wallet has an existing payment method configured. /// /// Defaults to `false`. - bool get existingPaymentMethodRequired; - @override // When set to true it allow users without NFC-enabled devices to add cards to the wallet. + @override + bool + get existingPaymentMethodRequired; // When set to true it allow users without NFC-enabled devices to add cards to the wallet. // //NFC is required for paying in stores. Defaults to `true`. Set this to `false` + @override bool get supportsTapToPay; + + /// Create a copy of IsGooglePaySupportedParams + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$IsGooglePaySupportedParamsImplCopyWith<_$IsGooglePaySupportedParamsImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_platform_interface/lib/src/models/google_pay.g.dart b/packages/stripe_platform_interface/lib/src/models/google_pay.g.dart index 7f2074201..cd0417868 100644 --- a/packages/stripe_platform_interface/lib/src/models/google_pay.g.dart +++ b/packages/stripe_platform_interface/lib/src/models/google_pay.g.dart @@ -78,7 +78,7 @@ _$CreateGooglePayPaymentParamsImpl _$$CreateGooglePayPaymentParamsImplFromJson( Map json) => _$CreateGooglePayPaymentParamsImpl( currencyCode: json['currencyCode'] as String, - amount: json['amount'] as int, + amount: (json['amount'] as num).toInt(), ); Map _$$CreateGooglePayPaymentParamsImplToJson( diff --git a/packages/stripe_platform_interface/lib/src/models/intent_creation_callback_params.freezed.dart b/packages/stripe_platform_interface/lib/src/models/intent_creation_callback_params.freezed.dart index 6900aefca..d8b3c8c13 100644 --- a/packages/stripe_platform_interface/lib/src/models/intent_creation_callback_params.freezed.dart +++ b/packages/stripe_platform_interface/lib/src/models/intent_creation_callback_params.freezed.dart @@ -12,7 +12,7 @@ part of 'intent_creation_callback_params.dart'; T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); IntentCreationCallbackParams _$IntentCreationCallbackParamsFromJson( Map json) { @@ -27,8 +27,12 @@ mixin _$IntentCreationCallbackParams { /// Error that occurred during the creation of the payment intent or setup intent. StripeException? get error => throw _privateConstructorUsedError; + /// Serializes this IntentCreationCallbackParams to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of IntentCreationCallbackParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $IntentCreationCallbackParamsCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -57,6 +61,8 @@ class _$IntentCreationCallbackParamsCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of IntentCreationCallbackParams + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -75,6 +81,8 @@ class _$IntentCreationCallbackParamsCopyWithImpl<$Res, ) as $Val); } + /// Create a copy of IntentCreationCallbackParams + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $StripeExceptionCopyWith<$Res>? get error { @@ -113,6 +121,8 @@ class __$$IntentCreationCallbackParamsImplCopyWithImpl<$Res> $Res Function(_$IntentCreationCallbackParamsImpl) _then) : super(_value, _then); + /// Create a copy of IntentCreationCallbackParams + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -157,7 +167,7 @@ class _$IntentCreationCallbackParamsImpl } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$IntentCreationCallbackParamsImpl && @@ -166,11 +176,13 @@ class _$IntentCreationCallbackParamsImpl (identical(other.error, error) || other.error == error)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, clientSecret, error); - @JsonKey(ignore: true) + /// Create a copy of IntentCreationCallbackParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$IntentCreationCallbackParamsImplCopyWith< @@ -195,16 +207,18 @@ abstract class _IntentCreationCallbackParams factory _IntentCreationCallbackParams.fromJson(Map json) = _$IntentCreationCallbackParamsImpl.fromJson; - @override - /// Client secret of the payment intent or setup intent. - String? get clientSecret; @override + String? get clientSecret; /// Error that occurred during the creation of the payment intent or setup intent. + @override StripeException? get error; + + /// Create a copy of IntentCreationCallbackParams + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$IntentCreationCallbackParamsImplCopyWith< _$IntentCreationCallbackParamsImpl> get copyWith => throw _privateConstructorUsedError; diff --git a/packages/stripe_platform_interface/lib/src/models/next_action.freezed.dart b/packages/stripe_platform_interface/lib/src/models/next_action.freezed.dart index 9c80b3ac3..af8fca23b 100644 --- a/packages/stripe_platform_interface/lib/src/models/next_action.freezed.dart +++ b/packages/stripe_platform_interface/lib/src/models/next_action.freezed.dart @@ -12,7 +12,7 @@ part of 'next_action.dart'; T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); NextAction _$NextActionFromJson(Map json) { switch (json['type']) { @@ -105,6 +105,8 @@ mixin _$NextAction { required TResult orElse(), }) => throw _privateConstructorUsedError; + + /// Serializes this NextAction to a JSON map. Map toJson() => throw _privateConstructorUsedError; } @@ -124,6 +126,9 @@ class _$NextActionCopyWithImpl<$Res, $Val extends NextAction> final $Val _value; // ignore: unused_field final $Res Function($Val) _then; + + /// Create a copy of NextAction + /// with the given fields replaced by the non-null parameter values. } /// @nodoc @@ -143,6 +148,8 @@ class __$$NextActionRedirectImplCopyWithImpl<$Res> $Res Function(_$NextActionRedirectImpl) _then) : super(_value, _then); + /// Create a copy of NextAction + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -180,7 +187,7 @@ class _$NextActionRedirectImpl implements _NextActionRedirect { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$NextActionRedirectImpl && @@ -188,11 +195,13 @@ class _$NextActionRedirectImpl implements _NextActionRedirect { other.redirectUrl == redirectUrl)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, redirectUrl); - @JsonKey(ignore: true) + /// Create a copy of NextAction + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$NextActionRedirectImplCopyWith<_$NextActionRedirectImpl> get copyWith => @@ -310,7 +319,10 @@ abstract class _NextActionRedirect implements NextAction { /// Url to redirect to String? get redirectUrl; - @JsonKey(ignore: true) + + /// Create a copy of NextAction + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) _$$NextActionRedirectImplCopyWith<_$NextActionRedirectImpl> get copyWith => throw _privateConstructorUsedError; } @@ -332,6 +344,8 @@ class __$$NextActionOxxoImplCopyWithImpl<$Res> _$NextActionOxxoImpl _value, $Res Function(_$NextActionOxxoImpl) _then) : super(_value, _then); + /// Create a copy of NextAction + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -391,7 +405,7 @@ class _$NextActionOxxoImpl implements _NextActionOxxo { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$NextActionOxxoImpl && @@ -403,12 +417,14 @@ class _$NextActionOxxoImpl implements _NextActionOxxo { other.voucherNumber == voucherNumber)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, expiration, voucherURL, voucherNumber); - @JsonKey(ignore: true) + /// Create a copy of NextAction + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$NextActionOxxoImplCopyWith<_$NextActionOxxoImpl> get copyWith => @@ -534,7 +550,10 @@ abstract class _NextActionOxxo implements NextAction { /// Oxxo reference number String? get voucherNumber; - @JsonKey(ignore: true) + + /// Create a copy of NextAction + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) _$$NextActionOxxoImplCopyWith<_$NextActionOxxoImpl> get copyWith => throw _privateConstructorUsedError; } @@ -558,6 +577,8 @@ class __$$NextActionWeChatRedirectImplCopyWithImpl<$Res> $Res Function(_$NextActionWeChatRedirectImpl) _then) : super(_value, _then); + /// Create a copy of NextAction + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -595,7 +616,7 @@ class _$NextActionWeChatRedirectImpl implements _NextActionWeChatRedirect { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$NextActionWeChatRedirectImpl && @@ -603,11 +624,13 @@ class _$NextActionWeChatRedirectImpl implements _NextActionWeChatRedirect { other.redirectUrl == redirectUrl)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, redirectUrl); - @JsonKey(ignore: true) + /// Create a copy of NextAction + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$NextActionWeChatRedirectImplCopyWith<_$NextActionWeChatRedirectImpl> @@ -725,7 +748,10 @@ abstract class _NextActionWeChatRedirect implements NextAction { /// Url to the Qr code. String? get redirectUrl; - @JsonKey(ignore: true) + + /// Create a copy of NextAction + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) _$$NextActionWeChatRedirectImplCopyWith<_$NextActionWeChatRedirectImpl> get copyWith => throw _privateConstructorUsedError; } @@ -750,6 +776,8 @@ class __$$NextActionMicroDepositsImplCopyWithImpl<$Res> $Res Function(_$NextActionMicroDepositsImpl) _then) : super(_value, _then); + /// Create a copy of NextAction + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -809,7 +837,7 @@ class _$NextActionMicroDepositsImpl implements _NextActionMicroDeposits { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$NextActionMicroDepositsImpl && @@ -821,12 +849,14 @@ class _$NextActionMicroDepositsImpl implements _NextActionMicroDeposits { other.microdepositType == microdepositType)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, arrivalDate, redirectUrl, microdepositType); - @JsonKey(ignore: true) + /// Create a copy of NextAction + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$NextActionMicroDepositsImplCopyWith<_$NextActionMicroDepositsImpl> @@ -954,7 +984,10 @@ abstract class _NextActionMicroDeposits implements NextAction { /// The type of the microdeposit sent to the customer. String? get microdepositType; - @JsonKey(ignore: true) + + /// Create a copy of NextAction + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) _$$NextActionMicroDepositsImplCopyWith<_$NextActionMicroDepositsImpl> get copyWith => throw _privateConstructorUsedError; } @@ -976,6 +1009,8 @@ class __$$NextActionMultiBancoImplCopyWithImpl<$Res> $Res Function(_$NextActionMultiBancoImpl) _then) : super(_value, _then); + /// Create a copy of NextAction + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1013,7 +1048,7 @@ class _$NextActionMultiBancoImpl implements _NextActionMultiBanco { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$NextActionMultiBancoImpl && @@ -1021,11 +1056,13 @@ class _$NextActionMultiBancoImpl implements _NextActionMultiBanco { other.voucherURL == voucherURL)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, voucherURL); - @JsonKey(ignore: true) + /// Create a copy of NextAction + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$NextActionMultiBancoImplCopyWith<_$NextActionMultiBancoImpl> @@ -1144,7 +1181,10 @@ abstract class _NextActionMultiBanco implements NextAction { /// The URL for the hosted multibanco voucher page, which allows customers to view and print an multibanco voucher. String? get voucherURL; - @JsonKey(ignore: true) + + /// Create a copy of NextAction + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) _$$NextActionMultiBancoImplCopyWith<_$NextActionMultiBancoImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_platform_interface/lib/src/models/next_action.g.dart b/packages/stripe_platform_interface/lib/src/models/next_action.g.dart index a9288f6c8..0580b7f19 100644 --- a/packages/stripe_platform_interface/lib/src/models/next_action.g.dart +++ b/packages/stripe_platform_interface/lib/src/models/next_action.g.dart @@ -22,7 +22,7 @@ Map _$$NextActionRedirectImplToJson( _$NextActionOxxoImpl _$$NextActionOxxoImplFromJson(Map json) => _$NextActionOxxoImpl( - expiration: json['expiration'] as int?, + expiration: (json['expiration'] as num?)?.toInt(), voucherURL: json['voucherURL'] as String?, voucherNumber: json['voucherNumber'] as String?, $type: json['type'] as String?, 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 bf2012278..112b6bdea 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 @@ -12,7 +12,7 @@ part of 'payment_intents.dart'; T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); PaymentIntent _$PaymentIntentFromJson(Map json) { return _PaymentIntent.fromJson(json); @@ -75,8 +75,12 @@ mixin _$PaymentIntent { /// This field is only available on stripe web. String? get latestCharge => throw _privateConstructorUsedError; + /// Serializes this PaymentIntent to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of PaymentIntent + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $PaymentIntentCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -121,6 +125,8 @@ class _$PaymentIntentCopyWithImpl<$Res, $Val extends PaymentIntent> // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of PaymentIntent + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -214,6 +220,8 @@ class _$PaymentIntentCopyWithImpl<$Res, $Val extends PaymentIntent> ) as $Val); } + /// Create a copy of PaymentIntent + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $NextActionCopyWith<$Res>? get nextAction { @@ -226,6 +234,8 @@ class _$PaymentIntentCopyWithImpl<$Res, $Val extends PaymentIntent> }); } + /// Create a copy of PaymentIntent + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $ShippingDetailsCopyWith<$Res>? get shipping { @@ -238,6 +248,8 @@ class _$PaymentIntentCopyWithImpl<$Res, $Val extends PaymentIntent> }); } + /// Create a copy of PaymentIntent + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $MandateDataCopyWith<$Res>? get mandateData { @@ -294,6 +306,8 @@ class __$$PaymentIntentImplCopyWithImpl<$Res> _$PaymentIntentImpl _value, $Res Function(_$PaymentIntentImpl) _then) : super(_value, _then); + /// Create a copy of PaymentIntent + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -491,7 +505,7 @@ class _$PaymentIntentImpl implements _PaymentIntent { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PaymentIntentImpl && @@ -527,7 +541,7 @@ class _$PaymentIntentImpl implements _PaymentIntent { other.latestCharge == latestCharge)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash( runtimeType, @@ -549,7 +563,9 @@ class _$PaymentIntentImpl implements _PaymentIntent { mandateData, latestCharge); - @JsonKey(ignore: true) + /// Create a copy of PaymentIntent + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PaymentIntentImplCopyWith<_$PaymentIntentImpl> get copyWith => @@ -586,79 +602,81 @@ abstract class _PaymentIntent implements PaymentIntent { factory _PaymentIntent.fromJson(Map json) = _$PaymentIntentImpl.fromJson; - @override - /// Unique identifier. - String get id; @override + String get id; /// Amount that will be collected in the payment intent. - num get amount; @override + num get amount; /// Timestamp since epoch that represents the time the intent is created. - String get created; @override + String get created; /// The three letter ISO 4217 code for the currency. - String get currency; @override + String get currency; /// Current status of the intent. - PaymentIntentsStatus get status; @override + PaymentIntentsStatus get status; /// The client is secret is used for handling the payment from the Client side. - String get clientSecret; @override + String get clientSecret; /// Determines whether the intent is in live mode or in test mode. - bool get livemode; @override + bool get livemode; /// How the funds will be caputure from the customer's account. - CaptureMethod get captureMethod; @override + CaptureMethod get captureMethod; /// Method of how the payment will be confirmed. - ConfirmationMethod get confirmationMethod; @override + ConfirmationMethod get confirmationMethod; /// Id of the payment method used in this intent. - String? get paymentMethodId; @override + String? get paymentMethodId; /// Localized description that provides additional context to users. - String? get description; @override + String? get description; /// Email address where the receipt will be send to. - String? get receiptEmail; @override + String? get receiptEmail; /// Timestamp since epoch when the intent is cancelled. - String? get canceledAt; @override + String? get canceledAt; /// Additional action that needs to be taken in order to complete a payment /// using the provided resource. - NextAction? get nextAction; @override + NextAction? get nextAction; /// Shipping information of the payment intent. - ShippingDetails? get shipping; @override + ShippingDetails? get shipping; /// Mandata data for this paymentintent. - MandateData? get mandateData; @override + MandateData? get mandateData; /// The latest charge created by this payment intent. /// /// This field is only available on stripe web. + @override String? get latestCharge; + + /// Create a copy of PaymentIntent + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$PaymentIntentImplCopyWith<_$PaymentIntentImpl> get copyWith => throw _privateConstructorUsedError; } @@ -685,8 +703,12 @@ mixin _$ShippingDetails { /// with commas. String? get trackingNumber => throw _privateConstructorUsedError; + /// Serializes this ShippingDetails to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of ShippingDetails + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $ShippingDetailsCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -717,6 +739,8 @@ class _$ShippingDetailsCopyWithImpl<$Res, $Val extends ShippingDetails> // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of ShippingDetails + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -750,6 +774,8 @@ class _$ShippingDetailsCopyWithImpl<$Res, $Val extends ShippingDetails> ) as $Val); } + /// Create a copy of ShippingDetails + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $AddressCopyWith<$Res> get address { @@ -786,6 +812,8 @@ class __$$ShippingDetailsImplCopyWithImpl<$Res> _$ShippingDetailsImpl _value, $Res Function(_$ShippingDetailsImpl) _then) : super(_value, _then); + /// Create a copy of ShippingDetails + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -861,7 +889,7 @@ class _$ShippingDetailsImpl implements _ShippingDetails { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$ShippingDetailsImpl && @@ -873,12 +901,14 @@ class _$ShippingDetailsImpl implements _ShippingDetails { other.trackingNumber == trackingNumber)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, address, name, carrier, phone, trackingNumber); - @JsonKey(ignore: true) + /// Create a copy of ShippingDetails + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$ShippingDetailsImplCopyWith<_$ShippingDetailsImpl> get copyWith => @@ -904,29 +934,31 @@ abstract class _ShippingDetails implements ShippingDetails { factory _ShippingDetails.fromJson(Map json) = _$ShippingDetailsImpl.fromJson; - @override - /// Recipient address. - Address get address; @override + Address get address; /// Recipient name. - String? get name; @override + String? get name; /// Deliver service that will ship the product - String? get carrier; @override + String? get carrier; /// Recipient phone number. - String? get phone; @override + String? get phone; /// Tracking number of the shipment. If multiple tracking numbers separate them /// with commas. + @override String? get trackingNumber; + + /// Create a copy of ShippingDetails + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$ShippingDetailsImplCopyWith<_$ShippingDetailsImpl> get copyWith => throw _privateConstructorUsedError; } 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 7945e99cd..c6ae260b6 100644 --- a/packages/stripe_platform_interface/lib/src/models/payment_methods.dart +++ b/packages/stripe_platform_interface/lib/src/models/payment_methods.dart @@ -261,10 +261,10 @@ class UsBankAccount with _$UsBankAccount { String? last4, /// The bank account type of the holder - BankAccountHolderType? accountHolderType, + BankAccountHolderType? accountHolderType, /// The account type - UsBankAccountType? accountType, + UsBankAccountType? accountType, /// The name of the bank of the account String? bankName, 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 6ae7a85a1..5ea59f6b4 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 @@ -12,7 +12,7 @@ part of 'payment_methods.dart'; T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); PaymentMethod _$PaymentMethodFromJson(Map json) { return _PaymentMethod.fromJson(json); @@ -71,8 +71,12 @@ mixin _$PaymentMethod { /// Id related to the customer to which this paymentmethod has been saved. String? get customerId => throw _privateConstructorUsedError; + /// Serializes this PaymentMethod to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of PaymentMethod + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $PaymentMethodCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -121,6 +125,8 @@ class _$PaymentMethodCopyWithImpl<$Res, $Val extends PaymentMethod> // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of PaymentMethod + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -199,6 +205,8 @@ class _$PaymentMethodCopyWithImpl<$Res, $Val extends PaymentMethod> ) as $Val); } + /// Create a copy of PaymentMethod + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $BillingDetailsCopyWith<$Res> get billingDetails { @@ -207,6 +215,8 @@ class _$PaymentMethodCopyWithImpl<$Res, $Val extends PaymentMethod> }); } + /// Create a copy of PaymentMethod + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $CardCopyWith<$Res> get card { @@ -215,6 +225,8 @@ class _$PaymentMethodCopyWithImpl<$Res, $Val extends PaymentMethod> }); } + /// Create a copy of PaymentMethod + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $SepaDebitCopyWith<$Res> get sepaDebit { @@ -223,6 +235,8 @@ class _$PaymentMethodCopyWithImpl<$Res, $Val extends PaymentMethod> }); } + /// Create a copy of PaymentMethod + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $BacsDebitCopyWith<$Res> get bacsDebit { @@ -231,6 +245,8 @@ class _$PaymentMethodCopyWithImpl<$Res, $Val extends PaymentMethod> }); } + /// Create a copy of PaymentMethod + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $AuBecsDebitCopyWith<$Res> get auBecsDebit { @@ -239,6 +255,8 @@ class _$PaymentMethodCopyWithImpl<$Res, $Val extends PaymentMethod> }); } + /// Create a copy of PaymentMethod + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $SofortCopyWith<$Res> get sofort { @@ -247,6 +265,8 @@ class _$PaymentMethodCopyWithImpl<$Res, $Val extends PaymentMethod> }); } + /// Create a copy of PaymentMethod + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $IdealCopyWith<$Res> get ideal { @@ -255,6 +275,8 @@ class _$PaymentMethodCopyWithImpl<$Res, $Val extends PaymentMethod> }); } + /// Create a copy of PaymentMethod + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $FpxCopyWith<$Res> get fpx { @@ -263,6 +285,8 @@ class _$PaymentMethodCopyWithImpl<$Res, $Val extends PaymentMethod> }); } + /// Create a copy of PaymentMethod + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $UpiCopyWith<$Res> get upi { @@ -271,6 +295,8 @@ class _$PaymentMethodCopyWithImpl<$Res, $Val extends PaymentMethod> }); } + /// Create a copy of PaymentMethod + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $UsBankAccountCopyWith<$Res> get usBankAccount { @@ -334,6 +360,8 @@ class __$$PaymentMethodImplCopyWithImpl<$Res> _$PaymentMethodImpl _value, $Res Function(_$PaymentMethodImpl) _then) : super(_value, _then); + /// Create a copy of PaymentMethod + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -507,7 +535,7 @@ class _$PaymentMethodImpl implements _PaymentMethod { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PaymentMethodImpl && @@ -535,7 +563,7 @@ class _$PaymentMethodImpl implements _PaymentMethod { other.customerId == customerId)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash( runtimeType, @@ -554,7 +582,9 @@ class _$PaymentMethodImpl implements _PaymentMethod { usBankAccount, customerId); - @JsonKey(ignore: true) + /// Create a copy of PaymentMethod + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PaymentMethodImplCopyWith<_$PaymentMethodImpl> get copyWith => @@ -589,73 +619,75 @@ abstract class _PaymentMethod implements PaymentMethod { factory _PaymentMethod.fromJson(Map json) = _$PaymentMethodImpl.fromJson; - @override - /// Unique identifier. - String get id; @override + String get id; /// Whether or not the object exists in livemode. - bool get livemode; @override + bool get livemode; /// The type of the paymentmethod. - String get paymentMethodType; @override + String get paymentMethodType; /// Billing information related to the payment method. - BillingDetails get billingDetails; @override + BillingDetails get billingDetails; /// Containing additional data in case paymentmethod type is card. + @override @JsonKey(name: 'Card') Card get card; - @override /// Containing additional data in case paymentmethod type is sepa. + @override @JsonKey(name: 'SepaDebit') SepaDebit get sepaDebit; - @override /// Containing additional data in case paymentmethod type is Bacs debit. + @override @JsonKey(name: 'BacsDebit') BacsDebit get bacsDebit; - @override /// Containing additional data in case paymentmethod type is Aubecs debit. + @override @JsonKey(name: 'AuBecsDebit') AuBecsDebit get auBecsDebit; - @override /// Containing additional data in case paymentmethod type is sofort. + @override @JsonKey(name: 'Sofort') Sofort get sofort; - @override /// Containing additional data in case paymentmethod type is Ideal. + @override @JsonKey(name: 'Ideal') Ideal get ideal; - @override /// Containing additional data in case paymentmethod type is FPX. + @override @JsonKey(name: 'Fpx') Fpx get fpx; - @override /// Containing additional data in case paymentmethod type is UPI. + @override @JsonKey(name: 'Upi') Upi get upi; - @override /// Containing additional data in case paymentmethod type is Us bank account. + @override @JsonKey(name: 'USBankAccount') UsBankAccount get usBankAccount; - @override /// Id related to the customer to which this paymentmethod has been saved. + @override String? get customerId; + + /// Create a copy of PaymentMethod + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$PaymentMethodImplCopyWith<_$PaymentMethodImpl> get copyWith => throw _privateConstructorUsedError; } @@ -678,8 +710,12 @@ mixin _$BillingDetails { /// Full name. String? get name => throw _privateConstructorUsedError; + /// Serializes this BillingDetails to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of BillingDetails + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $BillingDetailsCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -705,6 +741,8 @@ class _$BillingDetailsCopyWithImpl<$Res, $Val extends BillingDetails> // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of BillingDetails + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -733,6 +771,8 @@ class _$BillingDetailsCopyWithImpl<$Res, $Val extends BillingDetails> ) as $Val); } + /// Create a copy of BillingDetails + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $AddressCopyWith<$Res>? get address { @@ -768,6 +808,8 @@ class __$$BillingDetailsImplCopyWithImpl<$Res> _$BillingDetailsImpl _value, $Res Function(_$BillingDetailsImpl) _then) : super(_value, _then); + /// Create a copy of BillingDetails + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -828,7 +870,7 @@ class _$BillingDetailsImpl implements _BillingDetails { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$BillingDetailsImpl && @@ -838,11 +880,13 @@ class _$BillingDetailsImpl implements _BillingDetails { (identical(other.name, name) || other.name == name)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, email, address, phone, name); - @JsonKey(ignore: true) + /// Create a copy of BillingDetails + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$BillingDetailsImplCopyWith<_$BillingDetailsImpl> get copyWith => @@ -867,24 +911,26 @@ abstract class _BillingDetails implements BillingDetails { factory _BillingDetails.fromJson(Map json) = _$BillingDetailsImpl.fromJson; - @override - /// Email address. - String? get email; @override + String? get email; /// Billing address. - Address? get address; @override + Address? get address; /// Billing phone number. - String? get phone; @override + String? get phone; /// Full name. + @override String? get name; + + /// Create a copy of BillingDetails + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$BillingDetailsImplCopyWith<_$BillingDetailsImpl> get copyWith => throw _privateConstructorUsedError; } @@ -904,8 +950,12 @@ mixin _$AuBecsDebit { /// Six digit number identifying the bank or branch for this account. String? get bsbNumber => throw _privateConstructorUsedError; + /// Serializes this AuBecsDebit to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of AuBecsDebit + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $AuBecsDebitCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -929,6 +979,8 @@ class _$AuBecsDebitCopyWithImpl<$Res, $Val extends AuBecsDebit> // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of AuBecsDebit + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -972,6 +1024,8 @@ class __$$AuBecsDebitImplCopyWithImpl<$Res> _$AuBecsDebitImpl _value, $Res Function(_$AuBecsDebitImpl) _then) : super(_value, _then); + /// Create a copy of AuBecsDebit + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1023,7 +1077,7 @@ class _$AuBecsDebitImpl implements _AuBecsDebit { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$AuBecsDebitImpl && @@ -1034,11 +1088,13 @@ class _$AuBecsDebitImpl implements _AuBecsDebit { other.bsbNumber == bsbNumber)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, fingerprint, last4, bsbNumber); - @JsonKey(ignore: true) + /// Create a copy of AuBecsDebit + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$AuBecsDebitImplCopyWith<_$AuBecsDebitImpl> get copyWith => @@ -1061,20 +1117,22 @@ abstract class _AuBecsDebit implements AuBecsDebit { factory _AuBecsDebit.fromJson(Map json) = _$AuBecsDebitImpl.fromJson; - @override - /// Unique identifier for the bankaccount. - String? get fingerprint; @override + String? get fingerprint; /// Last 4 digits of the bankaccount number. - String? get last4; @override + String? get last4; /// Six digit number identifying the bank or branch for this account. + @override String? get bsbNumber; + + /// Create a copy of AuBecsDebit + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$AuBecsDebitImplCopyWith<_$AuBecsDebitImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1094,8 +1152,12 @@ mixin _$BacsDebit { /// Last 4 digits of the bank account. String? get last4 => throw _privateConstructorUsedError; + /// Serializes this BacsDebit to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of BacsDebit + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $BacsDebitCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -1118,6 +1180,8 @@ class _$BacsDebitCopyWithImpl<$Res, $Val extends BacsDebit> // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of BacsDebit + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1161,6 +1225,8 @@ class __$$BacsDebitImplCopyWithImpl<$Res> _$BacsDebitImpl _value, $Res Function(_$BacsDebitImpl) _then) : super(_value, _then); + /// Create a copy of BacsDebit + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1212,7 +1278,7 @@ class _$BacsDebitImpl implements _BacsDebit { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$BacsDebitImpl && @@ -1223,11 +1289,13 @@ class _$BacsDebitImpl implements _BacsDebit { (identical(other.last4, last4) || other.last4 == last4)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, sortCode, fingerprint, last4); - @JsonKey(ignore: true) + /// Create a copy of BacsDebit + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$BacsDebitImplCopyWith<_$BacsDebitImpl> get copyWith => @@ -1250,20 +1318,22 @@ abstract class _BacsDebit implements BacsDebit { factory _BacsDebit.fromJson(Map json) = _$BacsDebitImpl.fromJson; - @override - /// Sort code of the bankaccount. - String? get sortCode; @override + String? get sortCode; /// Unique identifier for the bankaccount. - String? get fingerprint; @override + String? get fingerprint; /// Last 4 digits of the bank account. + @override String? get last4; + + /// Create a copy of BacsDebit + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$BacsDebitImplCopyWith<_$BacsDebitImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1302,8 +1372,12 @@ mixin _$Card { ThreeDSecureUsage? get threeDSecureUsage => throw _privateConstructorUsedError; + /// Serializes this Card to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of Card + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $CardCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -1336,6 +1410,8 @@ class _$CardCopyWithImpl<$Res, $Val extends Card> // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of Card + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1389,6 +1465,8 @@ class _$CardCopyWithImpl<$Res, $Val extends Card> ) as $Val); } + /// Create a copy of Card + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $ThreeDSecureUsageCopyWith<$Res>? get threeDSecureUsage { @@ -1431,6 +1509,8 @@ class __$$CardImplCopyWithImpl<$Res> __$$CardImplCopyWithImpl(_$CardImpl _value, $Res Function(_$CardImpl) _then) : super(_value, _then); + /// Create a copy of Card + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1556,7 +1636,7 @@ class _$CardImpl implements _Card { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$CardImpl && @@ -1575,7 +1655,7 @@ class _$CardImpl implements _Card { other.threeDSecureUsage == threeDSecureUsage)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash( runtimeType, @@ -1589,7 +1669,9 @@ class _$CardImpl implements _Card { const DeepCollectionEquality().hash(_availableNetworks), threeDSecureUsage); - @JsonKey(ignore: true) + /// Create a copy of Card + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$CardImplCopyWith<_$CardImpl> get copyWith => @@ -1617,44 +1699,46 @@ abstract class _Card implements Card { factory _Card.fromJson(Map json) = _$CardImpl.fromJson; - @override - /// The brand associated to the card e.g. (visa, amex). - String? get brand; @override + String? get brand; /// Two letter iso code. - String? get country; @override + String? get country; /// four digit number representing the year of expiry of the card. - int? get expYear; @override + int? get expYear; /// two digit number representing the month of expire of the card. - int? get expMonth; @override + int? get expMonth; /// card funding type e.g. (credit, debit). - String? get funding; @override + String? get funding; /// last four digits of the card. - String? get last4; @override + String? get last4; /// The preffered card brand for payment - String? get preferredNetwork; @override + String? get preferredNetwork; /// The available networks the card can run. - List? get availableNetworks; @override + List? get availableNetworks; /// Three 3ds usage data. + @override ThreeDSecureUsage? get threeDSecureUsage; + + /// Create a copy of Card + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$CardImplCopyWith<_$CardImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1671,8 +1755,12 @@ mixin _$Fpx { /// accountholder type String? get accountHolderType => throw _privateConstructorUsedError; + /// Serializes this Fpx to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of Fpx + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $FpxCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -1693,6 +1781,8 @@ class _$FpxCopyWithImpl<$Res, $Val extends Fpx> implements $FpxCopyWith<$Res> { // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of Fpx + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1727,6 +1817,8 @@ class __$$FpxImplCopyWithImpl<$Res> extends _$FpxCopyWithImpl<$Res, _$FpxImpl> __$$FpxImplCopyWithImpl(_$FpxImpl _value, $Res Function(_$FpxImpl) _then) : super(_value, _then); + /// Create a copy of Fpx + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1769,7 +1861,7 @@ class _$FpxImpl implements _Fpx { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$FpxImpl && @@ -1778,11 +1870,13 @@ class _$FpxImpl implements _Fpx { other.accountHolderType == accountHolderType)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, bank, accountHolderType); - @JsonKey(ignore: true) + /// Create a copy of Fpx + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$FpxImplCopyWith<_$FpxImpl> get copyWith => @@ -1802,16 +1896,18 @@ abstract class _Fpx implements Fpx { factory _Fpx.fromJson(Map json) = _$FpxImpl.fromJson; - @override - /// the customer bank - String? get bank; @override + String? get bank; /// accountholder type + @override String? get accountHolderType; + + /// Create a copy of Fpx + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$FpxImplCopyWith<_$FpxImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1828,8 +1924,12 @@ mixin _$Ideal { /// The bank of the customer String? get bank => throw _privateConstructorUsedError; + /// Serializes this Ideal to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of Ideal + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $IdealCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -1851,6 +1951,8 @@ class _$IdealCopyWithImpl<$Res, $Val extends Ideal> // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of Ideal + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1888,6 +1990,8 @@ class __$$IdealImplCopyWithImpl<$Res> _$IdealImpl _value, $Res Function(_$IdealImpl) _then) : super(_value, _then); + /// Create a copy of Ideal + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1930,7 +2034,7 @@ class _$IdealImpl implements _Ideal { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$IdealImpl && @@ -1939,11 +2043,13 @@ class _$IdealImpl implements _Ideal { (identical(other.bank, bank) || other.bank == bank)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, bankIdentifierCode, bank); - @JsonKey(ignore: true) + /// Create a copy of Ideal + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$IdealImplCopyWith<_$IdealImpl> get copyWith => @@ -1963,16 +2069,18 @@ abstract class _Ideal implements Ideal { factory _Ideal.fromJson(Map json) = _$IdealImpl.fromJson; - @override - /// The BIC code of the bank - String? get bankIdentifierCode; @override + String? get bankIdentifierCode; /// The bank of the customer + @override String? get bank; + + /// Create a copy of Ideal + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$IdealImplCopyWith<_$IdealImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1995,8 +2103,12 @@ mixin _$SepaDebit { /// Last four characters of IBAN. String? get last4 => throw _privateConstructorUsedError; + /// Serializes this SepaDebit to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of SepaDebit + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $SepaDebitCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -2020,6 +2132,8 @@ class _$SepaDebitCopyWithImpl<$Res, $Val extends SepaDebit> // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of SepaDebit + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -2069,6 +2183,8 @@ class __$$SepaDebitImplCopyWithImpl<$Res> _$SepaDebitImpl _value, $Res Function(_$SepaDebitImpl) _then) : super(_value, _then); + /// Create a copy of SepaDebit + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -2130,7 +2246,7 @@ class _$SepaDebitImpl implements _SepaDebit { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$SepaDebitImpl && @@ -2142,12 +2258,14 @@ class _$SepaDebitImpl implements _SepaDebit { (identical(other.last4, last4) || other.last4 == last4)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, country, bankCode, fingerprint, last4); - @JsonKey(ignore: true) + /// Create a copy of SepaDebit + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$SepaDebitImplCopyWith<_$SepaDebitImpl> get copyWith => @@ -2171,24 +2289,26 @@ abstract class _SepaDebit implements SepaDebit { factory _SepaDebit.fromJson(Map json) = _$SepaDebitImpl.fromJson; - @override - /// Two letter ISO code representing the country of the bank account. - String? get country; @override + String? get country; /// Bank code associated with the bankaccount. - String? get bankCode; @override + String? get bankCode; /// Unique ID for the bank account. - String? get fingerprint; @override + String? get fingerprint; /// Last four characters of IBAN. + @override String? get last4; + + /// Create a copy of SepaDebit + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$SepaDebitImplCopyWith<_$SepaDebitImpl> get copyWith => throw _privateConstructorUsedError; } @@ -2202,8 +2322,12 @@ mixin _$Sofort { /// Two letter ISO code representing the country of the bank account. String? get country => throw _privateConstructorUsedError; + /// Serializes this Sofort to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of Sofort + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $SofortCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -2225,6 +2349,8 @@ class _$SofortCopyWithImpl<$Res, $Val extends Sofort> // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of Sofort + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -2257,6 +2383,8 @@ class __$$SofortImplCopyWithImpl<$Res> _$SofortImpl _value, $Res Function(_$SofortImpl) _then) : super(_value, _then); + /// Create a copy of Sofort + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -2290,18 +2418,20 @@ class _$SofortImpl implements _Sofort { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$SofortImpl && (identical(other.country, country) || other.country == country)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, country); - @JsonKey(ignore: true) + /// Create a copy of Sofort + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$SofortImplCopyWith<_$SofortImpl> get copyWith => @@ -2320,12 +2450,14 @@ abstract class _Sofort implements Sofort { factory _Sofort.fromJson(Map json) = _$SofortImpl.fromJson; - @override - /// Two letter ISO code representing the country of the bank account. + @override String? get country; + + /// Create a copy of Sofort + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$SofortImplCopyWith<_$SofortImpl> get copyWith => throw _privateConstructorUsedError; } @@ -2339,8 +2471,12 @@ mixin _$Upi { /// The customer's vpa. String? get vpa => throw _privateConstructorUsedError; + /// Serializes this Upi to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of Upi + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $UpiCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -2361,6 +2497,8 @@ class _$UpiCopyWithImpl<$Res, $Val extends Upi> implements $UpiCopyWith<$Res> { // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of Upi + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -2390,6 +2528,8 @@ class __$$UpiImplCopyWithImpl<$Res> extends _$UpiCopyWithImpl<$Res, _$UpiImpl> __$$UpiImplCopyWithImpl(_$UpiImpl _value, $Res Function(_$UpiImpl) _then) : super(_value, _then); + /// Create a copy of Upi + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -2423,18 +2563,20 @@ class _$UpiImpl implements _Upi { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$UpiImpl && (identical(other.vpa, vpa) || other.vpa == vpa)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, vpa); - @JsonKey(ignore: true) + /// Create a copy of Upi + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$UpiImplCopyWith<_$UpiImpl> get copyWith => @@ -2453,12 +2595,14 @@ abstract class _Upi implements Upi { factory _Upi.fromJson(Map json) = _$UpiImpl.fromJson; - @override - /// The customer's vpa. + @override String? get vpa; + + /// Create a copy of Upi + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$UpiImplCopyWith<_$UpiImpl> get copyWith => throw _privateConstructorUsedError; } @@ -2497,8 +2641,12 @@ mixin _$UsBankAccount { /// list of preferred network names List? get supportedNetworks => throw _privateConstructorUsedError; + /// Serializes this UsBankAccount to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of UsBankAccount + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $UsBankAccountCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -2531,6 +2679,8 @@ class _$UsBankAccountCopyWithImpl<$Res, $Val extends UsBankAccount> // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of UsBankAccount + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -2613,6 +2763,8 @@ class __$$UsBankAccountImplCopyWithImpl<$Res> _$UsBankAccountImpl _value, $Res Function(_$UsBankAccountImpl) _then) : super(_value, _then); + /// Create a copy of UsBankAccount + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -2738,7 +2890,7 @@ class _$UsBankAccountImpl implements _UsBankAccount { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$UsBankAccountImpl && @@ -2761,7 +2913,7 @@ class _$UsBankAccountImpl implements _UsBankAccount { .equals(other._supportedNetworks, _supportedNetworks)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash( runtimeType, @@ -2775,7 +2927,9 @@ class _$UsBankAccountImpl implements _UsBankAccount { preferredNetwork, const DeepCollectionEquality().hash(_supportedNetworks)); - @JsonKey(ignore: true) + /// Create a copy of UsBankAccount + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$UsBankAccountImplCopyWith<_$UsBankAccountImpl> get copyWith => @@ -2804,44 +2958,46 @@ abstract class _UsBankAccount implements UsBankAccount { factory _UsBankAccount.fromJson(Map json) = _$UsBankAccountImpl.fromJson; - @override - /// Routing number of the bank account - String? get routingNumber; @override + String? get routingNumber; /// Last 4 digits of the account - String? get last4; @override + String? get last4; /// The bank account type of the holder - BankAccountHolderType? get accountHolderType; @override + BankAccountHolderType? get accountHolderType; /// The account type - UsBankAccountType? get accountType; @override + UsBankAccountType? get accountType; /// The name of the bank of the account - String? get bankName; @override + String? get bankName; /// Unique identifier for the bankaccount. - String? get fingerprint; @override + String? get fingerprint; /// Number of linkedaccount - String? get linkedAccount; @override + String? get linkedAccount; /// list of preferred network - String? get preferredNetwork; @override + String? get preferredNetwork; /// list of preferred network names + @override List? get supportedNetworks; + + /// Create a copy of UsBankAccount + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$UsBankAccountImplCopyWith<_$UsBankAccountImpl> get copyWith => throw _privateConstructorUsedError; } @@ -3083,6 +3239,8 @@ mixin _$PaymentMethodParams { required TResult orElse(), }) => throw _privateConstructorUsedError; + + /// Serializes this PaymentMethodParams to a JSON map. Map toJson() => throw _privateConstructorUsedError; } @@ -3102,6 +3260,9 @@ class _$PaymentMethodParamsCopyWithImpl<$Res, $Val extends PaymentMethodParams> final $Val _value; // ignore: unused_field final $Res Function($Val) _then; + + /// Create a copy of PaymentMethodParams + /// with the given fields replaced by the non-null parameter values. } /// @nodoc @@ -3126,6 +3287,8 @@ class __$$PaymentMethodParamsCardImplCopyWithImpl<$Res> $Res Function(_$PaymentMethodParamsCardImpl) _then) : super(_value, _then); + /// Create a copy of PaymentMethodParams + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -3139,6 +3302,8 @@ class __$$PaymentMethodParamsCardImplCopyWithImpl<$Res> )); } + /// Create a copy of PaymentMethodParams + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentMethodDataCopyWith<$Res> get paymentMethodData { @@ -3172,7 +3337,7 @@ class _$PaymentMethodParamsCardImpl implements _PaymentMethodParamsCard { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PaymentMethodParamsCardImpl && @@ -3180,11 +3345,13 @@ class _$PaymentMethodParamsCardImpl implements _PaymentMethodParamsCard { other.paymentMethodData == paymentMethodData)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, paymentMethodData); - @JsonKey(ignore: true) + /// Create a copy of PaymentMethodParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PaymentMethodParamsCardImplCopyWith<_$PaymentMethodParamsCardImpl> @@ -3408,11 +3575,13 @@ abstract class _PaymentMethodParamsCard implements PaymentMethodParams { factory _PaymentMethodParamsCard.fromJson(Map json) = _$PaymentMethodParamsCardImpl.fromJson; - @override - /// Paymentmethod data for this paymentmethod. + @override PaymentMethodData get paymentMethodData; - @JsonKey(ignore: true) + + /// Create a copy of PaymentMethodParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) _$$PaymentMethodParamsCardImplCopyWith<_$PaymentMethodParamsCardImpl> get copyWith => throw _privateConstructorUsedError; } @@ -3439,6 +3608,8 @@ class __$$PaymentMethodParamsCardWithTokenImplCopyWithImpl<$Res> $Res Function(_$PaymentMethodParamsCardWithTokenImpl) _then) : super(_value, _then); + /// Create a copy of PaymentMethodParams + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -3452,6 +3623,8 @@ class __$$PaymentMethodParamsCardWithTokenImplCopyWithImpl<$Res> )); } + /// Create a copy of PaymentMethodParams + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentMethodDataCardFromTokenCopyWith<$Res> get paymentMethodData { @@ -3488,7 +3661,7 @@ class _$PaymentMethodParamsCardWithTokenImpl } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PaymentMethodParamsCardWithTokenImpl && @@ -3496,11 +3669,13 @@ class _$PaymentMethodParamsCardWithTokenImpl other.paymentMethodData == paymentMethodData)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, paymentMethodData); - @JsonKey(ignore: true) + /// Create a copy of PaymentMethodParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PaymentMethodParamsCardWithTokenImplCopyWith< @@ -3727,11 +3902,13 @@ abstract class _PaymentMethodParamsCardWithToken Map json) = _$PaymentMethodParamsCardWithTokenImpl.fromJson; - @override - /// Paymentmethod data for this paymentmethod. + @override PaymentMethodDataCardFromToken get paymentMethodData; - @JsonKey(ignore: true) + + /// Create a copy of PaymentMethodParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) _$$PaymentMethodParamsCardWithTokenImplCopyWith< _$PaymentMethodParamsCardWithTokenImpl> get copyWith => throw _privateConstructorUsedError; @@ -3759,6 +3936,8 @@ class __$$PaymentMethodParamsCardWithMethodIdImplCopyWithImpl<$Res> $Res Function(_$PaymentMethodParamsCardWithMethodIdImpl) _then) : super(_value, _then); + /// Create a copy of PaymentMethodParams + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -3772,6 +3951,8 @@ class __$$PaymentMethodParamsCardWithMethodIdImplCopyWithImpl<$Res> )); } + /// Create a copy of PaymentMethodParams + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentMethodDataCardFromMethodCopyWith<$Res> get paymentMethodData { @@ -3808,7 +3989,7 @@ class _$PaymentMethodParamsCardWithMethodIdImpl } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PaymentMethodParamsCardWithMethodIdImpl && @@ -3816,11 +3997,13 @@ class _$PaymentMethodParamsCardWithMethodIdImpl other.paymentMethodData == paymentMethodData)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, paymentMethodData); - @JsonKey(ignore: true) + /// Create a copy of PaymentMethodParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PaymentMethodParamsCardWithMethodIdImplCopyWith< @@ -4047,11 +4230,13 @@ abstract class _PaymentMethodParamsCardWithMethodId Map json) = _$PaymentMethodParamsCardWithMethodIdImpl.fromJson; - @override - /// Payment method data object for card from payment method. + @override PaymentMethodDataCardFromMethod get paymentMethodData; - @JsonKey(ignore: true) + + /// Create a copy of PaymentMethodParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) _$$PaymentMethodParamsCardWithMethodIdImplCopyWith< _$PaymentMethodParamsCardWithMethodIdImpl> get copyWith => throw _privateConstructorUsedError; @@ -4079,6 +4264,8 @@ class __$$PaymentMethodParamsAlipayImplCopyWithImpl<$Res> $Res Function(_$PaymentMethodParamsAlipayImpl) _then) : super(_value, _then); + /// Create a copy of PaymentMethodParams + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -4092,6 +4279,8 @@ class __$$PaymentMethodParamsAlipayImplCopyWithImpl<$Res> )); } + /// Create a copy of PaymentMethodParams + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentMethodDataCopyWith<$Res> get paymentMethodData { @@ -4125,7 +4314,7 @@ class _$PaymentMethodParamsAlipayImpl implements _PaymentMethodParamsAlipay { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PaymentMethodParamsAlipayImpl && @@ -4133,11 +4322,13 @@ class _$PaymentMethodParamsAlipayImpl implements _PaymentMethodParamsAlipay { other.paymentMethodData == paymentMethodData)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, paymentMethodData); - @JsonKey(ignore: true) + /// Create a copy of PaymentMethodParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PaymentMethodParamsAlipayImplCopyWith<_$PaymentMethodParamsAlipayImpl> @@ -4361,11 +4552,13 @@ abstract class _PaymentMethodParamsAlipay implements PaymentMethodParams { factory _PaymentMethodParamsAlipay.fromJson(Map json) = _$PaymentMethodParamsAlipayImpl.fromJson; - @override - /// Paymentmethod data for this paymentmethod. + @override PaymentMethodData get paymentMethodData; - @JsonKey(ignore: true) + + /// Create a copy of PaymentMethodParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) _$$PaymentMethodParamsAlipayImplCopyWith<_$PaymentMethodParamsAlipayImpl> get copyWith => throw _privateConstructorUsedError; } @@ -4392,6 +4585,8 @@ class __$$PaymentMethodParamsCashAppPayImplCopyWithImpl<$Res> $Res Function(_$PaymentMethodParamsCashAppPayImpl) _then) : super(_value, _then); + /// Create a copy of PaymentMethodParams + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -4405,6 +4600,8 @@ class __$$PaymentMethodParamsCashAppPayImplCopyWithImpl<$Res> )); } + /// Create a copy of PaymentMethodParams + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentMethodDataCopyWith<$Res> get paymentMethodData { @@ -4440,7 +4637,7 @@ class _$PaymentMethodParamsCashAppPayImpl } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PaymentMethodParamsCashAppPayImpl && @@ -4448,11 +4645,13 @@ class _$PaymentMethodParamsCashAppPayImpl other.paymentMethodData == paymentMethodData)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, paymentMethodData); - @JsonKey(ignore: true) + /// Create a copy of PaymentMethodParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PaymentMethodParamsCashAppPayImplCopyWith< @@ -4677,11 +4876,13 @@ abstract class _PaymentMethodParamsCashAppPay implements PaymentMethodParams { factory _PaymentMethodParamsCashAppPay.fromJson(Map json) = _$PaymentMethodParamsCashAppPayImpl.fromJson; - @override - /// Paymentmethod data for this paymentmethod. + @override PaymentMethodData get paymentMethodData; - @JsonKey(ignore: true) + + /// Create a copy of PaymentMethodParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) _$$PaymentMethodParamsCashAppPayImplCopyWith< _$PaymentMethodParamsCashAppPayImpl> get copyWith => throw _privateConstructorUsedError; @@ -4709,6 +4910,8 @@ class __$$PaymentMethodParamsIdealImplCopyWithImpl<$Res> $Res Function(_$PaymentMethodParamsIdealImpl) _then) : super(_value, _then); + /// Create a copy of PaymentMethodParams + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -4722,6 +4925,8 @@ class __$$PaymentMethodParamsIdealImplCopyWithImpl<$Res> )); } + /// Create a copy of PaymentMethodParams + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentMethodDataIdealCopyWith<$Res> get paymentMethodData { @@ -4756,7 +4961,7 @@ class _$PaymentMethodParamsIdealImpl implements _PaymentMethodParamsIdeal { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PaymentMethodParamsIdealImpl && @@ -4764,11 +4969,13 @@ class _$PaymentMethodParamsIdealImpl implements _PaymentMethodParamsIdeal { other.paymentMethodData == paymentMethodData)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, paymentMethodData); - @JsonKey(ignore: true) + /// Create a copy of PaymentMethodParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PaymentMethodParamsIdealImplCopyWith<_$PaymentMethodParamsIdealImpl> @@ -4992,11 +5199,13 @@ abstract class _PaymentMethodParamsIdeal implements PaymentMethodParams { factory _PaymentMethodParamsIdeal.fromJson(Map json) = _$PaymentMethodParamsIdealImpl.fromJson; - @override - /// Paymentmethod data for this paymentmethod. + @override PaymentMethodDataIdeal get paymentMethodData; - @JsonKey(ignore: true) + + /// Create a copy of PaymentMethodParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) _$$PaymentMethodParamsIdealImplCopyWith<_$PaymentMethodParamsIdealImpl> get copyWith => throw _privateConstructorUsedError; } @@ -5023,6 +5232,8 @@ class __$$PaymentMethodParamsAubecsImplCopyWithImpl<$Res> $Res Function(_$PaymentMethodParamsAubecsImpl) _then) : super(_value, _then); + /// Create a copy of PaymentMethodParams + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -5036,6 +5247,8 @@ class __$$PaymentMethodParamsAubecsImplCopyWithImpl<$Res> )); } + /// Create a copy of PaymentMethodParams + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentMethodDataAubecsCopyWith<$Res> get paymentMethodData { @@ -5070,7 +5283,7 @@ class _$PaymentMethodParamsAubecsImpl implements _PaymentMethodParamsAubecs { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PaymentMethodParamsAubecsImpl && @@ -5078,11 +5291,13 @@ class _$PaymentMethodParamsAubecsImpl implements _PaymentMethodParamsAubecs { other.paymentMethodData == paymentMethodData)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, paymentMethodData); - @JsonKey(ignore: true) + /// Create a copy of PaymentMethodParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PaymentMethodParamsAubecsImplCopyWith<_$PaymentMethodParamsAubecsImpl> @@ -5306,11 +5521,13 @@ abstract class _PaymentMethodParamsAubecs implements PaymentMethodParams { factory _PaymentMethodParamsAubecs.fromJson(Map json) = _$PaymentMethodParamsAubecsImpl.fromJson; - @override - /// Paymentmethod data for this paymentmethod. + @override PaymentMethodDataAubecs get paymentMethodData; - @JsonKey(ignore: true) + + /// Create a copy of PaymentMethodParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) _$$PaymentMethodParamsAubecsImplCopyWith<_$PaymentMethodParamsAubecsImpl> get copyWith => throw _privateConstructorUsedError; } @@ -5337,6 +5554,8 @@ class __$$PaymentMethodParamsBankContactImplCopyWithImpl<$Res> $Res Function(_$PaymentMethodParamsBankContactImpl) _then) : super(_value, _then); + /// Create a copy of PaymentMethodParams + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -5350,6 +5569,8 @@ class __$$PaymentMethodParamsBankContactImplCopyWithImpl<$Res> )); } + /// Create a copy of PaymentMethodParams + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentMethodDataCopyWith<$Res> get paymentMethodData { @@ -5385,7 +5606,7 @@ class _$PaymentMethodParamsBankContactImpl } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PaymentMethodParamsBankContactImpl && @@ -5393,11 +5614,13 @@ class _$PaymentMethodParamsBankContactImpl other.paymentMethodData == paymentMethodData)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, paymentMethodData); - @JsonKey(ignore: true) + /// Create a copy of PaymentMethodParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PaymentMethodParamsBankContactImplCopyWith< @@ -5622,11 +5845,13 @@ abstract class _PaymentMethodParamsBankContact implements PaymentMethodParams { factory _PaymentMethodParamsBankContact.fromJson(Map json) = _$PaymentMethodParamsBankContactImpl.fromJson; - @override - /// Paymentmethod data for this paymentmethod. + @override PaymentMethodData get paymentMethodData; - @JsonKey(ignore: true) + + /// Create a copy of PaymentMethodParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) _$$PaymentMethodParamsBankContactImplCopyWith< _$PaymentMethodParamsBankContactImpl> get copyWith => throw _privateConstructorUsedError; @@ -5654,6 +5879,8 @@ class __$$PaymentMethodParamsGiroPayImplCopyWithImpl<$Res> $Res Function(_$PaymentMethodParamsGiroPayImpl) _then) : super(_value, _then); + /// Create a copy of PaymentMethodParams + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -5667,6 +5894,8 @@ class __$$PaymentMethodParamsGiroPayImplCopyWithImpl<$Res> )); } + /// Create a copy of PaymentMethodParams + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentMethodDataCopyWith<$Res> get paymentMethodData { @@ -5701,7 +5930,7 @@ class _$PaymentMethodParamsGiroPayImpl implements _PaymentMethodParamsGiroPay { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PaymentMethodParamsGiroPayImpl && @@ -5709,11 +5938,13 @@ class _$PaymentMethodParamsGiroPayImpl implements _PaymentMethodParamsGiroPay { other.paymentMethodData == paymentMethodData)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, paymentMethodData); - @JsonKey(ignore: true) + /// Create a copy of PaymentMethodParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PaymentMethodParamsGiroPayImplCopyWith<_$PaymentMethodParamsGiroPayImpl> @@ -5937,11 +6168,13 @@ abstract class _PaymentMethodParamsGiroPay implements PaymentMethodParams { factory _PaymentMethodParamsGiroPay.fromJson(Map json) = _$PaymentMethodParamsGiroPayImpl.fromJson; - @override - /// Paymentmethod data for this paymentmethod. + @override PaymentMethodData get paymentMethodData; - @JsonKey(ignore: true) + + /// Create a copy of PaymentMethodParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) _$$PaymentMethodParamsGiroPayImplCopyWith<_$PaymentMethodParamsGiroPayImpl> get copyWith => throw _privateConstructorUsedError; } @@ -5968,6 +6201,8 @@ class __$$PaymentMethodParamsEpsImplCopyWithImpl<$Res> $Res Function(_$PaymentMethodParamsEpsImpl) _then) : super(_value, _then); + /// Create a copy of PaymentMethodParams + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -5981,6 +6216,8 @@ class __$$PaymentMethodParamsEpsImplCopyWithImpl<$Res> )); } + /// Create a copy of PaymentMethodParams + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentMethodDataCopyWith<$Res> get paymentMethodData { @@ -6014,7 +6251,7 @@ class _$PaymentMethodParamsEpsImpl implements _PaymentMethodParamsEps { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PaymentMethodParamsEpsImpl && @@ -6022,11 +6259,13 @@ class _$PaymentMethodParamsEpsImpl implements _PaymentMethodParamsEps { other.paymentMethodData == paymentMethodData)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, paymentMethodData); - @JsonKey(ignore: true) + /// Create a copy of PaymentMethodParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PaymentMethodParamsEpsImplCopyWith<_$PaymentMethodParamsEpsImpl> @@ -6250,11 +6489,13 @@ abstract class _PaymentMethodParamsEps implements PaymentMethodParams { factory _PaymentMethodParamsEps.fromJson(Map json) = _$PaymentMethodParamsEpsImpl.fromJson; - @override - /// Paymentmethod data for this paymentmethod. + @override PaymentMethodData get paymentMethodData; - @JsonKey(ignore: true) + + /// Create a copy of PaymentMethodParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) _$$PaymentMethodParamsEpsImplCopyWith<_$PaymentMethodParamsEpsImpl> get copyWith => throw _privateConstructorUsedError; } @@ -6281,6 +6522,8 @@ class __$$PaymentMethodParamsAffirmImplCopyWithImpl<$Res> $Res Function(_$PaymentMethodParamsAffirmImpl) _then) : super(_value, _then); + /// Create a copy of PaymentMethodParams + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -6294,6 +6537,8 @@ class __$$PaymentMethodParamsAffirmImplCopyWithImpl<$Res> )); } + /// Create a copy of PaymentMethodParams + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentMethodDataCopyWith<$Res> get paymentMethodData { @@ -6327,7 +6572,7 @@ class _$PaymentMethodParamsAffirmImpl implements _PaymentMethodParamsAffirm { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PaymentMethodParamsAffirmImpl && @@ -6335,11 +6580,13 @@ class _$PaymentMethodParamsAffirmImpl implements _PaymentMethodParamsAffirm { other.paymentMethodData == paymentMethodData)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, paymentMethodData); - @JsonKey(ignore: true) + /// Create a copy of PaymentMethodParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PaymentMethodParamsAffirmImplCopyWith<_$PaymentMethodParamsAffirmImpl> @@ -6563,11 +6810,13 @@ abstract class _PaymentMethodParamsAffirm implements PaymentMethodParams { factory _PaymentMethodParamsAffirm.fromJson(Map json) = _$PaymentMethodParamsAffirmImpl.fromJson; - @override - /// Paymentmethod data for this paymentmethod. + @override PaymentMethodData get paymentMethodData; - @JsonKey(ignore: true) + + /// Create a copy of PaymentMethodParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) _$$PaymentMethodParamsAffirmImplCopyWith<_$PaymentMethodParamsAffirmImpl> get copyWith => throw _privateConstructorUsedError; } @@ -6594,6 +6843,8 @@ class __$$PaymentMethodParamsPayImplCopyWithImpl<$Res> $Res Function(_$PaymentMethodParamsPayImpl) _then) : super(_value, _then); + /// Create a copy of PaymentMethodParams + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -6607,6 +6858,8 @@ class __$$PaymentMethodParamsPayImplCopyWithImpl<$Res> )); } + /// Create a copy of PaymentMethodParams + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentMethodDataCopyWith<$Res> get paymentMethodData { @@ -6640,7 +6893,7 @@ class _$PaymentMethodParamsPayImpl implements _PaymentMethodParamsPay { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PaymentMethodParamsPayImpl && @@ -6648,11 +6901,13 @@ class _$PaymentMethodParamsPayImpl implements _PaymentMethodParamsPay { other.paymentMethodData == paymentMethodData)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, paymentMethodData); - @JsonKey(ignore: true) + /// Create a copy of PaymentMethodParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PaymentMethodParamsPayImplCopyWith<_$PaymentMethodParamsPayImpl> @@ -6876,11 +7131,13 @@ abstract class _PaymentMethodParamsPay implements PaymentMethodParams { factory _PaymentMethodParamsPay.fromJson(Map json) = _$PaymentMethodParamsPayImpl.fromJson; - @override - /// Paymentmethod data for this paymentmethod. + @override PaymentMethodData get paymentMethodData; - @JsonKey(ignore: true) + + /// Create a copy of PaymentMethodParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) _$$PaymentMethodParamsPayImplCopyWith<_$PaymentMethodParamsPayImpl> get copyWith => throw _privateConstructorUsedError; } @@ -6907,6 +7164,8 @@ class __$$PaymentMethodParamsP24ImplCopyWithImpl<$Res> $Res Function(_$PaymentMethodParamsP24Impl) _then) : super(_value, _then); + /// Create a copy of PaymentMethodParams + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -6920,6 +7179,8 @@ class __$$PaymentMethodParamsP24ImplCopyWithImpl<$Res> )); } + /// Create a copy of PaymentMethodParams + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentMethodDataCopyWith<$Res> get paymentMethodData { @@ -6953,7 +7214,7 @@ class _$PaymentMethodParamsP24Impl implements _PaymentMethodParamsP24 { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PaymentMethodParamsP24Impl && @@ -6961,11 +7222,13 @@ class _$PaymentMethodParamsP24Impl implements _PaymentMethodParamsP24 { other.paymentMethodData == paymentMethodData)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, paymentMethodData); - @JsonKey(ignore: true) + /// Create a copy of PaymentMethodParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PaymentMethodParamsP24ImplCopyWith<_$PaymentMethodParamsP24Impl> @@ -7189,11 +7452,13 @@ abstract class _PaymentMethodParamsP24 implements PaymentMethodParams { factory _PaymentMethodParamsP24.fromJson(Map json) = _$PaymentMethodParamsP24Impl.fromJson; - @override - /// Paymentmethod data for this paymentmethod. + @override PaymentMethodData get paymentMethodData; - @JsonKey(ignore: true) + + /// Create a copy of PaymentMethodParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) _$$PaymentMethodParamsP24ImplCopyWith<_$PaymentMethodParamsP24Impl> get copyWith => throw _privateConstructorUsedError; } @@ -7220,6 +7485,8 @@ class __$$PaymentMethodParamsFpxImplCopyWithImpl<$Res> $Res Function(_$PaymentMethodParamsFpxImpl) _then) : super(_value, _then); + /// Create a copy of PaymentMethodParams + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -7233,6 +7500,8 @@ class __$$PaymentMethodParamsFpxImplCopyWithImpl<$Res> )); } + /// Create a copy of PaymentMethodParams + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentMethodDataFpxCopyWith<$Res> get paymentMethodData { @@ -7267,7 +7536,7 @@ class _$PaymentMethodParamsFpxImpl implements _PaymentMethodParamsFpx { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PaymentMethodParamsFpxImpl && @@ -7275,11 +7544,13 @@ class _$PaymentMethodParamsFpxImpl implements _PaymentMethodParamsFpx { other.paymentMethodData == paymentMethodData)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, paymentMethodData); - @JsonKey(ignore: true) + /// Create a copy of PaymentMethodParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PaymentMethodParamsFpxImplCopyWith<_$PaymentMethodParamsFpxImpl> @@ -7503,11 +7774,13 @@ abstract class _PaymentMethodParamsFpx implements PaymentMethodParams { factory _PaymentMethodParamsFpx.fromJson(Map json) = _$PaymentMethodParamsFpxImpl.fromJson; - @override - /// Paymentmethod data for this paymentmethod. + @override PaymentMethodDataFpx get paymentMethodData; - @JsonKey(ignore: true) + + /// Create a copy of PaymentMethodParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) _$$PaymentMethodParamsFpxImplCopyWith<_$PaymentMethodParamsFpxImpl> get copyWith => throw _privateConstructorUsedError; } @@ -7534,6 +7807,8 @@ class __$$PaymentMethodParamsSepaDebitImplCopyWithImpl<$Res> $Res Function(_$PaymentMethodParamsSepaDebitImpl) _then) : super(_value, _then); + /// Create a copy of PaymentMethodParams + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -7547,6 +7822,8 @@ class __$$PaymentMethodParamsSepaDebitImplCopyWithImpl<$Res> )); } + /// Create a copy of PaymentMethodParams + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentMethodDataSepaCopyWith<$Res> get paymentMethodData { @@ -7583,7 +7860,7 @@ class _$PaymentMethodParamsSepaDebitImpl } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PaymentMethodParamsSepaDebitImpl && @@ -7591,11 +7868,13 @@ class _$PaymentMethodParamsSepaDebitImpl other.paymentMethodData == paymentMethodData)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, paymentMethodData); - @JsonKey(ignore: true) + /// Create a copy of PaymentMethodParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PaymentMethodParamsSepaDebitImplCopyWith< @@ -7820,11 +8099,13 @@ abstract class _PaymentMethodParamsSepaDebit implements PaymentMethodParams { factory _PaymentMethodParamsSepaDebit.fromJson(Map json) = _$PaymentMethodParamsSepaDebitImpl.fromJson; - @override - /// Paymentmethod data for this paymentmethod. + @override PaymentMethodDataSepa get paymentMethodData; - @JsonKey(ignore: true) + + /// Create a copy of PaymentMethodParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) _$$PaymentMethodParamsSepaDebitImplCopyWith< _$PaymentMethodParamsSepaDebitImpl> get copyWith => throw _privateConstructorUsedError; @@ -7852,6 +8133,8 @@ class __$$PaymentMethodParamsSofortImplCopyWithImpl<$Res> $Res Function(_$PaymentMethodParamsSofortImpl) _then) : super(_value, _then); + /// Create a copy of PaymentMethodParams + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -7865,6 +8148,8 @@ class __$$PaymentMethodParamsSofortImplCopyWithImpl<$Res> )); } + /// Create a copy of PaymentMethodParams + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentMethodDataSofortCopyWith<$Res> get paymentMethodData { @@ -7898,7 +8183,7 @@ class _$PaymentMethodParamsSofortImpl implements _PaymentMethodParamsSofort { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PaymentMethodParamsSofortImpl && @@ -7906,11 +8191,13 @@ class _$PaymentMethodParamsSofortImpl implements _PaymentMethodParamsSofort { other.paymentMethodData == paymentMethodData)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, paymentMethodData); - @JsonKey(ignore: true) + /// Create a copy of PaymentMethodParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PaymentMethodParamsSofortImplCopyWith<_$PaymentMethodParamsSofortImpl> @@ -8136,7 +8423,10 @@ abstract class _PaymentMethodParamsSofort implements PaymentMethodParams { @override PaymentMethodDataSofort get paymentMethodData; - @JsonKey(ignore: true) + + /// Create a copy of PaymentMethodParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) _$$PaymentMethodParamsSofortImplCopyWith<_$PaymentMethodParamsSofortImpl> get copyWith => throw _privateConstructorUsedError; } @@ -8163,6 +8453,8 @@ class __$$PaymentMethodParamsAfterpayClearpayImplCopyWithImpl<$Res> $Res Function(_$PaymentMethodParamsAfterpayClearpayImpl) _then) : super(_value, _then); + /// Create a copy of PaymentMethodParams + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -8176,6 +8468,8 @@ class __$$PaymentMethodParamsAfterpayClearpayImplCopyWithImpl<$Res> )); } + /// Create a copy of PaymentMethodParams + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentMethodDataAfterPayCopyWith<$Res> get paymentMethodData { @@ -8211,7 +8505,7 @@ class _$PaymentMethodParamsAfterpayClearpayImpl } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PaymentMethodParamsAfterpayClearpayImpl && @@ -8219,11 +8513,13 @@ class _$PaymentMethodParamsAfterpayClearpayImpl other.paymentMethodData == paymentMethodData)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, paymentMethodData); - @JsonKey(ignore: true) + /// Create a copy of PaymentMethodParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PaymentMethodParamsAfterpayClearpayImplCopyWith< @@ -8452,7 +8748,10 @@ abstract class _PaymentMethodParamsAfterpayClearpay @override PaymentMethodDataAfterPay get paymentMethodData; - @JsonKey(ignore: true) + + /// Create a copy of PaymentMethodParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) _$$PaymentMethodParamsAfterpayClearpayImplCopyWith< _$PaymentMethodParamsAfterpayClearpayImpl> get copyWith => throw _privateConstructorUsedError; @@ -8480,6 +8779,8 @@ class __$$PaymentMethodParamsOxxoImplCopyWithImpl<$Res> $Res Function(_$PaymentMethodParamsOxxoImpl) _then) : super(_value, _then); + /// Create a copy of PaymentMethodParams + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -8493,6 +8794,8 @@ class __$$PaymentMethodParamsOxxoImplCopyWithImpl<$Res> )); } + /// Create a copy of PaymentMethodParams + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentMethodDataCopyWith<$Res> get paymentMethodData { @@ -8526,7 +8829,7 @@ class _$PaymentMethodParamsOxxoImpl implements _PaymentMethodParamsOxxo { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PaymentMethodParamsOxxoImpl && @@ -8534,11 +8837,13 @@ class _$PaymentMethodParamsOxxoImpl implements _PaymentMethodParamsOxxo { other.paymentMethodData == paymentMethodData)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, paymentMethodData); - @JsonKey(ignore: true) + /// Create a copy of PaymentMethodParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PaymentMethodParamsOxxoImplCopyWith<_$PaymentMethodParamsOxxoImpl> @@ -8762,11 +9067,13 @@ abstract class _PaymentMethodParamsOxxo implements PaymentMethodParams { factory _PaymentMethodParamsOxxo.fromJson(Map json) = _$PaymentMethodParamsOxxoImpl.fromJson; - @override - /// Paymentmethod data for this paymentmethod. + @override PaymentMethodData get paymentMethodData; - @JsonKey(ignore: true) + + /// Create a copy of PaymentMethodParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) _$$PaymentMethodParamsOxxoImplCopyWith<_$PaymentMethodParamsOxxoImpl> get copyWith => throw _privateConstructorUsedError; } @@ -8793,6 +9100,8 @@ class __$$PaymentMethodParamsKlarnaImplCopyWithImpl<$Res> $Res Function(_$PaymentMethodParamsKlarnaImpl) _then) : super(_value, _then); + /// Create a copy of PaymentMethodParams + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -8806,6 +9115,8 @@ class __$$PaymentMethodParamsKlarnaImplCopyWithImpl<$Res> )); } + /// Create a copy of PaymentMethodParams + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentMethodDataCopyWith<$Res> get paymentMethodData { @@ -8842,7 +9153,7 @@ class _$PaymentMethodParamsKlarnaImpl implements _PaymentMethodParamsKlarna { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PaymentMethodParamsKlarnaImpl && @@ -8850,11 +9161,13 @@ class _$PaymentMethodParamsKlarnaImpl implements _PaymentMethodParamsKlarna { other.paymentMethodData == paymentMethodData)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, paymentMethodData); - @JsonKey(ignore: true) + /// Create a copy of PaymentMethodParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PaymentMethodParamsKlarnaImplCopyWith<_$PaymentMethodParamsKlarnaImpl> @@ -9078,14 +9391,16 @@ abstract class _PaymentMethodParamsKlarna implements PaymentMethodParams { factory _PaymentMethodParamsKlarna.fromJson(Map json) = _$PaymentMethodParamsKlarnaImpl.fromJson; - @override - /// Paymentmethod data for this paymentmethod. /// /// Make sure to add an email and country (part of the address) in the /// billingdetails which is required for using Klarna. + @override PaymentMethodData get paymentMethodData; - @JsonKey(ignore: true) + + /// Create a copy of PaymentMethodParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) _$$PaymentMethodParamsKlarnaImplCopyWith<_$PaymentMethodParamsKlarnaImpl> get copyWith => throw _privateConstructorUsedError; } @@ -9112,6 +9427,8 @@ class __$$PaymentMethodParamsPayPalImplCopyWithImpl<$Res> $Res Function(_$PaymentMethodParamsPayPalImpl) _then) : super(_value, _then); + /// Create a copy of PaymentMethodParams + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -9125,6 +9442,8 @@ class __$$PaymentMethodParamsPayPalImplCopyWithImpl<$Res> )); } + /// Create a copy of PaymentMethodParams + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentMethodDataCopyWith<$Res> get paymentMethodData { @@ -9158,7 +9477,7 @@ class _$PaymentMethodParamsPayPalImpl implements _PaymentMethodParamsPayPal { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PaymentMethodParamsPayPalImpl && @@ -9166,11 +9485,13 @@ class _$PaymentMethodParamsPayPalImpl implements _PaymentMethodParamsPayPal { other.paymentMethodData == paymentMethodData)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, paymentMethodData); - @JsonKey(ignore: true) + /// Create a copy of PaymentMethodParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PaymentMethodParamsPayPalImplCopyWith<_$PaymentMethodParamsPayPalImpl> @@ -9394,11 +9715,13 @@ abstract class _PaymentMethodParamsPayPal implements PaymentMethodParams { factory _PaymentMethodParamsPayPal.fromJson(Map json) = _$PaymentMethodParamsPayPalImpl.fromJson; - @override - /// Paymentmethod data for this paymentmethod. + @override PaymentMethodData get paymentMethodData; - @JsonKey(ignore: true) + + /// Create a copy of PaymentMethodParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) _$$PaymentMethodParamsPayPalImplCopyWith<_$PaymentMethodParamsPayPalImpl> get copyWith => throw _privateConstructorUsedError; } @@ -9425,6 +9748,8 @@ class __$$PaymentMethodParamsRevolutPayImplCopyWithImpl<$Res> $Res Function(_$PaymentMethodParamsRevolutPayImpl) _then) : super(_value, _then); + /// Create a copy of PaymentMethodParams + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -9438,6 +9763,8 @@ class __$$PaymentMethodParamsRevolutPayImplCopyWithImpl<$Res> )); } + /// Create a copy of PaymentMethodParams + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentMethodDataCopyWith<$Res> get paymentMethodData { @@ -9473,7 +9800,7 @@ class _$PaymentMethodParamsRevolutPayImpl } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PaymentMethodParamsRevolutPayImpl && @@ -9481,11 +9808,13 @@ class _$PaymentMethodParamsRevolutPayImpl other.paymentMethodData == paymentMethodData)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, paymentMethodData); - @JsonKey(ignore: true) + /// Create a copy of PaymentMethodParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PaymentMethodParamsRevolutPayImplCopyWith< @@ -9710,11 +10039,13 @@ abstract class _PaymentMethodParamsRevolutPay implements PaymentMethodParams { factory _PaymentMethodParamsRevolutPay.fromJson(Map json) = _$PaymentMethodParamsRevolutPayImpl.fromJson; - @override - /// Paymentmethod data for this paymentmethod. + @override PaymentMethodData get paymentMethodData; - @JsonKey(ignore: true) + + /// Create a copy of PaymentMethodParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) _$$PaymentMethodParamsRevolutPayImplCopyWith< _$PaymentMethodParamsRevolutPayImpl> get copyWith => throw _privateConstructorUsedError; @@ -9742,6 +10073,8 @@ class __$$PaymentMethodParamsUsBankAccountImplCopyWithImpl<$Res> $Res Function(_$PaymentMethodParamsUsBankAccountImpl) _then) : super(_value, _then); + /// Create a copy of PaymentMethodParams + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -9755,6 +10088,8 @@ class __$$PaymentMethodParamsUsBankAccountImplCopyWithImpl<$Res> )); } + /// Create a copy of PaymentMethodParams + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentMethodDataUsBankCopyWith<$Res> get paymentMethodData { @@ -9791,7 +10126,7 @@ class _$PaymentMethodParamsUsBankAccountImpl } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PaymentMethodParamsUsBankAccountImpl && @@ -9799,11 +10134,13 @@ class _$PaymentMethodParamsUsBankAccountImpl other.paymentMethodData == paymentMethodData)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, paymentMethodData); - @JsonKey(ignore: true) + /// Create a copy of PaymentMethodParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PaymentMethodParamsUsBankAccountImplCopyWith< @@ -10030,11 +10367,13 @@ abstract class _PaymentMethodParamsUsBankAccount Map json) = _$PaymentMethodParamsUsBankAccountImpl.fromJson; - @override - /// Paymentmethod data for this paymentmethod. + @override PaymentMethodDataUsBank get paymentMethodData; - @JsonKey(ignore: true) + + /// Create a copy of PaymentMethodParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) _$$PaymentMethodParamsUsBankAccountImplCopyWith< _$PaymentMethodParamsUsBankAccountImpl> get copyWith => throw _privateConstructorUsedError; @@ -10055,8 +10394,12 @@ mixin _$PaymentMethodData { /// Mandata data for this paymentmethod. MandateData? get mandateData => throw _privateConstructorUsedError; + /// Serializes this PaymentMethodData to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of PaymentMethodData + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $PaymentMethodDataCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -10087,6 +10430,8 @@ class _$PaymentMethodDataCopyWithImpl<$Res, $Val extends PaymentMethodData> // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of PaymentMethodData + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -10110,6 +10455,8 @@ class _$PaymentMethodDataCopyWithImpl<$Res, $Val extends PaymentMethodData> ) as $Val); } + /// Create a copy of PaymentMethodData + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $BillingDetailsCopyWith<$Res>? get billingDetails { @@ -10122,6 +10469,8 @@ class _$PaymentMethodDataCopyWithImpl<$Res, $Val extends PaymentMethodData> }); } + /// Create a copy of PaymentMethodData + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $ShippingDetailsCopyWith<$Res>? get shippingDetails { @@ -10134,6 +10483,8 @@ class _$PaymentMethodDataCopyWithImpl<$Res, $Val extends PaymentMethodData> }); } + /// Create a copy of PaymentMethodData + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $MandateDataCopyWith<$Res>? get mandateData { @@ -10176,6 +10527,8 @@ class __$$PaymentMethodDataImplCopyWithImpl<$Res> $Res Function(_$PaymentMethodDataImpl) _then) : super(_value, _then); + /// Create a copy of PaymentMethodData + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -10228,7 +10581,7 @@ class _$PaymentMethodDataImpl implements _PaymentMethodData { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PaymentMethodDataImpl && @@ -10240,12 +10593,14 @@ class _$PaymentMethodDataImpl implements _PaymentMethodData { other.mandateData == mandateData)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, billingDetails, shippingDetails, mandateData); - @JsonKey(ignore: true) + /// Create a copy of PaymentMethodData + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PaymentMethodDataImplCopyWith<_$PaymentMethodDataImpl> get copyWith => @@ -10269,20 +10624,22 @@ abstract class _PaymentMethodData implements PaymentMethodData { factory _PaymentMethodData.fromJson(Map json) = _$PaymentMethodDataImpl.fromJson; - @override - /// Billing information. - BillingDetails? get billingDetails; @override + BillingDetails? get billingDetails; /// Shipping details - ShippingDetails? get shippingDetails; @override + ShippingDetails? get shippingDetails; /// Mandata data for this paymentmethod. + @override MandateData? get mandateData; + + /// Create a copy of PaymentMethodData + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$PaymentMethodDataImplCopyWith<_$PaymentMethodDataImpl> get copyWith => throw _privateConstructorUsedError; } @@ -10306,8 +10663,12 @@ mixin _$PaymentMethodDataCardFromToken { /// Mandata data for this paymentmethod. MandateData? get mandateData => throw _privateConstructorUsedError; + /// Serializes this PaymentMethodDataCardFromToken to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of PaymentMethodDataCardFromToken + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $PaymentMethodDataCardFromTokenCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -10342,6 +10703,8 @@ class _$PaymentMethodDataCardFromTokenCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of PaymentMethodDataCardFromToken + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -10370,6 +10733,8 @@ class _$PaymentMethodDataCardFromTokenCopyWithImpl<$Res, ) as $Val); } + /// Create a copy of PaymentMethodDataCardFromToken + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $BillingDetailsCopyWith<$Res>? get billingDetails { @@ -10382,6 +10747,8 @@ class _$PaymentMethodDataCardFromTokenCopyWithImpl<$Res, }); } + /// Create a copy of PaymentMethodDataCardFromToken + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $ShippingDetailsCopyWith<$Res>? get shippingDetails { @@ -10394,6 +10761,8 @@ class _$PaymentMethodDataCardFromTokenCopyWithImpl<$Res, }); } + /// Create a copy of PaymentMethodDataCardFromToken + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $MandateDataCopyWith<$Res>? get mandateData { @@ -10440,6 +10809,8 @@ class __$$PaymentMethodDataCardFromTokenImplCopyWithImpl<$Res> $Res Function(_$PaymentMethodDataCardFromTokenImpl) _then) : super(_value, _then); + /// Create a copy of PaymentMethodDataCardFromToken + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -10506,7 +10877,7 @@ class _$PaymentMethodDataCardFromTokenImpl } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PaymentMethodDataCardFromTokenImpl && @@ -10519,12 +10890,14 @@ class _$PaymentMethodDataCardFromTokenImpl other.mandateData == mandateData)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash( runtimeType, token, billingDetails, shippingDetails, mandateData); - @JsonKey(ignore: true) + /// Create a copy of PaymentMethodDataCardFromToken + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PaymentMethodDataCardFromTokenImplCopyWith< @@ -10551,24 +10924,26 @@ abstract class _PaymentMethodDataCardFromToken factory _PaymentMethodDataCardFromToken.fromJson(Map json) = _$PaymentMethodDataCardFromTokenImpl.fromJson; - @override - /// Token. - String get token; @override + String get token; /// Billing information. - BillingDetails? get billingDetails; @override + BillingDetails? get billingDetails; /// Shipping details - ShippingDetails? get shippingDetails; @override + ShippingDetails? get shippingDetails; /// Mandata data for this paymentmethod. + @override MandateData? get mandateData; + + /// Create a copy of PaymentMethodDataCardFromToken + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$PaymentMethodDataCardFromTokenImplCopyWith< _$PaymentMethodDataCardFromTokenImpl> get copyWith => throw _privateConstructorUsedError; @@ -10596,8 +10971,12 @@ mixin _$PaymentMethodDataCardFromMethod { /// Mandata data for this paymentmethod. MandateData? get mandateData => throw _privateConstructorUsedError; + /// Serializes this PaymentMethodDataCardFromMethod to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of PaymentMethodDataCardFromMethod + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $PaymentMethodDataCardFromMethodCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -10633,6 +11012,8 @@ class _$PaymentMethodDataCardFromMethodCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of PaymentMethodDataCardFromMethod + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -10666,6 +11047,8 @@ class _$PaymentMethodDataCardFromMethodCopyWithImpl<$Res, ) as $Val); } + /// Create a copy of PaymentMethodDataCardFromMethod + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $BillingDetailsCopyWith<$Res>? get billingDetails { @@ -10678,6 +11061,8 @@ class _$PaymentMethodDataCardFromMethodCopyWithImpl<$Res, }); } + /// Create a copy of PaymentMethodDataCardFromMethod + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $ShippingDetailsCopyWith<$Res>? get shippingDetails { @@ -10690,6 +11075,8 @@ class _$PaymentMethodDataCardFromMethodCopyWithImpl<$Res, }); } + /// Create a copy of PaymentMethodDataCardFromMethod + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $MandateDataCopyWith<$Res>? get mandateData { @@ -10737,6 +11124,8 @@ class __$$PaymentMethodDataCardFromMethodImplCopyWithImpl<$Res> $Res Function(_$PaymentMethodDataCardFromMethodImpl) _then) : super(_value, _then); + /// Create a copy of PaymentMethodDataCardFromMethod + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -10813,7 +11202,7 @@ class _$PaymentMethodDataCardFromMethodImpl } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PaymentMethodDataCardFromMethodImpl && @@ -10828,12 +11217,14 @@ class _$PaymentMethodDataCardFromMethodImpl other.mandateData == mandateData)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, paymentMethodId, cvc, billingDetails, shippingDetails, mandateData); - @JsonKey(ignore: true) + /// Create a copy of PaymentMethodDataCardFromMethod + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PaymentMethodDataCardFromMethodImplCopyWith< @@ -10861,28 +11252,30 @@ abstract class _PaymentMethodDataCardFromMethod factory _PaymentMethodDataCardFromMethod.fromJson(Map json) = _$PaymentMethodDataCardFromMethodImpl.fromJson; - @override - /// Payment method id. - String get paymentMethodId; @override + String get paymentMethodId; /// Cvc of the cart - String? get cvc; @override + String? get cvc; /// Billing information. - BillingDetails? get billingDetails; @override + BillingDetails? get billingDetails; /// Shipping details - ShippingDetails? get shippingDetails; @override + ShippingDetails? get shippingDetails; /// Mandata data for this paymentmethod. + @override MandateData? get mandateData; + + /// Create a copy of PaymentMethodDataCardFromMethod + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$PaymentMethodDataCardFromMethodImplCopyWith< _$PaymentMethodDataCardFromMethodImpl> get copyWith => throw _privateConstructorUsedError; @@ -10910,8 +11303,12 @@ mixin _$PaymentMethodDataIdeal { /// Mandata data for this paymentmethod. MandateData? get mandateData => throw _privateConstructorUsedError; + /// Serializes this PaymentMethodDataIdeal to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of PaymentMethodDataIdeal + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $PaymentMethodDataIdealCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -10945,6 +11342,8 @@ class _$PaymentMethodDataIdealCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of PaymentMethodDataIdeal + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -10978,6 +11377,8 @@ class _$PaymentMethodDataIdealCopyWithImpl<$Res, ) as $Val); } + /// Create a copy of PaymentMethodDataIdeal + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $BillingDetailsCopyWith<$Res>? get billingDetails { @@ -10990,6 +11391,8 @@ class _$PaymentMethodDataIdealCopyWithImpl<$Res, }); } + /// Create a copy of PaymentMethodDataIdeal + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $ShippingDetailsCopyWith<$Res>? get shippingDetails { @@ -11002,6 +11405,8 @@ class _$PaymentMethodDataIdealCopyWithImpl<$Res, }); } + /// Create a copy of PaymentMethodDataIdeal + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $MandateDataCopyWith<$Res>? get mandateData { @@ -11049,6 +11454,8 @@ class __$$PaymentMethodDataIdealImplCopyWithImpl<$Res> $Res Function(_$PaymentMethodDataIdealImpl) _then) : super(_value, _then); + /// Create a copy of PaymentMethodDataIdeal + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -11123,7 +11530,7 @@ class _$PaymentMethodDataIdealImpl implements _PaymentMethodDataIdeal { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PaymentMethodDataIdealImpl && @@ -11139,12 +11546,14 @@ class _$PaymentMethodDataIdealImpl implements _PaymentMethodDataIdeal { other.mandateData == mandateData)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, bankIdentifierCode, bankName, billingDetails, shippingDetails, mandateData); - @JsonKey(ignore: true) + /// Create a copy of PaymentMethodDataIdeal + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PaymentMethodDataIdealImplCopyWith<_$PaymentMethodDataIdealImpl> @@ -11170,28 +11579,30 @@ abstract class _PaymentMethodDataIdeal implements PaymentMethodDataIdeal { factory _PaymentMethodDataIdeal.fromJson(Map json) = _$PaymentMethodDataIdealImpl.fromJson; - @override - /// The bank identifier code of the bank. - String? get bankIdentifierCode; @override + String? get bankIdentifierCode; /// The name of bank. - String? get bankName; @override + String? get bankName; /// Billing information. - BillingDetails? get billingDetails; @override + BillingDetails? get billingDetails; /// Shipping details - ShippingDetails? get shippingDetails; @override + ShippingDetails? get shippingDetails; /// Mandata data for this paymentmethod. + @override MandateData? get mandateData; + + /// Create a copy of PaymentMethodDataIdeal + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$PaymentMethodDataIdealImplCopyWith<_$PaymentMethodDataIdealImpl> get copyWith => throw _privateConstructorUsedError; } @@ -11215,8 +11626,12 @@ mixin _$PaymentMethodDataAubecs { /// Mandata data for this paymentmethod. MandateData? get mandateData => throw _privateConstructorUsedError; + /// Serializes this PaymentMethodDataAubecs to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of PaymentMethodDataAubecs + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $PaymentMethodDataAubecsCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -11250,6 +11665,8 @@ class _$PaymentMethodDataAubecsCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of PaymentMethodDataAubecs + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -11278,6 +11695,8 @@ class _$PaymentMethodDataAubecsCopyWithImpl<$Res, ) as $Val); } + /// Create a copy of PaymentMethodDataAubecs + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $AubecsFormInputDetailsCopyWith<$Res> get formDetails { @@ -11286,6 +11705,8 @@ class _$PaymentMethodDataAubecsCopyWithImpl<$Res, }); } + /// Create a copy of PaymentMethodDataAubecs + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $BillingDetailsCopyWith<$Res>? get billingDetails { @@ -11298,6 +11719,8 @@ class _$PaymentMethodDataAubecsCopyWithImpl<$Res, }); } + /// Create a copy of PaymentMethodDataAubecs + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $ShippingDetailsCopyWith<$Res>? get shippingDetails { @@ -11310,6 +11733,8 @@ class _$PaymentMethodDataAubecsCopyWithImpl<$Res, }); } + /// Create a copy of PaymentMethodDataAubecs + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $MandateDataCopyWith<$Res>? get mandateData { @@ -11358,6 +11783,8 @@ class __$$PaymentMethodDataAubecsImplCopyWithImpl<$Res> $Res Function(_$PaymentMethodDataAubecsImpl) _then) : super(_value, _then); + /// Create a copy of PaymentMethodDataAubecs + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -11422,7 +11849,7 @@ class _$PaymentMethodDataAubecsImpl implements _PaymentMethodDataAubecs { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PaymentMethodDataAubecsImpl && @@ -11436,12 +11863,14 @@ class _$PaymentMethodDataAubecsImpl implements _PaymentMethodDataAubecs { other.mandateData == mandateData)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash( runtimeType, formDetails, billingDetails, shippingDetails, mandateData); - @JsonKey(ignore: true) + /// Create a copy of PaymentMethodDataAubecs + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PaymentMethodDataAubecsImplCopyWith<_$PaymentMethodDataAubecsImpl> @@ -11466,24 +11895,26 @@ abstract class _PaymentMethodDataAubecs implements PaymentMethodDataAubecs { factory _PaymentMethodDataAubecs.fromJson(Map json) = _$PaymentMethodDataAubecsImpl.fromJson; - @override - /// form input details - AubecsFormInputDetails get formDetails; @override + AubecsFormInputDetails get formDetails; /// Billing information. - BillingDetails? get billingDetails; @override + BillingDetails? get billingDetails; /// Shipping details - ShippingDetails? get shippingDetails; @override + ShippingDetails? get shippingDetails; /// Mandata data for this paymentmethod. + @override MandateData? get mandateData; + + /// Create a copy of PaymentMethodDataAubecs + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$PaymentMethodDataAubecsImplCopyWith<_$PaymentMethodDataAubecsImpl> get copyWith => throw _privateConstructorUsedError; } @@ -11506,8 +11937,12 @@ mixin _$PaymentMethodDataFpx { /// Mandata data for this paymentmethod. MandateData? get mandateData => throw _privateConstructorUsedError; + /// Serializes this PaymentMethodDataFpx to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of PaymentMethodDataFpx + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $PaymentMethodDataFpxCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -11540,6 +11975,8 @@ class _$PaymentMethodDataFpxCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of PaymentMethodDataFpx + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -11568,6 +12005,8 @@ class _$PaymentMethodDataFpxCopyWithImpl<$Res, ) as $Val); } + /// Create a copy of PaymentMethodDataFpx + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $BillingDetailsCopyWith<$Res>? get billingDetails { @@ -11580,6 +12019,8 @@ class _$PaymentMethodDataFpxCopyWithImpl<$Res, }); } + /// Create a copy of PaymentMethodDataFpx + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $ShippingDetailsCopyWith<$Res>? get shippingDetails { @@ -11592,6 +12033,8 @@ class _$PaymentMethodDataFpxCopyWithImpl<$Res, }); } + /// Create a copy of PaymentMethodDataFpx + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $MandateDataCopyWith<$Res>? get mandateData { @@ -11635,6 +12078,8 @@ class __$$PaymentMethodDataFpxImplCopyWithImpl<$Res> $Res Function(_$PaymentMethodDataFpxImpl) _then) : super(_value, _then); + /// Create a copy of PaymentMethodDataFpx + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -11700,7 +12145,7 @@ class _$PaymentMethodDataFpxImpl implements _PaymentMethodDataFpx { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PaymentMethodDataFpxImpl && @@ -11714,12 +12159,14 @@ class _$PaymentMethodDataFpxImpl implements _PaymentMethodDataFpx { other.mandateData == mandateData)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, testOfflineBank, billingDetails, shippingDetails, mandateData); - @JsonKey(ignore: true) + /// Create a copy of PaymentMethodDataFpx + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PaymentMethodDataFpxImplCopyWith<_$PaymentMethodDataFpxImpl> @@ -11745,24 +12192,26 @@ abstract class _PaymentMethodDataFpx implements PaymentMethodDataFpx { factory _PaymentMethodDataFpx.fromJson(Map json) = _$PaymentMethodDataFpxImpl.fromJson; - @override - /// When set to true you can test offline payment. - bool get testOfflineBank; @override + bool get testOfflineBank; /// Billing information. - BillingDetails? get billingDetails; @override + BillingDetails? get billingDetails; /// Shipping details - ShippingDetails? get shippingDetails; @override + ShippingDetails? get shippingDetails; /// Mandata data for this paymentmethod. + @override MandateData? get mandateData; + + /// Create a copy of PaymentMethodDataFpx + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$PaymentMethodDataFpxImplCopyWith<_$PaymentMethodDataFpxImpl> get copyWith => throw _privateConstructorUsedError; } @@ -11786,8 +12235,12 @@ mixin _$PaymentMethodDataSofort { /// Mandata data for this paymentmethod. MandateData? get mandateData => throw _privateConstructorUsedError; + /// Serializes this PaymentMethodDataSofort to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of PaymentMethodDataSofort + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $PaymentMethodDataSofortCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -11820,6 +12273,8 @@ class _$PaymentMethodDataSofortCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of PaymentMethodDataSofort + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -11848,6 +12303,8 @@ class _$PaymentMethodDataSofortCopyWithImpl<$Res, ) as $Val); } + /// Create a copy of PaymentMethodDataSofort + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $BillingDetailsCopyWith<$Res>? get billingDetails { @@ -11860,6 +12317,8 @@ class _$PaymentMethodDataSofortCopyWithImpl<$Res, }); } + /// Create a copy of PaymentMethodDataSofort + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $ShippingDetailsCopyWith<$Res>? get shippingDetails { @@ -11872,6 +12331,8 @@ class _$PaymentMethodDataSofortCopyWithImpl<$Res, }); } + /// Create a copy of PaymentMethodDataSofort + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $MandateDataCopyWith<$Res>? get mandateData { @@ -11918,6 +12379,8 @@ class __$$PaymentMethodDataSofortImplCopyWithImpl<$Res> $Res Function(_$PaymentMethodDataSofortImpl) _then) : super(_value, _then); + /// Create a copy of PaymentMethodDataSofort + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -11982,7 +12445,7 @@ class _$PaymentMethodDataSofortImpl implements _PaymentMethodDataSofort { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PaymentMethodDataSofortImpl && @@ -11995,12 +12458,14 @@ class _$PaymentMethodDataSofortImpl implements _PaymentMethodDataSofort { other.mandateData == mandateData)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash( runtimeType, country, billingDetails, shippingDetails, mandateData); - @JsonKey(ignore: true) + /// Create a copy of PaymentMethodDataSofort + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PaymentMethodDataSofortImplCopyWith<_$PaymentMethodDataSofortImpl> @@ -12025,24 +12490,26 @@ abstract class _PaymentMethodDataSofort implements PaymentMethodDataSofort { factory _PaymentMethodDataSofort.fromJson(Map json) = _$PaymentMethodDataSofortImpl.fromJson; - @override - /// Country of the accountholder - String get country; @override + String get country; /// Billing information. - BillingDetails? get billingDetails; @override + BillingDetails? get billingDetails; /// Shipping details - ShippingDetails? get shippingDetails; @override + ShippingDetails? get shippingDetails; /// Mandata data for this paymentmethod. + @override MandateData? get mandateData; + + /// Create a copy of PaymentMethodDataSofort + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$PaymentMethodDataSofortImplCopyWith<_$PaymentMethodDataSofortImpl> get copyWith => throw _privateConstructorUsedError; } @@ -12066,8 +12533,12 @@ mixin _$PaymentMethodDataSepa { /// Mandata data for this paymentmethod. MandateData? get mandateData => throw _privateConstructorUsedError; + /// Serializes this PaymentMethodDataSepa to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of PaymentMethodDataSepa + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $PaymentMethodDataSepaCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -12100,6 +12571,8 @@ class _$PaymentMethodDataSepaCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of PaymentMethodDataSepa + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -12128,6 +12601,8 @@ class _$PaymentMethodDataSepaCopyWithImpl<$Res, ) as $Val); } + /// Create a copy of PaymentMethodDataSepa + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $BillingDetailsCopyWith<$Res>? get billingDetails { @@ -12140,6 +12615,8 @@ class _$PaymentMethodDataSepaCopyWithImpl<$Res, }); } + /// Create a copy of PaymentMethodDataSepa + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $ShippingDetailsCopyWith<$Res>? get shippingDetails { @@ -12152,6 +12629,8 @@ class _$PaymentMethodDataSepaCopyWithImpl<$Res, }); } + /// Create a copy of PaymentMethodDataSepa + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $MandateDataCopyWith<$Res>? get mandateData { @@ -12197,6 +12676,8 @@ class __$$PaymentMethodDataSepaImplCopyWithImpl<$Res> $Res Function(_$PaymentMethodDataSepaImpl) _then) : super(_value, _then); + /// Create a copy of PaymentMethodDataSepa + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -12261,7 +12742,7 @@ class _$PaymentMethodDataSepaImpl implements _PaymentMethodDataSepa { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PaymentMethodDataSepaImpl && @@ -12274,12 +12755,14 @@ class _$PaymentMethodDataSepaImpl implements _PaymentMethodDataSepa { other.mandateData == mandateData)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash( runtimeType, iban, billingDetails, shippingDetails, mandateData); - @JsonKey(ignore: true) + /// Create a copy of PaymentMethodDataSepa + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PaymentMethodDataSepaImplCopyWith<_$PaymentMethodDataSepaImpl> @@ -12304,24 +12787,26 @@ abstract class _PaymentMethodDataSepa implements PaymentMethodDataSepa { factory _PaymentMethodDataSepa.fromJson(Map json) = _$PaymentMethodDataSepaImpl.fromJson; - @override - /// Iban number of the accountholder - String get iban; @override + String get iban; /// Billing information. - BillingDetails? get billingDetails; @override + BillingDetails? get billingDetails; /// Shipping details - ShippingDetails? get shippingDetails; @override + ShippingDetails? get shippingDetails; /// Mandata data for this paymentmethod. + @override MandateData? get mandateData; + + /// Create a copy of PaymentMethodDataSepa + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$PaymentMethodDataSepaImplCopyWith<_$PaymentMethodDataSepaImpl> get copyWith => throw _privateConstructorUsedError; } @@ -12342,8 +12827,12 @@ mixin _$PaymentMethodDataAfterPay { /// Mandata data for this paymentmethod. MandateData? get mandateData => throw _privateConstructorUsedError; + /// Serializes this PaymentMethodDataAfterPay to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of PaymentMethodDataAfterPay + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $PaymentMethodDataAfterPayCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -12375,6 +12864,8 @@ class _$PaymentMethodDataAfterPayCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of PaymentMethodDataAfterPay + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -12398,6 +12889,8 @@ class _$PaymentMethodDataAfterPayCopyWithImpl<$Res, ) as $Val); } + /// Create a copy of PaymentMethodDataAfterPay + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $BillingDetailsCopyWith<$Res> get billingDetails { @@ -12406,6 +12899,8 @@ class _$PaymentMethodDataAfterPayCopyWithImpl<$Res, }); } + /// Create a copy of PaymentMethodDataAfterPay + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $ShippingDetailsCopyWith<$Res>? get shippingDetails { @@ -12418,6 +12913,8 @@ class _$PaymentMethodDataAfterPayCopyWithImpl<$Res, }); } + /// Create a copy of PaymentMethodDataAfterPay + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $MandateDataCopyWith<$Res>? get mandateData { @@ -12463,6 +12960,8 @@ class __$$PaymentMethodDataAfterPayImplCopyWithImpl<$Res> $Res Function(_$PaymentMethodDataAfterPayImpl) _then) : super(_value, _then); + /// Create a copy of PaymentMethodDataAfterPay + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -12515,7 +13014,7 @@ class _$PaymentMethodDataAfterPayImpl implements _PaymentMethodDataAfterPay { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PaymentMethodDataAfterPayImpl && @@ -12527,12 +13026,14 @@ class _$PaymentMethodDataAfterPayImpl implements _PaymentMethodDataAfterPay { other.mandateData == mandateData)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, billingDetails, shippingDetails, mandateData); - @JsonKey(ignore: true) + /// Create a copy of PaymentMethodDataAfterPay + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PaymentMethodDataAfterPayImplCopyWith<_$PaymentMethodDataAfterPayImpl> @@ -12556,20 +13057,22 @@ abstract class _PaymentMethodDataAfterPay implements PaymentMethodDataAfterPay { factory _PaymentMethodDataAfterPay.fromJson(Map json) = _$PaymentMethodDataAfterPayImpl.fromJson; - @override - /// Billing information. - BillingDetails get billingDetails; @override + BillingDetails get billingDetails; /// Shipping details - ShippingDetails? get shippingDetails; @override + ShippingDetails? get shippingDetails; /// Mandata data for this paymentmethod. + @override MandateData? get mandateData; + + /// Create a copy of PaymentMethodDataAfterPay + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$PaymentMethodDataAfterPayImplCopyWith<_$PaymentMethodDataAfterPayImpl> get copyWith => throw _privateConstructorUsedError; } @@ -12604,8 +13107,12 @@ mixin _$PaymentMethodDataUsBank { /// Mandata data for this paymentmethod. MandateData? get mandateData => throw _privateConstructorUsedError; + /// Serializes this PaymentMethodDataUsBank to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of PaymentMethodDataUsBank + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $PaymentMethodDataUsBankCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -12641,6 +13148,8 @@ class _$PaymentMethodDataUsBankCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of PaymentMethodDataUsBank + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -12684,6 +13193,8 @@ class _$PaymentMethodDataUsBankCopyWithImpl<$Res, ) as $Val); } + /// Create a copy of PaymentMethodDataUsBank + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $BillingDetailsCopyWith<$Res>? get billingDetails { @@ -12696,6 +13207,8 @@ class _$PaymentMethodDataUsBankCopyWithImpl<$Res, }); } + /// Create a copy of PaymentMethodDataUsBank + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $ShippingDetailsCopyWith<$Res>? get shippingDetails { @@ -12708,6 +13221,8 @@ class _$PaymentMethodDataUsBankCopyWithImpl<$Res, }); } + /// Create a copy of PaymentMethodDataUsBank + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $MandateDataCopyWith<$Res>? get mandateData { @@ -12757,6 +13272,8 @@ class __$$PaymentMethodDataUsBankImplCopyWithImpl<$Res> $Res Function(_$PaymentMethodDataUsBankImpl) _then) : super(_value, _then); + /// Create a copy of PaymentMethodDataUsBank + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -12852,7 +13369,7 @@ class _$PaymentMethodDataUsBankImpl implements _PaymentMethodDataUsBank { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PaymentMethodDataUsBankImpl && @@ -12872,7 +13389,7 @@ class _$PaymentMethodDataUsBankImpl implements _PaymentMethodDataUsBank { other.mandateData == mandateData)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash( runtimeType, @@ -12884,7 +13401,9 @@ class _$PaymentMethodDataUsBankImpl implements _PaymentMethodDataUsBank { shippingDetails, mandateData); - @JsonKey(ignore: true) + /// Create a copy of PaymentMethodDataUsBank + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PaymentMethodDataUsBankImplCopyWith<_$PaymentMethodDataUsBankImpl> @@ -12912,37 +13431,39 @@ abstract class _PaymentMethodDataUsBank implements PaymentMethodDataUsBank { factory _PaymentMethodDataUsBank.fromJson(Map json) = _$PaymentMethodDataUsBankImpl.fromJson; - @override - /// The account number of the bank account. - String get accountNumber; @override + String get accountNumber; ///The routing number, sort code, or other country-appropriate institution ///number for the bank account. - String get routingNumber; @override + String get routingNumber; /// The bank account type of the holder - BankAccountHolderType? get accountHolderType; @override + BankAccountHolderType? get accountHolderType; /// The account type - UsBankAccountType? get accountType; @override + UsBankAccountType? get accountType; /// Billing information. - BillingDetails? get billingDetails; @override + BillingDetails? get billingDetails; /// Shipping details - ShippingDetails? get shippingDetails; @override + ShippingDetails? get shippingDetails; /// Mandata data for this paymentmethod. + @override MandateData? get mandateData; + + /// Create a copy of PaymentMethodDataUsBank + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$PaymentMethodDataUsBankImplCopyWith<_$PaymentMethodDataUsBankImpl> get copyWith => throw _privateConstructorUsedError; } @@ -12957,8 +13478,12 @@ mixin _$PaymentMethodOptions { PaymentIntentsFutureUsage? get setupFutureUsage => throw _privateConstructorUsedError; + /// Serializes this PaymentMethodOptions to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of PaymentMethodOptions + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $PaymentMethodOptionsCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -12983,6 +13508,8 @@ class _$PaymentMethodOptionsCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of PaymentMethodOptions + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -13016,6 +13543,8 @@ class __$$PaymentMethodOptionsImplCopyWithImpl<$Res> $Res Function(_$PaymentMethodOptionsImpl) _then) : super(_value, _then); + /// Create a copy of PaymentMethodOptions + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -13049,7 +13578,7 @@ class _$PaymentMethodOptionsImpl implements _PaymentMethodOptions { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PaymentMethodOptionsImpl && @@ -13057,11 +13586,13 @@ class _$PaymentMethodOptionsImpl implements _PaymentMethodOptions { other.setupFutureUsage == setupFutureUsage)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, setupFutureUsage); - @JsonKey(ignore: true) + /// Create a copy of PaymentMethodOptions + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PaymentMethodOptionsImplCopyWith<_$PaymentMethodOptionsImpl> @@ -13085,12 +13616,14 @@ abstract class _PaymentMethodOptions implements PaymentMethodOptions { factory _PaymentMethodOptions.fromJson(Map json) = _$PaymentMethodOptionsImpl.fromJson; - @override - /// Indicates whether or not you want to reuse this method for future payments. + @override PaymentIntentsFutureUsage? get setupFutureUsage; + + /// Create a copy of PaymentMethodOptions + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$PaymentMethodOptionsImplCopyWith<_$PaymentMethodOptionsImpl> get copyWith => throw _privateConstructorUsedError; } @@ -13105,8 +13638,12 @@ mixin _$MandateData { MandateDataCustomerAcceptance? get customerAcceptance => throw _privateConstructorUsedError; + /// Serializes this MandateData to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of MandateData + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $MandateDataCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -13132,6 +13669,8 @@ class _$MandateDataCopyWithImpl<$Res, $Val extends MandateData> // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of MandateData + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -13145,6 +13684,8 @@ class _$MandateDataCopyWithImpl<$Res, $Val extends MandateData> ) as $Val); } + /// Create a copy of MandateData + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $MandateDataCustomerAcceptanceCopyWith<$Res>? get customerAcceptance { @@ -13181,6 +13722,8 @@ class __$$MandateDataImplCopyWithImpl<$Res> _$MandateDataImpl _value, $Res Function(_$MandateDataImpl) _then) : super(_value, _then); + /// Create a copy of MandateData + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -13214,7 +13757,7 @@ class _$MandateDataImpl implements _MandateData { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$MandateDataImpl && @@ -13222,11 +13765,13 @@ class _$MandateDataImpl implements _MandateData { other.customerAcceptance == customerAcceptance)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, customerAcceptance); - @JsonKey(ignore: true) + /// Create a copy of MandateData + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$MandateDataImplCopyWith<_$MandateDataImpl> get copyWith => @@ -13248,12 +13793,14 @@ abstract class _MandateData implements MandateData { factory _MandateData.fromJson(Map json) = _$MandateDataImpl.fromJson; - @override - /// The type of mandate to create. + @override MandateDataCustomerAcceptance? get customerAcceptance; + + /// Create a copy of MandateData + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$MandateDataImplCopyWith<_$MandateDataImpl> get copyWith => throw _privateConstructorUsedError; } @@ -13263,7 +13810,9 @@ mixin _$MandateDataCustomerAcceptance { /// Online data regarding the mandate. MandateDataOnlineData? get ipAddress => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + /// Create a copy of MandateDataCustomerAcceptance + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $MandateDataCustomerAcceptanceCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -13292,6 +13841,8 @@ class _$MandateDataCustomerAcceptanceCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of MandateDataCustomerAcceptance + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -13305,6 +13856,8 @@ class _$MandateDataCustomerAcceptanceCopyWithImpl<$Res, ) as $Val); } + /// Create a copy of MandateDataCustomerAcceptance + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $MandateDataOnlineDataCopyWith<$Res>? get ipAddress { @@ -13343,6 +13896,8 @@ class __$$MandateDataCustomerAcceptanceImplCopyWithImpl<$Res> $Res Function(_$MandateDataCustomerAcceptanceImpl) _then) : super(_value, _then); + /// Create a copy of MandateDataCustomerAcceptance + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -13373,7 +13928,7 @@ class _$MandateDataCustomerAcceptanceImpl } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$MandateDataCustomerAcceptanceImpl && @@ -13384,7 +13939,9 @@ class _$MandateDataCustomerAcceptanceImpl @override int get hashCode => Object.hash(runtimeType, ipAddress); - @JsonKey(ignore: true) + /// Create a copy of MandateDataCustomerAcceptance + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$MandateDataCustomerAcceptanceImplCopyWith< @@ -13400,12 +13957,14 @@ abstract class _MandateDataCustomerAcceptance _$MandateDataCustomerAcceptanceImpl; const _MandateDataCustomerAcceptance._() : super._(); - @override - /// Online data regarding the mandate. + @override MandateDataOnlineData? get ipAddress; + + /// Create a copy of MandateDataCustomerAcceptance + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$MandateDataCustomerAcceptanceImplCopyWith< _$MandateDataCustomerAcceptanceImpl> get copyWith => throw _privateConstructorUsedError; @@ -13424,8 +13983,12 @@ mixin _$MandateDataOnlineData { /// The user agent of the user. String? get userAgent => throw _privateConstructorUsedError; + /// Serializes this MandateDataOnlineData to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of MandateDataOnlineData + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $MandateDataOnlineDataCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -13450,6 +14013,8 @@ class _$MandateDataOnlineDataCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of MandateDataOnlineData + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -13490,6 +14055,8 @@ class __$$MandateDataOnlineDataImplCopyWithImpl<$Res> $Res Function(_$MandateDataOnlineDataImpl) _then) : super(_value, _then); + /// Create a copy of MandateDataOnlineData + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -13532,7 +14099,7 @@ class _$MandateDataOnlineDataImpl implements _MandateDataOnlineData { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$MandateDataOnlineDataImpl && @@ -13542,11 +14109,13 @@ class _$MandateDataOnlineDataImpl implements _MandateDataOnlineData { other.userAgent == userAgent)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, ipAddress, userAgent); - @JsonKey(ignore: true) + /// Create a copy of MandateDataOnlineData + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$MandateDataOnlineDataImplCopyWith<_$MandateDataOnlineDataImpl> @@ -13569,16 +14138,18 @@ abstract class _MandateDataOnlineData implements MandateDataOnlineData { factory _MandateDataOnlineData.fromJson(Map json) = _$MandateDataOnlineDataImpl.fromJson; - @override - /// The ip address of the user. - String? get ipAddress; @override + String? get ipAddress; /// The user agent of the user. + @override String? get userAgent; + + /// Create a copy of MandateDataOnlineData + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$MandateDataOnlineDataImplCopyWith<_$MandateDataOnlineDataImpl> get copyWith => throw _privateConstructorUsedError; } @@ -13592,8 +14163,12 @@ mixin _$ThreeDSecureUsage { /// Whether 3ds is supported or not. bool? get isSupported => throw _privateConstructorUsedError; + /// Serializes this ThreeDSecureUsage to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of ThreeDSecureUsage + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $ThreeDSecureUsageCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -13617,6 +14192,8 @@ class _$ThreeDSecureUsageCopyWithImpl<$Res, $Val extends ThreeDSecureUsage> // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of ThreeDSecureUsage + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -13650,6 +14227,8 @@ class __$$ThreeDSecureUsageImplCopyWithImpl<$Res> $Res Function(_$ThreeDSecureUsageImpl) _then) : super(_value, _then); + /// Create a copy of ThreeDSecureUsage + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -13683,7 +14262,7 @@ class _$ThreeDSecureUsageImpl implements _ThreeDSecureUsage { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$ThreeDSecureUsageImpl && @@ -13691,11 +14270,13 @@ class _$ThreeDSecureUsageImpl implements _ThreeDSecureUsage { other.isSupported == isSupported)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, isSupported); - @JsonKey(ignore: true) + /// Create a copy of ThreeDSecureUsage + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$ThreeDSecureUsageImplCopyWith<_$ThreeDSecureUsageImpl> get copyWith => @@ -13717,12 +14298,14 @@ abstract class _ThreeDSecureUsage implements ThreeDSecureUsage { factory _ThreeDSecureUsage.fromJson(Map json) = _$ThreeDSecureUsageImpl.fromJson; - @override - /// Whether 3ds is supported or not. + @override bool? get isSupported; + + /// Create a copy of ThreeDSecureUsage + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$ThreeDSecureUsageImplCopyWith<_$ThreeDSecureUsageImpl> 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 47c57d34a..3e67cf8a3 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 @@ -95,8 +95,8 @@ Map _$$BacsDebitImplToJson(_$BacsDebitImpl instance) => _$CardImpl _$$CardImplFromJson(Map json) => _$CardImpl( brand: json['brand'] as String?, country: json['country'] as String?, - expYear: json['expYear'] as int?, - expMonth: json['expMonth'] as int?, + expYear: (json['expYear'] as num?)?.toInt(), + expMonth: (json['expMonth'] as num?)?.toInt(), funding: json['funding'] as String?, last4: json['last4'] as String?, preferredNetwork: json['preferredNetwork'] as String?, diff --git a/packages/stripe_platform_interface/lib/src/models/payment_sheet.freezed.dart b/packages/stripe_platform_interface/lib/src/models/payment_sheet.freezed.dart index 2d1186966..1f43aff37 100644 --- a/packages/stripe_platform_interface/lib/src/models/payment_sheet.freezed.dart +++ b/packages/stripe_platform_interface/lib/src/models/payment_sheet.freezed.dart @@ -12,7 +12,7 @@ part of 'payment_sheet.dart'; T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); SetupPaymentSheetParameters _$SetupPaymentSheetParametersFromJson( Map json) { @@ -119,8 +119,12 @@ mixin _$SetupPaymentSheetParameters { @JsonKey(toJson: _cardBrandListToJson) List? get preferredNetworks => throw _privateConstructorUsedError; + /// Serializes this SetupPaymentSheetParameters to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of SetupPaymentSheetParameters + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $SetupPaymentSheetParametersCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -177,6 +181,8 @@ class _$SetupPaymentSheetParametersCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of SetupPaymentSheetParameters + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -288,6 +294,8 @@ class _$SetupPaymentSheetParametersCopyWithImpl<$Res, ) as $Val); } + /// Create a copy of SetupPaymentSheetParameters + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $IntentConfigurationCopyWith<$Res>? get intentConfiguration { @@ -301,6 +309,8 @@ class _$SetupPaymentSheetParametersCopyWithImpl<$Res, }); } + /// Create a copy of SetupPaymentSheetParameters + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentSheetApplePayCopyWith<$Res>? get applePay { @@ -313,6 +323,8 @@ class _$SetupPaymentSheetParametersCopyWithImpl<$Res, }); } + /// Create a copy of SetupPaymentSheetParameters + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentSheetGooglePayCopyWith<$Res>? get googlePay { @@ -325,6 +337,8 @@ class _$SetupPaymentSheetParametersCopyWithImpl<$Res, }); } + /// Create a copy of SetupPaymentSheetParameters + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentSheetAppearanceCopyWith<$Res>? get appearance { @@ -337,6 +351,8 @@ class _$SetupPaymentSheetParametersCopyWithImpl<$Res, }); } + /// Create a copy of SetupPaymentSheetParameters + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $BillingDetailsCopyWith<$Res>? get billingDetails { @@ -349,6 +365,8 @@ class _$SetupPaymentSheetParametersCopyWithImpl<$Res, }); } + /// Create a copy of SetupPaymentSheetParameters + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $BillingDetailsCollectionConfigurationCopyWith<$Res>? @@ -420,6 +438,8 @@ class __$$SetupParametersImplCopyWithImpl<$Res> _$SetupParametersImpl _value, $Res Function(_$SetupParametersImpl) _then) : super(_value, _then); + /// Create a copy of SetupPaymentSheetParameters + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -711,7 +731,7 @@ class _$SetupParametersImpl implements _SetupParameters { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$SetupParametersImpl && @@ -760,7 +780,7 @@ class _$SetupParametersImpl implements _SetupParameters { const DeepCollectionEquality().equals(other._preferredNetworks, _preferredNetworks)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hashAll([ runtimeType, @@ -786,7 +806,9 @@ class _$SetupParametersImpl implements _SetupParameters { const DeepCollectionEquality().hash(_preferredNetworks) ]); - @JsonKey(ignore: true) + /// Create a copy of SetupPaymentSheetParameters + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$SetupParametersImplCopyWith<_$SetupParametersImpl> get copyWith => @@ -830,78 +852,76 @@ abstract class _SetupParameters implements SetupPaymentSheetParameters { factory _SetupParameters.fromJson(Map json) = _$SetupParametersImpl.fromJson; - @override - /// Whether or not to use a custom flow. /// /// If this value is true, the payment sheet will allow to select a payment method /// and a later confirmation will be needed by calling [confirmPaymentSheetPayment] /// By default, false. - bool get customFlow; @override + bool get customFlow; /// The identifier of the Stripe Customer object. /// See https://stripe.com/docs/api/customers/object#customer_object-id - String? get customerId; @override + String? get customerId; /// The label to use for the primary button. If not set, Payment Sheet will display suitable default labels for payment and setup intents - String? get primaryButtonLabel; @override + String? get primaryButtonLabel; ///A temp key can be used for API operations that require a secret key. - String? get customerEphemeralKeySecret; @override + String? get customerEphemeralKeySecret; /// Secret used for client-side retrieval using a publishable key. /// /// If this value is null make sure to add a [setupIntentClientSecret] - String? get paymentIntentClientSecret; @override + String? get paymentIntentClientSecret; /// The client secret of this SetupIntent /// /// If this value is null make sure to add a [paymentIntentClientSecret] - String? get setupIntentClientSecret; @override + String? get setupIntentClientSecret; /// Use this when you want to collect payment information before creating a /// setupintent or payment intent. - IntentConfiguration? get intentConfiguration; @override + IntentConfiguration? get intentConfiguration; /// Display name of the merchant - String? get merchantDisplayName; @override + String? get merchantDisplayName; /// Configuration related to Apple Pay /// If set, PaymentSheet displays Apple Pay as a payment option - PaymentSheetApplePay? get applePay; @override + PaymentSheetApplePay? get applePay; /// iOS only style options for colors in PaymentSheet /// /// Parts can be overridden by [appearance]. + @override @JsonKey(toJson: UserInterfaceStyleKey.toJson) ThemeMode? get style; - @override /// Configuration related to Google Pay /// If set, PaymentSheet displays Google Pay as a payment option - PaymentSheetGooglePay? get googlePay; @override + PaymentSheetGooglePay? get googlePay; /// Flag that allows payment methods that do not move money at the send of the checkout. /// /// Defaul value is false. - bool get allowsDelayedPaymentMethods; @override + bool get allowsDelayedPaymentMethods; /// Appearance of the paymentsheet. /// /// When no appearance defined it will fallback to [style] or Stripe default. - PaymentSheetAppearance? get appearance; @override + PaymentSheetAppearance? get appearance; /// Default billing information of the customer. /// @@ -909,43 +929,47 @@ abstract class _SetupParameters implements SetupPaymentSheetParameters { /// For example when you supply a country the country will be set on the payment sheet + /// alternative localization options. This does not set the billingDetails on the /// paymentIntent since the customer can change those. + @override @JsonKey(name: 'defaultBillingDetails') BillingDetails? get billingDetails; - @override ///This is an experimental feature that may be removed at any time. /// Defaults to true. If true, the customer can delete all saved payment methods. /// If false, the customer can't delete if they only have one saved payment method remaining. - bool? get allowsRemovalOfLastSavedPaymentMethod; @override + bool? get allowsRemovalOfLastSavedPaymentMethod; /// By default, PaymentSheet will use a dynamic ordering that optimizes payment method display for the customer. /// You can override the default order in which payment methods are displayed in PaymentSheet with a list of payment method types. /// See https://stripe.com/docs/api/payment_methods/object#payment_method_object-type for the list of valid types. You may also pass external payment methods. /// Example: ["card", "external_paypal", "klarna"] /// If you omit payment methods from this list, they’ll be automatically ordered by Stripe after the ones you provide. Invalid payment methods are ignored. - List? get paymentMethodOrder; @override + List? get paymentMethodOrder; /// Return URL is required for IDEAL, Klarna and few other payment methods - String? get returnURL; @override + String? get returnURL; /// Configuration for how billing details are collected during checkout. + @override BillingDetailsCollectionConfiguration? get billingDetailsCollectionConfiguration; - @override /// Optional configuration to display a custom message when a saved payment method is removed. iOS only. - String? get removeSavedPaymentMethodMessage; @override + String? get removeSavedPaymentMethodMessage; /// The list of preferred networks that should be used to process payments made with a co-branded card. /// This value will only be used if your user hasn't selected a network themselves. + @override @JsonKey(toJson: _cardBrandListToJson) List? get preferredNetworks; + + /// Create a copy of SetupPaymentSheetParameters + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$SetupParametersImplCopyWith<_$SetupParametersImpl> get copyWith => throw _privateConstructorUsedError; } @@ -969,8 +993,12 @@ mixin _$IntentConfiguration { @JsonKey(includeFromJson: false, includeToJson: false) ConfirmHandler? get confirmHandler => throw _privateConstructorUsedError; + /// Serializes this IntentConfiguration to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of IntentConfiguration + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $IntentConfigurationCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -1000,6 +1028,8 @@ class _$IntentConfigurationCopyWithImpl<$Res, $Val extends IntentConfiguration> // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of IntentConfiguration + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1023,6 +1053,8 @@ class _$IntentConfigurationCopyWithImpl<$Res, $Val extends IntentConfiguration> ) as $Val); } + /// Create a copy of IntentConfiguration + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $IntentModeCopyWith<$Res> get mode { @@ -1058,6 +1090,8 @@ class __$$IntentConfigurationImplCopyWithImpl<$Res> $Res Function(_$IntentConfigurationImpl) _then) : super(_value, _then); + /// Create a copy of IntentConfiguration + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1130,7 +1164,7 @@ class _$IntentConfigurationImpl implements _IntentConfiguration { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$IntentConfigurationImpl && @@ -1141,12 +1175,14 @@ class _$IntentConfigurationImpl implements _IntentConfiguration { other.confirmHandler == confirmHandler)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, mode, const DeepCollectionEquality().hash(_paymentMethodTypes), confirmHandler); - @JsonKey(ignore: true) + /// Create a copy of IntentConfiguration + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$IntentConfigurationImplCopyWith<_$IntentConfigurationImpl> get copyWith => @@ -1171,24 +1207,26 @@ abstract class _IntentConfiguration implements IntentConfiguration { factory _IntentConfiguration.fromJson(Map json) = _$IntentConfigurationImpl.fromJson; - @override - /// Data related to the future payment intent - IntentMode get mode; @override + IntentMode get mode; /// The list of payment method types that the customer can use in the payment sheet. /// /// If not set, the payment sheet will display all the payment methods enabled in your Stripe dashboard. - List? get paymentMethodTypes; @override + List? get paymentMethodTypes; /// Called when the customer confirms payment. Your implementation should create /// a payment intent or setupintent on your server and call the intent creation callback with its client secret or an error if one occurred. + @override @JsonKey(includeFromJson: false, includeToJson: false) ConfirmHandler? get confirmHandler; + + /// Create a copy of IntentConfiguration + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$IntentConfigurationImplCopyWith<_$IntentConfigurationImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1260,8 +1298,13 @@ mixin _$IntentMode { required TResult orElse(), }) => throw _privateConstructorUsedError; + + /// Serializes this IntentMode to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of IntentMode + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $IntentModeCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -1285,6 +1328,8 @@ class _$IntentModeCopyWithImpl<$Res, $Val extends IntentMode> // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of IntentMode + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1327,6 +1372,8 @@ class __$$PaymentModeImplCopyWithImpl<$Res> _$PaymentModeImpl _value, $Res Function(_$PaymentModeImpl) _then) : super(_value, _then); + /// Create a copy of IntentMode + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1393,7 +1440,7 @@ class _$PaymentModeImpl implements _PaymentMode { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PaymentModeImpl && @@ -1406,12 +1453,14 @@ class _$PaymentModeImpl implements _PaymentMode { other.captureMethod == captureMethod)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash( runtimeType, currencyCode, amount, setupFutureUsage, captureMethod); - @JsonKey(ignore: true) + /// Create a copy of IntentMode + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PaymentModeImplCopyWith<_$PaymentModeImpl> get copyWith => @@ -1511,15 +1560,18 @@ abstract class _PaymentMode implements IntentMode { @override String get currencyCode; int get amount; - @override /// Data related to the future payment intent + @override IntentFutureUsage? get setupFutureUsage; /// Capture method for the future payment intent CaptureMethod? get captureMethod; + + /// Create a copy of IntentMode + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$PaymentModeImplCopyWith<_$PaymentModeImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1543,6 +1595,8 @@ class __$$SetupModeImplCopyWithImpl<$Res> _$SetupModeImpl _value, $Res Function(_$SetupModeImpl) _then) : super(_value, _then); + /// Create a copy of IntentMode + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1589,7 +1643,7 @@ class _$SetupModeImpl implements _SetupMode { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$SetupModeImpl && @@ -1599,11 +1653,13 @@ class _$SetupModeImpl implements _SetupMode { other.setupFutureUsage == setupFutureUsage)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, currencyCode, setupFutureUsage); - @JsonKey(ignore: true) + /// Create a copy of IntentMode + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$SetupModeImplCopyWith<_$SetupModeImpl> get copyWith => @@ -1699,12 +1755,15 @@ abstract class _SetupMode implements IntentMode { @override String? get currencyCode; - @override /// Data related to the future payment intent + @override IntentFutureUsage get setupFutureUsage; + + /// Create a copy of IntentMode + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$SetupModeImplCopyWith<_$SetupModeImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1736,8 +1795,12 @@ mixin _$PaymentSheetApplePay { @JsonKey(includeFromJson: false, includeToJson: false) OnOrderTracking? get setOrderTracking => throw _privateConstructorUsedError; + /// Serializes this PaymentSheetApplePay to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of PaymentSheetApplePay + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $PaymentSheetApplePayCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -1770,6 +1833,8 @@ class _$PaymentSheetApplePayCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of PaymentSheetApplePay + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1803,6 +1868,8 @@ class _$PaymentSheetApplePayCopyWithImpl<$Res, ) as $Val); } + /// Create a copy of PaymentSheetApplePay + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentRequestTypeCopyWith<$Res>? get request { @@ -1844,6 +1911,8 @@ class __$$PaymentSheetApplePayImplCopyWithImpl<$Res> $Res Function(_$PaymentSheetApplePayImpl) _then) : super(_value, _then); + /// Create a copy of PaymentSheetApplePay + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1935,7 +2004,7 @@ class _$PaymentSheetApplePayImpl implements _PaymentSheetApplePay { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PaymentSheetApplePayImpl && @@ -1950,7 +2019,7 @@ class _$PaymentSheetApplePayImpl implements _PaymentSheetApplePay { other.setOrderTracking == setOrderTracking)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash( runtimeType, @@ -1960,7 +2029,9 @@ class _$PaymentSheetApplePayImpl implements _PaymentSheetApplePay { request, setOrderTracking); - @JsonKey(ignore: true) + /// Create a copy of PaymentSheetApplePay + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PaymentSheetApplePayImplCopyWith<_$PaymentSheetApplePayImpl> @@ -1988,33 +2059,35 @@ abstract class _PaymentSheetApplePay implements PaymentSheetApplePay { factory _PaymentSheetApplePay.fromJson(Map json) = _$PaymentSheetApplePayImpl.fromJson; - @override - ///The two-letter ISO 3166 code of the country of your business, e.g. "US" - String get merchantCountryCode; @override + String get merchantCountryCode; ///An array of CartSummaryItem item objects that summarize the amount of the payment. If you're using a SetupIntent /// for a recurring payment, you should set this to display the amount you intend to charge. - List? get cartItems; @override + List? get cartItems; /// Sets the the text displayed by the call to action button in the apple pay sheet. - PlatformButtonType? get buttonType; @override + PlatformButtonType? get buttonType; /// Use this for a different payment request than a one time request. - PaymentRequestType? get request; @override + PaymentRequestType? get request; /// Callback function for setting the order details (retrieved from your server) to give users the /// ability to track and manage their purchases in Wallet. Stripe calls your implementation after the /// payment is complete, but before iOS dismisses the Apple Pay sheet. You must call the `completion` /// function, or else the Apple Pay sheet will hang. + @override @JsonKey(includeFromJson: false, includeToJson: false) OnOrderTracking? get setOrderTracking; + + /// Create a copy of PaymentSheetApplePay + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$PaymentSheetApplePayImplCopyWith<_$PaymentSheetApplePayImpl> get copyWith => throw _privateConstructorUsedError; } @@ -2044,8 +2117,12 @@ mixin _$PaymentSheetGooglePay { /// The Google Pay button type to use. Set to "Pay" by default. PlatformButtonType? get buttonType => throw _privateConstructorUsedError; + /// Serializes this PaymentSheetGooglePay to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of PaymentSheetGooglePay + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $PaymentSheetGooglePayCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -2076,6 +2153,8 @@ class _$PaymentSheetGooglePayCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of PaymentSheetGooglePay + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -2142,6 +2221,8 @@ class __$$PaymentSheetGooglePayImplCopyWithImpl<$Res> $Res Function(_$PaymentSheetGooglePayImpl) _then) : super(_value, _then); + /// Create a copy of PaymentSheetGooglePay + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -2227,7 +2308,7 @@ class _$PaymentSheetGooglePayImpl implements _PaymentSheetGooglePay { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PaymentSheetGooglePayImpl && @@ -2242,12 +2323,14 @@ class _$PaymentSheetGooglePayImpl implements _PaymentSheetGooglePay { other.buttonType == buttonType)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, merchantCountryCode, currencyCode, testEnv, label, amount, buttonType); - @JsonKey(ignore: true) + /// Create a copy of PaymentSheetGooglePay + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PaymentSheetGooglePayImplCopyWith<_$PaymentSheetGooglePayImpl> @@ -2274,32 +2357,34 @@ abstract class _PaymentSheetGooglePay implements PaymentSheetGooglePay { factory _PaymentSheetGooglePay.fromJson(Map json) = _$PaymentSheetGooglePayImpl.fromJson; - @override - ///The two-letter ISO 3166 code of the country of your business, e.g. "US" - String get merchantCountryCode; @override + String get merchantCountryCode; /// The three-letter ISO 4217 alphabetic currency code, e.g. "USD" or "EUR". Required in order to support Google Pay when processing a Setup Intent. - String? get currencyCode; @override + String? get currencyCode; /// Whether or not to use the google pay test environment. Set to `true` until you have applied for and been granted access to the Production environment. - bool get testEnv; @override + bool get testEnv; /// An optional label to display with the amount. Google Pay may or may not display this label depending on its own internal logic. Defaults to a generic label if none is provided. - String? get label; @override + String? get label; /// An optional amount to display for setup intents. Google Pay may or may not display this amount depending on its own internal logic. Defaults to 0 if none is provided. - String? get amount; @override + String? get amount; /// The Google Pay button type to use. Set to "Pay" by default. + @override PlatformButtonType? get buttonType; + + /// Create a copy of PaymentSheetGooglePay + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$PaymentSheetGooglePayImplCopyWith<_$PaymentSheetGooglePayImpl> get copyWith => throw _privateConstructorUsedError; } @@ -2322,8 +2407,12 @@ mixin _$PaymentSheetAppearance { PaymentSheetPrimaryButtonAppearance? get primaryButton => throw _privateConstructorUsedError; + /// Serializes this PaymentSheetAppearance to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of PaymentSheetAppearance + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $PaymentSheetAppearanceCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -2355,6 +2444,8 @@ class _$PaymentSheetAppearanceCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of PaymentSheetAppearance + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -2378,6 +2469,8 @@ class _$PaymentSheetAppearanceCopyWithImpl<$Res, ) as $Val); } + /// Create a copy of PaymentSheetAppearance + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentSheetAppearanceColorsCopyWith<$Res>? get colors { @@ -2390,6 +2483,8 @@ class _$PaymentSheetAppearanceCopyWithImpl<$Res, }); } + /// Create a copy of PaymentSheetAppearance + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentSheetShapeCopyWith<$Res>? get shapes { @@ -2402,6 +2497,8 @@ class _$PaymentSheetAppearanceCopyWithImpl<$Res, }); } + /// Create a copy of PaymentSheetAppearance + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentSheetPrimaryButtonAppearanceCopyWith<$Res>? get primaryButton { @@ -2448,6 +2545,8 @@ class __$$PaymentSheetAppearanceImplCopyWithImpl<$Res> $Res Function(_$PaymentSheetAppearanceImpl) _then) : super(_value, _then); + /// Create a copy of PaymentSheetAppearance + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -2500,7 +2599,7 @@ class _$PaymentSheetAppearanceImpl implements _PaymentSheetAppearance { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PaymentSheetAppearanceImpl && @@ -2510,11 +2609,13 @@ class _$PaymentSheetAppearanceImpl implements _PaymentSheetAppearance { other.primaryButton == primaryButton)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, colors, shapes, primaryButton); - @JsonKey(ignore: true) + /// Create a copy of PaymentSheetAppearance + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PaymentSheetAppearanceImplCopyWith<_$PaymentSheetAppearanceImpl> @@ -2539,20 +2640,22 @@ abstract class _PaymentSheetAppearance implements PaymentSheetAppearance { factory _PaymentSheetAppearance.fromJson(Map json) = _$PaymentSheetAppearanceImpl.fromJson; - @override - /// Color parameters - PaymentSheetAppearanceColors? get colors; @override + PaymentSheetAppearanceColors? get colors; /// Shapes parameters - PaymentSheetShape? get shapes; @override + PaymentSheetShape? get shapes; /// PaymentSheet appearance + @override PaymentSheetPrimaryButtonAppearance? get primaryButton; + + /// Create a copy of PaymentSheetAppearance + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$PaymentSheetAppearanceImplCopyWith<_$PaymentSheetAppearanceImpl> get copyWith => throw _privateConstructorUsedError; } @@ -2612,8 +2715,12 @@ mixin _$PaymentSheetAppearanceColors { @JsonKey(toJson: ColorKey.toJson, fromJson: ColorKey.fromJson) Color? get error => throw _privateConstructorUsedError; + /// Serializes this PaymentSheetAppearanceColors to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of PaymentSheetAppearanceColors + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $PaymentSheetAppearanceColorsCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -2662,6 +2769,8 @@ class _$PaymentSheetAppearanceColorsCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of PaymentSheetAppearanceColors + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -2770,6 +2879,8 @@ class __$$PaymentSheetAppearanceColorsImplCopyWithImpl<$Res> $Res Function(_$PaymentSheetAppearanceColorsImpl) _then) : super(_value, _then); + /// Create a copy of PaymentSheetAppearanceColors + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -2930,7 +3041,7 @@ class _$PaymentSheetAppearanceColorsImpl } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PaymentSheetAppearanceColorsImpl && @@ -2955,7 +3066,7 @@ class _$PaymentSheetAppearanceColorsImpl (identical(other.error, error) || other.error == error)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash( runtimeType, @@ -2971,7 +3082,9 @@ class _$PaymentSheetAppearanceColorsImpl icon, error); - @JsonKey(ignore: true) + /// Create a copy of PaymentSheetAppearanceColors + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PaymentSheetAppearanceColorsImplCopyWith< @@ -3016,67 +3129,69 @@ abstract class _PaymentSheetAppearanceColors factory _PaymentSheetAppearanceColors.fromJson(Map json) = _$PaymentSheetAppearanceColorsImpl.fromJson; - @override - /// Color of the button that represents the primary action on the payment sheet. /// /// Make sure there is enough contrast with [background]. + @override @JsonKey(toJson: ColorKey.toJson, fromJson: ColorKey.fromJson) Color? get primary; - @override /// Background color of the payment sheet. /// /// Make sure there is enough contrast with [primary]. + @override @JsonKey(toJson: ColorKey.toJson, fromJson: ColorKey.fromJson) Color? get background; - @override /// Background color of the payment sheet components. + @override @JsonKey(toJson: ColorKey.toJson, fromJson: ColorKey.fromJson) Color? get componentBackground; - @override /// Border color of the payment sheet components. + @override @JsonKey(toJson: ColorKey.toJson, fromJson: ColorKey.fromJson) Color? get componentBorder; - @override /// Divider color of the payment sheet components. + @override @JsonKey(toJson: ColorKey.toJson, fromJson: ColorKey.fromJson) Color? get componentDivider; - @override /// Color of the entered text in the payment components. + @override @JsonKey(toJson: ColorKey.toJson, fromJson: ColorKey.fromJson) Color? get componentText; - @override /// Primary text color. + @override @JsonKey(toJson: ColorKey.toJson, fromJson: ColorKey.fromJson) Color? get primaryText; - @override /// Secondary text color. + @override @JsonKey(toJson: ColorKey.toJson, fromJson: ColorKey.fromJson) Color? get secondaryText; - @override /// Place holder text color. + @override @JsonKey(toJson: ColorKey.toJson, fromJson: ColorKey.fromJson) Color? get placeholderText; - @override /// Color of the displayed icons + @override @JsonKey(toJson: ColorKey.toJson, fromJson: ColorKey.fromJson) Color? get icon; - @override /// Color of the warning and error messages. + @override @JsonKey(toJson: ColorKey.toJson, fromJson: ColorKey.fromJson) Color? get error; + + /// Create a copy of PaymentSheetAppearanceColors + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$PaymentSheetAppearanceColorsImplCopyWith< _$PaymentSheetAppearanceColorsImpl> get copyWith => throw _privateConstructorUsedError; @@ -3097,8 +3212,12 @@ mixin _$PaymentSheetShape { /// Appearance config of the payment sheet shadow PaymentSheetShadowParams? get shadow => throw _privateConstructorUsedError; + /// Serializes this PaymentSheetShape to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of PaymentSheetShape + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $PaymentSheetShapeCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -3127,6 +3246,8 @@ class _$PaymentSheetShapeCopyWithImpl<$Res, $Val extends PaymentSheetShape> // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of PaymentSheetShape + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -3150,6 +3271,8 @@ class _$PaymentSheetShapeCopyWithImpl<$Res, $Val extends PaymentSheetShape> ) as $Val); } + /// Create a copy of PaymentSheetShape + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentSheetShadowParamsCopyWith<$Res>? get shadow { @@ -3188,6 +3311,8 @@ class __$$PaymentSheetShapeImplCopyWithImpl<$Res> $Res Function(_$PaymentSheetShapeImpl) _then) : super(_value, _then); + /// Create a copy of PaymentSheetShape + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -3240,7 +3365,7 @@ class _$PaymentSheetShapeImpl implements _PaymentSheetShape { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PaymentSheetShapeImpl && @@ -3251,12 +3376,14 @@ class _$PaymentSheetShapeImpl implements _PaymentSheetShape { (identical(other.shadow, shadow) || other.shadow == shadow)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, borderRadius, borderWidth, shadow); - @JsonKey(ignore: true) + /// Create a copy of PaymentSheetShape + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PaymentSheetShapeImplCopyWith<_$PaymentSheetShapeImpl> get copyWith => @@ -3280,20 +3407,22 @@ abstract class _PaymentSheetShape implements PaymentSheetShape { factory _PaymentSheetShape.fromJson(Map json) = _$PaymentSheetShapeImpl.fromJson; - @override - /// Borderradius for the paymentsheet corners - double? get borderRadius; @override + double? get borderRadius; /// Borderwidth for the paymentsheet components - double? get borderWidth; @override + double? get borderWidth; /// Appearance config of the payment sheet shadow + @override PaymentSheetShadowParams? get shadow; + + /// Create a copy of PaymentSheetShape + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$PaymentSheetShapeImplCopyWith<_$PaymentSheetShapeImpl> get copyWith => throw _privateConstructorUsedError; } @@ -3315,8 +3444,12 @@ mixin _$PaymentSheetShadowParams { /// Shadow offset PaymentSheetShadowOffset? get offset => throw _privateConstructorUsedError; + /// Serializes this PaymentSheetShadowParams to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of PaymentSheetShadowParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $PaymentSheetShadowParamsCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -3347,6 +3480,8 @@ class _$PaymentSheetShadowParamsCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of PaymentSheetShadowParams + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -3370,6 +3505,8 @@ class _$PaymentSheetShadowParamsCopyWithImpl<$Res, ) as $Val); } + /// Create a copy of PaymentSheetShadowParams + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentSheetShadowOffsetCopyWith<$Res>? get offset { @@ -3412,6 +3549,8 @@ class __$$PaymentSheetShadowParamsImplCopyWithImpl<$Res> $Res Function(_$PaymentSheetShadowParamsImpl) _then) : super(_value, _then); + /// Create a copy of PaymentSheetShadowParams + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -3468,7 +3607,7 @@ class _$PaymentSheetShadowParamsImpl implements _PaymentSheetShadowParams { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PaymentSheetShadowParamsImpl && @@ -3477,11 +3616,13 @@ class _$PaymentSheetShadowParamsImpl implements _PaymentSheetShadowParams { (identical(other.offset, offset) || other.offset == offset)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, color, opacity, offset); - @JsonKey(ignore: true) + /// Create a copy of PaymentSheetShadowParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PaymentSheetShadowParamsImplCopyWith<_$PaymentSheetShadowParamsImpl> @@ -3506,21 +3647,23 @@ abstract class _PaymentSheetShadowParams implements PaymentSheetShadowParams { factory _PaymentSheetShadowParams.fromJson(Map json) = _$PaymentSheetShadowParamsImpl.fromJson; - @override - /// Shadow color + @override @JsonKey(toJson: ColorKey.toJson, fromJson: ColorKey.fromJson) Color? get color; - @override /// Shadow opacity - double? get opacity; @override + double? get opacity; /// Shadow offset + @override PaymentSheetShadowOffset? get offset; + + /// Create a copy of PaymentSheetShadowParams + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$PaymentSheetShadowParamsImplCopyWith<_$PaymentSheetShadowParamsImpl> get copyWith => throw _privateConstructorUsedError; } @@ -3538,8 +3681,12 @@ mixin _$PaymentSheetShadowOffset { /// Y value double? get y => throw _privateConstructorUsedError; + /// Serializes this PaymentSheetShadowOffset to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of PaymentSheetShadowOffset + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $PaymentSheetShadowOffsetCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -3564,6 +3711,8 @@ class _$PaymentSheetShadowOffsetCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of PaymentSheetShadowOffset + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -3605,6 +3754,8 @@ class __$$PaymentSheetShadowOffsetImplCopyWithImpl<$Res> $Res Function(_$PaymentSheetShadowOffsetImpl) _then) : super(_value, _then); + /// Create a copy of PaymentSheetShadowOffset + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -3647,7 +3798,7 @@ class _$PaymentSheetShadowOffsetImpl implements _PaymentSheetShadowOffset { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PaymentSheetShadowOffsetImpl && @@ -3655,11 +3806,13 @@ class _$PaymentSheetShadowOffsetImpl implements _PaymentSheetShadowOffset { (identical(other.y, y) || other.y == y)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, x, y); - @JsonKey(ignore: true) + /// Create a copy of PaymentSheetShadowOffset + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PaymentSheetShadowOffsetImplCopyWith<_$PaymentSheetShadowOffsetImpl> @@ -3681,16 +3834,18 @@ abstract class _PaymentSheetShadowOffset implements PaymentSheetShadowOffset { factory _PaymentSheetShadowOffset.fromJson(Map json) = _$PaymentSheetShadowOffsetImpl.fromJson; - @override - /// X value - double? get x; @override + double? get x; /// Y value + @override double? get y; + + /// Create a copy of PaymentSheetShadowOffset + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$PaymentSheetShadowOffsetImplCopyWith<_$PaymentSheetShadowOffsetImpl> get copyWith => throw _privateConstructorUsedError; } @@ -3710,8 +3865,12 @@ mixin _$PaymentSheetPrimaryButtonAppearance { PaymentSheetPrimaryButtonShape? get shapes => throw _privateConstructorUsedError; + /// Serializes this PaymentSheetPrimaryButtonAppearance to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of PaymentSheetPrimaryButtonAppearance + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $PaymentSheetPrimaryButtonAppearanceCopyWith< PaymentSheetPrimaryButtonAppearance> get copyWith => throw _privateConstructorUsedError; @@ -3744,6 +3903,8 @@ class _$PaymentSheetPrimaryButtonAppearanceCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of PaymentSheetPrimaryButtonAppearance + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -3762,6 +3923,8 @@ class _$PaymentSheetPrimaryButtonAppearanceCopyWithImpl<$Res, ) as $Val); } + /// Create a copy of PaymentSheetPrimaryButtonAppearance + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentSheetPrimaryButtonThemeCopyWith<$Res>? get colors { @@ -3775,6 +3938,8 @@ class _$PaymentSheetPrimaryButtonAppearanceCopyWithImpl<$Res, }); } + /// Create a copy of PaymentSheetPrimaryButtonAppearance + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentSheetPrimaryButtonShapeCopyWith<$Res>? get shapes { @@ -3818,6 +3983,8 @@ class __$$PaymentSheetPrimaryButtonAppearanceImplCopyWithImpl<$Res> $Res Function(_$PaymentSheetPrimaryButtonAppearanceImpl) _then) : super(_value, _then); + /// Create a copy of PaymentSheetPrimaryButtonAppearance + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -3862,7 +4029,7 @@ class _$PaymentSheetPrimaryButtonAppearanceImpl } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PaymentSheetPrimaryButtonAppearanceImpl && @@ -3870,11 +4037,13 @@ class _$PaymentSheetPrimaryButtonAppearanceImpl (identical(other.shapes, shapes) || other.shapes == shapes)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, colors, shapes); - @JsonKey(ignore: true) + /// Create a copy of PaymentSheetPrimaryButtonAppearance + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PaymentSheetPrimaryButtonAppearanceImplCopyWith< @@ -3901,16 +4070,18 @@ abstract class _PaymentSheetPrimaryButtonAppearance Map json) = _$PaymentSheetPrimaryButtonAppearanceImpl.fromJson; - @override - /// color theme of the primary button - PaymentSheetPrimaryButtonTheme? get colors; @override + PaymentSheetPrimaryButtonTheme? get colors; /// Shape params of the primary button + @override PaymentSheetPrimaryButtonShape? get shapes; + + /// Create a copy of PaymentSheetPrimaryButtonAppearance + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$PaymentSheetPrimaryButtonAppearanceImplCopyWith< _$PaymentSheetPrimaryButtonAppearanceImpl> get copyWith => throw _privateConstructorUsedError; @@ -3932,8 +4103,12 @@ mixin _$PaymentSheetPrimaryButtonShape { /// border width of the primary button on the payment sheet double? get borderWidth => throw _privateConstructorUsedError; + /// Serializes this PaymentSheetPrimaryButtonShape to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of PaymentSheetPrimaryButtonShape + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $PaymentSheetPrimaryButtonShapeCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -3965,6 +4140,8 @@ class _$PaymentSheetPrimaryButtonShapeCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of PaymentSheetPrimaryButtonShape + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -3988,6 +4165,8 @@ class _$PaymentSheetPrimaryButtonShapeCopyWithImpl<$Res, ) as $Val); } + /// Create a copy of PaymentSheetPrimaryButtonShape + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentSheetShadowParamsCopyWith<$Res>? get shadow { @@ -4029,6 +4208,8 @@ class __$$PaymentSheetPrimaryButtonShapeImplCopyWithImpl<$Res> $Res Function(_$PaymentSheetPrimaryButtonShapeImpl) _then) : super(_value, _then); + /// Create a copy of PaymentSheetPrimaryButtonShape + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -4083,7 +4264,7 @@ class _$PaymentSheetPrimaryButtonShapeImpl } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PaymentSheetPrimaryButtonShapeImpl && @@ -4094,11 +4275,13 @@ class _$PaymentSheetPrimaryButtonShapeImpl other.borderWidth == borderWidth)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, shadow, blurRadius, borderWidth); - @JsonKey(ignore: true) + /// Create a copy of PaymentSheetPrimaryButtonShape + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PaymentSheetPrimaryButtonShapeImplCopyWith< @@ -4124,20 +4307,22 @@ abstract class _PaymentSheetPrimaryButtonShape factory _PaymentSheetPrimaryButtonShape.fromJson(Map json) = _$PaymentSheetPrimaryButtonShapeImpl.fromJson; - @override - /// Configuration of the primary button's shadow. - PaymentSheetShadowParams? get shadow; @override + PaymentSheetShadowParams? get shadow; /// the blur radius of the button - double? get blurRadius; @override + double? get blurRadius; /// border width of the primary button on the payment sheet + @override double? get borderWidth; + + /// Create a copy of PaymentSheetPrimaryButtonShape + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$PaymentSheetPrimaryButtonShapeImplCopyWith< _$PaymentSheetPrimaryButtonShapeImpl> get copyWith => throw _privateConstructorUsedError; @@ -4158,8 +4343,12 @@ mixin _$PaymentSheetPrimaryButtonTheme { PaymentSheetPrimaryButtonThemeColors? get light => throw _privateConstructorUsedError; + /// Serializes this PaymentSheetPrimaryButtonTheme to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of PaymentSheetPrimaryButtonTheme + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $PaymentSheetPrimaryButtonThemeCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -4191,6 +4380,8 @@ class _$PaymentSheetPrimaryButtonThemeCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of PaymentSheetPrimaryButtonTheme + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -4209,6 +4400,8 @@ class _$PaymentSheetPrimaryButtonThemeCopyWithImpl<$Res, ) as $Val); } + /// Create a copy of PaymentSheetPrimaryButtonTheme + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentSheetPrimaryButtonThemeColorsCopyWith<$Res>? get dark { @@ -4222,6 +4415,8 @@ class _$PaymentSheetPrimaryButtonThemeCopyWithImpl<$Res, }); } + /// Create a copy of PaymentSheetPrimaryButtonTheme + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentSheetPrimaryButtonThemeColorsCopyWith<$Res>? get light { @@ -4265,6 +4460,8 @@ class __$$PaymentSheetPrimaryButtonThemeImplCopyWithImpl<$Res> $Res Function(_$PaymentSheetPrimaryButtonThemeImpl) _then) : super(_value, _then); + /// Create a copy of PaymentSheetPrimaryButtonTheme + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -4309,7 +4506,7 @@ class _$PaymentSheetPrimaryButtonThemeImpl } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PaymentSheetPrimaryButtonThemeImpl && @@ -4317,11 +4514,13 @@ class _$PaymentSheetPrimaryButtonThemeImpl (identical(other.light, light) || other.light == light)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, dark, light); - @JsonKey(ignore: true) + /// Create a copy of PaymentSheetPrimaryButtonTheme + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PaymentSheetPrimaryButtonThemeImplCopyWith< @@ -4347,16 +4546,18 @@ abstract class _PaymentSheetPrimaryButtonTheme factory _PaymentSheetPrimaryButtonTheme.fromJson(Map json) = _$PaymentSheetPrimaryButtonThemeImpl.fromJson; - @override - /// Colors when displaying button in dark theme - PaymentSheetPrimaryButtonThemeColors? get dark; @override + PaymentSheetPrimaryButtonThemeColors? get dark; /// Colors when displaying button in light theme + @override PaymentSheetPrimaryButtonThemeColors? get light; + + /// Create a copy of PaymentSheetPrimaryButtonTheme + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$PaymentSheetPrimaryButtonThemeImplCopyWith< _$PaymentSheetPrimaryButtonThemeImpl> get copyWith => throw _privateConstructorUsedError; @@ -4381,8 +4582,12 @@ mixin _$PaymentSheetPrimaryButtonThemeColors { @JsonKey(toJson: ColorKey.toJson, fromJson: ColorKey.fromJson) Color? get border => throw _privateConstructorUsedError; + /// Serializes this PaymentSheetPrimaryButtonThemeColors to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of PaymentSheetPrimaryButtonThemeColors + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $PaymentSheetPrimaryButtonThemeColorsCopyWith< PaymentSheetPrimaryButtonThemeColors> get copyWith => throw _privateConstructorUsedError; @@ -4416,6 +4621,8 @@ class _$PaymentSheetPrimaryButtonThemeColorsCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of PaymentSheetPrimaryButtonThemeColors + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -4468,6 +4675,8 @@ class __$$PaymentSheetPrimaryButtonThemeColorsImplCopyWithImpl<$Res> $Res Function(_$PaymentSheetPrimaryButtonThemeColorsImpl) _then) : super(_value, _then); + /// Create a copy of PaymentSheetPrimaryButtonThemeColors + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -4528,7 +4737,7 @@ class _$PaymentSheetPrimaryButtonThemeColorsImpl } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PaymentSheetPrimaryButtonThemeColorsImpl && @@ -4538,11 +4747,13 @@ class _$PaymentSheetPrimaryButtonThemeColorsImpl (identical(other.border, border) || other.border == border)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, background, text, border); - @JsonKey(ignore: true) + /// Create a copy of PaymentSheetPrimaryButtonThemeColors + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PaymentSheetPrimaryButtonThemeColorsImplCopyWith< @@ -4572,23 +4783,25 @@ abstract class _PaymentSheetPrimaryButtonThemeColors Map json) = _$PaymentSheetPrimaryButtonThemeColorsImpl.fromJson; - @override - /// Primary button background color + @override @JsonKey(toJson: ColorKey.toJson, fromJson: ColorKey.fromJson) Color? get background; - @override /// Primary button text color + @override @JsonKey(toJson: ColorKey.toJson, fromJson: ColorKey.fromJson) Color? get text; - @override /// Primary button border color + @override @JsonKey(toJson: ColorKey.toJson, fromJson: ColorKey.fromJson) Color? get border; + + /// Create a copy of PaymentSheetPrimaryButtonThemeColors + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$PaymentSheetPrimaryButtonThemeColorsImplCopyWith< _$PaymentSheetPrimaryButtonThemeColorsImpl> get copyWith => throw _privateConstructorUsedError; @@ -4613,8 +4826,12 @@ mixin _$PresentPaymentSheetParameters { /// has to be set to `false` when initializing the payment sheet. bool get confirmPayment => throw _privateConstructorUsedError; + /// Serializes this PresentPaymentSheetParameters to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of PresentPaymentSheetParameters + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $PresentPaymentSheetParametersCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -4641,6 +4858,8 @@ class _$PresentPaymentSheetParametersCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of PresentPaymentSheetParameters + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -4680,6 +4899,8 @@ class __$$PresentParametersImplCopyWithImpl<$Res> $Res Function(_$PresentParametersImpl) _then) : super(_value, _then); + /// Create a copy of PresentPaymentSheetParameters + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -4729,7 +4950,7 @@ class _$PresentParametersImpl implements _PresentParameters { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PresentParametersImpl && @@ -4739,11 +4960,13 @@ class _$PresentParametersImpl implements _PresentParameters { other.confirmPayment == confirmPayment)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, clientSecret, confirmPayment); - @JsonKey(ignore: true) + /// Create a copy of PresentPaymentSheetParameters + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PresentParametersImplCopyWith<_$PresentParametersImpl> get copyWith => @@ -4766,11 +4989,9 @@ abstract class _PresentParameters implements PresentPaymentSheetParameters { factory _PresentParameters.fromJson(Map json) = _$PresentParametersImpl.fromJson; - @override - /// Key used for client-side retrieval using a publishable key. - String get clientSecret; @override + String get clientSecret; /// Flag that determines whether or not to present payment options or /// directly goes to confirm payment. @@ -4779,9 +5000,13 @@ abstract class _PresentParameters implements PresentPaymentSheetParameters { /// is set to `true` when initializing the payment sheet. /// If value is set to `true` [SetupPaymentSheetParameters.customFlow] /// has to be set to `false` when initializing the payment sheet. + @override bool get confirmPayment; + + /// Create a copy of PresentPaymentSheetParameters + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$PresentParametersImplCopyWith<_$PresentParametersImpl> get copyWith => throw _privateConstructorUsedError; } @@ -4799,8 +5024,12 @@ mixin _$PaymentSheetPresentOptions { /// At which point presentPaymentSheet` will resolve with an error. int? get timeout => throw _privateConstructorUsedError; + /// Serializes this PaymentSheetPresentOptions to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of PaymentSheetPresentOptions + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $PaymentSheetPresentOptionsCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -4826,6 +5055,8 @@ class _$PaymentSheetPresentOptionsCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of PaymentSheetPresentOptions + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -4862,6 +5093,8 @@ class __$$PaymentSheetPresentOptionsImplCopyWithImpl<$Res> $Res Function(_$PaymentSheetPresentOptionsImpl) _then) : super(_value, _then); + /// Create a copy of PaymentSheetPresentOptions + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -4899,18 +5132,20 @@ class _$PaymentSheetPresentOptionsImpl implements _PaymentSheetPresentOptions { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PaymentSheetPresentOptionsImpl && (identical(other.timeout, timeout) || other.timeout == timeout)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, timeout); - @JsonKey(ignore: true) + /// Create a copy of PaymentSheetPresentOptions + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PaymentSheetPresentOptionsImplCopyWith<_$PaymentSheetPresentOptionsImpl> @@ -4933,15 +5168,17 @@ abstract class _PaymentSheetPresentOptions factory _PaymentSheetPresentOptions.fromJson(Map json) = _$PaymentSheetPresentOptionsImpl.fromJson; - @override - /// The number of milliseconds (after presenting) before the Payment Sheet /// closes automatically. /// /// At which point presentPaymentSheet` will resolve with an error. + @override int? get timeout; + + /// Create a copy of PaymentSheetPresentOptions + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$PaymentSheetPresentOptionsImplCopyWith<_$PaymentSheetPresentOptionsImpl> get copyWith => throw _privateConstructorUsedError; } @@ -4959,8 +5196,12 @@ mixin _$PaymentSheetPaymentOption { /// String decoding of the image String? get image => throw _privateConstructorUsedError; + /// Serializes this PaymentSheetPaymentOption to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of PaymentSheetPaymentOption + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $PaymentSheetPaymentOptionCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -4985,6 +5226,8 @@ class _$PaymentSheetPaymentOptionCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of PaymentSheetPaymentOption + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -5026,6 +5269,8 @@ class __$$PaymentSheetPaymentOptionImplCopyWithImpl<$Res> $Res Function(_$PaymentSheetPaymentOptionImpl) _then) : super(_value, _then); + /// Create a copy of PaymentSheetPaymentOption + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -5068,7 +5313,7 @@ class _$PaymentSheetPaymentOptionImpl implements _PaymentSheetPaymentOption { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PaymentSheetPaymentOptionImpl && @@ -5076,11 +5321,13 @@ class _$PaymentSheetPaymentOptionImpl implements _PaymentSheetPaymentOption { (identical(other.image, image) || other.image == image)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, label, image); - @JsonKey(ignore: true) + /// Create a copy of PaymentSheetPaymentOption + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PaymentSheetPaymentOptionImplCopyWith<_$PaymentSheetPaymentOptionImpl> @@ -5103,16 +5350,18 @@ abstract class _PaymentSheetPaymentOption implements PaymentSheetPaymentOption { factory _PaymentSheetPaymentOption.fromJson(Map json) = _$PaymentSheetPaymentOptionImpl.fromJson; - @override - /// The label of the payment option - String get label; @override + String get label; /// String decoding of the image + @override String? get image; + + /// Create a copy of PaymentSheetPaymentOption + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$PaymentSheetPaymentOptionImplCopyWith<_$PaymentSheetPaymentOptionImpl> get copyWith => throw _privateConstructorUsedError; } @@ -5149,8 +5398,12 @@ mixin _$BillingDetailsCollectionConfiguration { /// If `false` (the default), those values will only be used to prefill the corresponding fields in the form. bool? get attachDefaultsToPaymentMethod => throw _privateConstructorUsedError; + /// Serializes this BillingDetailsCollectionConfiguration to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of BillingDetailsCollectionConfiguration + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $BillingDetailsCollectionConfigurationCopyWith< BillingDetailsCollectionConfiguration> get copyWith => throw _privateConstructorUsedError; @@ -5183,6 +5436,8 @@ class _$BillingDetailsCollectionConfigurationCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of BillingDetailsCollectionConfiguration + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -5244,6 +5499,8 @@ class __$$BillingDetailsCollectionConfigurationImplCopyWithImpl<$Res> $Res Function(_$BillingDetailsCollectionConfigurationImpl) _then) : super(_value, _then); + /// Create a copy of BillingDetailsCollectionConfiguration + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -5330,7 +5587,7 @@ class _$BillingDetailsCollectionConfigurationImpl } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$BillingDetailsCollectionConfigurationImpl && @@ -5344,12 +5601,14 @@ class _$BillingDetailsCollectionConfigurationImpl attachDefaultsToPaymentMethod)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash( runtimeType, name, phone, email, address, attachDefaultsToPaymentMethod); - @JsonKey(ignore: true) + /// Create a copy of BillingDetailsCollectionConfiguration + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$BillingDetailsCollectionConfigurationImplCopyWith< @@ -5379,38 +5638,40 @@ abstract class _BillingDetailsCollectionConfiguration Map json) = _$BillingDetailsCollectionConfigurationImpl.fromJson; - @override - /// How to collect the name field. /// /// Defaults to `CollectionMode.automatic`. - CollectionMode? get name; @override + CollectionMode? get name; /// How to collect the phone field. /// /// Defaults to `CollectionMode.automatic`. - CollectionMode? get phone; @override + CollectionMode? get phone; /// How to collect the email field. /// /// Defaults to `CollectionMode.automatic`. - CollectionMode? get email; @override + CollectionMode? get email; /// How to collect the billing address. /// /// Defaults to `CollectionMode.automatic`. - AddressCollectionMode? get address; @override + AddressCollectionMode? get address; /// Whether the values included in `Configuration.defaultBillingDetails` should be attached to the payment method, this includes fields that aren't displayed in the form. /// /// If `false` (the default), those values will only be used to prefill the corresponding fields in the form. + @override bool? get attachDefaultsToPaymentMethod; + + /// Create a copy of BillingDetailsCollectionConfiguration + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$BillingDetailsCollectionConfigurationImplCopyWith< _$BillingDetailsCollectionConfigurationImpl> get copyWith => throw _privateConstructorUsedError; diff --git a/packages/stripe_platform_interface/lib/src/models/payment_sheet.g.dart b/packages/stripe_platform_interface/lib/src/models/payment_sheet.g.dart index 2ef5e69d1..a001e075a 100644 --- a/packages/stripe_platform_interface/lib/src/models/payment_sheet.g.dart +++ b/packages/stripe_platform_interface/lib/src/models/payment_sheet.g.dart @@ -123,7 +123,7 @@ Map _$$IntentConfigurationImplToJson( _$PaymentModeImpl _$$PaymentModeImplFromJson(Map json) => _$PaymentModeImpl( currencyCode: json['currencyCode'] as String, - amount: json['amount'] as int, + amount: (json['amount'] as num).toInt(), setupFutureUsage: $enumDecodeNullable( _$IntentFutureUsageEnumMap, json['setupFutureUsage']), captureMethod: @@ -450,7 +450,7 @@ Map _$$PresentParametersImplToJson( _$PaymentSheetPresentOptionsImpl _$$PaymentSheetPresentOptionsImplFromJson( Map json) => _$PaymentSheetPresentOptionsImpl( - timeout: json['timeout'] as int?, + timeout: (json['timeout'] as num?)?.toInt(), ); Map _$$PaymentSheetPresentOptionsImplToJson( diff --git a/packages/stripe_platform_interface/lib/src/models/platform_pay.freezed.dart b/packages/stripe_platform_interface/lib/src/models/platform_pay.freezed.dart index fa2d81a78..99b44138c 100644 --- a/packages/stripe_platform_interface/lib/src/models/platform_pay.freezed.dart +++ b/packages/stripe_platform_interface/lib/src/models/platform_pay.freezed.dart @@ -12,7 +12,7 @@ part of 'platform_pay.dart'; T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); PlatformPayPaymentMethod _$PlatformPayPaymentMethodFromJson( Map json) { @@ -28,8 +28,12 @@ mixin _$PlatformPayPaymentMethod { PlatformPayShippingContact? get shippingContact => throw _privateConstructorUsedError; + /// Serializes this PlatformPayPaymentMethod to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of PlatformPayPaymentMethod + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $PlatformPayPaymentMethodCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -59,6 +63,8 @@ class _$PlatformPayPaymentMethodCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of PlatformPayPaymentMethod + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -77,6 +83,8 @@ class _$PlatformPayPaymentMethodCopyWithImpl<$Res, ) as $Val); } + /// Create a copy of PlatformPayPaymentMethod + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentMethodCopyWith<$Res> get paymentMethod { @@ -85,6 +93,8 @@ class _$PlatformPayPaymentMethodCopyWithImpl<$Res, }); } + /// Create a copy of PlatformPayPaymentMethod + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PlatformPayShippingContactCopyWith<$Res>? get shippingContact { @@ -128,6 +138,8 @@ class __$$PlatformPayPaymentMethodImplCopyWithImpl<$Res> $Res Function(_$PlatformPayPaymentMethodImpl) _then) : super(_value, _then); + /// Create a copy of PlatformPayPaymentMethod + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -171,7 +183,7 @@ class _$PlatformPayPaymentMethodImpl implements _PlatformPayPaymentMethod { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PlatformPayPaymentMethodImpl && @@ -181,11 +193,13 @@ class _$PlatformPayPaymentMethodImpl implements _PlatformPayPaymentMethod { other.shippingContact == shippingContact)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, paymentMethod, shippingContact); - @JsonKey(ignore: true) + /// Create a copy of PlatformPayPaymentMethod + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PlatformPayPaymentMethodImplCopyWith<_$PlatformPayPaymentMethodImpl> @@ -209,16 +223,18 @@ abstract class _PlatformPayPaymentMethod implements PlatformPayPaymentMethod { factory _PlatformPayPaymentMethod.fromJson(Map json) = _$PlatformPayPaymentMethodImpl.fromJson; - @override - /// The payment method - PaymentMethod get paymentMethod; @override + PaymentMethod get paymentMethod; /// shipping contact of the user + @override PlatformPayShippingContact? get shippingContact; + + /// Create a copy of PlatformPayPaymentMethod + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$PlatformPayPaymentMethodImplCopyWith<_$PlatformPayPaymentMethodImpl> get copyWith => throw _privateConstructorUsedError; } @@ -284,8 +300,13 @@ mixin _$PlatformPaySheetUpdateParams { required TResult orElse(), }) => throw _privateConstructorUsedError; + + /// Serializes this PlatformPaySheetUpdateParams to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of PlatformPaySheetUpdateParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $PlatformPaySheetUpdateParamsCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -315,6 +336,8 @@ class _$PlatformPaySheetUpdateParamsCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of PlatformPaySheetUpdateParams + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -364,6 +387,8 @@ class __$$PlatformPaySheetUpdateParamsImplCopyWithImpl<$Res> $Res Function(_$PlatformPaySheetUpdateParamsImpl) _then) : super(_value, _then); + /// Create a copy of PlatformPaySheetUpdateParams + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -446,7 +471,7 @@ class _$PlatformPaySheetUpdateParamsImpl } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PlatformPaySheetUpdateParamsImpl && @@ -457,7 +482,7 @@ class _$PlatformPaySheetUpdateParamsImpl const DeepCollectionEquality().equals(other._errors, _errors)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash( runtimeType, @@ -465,7 +490,9 @@ class _$PlatformPaySheetUpdateParamsImpl const DeepCollectionEquality().hash(_shippingMethods), const DeepCollectionEquality().hash(_errors)); - @JsonKey(ignore: true) + /// Create a copy of PlatformPaySheetUpdateParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PlatformPaySheetUpdateParamsImplCopyWith< @@ -560,20 +587,22 @@ abstract class _PlatformPaySheetUpdateParams factory _PlatformPaySheetUpdateParams.fromJson(Map json) = _$PlatformPaySheetUpdateParamsImpl.fromJson; - @override - /// list of updated summary items - List get summaryItems; @override + List get summaryItems; /// list of updated shipping methods - List get shippingMethods; @override + List get shippingMethods; /// In case user input is wrong use this to display the errors in the apple pay sheet. + @override List? get errors; + + /// Create a copy of PlatformPaySheetUpdateParams + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$PlatformPaySheetUpdateParamsImplCopyWith< _$PlatformPaySheetUpdateParamsImpl> get copyWith => throw _privateConstructorUsedError; @@ -665,8 +694,13 @@ mixin _$ApplePaySheetError { required TResult orElse(), }) => throw _privateConstructorUsedError; + + /// Serializes this ApplePaySheetError to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of ApplePaySheetError + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $ApplePaySheetErrorCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -690,6 +724,8 @@ class _$ApplePaySheetErrorCopyWithImpl<$Res, $Val extends ApplePaySheetError> // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of ApplePaySheetError + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -726,6 +762,8 @@ class __$$ApplePaySheetErrorInvalidShippingImplCopyWithImpl<$Res> $Res Function(_$ApplePaySheetErrorInvalidShippingImpl) _then) : super(_value, _then); + /// Create a copy of ApplePaySheetError + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -774,7 +812,7 @@ class _$ApplePaySheetErrorInvalidShippingImpl } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$ApplePaySheetErrorInvalidShippingImpl && @@ -782,11 +820,13 @@ class _$ApplePaySheetErrorInvalidShippingImpl (identical(other.message, message) || other.message == message)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, field, message); - @JsonKey(ignore: true) + /// Create a copy of ApplePaySheetError + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$ApplePaySheetErrorInvalidShippingImplCopyWith< @@ -902,11 +942,15 @@ abstract class _ApplePaySheetErrorInvalidShipping _$ApplePaySheetErrorInvalidShippingImpl.fromJson; // Field that will be marked as invalid - InvalidShippingField get field; - @override // message that needs to be displayed on the sheet + InvalidShippingField + get field; // message that needs to be displayed on the sheet + @override String? get message; + + /// Create a copy of ApplePaySheetError + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$ApplePaySheetErrorInvalidShippingImplCopyWith< _$ApplePaySheetErrorInvalidShippingImpl> get copyWith => throw _privateConstructorUsedError; @@ -934,6 +978,8 @@ class __$$ApplePaySheetErrorUnserviceableShippingImplCopyWithImpl<$Res> $Res Function(_$ApplePaySheetErrorUnserviceableShippingImpl) _then) : super(_value, _then); + /// Create a copy of ApplePaySheetError + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -974,18 +1020,20 @@ class _$ApplePaySheetErrorUnserviceableShippingImpl } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$ApplePaySheetErrorUnserviceableShippingImpl && (identical(other.message, message) || other.message == message)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, message); - @JsonKey(ignore: true) + /// Create a copy of ApplePaySheetError + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$ApplePaySheetErrorUnserviceableShippingImplCopyWith< @@ -1100,10 +1148,14 @@ abstract class _ApplePaySheetErrorUnserviceableShipping Map json) = _$ApplePaySheetErrorUnserviceableShippingImpl.fromJson; - @override // message that needs to be displayed on the sheet +// message that needs to be displayed on the sheet + @override String? get message; + + /// Create a copy of ApplePaySheetError + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$ApplePaySheetErrorUnserviceableShippingImplCopyWith< _$ApplePaySheetErrorUnserviceableShippingImpl> get copyWith => throw _privateConstructorUsedError; @@ -1131,6 +1183,8 @@ class __$$ApplePaySheetErrorInvalidCouponCodeImplCopyWithImpl<$Res> $Res Function(_$ApplePaySheetErrorInvalidCouponCodeImpl) _then) : super(_value, _then); + /// Create a copy of ApplePaySheetError + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1170,18 +1224,20 @@ class _$ApplePaySheetErrorInvalidCouponCodeImpl } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$ApplePaySheetErrorInvalidCouponCodeImpl && (identical(other.message, message) || other.message == message)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, message); - @JsonKey(ignore: true) + /// Create a copy of ApplePaySheetError + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$ApplePaySheetErrorInvalidCouponCodeImplCopyWith< @@ -1295,10 +1351,14 @@ abstract class _ApplePaySheetErrorInvalidCouponCode Map json) = _$ApplePaySheetErrorInvalidCouponCodeImpl.fromJson; - @override // message that needs to be displayed on the sheet +// message that needs to be displayed on the sheet + @override String? get message; + + /// Create a copy of ApplePaySheetError + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$ApplePaySheetErrorInvalidCouponCodeImplCopyWith< _$ApplePaySheetErrorInvalidCouponCodeImpl> get copyWith => throw _privateConstructorUsedError; @@ -1326,6 +1386,8 @@ class __$$ApplePaySheetErrorExpiredCouponCodeImplCopyWithImpl<$Res> $Res Function(_$ApplePaySheetErrorExpiredCouponCodeImpl) _then) : super(_value, _then); + /// Create a copy of ApplePaySheetError + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1366,18 +1428,20 @@ class _$ApplePaySheetErrorExpiredCouponCodeImpl } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$ApplePaySheetErrorExpiredCouponCodeImpl && (identical(other.message, message) || other.message == message)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, message); - @JsonKey(ignore: true) + /// Create a copy of ApplePaySheetError + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$ApplePaySheetErrorExpiredCouponCodeImplCopyWith< @@ -1491,10 +1555,14 @@ abstract class _ApplePaySheetErrorExpiredCouponCode Map json) = _$ApplePaySheetErrorExpiredCouponCodeImpl.fromJson; - @override // message that needs to be displayed on the sheet +// message that needs to be displayed on the sheet + @override String? get message; + + /// Create a copy of ApplePaySheetError + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$ApplePaySheetErrorExpiredCouponCodeImplCopyWith< _$ApplePaySheetErrorExpiredCouponCodeImpl> get copyWith => throw _privateConstructorUsedError; @@ -1576,6 +1644,9 @@ class _$PlatformPayPaymentMethodParamsCopyWithImpl<$Res, final $Val _value; // ignore: unused_field final $Res Function($Val) _then; + + /// Create a copy of PlatformPayPaymentMethodParams + /// with the given fields replaced by the non-null parameter values. } /// @nodoc @@ -1603,6 +1674,8 @@ class __$$PlatformPayPaymentMethodParamsGooglePayImplCopyWithImpl<$Res> $Res Function(_$PlatformPayPaymentMethodParamsGooglePayImpl) _then) : super(_value, _then); + /// Create a copy of PlatformPayPaymentMethodParams + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1621,6 +1694,8 @@ class __$$PlatformPayPaymentMethodParamsGooglePayImplCopyWithImpl<$Res> )); } + /// Create a copy of PlatformPayPaymentMethodParams + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $GooglePayParamsCopyWith<$Res> get googlePayParams { @@ -1629,6 +1704,8 @@ class __$$PlatformPayPaymentMethodParamsGooglePayImplCopyWithImpl<$Res> }); } + /// Create a copy of PlatformPayPaymentMethodParams + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $GooglePayPaymentMethodParamsCopyWith<$Res> get googlePayPaymentMethodParams { @@ -1659,7 +1736,7 @@ class _$PlatformPayPaymentMethodParamsGooglePayImpl } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PlatformPayPaymentMethodParamsGooglePayImpl && @@ -1675,7 +1752,9 @@ class _$PlatformPayPaymentMethodParamsGooglePayImpl int get hashCode => Object.hash(runtimeType, googlePayParams, googlePayPaymentMethodParams); - @JsonKey(ignore: true) + /// Create a copy of PlatformPayPaymentMethodParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PlatformPayPaymentMethodParamsGooglePayImplCopyWith< @@ -1772,7 +1851,10 @@ abstract class PlatformPayPaymentMethodParamsGooglePay GooglePayParams get googlePayParams; GooglePayPaymentMethodParams get googlePayPaymentMethodParams; - @JsonKey(ignore: true) + + /// Create a copy of PlatformPayPaymentMethodParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) _$$PlatformPayPaymentMethodParamsGooglePayImplCopyWith< _$PlatformPayPaymentMethodParamsGooglePayImpl> get copyWith => throw _privateConstructorUsedError; @@ -1800,6 +1882,8 @@ class __$$PlatformPayPaymentMethodParamsApplePayImplCopyWithImpl<$Res> $Res Function(_$PlatformPayPaymentMethodParamsApplePayImpl) _then) : super(_value, _then); + /// Create a copy of PlatformPayPaymentMethodParams + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1813,6 +1897,8 @@ class __$$PlatformPayPaymentMethodParamsApplePayImplCopyWithImpl<$Res> )); } + /// Create a copy of PlatformPayPaymentMethodParams + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $ApplePayParamsCopyWith<$Res> get applePayParams { @@ -1839,7 +1925,7 @@ class _$PlatformPayPaymentMethodParamsApplePayImpl } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PlatformPayPaymentMethodParamsApplePayImpl && @@ -1850,7 +1936,9 @@ class _$PlatformPayPaymentMethodParamsApplePayImpl @override int get hashCode => Object.hash(runtimeType, applePayParams); - @JsonKey(ignore: true) + /// Create a copy of PlatformPayPaymentMethodParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PlatformPayPaymentMethodParamsApplePayImplCopyWith< @@ -1944,7 +2032,10 @@ abstract class PlatformPayPaymentMethodParamsApplePay _$PlatformPayPaymentMethodParamsApplePayImpl; ApplePayParams get applePayParams; - @JsonKey(ignore: true) + + /// Create a copy of PlatformPayPaymentMethodParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) _$$PlatformPayPaymentMethodParamsApplePayImplCopyWith< _$PlatformPayPaymentMethodParamsApplePayImpl> get copyWith => throw _privateConstructorUsedError; @@ -1972,6 +2063,8 @@ class __$$PlatformPayPaymentMethodParamsWebImplCopyWithImpl<$Res> $Res Function(_$PlatformPayPaymentMethodParamsWebImpl) _then) : super(_value, _then); + /// Create a copy of PlatformPayPaymentMethodParams + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1985,6 +2078,8 @@ class __$$PlatformPayPaymentMethodParamsWebImplCopyWithImpl<$Res> )); } + /// Create a copy of PlatformPayPaymentMethodParams + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PlatformPayWebPaymentRequestCreateOptionsCopyWith<$Res> get options { @@ -2011,7 +2106,7 @@ class _$PlatformPayPaymentMethodParamsWebImpl } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PlatformPayPaymentMethodParamsWebImpl && @@ -2021,7 +2116,9 @@ class _$PlatformPayPaymentMethodParamsWebImpl @override int get hashCode => Object.hash(runtimeType, options); - @JsonKey(ignore: true) + /// Create a copy of PlatformPayPaymentMethodParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PlatformPayPaymentMethodParamsWebImplCopyWith< @@ -2114,7 +2211,10 @@ abstract class PlatformPayPaymentMethodParamsWeb _$PlatformPayPaymentMethodParamsWebImpl; PlatformPayWebPaymentRequestCreateOptions get options; - @JsonKey(ignore: true) + + /// Create a copy of PlatformPayPaymentMethodParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) _$$PlatformPayPaymentMethodParamsWebImplCopyWith< _$PlatformPayPaymentMethodParamsWebImpl> get copyWith => throw _privateConstructorUsedError; @@ -2187,6 +2287,8 @@ mixin _$PlatformPayConfirmParams { required TResult orElse(), }) => throw _privateConstructorUsedError; + + /// Serializes this PlatformPayConfirmParams to a JSON map. Map toJson() => throw _privateConstructorUsedError; } @@ -2207,6 +2309,9 @@ class _$PlatformPayConfirmParamsCopyWithImpl<$Res, final $Val _value; // ignore: unused_field final $Res Function($Val) _then; + + /// Create a copy of PlatformPayConfirmParams + /// with the given fields replaced by the non-null parameter values. } /// @nodoc @@ -2231,6 +2336,8 @@ class __$$PlatformPayConfirmParamsGooglePayImplCopyWithImpl<$Res> $Res Function(_$PlatformPayConfirmParamsGooglePayImpl) _then) : super(_value, _then); + /// Create a copy of PlatformPayConfirmParams + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -2244,6 +2351,8 @@ class __$$PlatformPayConfirmParamsGooglePayImplCopyWithImpl<$Res> )); } + /// Create a copy of PlatformPayConfirmParams + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $GooglePayParamsCopyWith<$Res> get googlePay { @@ -2278,7 +2387,7 @@ class _$PlatformPayConfirmParamsGooglePayImpl } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PlatformPayConfirmParamsGooglePayImpl && @@ -2286,11 +2395,13 @@ class _$PlatformPayConfirmParamsGooglePayImpl other.googlePay == googlePay)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, googlePay); - @JsonKey(ignore: true) + /// Create a copy of PlatformPayConfirmParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PlatformPayConfirmParamsGooglePayImplCopyWith< @@ -2387,7 +2498,10 @@ abstract class PlatformPayConfirmParamsGooglePay _$PlatformPayConfirmParamsGooglePayImpl.fromJson; GooglePayParams get googlePay; - @JsonKey(ignore: true) + + /// Create a copy of PlatformPayConfirmParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) _$$PlatformPayConfirmParamsGooglePayImplCopyWith< _$PlatformPayConfirmParamsGooglePayImpl> get copyWith => throw _privateConstructorUsedError; @@ -2415,6 +2529,8 @@ class __$$PlatformPayConfirmParamsApplePayImplCopyWithImpl<$Res> $Res Function(_$PlatformPayConfirmParamsApplePayImpl) _then) : super(_value, _then); + /// Create a copy of PlatformPayConfirmParams + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -2428,6 +2544,8 @@ class __$$PlatformPayConfirmParamsApplePayImplCopyWithImpl<$Res> )); } + /// Create a copy of PlatformPayConfirmParams + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $ApplePayParamsCopyWith<$Res> get applePay { @@ -2462,7 +2580,7 @@ class _$PlatformPayConfirmParamsApplePayImpl } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PlatformPayConfirmParamsApplePayImpl && @@ -2470,11 +2588,13 @@ class _$PlatformPayConfirmParamsApplePayImpl other.applePay == applePay)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, applePay); - @JsonKey(ignore: true) + /// Create a copy of PlatformPayConfirmParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PlatformPayConfirmParamsApplePayImplCopyWith< @@ -2570,7 +2690,10 @@ abstract class PlatformPayConfirmParamsApplePay _$PlatformPayConfirmParamsApplePayImpl.fromJson; ApplePayParams get applePay; - @JsonKey(ignore: true) + + /// Create a copy of PlatformPayConfirmParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) _$$PlatformPayConfirmParamsApplePayImplCopyWith< _$PlatformPayConfirmParamsApplePayImpl> get copyWith => throw _privateConstructorUsedError; @@ -2598,6 +2721,8 @@ class __$$PlatformPayConfirmParamsWebImplCopyWithImpl<$Res> $Res Function(_$PlatformPayConfirmParamsWebImpl) _then) : super(_value, _then); + /// Create a copy of PlatformPayConfirmParams + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -2611,6 +2736,8 @@ class __$$PlatformPayConfirmParamsWebImplCopyWithImpl<$Res> )); } + /// Create a copy of PlatformPayConfirmParams + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PlatformPayWebPaymentRequestCreateOptionsCopyWith<$Res> get options { @@ -2645,18 +2772,20 @@ class _$PlatformPayConfirmParamsWebImpl implements PlatformPayConfirmParamsWeb { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PlatformPayConfirmParamsWebImpl && (identical(other.options, options) || other.options == options)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, options); - @JsonKey(ignore: true) + /// Create a copy of PlatformPayConfirmParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PlatformPayConfirmParamsWebImplCopyWith<_$PlatformPayConfirmParamsWebImpl> @@ -2750,7 +2879,10 @@ abstract class PlatformPayConfirmParamsWeb implements PlatformPayConfirmParams { _$PlatformPayConfirmParamsWebImpl.fromJson; PlatformPayWebPaymentRequestCreateOptions get options; - @JsonKey(ignore: true) + + /// Create a copy of PlatformPayConfirmParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) _$$PlatformPayConfirmParamsWebImplCopyWith<_$PlatformPayConfirmParamsWebImpl> get copyWith => throw _privateConstructorUsedError; } @@ -2774,8 +2906,12 @@ mixin _$PlatformPayShippingContact { ///Phone Number of the shipping contact String? get phoneNumber => throw _privateConstructorUsedError; + /// Serializes this PlatformPayShippingContact to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of PlatformPayShippingContact + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $PlatformPayShippingContactCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -2808,6 +2944,8 @@ class _$PlatformPayShippingContactCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of PlatformPayShippingContact + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -2836,6 +2974,8 @@ class _$PlatformPayShippingContactCopyWithImpl<$Res, ) as $Val); } + /// Create a copy of PlatformPayShippingContact + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $ApplePayContactNameCopyWith<$Res> get name { @@ -2844,6 +2984,8 @@ class _$PlatformPayShippingContactCopyWithImpl<$Res, }); } + /// Create a copy of PlatformPayShippingContact + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $ApplePayPostalAddressCopyWith<$Res> get postalAddress { @@ -2884,6 +3026,8 @@ class __$$PlatformPayShippingContactImplCopyWithImpl<$Res> $Res Function(_$PlatformPayShippingContactImpl) _then) : super(_value, _then); + /// Create a copy of PlatformPayShippingContact + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -2949,7 +3093,7 @@ class _$PlatformPayShippingContactImpl implements _PlatformPayShippingContact { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PlatformPayShippingContactImpl && @@ -2962,12 +3106,14 @@ class _$PlatformPayShippingContactImpl implements _PlatformPayShippingContact { other.phoneNumber == phoneNumber)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, emailAddress, name, postalAddress, phoneNumber); - @JsonKey(ignore: true) + /// Create a copy of PlatformPayShippingContact + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PlatformPayShippingContactImplCopyWith<_$PlatformPayShippingContactImpl> @@ -2993,24 +3139,26 @@ abstract class _PlatformPayShippingContact factory _PlatformPayShippingContact.fromJson(Map json) = _$PlatformPayShippingContactImpl.fromJson; - @override - /// Email address of the shipping contact - String? get emailAddress; @override + String? get emailAddress; /// Name of shipping contact - ApplePayContactName get name; @override + ApplePayContactName get name; /// Postal address of shipping contact - ApplePayPostalAddress get postalAddress; @override + ApplePayPostalAddress get postalAddress; ///Phone Number of the shipping contact + @override String? get phoneNumber; + + /// Create a copy of PlatformPayShippingContact + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$PlatformPayShippingContactImplCopyWith<_$PlatformPayShippingContactImpl> get copyWith => throw _privateConstructorUsedError; } @@ -3072,8 +3220,12 @@ mixin _$ApplePayParams { /// Only supported on iOS 16 and higher. PaymentRequestType? get request => throw _privateConstructorUsedError; + /// Serializes this ApplePayParams to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of ApplePayParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $ApplePayParamsCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -3112,6 +3264,8 @@ class _$ApplePayParamsCopyWithImpl<$Res, $Val extends ApplePayParams> // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of ApplePayParams + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -3185,6 +3339,8 @@ class _$ApplePayParamsCopyWithImpl<$Res, $Val extends ApplePayParams> ) as $Val); } + /// Create a copy of ApplePayParams + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentRequestTypeCopyWith<$Res>? get request { @@ -3233,6 +3389,8 @@ class __$$ApplePayParamsImplCopyWithImpl<$Res> _$ApplePayParamsImpl _value, $Res Function(_$ApplePayParamsImpl) _then) : super(_value, _then); + /// Create a copy of ApplePayParams + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -3466,7 +3624,7 @@ class _$ApplePayParamsImpl implements _ApplePayParams { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$ApplePayParamsImpl && @@ -3499,7 +3657,7 @@ class _$ApplePayParamsImpl implements _ApplePayParams { (identical(other.request, request) || other.request == request)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash( runtimeType, @@ -3517,7 +3675,9 @@ class _$ApplePayParamsImpl implements _ApplePayParams { couponCode, request); - @JsonKey(ignore: true) + /// Create a copy of ApplePayParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$ApplePayParamsImplCopyWith<_$ApplePayParamsImpl> get copyWith => @@ -3551,66 +3711,68 @@ abstract class _ApplePayParams implements ApplePayParams { factory _ApplePayParams.fromJson(Map json) = _$ApplePayParamsImpl.fromJson; - @override - /// ISO 3166-1 alpha-2 country code where the transaction is processed. - String get merchantCountryCode; @override + String get merchantCountryCode; /// ISO 4217 alphabetic currency code. - String get currencyCode; @override + String get currencyCode; /// The SDK accepts Amex, Mastercard, Visa, and Discover for Apple Pay by default. Set this property to enable other card networks, for example: ["JCB", "barcode", "chinaUnionPay"]. A full list of possible networks can be found at https://developer.apple.com/documentation/passkit/pkpaymentnetwork. - List? get additionalEnabledNetworks; @override + List? get additionalEnabledNetworks; /// The list of items that describe a purchase. For example: total, tax, discount, and grand total. - List get cartItems; @override + List get cartItems; /// The list of fields that you need for a shipping contact in order to process the transaction. If provided, you must implement the PlatformPayButton component's `onShippingContactSelected` callback and call `updatePlatformPaySheet` from there. - List? get requiredShippingAddressFields; @override + List? get requiredShippingAddressFields; /// The list of fields that you need for a billing contact in order to process the transaction. - List? get requiredBillingContactFields; @override + List? get requiredBillingContactFields; /// An array of shipping method objects that describe the supported shipping methods. If provided, you must implement the PlatformPayButton component's `onShippingMethodSelected` callback and call `updatePlatformPaySheet` from there. - List? get shippingMethods; @override + List? get shippingMethods; /// Set the payment capabilities you support. If set, 3DS is required. - List? get merchantCapabilities; @override + List? get merchantCapabilities; /// An optional value that indicates how to ship purchased items. Defaults to 'Shipping'. - ApplePayShippingType? get shippingType; @override + ApplePayShippingType? get shippingType; /// A list of two-letter ISO 3166 country codes for limiting payment to cards from specific countries or regions. - List? get supportedCountries; @override + List? get supportedCountries; /// Enables support for coupon codes in the Apple Pay button. /// When this is set to true it shows the coupon code field and if [couponCode] /// has a value it will display the value as default /// /// Supported on iOS 15 and higher. - bool? get supportsCouponCode; @override + bool? get supportsCouponCode; /// Default coupon code display in the apple pay sheet - String? get couponCode; @override + String? get couponCode; /// Use this to support different types of payment request. /// /// Only supported on iOS 16 and higher. + @override PaymentRequestType? get request; + + /// Create a copy of ApplePayParams + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$ApplePayParamsImplCopyWith<_$ApplePayParamsImpl> get copyWith => throw _privateConstructorUsedError; } @@ -3649,8 +3811,12 @@ mixin _$GooglePayParams { /// Defaults to true. bool? get allowCreditCards => throw _privateConstructorUsedError; + /// Serializes this GooglePayParams to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of GooglePayParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $GooglePayParamsCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -3680,6 +3846,8 @@ class _$GooglePayParamsCopyWithImpl<$Res, $Val extends GooglePayParams> // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of GooglePayParams + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -3744,6 +3912,8 @@ class __$$GooglePayParamsImplCopyWithImpl<$Res> _$GooglePayParamsImpl _value, $Res Function(_$GooglePayParamsImpl) _then) : super(_value, _then); + /// Create a copy of GooglePayParams + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -3839,7 +4009,7 @@ class _$GooglePayParamsImpl implements _GooglePayParams { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$GooglePayParamsImpl && @@ -3856,12 +4026,14 @@ class _$GooglePayParamsImpl implements _GooglePayParams { other.allowCreditCards == allowCreditCards)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, testEnv, merchantCountryCode, currencyCode, merchantName, isEmailRequired, allowCreditCards); - @JsonKey(ignore: true) + /// Create a copy of GooglePayParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$GooglePayParamsImplCopyWith<_$GooglePayParamsImpl> get copyWith => @@ -3888,41 +4060,44 @@ abstract class _GooglePayParams implements GooglePayParams { factory _GooglePayParams.fromJson(Map json) = _$GooglePayParamsImpl.fromJson; - @override - /** +/** * Set to true to run in a test environment with relaxed application / merchant requirements. This environment is suggested for early development and for easily testing SDK. - Does not require the application to be uploaded to the Google Play Store. - Does not require a Google Pay Developer Profile. - It uses production data, but at the end of the transaction you will receive a fake and non chargeable payment credential. - The user will see a warning message that the app is not recognized/verified. */ - bool get testEnv; @override + bool get testEnv; /// ISO 3166-1 alpha-2 country code where the transaction is processed. - String get merchantCountryCode; @override + String get merchantCountryCode; /// ISO 4217 alphabetic currency code. - String get currencyCode; @override + String get currencyCode; /// Merchant name, displayed in the Google Pay sheet. - String? get merchantName; @override + String? get merchantName; /// Set to true to request an email address. /// /// Defaults to false. - bool? get isEmailRequired; @override + bool? get isEmailRequired; /// Set to false if you don't support credit cards. /// /// Defaults to true. + @override bool? get allowCreditCards; + + /// Create a copy of GooglePayParams + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$GooglePayParamsImplCopyWith<_$GooglePayParamsImpl> get copyWith => throw _privateConstructorUsedError; } @@ -3951,8 +4126,12 @@ mixin _$GooglePayPaymentMethodParams { GooglePayShippingAddressConfig? get shippingAddressConfig => throw _privateConstructorUsedError; + /// Serializes this GooglePayPaymentMethodParams to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of GooglePayPaymentMethodParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $GooglePayPaymentMethodParamsCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -3986,6 +4165,8 @@ class _$GooglePayPaymentMethodParamsCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of GooglePayPaymentMethodParams + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -4014,6 +4195,8 @@ class _$GooglePayPaymentMethodParamsCopyWithImpl<$Res, ) as $Val); } + /// Create a copy of GooglePayPaymentMethodParams + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $GooglePayBillingAddressConfigCopyWith<$Res>? get billingAddressConfig { @@ -4027,6 +4210,8 @@ class _$GooglePayPaymentMethodParamsCopyWithImpl<$Res, }); } + /// Create a copy of GooglePayPaymentMethodParams + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $GooglePayShippingAddressConfigCopyWith<$Res>? get shippingAddressConfig { @@ -4072,6 +4257,8 @@ class __$$GooglePayPaymentMethodParamsImplCopyWithImpl<$Res> $Res Function(_$GooglePayPaymentMethodParamsImpl) _then) : super(_value, _then); + /// Create a copy of GooglePayPaymentMethodParams + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -4141,7 +4328,7 @@ class _$GooglePayPaymentMethodParamsImpl } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$GooglePayPaymentMethodParamsImpl && @@ -4156,12 +4343,14 @@ class _$GooglePayPaymentMethodParamsImpl other.shippingAddressConfig == shippingAddressConfig)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, existingPaymentMethodRequired, amount, billingAddressConfig, shippingAddressConfig); - @JsonKey(ignore: true) + /// Create a copy of GooglePayPaymentMethodParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$GooglePayPaymentMethodParamsImplCopyWith< @@ -4189,27 +4378,29 @@ abstract class _GooglePayPaymentMethodParams factory _GooglePayPaymentMethodParams.fromJson(Map json) = _$GooglePayPaymentMethodParamsImpl.fromJson; - @override - /// If true, Google Pay is considered "available" if the customer's Google Pay wallet has an existing payment method. /// /// Defaults to false. - bool? get existingPaymentMethodRequired; @override + bool? get existingPaymentMethodRequired; /// Total monetary value of the transaction. /// Provide this value in the currency’s smallest unit. - int get amount; @override + int get amount; /// Describes the configuration for billing address collection in the Google Pay sheet. - GooglePayBillingAddressConfig? get billingAddressConfig; @override + GooglePayBillingAddressConfig? get billingAddressConfig; /// Describes the configuration for shipping address collection in the Google Pay sheet. + @override GooglePayShippingAddressConfig? get shippingAddressConfig; + + /// Create a copy of GooglePayPaymentMethodParams + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$GooglePayPaymentMethodParamsImplCopyWith< _$GooglePayPaymentMethodParamsImpl> get copyWith => throw _privateConstructorUsedError; @@ -4237,8 +4428,12 @@ mixin _$GooglePayBillingAddressConfig { /// Defaults to [BillingAddressFormat.MIN] BillingAddressFormat? get format => throw _privateConstructorUsedError; + /// Serializes this GooglePayBillingAddressConfig to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of GooglePayBillingAddressConfig + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $GooglePayBillingAddressConfigCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -4268,6 +4463,8 @@ class _$GooglePayBillingAddressConfigCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of GooglePayBillingAddressConfig + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -4317,6 +4514,8 @@ class __$$GooglePayBillingAddressConfigImplCopyWithImpl<$Res> $Res Function(_$GooglePayBillingAddressConfigImpl) _then) : super(_value, _then); + /// Create a copy of GooglePayBillingAddressConfig + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -4377,7 +4576,7 @@ class _$GooglePayBillingAddressConfigImpl } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$GooglePayBillingAddressConfigImpl && @@ -4388,12 +4587,14 @@ class _$GooglePayBillingAddressConfigImpl (identical(other.format, format) || other.format == format)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, isRequired, isPhoneNumberRequired, format); - @JsonKey(ignore: true) + /// Create a copy of GooglePayBillingAddressConfig + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$GooglePayBillingAddressConfigImplCopyWith< @@ -4420,26 +4621,28 @@ abstract class _GooglePayBillingAddressConfig factory _GooglePayBillingAddressConfig.fromJson(Map json) = _$GooglePayBillingAddressConfigImpl.fromJson; - @override - /// Set to true if billing address is required for payment. /// /// Defaults to false. - bool? get isRequired; @override + bool? get isRequired; /// Set to true if phone number is required for payment. /// /// Defaults to false. - bool? get isPhoneNumberRequired; @override + bool? get isPhoneNumberRequired; /// Defines what address fields to collect. /// /// Defaults to [BillingAddressFormat.MIN] + @override BillingAddressFormat? get format; + + /// Create a copy of GooglePayBillingAddressConfig + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$GooglePayBillingAddressConfigImplCopyWith< _$GooglePayBillingAddressConfigImpl> get copyWith => throw _privateConstructorUsedError; @@ -4467,8 +4670,12 @@ mixin _$GooglePayShippingAddressConfig { /// Defaults to all shipping address countries. List? get allowedCountryCodes => throw _privateConstructorUsedError; + /// Serializes this GooglePayShippingAddressConfig to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of GooglePayShippingAddressConfig + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $GooglePayShippingAddressConfigCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -4498,6 +4705,8 @@ class _$GooglePayShippingAddressConfigCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of GooglePayShippingAddressConfig + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -4547,6 +4756,8 @@ class __$$GooglePayShippingAddressConfigImplCopyWithImpl<$Res> $Res Function(_$GooglePayShippingAddressConfigImpl) _then) : super(_value, _then); + /// Create a copy of GooglePayShippingAddressConfig + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -4622,7 +4833,7 @@ class _$GooglePayShippingAddressConfigImpl } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$GooglePayShippingAddressConfigImpl && @@ -4634,7 +4845,7 @@ class _$GooglePayShippingAddressConfigImpl .equals(other._allowedCountryCodes, _allowedCountryCodes)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash( runtimeType, @@ -4642,7 +4853,9 @@ class _$GooglePayShippingAddressConfigImpl isPhoneNumberRequired, const DeepCollectionEquality().hash(_allowedCountryCodes)); - @JsonKey(ignore: true) + /// Create a copy of GooglePayShippingAddressConfig + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$GooglePayShippingAddressConfigImplCopyWith< @@ -4669,26 +4882,28 @@ abstract class _GooglePayShippingAddressConfig factory _GooglePayShippingAddressConfig.fromJson(Map json) = _$GooglePayShippingAddressConfigImpl.fromJson; - @override - /// Set to true if shipping address is required for payment. /// /// Defaults to false - bool? get isRequired; @override + bool? get isRequired; /// Set to true if phone number is required for payment. /// /// Defaults to false. - bool? get isPhoneNumberRequired; @override + bool? get isPhoneNumberRequired; /// List of ISO 3166-1 alpha-2 country code values of the countries where shipping is allowed. /// /// Defaults to all shipping address countries. + @override List? get allowedCountryCodes; + + /// Create a copy of GooglePayShippingAddressConfig + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$GooglePayShippingAddressConfigImplCopyWith< _$GooglePayShippingAddressConfigImpl> get copyWith => throw _privateConstructorUsedError; @@ -4802,6 +5017,8 @@ mixin _$PaymentRequestType { required TResult orElse(), }) => throw _privateConstructorUsedError; + + /// Serializes this PaymentRequestType to a JSON map. Map toJson() => throw _privateConstructorUsedError; } @@ -4821,6 +5038,9 @@ class _$PaymentRequestTypeCopyWithImpl<$Res, $Val extends PaymentRequestType> final $Val _value; // ignore: unused_field final $Res Function($Val) _then; + + /// Create a copy of PaymentRequestType + /// with the given fields replaced by the non-null parameter values. } /// @nodoc @@ -4849,6 +5069,8 @@ class __$$PaymentRequestTypeRecurringImplCopyWithImpl<$Res> $Res Function(_$PaymentRequestTypeRecurringImpl) _then) : super(_value, _then); + /// Create a copy of PaymentRequestType + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -4944,7 +5166,7 @@ class _$PaymentRequestTypeRecurringImpl } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PaymentRequestTypeRecurringImpl && @@ -4961,7 +5183,7 @@ class _$PaymentRequestTypeRecurringImpl other.tokenNotificationURL == tokenNotificationURL)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash( runtimeType, @@ -4972,7 +5194,9 @@ class _$PaymentRequestTypeRecurringImpl billingAgreement, tokenNotificationURL); - @JsonKey(ignore: true) + /// Create a copy of PaymentRequestType + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PaymentRequestTypeRecurringImplCopyWith<_$PaymentRequestTypeRecurringImpl> @@ -5138,7 +5362,10 @@ abstract class _PaymentRequestTypeRecurring implements PaymentRequestType { /// /// For more info see receiving and handling merchant token notifications String? get tokenNotificationURL; - @JsonKey(ignore: true) + + /// Create a copy of PaymentRequestType + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) _$$PaymentRequestTypeRecurringImplCopyWith<_$PaymentRequestTypeRecurringImpl> get copyWith => throw _privateConstructorUsedError; } @@ -5170,6 +5397,8 @@ class __$$PaymentRequestTypeReloadImplCopyWithImpl<$Res> $Res Function(_$PaymentRequestTypeReloadImpl) _then) : super(_value, _then); + /// Create a copy of PaymentRequestType + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -5272,7 +5501,7 @@ class _$PaymentRequestTypeReloadImpl implements _PaymentRequestTypeReload { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PaymentRequestTypeReloadImpl && @@ -5291,7 +5520,7 @@ class _$PaymentRequestTypeReloadImpl implements _PaymentRequestTypeReload { other.tokenNotificationURL == tokenNotificationURL)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash( runtimeType, @@ -5303,7 +5532,9 @@ class _$PaymentRequestTypeReloadImpl implements _PaymentRequestTypeReload { billingAgreement, tokenNotificationURL); - @JsonKey(ignore: true) + /// Create a copy of PaymentRequestType + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PaymentRequestTypeReloadImplCopyWith<_$PaymentRequestTypeReloadImpl> @@ -5473,7 +5704,10 @@ abstract class _PaymentRequestTypeReload implements PaymentRequestType { /// /// For more info see receiving and handling merchant token notifications String? get tokenNotificationURL; - @JsonKey(ignore: true) + + /// Create a copy of PaymentRequestType + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) _$$PaymentRequestTypeReloadImplCopyWith<_$PaymentRequestTypeReloadImpl> get copyWith => throw _privateConstructorUsedError; } @@ -5498,6 +5732,8 @@ class __$$PaymentRequestTypeMultiMerchantImplCopyWithImpl<$Res> $Res Function(_$PaymentRequestTypeMultiMerchantImpl) _then) : super(_value, _then); + /// Create a copy of PaymentRequestType + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -5543,7 +5779,7 @@ class _$PaymentRequestTypeMultiMerchantImpl } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PaymentRequestTypeMultiMerchantImpl && @@ -5551,12 +5787,14 @@ class _$PaymentRequestTypeMultiMerchantImpl .equals(other._merchants, _merchants)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, const DeepCollectionEquality().hash(_merchants)); - @JsonKey(ignore: true) + /// Create a copy of PaymentRequestType + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PaymentRequestTypeMultiMerchantImplCopyWith< @@ -5696,7 +5934,10 @@ abstract class _PaymentRequestTypeMultiMerchant implements PaymentRequestType { _$PaymentRequestTypeMultiMerchantImpl.fromJson; List get merchants; - @JsonKey(ignore: true) + + /// Create a copy of PaymentRequestType + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) _$$PaymentRequestTypeMultiMerchantImplCopyWith< _$PaymentRequestTypeMultiMerchantImpl> get copyWith => throw _privateConstructorUsedError; @@ -5724,8 +5965,12 @@ mixin _$ApplePayMultiMerchant { /// Amount to authorize for the payment token String get amount => throw _privateConstructorUsedError; + /// Serializes this ApplePayMultiMerchant to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of ApplePayMultiMerchant + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $ApplePayMultiMerchantCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -5755,6 +6000,8 @@ class _$ApplePayMultiMerchantCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of ApplePayMultiMerchant + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -5815,6 +6062,8 @@ class __$$ApplePayMultiMerchantImplCopyWithImpl<$Res> $Res Function(_$ApplePayMultiMerchantImpl) _then) : super(_value, _then); + /// Create a copy of ApplePayMultiMerchant + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -5889,7 +6138,7 @@ class _$ApplePayMultiMerchantImpl implements _ApplePayMultiMerchant { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$ApplePayMultiMerchantImpl && @@ -5904,12 +6153,14 @@ class _$ApplePayMultiMerchantImpl implements _ApplePayMultiMerchant { (identical(other.amount, amount) || other.amount == amount)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, merchantIdentifier, externalIdentifier, merchantName, merchantDomain, amount); - @JsonKey(ignore: true) + /// Create a copy of ApplePayMultiMerchant + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$ApplePayMultiMerchantImplCopyWith<_$ApplePayMultiMerchantImpl> @@ -5935,28 +6186,30 @@ abstract class _ApplePayMultiMerchant implements ApplePayMultiMerchant { factory _ApplePayMultiMerchant.fromJson(Map json) = _$ApplePayMultiMerchantImpl.fromJson; - @override - /// The apple pay merchant identifier - String get merchantIdentifier; @override + String get merchantIdentifier; /// External identifier for the merchant - String get externalIdentifier; @override + String get externalIdentifier; /// The merchant display name Apple pay associates with the payment token - String get merchantName; @override + String get merchantName; /// The merchant top level domain Apple Pay associates with teh payment token - String? get merchantDomain; @override + String? get merchantDomain; /// Amount to authorize for the payment token + @override String get amount; + + /// Create a copy of ApplePayMultiMerchant + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$ApplePayMultiMerchantImplCopyWith<_$ApplePayMultiMerchantImpl> get copyWith => throw _privateConstructorUsedError; } @@ -6020,8 +6273,13 @@ mixin _$PlatformPayOrderDetails { required TResult orElse(), }) => throw _privateConstructorUsedError; + + /// Serializes this PlatformPayOrderDetails to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of PlatformPayOrderDetails + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $PlatformPayOrderDetailsCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -6050,6 +6308,8 @@ class _$PlatformPayOrderDetailsCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of PlatformPayOrderDetails + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -6105,6 +6365,8 @@ class __$$PlatformPayOrderDetailsImplCopyWithImpl<$Res> $Res Function(_$PlatformPayOrderDetailsImpl) _then) : super(_value, _then); + /// Create a copy of PlatformPayOrderDetails + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -6169,7 +6431,7 @@ class _$PlatformPayOrderDetailsImpl implements _PlatformPayOrderDetails { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PlatformPayOrderDetailsImpl && @@ -6183,12 +6445,14 @@ class _$PlatformPayOrderDetailsImpl implements _PlatformPayOrderDetails { other.authenticationToken == authenticationToken)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, orderTypeIdentifier, orderIdentifier, webServiceUrl, authenticationToken); - @JsonKey(ignore: true) + /// Create a copy of PlatformPayOrderDetails + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PlatformPayOrderDetailsImplCopyWith<_$PlatformPayOrderDetailsImpl> @@ -6282,24 +6546,26 @@ abstract class _PlatformPayOrderDetails implements PlatformPayOrderDetails { factory _PlatformPayOrderDetails.fromJson(Map json) = _$PlatformPayOrderDetailsImpl.fromJson; - @override - /// eg: "com.myapp.order" - String get orderTypeIdentifier; @override + String get orderTypeIdentifier; /// eg: "ABC123-AAAA-1111" - String get orderIdentifier; @override + String get orderIdentifier; /// eg: "https://my-backend.example.com/apple-order-tracking-backend" - String get webServiceUrl; @override + String get webServiceUrl; /// eg: "abc123" + @override String get authenticationToken; + + /// Create a copy of PlatformPayOrderDetails + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$PlatformPayOrderDetailsImplCopyWith<_$PlatformPayOrderDetailsImpl> get copyWith => throw _privateConstructorUsedError; } @@ -6355,8 +6621,12 @@ mixin _$PlatformPayWebPaymentRequestCreateOptions { List get disableWallets => throw _privateConstructorUsedError; + /// Serializes this PlatformPayWebPaymentRequestCreateOptions to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of PlatformPayWebPaymentRequestCreateOptions + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $PlatformPayWebPaymentRequestCreateOptionsCopyWith< PlatformPayWebPaymentRequestCreateOptions> get copyWith => throw _privateConstructorUsedError; @@ -6397,6 +6667,8 @@ class _$PlatformPayWebPaymentRequestCreateOptionsCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of PlatformPayWebPaymentRequestCreateOptions + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -6455,6 +6727,8 @@ class _$PlatformPayWebPaymentRequestCreateOptionsCopyWithImpl<$Res, ) as $Val); } + /// Create a copy of PlatformPayWebPaymentRequestCreateOptions + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PlatformPayWebPaymentItemCopyWith<$Res> get total { @@ -6499,6 +6773,8 @@ class __$$PaymentRequestCreateOptionsImplCopyWithImpl<$Res> $Res Function(_$PaymentRequestCreateOptionsImpl) _then) : super(_value, _then); + /// Create a copy of PlatformPayWebPaymentRequestCreateOptions + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -6668,7 +6944,7 @@ class _$PaymentRequestCreateOptionsImpl } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PaymentRequestCreateOptionsImpl && @@ -6692,7 +6968,7 @@ class _$PaymentRequestCreateOptionsImpl .equals(other._disableWallets, _disableWallets)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash( runtimeType, @@ -6707,7 +6983,9 @@ class _$PaymentRequestCreateOptionsImpl const DeepCollectionEquality().hash(_shippingOptions), const DeepCollectionEquality().hash(_disableWallets)); - @JsonKey(ignore: true) + /// Create a copy of PlatformPayWebPaymentRequestCreateOptions + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PaymentRequestCreateOptionsImplCopyWith<_$PaymentRequestCreateOptionsImpl> @@ -6740,24 +7018,22 @@ abstract class _PaymentRequestCreateOptions factory _PaymentRequestCreateOptions.fromJson(Map json) = _$PaymentRequestCreateOptionsImpl.fromJson; - @override - /// The two-letter country code of your Stripe account (e.g., US). - String get country; @override + String get country; /// Three character currency code (e.g., usd). - String get currency; @override + String get currency; /// A PaymentItem object. This PaymentItem is shown to the customer in the browser’s payment interface. - PlatformPayWebPaymentItem get total; @override + PlatformPayWebPaymentItem get total; /// An array of PaymentItem objects. These objects are shown as line items in the browser’s payment interface. /// Note that the sum of the line item amounts does not need to add up to the total amount above. - List get displayItems; @override + List get displayItems; /// By default, the browser‘s payment interface only asks the customer for actual payment information. A customer /// name can be collected by setting this option to true. This collected name will appears in the PaymentResponse object. @@ -6765,33 +7041,37 @@ abstract class _PaymentRequestCreateOptions /// We highly recommend you collect name as this also results in collection of billing address for Apple Pay. /// The billing address can be used to perform address verification and block fraudulent payments. /// For all other payment methods, the billing address is automatically collected when available. - bool get requestPayerName; @override + bool get requestPayerName; /// See the requestPayerName option. - bool get requestPayerEmail; @override + bool get requestPayerEmail; /// See the requestPayerName option. - bool get requestPayerPhone; @override + bool get requestPayerPhone; /// Collect shipping address by setting this option to true. The address appears in the PaymentResponse. /// /// You must also supply a valid [ShippingOptions] to the shippingOptions property. This can be up front at the /// time stripe.paymentRequest is called, or in response to a shippingaddresschange event using the updateWith callback. - bool get requestShipping; @override + bool get requestShipping; /// An array of ShippingOption objects. The first shipping option listed appears in the browser payment interface as the default option. - List get shippingOptions; @override + List get shippingOptions; /// An array of wallet strings. Can be one or more of applePay, googlePay, link, and browserCard. Use this option /// to disable Apple Pay, Google Pay, Link, and/or browser-saved cards. + @override List get disableWallets; + + /// Create a copy of PlatformPayWebPaymentRequestCreateOptions + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$PaymentRequestCreateOptionsImplCopyWith<_$PaymentRequestCreateOptionsImpl> get copyWith => throw _privateConstructorUsedError; } @@ -6817,8 +7097,12 @@ mixin _$PlatformPayWebShippingOption { /// the customer enters, listen for the shippingaddresschange event. num get amount => throw _privateConstructorUsedError; + /// Serializes this PlatformPayWebShippingOption to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of PlatformPayWebShippingOption + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $PlatformPayWebShippingOptionCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -6845,6 +7129,8 @@ class _$PlatformPayWebShippingOptionCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of PlatformPayWebShippingOption + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -6893,6 +7179,8 @@ class __$$$ShippingOptionImplCopyWithImpl<$Res> _$$ShippingOptionImpl _value, $Res Function(_$$ShippingOptionImpl) _then) : super(_value, _then); + /// Create a copy of PlatformPayWebShippingOption + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -6959,7 +7247,7 @@ class _$$ShippingOptionImpl implements _$ShippingOption { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$$ShippingOptionImpl && @@ -6969,11 +7257,13 @@ class _$$ShippingOptionImpl implements _$ShippingOption { (identical(other.amount, amount) || other.amount == amount)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, id, label, detail, amount); - @JsonKey(ignore: true) + /// Create a copy of PlatformPayWebShippingOption + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$$ShippingOptionImplCopyWith<_$$ShippingOptionImpl> get copyWith => @@ -6998,26 +7288,28 @@ abstract class _$ShippingOption implements PlatformPayWebShippingOption { factory _$ShippingOption.fromJson(Map json) = _$$ShippingOptionImpl.fromJson; - @override - /// A unique ID you create to keep track of this shipping option. You’ll be told the ID of the selected option /// on changes and on completion. - String get id; @override + String get id; /// A short label for this shipping option. - String get label; @override + String get label; /// A longer description of this shipping option. - String get detail; @override + String get detail; /// The amount to show for this shipping option. If the cost of this shipping option depends on the shipping address /// the customer enters, listen for the shippingaddresschange event. + @override num get amount; + + /// Create a copy of PlatformPayWebShippingOption + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$$ShippingOptionImplCopyWith<_$$ShippingOptionImpl> get copyWith => throw _privateConstructorUsedError; } @@ -7040,8 +7332,12 @@ mixin _$PlatformPayWebPaymentItem { /// prevent submission. bool get pending => throw _privateConstructorUsedError; + /// Serializes this PlatformPayWebPaymentItem to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of PlatformPayWebPaymentItem + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $PlatformPayWebPaymentItemCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -7066,6 +7362,8 @@ class _$PlatformPayWebPaymentItemCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of PlatformPayWebPaymentItem + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -7109,6 +7407,8 @@ class __$$$PaymentItemImplCopyWithImpl<$Res> _$$PaymentItemImpl _value, $Res Function(_$$PaymentItemImpl) _then) : super(_value, _then); + /// Create a copy of PlatformPayWebPaymentItem + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -7164,7 +7464,7 @@ class _$$PaymentItemImpl implements _$PaymentItem { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$$PaymentItemImpl && @@ -7173,11 +7473,13 @@ class _$$PaymentItemImpl implements _$PaymentItem { (identical(other.pending, pending) || other.pending == pending)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, amount, label, pending); - @JsonKey(ignore: true) + /// Create a copy of PlatformPayWebPaymentItem + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$$PaymentItemImplCopyWith<_$$PaymentItemImpl> get copyWith => @@ -7200,22 +7502,24 @@ abstract class _$PaymentItem implements PlatformPayWebPaymentItem { factory _$PaymentItem.fromJson(Map json) = _$$PaymentItemImpl.fromJson; - @override - /// The amount in the currency's subunit (e.g. cents, yen, etc.) - num get amount; @override + num get amount; /// A name that the browser shows the customer in the payment interface. - String get label; @override + String get label; /// If you might change this amount later (for example, after you have calculated shipping costs), set this to true. /// Note that browsers treat this as a hint for how to display things, and not necessarily as something that will /// prevent submission. + @override bool get pending; + + /// Create a copy of PlatformPayWebPaymentItem + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$$PaymentItemImplCopyWith<_$$PaymentItemImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_platform_interface/lib/src/models/platform_pay.g.dart b/packages/stripe_platform_interface/lib/src/models/platform_pay.g.dart index d3d2c5a03..cc6546d55 100644 --- a/packages/stripe_platform_interface/lib/src/models/platform_pay.g.dart +++ b/packages/stripe_platform_interface/lib/src/models/platform_pay.g.dart @@ -347,7 +347,7 @@ _$GooglePayPaymentMethodParamsImpl _$$GooglePayPaymentMethodParamsImplFromJson( _$GooglePayPaymentMethodParamsImpl( existingPaymentMethodRequired: json['existingPaymentMethodRequired'] as bool?, - amount: json['amount'] as int, + amount: (json['amount'] as num).toInt(), billingAddressConfig: json['billingAddressConfig'] == null ? null : GooglePayBillingAddressConfig.fromJson( diff --git a/packages/stripe_platform_interface/lib/src/models/push_provisioning.freezed.dart b/packages/stripe_platform_interface/lib/src/models/push_provisioning.freezed.dart index 66ead3999..44c5c7631 100644 --- a/packages/stripe_platform_interface/lib/src/models/push_provisioning.freezed.dart +++ b/packages/stripe_platform_interface/lib/src/models/push_provisioning.freezed.dart @@ -12,7 +12,7 @@ part of 'push_provisioning.dart'; T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); GooglePayCardToken _$GooglePayCardTokenFromJson(Map json) { return _GooglePayCardToken.fromJson(json); @@ -44,8 +44,12 @@ mixin _$GooglePayCardToken { /// Deprecated. Use fpanLastFour or dpanLastFour., String get cardLastFour => throw _privateConstructorUsedError; + /// Serializes this GooglePayCardToken to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of GooglePayCardToken + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $GooglePayCardTokenCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -77,6 +81,8 @@ class _$GooglePayCardTokenCopyWithImpl<$Res, $Val extends GooglePayCardToken> // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of GooglePayCardToken + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -153,6 +159,8 @@ class __$$GooglePayCardTokenImplCopyWithImpl<$Res> $Res Function(_$GooglePayCardTokenImpl) _then) : super(_value, _then); + /// Create a copy of GooglePayCardToken + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -257,7 +265,7 @@ class _$GooglePayCardTokenImpl implements _GooglePayCardToken { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$GooglePayCardTokenImpl && @@ -275,12 +283,14 @@ class _$GooglePayCardTokenImpl implements _GooglePayCardToken { other.cardLastFour == cardLastFour)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, id, fpanLastFour, dpanLastFour, network, serviceProvider, issuer, status, cardLastFour); - @JsonKey(ignore: true) + /// Create a copy of GooglePayCardToken + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$GooglePayCardTokenImplCopyWith<_$GooglePayCardTokenImpl> get copyWith => @@ -309,40 +319,42 @@ abstract class _GooglePayCardToken implements GooglePayCardToken { factory _GooglePayCardToken.fromJson(Map json) = _$GooglePayCardTokenImpl.fromJson; - @override - /// The token reference ID., - String get id; @override + String get id; /// Last four digits of the FPAN, - String get fpanLastFour; @override + String get fpanLastFour; /// Last four digits of the DPAN, - String get dpanLastFour; @override + String get dpanLastFour; /// The network of the card. - int get network; @override + int get network; /// The service provider of the card. - int get serviceProvider; @override + int get serviceProvider; /// The name of the issuer., - String get issuer; @override + String get issuer; /// The GooglePayCardTokenStatus., - GooglePayCardTokenStatus get status; @override + GooglePayCardTokenStatus get status; /// Deprecated. Use fpanLastFour or dpanLastFour., + @override String get cardLastFour; + + /// Create a copy of GooglePayCardToken + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$GooglePayCardTokenImplCopyWith<_$GooglePayCardTokenImpl> get copyWith => throw _privateConstructorUsedError; } @@ -356,8 +368,12 @@ mixin _$IsCardInWalletResult { bool get isInWallet => throw _privateConstructorUsedError; GooglePayCardToken? get token => throw _privateConstructorUsedError; + /// Serializes this IsCardInWalletResult to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of IsCardInWalletResult + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $IsCardInWalletResultCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -384,6 +400,8 @@ class _$IsCardInWalletResultCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of IsCardInWalletResult + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -402,6 +420,8 @@ class _$IsCardInWalletResultCopyWithImpl<$Res, ) as $Val); } + /// Create a copy of IsCardInWalletResult + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $GooglePayCardTokenCopyWith<$Res>? get token { @@ -437,6 +457,8 @@ class __$$IsCardInWalletResultImplCopyWithImpl<$Res> $Res Function(_$IsCardInWalletResultImpl) _then) : super(_value, _then); + /// Create a copy of IsCardInWalletResult + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -476,7 +498,7 @@ class _$IsCardInWalletResultImpl implements _IsCardInWalletResult { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$IsCardInWalletResultImpl && @@ -485,11 +507,13 @@ class _$IsCardInWalletResultImpl implements _IsCardInWalletResult { (identical(other.token, token) || other.token == token)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, isInWallet, token); - @JsonKey(ignore: true) + /// Create a copy of IsCardInWalletResult + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$IsCardInWalletResultImplCopyWith<_$IsCardInWalletResultImpl> @@ -517,8 +541,11 @@ abstract class _IsCardInWalletResult implements IsCardInWalletResult { bool get isInWallet; @override GooglePayCardToken? get token; + + /// Create a copy of IsCardInWalletResult + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$IsCardInWalletResultImplCopyWith<_$IsCardInWalletResultImpl> get copyWith => throw _privateConstructorUsedError; } @@ -533,8 +560,12 @@ mixin _$CanAddCardToWalletResult { bool get canAddCard => throw _privateConstructorUsedError; CanAddCardToDetails? get details => throw _privateConstructorUsedError; + /// Serializes this CanAddCardToWalletResult to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of CanAddCardToWalletResult + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $CanAddCardToWalletResultCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -561,6 +592,8 @@ class _$CanAddCardToWalletResultCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of CanAddCardToWalletResult + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -579,6 +612,8 @@ class _$CanAddCardToWalletResultCopyWithImpl<$Res, ) as $Val); } + /// Create a copy of CanAddCardToWalletResult + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $CanAddCardToDetailsCopyWith<$Res>? get details { @@ -617,6 +652,8 @@ class __$$CanAddCardToWalletResultImplCopyWithImpl<$Res> $Res Function(_$CanAddCardToWalletResultImpl) _then) : super(_value, _then); + /// Create a copy of CanAddCardToWalletResult + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -657,7 +694,7 @@ class _$CanAddCardToWalletResultImpl implements _CanAddCardToWalletResult { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$CanAddCardToWalletResultImpl && @@ -666,11 +703,13 @@ class _$CanAddCardToWalletResultImpl implements _CanAddCardToWalletResult { (identical(other.details, details) || other.details == details)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, canAddCard, details); - @JsonKey(ignore: true) + /// Create a copy of CanAddCardToWalletResult + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$CanAddCardToWalletResultImplCopyWith<_$CanAddCardToWalletResultImpl> @@ -697,8 +736,11 @@ abstract class _CanAddCardToWalletResult implements CanAddCardToWalletResult { bool get canAddCard; @override CanAddCardToDetails? get details; + + /// Create a copy of CanAddCardToWalletResult + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$CanAddCardToWalletResultImplCopyWith<_$CanAddCardToWalletResultImpl> get copyWith => throw _privateConstructorUsedError; } @@ -712,8 +754,12 @@ mixin _$CanAddCardToDetails { GooglePayCardToken? get token => throw _privateConstructorUsedError; CanAddCardToWalletStatus? get status => throw _privateConstructorUsedError; + /// Serializes this CanAddCardToDetails to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of CanAddCardToDetails + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $CanAddCardToDetailsCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -739,6 +785,8 @@ class _$CanAddCardToDetailsCopyWithImpl<$Res, $Val extends CanAddCardToDetails> // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of CanAddCardToDetails + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -757,6 +805,8 @@ class _$CanAddCardToDetailsCopyWithImpl<$Res, $Val extends CanAddCardToDetails> ) as $Val); } + /// Create a copy of CanAddCardToDetails + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $GooglePayCardTokenCopyWith<$Res>? get token { @@ -792,6 +842,8 @@ class __$$CanAddCardToDetailsImplCopyWithImpl<$Res> $Res Function(_$CanAddCardToDetailsImpl) _then) : super(_value, _then); + /// Create a copy of CanAddCardToDetails + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -831,7 +883,7 @@ class _$CanAddCardToDetailsImpl implements _CanAddCardToDetails { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$CanAddCardToDetailsImpl && @@ -839,11 +891,13 @@ class _$CanAddCardToDetailsImpl implements _CanAddCardToDetails { (identical(other.status, status) || other.status == status)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, token, status); - @JsonKey(ignore: true) + /// Create a copy of CanAddCardToDetails + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$CanAddCardToDetailsImplCopyWith<_$CanAddCardToDetailsImpl> get copyWith => @@ -870,8 +924,11 @@ abstract class _CanAddCardToDetails implements CanAddCardToDetails { GooglePayCardToken? get token; @override CanAddCardToWalletStatus? get status; + + /// Create a copy of CanAddCardToDetails + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$CanAddCardToDetailsImplCopyWith<_$CanAddCardToDetailsImpl> get copyWith => throw _privateConstructorUsedError; } @@ -898,8 +955,12 @@ mixin _$CanAddCardToWalletParams { /// Android only, defaults to `true`. Set this to `false` if you'd like to allow users without NFC-enabled devices to add cards to the wallet. NFC is required for paying in stores. bool? get supportsTapToPay => throw _privateConstructorUsedError; + /// Serializes this CanAddCardToWalletParams to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of CanAddCardToWalletParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $CanAddCardToWalletParamsCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -929,6 +990,8 @@ class _$CanAddCardToWalletParamsCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of CanAddCardToWalletParams + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -990,6 +1053,8 @@ class __$$CanAddCardToWalletParamsImplCopyWithImpl<$Res> $Res Function(_$CanAddCardToWalletParamsImpl) _then) : super(_value, _then); + /// Create a copy of CanAddCardToWalletParams + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1064,7 +1129,7 @@ class _$CanAddCardToWalletParamsImpl implements _CanAddCardToWalletParams { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$CanAddCardToWalletParamsImpl && @@ -1080,12 +1145,14 @@ class _$CanAddCardToWalletParamsImpl implements _CanAddCardToWalletParams { other.supportsTapToPay == supportsTapToPay)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, primaryAccountIdentifier, cardLastFour, testEnv, hasPairedAppleWatch, supportsTapToPay); - @JsonKey(ignore: true) + /// Create a copy of CanAddCardToWalletParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$CanAddCardToWalletParamsImplCopyWith<_$CanAddCardToWalletParamsImpl> @@ -1111,28 +1178,30 @@ abstract class _CanAddCardToWalletParams implements CanAddCardToWalletParams { factory _CanAddCardToWalletParams.fromJson(Map json) = _$CanAddCardToWalletParamsImpl.fromJson; - @override - ///The `primary_account_identifier` value from the issued card. Can be an empty string. - String? get primaryAccountIdentifier; @override + String? get primaryAccountIdentifier; /// Last 4 digits of the card number. Required for Android. - String get cardLastFour; @override + String get cardLastFour; /// iOS only. Set this to `true` until shipping through TestFlight || App Store. If false, you must be using live cards, and have the proper iOS entitlement set up. See https://stripe.com/docs/issuing/cards/digital-wallets?platform=react-native#requesting-access-for-ios - bool? get testEnv; @override + bool? get testEnv; /// iOS only. Set this to `true` if: your user has an Apple Watch device currently paired, and you want to check that device for the presence of the specified card. - bool? get hasPairedAppleWatch; @override + bool? get hasPairedAppleWatch; /// Android only, defaults to `true`. Set this to `false` if you'd like to allow users without NFC-enabled devices to add cards to the wallet. NFC is required for paying in stores. + @override bool? get supportsTapToPay; + + /// Create a copy of CanAddCardToWalletParams + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$CanAddCardToWalletParamsImplCopyWith<_$CanAddCardToWalletParamsImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_platform_interface/lib/src/models/push_provisioning.g.dart b/packages/stripe_platform_interface/lib/src/models/push_provisioning.g.dart index 2c9f556c4..e74306dcd 100644 --- a/packages/stripe_platform_interface/lib/src/models/push_provisioning.g.dart +++ b/packages/stripe_platform_interface/lib/src/models/push_provisioning.g.dart @@ -12,8 +12,8 @@ _$GooglePayCardTokenImpl _$$GooglePayCardTokenImplFromJson( id: json['id'] as String, fpanLastFour: json['fpanLastFour'] as String, dpanLastFour: json['dpanLastFour'] as String, - network: json['network'] as int, - serviceProvider: json['serviceProvider'] as int, + network: (json['network'] as num).toInt(), + serviceProvider: (json['serviceProvider'] as num).toInt(), issuer: json['issuer'] as String, status: $enumDecode(_$GooglePayCardTokenStatusEnumMap, json['status']), cardLastFour: json['cardLastFour'] as String, 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 1af36150e..2a1608748 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 @@ -12,7 +12,7 @@ part of 'setup_intent.dart'; T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); SetupIntent _$SetupIntentFromJson(Map json) { return _SetupIntent.fromJson(json); @@ -60,8 +60,12 @@ mixin _$SetupIntent { /// Mandata data for this paymentintent. MandateData? get mandateData => throw _privateConstructorUsedError; + /// Serializes this SetupIntent to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of SetupIntent + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $SetupIntentCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -101,6 +105,8 @@ class _$SetupIntentCopyWithImpl<$Res, $Val extends SetupIntent> // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of SetupIntent + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -169,6 +175,8 @@ class _$SetupIntentCopyWithImpl<$Res, $Val extends SetupIntent> ) as $Val); } + /// Create a copy of SetupIntent + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $LastSetupErrorCopyWith<$Res>? get lastSetupError { @@ -181,6 +189,8 @@ class _$SetupIntentCopyWithImpl<$Res, $Val extends SetupIntent> }); } + /// Create a copy of SetupIntent + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $NextActionCopyWith<$Res>? get nextAction { @@ -193,6 +203,8 @@ class _$SetupIntentCopyWithImpl<$Res, $Val extends SetupIntent> }); } + /// Create a copy of SetupIntent + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $MandateDataCopyWith<$Res>? get mandateData { @@ -244,6 +256,8 @@ class __$$SetupIntentImplCopyWithImpl<$Res> _$SetupIntentImpl _value, $Res Function(_$SetupIntentImpl) _then) : super(_value, _then); + /// Create a copy of SetupIntent + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -400,7 +414,7 @@ class _$SetupIntentImpl implements _SetupIntent { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$SetupIntentImpl && @@ -426,7 +440,7 @@ class _$SetupIntentImpl implements _SetupIntent { other.mandateData == mandateData)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash( runtimeType, @@ -443,7 +457,9 @@ class _$SetupIntentImpl implements _SetupIntent { nextAction, mandateData); - @JsonKey(ignore: true) + /// Create a copy of SetupIntent + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$SetupIntentImplCopyWith<_$SetupIntentImpl> get copyWith => @@ -475,59 +491,61 @@ abstract class _SetupIntent implements SetupIntent { factory _SetupIntent.fromJson(Map json) = _$SetupIntentImpl.fromJson; - @override - /// Unique identifier. - String get id; @override + String get id; /// Status of the intent. /// /// See https://stripe.com/docs/payments/intents#intent-statuses. - String get status; @override + String get status; /// Determines whether the intent is in live mode or in test mode. - bool get livemode; @override + bool get livemode; /// The client is secret is used for handling the payment from the Client side. - String get clientSecret; @override + String get clientSecret; /// Id of the payment method used in this intent. - String get paymentMethodId; @override + String get paymentMethodId; /// Indicates how the intent is used in the future. - String get usage; @override + String get usage; /// List of payment method types associated with this intent. - List get paymentMethodTypes; @override + List get paymentMethodTypes; /// Localized description that provides additional context to users. - String? get description; @override + String? get description; /// Timestamp since epoch that represents the time the intent is created. - String? get created; @override + String? get created; /// Error encountered since last configmration. - LastSetupError? get lastSetupError; @override + LastSetupError? get lastSetupError; /// Additional action that needs to be taken in order to complete a payment /// using the provided resource. - NextAction? get nextAction; @override + NextAction? get nextAction; /// Mandata data for this paymentintent. + @override MandateData? get mandateData; + + /// Create a copy of SetupIntent + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$SetupIntentImplCopyWith<_$SetupIntentImpl> get copyWith => throw _privateConstructorUsedError; } @@ -544,8 +562,12 @@ mixin _$LastSetupError { /// Message. String get message => throw _privateConstructorUsedError; + /// Serializes this LastSetupError to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of LastSetupError + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $LastSetupErrorCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -569,6 +591,8 @@ class _$LastSetupErrorCopyWithImpl<$Res, $Val extends LastSetupError> // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of LastSetupError + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -607,6 +631,8 @@ class __$$LastSetupErrorImplCopyWithImpl<$Res> _$LastSetupErrorImpl _value, $Res Function(_$LastSetupErrorImpl) _then) : super(_value, _then); + /// Create a copy of LastSetupError + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -649,7 +675,7 @@ class _$LastSetupErrorImpl implements _LastSetupError { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$LastSetupErrorImpl && @@ -657,11 +683,13 @@ class _$LastSetupErrorImpl implements _LastSetupError { (identical(other.message, message) || other.message == message)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, code, message); - @JsonKey(ignore: true) + /// Create a copy of LastSetupError + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$LastSetupErrorImplCopyWith<_$LastSetupErrorImpl> get copyWith => @@ -684,16 +712,18 @@ abstract class _LastSetupError implements LastSetupError { factory _LastSetupError.fromJson(Map json) = _$LastSetupErrorImpl.fromJson; - @override - /// Code. - String get code; @override + String get code; /// Message. + @override String get message; + + /// Create a copy of LastSetupError + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$LastSetupErrorImplCopyWith<_$LastSetupErrorImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_platform_interface/lib/src/models/three_d_secure.freezed.dart b/packages/stripe_platform_interface/lib/src/models/three_d_secure.freezed.dart index 75b76d65d..dddb4c26b 100644 --- a/packages/stripe_platform_interface/lib/src/models/three_d_secure.freezed.dart +++ b/packages/stripe_platform_interface/lib/src/models/three_d_secure.freezed.dart @@ -12,7 +12,7 @@ part of 'three_d_secure.dart'; T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); ThreeDSecureConfigurationParams _$ThreeDSecureConfigurationParamsFromJson( Map json) { @@ -55,8 +55,12 @@ mixin _$ThreeDSecureConfigurationParams { ThreeDSecureButtonThemeData? get resendButton => throw _privateConstructorUsedError; + /// Serializes this ThreeDSecureConfigurationParams to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of ThreeDSecureConfigurationParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $ThreeDSecureConfigurationParamsCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -101,6 +105,8 @@ class _$ThreeDSecureConfigurationParamsCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of ThreeDSecureConfigurationParams + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -154,6 +160,8 @@ class _$ThreeDSecureConfigurationParamsCopyWithImpl<$Res, ) as $Val); } + /// Create a copy of ThreeDSecureConfigurationParams + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $ThreeDSecureNavigationBarThemeDataCopyWith<$Res> get navigationBar { @@ -163,6 +171,8 @@ class _$ThreeDSecureConfigurationParamsCopyWithImpl<$Res, }); } + /// Create a copy of ThreeDSecureConfigurationParams + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $ThreeDSecureLabelThemeDataCopyWith<$Res>? get label { @@ -175,6 +185,8 @@ class _$ThreeDSecureConfigurationParamsCopyWithImpl<$Res, }); } + /// Create a copy of ThreeDSecureConfigurationParams + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $ThreeDSecureTextFieldThemeDataCopyWith<$Res>? get textField { @@ -188,6 +200,8 @@ class _$ThreeDSecureConfigurationParamsCopyWithImpl<$Res, }); } + /// Create a copy of ThreeDSecureConfigurationParams + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $ThreeDSecureButtonThemeDataCopyWith<$Res>? get submitButton { @@ -201,6 +215,8 @@ class _$ThreeDSecureConfigurationParamsCopyWithImpl<$Res, }); } + /// Create a copy of ThreeDSecureConfigurationParams + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $ThreeDSecureButtonThemeDataCopyWith<$Res>? get cancelButton { @@ -214,6 +230,8 @@ class _$ThreeDSecureConfigurationParamsCopyWithImpl<$Res, }); } + /// Create a copy of ThreeDSecureConfigurationParams + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $ThreeDSecureButtonThemeDataCopyWith<$Res>? get nextButton { @@ -227,6 +245,8 @@ class _$ThreeDSecureConfigurationParamsCopyWithImpl<$Res, }); } + /// Create a copy of ThreeDSecureConfigurationParams + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $ThreeDSecureButtonThemeDataCopyWith<$Res>? get continueButton { @@ -240,6 +260,8 @@ class _$ThreeDSecureConfigurationParamsCopyWithImpl<$Res, }); } + /// Create a copy of ThreeDSecureConfigurationParams + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $ThreeDSecureButtonThemeDataCopyWith<$Res>? get resendButton { @@ -302,6 +324,8 @@ class __$$ThreeDSecureConfigurationParamsImplCopyWithImpl<$Res> $Res Function(_$ThreeDSecureConfigurationParamsImpl) _then) : super(_value, _then); + /// Create a copy of ThreeDSecureConfigurationParams + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -418,7 +442,7 @@ class _$ThreeDSecureConfigurationParamsImpl } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$ThreeDSecureConfigurationParamsImpl && @@ -440,7 +464,7 @@ class _$ThreeDSecureConfigurationParamsImpl other.resendButton == resendButton)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash( runtimeType, @@ -454,7 +478,9 @@ class _$ThreeDSecureConfigurationParamsImpl continueButton, resendButton); - @JsonKey(ignore: true) + /// Create a copy of ThreeDSecureConfigurationParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$ThreeDSecureConfigurationParamsImplCopyWith< @@ -487,44 +513,46 @@ abstract class _ThreeDSecureConfigurationParams factory _ThreeDSecureConfigurationParams.fromJson(Map json) = _$ThreeDSecureConfigurationParamsImpl.fromJson; - @override - /// Styling for the 3d secure navigation bar. - ThreeDSecureNavigationBarThemeData get navigationBar; @override + ThreeDSecureNavigationBarThemeData get navigationBar; /// Desired timeout in milliseconds. - int? get timeout; @override + int? get timeout; /// Styling for the 3d secure label. - ThreeDSecureLabelThemeData? get label; @override + ThreeDSecureLabelThemeData? get label; /// Styling for the 3d secure textfield. - ThreeDSecureTextFieldThemeData? get textField; @override + ThreeDSecureTextFieldThemeData? get textField; /// Styling for the 3d secure confirmation button. - ThreeDSecureButtonThemeData? get submitButton; @override + ThreeDSecureButtonThemeData? get submitButton; /// Styling for the 3d secure cancel button. - ThreeDSecureButtonThemeData? get cancelButton; @override + ThreeDSecureButtonThemeData? get cancelButton; /// Styling for the 3d secure next button. - ThreeDSecureButtonThemeData? get nextButton; @override + ThreeDSecureButtonThemeData? get nextButton; /// Styling for the 3d secure continue button. - ThreeDSecureButtonThemeData? get continueButton; @override + ThreeDSecureButtonThemeData? get continueButton; /// Styling for the 3d secure resend button. + @override ThreeDSecureButtonThemeData? get resendButton; + + /// Create a copy of ThreeDSecureConfigurationParams + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$ThreeDSecureConfigurationParamsImplCopyWith< _$ThreeDSecureConfigurationParamsImpl> get copyWith => throw _privateConstructorUsedError; @@ -555,8 +583,12 @@ mixin _$ThreeDSecureNavigationBarThemeData { /// Font size of header text. double? get textFontSize => throw _privateConstructorUsedError; + /// Serializes this ThreeDSecureNavigationBarThemeData to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of ThreeDSecureNavigationBarThemeData + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $ThreeDSecureNavigationBarThemeDataCopyWith< ThreeDSecureNavigationBarThemeData> get copyWith => throw _privateConstructorUsedError; @@ -590,6 +622,8 @@ class _$ThreeDSecureNavigationBarThemeDataCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of ThreeDSecureNavigationBarThemeData + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -657,6 +691,8 @@ class __$$ThreeDSecureNavigationBarThemeDataImplCopyWithImpl<$Res> $Res Function(_$ThreeDSecureNavigationBarThemeDataImpl) _then) : super(_value, _then); + /// Create a copy of ThreeDSecureNavigationBarThemeData + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -743,7 +779,7 @@ class _$ThreeDSecureNavigationBarThemeDataImpl } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$ThreeDSecureNavigationBarThemeDataImpl && @@ -761,12 +797,14 @@ class _$ThreeDSecureNavigationBarThemeDataImpl other.textFontSize == textFontSize)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, headerText, buttonText, textColor, statusBarColor, backgroundColor, textFontSize); - @JsonKey(ignore: true) + /// Create a copy of ThreeDSecureNavigationBarThemeData + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$ThreeDSecureNavigationBarThemeDataImplCopyWith< @@ -796,32 +834,34 @@ abstract class _ThreeDSecureNavigationBarThemeData Map json) = _$ThreeDSecureNavigationBarThemeDataImpl.fromJson; - @override - /// Localised text of the header. - String? get headerText; @override + String? get headerText; /// localised text of the button - String? get buttonText; @override + String? get buttonText; /// Color in hex to display navigation bar header text. - String? get textColor; @override + String? get textColor; /// Color in hex for the status bar. - String? get statusBarColor; @override + String? get statusBarColor; /// Color in hex to display navigation bar background. - String? get backgroundColor; @override + String? get backgroundColor; /// Font size of header text. + @override double? get textFontSize; + + /// Create a copy of ThreeDSecureNavigationBarThemeData + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$ThreeDSecureNavigationBarThemeDataImplCopyWith< _$ThreeDSecureNavigationBarThemeDataImpl> get copyWith => throw _privateConstructorUsedError; @@ -845,8 +885,12 @@ mixin _$ThreeDSecureLabelThemeData { throw _privateConstructorUsedError; // Font size for header. double? get headingFontSize => throw _privateConstructorUsedError; + /// Serializes this ThreeDSecureLabelThemeData to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of ThreeDSecureLabelThemeData + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $ThreeDSecureLabelThemeDataCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -876,6 +920,8 @@ class _$ThreeDSecureLabelThemeDataCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of ThreeDSecureLabelThemeData + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -931,6 +977,8 @@ class __$$ThreeDSecureLabelThemeDataImplCopyWithImpl<$Res> $Res Function(_$ThreeDSecureLabelThemeDataImpl) _then) : super(_value, _then); + /// Create a copy of ThreeDSecureLabelThemeData + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -995,7 +1043,7 @@ class _$ThreeDSecureLabelThemeDataImpl implements _ThreeDSecureLabelThemeData { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$ThreeDSecureLabelThemeDataImpl && @@ -1009,12 +1057,14 @@ class _$ThreeDSecureLabelThemeDataImpl implements _ThreeDSecureLabelThemeData { other.headingFontSize == headingFontSize)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash( runtimeType, headingTextColor, textColor, textFontSize, headingFontSize); - @JsonKey(ignore: true) + /// Create a copy of ThreeDSecureLabelThemeData + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$ThreeDSecureLabelThemeDataImplCopyWith<_$ThreeDSecureLabelThemeDataImpl> @@ -1040,22 +1090,24 @@ abstract class _ThreeDSecureLabelThemeData factory _ThreeDSecureLabelThemeData.fromJson(Map json) = _$ThreeDSecureLabelThemeDataImpl.fromJson; - @override - /// Color in hex for header text. - String? get headingTextColor; @override + String? get headingTextColor; /// Color in hex for label text. - String? get textColor; @override + String? get textColor; /// Font size for label text. - double? get textFontSize; - @override // Font size for header. + @override + double? get textFontSize; // Font size for header. + @override double? get headingFontSize; + + /// Create a copy of ThreeDSecureLabelThemeData + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$ThreeDSecureLabelThemeDataImplCopyWith<_$ThreeDSecureLabelThemeDataImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1082,8 +1134,12 @@ mixin _$ThreeDSecureTextFieldThemeData { /// Font size for the textfield text. double? get textFontSize => throw _privateConstructorUsedError; + /// Serializes this ThreeDSecureTextFieldThemeData to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of ThreeDSecureTextFieldThemeData + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $ThreeDSecureTextFieldThemeDataCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -1115,6 +1171,8 @@ class _$ThreeDSecureTextFieldThemeDataCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of ThreeDSecureTextFieldThemeData + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1176,6 +1234,8 @@ class __$$ThreeDSecureTextFieldThemeDataImplCopyWithImpl<$Res> $Res Function(_$ThreeDSecureTextFieldThemeDataImpl) _then) : super(_value, _then); + /// Create a copy of ThreeDSecureTextFieldThemeData + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1252,7 +1312,7 @@ class _$ThreeDSecureTextFieldThemeDataImpl } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$ThreeDSecureTextFieldThemeDataImpl && @@ -1268,12 +1328,14 @@ class _$ThreeDSecureTextFieldThemeDataImpl other.textFontSize == textFontSize)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, borderColor, borderWidth, cornerRadius, textColor, textFontSize); - @JsonKey(ignore: true) + /// Create a copy of ThreeDSecureTextFieldThemeData + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$ThreeDSecureTextFieldThemeDataImplCopyWith< @@ -1301,28 +1363,30 @@ abstract class _ThreeDSecureTextFieldThemeData factory _ThreeDSecureTextFieldThemeData.fromJson(Map json) = _$ThreeDSecureTextFieldThemeDataImpl.fromJson; - @override - /// Color in hex for the border - String? get borderColor; @override + String? get borderColor; /// Thickness of the textfield border. - double? get borderWidth; @override + double? get borderWidth; /// Radius for the textfield corners. - double? get cornerRadius; @override + double? get cornerRadius; /// Color in hex for the textfield value. - String? get textColor; @override + String? get textColor; /// Font size for the textfield text. + @override double? get textFontSize; + + /// Create a copy of ThreeDSecureTextFieldThemeData + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$ThreeDSecureTextFieldThemeDataImplCopyWith< _$ThreeDSecureTextFieldThemeDataImpl> get copyWith => throw _privateConstructorUsedError; @@ -1347,8 +1411,12 @@ mixin _$ThreeDSecureButtonThemeData { /// Font size for the button text. double? get textFontSize => throw _privateConstructorUsedError; + /// Serializes this ThreeDSecureButtonThemeData to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of ThreeDSecureButtonThemeData + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $ThreeDSecureButtonThemeDataCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -1379,6 +1447,8 @@ class _$ThreeDSecureButtonThemeDataCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of ThreeDSecureButtonThemeData + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1434,6 +1504,8 @@ class __$$ThreeDSecureButtonThemeDataImplCopyWithImpl<$Res> $Res Function(_$ThreeDSecureButtonThemeDataImpl) _then) : super(_value, _then); + /// Create a copy of ThreeDSecureButtonThemeData + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1500,7 +1572,7 @@ class _$ThreeDSecureButtonThemeDataImpl } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$ThreeDSecureButtonThemeDataImpl && @@ -1514,12 +1586,14 @@ class _$ThreeDSecureButtonThemeDataImpl other.textFontSize == textFontSize)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash( runtimeType, backgroundColor, cornerRadius, textColor, textFontSize); - @JsonKey(ignore: true) + /// Create a copy of ThreeDSecureButtonThemeData + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$ThreeDSecureButtonThemeDataImplCopyWith<_$ThreeDSecureButtonThemeDataImpl> @@ -1545,24 +1619,26 @@ abstract class _ThreeDSecureButtonThemeData factory _ThreeDSecureButtonThemeData.fromJson(Map json) = _$ThreeDSecureButtonThemeDataImpl.fromJson; - @override - /// Color in hex for button background - String? get backgroundColor; @override + String? get backgroundColor; /// Button corner radius. - double? get cornerRadius; @override + double? get cornerRadius; /// Color in hex for button text. - String? get textColor; @override + String? get textColor; /// Font size for the button text. + @override double? get textFontSize; + + /// Create a copy of ThreeDSecureButtonThemeData + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$ThreeDSecureButtonThemeDataImplCopyWith<_$ThreeDSecureButtonThemeDataImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_platform_interface/lib/src/models/three_d_secure.g.dart b/packages/stripe_platform_interface/lib/src/models/three_d_secure.g.dart index 83b88df92..685fd0e80 100644 --- a/packages/stripe_platform_interface/lib/src/models/three_d_secure.g.dart +++ b/packages/stripe_platform_interface/lib/src/models/three_d_secure.g.dart @@ -11,7 +11,7 @@ _$ThreeDSecureConfigurationParamsImpl _$ThreeDSecureConfigurationParamsImpl( navigationBar: ThreeDSecureNavigationBarThemeData.fromJson( json['navigationBar'] as Map), - timeout: json['timeout'] as int?, + timeout: (json['timeout'] as num?)?.toInt(), label: json['label'] == null ? null : ThreeDSecureLabelThemeData.fromJson( diff --git a/packages/stripe_platform_interface/lib/src/models/wallet.freezed.dart b/packages/stripe_platform_interface/lib/src/models/wallet.freezed.dart index dfb01d2e6..2638c401f 100644 --- a/packages/stripe_platform_interface/lib/src/models/wallet.freezed.dart +++ b/packages/stripe_platform_interface/lib/src/models/wallet.freezed.dart @@ -12,7 +12,7 @@ part of 'wallet.dart'; T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); /// @nodoc mixin _$AddToWalletResult { @@ -22,7 +22,9 @@ mixin _$AddToWalletResult { /// additional details from the add to wallet request AddToWalletDetails? get details => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + /// Create a copy of AddToWalletResult + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $AddToWalletResultCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -48,6 +50,8 @@ class _$AddToWalletResultCopyWithImpl<$Res, $Val extends AddToWalletResult> // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of AddToWalletResult + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -66,6 +70,8 @@ class _$AddToWalletResultCopyWithImpl<$Res, $Val extends AddToWalletResult> ) as $Val); } + /// Create a copy of AddToWalletResult + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $AddToWalletDetailsCopyWith<$Res>? get details { @@ -101,6 +107,8 @@ class __$$AddToWalletResultImplCopyWithImpl<$Res> $Res Function(_$AddToWalletResultImpl) _then) : super(_value, _then); + /// Create a copy of AddToWalletResult + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -139,7 +147,7 @@ class _$AddToWalletResultImpl implements _AddToWalletResult { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$AddToWalletResultImpl && @@ -151,7 +159,9 @@ class _$AddToWalletResultImpl implements _AddToWalletResult { @override int get hashCode => Object.hash(runtimeType, canAddToWallet, details); - @JsonKey(ignore: true) + /// Create a copy of AddToWalletResult + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$AddToWalletResultImplCopyWith<_$AddToWalletResultImpl> get copyWith => @@ -164,16 +174,18 @@ abstract class _AddToWalletResult implements AddToWalletResult { {required final bool canAddToWallet, final AddToWalletDetails? details}) = _$AddToWalletResultImpl; - @override - /// Whether or not the card can be added to the wallet - bool get canAddToWallet; @override + bool get canAddToWallet; /// additional details from the add to wallet request + @override AddToWalletDetails? get details; + + /// Create a copy of AddToWalletResult + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$AddToWalletResultImplCopyWith<_$AddToWalletResultImpl> get copyWith => throw _privateConstructorUsedError; } @@ -190,8 +202,12 @@ mixin _$AddToWalletDetails { /// The card token String? get token => throw _privateConstructorUsedError; + /// Serializes this AddToWalletDetails to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of AddToWalletDetails + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $AddToWalletDetailsCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -215,6 +231,8 @@ class _$AddToWalletDetailsCopyWithImpl<$Res, $Val extends AddToWalletDetails> // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of AddToWalletDetails + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -253,6 +271,8 @@ class __$$AddToWalletDetailsImplCopyWithImpl<$Res> $Res Function(_$AddToWalletDetailsImpl) _then) : super(_value, _then); + /// Create a copy of AddToWalletDetails + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -294,7 +314,7 @@ class _$AddToWalletDetailsImpl implements _AddToWalletDetails { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$AddToWalletDetailsImpl && @@ -302,11 +322,13 @@ class _$AddToWalletDetailsImpl implements _AddToWalletDetails { (identical(other.token, token) || other.token == token)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, status, token); - @JsonKey(ignore: true) + /// Create a copy of AddToWalletDetails + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$AddToWalletDetailsImplCopyWith<_$AddToWalletDetailsImpl> get copyWith => @@ -329,16 +351,18 @@ abstract class _AddToWalletDetails implements AddToWalletDetails { factory _AddToWalletDetails.fromJson(Map json) = _$AddToWalletDetailsImpl.fromJson; - @override - /// The status of the can add to wallet request in case it failed. - CanAddToWalletErrorStatus? get status; @override + CanAddToWalletErrorStatus? get status; /// The card token + @override String? get token; + + /// Create a copy of AddToWalletDetails + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$AddToWalletDetailsImplCopyWith<_$AddToWalletDetailsImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_platform_interface/pubspec.yaml b/packages/stripe_platform_interface/pubspec.yaml index 571928add..6cd99f778 100644 --- a/packages/stripe_platform_interface/pubspec.yaml +++ b/packages/stripe_platform_interface/pubspec.yaml @@ -22,4 +22,4 @@ dev_dependencies: sdk: flutter freezed: ^2.4.5 json_serializable: ^6.7.1 - flutter_lints: ^3.0.1 + flutter_lints: ^4.0.0 diff --git a/packages/stripe_web/lib/src/widgets/payment_element.dart b/packages/stripe_web/lib/src/widgets/payment_element.dart index 80002913f..cb51201cf 100644 --- a/packages/stripe_web/lib/src/widgets/payment_element.dart +++ b/packages/stripe_web/lib/src/widgets/payment_element.dart @@ -1,13 +1,13 @@ import 'dart:js_interop'; - -import 'package:web/web.dart' as web; import 'dart:ui_web' as ui; + import 'package:flutter/material.dart'; import 'package:flutter/widgets.dart'; - -import '../../flutter_stripe_web.dart'; import 'package:stripe_js/stripe_api.dart' as js; import 'package:stripe_js/stripe_js.dart' as js; +import 'package:web/web.dart' as web; + +import '../../flutter_stripe_web.dart'; export 'package:stripe_js/stripe_api.dart' show PaymentElementLayout; @@ -15,6 +15,7 @@ typedef PaymentElementTheme = js.ElementTheme; class PaymentElement extends StatefulWidget { final String clientSecret; + final String? customerSessionClientSecret; final double? width; final double? height; final CardStyle? style; @@ -26,10 +27,19 @@ class PaymentElement extends StatefulWidget { final CardChangedCallback onCardChanged; final PaymentElementLayout layout; final js.ElementAppearance? appearance; + final js.PaymentElementDefaultValues? defaultValues; + final js.PaymentElementBusiness? business; + final dynamic paymentMethodOrder; + final js.PaymentElementFields? fields; + final bool? readOnly; + final js.PaymentElementOptionsTerms? terms; + final js.PaymentElementWalletOptions? wallets; + final js.PaymentElementApplePayOptions? applePay; PaymentElement({ super.key, required this.clientSecret, + this.customerSessionClientSecret, this.width, this.height, this.style, @@ -41,6 +51,14 @@ class PaymentElement extends StatefulWidget { required this.onCardChanged, this.layout = PaymentElementLayout.accordion, this.appearance, + this.defaultValues, + this.business, + this.paymentMethodOrder, + this.fields, + this.readOnly, + this.terms, + this.wallets, + this.applePay, }); @override @@ -169,12 +187,23 @@ class PaymentElementState extends State { final appearance = widget.appearance ?? js.ElementAppearance(); return js.JsElementsCreateOptions( clientSecret: widget.clientSecret, + customerSessionClientSecret: widget.customerSessionClientSecret, appearance: appearance.toJson().jsify() as js.JsElementAppearance, ); } js.PaymentElementOptions elementOptions() { - return js.PaymentElementOptions(layout: widget.layout); + return js.PaymentElementOptions( + layout: widget.layout, + defaultValues: widget.defaultValues, + business: widget.business, + paymentMethodOrder: widget.paymentMethodOrder, + fields: widget.fields, + readOnly: widget.readOnly, + terms: widget.terms, + wallets: widget.wallets, + applePay: widget.applePay, + ); } @override diff --git a/packages/stripe_web/pubspec.yaml b/packages/stripe_web/pubspec.yaml index f191b707a..488f11747 100644 --- a/packages/stripe_web/pubspec.yaml +++ b/packages/stripe_web/pubspec.yaml @@ -15,7 +15,7 @@ dependencies: freezed_annotation: ^2.0.3 stripe_platform_interface: ^11.0.0 stripe_js: ^6.0.1 - web: ^0.5.1 + web: ^1.0.0 dev_dependencies: flutter_test: @@ -23,7 +23,7 @@ dev_dependencies: build_runner: ^2.3.2 freezed: ^2.3.5 json_serializable: ^6.5.4 - lints: ^2.0.1 + lints: ^4.0.0 flutter: plugin: