From 62d1a7b28a9915dbcdb463ab6fd020bc4067164b Mon Sep 17 00:00:00 2001 From: Remon Date: Mon, 23 Sep 2024 16:53:16 +0100 Subject: [PATCH] feat: add onconfirm handler --- .../express_checkout_element.dart | 24 +- .../platforms/express_checkout_element.dart | 8 +- .../express_checkout_element_web.dart | 3 + .../affirm_screen.dart | 1 - ...le-developer-merchantid-domain-association | 1 + .../src/api/core/billing_details.freezed.dart | 66 +- .../lib/src/api/core/error.freezed.dart | 32 +- .../api/core/shipping_details.freezed.dart | 68 +- .../card_element_change_event.freezed.dart | 52 +- .../card_element_options.freezed.dart | 60 +- .../elements/element_appearance.freezed.dart | 21 +- .../express_checkout_element_options.dart | 15 + ...ress_checkout_element_options.freezed.dart | 326 +++++++- .../express_checkout_element_options.g.dart | 26 + .../payment_element_change_event.freezed.dart | 44 +- .../payment_element_options.freezed.dart | 623 +++++++++++---- ...t_intent_shipping_information.freezed.dart | 24 +- ...nfirm_acss_debit_payment_data.freezed.dart | 24 +- ...rm_acss_debit_payment_options.freezed.dart | 24 +- .../confirm_alipay_payment_data.freezed.dart | 30 +- ...onfirm_alipay_payment_options.freezed.dart | 28 +- .../confirm_card_payment_data.freezed.dart | 42 +- .../confirm_card_payment_options.freezed.dart | 28 +- .../confirm_ideal_payment_data.freezed.dart | 34 +- ...confirm_ideal_payment_options.freezed.dart | 28 +- .../confirm_payment_options.freezed.dart | 60 +- ...nfirm_sepa_debit_payment_data.freezed.dart | 148 +++- .../payment_intent.freezed.dart | 191 +++-- .../payment_intent_response.freezed.dart | 34 +- .../create_payment_method_data.freezed.dart | 52 +- .../payment_method.freezed.dart | 360 ++++++--- .../payment_method_details.freezed.dart | 163 +++- .../payment_method_params.freezed.dart | 745 +++++++++++++----- .../payment_method_response.freezed.dart | 34 +- .../confirm_card_setup_data.freezed.dart | 32 +- .../confirm_card_setup_options.freezed.dart | 24 +- ...confirm_sepa_debit_setup_data.freezed.dart | 24 +- .../setup_intents/setup_intent.freezed.dart | 72 +- .../setup_intent_response.freezed.dart | 34 +- ...reate_token_bank_account_data.freezed.dart | 27 +- .../create_token_card_data.freezed.dart | 38 +- .../tokens/create_token_pii_data.freezed.dart | 21 +- .../lib/src/api/tokens/token.freezed.dart | 158 ++-- .../api/tokens/token_response.freezed.dart | 34 +- .../element_express_checkout.dart | 10 +- .../src/widgets/express_checkout_element.dart | 11 +- 46 files changed, 2868 insertions(+), 1036 deletions(-) create mode 100644 example/web/.well-known/apple-developer-merchantid-domain-association diff --git a/example/lib/screens/payment_sheet/express_checkout/express_checkout_element.dart b/example/lib/screens/payment_sheet/express_checkout/express_checkout_element.dart index 6362bd236..6a2682e3f 100644 --- a/example/lib/screens/payment_sheet/express_checkout/express_checkout_element.dart +++ b/example/lib/screens/payment_sheet/express_checkout/express_checkout_element.dart @@ -18,8 +18,8 @@ class _ThemeCardExampleState extends State { @override void initState() { - getClientSecret(); super.initState(); + getClientSecret(); } Future getClientSecret() async { @@ -45,14 +45,20 @@ class _ThemeCardExampleState extends State { appBar: AppBar( title: Text('Flutter App'), ), - body: Column( - children: [ - Container( - child: clientSecret != null - ? ExpressCheckoutWidget(clientSecret) - : Center(child: CircularProgressIndicator())), - LoadingButton(onPressed: pay, text: 'Pay'), - ], + body: Center( + child: Container( + constraints: BoxConstraints(maxWidth: 600), + padding: EdgeInsets.symmetric(horizontal: 16, vertical: 52), + child: Column( + children: [ + SizedBox( + child: clientSecret != null + ? ExpressCheckoutWidget(clientSecret) + : Center(child: CircularProgressIndicator())), + LoadingButton(onPressed: pay, text: 'Pay'), + ], + ), + ), ), ); } diff --git a/example/lib/screens/payment_sheet/express_checkout/platforms/express_checkout_element.dart b/example/lib/screens/payment_sheet/express_checkout/platforms/express_checkout_element.dart index 33c7c24e7..36f624962 100644 --- a/example/lib/screens/payment_sheet/express_checkout/platforms/express_checkout_element.dart +++ b/example/lib/screens/payment_sheet/express_checkout/platforms/express_checkout_element.dart @@ -1,7 +1,13 @@ import 'package:flutter/widgets.dart'; +import 'package:flutter_stripe_web/flutter_stripe_web.dart'; +import 'package:stripe_example/screens/payment_sheet/express_checkout/platforms/express_checkout_element_web.dart'; Future pay() async { - throw UnimplementedError(); + await WebStripe.instance.confirmPaymentElement( + ConfirmPaymentElementOptions( + confirmParams: ConfirmPaymentParams(return_url: getReturnUrl()), + ), + ); } class ExpressCheckoutWidget extends StatelessWidget { diff --git a/example/lib/screens/payment_sheet/express_checkout/platforms/express_checkout_element_web.dart b/example/lib/screens/payment_sheet/express_checkout/platforms/express_checkout_element_web.dart index 0207c0619..c4dac9ad0 100644 --- a/example/lib/screens/payment_sheet/express_checkout/platforms/express_checkout_element_web.dart +++ b/example/lib/screens/payment_sheet/express_checkout/platforms/express_checkout_element_web.dart @@ -22,6 +22,9 @@ class ExpressCheckoutWidget extends StatelessWidget { @override Widget build(BuildContext context) { return ExpressCheckoutElement( + onConfirm: (value) { + pay(); + }, clientSecret: clientSecret ?? '', ); } diff --git a/example/lib/screens/regional_payment_methods/affirm_screen.dart b/example/lib/screens/regional_payment_methods/affirm_screen.dart index ca64b52fb..e9de87566 100644 --- a/example/lib/screens/regional_payment_methods/affirm_screen.dart +++ b/example/lib/screens/regional_payment_methods/affirm_screen.dart @@ -24,7 +24,6 @@ class AffirmScreen extends StatelessWidget { }), ); - print('blaat ${json.decode(response.body)}'); return json.decode(response.body); } diff --git a/example/web/.well-known/apple-developer-merchantid-domain-association b/example/web/.well-known/apple-developer-merchantid-domain-association new file mode 100644 index 000000000..87a67950e --- /dev/null +++ b/example/web/.well-known/apple-developer-merchantid-domain-association @@ -0,0 +1 @@ +add here your apple dev association file \ No newline at end of file diff --git a/packages/stripe_js/lib/src/api/core/billing_details.freezed.dart b/packages/stripe_js/lib/src/api/core/billing_details.freezed.dart index ca25e3bac..5d4162ca9 100644 --- a/packages/stripe_js/lib/src/api/core/billing_details.freezed.dart +++ b/packages/stripe_js/lib/src/api/core/billing_details.freezed.dart @@ -32,8 +32,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; } @@ -60,6 +64,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({ @@ -88,6 +94,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') $BillingAddressCopyWith<$Res>? get address { @@ -124,6 +132,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({ @@ -193,11 +203,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 => @@ -222,24 +234,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. - BillingAddress? get address; @override + BillingAddress? 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; } @@ -269,8 +283,12 @@ mixin _$BillingAddress { @JsonKey(name: 'postal_code') String? get postalCode => throw _privateConstructorUsedError; + /// Serializes this BillingAddress to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of BillingAddress + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $BillingAddressCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -300,6 +318,8 @@ class _$BillingAddressCopyWithImpl<$Res, $Val extends BillingAddress> // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of BillingAddress + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -367,6 +387,8 @@ class __$$PaymentElementBillingDetailsAddressImplCopyWithImpl<$Res> $Res Function(_$PaymentElementBillingDetailsAddressImpl) _then) : super(_value, _then); + /// Create a copy of BillingAddress + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -466,12 +488,14 @@ class _$PaymentElementBillingDetailsAddressImpl other.postalCode == postalCode)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, line1, line2, city, state, country, postalCode); - @JsonKey(ignore: true) + /// Create a copy of BillingAddress + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PaymentElementBillingDetailsAddressImplCopyWith< @@ -501,33 +525,35 @@ abstract class _PaymentElementBillingDetailsAddress implements BillingAddress { Map json) = _$PaymentElementBillingDetailsAddressImpl.fromJson; - @override - /// Address line 1 (e.g., street, PO Box, or company name). - String? get line1; @override + String? get line1; /// Address line 2 (e.g., apartment, suite, unit, or building). - String? get line2; @override + String? get line2; /// City, district, suburb, town, or village. - String? get city; @override + String? get city; /// State, county, province, or region. - String? get state; @override + String? get state; /// Two-letter country code (ISO 3166-1 alpha-2). - String? get country; @override + String? get country; /// ZIP or postal code. + @override @JsonKey(name: 'postal_code') String? get postalCode; + + /// Create a copy of BillingAddress + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$PaymentElementBillingDetailsAddressImplCopyWith< _$PaymentElementBillingDetailsAddressImpl> get copyWith => throw _privateConstructorUsedError; diff --git a/packages/stripe_js/lib/src/api/core/error.freezed.dart b/packages/stripe_js/lib/src/api/core/error.freezed.dart index 6029a7071..b65f2f95a 100644 --- a/packages/stripe_js/lib/src/api/core/error.freezed.dart +++ b/packages/stripe_js/lib/src/api/core/error.freezed.dart @@ -41,8 +41,12 @@ mixin _$StripeError { /// field. String? get param => 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; } @@ -71,6 +75,8 @@ class _$StripeErrorCopyWithImpl<$Res, $Val extends StripeError> // 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({ @@ -131,6 +137,8 @@ class __$$PaymentElementChangeEventImplCopyWithImpl<$Res> $Res Function(_$PaymentElementChangeEventImpl) _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({ @@ -218,12 +226,14 @@ class _$PaymentElementChangeEventImpl implements _PaymentElementChangeEvent { (identical(other.param, param) || other.param == param)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, type, code, decline_code, message, param); - @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') _$$PaymentElementChangeEventImplCopyWith<_$PaymentElementChangeEventImpl> @@ -249,34 +259,36 @@ abstract class _PaymentElementChangeEvent implements StripeError { factory _PaymentElementChangeEvent.fromJson(Map json) = _$PaymentElementChangeEventImpl.fromJson; - @override - /// The type of error returned. One of api_error, card_error, /// idempotency_error, or invalid_request_error - String? get type; @override + String? get type; /// For some errors that could be handled programmatically, /// a short string indicating the error code reported. - String? get code; @override + String? get code; /// For card errors resulting from a card issuer decline, a short string /// indicating the card issuer’s reason for the decline if they provide one. - String? get decline_code; @override + String? get decline_code; /// A human-readable message providing more details about the error. /// For card errors, these messages can be shown to your users. - String? get message; @override + String? get message; /// If the error is parameter-specific, the parameter related to the error. /// For example, you can use this to display a message near the correct form /// field. + @override String? get param; + + /// 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) _$$PaymentElementChangeEventImplCopyWith<_$PaymentElementChangeEventImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_js/lib/src/api/core/shipping_details.freezed.dart b/packages/stripe_js/lib/src/api/core/shipping_details.freezed.dart index 5b176ca0c..6cacbe472 100644 --- a/packages/stripe_js/lib/src/api/core/shipping_details.freezed.dart +++ b/packages/stripe_js/lib/src/api/core/shipping_details.freezed.dart @@ -39,8 +39,12 @@ mixin _$ShippingDetails { @JsonKey(name: 'tracking_number') 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; } @@ -71,6 +75,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({ @@ -104,6 +110,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') $ShippingDetailsAddressCopyWith<$Res> get address { @@ -142,6 +150,8 @@ class __$$PaymentElementChangeEventImplCopyWithImpl<$Res> $Res Function(_$PaymentElementChangeEventImpl) _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({ @@ -232,12 +242,14 @@ class _$PaymentElementChangeEventImpl implements _PaymentElementChangeEvent { other.trackingNumber == trackingNumber)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, address, carrier, name, 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') _$$PaymentElementChangeEventImplCopyWith<_$PaymentElementChangeEventImpl> @@ -264,32 +276,34 @@ abstract class _PaymentElementChangeEvent implements ShippingDetails { factory _PaymentElementChangeEvent.fromJson(Map json) = _$PaymentElementChangeEventImpl.fromJson; - @override - /// Shipping address. - ShippingDetailsAddress get address; @override + ShippingDetailsAddress get address; /// The delivery service that shipped a physical product, /// such as Fedex, UPS, USPS, etc. - String? get carrier; @override + String? get carrier; /// Recipient name. - String? get name; @override + String? get name; /// Recipient phone (including extension). - String? get phone; @override + String? get phone; /// The tracking number for a physical product, obtained from the /// delivery service. If multiple tracking numbers were /// generated for this purchase, please separate them with commas. + @override @JsonKey(name: 'tracking_number') 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) _$$PaymentElementChangeEventImplCopyWith<_$PaymentElementChangeEventImpl> get copyWith => throw _privateConstructorUsedError; } @@ -320,8 +334,12 @@ mixin _$ShippingDetailsAddress { @JsonKey(name: 'postal_code') String? get postalCode => throw _privateConstructorUsedError; + /// Serializes this ShippingDetailsAddress to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of ShippingDetailsAddress + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $ShippingDetailsAddressCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -352,6 +370,8 @@ class _$ShippingDetailsAddressCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of ShippingDetailsAddress + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -419,6 +439,8 @@ class __$$PaymentElementBillingDetailsAddressImplCopyWithImpl<$Res> $Res Function(_$PaymentElementBillingDetailsAddressImpl) _then) : super(_value, _then); + /// Create a copy of ShippingDetailsAddress + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -518,12 +540,14 @@ class _$PaymentElementBillingDetailsAddressImpl other.postalCode == postalCode)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, line1, line2, city, state, country, postalCode); - @JsonKey(ignore: true) + /// Create a copy of ShippingDetailsAddress + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PaymentElementBillingDetailsAddressImplCopyWith< @@ -554,33 +578,35 @@ abstract class _PaymentElementBillingDetailsAddress Map json) = _$PaymentElementBillingDetailsAddressImpl.fromJson; - @override - /// Address line 1 (e.g., street, PO Box, or company name). - String? get line1; @override + String? get line1; /// Address line 2 (e.g., apartment, suite, unit, or building). - String? get line2; @override + String? get line2; /// City, district, suburb, town, or village. - String? get city; @override + String? get city; /// State, county, province, or region. - String? get state; @override + String? get state; /// Two-letter country code (ISO 3166-1 alpha-2). - String? get country; @override + String? get country; /// ZIP or postal code. + @override @JsonKey(name: 'postal_code') String? get postalCode; + + /// Create a copy of ShippingDetailsAddress + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$PaymentElementBillingDetailsAddressImplCopyWith< _$PaymentElementBillingDetailsAddressImpl> get copyWith => throw _privateConstructorUsedError; diff --git a/packages/stripe_js/lib/src/api/elements/card_element_change_event.freezed.dart b/packages/stripe_js/lib/src/api/elements/card_element_change_event.freezed.dart index 00ca4f680..0821de34d 100644 --- a/packages/stripe_js/lib/src/api/elements/card_element_change_event.freezed.dart +++ b/packages/stripe_js/lib/src/api/elements/card_element_change_event.freezed.dart @@ -12,7 +12,7 @@ part of 'card_element_change_event.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'); CardElementChangeEvent _$CardElementChangeEventFromJson( Map json) { @@ -28,8 +28,12 @@ mixin _$CardElementChangeEvent { String get brand => throw _privateConstructorUsedError; CardElementChangeEventValue? get value => throw _privateConstructorUsedError; + /// Serializes this CardElementChangeEvent to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of CardElementChangeEvent + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $CardElementChangeEventCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -63,6 +67,8 @@ class _$CardElementChangeEventCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of CardElementChangeEvent + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -101,6 +107,8 @@ class _$CardElementChangeEventCopyWithImpl<$Res, ) as $Val); } + /// Create a copy of CardElementChangeEvent + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $StripeErrorCopyWith<$Res>? get error { @@ -113,6 +121,8 @@ class _$CardElementChangeEventCopyWithImpl<$Res, }); } + /// Create a copy of CardElementChangeEvent + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $CardElementChangeEventValueCopyWith<$Res>? get value { @@ -159,6 +169,8 @@ class __$$CardElementChangeEventImplCopyWithImpl<$Res> $Res Function(_$CardElementChangeEventImpl) _then) : super(_value, _then); + /// Create a copy of CardElementChangeEvent + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -231,7 +243,7 @@ class _$CardElementChangeEventImpl implements _CardElementChangeEvent { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$CardElementChangeEventImpl && @@ -245,12 +257,14 @@ class _$CardElementChangeEventImpl implements _CardElementChangeEvent { (identical(other.value, value) || other.value == value)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash( runtimeType, elementType, empty, complete, error, brand, value); - @JsonKey(ignore: true) + /// Create a copy of CardElementChangeEvent + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$CardElementChangeEventImplCopyWith<_$CardElementChangeEventImpl> @@ -289,8 +303,11 @@ abstract class _CardElementChangeEvent implements CardElementChangeEvent { String get brand; @override CardElementChangeEventValue? get value; + + /// Create a copy of CardElementChangeEvent + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$CardElementChangeEventImplCopyWith<_$CardElementChangeEventImpl> get copyWith => throw _privateConstructorUsedError; } @@ -304,8 +321,12 @@ CardElementChangeEventValue _$CardElementChangeEventValueFromJson( mixin _$CardElementChangeEventValue { String? get postalCode => throw _privateConstructorUsedError; + /// Serializes this CardElementChangeEventValue to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of CardElementChangeEventValue + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $CardElementChangeEventValueCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -332,6 +353,8 @@ class _$CardElementChangeEventValueCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of CardElementChangeEventValue + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -368,6 +391,8 @@ class __$$CardElementChangeEventValueImplCopyWithImpl<$Res> $Res Function(_$CardElementChangeEventValueImpl) _then) : super(_value, _then); + /// Create a copy of CardElementChangeEventValue + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -401,7 +426,7 @@ class _$CardElementChangeEventValueImpl } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$CardElementChangeEventValueImpl && @@ -409,11 +434,13 @@ class _$CardElementChangeEventValueImpl other.postalCode == postalCode)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, postalCode); - @JsonKey(ignore: true) + /// Create a copy of CardElementChangeEventValue + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$CardElementChangeEventValueImplCopyWith<_$CardElementChangeEventValueImpl> @@ -438,8 +465,11 @@ abstract class _CardElementChangeEventValue @override String? get postalCode; + + /// Create a copy of CardElementChangeEventValue + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$CardElementChangeEventValueImplCopyWith<_$CardElementChangeEventValueImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_js/lib/src/api/elements/card_element_options.freezed.dart b/packages/stripe_js/lib/src/api/elements/card_element_options.freezed.dart index c0505529c..914c439ee 100644 --- a/packages/stripe_js/lib/src/api/elements/card_element_options.freezed.dart +++ b/packages/stripe_js/lib/src/api/elements/card_element_options.freezed.dart @@ -30,8 +30,12 @@ mixin _$CardElementOptions { bool? get hideIcon => throw _privateConstructorUsedError; bool? get disabled => throw _privateConstructorUsedError; + /// Serializes this CardElementOptions to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of CardElementOptions + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $CardElementOptionsCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -64,6 +68,8 @@ class _$CardElementOptionsCopyWithImpl<$Res, $Val extends CardElementOptions> // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of CardElementOptions + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -107,6 +113,8 @@ class _$CardElementOptionsCopyWithImpl<$Res, $Val extends CardElementOptions> ) as $Val); } + /// Create a copy of CardElementOptions + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $CardElementClassesCopyWith<$Res>? get classes { @@ -149,6 +157,8 @@ class __$$CardElementOptionsImplCopyWithImpl<$Res> $Res Function(_$CardElementOptionsImpl) _then) : super(_value, _then); + /// Create a copy of CardElementOptions + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -248,7 +258,7 @@ class _$CardElementOptionsImpl implements _CardElementOptions { other.disabled == disabled)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash( runtimeType, @@ -260,7 +270,9 @@ class _$CardElementOptionsImpl implements _CardElementOptions { hideIcon, disabled); - @JsonKey(ignore: true) + /// Create a copy of CardElementOptions + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$CardElementOptionsImplCopyWith<_$CardElementOptionsImpl> get copyWith => @@ -288,10 +300,9 @@ abstract class _CardElementOptions implements CardElementOptions { factory _CardElementOptions.fromJson(Map json) = _$CardElementOptionsImpl.fromJson; - @override - /// Set custom class names on the container DOM element when the /// Stripe element is in a particular state. + @override CardElementClasses? get classes; @override dynamic get style; @@ -305,8 +316,11 @@ abstract class _CardElementOptions implements CardElementOptions { bool? get hideIcon; @override bool? get disabled; + + /// Create a copy of CardElementOptions + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$CardElementOptionsImplCopyWith<_$CardElementOptionsImpl> get copyWith => throw _privateConstructorUsedError; } @@ -341,8 +355,12 @@ mixin _$CardElementClasses { /// Defaults to StripeElement--webkit-autofill. bool? get webkitAutofill => throw _privateConstructorUsedError; + /// Serializes this CardElementClasses to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of CardElementClasses + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $CardElementClassesCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -372,6 +390,8 @@ class _$CardElementClassesCopyWithImpl<$Res, $Val extends CardElementClasses> // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of CardElementClasses + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -436,6 +456,8 @@ class __$$CardElementClassesImplCopyWithImpl<$Res> $Res Function(_$CardElementClassesImpl) _then) : super(_value, _then); + /// Create a copy of CardElementClasses + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -539,12 +561,14 @@ class _$CardElementClassesImpl implements _CardElementClasses { other.webkitAutofill == webkitAutofill)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash( runtimeType, base, complete, empty, focus, invalid, webkitAutofill); - @JsonKey(ignore: true) + /// Create a copy of CardElementClasses + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$CardElementClassesImplCopyWith<_$CardElementClassesImpl> get copyWith => @@ -571,38 +595,40 @@ abstract class _CardElementClasses implements CardElementClasses { factory _CardElementClasses.fromJson(Map json) = _$CardElementClassesImpl.fromJson; - @override - /// The base class applied to the container. Defaults to StripeElement. - String? get base; @override + String? get base; /// The class name to apply when the Element is complete. /// Defaults to StripeElement--complete - String? get complete; @override + String? get complete; /// The class name to apply when the Element is empty. /// Defaults to StripeElement--empty. - String? get empty; @override + String? get empty; /// The class name to apply when the Element is focus. /// Defaults to StripeElement--focus. - String? get focus; @override + String? get focus; /// The class name to apply when the Element is invalid. /// Defaults to StripeElement--invalid. - String? get invalid; @override + String? get invalid; /// The class name to apply when the Element has its value autofilled /// by the browser (only on Chrome and Safari). /// Defaults to StripeElement--webkit-autofill. + @override bool? get webkitAutofill; + + /// Create a copy of CardElementClasses + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$CardElementClassesImplCopyWith<_$CardElementClassesImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_js/lib/src/api/elements/element_appearance.freezed.dart b/packages/stripe_js/lib/src/api/elements/element_appearance.freezed.dart index b490ac041..a86426563 100644 --- a/packages/stripe_js/lib/src/api/elements/element_appearance.freezed.dart +++ b/packages/stripe_js/lib/src/api/elements/element_appearance.freezed.dart @@ -26,8 +26,12 @@ mixin _$ElementAppearance { throw _privateConstructorUsedError; ElementAppearanceLabels get labels => throw _privateConstructorUsedError; + /// Serializes this ElementAppearance to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of ElementAppearance + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $ElementAppearanceCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -55,6 +59,8 @@ class _$ElementAppearanceCopyWithImpl<$Res, $Val extends ElementAppearance> // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of ElementAppearance + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -107,6 +113,8 @@ class __$$ElementAppearanceImplCopyWithImpl<$Res> $Res Function(_$ElementAppearanceImpl) _then) : super(_value, _then); + /// Create a copy of ElementAppearance + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -194,7 +202,7 @@ class _$ElementAppearanceImpl implements _ElementAppearance { (identical(other.labels, labels) || other.labels == labels)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash( runtimeType, @@ -203,7 +211,9 @@ class _$ElementAppearanceImpl implements _ElementAppearance { const DeepCollectionEquality().hash(_rules), labels); - @JsonKey(ignore: true) + /// Create a copy of ElementAppearance + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$ElementAppearanceImplCopyWith<_$ElementAppearanceImpl> get copyWith => @@ -236,8 +246,11 @@ abstract class _ElementAppearance implements ElementAppearance { Map>? get rules; @override ElementAppearanceLabels get labels; + + /// Create a copy of ElementAppearance + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$ElementAppearanceImplCopyWith<_$ElementAppearanceImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_js/lib/src/api/elements/express_checkout_element_options.dart b/packages/stripe_js/lib/src/api/elements/express_checkout_element_options.dart index 0dfa1d189..3c68ef86f 100644 --- a/packages/stripe_js/lib/src/api/elements/express_checkout_element_options.dart +++ b/packages/stripe_js/lib/src/api/elements/express_checkout_element_options.dart @@ -1,4 +1,5 @@ import 'package:freezed_annotation/freezed_annotation.dart'; +import 'package:stripe_js/src/api/core/core.dart'; part 'express_checkout_element_options.freezed.dart'; part 'express_checkout_element_options.g.dart'; @@ -30,6 +31,20 @@ class ExpressCheckoutOptions with _$ExpressCheckoutOptions { @freezed +/// Confirm parameters from the express checkout element +class ExpressCheckoutConfirmEvent with _$ExpressCheckoutConfirmEvent { + factory ExpressCheckoutConfirmEvent({ + /// The method that was used to pay. + required String expressPaymentType, + BillingDetails? billingDetails, + }) = _ExpressCheckoutConfirmEvent; + + factory ExpressCheckoutConfirmEvent.fromJson(Map json) => + _$ExpressCheckoutConfirmEventFromJson(json); +} + +@freezed + /// Layout parameters of the express checkout element class ExpressCheckoutLayout with _$ExpressCheckoutLayout { const factory ExpressCheckoutLayout({ diff --git a/packages/stripe_js/lib/src/api/elements/express_checkout_element_options.freezed.dart b/packages/stripe_js/lib/src/api/elements/express_checkout_element_options.freezed.dart index 9eba2cc72..f09569aad 100644 --- a/packages/stripe_js/lib/src/api/elements/express_checkout_element_options.freezed.dart +++ b/packages/stripe_js/lib/src/api/elements/express_checkout_element_options.freezed.dart @@ -39,8 +39,12 @@ mixin _$ExpressCheckoutOptions { ExpressCheckoutPaymentMethods? get paymentMethods => throw _privateConstructorUsedError; + /// Serializes this ExpressCheckoutOptions to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of ExpressCheckoutOptions + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $ExpressCheckoutOptionsCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -75,6 +79,8 @@ class _$ExpressCheckoutOptionsCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of ExpressCheckoutOptions + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -108,6 +114,8 @@ class _$ExpressCheckoutOptionsCopyWithImpl<$Res, ) as $Val); } + /// Create a copy of ExpressCheckoutOptions + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $ExpressCheckoutButtonThemeCopyWith<$Res>? get buttonTheme { @@ -121,6 +129,8 @@ class _$ExpressCheckoutOptionsCopyWithImpl<$Res, }); } + /// Create a copy of ExpressCheckoutOptions + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $ExpressCheckoutButtonTypeCopyWith<$Res>? get buttonType { @@ -134,6 +144,8 @@ class _$ExpressCheckoutOptionsCopyWithImpl<$Res, }); } + /// Create a copy of ExpressCheckoutOptions + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $ExpressCheckoutLayoutCopyWith<$Res>? get layout { @@ -146,6 +158,8 @@ class _$ExpressCheckoutOptionsCopyWithImpl<$Res, }); } + /// Create a copy of ExpressCheckoutOptions + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $ExpressCheckoutPaymentMethodsCopyWith<$Res>? get paymentMethods { @@ -196,6 +210,8 @@ class __$$ExpressCheckoutOptionsImplCopyWithImpl<$Res> $Res Function(_$ExpressCheckoutOptionsImpl) _then) : super(_value, _then); + /// Create a copy of ExpressCheckoutOptions + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -283,12 +299,14 @@ class _$ExpressCheckoutOptionsImpl implements _ExpressCheckoutOptions { other.paymentMethods == paymentMethods)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash( runtimeType, height, buttonTheme, buttonType, layout, paymentMethods); - @JsonKey(ignore: true) + /// Create a copy of ExpressCheckoutOptions + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$ExpressCheckoutOptionsImplCopyWith<_$ExpressCheckoutOptionsImpl> @@ -315,32 +333,236 @@ abstract class _ExpressCheckoutOptions implements ExpressCheckoutOptions { factory _ExpressCheckoutOptions.fromJson(Map json) = _$ExpressCheckoutOptionsImpl.fromJson; - @override - /// height of the widget - double? get height; @override + double? get height; /// The theme of the buttons - ExpressCheckoutButtonTheme? get buttonTheme; @override + ExpressCheckoutButtonTheme? get buttonTheme; /// The type of buttons - ExpressCheckoutButtonType? get buttonType; @override + ExpressCheckoutButtonType? get buttonType; /// Layout parameters of the express checkout element - ExpressCheckoutLayout? get layout; @override + ExpressCheckoutLayout? get layout; /// Payment methods to display + @override ExpressCheckoutPaymentMethods? get paymentMethods; + + /// Create a copy of ExpressCheckoutOptions + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$ExpressCheckoutOptionsImplCopyWith<_$ExpressCheckoutOptionsImpl> get copyWith => throw _privateConstructorUsedError; } +ExpressCheckoutConfirmEvent _$ExpressCheckoutConfirmEventFromJson( + Map json) { + return _ExpressCheckoutConfirmEvent.fromJson(json); +} + +/// @nodoc +mixin _$ExpressCheckoutConfirmEvent { + String get expressPaymentType => throw _privateConstructorUsedError; + BillingDetails? get billingDetails => throw _privateConstructorUsedError; + + /// Serializes this ExpressCheckoutConfirmEvent to a JSON map. + Map toJson() => throw _privateConstructorUsedError; + + /// Create a copy of ExpressCheckoutConfirmEvent + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) + $ExpressCheckoutConfirmEventCopyWith + get copyWith => throw _privateConstructorUsedError; +} + +/// @nodoc +abstract class $ExpressCheckoutConfirmEventCopyWith<$Res> { + factory $ExpressCheckoutConfirmEventCopyWith( + ExpressCheckoutConfirmEvent value, + $Res Function(ExpressCheckoutConfirmEvent) then) = + _$ExpressCheckoutConfirmEventCopyWithImpl<$Res, + ExpressCheckoutConfirmEvent>; + @useResult + $Res call({String expressPaymentType, BillingDetails? billingDetails}); + + $BillingDetailsCopyWith<$Res>? get billingDetails; +} + +/// @nodoc +class _$ExpressCheckoutConfirmEventCopyWithImpl<$Res, + $Val extends ExpressCheckoutConfirmEvent> + implements $ExpressCheckoutConfirmEventCopyWith<$Res> { + _$ExpressCheckoutConfirmEventCopyWithImpl(this._value, this._then); + + // ignore: unused_field + final $Val _value; + // ignore: unused_field + final $Res Function($Val) _then; + + /// Create a copy of ExpressCheckoutConfirmEvent + /// with the given fields replaced by the non-null parameter values. + @pragma('vm:prefer-inline') + @override + $Res call({ + Object? expressPaymentType = null, + Object? billingDetails = freezed, + }) { + return _then(_value.copyWith( + expressPaymentType: null == expressPaymentType + ? _value.expressPaymentType + : expressPaymentType // ignore: cast_nullable_to_non_nullable + as String, + billingDetails: freezed == billingDetails + ? _value.billingDetails + : billingDetails // ignore: cast_nullable_to_non_nullable + as BillingDetails?, + ) as $Val); + } + + /// Create a copy of ExpressCheckoutConfirmEvent + /// with the given fields replaced by the non-null parameter values. + @override + @pragma('vm:prefer-inline') + $BillingDetailsCopyWith<$Res>? get billingDetails { + if (_value.billingDetails == null) { + return null; + } + + return $BillingDetailsCopyWith<$Res>(_value.billingDetails!, (value) { + return _then(_value.copyWith(billingDetails: value) as $Val); + }); + } +} + +/// @nodoc +abstract class _$$ExpressCheckoutConfirmEventImplCopyWith<$Res> + implements $ExpressCheckoutConfirmEventCopyWith<$Res> { + factory _$$ExpressCheckoutConfirmEventImplCopyWith( + _$ExpressCheckoutConfirmEventImpl value, + $Res Function(_$ExpressCheckoutConfirmEventImpl) then) = + __$$ExpressCheckoutConfirmEventImplCopyWithImpl<$Res>; + @override + @useResult + $Res call({String expressPaymentType, BillingDetails? billingDetails}); + + @override + $BillingDetailsCopyWith<$Res>? get billingDetails; +} + +/// @nodoc +class __$$ExpressCheckoutConfirmEventImplCopyWithImpl<$Res> + extends _$ExpressCheckoutConfirmEventCopyWithImpl<$Res, + _$ExpressCheckoutConfirmEventImpl> + implements _$$ExpressCheckoutConfirmEventImplCopyWith<$Res> { + __$$ExpressCheckoutConfirmEventImplCopyWithImpl( + _$ExpressCheckoutConfirmEventImpl _value, + $Res Function(_$ExpressCheckoutConfirmEventImpl) _then) + : super(_value, _then); + + /// Create a copy of ExpressCheckoutConfirmEvent + /// with the given fields replaced by the non-null parameter values. + @pragma('vm:prefer-inline') + @override + $Res call({ + Object? expressPaymentType = null, + Object? billingDetails = freezed, + }) { + return _then(_$ExpressCheckoutConfirmEventImpl( + expressPaymentType: null == expressPaymentType + ? _value.expressPaymentType + : expressPaymentType // ignore: cast_nullable_to_non_nullable + as String, + billingDetails: freezed == billingDetails + ? _value.billingDetails + : billingDetails // ignore: cast_nullable_to_non_nullable + as BillingDetails?, + )); + } +} + +/// @nodoc +@JsonSerializable() +class _$ExpressCheckoutConfirmEventImpl + implements _ExpressCheckoutConfirmEvent { + _$ExpressCheckoutConfirmEventImpl( + {required this.expressPaymentType, this.billingDetails}); + + factory _$ExpressCheckoutConfirmEventImpl.fromJson( + Map json) => + _$$ExpressCheckoutConfirmEventImplFromJson(json); + + @override + final String expressPaymentType; + @override + final BillingDetails? billingDetails; + + @override + String toString() { + return 'ExpressCheckoutConfirmEvent(expressPaymentType: $expressPaymentType, billingDetails: $billingDetails)'; + } + + @override + bool operator ==(Object other) { + return identical(this, other) || + (other.runtimeType == runtimeType && + other is _$ExpressCheckoutConfirmEventImpl && + (identical(other.expressPaymentType, expressPaymentType) || + other.expressPaymentType == expressPaymentType) && + (identical(other.billingDetails, billingDetails) || + other.billingDetails == billingDetails)); + } + + @JsonKey(includeFromJson: false, includeToJson: false) + @override + int get hashCode => + Object.hash(runtimeType, expressPaymentType, billingDetails); + + /// Create a copy of ExpressCheckoutConfirmEvent + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) + @override + @pragma('vm:prefer-inline') + _$$ExpressCheckoutConfirmEventImplCopyWith<_$ExpressCheckoutConfirmEventImpl> + get copyWith => __$$ExpressCheckoutConfirmEventImplCopyWithImpl< + _$ExpressCheckoutConfirmEventImpl>(this, _$identity); + + @override + Map toJson() { + return _$$ExpressCheckoutConfirmEventImplToJson( + this, + ); + } +} + +abstract class _ExpressCheckoutConfirmEvent + implements ExpressCheckoutConfirmEvent { + factory _ExpressCheckoutConfirmEvent( + {required final String expressPaymentType, + final BillingDetails? billingDetails}) = + _$ExpressCheckoutConfirmEventImpl; + + factory _ExpressCheckoutConfirmEvent.fromJson(Map json) = + _$ExpressCheckoutConfirmEventImpl.fromJson; + + @override + String get expressPaymentType; + @override + BillingDetails? get billingDetails; + + /// Create a copy of ExpressCheckoutConfirmEvent + /// with the given fields replaced by the non-null parameter values. + @override + @JsonKey(includeFromJson: false, includeToJson: false) + _$$ExpressCheckoutConfirmEventImplCopyWith<_$ExpressCheckoutConfirmEventImpl> + get copyWith => throw _privateConstructorUsedError; +} + ExpressCheckoutLayout _$ExpressCheckoutLayoutFromJson( Map json) { return _ExpressCheckoutLayout.fromJson(json); @@ -352,8 +574,12 @@ mixin _$ExpressCheckoutLayout { int? get maxRows => throw _privateConstructorUsedError; ExpressCheckoutOverflow? get overflow => throw _privateConstructorUsedError; + /// Serializes this ExpressCheckoutLayout to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of ExpressCheckoutLayout + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $ExpressCheckoutLayoutCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -378,6 +604,8 @@ class _$ExpressCheckoutLayoutCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of ExpressCheckoutLayout + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -423,6 +651,8 @@ class __$$ExpressCheckoutLayoutImplCopyWithImpl<$Res> $Res Function(_$ExpressCheckoutLayoutImpl) _then) : super(_value, _then); + /// Create a copy of ExpressCheckoutLayout + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -480,11 +710,13 @@ class _$ExpressCheckoutLayoutImpl implements _ExpressCheckoutLayout { other.overflow == overflow)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, maxColumns, maxRows, overflow); - @JsonKey(ignore: true) + /// Create a copy of ExpressCheckoutLayout + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$ExpressCheckoutLayoutImplCopyWith<_$ExpressCheckoutLayoutImpl> @@ -514,8 +746,11 @@ abstract class _ExpressCheckoutLayout implements ExpressCheckoutLayout { int? get maxRows; @override ExpressCheckoutOverflow? get overflow; + + /// Create a copy of ExpressCheckoutLayout + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$ExpressCheckoutLayoutImplCopyWith<_$ExpressCheckoutLayoutImpl> get copyWith => throw _privateConstructorUsedError; } @@ -533,8 +768,12 @@ mixin _$ExpressCheckoutButtonTheme { throw _privateConstructorUsedError; ExpressPaypalButtonTheme? get paypal => throw _privateConstructorUsedError; + /// Serializes this ExpressCheckoutButtonTheme to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of ExpressCheckoutButtonTheme + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $ExpressCheckoutButtonThemeCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -563,6 +802,8 @@ class _$ExpressCheckoutButtonThemeCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of ExpressCheckoutButtonTheme + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -612,6 +853,8 @@ class __$$ExpressCheckoutButtonThemeImplCopyWithImpl<$Res> $Res Function(_$ExpressCheckoutButtonThemeImpl) _then) : super(_value, _then); + /// Create a copy of ExpressCheckoutButtonTheme + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -670,11 +913,13 @@ class _$ExpressCheckoutButtonThemeImpl implements _ExpressCheckoutButtonTheme { (identical(other.paypal, paypal) || other.paypal == paypal)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, applePay, googlePay, paypal); - @JsonKey(ignore: true) + /// Create a copy of ExpressCheckoutButtonTheme + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$ExpressCheckoutButtonThemeImplCopyWith<_$ExpressCheckoutButtonThemeImpl> @@ -706,8 +951,11 @@ abstract class _ExpressCheckoutButtonTheme ExpressGooglePayButtonTheme? get googlePay; @override ExpressPaypalButtonTheme? get paypal; + + /// Create a copy of ExpressCheckoutButtonTheme + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$ExpressCheckoutButtonThemeImplCopyWith<_$ExpressCheckoutButtonThemeImpl> get copyWith => throw _privateConstructorUsedError; } @@ -724,8 +972,12 @@ mixin _$ExpressCheckoutButtonType { throw _privateConstructorUsedError; ExpressPaypalButtonType? get paypal => throw _privateConstructorUsedError; + /// Serializes this ExpressCheckoutButtonType to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of ExpressCheckoutButtonType + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $ExpressCheckoutButtonTypeCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -753,6 +1005,8 @@ class _$ExpressCheckoutButtonTypeCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of ExpressCheckoutButtonType + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -802,6 +1056,8 @@ class __$$ExpressCheckoutButtonTypeImplCopyWithImpl<$Res> $Res Function(_$ExpressCheckoutButtonTypeImpl) _then) : super(_value, _then); + /// Create a copy of ExpressCheckoutButtonType + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -859,11 +1115,13 @@ class _$ExpressCheckoutButtonTypeImpl implements _ExpressCheckoutButtonType { (identical(other.paypal, paypal) || other.paypal == paypal)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, applePay, googlePay, paypal); - @JsonKey(ignore: true) + /// Create a copy of ExpressCheckoutButtonType + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$ExpressCheckoutButtonTypeImplCopyWith<_$ExpressCheckoutButtonTypeImpl> @@ -893,8 +1151,11 @@ abstract class _ExpressCheckoutButtonType implements ExpressCheckoutButtonType { ExpressGooglePayButtonType? get googlePay; @override ExpressPaypalButtonType? get paypal; + + /// Create a copy of ExpressCheckoutButtonType + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$ExpressCheckoutButtonTypeImplCopyWith<_$ExpressCheckoutButtonTypeImpl> get copyWith => throw _privateConstructorUsedError; } @@ -915,8 +1176,12 @@ mixin _$ExpressCheckoutPaymentMethods { ExpressPaymentNethodEnabled? get amazonPay => throw _privateConstructorUsedError; + /// Serializes this ExpressCheckoutPaymentMethods to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of ExpressCheckoutPaymentMethods + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $ExpressCheckoutPaymentMethodsCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -948,6 +1213,8 @@ class _$ExpressCheckoutPaymentMethodsCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of ExpressCheckoutPaymentMethods + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1009,6 +1276,8 @@ class __$$ExpressCheckoutPaymentMethodsImplCopyWithImpl<$Res> $Res Function(_$ExpressCheckoutPaymentMethodsImpl) _then) : super(_value, _then); + /// Create a copy of ExpressCheckoutPaymentMethods + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1085,12 +1354,14 @@ class _$ExpressCheckoutPaymentMethodsImpl other.amazonPay == amazonPay)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, applePay, googlePay, paypal, link, amazonPay); - @JsonKey(ignore: true) + /// Create a copy of ExpressCheckoutPaymentMethods + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$ExpressCheckoutPaymentMethodsImplCopyWith< @@ -1129,8 +1400,11 @@ abstract class _ExpressCheckoutPaymentMethods ExpressPaymentNethodEnabled? get link; @override ExpressPaymentNethodEnabled? get amazonPay; + + /// Create a copy of ExpressCheckoutPaymentMethods + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$ExpressCheckoutPaymentMethodsImplCopyWith< _$ExpressCheckoutPaymentMethodsImpl> get copyWith => throw _privateConstructorUsedError; diff --git a/packages/stripe_js/lib/src/api/elements/express_checkout_element_options.g.dart b/packages/stripe_js/lib/src/api/elements/express_checkout_element_options.g.dart index 7d0359aea..eb7c9d1b7 100644 --- a/packages/stripe_js/lib/src/api/elements/express_checkout_element_options.g.dart +++ b/packages/stripe_js/lib/src/api/elements/express_checkout_element_options.g.dart @@ -45,6 +45,32 @@ Map _$$ExpressCheckoutOptionsImplToJson( return val; } +_$ExpressCheckoutConfirmEventImpl _$$ExpressCheckoutConfirmEventImplFromJson( + Map json) => + _$ExpressCheckoutConfirmEventImpl( + expressPaymentType: json['expressPaymentType'] as String, + billingDetails: json['billingDetails'] == null + ? null + : BillingDetails.fromJson( + Map.from(json['billingDetails'] as Map)), + ); + +Map _$$ExpressCheckoutConfirmEventImplToJson( + _$ExpressCheckoutConfirmEventImpl instance) { + final val = { + 'expressPaymentType': instance.expressPaymentType, + }; + + void writeNotNull(String key, dynamic value) { + if (value != null) { + val[key] = value; + } + } + + writeNotNull('billingDetails', instance.billingDetails?.toJson()); + return val; +} + _$ExpressCheckoutLayoutImpl _$$ExpressCheckoutLayoutImplFromJson(Map json) => _$ExpressCheckoutLayoutImpl( maxColumns: (json['maxColumns'] as num?)?.toInt(), diff --git a/packages/stripe_js/lib/src/api/elements/payment_element_change_event.freezed.dart b/packages/stripe_js/lib/src/api/elements/payment_element_change_event.freezed.dart index 4fe7eed19..04dc65212 100644 --- a/packages/stripe_js/lib/src/api/elements/payment_element_change_event.freezed.dart +++ b/packages/stripe_js/lib/src/api/elements/payment_element_change_event.freezed.dart @@ -28,8 +28,12 @@ mixin _$PaymentElementChangeEvent { PaymentElementChangeEventValue? get value => throw _privateConstructorUsedError; + /// Serializes this PaymentElementChangeEvent to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of PaymentElementChangeEvent + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $PaymentElementChangeEventCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -61,6 +65,8 @@ class _$PaymentElementChangeEventCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of PaymentElementChangeEvent + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -94,6 +100,8 @@ class _$PaymentElementChangeEventCopyWithImpl<$Res, ) as $Val); } + /// Create a copy of PaymentElementChangeEvent + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentElementChangeEventValueCopyWith<$Res>? get value { @@ -138,6 +146,8 @@ class __$$PaymentElementChangeEventImplCopyWithImpl<$Res> $Res Function(_$PaymentElementChangeEventImpl) _then) : super(_value, _then); + /// Create a copy of PaymentElementChangeEvent + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -216,12 +226,14 @@ class _$PaymentElementChangeEventImpl implements _PaymentElementChangeEvent { (identical(other.value, value) || other.value == value)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, elementType, empty, complete, collapsed, value); - @JsonKey(ignore: true) + /// Create a copy of PaymentElementChangeEvent + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PaymentElementChangeEventImplCopyWith<_$PaymentElementChangeEventImpl> @@ -258,8 +270,11 @@ abstract class _PaymentElementChangeEvent implements PaymentElementChangeEvent { bool get collapsed; @override PaymentElementChangeEventValue? get value; + + /// Create a copy of PaymentElementChangeEvent + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$PaymentElementChangeEventImplCopyWith<_$PaymentElementChangeEventImpl> get copyWith => throw _privateConstructorUsedError; } @@ -273,8 +288,12 @@ PaymentElementChangeEventValue _$PaymentElementChangeEventValueFromJson( mixin _$PaymentElementChangeEventValue { String? get type => throw _privateConstructorUsedError; + /// Serializes this PaymentElementChangeEventValue to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of PaymentElementChangeEventValue + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $PaymentElementChangeEventValueCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -301,6 +320,8 @@ class _$PaymentElementChangeEventValueCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of PaymentElementChangeEventValue + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -337,6 +358,8 @@ class __$$PaymentElementChangeEventValueImplCopyWithImpl<$Res> $Res Function(_$PaymentElementChangeEventValueImpl) _then) : super(_value, _then); + /// Create a copy of PaymentElementChangeEventValue + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -377,11 +400,13 @@ class _$PaymentElementChangeEventValueImpl (identical(other.type, type) || other.type == type)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, type); - @JsonKey(ignore: true) + /// Create a copy of PaymentElementChangeEventValue + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PaymentElementChangeEventValueImplCopyWith< @@ -407,8 +432,11 @@ abstract class _PaymentElementChangeEventValue @override String? get type; + + /// Create a copy of PaymentElementChangeEventValue + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$PaymentElementChangeEventValueImplCopyWith< _$PaymentElementChangeEventValueImpl> get copyWith => throw _privateConstructorUsedError; diff --git a/packages/stripe_js/lib/src/api/elements/payment_element_options.freezed.dart b/packages/stripe_js/lib/src/api/elements/payment_element_options.freezed.dart index 990cd0394..91ada2d5e 100644 --- a/packages/stripe_js/lib/src/api/elements/payment_element_options.freezed.dart +++ b/packages/stripe_js/lib/src/api/elements/payment_element_options.freezed.dart @@ -57,8 +57,12 @@ mixin _$PaymentElementOptions { PaymentElementApplePayOptions? get applePay => throw _privateConstructorUsedError; + /// Serializes this PaymentElementOptions to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of PaymentElementOptions + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $PaymentElementOptionsCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -100,6 +104,8 @@ class _$PaymentElementOptionsCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of PaymentElementOptions + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -153,6 +159,8 @@ class _$PaymentElementOptionsCopyWithImpl<$Res, ) as $Val); } + /// Create a copy of PaymentElementOptions + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentElementLayoutCopyWith<$Res>? get layout { @@ -165,6 +173,8 @@ class _$PaymentElementOptionsCopyWithImpl<$Res, }); } + /// Create a copy of PaymentElementOptions + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentElementDefaultValuesCopyWith<$Res>? get defaultValues { @@ -178,6 +188,8 @@ class _$PaymentElementOptionsCopyWithImpl<$Res, }); } + /// Create a copy of PaymentElementOptions + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentElementBusinessCopyWith<$Res>? get business { @@ -190,6 +202,8 @@ class _$PaymentElementOptionsCopyWithImpl<$Res, }); } + /// Create a copy of PaymentElementOptions + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentElementFieldsCopyWith<$Res>? get fields { @@ -202,6 +216,8 @@ class _$PaymentElementOptionsCopyWithImpl<$Res, }); } + /// Create a copy of PaymentElementOptions + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentElementOptionsTermsCopyWith<$Res>? get terms { @@ -214,6 +230,8 @@ class _$PaymentElementOptionsCopyWithImpl<$Res, }); } + /// Create a copy of PaymentElementOptions + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentElementWalletOptionsCopyWith<$Res>? get wallets { @@ -226,6 +244,8 @@ class _$PaymentElementOptionsCopyWithImpl<$Res, }); } + /// Create a copy of PaymentElementOptions + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentElementApplePayOptionsCopyWith<$Res>? get applePay { @@ -285,6 +305,8 @@ class __$$PaymentElementOptionsImplCopyWithImpl<$Res> $Res Function(_$PaymentElementOptionsImpl) _then) : super(_value, _then); + /// Create a copy of PaymentElementOptions + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -424,7 +446,7 @@ class _$PaymentElementOptionsImpl implements _PaymentElementOptions { other.applePay == applePay)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash( runtimeType, @@ -438,7 +460,9 @@ class _$PaymentElementOptionsImpl implements _PaymentElementOptions { wallets, applePay); - @JsonKey(ignore: true) + /// Create a copy of PaymentElementOptions + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PaymentElementOptionsImplCopyWith<_$PaymentElementOptionsImpl> @@ -471,22 +495,21 @@ abstract class _PaymentElementOptions implements PaymentElementOptions { @override PaymentElementLayout? get layout; - @override /// Provide initial customer information that will be displayed /// in the Payment Element. /// The form will render with empty fields if not provided. - PaymentElementDefaultValues? get defaultValues; @override + PaymentElementDefaultValues? get defaultValues; /// Provide information about your business that will /// be displayed in the Payment Element. /// This information will be retrieved from your Stripe account /// if not provided. + @override PaymentElementBusiness? get business; @override dynamic get paymentMethodOrder; - @override /// By default, the Payment Element will collect all necessary details to /// complete a payment. @@ -501,6 +524,7 @@ abstract class _PaymentElementOptions implements PaymentElementOptions { /// If you disable the collection of a certain field with the fields option, /// you must pass that same data to stripe.confirmPayment or the payment will /// be rejected. + @override PaymentElementFields? get fields; @override bool? get readOnly; @@ -510,8 +534,11 @@ abstract class _PaymentElementOptions implements PaymentElementOptions { PaymentElementWalletOptions? get wallets; @override PaymentElementApplePayOptions? get applePay; + + /// Create a copy of PaymentElementOptions + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$PaymentElementOptionsImplCopyWith<_$PaymentElementOptionsImpl> get copyWith => throw _privateConstructorUsedError; } @@ -550,8 +577,12 @@ mixin _$PaymentElementLayout { /// Default is 5. This property is only applicable to the accordion layout. int? get visibleAccordionItemsCount => throw _privateConstructorUsedError; + /// Serializes this PaymentElementLayout to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of PaymentElementLayout + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $PaymentElementLayoutCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -581,6 +612,8 @@ class _$PaymentElementLayoutCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of PaymentElementLayout + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -639,6 +672,8 @@ class __$$PaymentElementLayoutImplCopyWithImpl<$Res> $Res Function(_$PaymentElementLayoutImpl) _then) : super(_value, _then); + /// Create a copy of PaymentElementLayout + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -741,12 +776,14 @@ class _$PaymentElementLayoutImpl implements _PaymentElementLayout { visibleAccordionItemsCount)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, type, defaultCollapsed, radios, spacedAccordionItems, visibleAccordionItemsCount); - @JsonKey(ignore: true) + /// Create a copy of PaymentElementLayout + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PaymentElementLayoutImplCopyWith<_$PaymentElementLayoutImpl> @@ -773,41 +810,43 @@ abstract class _PaymentElementLayout implements PaymentElementLayout { factory _PaymentElementLayout.fromJson(Map json) = _$PaymentElementLayoutImpl.fromJson; - @override - /// Defines the layout to render the Payment Element. - PaymentElementLayoutType get type; @override + PaymentElementLayoutType get type; /// Controls if the Payment Element renders in a collapsed state /// (where no payment method is selected by default). /// When you leave this `undefined``, /// Stripe renders the experience that it determines /// will have the best conversion. - bool? get defaultCollapsed; @override + bool? get defaultCollapsed; /// Renders each Payment Method with a radio input next to its logo. /// The radios visually indicate the current selection of the Payment /// Element. /// /// This property is only applicable to the accordion layout. - bool? get radios; @override + bool? get radios; /// When true, the Payment Methods renders as standalone buttons /// with space in between them. /// This property is only applicable to the accordion layout. - bool? get spacedAccordionItems; @override + bool? get spacedAccordionItems; /// Sets the max number of Payment Methods visible before using the "More" /// button to hide additional Payment Methods. Set this value to 0 to /// disable the "More" button and render all available Payment Methods. /// Default is 5. This property is only applicable to the accordion layout. + @override int? get visibleAccordionItemsCount; + + /// Create a copy of PaymentElementLayout + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$PaymentElementLayoutImplCopyWith<_$PaymentElementLayoutImpl> get copyWith => throw _privateConstructorUsedError; } @@ -832,8 +871,12 @@ mixin _$PaymentElementDefaultValues { PaymentElementPaymentMethodDefaults? get paymentMethods => throw _privateConstructorUsedError; + /// Serializes this PaymentElementDefaultValues to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of PaymentElementDefaultValues + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $PaymentElementDefaultValuesCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -865,6 +908,8 @@ class _$PaymentElementDefaultValuesCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of PaymentElementDefaultValues + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -883,6 +928,8 @@ class _$PaymentElementDefaultValuesCopyWithImpl<$Res, ) as $Val); } + /// Create a copy of PaymentElementDefaultValues + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentElementBillingDetailsCopyWith<$Res>? get billingDetails { @@ -896,6 +943,8 @@ class _$PaymentElementDefaultValuesCopyWithImpl<$Res, }); } + /// Create a copy of PaymentElementDefaultValues + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentElementPaymentMethodDefaultsCopyWith<$Res>? get paymentMethods { @@ -939,6 +988,8 @@ class __$$PaymentElementDefaultValuesImplCopyWithImpl<$Res> $Res Function(_$PaymentElementDefaultValuesImpl) _then) : super(_value, _then); + /// Create a copy of PaymentElementDefaultValues + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -998,11 +1049,13 @@ class _$PaymentElementDefaultValuesImpl other.paymentMethods == paymentMethods)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, billingDetails, paymentMethods); - @JsonKey(ignore: true) + /// Create a copy of PaymentElementDefaultValues + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PaymentElementDefaultValuesImplCopyWith<_$PaymentElementDefaultValuesImpl> @@ -1027,21 +1080,23 @@ abstract class _PaymentElementDefaultValues factory _PaymentElementDefaultValues.fromJson(Map json) = _$PaymentElementDefaultValuesImpl.fromJson; - @override - /// Specify customer's billing details, which lets you pre-fill a /// customer’s name, email, phone number and address if required by /// payment method. /// Pre-filling as much information as possible streamlines /// the checkout process. - PaymentElementBillingDetails? get billingDetails; @override + PaymentElementBillingDetails? get billingDetails; /// Specify customer's default information for different payment methods. /// Pre-filling as much information as possible streamlines the checkout process. + @override PaymentElementPaymentMethodDefaults? get paymentMethods; + + /// Create a copy of PaymentElementDefaultValues + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$PaymentElementDefaultValuesImplCopyWith<_$PaymentElementDefaultValuesImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1059,8 +1114,12 @@ mixin _$PaymentElementPaymentMethodDefaults { /// Defaults for card payment method PaymentElementCardDefaults? get card => throw _privateConstructorUsedError; + /// Serializes this PaymentElementPaymentMethodDefaults to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of PaymentElementPaymentMethodDefaults + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $PaymentElementPaymentMethodDefaultsCopyWith< PaymentElementPaymentMethodDefaults> get copyWith => throw _privateConstructorUsedError; @@ -1092,6 +1151,8 @@ class _$PaymentElementPaymentMethodDefaultsCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of PaymentElementPaymentMethodDefaults + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1110,6 +1171,8 @@ class _$PaymentElementPaymentMethodDefaultsCopyWithImpl<$Res, ) as $Val); } + /// Create a copy of PaymentElementPaymentMethodDefaults + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentElementIdealDefaultsCopyWith<$Res>? get ideal { @@ -1122,6 +1185,8 @@ class _$PaymentElementPaymentMethodDefaultsCopyWithImpl<$Res, }); } + /// Create a copy of PaymentElementPaymentMethodDefaults + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentElementCardDefaultsCopyWith<$Res>? get card { @@ -1163,6 +1228,8 @@ class __$$PaymentElementPaymentMethodDefaultsImplCopyWithImpl<$Res> $Res Function(_$PaymentElementPaymentMethodDefaultsImpl) _then) : super(_value, _then); + /// Create a copy of PaymentElementPaymentMethodDefaults + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1214,11 +1281,13 @@ class _$PaymentElementPaymentMethodDefaultsImpl (identical(other.card, card) || other.card == card)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, ideal, card); - @JsonKey(ignore: true) + /// Create a copy of PaymentElementPaymentMethodDefaults + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PaymentElementPaymentMethodDefaultsImplCopyWith< @@ -1245,16 +1314,18 @@ abstract class _PaymentElementPaymentMethodDefaults Map json) = _$PaymentElementPaymentMethodDefaultsImpl.fromJson; - @override - /// Defaults for ideal - PaymentElementIdealDefaults? get ideal; @override + PaymentElementIdealDefaults? get ideal; /// Defaults for card payment method + @override PaymentElementCardDefaults? get card; + + /// Create a copy of PaymentElementPaymentMethodDefaults + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$PaymentElementPaymentMethodDefaultsImplCopyWith< _$PaymentElementPaymentMethodDefaultsImpl> get copyWith => throw _privateConstructorUsedError; @@ -1275,8 +1346,12 @@ mixin _$PaymentElementWalletOptions { PaymentElementFieldRequired? get googlePay => throw _privateConstructorUsedError; + /// Serializes this PaymentElementWalletOptions to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of PaymentElementWalletOptions + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $PaymentElementWalletOptionsCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -1305,6 +1380,8 @@ class _$PaymentElementWalletOptionsCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of PaymentElementWalletOptions + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1348,6 +1425,8 @@ class __$$PaymentElementWalletOptionsImplCopyWithImpl<$Res> $Res Function(_$PaymentElementWalletOptionsImpl) _then) : super(_value, _then); + /// Create a copy of PaymentElementWalletOptions + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1401,11 +1480,13 @@ class _$PaymentElementWalletOptionsImpl other.googlePay == googlePay)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, applePay, googlePay); - @JsonKey(ignore: true) + /// Create a copy of PaymentElementWalletOptions + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PaymentElementWalletOptionsImplCopyWith<_$PaymentElementWalletOptionsImpl> @@ -1430,16 +1511,18 @@ abstract class _PaymentElementWalletOptions factory _PaymentElementWalletOptions.fromJson(Map json) = _$PaymentElementWalletOptionsImpl.fromJson; - @override - /// Apple pay required options - PaymentElementFieldRequired? get applePay; @override + PaymentElementFieldRequired? get applePay; /// Google pay required options + @override PaymentElementFieldRequired? get googlePay; + + /// Create a copy of PaymentElementWalletOptions + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$PaymentElementWalletOptionsImplCopyWith<_$PaymentElementWalletOptionsImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1457,8 +1540,12 @@ mixin _$PaymentElementIdealDefaults { /// for all options. String? get bank => throw _privateConstructorUsedError; + /// Serializes this PaymentElementIdealDefaults to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of PaymentElementIdealDefaults + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $PaymentElementIdealDefaultsCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -1485,6 +1572,8 @@ class _$PaymentElementIdealDefaultsCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of PaymentElementIdealDefaults + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1521,6 +1610,8 @@ class __$$PaymentElementIdealDefaultsImplCopyWithImpl<$Res> $Res Function(_$PaymentElementIdealDefaultsImpl) _then) : super(_value, _then); + /// Create a copy of PaymentElementIdealDefaults + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1565,11 +1656,13 @@ class _$PaymentElementIdealDefaultsImpl (identical(other.bank, bank) || other.bank == bank)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, bank); - @JsonKey(ignore: true) + /// Create a copy of PaymentElementIdealDefaults + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PaymentElementIdealDefaultsImplCopyWith<_$PaymentElementIdealDefaultsImpl> @@ -1592,15 +1685,17 @@ abstract class _PaymentElementIdealDefaults factory _PaymentElementIdealDefaults.fromJson(Map json) = _$PaymentElementIdealDefaultsImpl.fromJson; - @override - /// The customer’s bank name. /// /// See https://docs.stripe.com/payments/ideal/accept-a-payment?ui=element#bank-reference /// for all options. + @override String? get bank; + + /// Create a copy of PaymentElementIdealDefaults + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$PaymentElementIdealDefaultsImplCopyWith<_$PaymentElementIdealDefaultsImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1617,8 +1712,12 @@ mixin _$PaymentElementCardDefaults { /// in the card brand choice. List? get network => throw _privateConstructorUsedError; + /// Serializes this PaymentElementCardDefaults to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of PaymentElementCardDefaults + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $PaymentElementCardDefaultsCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -1644,6 +1743,8 @@ class _$PaymentElementCardDefaultsCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of PaymentElementCardDefaults + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1680,6 +1781,8 @@ class __$$PaymentElementCardDefaultsImplCopyWithImpl<$Res> $Res Function(_$PaymentElementCardDefaultsImpl) _then) : super(_value, _then); + /// Create a copy of PaymentElementCardDefaults + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1734,12 +1837,14 @@ class _$PaymentElementCardDefaultsImpl implements _PaymentElementCardDefaults { const DeepCollectionEquality().equals(other._network, _network)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, const DeepCollectionEquality().hash(_network)); - @JsonKey(ignore: true) + /// Create a copy of PaymentElementCardDefaults + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PaymentElementCardDefaultsImplCopyWith<_$PaymentElementCardDefaultsImpl> @@ -1762,14 +1867,16 @@ abstract class _PaymentElementCardDefaults factory _PaymentElementCardDefaults.fromJson(Map json) = _$PaymentElementCardDefaultsImpl.fromJson; - @override - /// The specified network prferences for card brand choice. The first network in the array /// that matches a network on the enetered cobranded card will be selected by default /// in the card brand choice. + @override List? get network; + + /// Create a copy of PaymentElementCardDefaults + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$PaymentElementCardDefaultsImplCopyWith<_$PaymentElementCardDefaultsImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1787,8 +1894,12 @@ mixin _$PaymentElementBillingDetails { PaymentElementBillingDetailsAddress? get address => throw _privateConstructorUsedError; + /// Serializes this PaymentElementBillingDetails to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of PaymentElementBillingDetails + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $PaymentElementBillingDetailsCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -1821,6 +1932,8 @@ class _$PaymentElementBillingDetailsCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of PaymentElementBillingDetails + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1849,6 +1962,8 @@ class _$PaymentElementBillingDetailsCopyWithImpl<$Res, ) as $Val); } + /// Create a copy of PaymentElementBillingDetails + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentElementBillingDetailsAddressCopyWith<$Res>? get address { @@ -1892,6 +2007,8 @@ class __$$PaymentElementBillingDetailsImplCopyWithImpl<$Res> $Res Function(_$PaymentElementBillingDetailsImpl) _then) : super(_value, _then); + /// Create a copy of PaymentElementBillingDetails + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1957,11 +2074,13 @@ class _$PaymentElementBillingDetailsImpl (identical(other.address, address) || other.address == address)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, name, email, phone, address); - @JsonKey(ignore: true) + /// Create a copy of PaymentElementBillingDetails + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PaymentElementBillingDetailsImplCopyWith< @@ -1997,8 +2116,11 @@ abstract class _PaymentElementBillingDetails String? get phone; @override PaymentElementBillingDetailsAddress? get address; + + /// Create a copy of PaymentElementBillingDetails + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$PaymentElementBillingDetailsImplCopyWith< _$PaymentElementBillingDetailsImpl> get copyWith => throw _privateConstructorUsedError; @@ -2030,8 +2152,12 @@ mixin _$PaymentElementBillingDetailsAddress { @JsonKey(name: 'postal_code') String? get postalCode => throw _privateConstructorUsedError; + /// Serializes this PaymentElementBillingDetailsAddress to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of PaymentElementBillingDetailsAddress + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $PaymentElementBillingDetailsAddressCopyWith< PaymentElementBillingDetailsAddress> get copyWith => throw _privateConstructorUsedError; @@ -2065,6 +2191,8 @@ class _$PaymentElementBillingDetailsAddressCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of PaymentElementBillingDetailsAddress + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -2132,6 +2260,8 @@ class __$$PaymentElementBillingDetailsAddressImplCopyWithImpl<$Res> $Res Function(_$PaymentElementBillingDetailsAddressImpl) _then) : super(_value, _then); + /// Create a copy of PaymentElementBillingDetailsAddress + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -2231,12 +2361,14 @@ class _$PaymentElementBillingDetailsAddressImpl other.postalCode == postalCode)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, line1, line2, city, state, country, postalCode); - @JsonKey(ignore: true) + /// Create a copy of PaymentElementBillingDetailsAddress + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PaymentElementBillingDetailsAddressImplCopyWith< @@ -2267,33 +2399,35 @@ abstract class _PaymentElementBillingDetailsAddress Map json) = _$PaymentElementBillingDetailsAddressImpl.fromJson; - @override - /// Address line 1 (e.g., street, PO Box, or company name). - String? get line1; @override + String? get line1; /// Address line 2 (e.g., apartment, suite, unit, or building). - String? get line2; @override + String? get line2; /// City, district, suburb, town, or village. - String? get city; @override + String? get city; /// State, county, province, or region. - String? get state; @override + String? get state; /// Two-letter country code (ISO 3166-1 alpha-2). - String? get country; @override + String? get country; /// ZIP or postal code. + @override @JsonKey(name: 'postal_code') String? get postalCode; + + /// Create a copy of PaymentElementBillingDetailsAddress + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$PaymentElementBillingDetailsAddressImplCopyWith< _$PaymentElementBillingDetailsAddressImpl> get copyWith => throw _privateConstructorUsedError; @@ -2308,8 +2442,12 @@ PaymentElementBusiness _$PaymentElementBusinessFromJson( mixin _$PaymentElementBusiness { String? get name => throw _privateConstructorUsedError; + /// Serializes this PaymentElementBusiness to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of PaymentElementBusiness + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $PaymentElementBusinessCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -2334,6 +2472,8 @@ class _$PaymentElementBusinessCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of PaymentElementBusiness + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -2370,6 +2510,8 @@ class __$$PaymentElementBusinessImplCopyWithImpl<$Res> $Res Function(_$PaymentElementBusinessImpl) _then) : super(_value, _then); + /// Create a copy of PaymentElementBusiness + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -2408,11 +2550,13 @@ class _$PaymentElementBusinessImpl implements _PaymentElementBusiness { (identical(other.name, name) || other.name == name)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, name); - @JsonKey(ignore: true) + /// Create a copy of PaymentElementBusiness + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PaymentElementBusinessImplCopyWith<_$PaymentElementBusinessImpl> @@ -2436,8 +2580,11 @@ abstract class _PaymentElementBusiness implements PaymentElementBusiness { @override String? get name; + + /// Create a copy of PaymentElementBusiness + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$PaymentElementBusinessImplCopyWith<_$PaymentElementBusinessImpl> get copyWith => throw _privateConstructorUsedError; } @@ -2456,8 +2603,12 @@ mixin _$PaymentElementFields { /// The default setting for each field is auto. BillingDetailsFields get billingDetails => throw _privateConstructorUsedError; + /// Serializes this PaymentElementFields to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of PaymentElementFields + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $PaymentElementFieldsCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -2484,6 +2635,8 @@ class _$PaymentElementFieldsCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of PaymentElementFields + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -2497,6 +2650,8 @@ class _$PaymentElementFieldsCopyWithImpl<$Res, ) as $Val); } + /// Create a copy of PaymentElementFields + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $BillingDetailsFieldsCopyWith<$Res> get billingDetails { @@ -2528,6 +2683,8 @@ class __$$PaymentElementFieldsImplCopyWithImpl<$Res> $Res Function(_$PaymentElementFieldsImpl) _then) : super(_value, _then); + /// Create a copy of PaymentElementFields + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -2575,11 +2732,13 @@ class _$PaymentElementFieldsImpl implements _PaymentElementFields { other.billingDetails == billingDetails)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, billingDetails); - @JsonKey(ignore: true) + /// Create a copy of PaymentElementFields + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PaymentElementFieldsImplCopyWith<_$PaymentElementFieldsImpl> @@ -2602,17 +2761,19 @@ abstract class _PaymentElementFields implements PaymentElementFields { factory _PaymentElementFields.fromJson(Map json) = _$PaymentElementFieldsImpl.fromJson; - @override - /// Specify never to avoid collecting all billing details in the /// Payment Element. /// If you would like to disable only certain billing details, /// pass an BillingDetailsFields specifying which fields you would like /// to disable collection for. /// The default setting for each field is auto. + @override BillingDetailsFields get billingDetails; + + /// Create a copy of PaymentElementFields + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$PaymentElementFieldsImplCopyWith<_$PaymentElementFieldsImpl> get copyWith => throw _privateConstructorUsedError; } @@ -2628,8 +2789,12 @@ mixin _$BillingDetailsFields { PaymentElementFieldRequired get phone => throw _privateConstructorUsedError; PaymentElementAddressFields get address => throw _privateConstructorUsedError; + /// Serializes this BillingDetailsFields to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of BillingDetailsFields + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $BillingDetailsFieldsCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -2660,6 +2825,8 @@ class _$BillingDetailsFieldsCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of BillingDetailsFields + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -2688,6 +2855,8 @@ class _$BillingDetailsFieldsCopyWithImpl<$Res, ) as $Val); } + /// Create a copy of BillingDetailsFields + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentElementAddressFieldsCopyWith<$Res> get address { @@ -2723,6 +2892,8 @@ class __$$BillingDetailsFieldsImplCopyWithImpl<$Res> $Res Function(_$BillingDetailsFieldsImpl) _then) : super(_value, _then); + /// Create a copy of BillingDetailsFields + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -2793,11 +2964,13 @@ class _$BillingDetailsFieldsImpl implements _BillingDetailsFields { (identical(other.address, address) || other.address == address)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, name, email, phone, address); - @JsonKey(ignore: true) + /// Create a copy of BillingDetailsFields + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$BillingDetailsFieldsImplCopyWith<_$BillingDetailsFieldsImpl> @@ -2831,8 +3004,11 @@ abstract class _BillingDetailsFields implements BillingDetailsFields { PaymentElementFieldRequired get phone; @override PaymentElementAddressFields get address; + + /// Create a copy of BillingDetailsFields + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$BillingDetailsFieldsImplCopyWith<_$BillingDetailsFieldsImpl> get copyWith => throw _privateConstructorUsedError; } @@ -2852,8 +3028,12 @@ mixin _$PaymentElementAddressFields { PaymentElementFieldRequired get postalCode => throw _privateConstructorUsedError; + /// Serializes this PaymentElementAddressFields to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of PaymentElementAddressFields + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $PaymentElementAddressFieldsCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -2886,6 +3066,8 @@ class _$PaymentElementAddressFieldsCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of PaymentElementAddressFields + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -2953,6 +3135,8 @@ class __$$PaymentElementAddressFieldsImplCopyWithImpl<$Res> $Res Function(_$PaymentElementAddressFieldsImpl) _then) : super(_value, _then); + /// Create a copy of PaymentElementAddressFields + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -3046,12 +3230,14 @@ class _$PaymentElementAddressFieldsImpl other.postalCode == postalCode)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, line1, line2, city, state, country, postalCode); - @JsonKey(ignore: true) + /// Create a copy of PaymentElementAddressFields + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PaymentElementAddressFieldsImplCopyWith<_$PaymentElementAddressFieldsImpl> @@ -3092,8 +3278,11 @@ abstract class _PaymentElementAddressFields PaymentElementFieldRequired get country; @override PaymentElementFieldRequired get postalCode; + + /// Create a copy of PaymentElementAddressFields + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$PaymentElementAddressFieldsImplCopyWith<_$PaymentElementAddressFieldsImpl> get copyWith => throw _privateConstructorUsedError; } @@ -3140,8 +3329,12 @@ mixin _$PaymentElementOptionsTerms { PaymentElementShowTerms? get usBankAccount => throw _privateConstructorUsedError; + /// Serializes this PaymentElementOptionsTerms to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of PaymentElementOptionsTerms + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $PaymentElementOptionsTermsCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -3178,6 +3371,8 @@ class _$PaymentElementOptionsTermsCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of PaymentElementOptionsTerms + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -3275,6 +3470,8 @@ class __$$PaymentElementOptionsTermsImplCopyWithImpl<$Res> $Res Function(_$PaymentElementOptionsTermsImpl) _then) : super(_value, _then); + /// Create a copy of PaymentElementOptionsTerms + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -3432,7 +3629,7 @@ class _$PaymentElementOptionsTermsImpl implements _PaymentElementOptionsTerms { other.usBankAccount == usBankAccount)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash( runtimeType, @@ -3448,7 +3645,9 @@ class _$PaymentElementOptionsTermsImpl implements _PaymentElementOptionsTerms { sofort, usBankAccount); - @JsonKey(ignore: true) + /// Create a copy of PaymentElementOptionsTerms + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PaymentElementOptionsTermsImplCopyWith<_$PaymentElementOptionsTermsImpl> @@ -3482,52 +3681,54 @@ abstract class _PaymentElementOptionsTerms factory _PaymentElementOptionsTerms.fromJson(Map json) = _$PaymentElementOptionsTermsImpl.fromJson; - @override - /// Terms for apple pay - PaymentElementShowTerms? get applePay; @override + PaymentElementShowTerms? get applePay; /// Terms for aubecs debit - PaymentElementShowTerms? get auBecsDebit; @override + PaymentElementShowTerms? get auBecsDebit; /// Terms for bancontact - PaymentElementShowTerms? get bancontact; @override + PaymentElementShowTerms? get bancontact; /// Terms for card - PaymentElementShowTerms? get card; @override + PaymentElementShowTerms? get card; /// Terms for cashapp - PaymentElementShowTerms? get cashApp; @override + PaymentElementShowTerms? get cashApp; /// Terms for googlePay - PaymentElementShowTerms? get googlePay; @override + PaymentElementShowTerms? get googlePay; /// Terms for ideal - PaymentElementShowTerms? get ideal; @override + PaymentElementShowTerms? get ideal; /// Terms for paypal - PaymentElementShowTerms? get payPal; @override + PaymentElementShowTerms? get payPal; /// Terms for sepa debit - PaymentElementShowTerms? get sepaDebit; @override + PaymentElementShowTerms? get sepaDebit; /// Terms for sofort - PaymentElementShowTerms? get sofort; @override + PaymentElementShowTerms? get sofort; /// Terms for usBankAccount + @override PaymentElementShowTerms? get usBankAccount; + + /// Create a copy of PaymentElementOptionsTerms + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$PaymentElementOptionsTermsImplCopyWith<_$PaymentElementOptionsTermsImpl> get copyWith => throw _privateConstructorUsedError; } @@ -3551,8 +3752,12 @@ mixin _$PaymentElementApplePayOptions { PaymentElementApplePayAutoReloadPaymentRequest? get automaticReloadPaymentRequest => throw _privateConstructorUsedError; + /// Serializes this PaymentElementApplePayOptions to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of PaymentElementApplePayOptions + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $PaymentElementApplePayOptionsCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -3590,6 +3795,8 @@ class _$PaymentElementApplePayOptionsCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of PaymentElementApplePayOptions + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -3613,6 +3820,8 @@ class _$PaymentElementApplePayOptionsCopyWithImpl<$Res, ) as $Val); } + /// Create a copy of PaymentElementApplePayOptions + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentElementAppleRecurringRequestCopyWith<$Res>? @@ -3627,6 +3836,8 @@ class _$PaymentElementApplePayOptionsCopyWithImpl<$Res, }); } + /// Create a copy of PaymentElementApplePayOptions + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentElementApplePayDeferredPaymentRequestCopyWith<$Res>? @@ -3641,6 +3852,8 @@ class _$PaymentElementApplePayOptionsCopyWithImpl<$Res, }); } + /// Create a copy of PaymentElementApplePayOptions + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentElementApplePayAutoReloadPaymentRequestCopyWith<$Res>? @@ -3693,6 +3906,8 @@ class __$$PaymentElementApplePayOptionsImplCopyWithImpl<$Res> $Res Function(_$PaymentElementApplePayOptionsImpl) _then) : super(_value, _then); + /// Create a copy of PaymentElementApplePayOptions + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -3764,12 +3979,14 @@ class _$PaymentElementApplePayOptionsImpl automaticReloadPaymentRequest)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, recurringPaymentRequest, deferredPaymentRequest, automaticReloadPaymentRequest); - @JsonKey(ignore: true) + /// Create a copy of PaymentElementApplePayOptions + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PaymentElementApplePayOptionsImplCopyWith< @@ -3797,21 +4014,23 @@ abstract class _PaymentElementApplePayOptions factory _PaymentElementApplePayOptions.fromJson(Map json) = _$PaymentElementApplePayOptionsImpl.fromJson; - @override - /// Information about a recurring payment with ApplePay - PaymentElementAppleRecurringRequest? get recurringPaymentRequest; @override + PaymentElementAppleRecurringRequest? get recurringPaymentRequest; /// Information about a deferred payment with ApplePay - PaymentElementApplePayDeferredPaymentRequest? get deferredPaymentRequest; @override + PaymentElementApplePayDeferredPaymentRequest? get deferredPaymentRequest; /// Information about an auto reload payment with ApplePay + @override PaymentElementApplePayAutoReloadPaymentRequest? get automaticReloadPaymentRequest; + + /// Create a copy of PaymentElementApplePayOptions + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$PaymentElementApplePayOptionsImplCopyWith< _$PaymentElementApplePayOptionsImpl> get copyWith => throw _privateConstructorUsedError; @@ -3838,8 +4057,12 @@ mixin _$PaymentElementAppleRecurringRequest { PaymentElementRecurringPaymentProperties? get regularBilling => throw _privateConstructorUsedError; + /// Serializes this PaymentElementAppleRecurringRequest to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of PaymentElementAppleRecurringRequest + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $PaymentElementAppleRecurringRequestCopyWith< PaymentElementAppleRecurringRequest> get copyWith => throw _privateConstructorUsedError; @@ -3874,6 +4097,8 @@ class _$PaymentElementAppleRecurringRequestCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of PaymentElementAppleRecurringRequest + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -3902,6 +4127,8 @@ class _$PaymentElementAppleRecurringRequestCopyWithImpl<$Res, ) as $Val); } + /// Create a copy of PaymentElementAppleRecurringRequest + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentElementRecurringPaymentPropertiesCopyWith<$Res>? get trialBilling { @@ -3915,6 +4142,8 @@ class _$PaymentElementAppleRecurringRequestCopyWithImpl<$Res, }); } + /// Create a copy of PaymentElementAppleRecurringRequest + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentElementRecurringPaymentPropertiesCopyWith<$Res>? get regularBilling { @@ -3960,6 +4189,8 @@ class __$$PaymentElementAppleRecurringRequestImplCopyWithImpl<$Res> $Res Function(_$PaymentElementAppleRecurringRequestImpl) _then) : super(_value, _then); + /// Create a copy of PaymentElementAppleRecurringRequest + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -4039,12 +4270,14 @@ class _$PaymentElementAppleRecurringRequestImpl other.regularBilling == regularBilling)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, paymentDescription, managementUrl, trialBilling, regularBilling); - @JsonKey(ignore: true) + /// Create a copy of PaymentElementAppleRecurringRequest + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PaymentElementAppleRecurringRequestImplCopyWith< @@ -4073,24 +4306,26 @@ abstract class _PaymentElementAppleRecurringRequest Map json) = _$PaymentElementAppleRecurringRequestImpl.fromJson; - @override - /// The description of the payment - String get paymentDescription; @override + String get paymentDescription; /// Management url - String get managementUrl; @override + String get managementUrl; /// Information in case of a trial billing - PaymentElementRecurringPaymentProperties? get trialBilling; @override + PaymentElementRecurringPaymentProperties? get trialBilling; /// Information in case of a regular billing + @override PaymentElementRecurringPaymentProperties? get regularBilling; + + /// Create a copy of PaymentElementAppleRecurringRequest + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$PaymentElementAppleRecurringRequestImplCopyWith< _$PaymentElementAppleRecurringRequestImpl> get copyWith => throw _privateConstructorUsedError; @@ -4123,8 +4358,12 @@ mixin _$PaymentElementRecurringPaymentProperties { /// The amount of intervals int? get recurringPaymentIntervalCount => throw _privateConstructorUsedError; + /// Serializes this PaymentElementRecurringPaymentProperties to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of PaymentElementRecurringPaymentProperties + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $PaymentElementRecurringPaymentPropertiesCopyWith< PaymentElementRecurringPaymentProperties> get copyWith => throw _privateConstructorUsedError; @@ -4159,6 +4398,8 @@ class _$PaymentElementRecurringPaymentPropertiesCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of PaymentElementRecurringPaymentProperties + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -4226,6 +4467,8 @@ class __$$PaymentElementRecurringPaymentPropertiesImplCopyWithImpl<$Res> $Res Function(_$PaymentElementRecurringPaymentPropertiesImpl) _then) : super(_value, _then); + /// Create a copy of PaymentElementRecurringPaymentProperties + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -4333,7 +4576,7 @@ class _$PaymentElementRecurringPaymentPropertiesImpl recurringPaymentIntervalCount)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash( runtimeType, @@ -4344,7 +4587,9 @@ class _$PaymentElementRecurringPaymentPropertiesImpl recurringPaymentIntervalUnit, recurringPaymentIntervalCount); - @JsonKey(ignore: true) + /// Create a copy of PaymentElementRecurringPaymentProperties + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PaymentElementRecurringPaymentPropertiesImplCopyWith< @@ -4376,32 +4621,34 @@ abstract class _PaymentElementRecurringPaymentProperties Map json) = _$PaymentElementRecurringPaymentPropertiesImpl.fromJson; - @override - /// The amount of the payment - double get amount; @override + double get amount; /// Description label - String get label; @override + String get label; /// The startdate of the recurring payment - DateTime? get recurringPaymentStartDate; @override + DateTime? get recurringPaymentStartDate; /// The enddate of the recurring payment - DateTime? get recurringPaymentEndDate; @override + DateTime? get recurringPaymentEndDate; /// The interval of payment - ApplePayRecurringPaymentTimeInterVal? get recurringPaymentIntervalUnit; @override + ApplePayRecurringPaymentTimeInterVal? get recurringPaymentIntervalUnit; /// The amount of intervals + @override int? get recurringPaymentIntervalCount; + + /// Create a copy of PaymentElementRecurringPaymentProperties + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$PaymentElementRecurringPaymentPropertiesImplCopyWith< _$PaymentElementRecurringPaymentPropertiesImpl> get copyWith => throw _privateConstructorUsedError; @@ -4434,8 +4681,12 @@ mixin _$PaymentElementApplePayDeferredPaymentRequest { PaymentElementApplePayDeferredPaymentProperties get deferredBilling => throw _privateConstructorUsedError; + /// Serializes this PaymentElementApplePayDeferredPaymentRequest to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of PaymentElementApplePayDeferredPaymentRequest + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $PaymentElementApplePayDeferredPaymentRequestCopyWith< PaymentElementApplePayDeferredPaymentRequest> get copyWith => throw _privateConstructorUsedError; @@ -4473,6 +4724,8 @@ class _$PaymentElementApplePayDeferredPaymentRequestCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of PaymentElementApplePayDeferredPaymentRequest + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -4511,6 +4764,8 @@ class _$PaymentElementApplePayDeferredPaymentRequestCopyWithImpl<$Res, ) as $Val); } + /// Create a copy of PaymentElementApplePayDeferredPaymentRequest + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentElementApplePayDeferredPaymentPropertiesCopyWith<$Res> @@ -4556,6 +4811,8 @@ class __$$PaymentElementApplePayDeferredPaymentRequestImplCopyWithImpl<$Res> $Res Function(_$PaymentElementApplePayDeferredPaymentRequestImpl) _then) : super(_value, _then); + /// Create a copy of PaymentElementApplePayDeferredPaymentRequest + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -4660,7 +4917,7 @@ class _$PaymentElementApplePayDeferredPaymentRequestImpl other.deferredBilling == deferredBilling)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash( runtimeType, @@ -4671,7 +4928,9 @@ class _$PaymentElementApplePayDeferredPaymentRequestImpl freeCancellationTimezone, deferredBilling); - @JsonKey(ignore: true) + /// Create a copy of PaymentElementApplePayDeferredPaymentRequest + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PaymentElementApplePayDeferredPaymentRequestImplCopyWith< @@ -4705,32 +4964,34 @@ abstract class _PaymentElementApplePayDeferredPaymentRequest Map json) = _$PaymentElementApplePayDeferredPaymentRequestImpl.fromJson; - @override - /// The description of the payment - String get paymentDescription; @override + String get paymentDescription; /// Management url - String get managementUrl; @override + String get managementUrl; /// Billing agreement label - String? get billingAgreement; @override + String? get billingAgreement; /// The date when you can cancel for free - DateTime? get freeCancellationDate; @override + DateTime? get freeCancellationDate; /// The timezone of the free cancellation date - String? get freeCancellationTimezone; @override + String? get freeCancellationTimezone; /// Billing information of the deffered payment + @override PaymentElementApplePayDeferredPaymentProperties get deferredBilling; + + /// Create a copy of PaymentElementApplePayDeferredPaymentRequest + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$PaymentElementApplePayDeferredPaymentRequestImplCopyWith< _$PaymentElementApplePayDeferredPaymentRequestImpl> get copyWith => throw _privateConstructorUsedError; @@ -4753,8 +5014,12 @@ mixin _$PaymentElementApplePayDeferredPaymentProperties { /// The date when the payment will be processed DateTime get deferredPaymentDate => throw _privateConstructorUsedError; + /// Serializes this PaymentElementApplePayDeferredPaymentProperties to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of PaymentElementApplePayDeferredPaymentProperties + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $PaymentElementApplePayDeferredPaymentPropertiesCopyWith< PaymentElementApplePayDeferredPaymentProperties> get copyWith => throw _privateConstructorUsedError; @@ -4783,6 +5048,8 @@ class _$PaymentElementApplePayDeferredPaymentPropertiesCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of PaymentElementApplePayDeferredPaymentProperties + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -4833,6 +5100,8 @@ class __$$PaymentElementApplePayDeferredPaymentPropertiesImplCopyWithImpl<$Res> _then) : super(_value, _then); + /// Create a copy of PaymentElementApplePayDeferredPaymentProperties + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -4898,12 +5167,14 @@ class _$PaymentElementApplePayDeferredPaymentPropertiesImpl other.deferredPaymentDate == deferredPaymentDate)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, amount, label, deferredPaymentDate); - @JsonKey(ignore: true) + /// Create a copy of PaymentElementApplePayDeferredPaymentProperties + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PaymentElementApplePayDeferredPaymentPropertiesImplCopyWith< @@ -4933,20 +5204,22 @@ abstract class _PaymentElementApplePayDeferredPaymentProperties Map json) = _$PaymentElementApplePayDeferredPaymentPropertiesImpl.fromJson; - @override - /// The amount of the payment - double get amount; @override + double get amount; /// Description label - String get label; @override + String get label; /// The date when the payment will be processed + @override DateTime get deferredPaymentDate; + + /// Create a copy of PaymentElementApplePayDeferredPaymentProperties + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$PaymentElementApplePayDeferredPaymentPropertiesImplCopyWith< _$PaymentElementApplePayDeferredPaymentPropertiesImpl> get copyWith => throw _privateConstructorUsedError; @@ -4970,8 +5243,12 @@ mixin _$PaymentElementApplePayAutoReloadPaymentRequest { PaymentElementApplePayReloadPaymentProperties get automaticReloadBilling => throw _privateConstructorUsedError; + /// Serializes this PaymentElementApplePayAutoReloadPaymentRequest to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of PaymentElementApplePayAutoReloadPaymentRequest + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $PaymentElementApplePayAutoReloadPaymentRequestCopyWith< PaymentElementApplePayAutoReloadPaymentRequest> get copyWith => throw _privateConstructorUsedError; @@ -5006,6 +5283,8 @@ class _$PaymentElementApplePayAutoReloadPaymentRequestCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of PaymentElementApplePayAutoReloadPaymentRequest + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -5029,6 +5308,8 @@ class _$PaymentElementApplePayAutoReloadPaymentRequestCopyWithImpl<$Res, ) as $Val); } + /// Create a copy of PaymentElementApplePayAutoReloadPaymentRequest + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentElementApplePayReloadPaymentPropertiesCopyWith<$Res> @@ -5072,6 +5353,8 @@ class __$$PaymentElementApplePayAutoReloadPaymentRequestImplCopyWithImpl<$Res> $Res Function(_$PaymentElementApplePayAutoReloadPaymentRequestImpl) _then) : super(_value, _then); + /// Create a copy of PaymentElementApplePayAutoReloadPaymentRequest + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -5139,12 +5422,14 @@ class _$PaymentElementApplePayAutoReloadPaymentRequestImpl other.automaticReloadBilling == automaticReloadBilling)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash( runtimeType, paymentDescription, managementUrl, automaticReloadBilling); - @JsonKey(ignore: true) + /// Create a copy of PaymentElementApplePayAutoReloadPaymentRequest + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PaymentElementApplePayAutoReloadPaymentRequestImplCopyWith< @@ -5175,20 +5460,22 @@ abstract class _PaymentElementApplePayAutoReloadPaymentRequest Map json) = _$PaymentElementApplePayAutoReloadPaymentRequestImpl.fromJson; - @override - /// The description of the payment - String get paymentDescription; @override + String get paymentDescription; /// Management url - String get managementUrl; @override + String get managementUrl; /// Billing information of the deffered payment + @override PaymentElementApplePayReloadPaymentProperties get automaticReloadBilling; + + /// Create a copy of PaymentElementApplePayAutoReloadPaymentRequest + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$PaymentElementApplePayAutoReloadPaymentRequestImplCopyWith< _$PaymentElementApplePayAutoReloadPaymentRequestImpl> get copyWith => throw _privateConstructorUsedError; @@ -5212,8 +5499,12 @@ mixin _$PaymentElementApplePayReloadPaymentProperties { DateTime get automaticReloadPaymentThresholdAmount => throw _privateConstructorUsedError; + /// Serializes this PaymentElementApplePayReloadPaymentProperties to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of PaymentElementApplePayReloadPaymentProperties + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $PaymentElementApplePayReloadPaymentPropertiesCopyWith< PaymentElementApplePayReloadPaymentProperties> get copyWith => throw _privateConstructorUsedError; @@ -5245,6 +5536,8 @@ class _$PaymentElementApplePayReloadPaymentPropertiesCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of PaymentElementApplePayReloadPaymentProperties + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -5298,6 +5591,8 @@ class __$$PaymentElementApplePayReloadPaymentPropertiesImplCopyWithImpl<$Res> $Res Function(_$PaymentElementApplePayReloadPaymentPropertiesImpl) _then) : super(_value, _then); + /// Create a copy of PaymentElementApplePayReloadPaymentProperties + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -5366,12 +5661,14 @@ class _$PaymentElementApplePayReloadPaymentPropertiesImpl automaticReloadPaymentThresholdAmount)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash( runtimeType, amount, label, automaticReloadPaymentThresholdAmount); - @JsonKey(ignore: true) + /// Create a copy of PaymentElementApplePayReloadPaymentProperties + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PaymentElementApplePayReloadPaymentPropertiesImplCopyWith< @@ -5401,20 +5698,22 @@ abstract class _PaymentElementApplePayReloadPaymentProperties Map json) = _$PaymentElementApplePayReloadPaymentPropertiesImpl.fromJson; - @override - /// The amount of the payment - double get amount; @override + double get amount; /// Description label - String get label; @override + String get label; /// The date when the threshold amount will be reached + @override DateTime get automaticReloadPaymentThresholdAmount; + + /// Create a copy of PaymentElementApplePayReloadPaymentProperties + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$PaymentElementApplePayReloadPaymentPropertiesImplCopyWith< _$PaymentElementApplePayReloadPaymentPropertiesImpl> get copyWith => throw _privateConstructorUsedError; diff --git a/packages/stripe_js/lib/src/api/elements/payment_intent_shipping_information.freezed.dart b/packages/stripe_js/lib/src/api/elements/payment_intent_shipping_information.freezed.dart index 3ff69eaf5..6a607bb06 100644 --- a/packages/stripe_js/lib/src/api/elements/payment_intent_shipping_information.freezed.dart +++ b/packages/stripe_js/lib/src/api/elements/payment_intent_shipping_information.freezed.dart @@ -27,8 +27,12 @@ mixin _$PaymentElementShippingDetails { /// Refer to the Payment Intents API for a full list of parameters. String? get trackingNumber => throw _privateConstructorUsedError; + /// Serializes this PaymentElementShippingDetails to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of PaymentElementShippingDetails + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $PaymentElementShippingDetailsCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -55,6 +59,8 @@ class _$PaymentElementShippingDetailsCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of PaymentElementShippingDetails + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -91,6 +97,8 @@ class __$$PaymentElementShippingDetailsImplCopyWithImpl<$Res> $Res Function(_$PaymentElementShippingDetailsImpl) _then) : super(_value, _then); + /// Create a copy of PaymentElementShippingDetails + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -136,11 +144,13 @@ class _$PaymentElementShippingDetailsImpl other.trackingNumber == trackingNumber)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, trackingNumber); - @JsonKey(ignore: true) + /// Create a copy of PaymentElementShippingDetails + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PaymentElementShippingDetailsImplCopyWith< @@ -164,15 +174,17 @@ abstract class _PaymentElementShippingDetails factory _PaymentElementShippingDetails.fromJson(Map json) = _$PaymentElementShippingDetailsImpl.fromJson; - @override - /// The Elements instance that was used to create the Payment Element. // @ElementsConverter() required Elements elements, /// Parameters that will be passed on to the Stripe API. /// Refer to the Payment Intents API for a full list of parameters. + @override String? get trackingNumber; + + /// Create a copy of PaymentElementShippingDetails + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$PaymentElementShippingDetailsImplCopyWith< _$PaymentElementShippingDetailsImpl> get copyWith => throw _privateConstructorUsedError; diff --git a/packages/stripe_js/lib/src/api/payment_intents/confirm_acss_debit_payment_data.freezed.dart b/packages/stripe_js/lib/src/api/payment_intents/confirm_acss_debit_payment_data.freezed.dart index 37d6223df..64e8c1621 100644 --- a/packages/stripe_js/lib/src/api/payment_intents/confirm_acss_debit_payment_data.freezed.dart +++ b/packages/stripe_js/lib/src/api/payment_intents/confirm_acss_debit_payment_data.freezed.dart @@ -27,8 +27,12 @@ mixin _$ConfirmAcssDebitPaymentData { @JsonKey(name: "payment_method") String? get paymentMethod => throw _privateConstructorUsedError; + /// Serializes this ConfirmAcssDebitPaymentData to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of ConfirmAcssDebitPaymentData + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $ConfirmAcssDebitPaymentDataCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -55,6 +59,8 @@ class _$ConfirmAcssDebitPaymentDataCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of ConfirmAcssDebitPaymentData + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -91,6 +97,8 @@ class __$$ConfirmAcssDebitPaymentDataImplCopyWithImpl<$Res> $Res Function(_$ConfirmAcssDebitPaymentDataImpl) _then) : super(_value, _then); + /// Create a copy of ConfirmAcssDebitPaymentData + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -137,11 +145,13 @@ class _$ConfirmAcssDebitPaymentDataImpl other.paymentMethod == paymentMethod)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, paymentMethod); - @JsonKey(ignore: true) + /// Create a copy of ConfirmAcssDebitPaymentData + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$ConfirmAcssDebitPaymentDataImplCopyWith<_$ConfirmAcssDebitPaymentDataImpl> @@ -165,15 +175,17 @@ abstract class _ConfirmAcssDebitPaymentData factory _ConfirmAcssDebitPaymentData.fromJson(Map json) = _$ConfirmAcssDebitPaymentDataImpl.fromJson; - @override - /// Either the id of an existing PaymentMethod, or an object containing /// data to create a PaymentMethod with. /// See the use case sections below for details. + @override @JsonKey(name: "payment_method") String? get paymentMethod; + + /// Create a copy of ConfirmAcssDebitPaymentData + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$ConfirmAcssDebitPaymentDataImplCopyWith<_$ConfirmAcssDebitPaymentDataImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_js/lib/src/api/payment_intents/confirm_acss_debit_payment_options.freezed.dart b/packages/stripe_js/lib/src/api/payment_intents/confirm_acss_debit_payment_options.freezed.dart index 183599fdb..e99ed5574 100644 --- a/packages/stripe_js/lib/src/api/payment_intents/confirm_acss_debit_payment_options.freezed.dart +++ b/packages/stripe_js/lib/src/api/payment_intents/confirm_acss_debit_payment_options.freezed.dart @@ -24,8 +24,12 @@ mixin _$ConfirmAcssDebitPaymentOptions { /// Set this to true if you want to skip displaying the mandate confirmation. bool? get skipMandate => throw _privateConstructorUsedError; + /// Serializes this ConfirmAcssDebitPaymentOptions to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of ConfirmAcssDebitPaymentOptions + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $ConfirmAcssDebitPaymentOptionsCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -52,6 +56,8 @@ class _$ConfirmAcssDebitPaymentOptionsCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of ConfirmAcssDebitPaymentOptions + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -88,6 +94,8 @@ class __$$ConfirmAcssDebitPaymentOptionsImplCopyWithImpl<$Res> $Res Function(_$ConfirmAcssDebitPaymentOptionsImpl) _then) : super(_value, _then); + /// Create a copy of ConfirmAcssDebitPaymentOptions + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -131,11 +139,13 @@ class _$ConfirmAcssDebitPaymentOptionsImpl other.skipMandate == skipMandate)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, skipMandate); - @JsonKey(ignore: true) + /// Create a copy of ConfirmAcssDebitPaymentOptions + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$ConfirmAcssDebitPaymentOptionsImplCopyWith< @@ -159,12 +169,14 @@ abstract class _ConfirmAcssDebitPaymentOptions factory _ConfirmAcssDebitPaymentOptions.fromJson(Map json) = _$ConfirmAcssDebitPaymentOptionsImpl.fromJson; - @override - /// Set this to true if you want to skip displaying the mandate confirmation. + @override bool? get skipMandate; + + /// Create a copy of ConfirmAcssDebitPaymentOptions + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$ConfirmAcssDebitPaymentOptionsImplCopyWith< _$ConfirmAcssDebitPaymentOptionsImpl> get copyWith => throw _privateConstructorUsedError; diff --git a/packages/stripe_js/lib/src/api/payment_intents/confirm_alipay_payment_data.freezed.dart b/packages/stripe_js/lib/src/api/payment_intents/confirm_alipay_payment_data.freezed.dart index 30fc07777..abaa1d51e 100644 --- a/packages/stripe_js/lib/src/api/payment_intents/confirm_alipay_payment_data.freezed.dart +++ b/packages/stripe_js/lib/src/api/payment_intents/confirm_alipay_payment_data.freezed.dart @@ -12,7 +12,7 @@ part of 'confirm_alipay_payment_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'); ConfirmAlipayPaymentData _$ConfirmAlipayPaymentDataFromJson( Map json) { @@ -31,8 +31,12 @@ mixin _$ConfirmAlipayPaymentData { @JsonKey(name: "return_url") String? get returnUrl => throw _privateConstructorUsedError; + /// Serializes this ConfirmAlipayPaymentData to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of ConfirmAlipayPaymentData + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $ConfirmAlipayPaymentDataCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -59,6 +63,8 @@ class _$ConfirmAlipayPaymentDataCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of ConfirmAlipayPaymentData + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -102,6 +108,8 @@ class __$$ConfirmAlipayPaymentDataImplCopyWithImpl<$Res> $Res Function(_$ConfirmAlipayPaymentDataImpl) _then) : super(_value, _then); + /// Create a copy of ConfirmAlipayPaymentData + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -149,7 +157,7 @@ class _$ConfirmAlipayPaymentDataImpl implements _ConfirmAlipayPaymentData { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$ConfirmAlipayPaymentDataImpl && @@ -159,11 +167,13 @@ class _$ConfirmAlipayPaymentDataImpl implements _ConfirmAlipayPaymentData { other.returnUrl == returnUrl)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, paymentMethod, returnUrl); - @JsonKey(ignore: true) + /// Create a copy of ConfirmAlipayPaymentData + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$ConfirmAlipayPaymentDataImplCopyWith<_$ConfirmAlipayPaymentDataImpl> @@ -187,20 +197,22 @@ abstract class _ConfirmAlipayPaymentData implements ConfirmAlipayPaymentData { factory _ConfirmAlipayPaymentData.fromJson(Map json) = _$ConfirmAlipayPaymentDataImpl.fromJson; - @override - /// Either the id of an existing PaymentMethod, or an object containing /// data to create a PaymentMethod with. /// See the use case sections below for details. + @override @JsonKey(name: "payment_method") String? get paymentMethod; - @override /// The url your customer will be directed to after they complete authentication. + @override @JsonKey(name: "return_url") String? get returnUrl; + + /// Create a copy of ConfirmAlipayPaymentData + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$ConfirmAlipayPaymentDataImplCopyWith<_$ConfirmAlipayPaymentDataImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_js/lib/src/api/payment_intents/confirm_alipay_payment_options.freezed.dart b/packages/stripe_js/lib/src/api/payment_intents/confirm_alipay_payment_options.freezed.dart index 2ec05406f..4e72ec744 100644 --- a/packages/stripe_js/lib/src/api/payment_intents/confirm_alipay_payment_options.freezed.dart +++ b/packages/stripe_js/lib/src/api/payment_intents/confirm_alipay_payment_options.freezed.dart @@ -12,7 +12,7 @@ part of 'confirm_alipay_payment_options.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'); ConfirmAlipayPaymentOptions _$ConfirmAlipayPaymentOptionsFromJson( Map json) { @@ -25,8 +25,12 @@ mixin _$ConfirmAlipayPaymentOptions { /// the authorization redirect. Default is true. bool? get handleActions => throw _privateConstructorUsedError; + /// Serializes this ConfirmAlipayPaymentOptions to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of ConfirmAlipayPaymentOptions + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $ConfirmAlipayPaymentOptionsCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -53,6 +57,8 @@ class _$ConfirmAlipayPaymentOptionsCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of ConfirmAlipayPaymentOptions + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -89,6 +95,8 @@ class __$$ConfirmAlipayPaymentOptionsImplCopyWithImpl<$Res> $Res Function(_$ConfirmAlipayPaymentOptionsImpl) _then) : super(_value, _then); + /// Create a copy of ConfirmAlipayPaymentOptions + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -125,7 +133,7 @@ class _$ConfirmAlipayPaymentOptionsImpl } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$ConfirmAlipayPaymentOptionsImpl && @@ -133,11 +141,13 @@ class _$ConfirmAlipayPaymentOptionsImpl other.handleActions == handleActions)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, handleActions); - @JsonKey(ignore: true) + /// Create a copy of ConfirmAlipayPaymentOptions + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$ConfirmAlipayPaymentOptionsImplCopyWith<_$ConfirmAlipayPaymentOptionsImpl> @@ -160,13 +170,15 @@ abstract class _ConfirmAlipayPaymentOptions factory _ConfirmAlipayPaymentOptions.fromJson(Map json) = _$ConfirmAlipayPaymentOptionsImpl.fromJson; - @override - /// Set this to false if you want to manually handle /// the authorization redirect. Default is true. + @override bool? get handleActions; + + /// Create a copy of ConfirmAlipayPaymentOptions + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$ConfirmAlipayPaymentOptionsImplCopyWith<_$ConfirmAlipayPaymentOptionsImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_js/lib/src/api/payment_intents/confirm_card_payment_data.freezed.dart b/packages/stripe_js/lib/src/api/payment_intents/confirm_card_payment_data.freezed.dart index b9c746b2d..44660b3cf 100644 --- a/packages/stripe_js/lib/src/api/payment_intents/confirm_card_payment_data.freezed.dart +++ b/packages/stripe_js/lib/src/api/payment_intents/confirm_card_payment_data.freezed.dart @@ -12,7 +12,7 @@ part of 'confirm_card_payment_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'); ConfirmCardPaymentData _$ConfirmCardPaymentDataFromJson( Map json) { @@ -64,8 +64,12 @@ mixin _$ConfirmCardPaymentData { @JsonKey(name: "payment_method_options") dynamic get paymentMethodOptions => throw _privateConstructorUsedError; + /// Serializes this ConfirmCardPaymentData to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of ConfirmCardPaymentData + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $ConfirmCardPaymentDataCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -100,6 +104,8 @@ class _$ConfirmCardPaymentDataCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of ConfirmCardPaymentData + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -138,6 +144,8 @@ class _$ConfirmCardPaymentDataCopyWithImpl<$Res, ) as $Val); } + /// Create a copy of ConfirmCardPaymentData + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $CardPaymentMethodDetailsCopyWith<$Res>? get paymentMethod { @@ -151,6 +159,8 @@ class _$ConfirmCardPaymentDataCopyWithImpl<$Res, }); } + /// Create a copy of ConfirmCardPaymentData + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $ShippingDetailsCopyWith<$Res>? get shipping { @@ -198,6 +208,8 @@ class __$$ConfirmCardPaymentDataImplCopyWithImpl<$Res> $Res Function(_$ConfirmCardPaymentDataImpl) _then) : super(_value, _then); + /// Create a copy of ConfirmCardPaymentData + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -304,7 +316,7 @@ class _$ConfirmCardPaymentDataImpl implements _ConfirmCardPaymentData { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$ConfirmCardPaymentDataImpl && @@ -322,7 +334,7 @@ class _$ConfirmCardPaymentDataImpl implements _ConfirmCardPaymentData { .equals(other.paymentMethodOptions, paymentMethodOptions)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash( runtimeType, @@ -333,7 +345,9 @@ class _$ConfirmCardPaymentDataImpl implements _ConfirmCardPaymentData { setupFutureUsage, const DeepCollectionEquality().hash(paymentMethodOptions)); - @JsonKey(ignore: true) + /// Create a copy of ConfirmCardPaymentData + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$ConfirmCardPaymentDataImplCopyWith<_$ConfirmCardPaymentDataImpl> @@ -363,30 +377,28 @@ abstract class _ConfirmCardPaymentData implements ConfirmCardPaymentData { factory _ConfirmCardPaymentData.fromJson(Map json) = _$ConfirmCardPaymentDataImpl.fromJson; - @override - /// Either the id of an existing PaymentMethod, or an object containing /// data to create a PaymentMethod with. /// See the use case sections below for details. + @override @paymentMethodDetailJsonKey CardPaymentMethodDetails? get paymentMethod; - @override /// The shipping details for the payment, if collected. - ShippingDetails? get shipping; @override + ShippingDetails? get shipping; /// If you are handling next actions yourself, pass in a return_url. /// If the subsequent action is redirect_to_url, /// this URL will be used on the return path for the redirect. + @override @JsonKey(name: "return_url") String? get returnUrl; - @override /// Email address that the receipt for the resulting payment will be sent to. + @override @JsonKey(name: "receipt_email") String? get receiptEmail; - @override /// Indicates that you intend to make future payments with this /// PaymentIntent's payment method. @@ -402,16 +414,20 @@ abstract class _ConfirmCardPaymentData implements ConfirmCardPaymentData { /// Stripe uses setup_future_usage to dynamically optimize your payment flow /// and comply with regional legislation and network rules. For example, if /// your customer is impacted by SCA, using off_session will ensure that they are authenticated while processing this PaymentIntent. You will then be able to collect off-session payments for this customer. + @override @JsonKey(name: "setup_future_usage") PaymentIntentSetupFutureUsage? get setupFutureUsage; - @override /// An object containing payment-method-specific configuration to /// confirm the PaymentIntent with. + @override @JsonKey(name: "payment_method_options") dynamic get paymentMethodOptions; + + /// Create a copy of ConfirmCardPaymentData + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$ConfirmCardPaymentDataImplCopyWith<_$ConfirmCardPaymentDataImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_js/lib/src/api/payment_intents/confirm_card_payment_options.freezed.dart b/packages/stripe_js/lib/src/api/payment_intents/confirm_card_payment_options.freezed.dart index ffe838752..148f6ef0c 100644 --- a/packages/stripe_js/lib/src/api/payment_intents/confirm_card_payment_options.freezed.dart +++ b/packages/stripe_js/lib/src/api/payment_intents/confirm_card_payment_options.freezed.dart @@ -12,7 +12,7 @@ part of 'confirm_card_payment_options.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'); ConfirmCardPaymentOptions _$ConfirmCardPaymentOptionsFromJson( Map json) { @@ -26,8 +26,12 @@ mixin _$ConfirmCardPaymentOptions { /// (e.g. for use in the PaymentRequest API). Default is true. bool? get handleActions => throw _privateConstructorUsedError; + /// Serializes this ConfirmCardPaymentOptions to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of ConfirmCardPaymentOptions + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $ConfirmCardPaymentOptionsCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -52,6 +56,8 @@ class _$ConfirmCardPaymentOptionsCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of ConfirmCardPaymentOptions + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -88,6 +94,8 @@ class __$$ConfirmCardPaymentOptionsImplCopyWithImpl<$Res> $Res Function(_$ConfirmCardPaymentOptionsImpl) _then) : super(_value, _then); + /// Create a copy of ConfirmCardPaymentOptions + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -123,7 +131,7 @@ class _$ConfirmCardPaymentOptionsImpl implements _ConfirmCardPaymentOptions { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$ConfirmCardPaymentOptionsImpl && @@ -131,11 +139,13 @@ class _$ConfirmCardPaymentOptionsImpl implements _ConfirmCardPaymentOptions { other.handleActions == handleActions)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, handleActions); - @JsonKey(ignore: true) + /// Create a copy of ConfirmCardPaymentOptions + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$ConfirmCardPaymentOptionsImplCopyWith<_$ConfirmCardPaymentOptionsImpl> @@ -157,14 +167,16 @@ abstract class _ConfirmCardPaymentOptions implements ConfirmCardPaymentOptions { factory _ConfirmCardPaymentOptions.fromJson(Map json) = _$ConfirmCardPaymentOptionsImpl.fromJson; - @override - /// Set this to false if you want to handle next actions yourself, /// or if you want to defer next action handling until later /// (e.g. for use in the PaymentRequest API). Default is true. + @override bool? get handleActions; + + /// Create a copy of ConfirmCardPaymentOptions + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$ConfirmCardPaymentOptionsImplCopyWith<_$ConfirmCardPaymentOptionsImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_js/lib/src/api/payment_intents/confirm_ideal_payment_data.freezed.dart b/packages/stripe_js/lib/src/api/payment_intents/confirm_ideal_payment_data.freezed.dart index 5e149f778..73e80283b 100644 --- a/packages/stripe_js/lib/src/api/payment_intents/confirm_ideal_payment_data.freezed.dart +++ b/packages/stripe_js/lib/src/api/payment_intents/confirm_ideal_payment_data.freezed.dart @@ -12,7 +12,7 @@ part of 'confirm_ideal_payment_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'); ConfirmIdealPaymentData _$ConfirmIdealPaymentDataFromJson( Map json) { @@ -41,8 +41,12 @@ mixin _$ConfirmIdealPaymentData { PaymentIntentSetupFutureUsage? get setupFutureUsage => throw _privateConstructorUsedError; + /// Serializes this ConfirmIdealPaymentData to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of ConfirmIdealPaymentData + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $ConfirmIdealPaymentDataCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -73,6 +77,8 @@ class _$ConfirmIdealPaymentDataCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of ConfirmIdealPaymentData + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -96,6 +102,8 @@ class _$ConfirmIdealPaymentDataCopyWithImpl<$Res, ) as $Val); } + /// Create a copy of ConfirmIdealPaymentData + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $IdealPaymentMethodDetailsCopyWith<$Res>? get paymentMethod { @@ -139,6 +147,8 @@ class __$$ConfirmIdealPaymentDataImplCopyWithImpl<$Res> $Res Function(_$ConfirmIdealPaymentDataImpl) _then) : super(_value, _then); + /// Create a copy of ConfirmIdealPaymentData + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -201,7 +211,7 @@ class _$ConfirmIdealPaymentDataImpl implements _ConfirmIdealPaymentData { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$ConfirmIdealPaymentDataImpl && @@ -213,12 +223,14 @@ class _$ConfirmIdealPaymentDataImpl implements _ConfirmIdealPaymentData { other.setupFutureUsage == setupFutureUsage)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, paymentMethod, returnUrl, setupFutureUsage); - @JsonKey(ignore: true) + /// Create a copy of ConfirmIdealPaymentData + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$ConfirmIdealPaymentDataImplCopyWith<_$ConfirmIdealPaymentDataImpl> @@ -245,29 +257,31 @@ abstract class _ConfirmIdealPaymentData implements ConfirmIdealPaymentData { factory _ConfirmIdealPaymentData.fromJson(Map json) = _$ConfirmIdealPaymentDataImpl.fromJson; - @override - /// Either the id of an existing PaymentMethod, or an object containing /// data to create a PaymentMethod with. /// See the use case sections below for details. + @override @paymentMethodDetailJsonKey IdealPaymentMethodDetails? get paymentMethod; - @override /// The url your customer will be directed to after they complete authentication. + @override @JsonKey(name: "return_url") String? get returnUrl; - @override /// To set up a SEPA Direct Debit payment method using the bank details /// from this iDEAL payment, set this parameter to off_session. /// When using this parameter, a customer will need to be set on the /// PaymentIntent. The newly created SEPA Direct Debit PaymentMethod /// will be attached to this customer. + @override @JsonKey(name: "setup_future_usage") PaymentIntentSetupFutureUsage? get setupFutureUsage; + + /// Create a copy of ConfirmIdealPaymentData + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$ConfirmIdealPaymentDataImplCopyWith<_$ConfirmIdealPaymentDataImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_js/lib/src/api/payment_intents/confirm_ideal_payment_options.freezed.dart b/packages/stripe_js/lib/src/api/payment_intents/confirm_ideal_payment_options.freezed.dart index 964dd47b7..d97504263 100644 --- a/packages/stripe_js/lib/src/api/payment_intents/confirm_ideal_payment_options.freezed.dart +++ b/packages/stripe_js/lib/src/api/payment_intents/confirm_ideal_payment_options.freezed.dart @@ -12,7 +12,7 @@ part of 'confirm_ideal_payment_options.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'); ConfirmIdealPaymentOptions _$ConfirmIdealPaymentOptionsFromJson( Map json) { @@ -25,8 +25,12 @@ mixin _$ConfirmIdealPaymentOptions { /// the authorization redirect. Default is true. bool? get handleActions => throw _privateConstructorUsedError; + /// Serializes this ConfirmIdealPaymentOptions to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of ConfirmIdealPaymentOptions + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $ConfirmIdealPaymentOptionsCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -52,6 +56,8 @@ class _$ConfirmIdealPaymentOptionsCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of ConfirmIdealPaymentOptions + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -88,6 +94,8 @@ class __$$ConfirmIdealPaymentOptionsImplCopyWithImpl<$Res> $Res Function(_$ConfirmIdealPaymentOptionsImpl) _then) : super(_value, _then); + /// Create a copy of ConfirmIdealPaymentOptions + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -123,7 +131,7 @@ class _$ConfirmIdealPaymentOptionsImpl implements _ConfirmIdealPaymentOptions { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$ConfirmIdealPaymentOptionsImpl && @@ -131,11 +139,13 @@ class _$ConfirmIdealPaymentOptionsImpl implements _ConfirmIdealPaymentOptions { other.handleActions == handleActions)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, handleActions); - @JsonKey(ignore: true) + /// Create a copy of ConfirmIdealPaymentOptions + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$ConfirmIdealPaymentOptionsImplCopyWith<_$ConfirmIdealPaymentOptionsImpl> @@ -158,13 +168,15 @@ abstract class _ConfirmIdealPaymentOptions factory _ConfirmIdealPaymentOptions.fromJson(Map json) = _$ConfirmIdealPaymentOptionsImpl.fromJson; - @override - /// Set this to false if you want to manually handle /// the authorization redirect. Default is true. + @override bool? get handleActions; + + /// Create a copy of ConfirmIdealPaymentOptions + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$ConfirmIdealPaymentOptionsImplCopyWith<_$ConfirmIdealPaymentOptionsImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_js/lib/src/api/payment_intents/confirm_payment_options.freezed.dart b/packages/stripe_js/lib/src/api/payment_intents/confirm_payment_options.freezed.dart index 6f11f938b..c32606df4 100644 --- a/packages/stripe_js/lib/src/api/payment_intents/confirm_payment_options.freezed.dart +++ b/packages/stripe_js/lib/src/api/payment_intents/confirm_payment_options.freezed.dart @@ -12,7 +12,7 @@ part of 'confirm_payment_options.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'); ConfirmPaymentOptions _$ConfirmPaymentOptionsFromJson( Map json) { @@ -42,8 +42,12 @@ mixin _$ConfirmPaymentOptions { PaymentConfirmationRedirect? get redirect => throw _privateConstructorUsedError; + /// Serializes this ConfirmPaymentOptions to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of ConfirmPaymentOptions + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $ConfirmPaymentOptionsCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -73,6 +77,8 @@ class _$ConfirmPaymentOptionsCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of ConfirmPaymentOptions + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -96,6 +102,8 @@ class _$ConfirmPaymentOptionsCopyWithImpl<$Res, ) as $Val); } + /// Create a copy of ConfirmPaymentOptions + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $ConfirmPaymentParamsCopyWith<$Res> get confirmParams { @@ -132,6 +140,8 @@ class __$$ConfirmPaymentOptionsImplCopyWithImpl<$Res> $Res Function(_$ConfirmPaymentOptionsImpl) _then) : super(_value, _then); + /// Create a copy of ConfirmPaymentOptions + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -196,7 +206,7 @@ class _$ConfirmPaymentOptionsImpl implements _ConfirmPaymentOptions { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$ConfirmPaymentOptionsImpl && @@ -208,12 +218,14 @@ class _$ConfirmPaymentOptionsImpl implements _ConfirmPaymentOptions { other.redirect == redirect)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, elements, confirmParams, redirect); - @JsonKey(ignore: true) + /// Create a copy of ConfirmPaymentOptions + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$ConfirmPaymentOptionsImplCopyWith<_$ConfirmPaymentOptionsImpl> @@ -238,17 +250,15 @@ abstract class _ConfirmPaymentOptions implements ConfirmPaymentOptions { factory _ConfirmPaymentOptions.fromJson(Map json) = _$ConfirmPaymentOptionsImpl.fromJson; - @override - /// The Elements instance that was used to create the Payment Element. + @override @ElementsConverter() Elements get elements; - @override /// Parameters that will be passed on to the Stripe API. /// Refer to the Payment Intents API for a full list of parameters. - ConfirmPaymentParams get confirmParams; @override + ConfirmPaymentParams get confirmParams; /// By default, stripe.confirmPayment will always redirect to your /// return_url after a successful confirmation. @@ -260,9 +270,13 @@ abstract class _ConfirmPaymentOptions implements ConfirmPaymentOptions { /// methods separately. When a non-redirect based payment method is /// successfully confirmed, stripe.confirmPayment will resolve with a /// {paymentIntent} object. + @override PaymentConfirmationRedirect? get redirect; + + /// Create a copy of ConfirmPaymentOptions + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$ConfirmPaymentOptionsImplCopyWith<_$ConfirmPaymentOptionsImpl> get copyWith => throw _privateConstructorUsedError; } @@ -276,8 +290,12 @@ mixin _$ConfirmPaymentParams { /// The url your customer will be directed to after they complete payment. String get return_url => throw _privateConstructorUsedError; + /// Serializes this ConfirmPaymentParams to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of ConfirmPaymentParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $ConfirmPaymentParamsCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -302,6 +320,8 @@ class _$ConfirmPaymentParamsCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of ConfirmPaymentParams + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -335,6 +355,8 @@ class __$$ConfirmPaymentParamsImplCopyWithImpl<$Res> $Res Function(_$ConfirmPaymentParamsImpl) _then) : super(_value, _then); + /// Create a copy of ConfirmPaymentParams + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -367,7 +389,7 @@ class _$ConfirmPaymentParamsImpl implements _ConfirmPaymentParams { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$ConfirmPaymentParamsImpl && @@ -375,11 +397,13 @@ class _$ConfirmPaymentParamsImpl implements _ConfirmPaymentParams { other.return_url == return_url)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, return_url); - @JsonKey(ignore: true) + /// Create a copy of ConfirmPaymentParams + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$ConfirmPaymentParamsImplCopyWith<_$ConfirmPaymentParamsImpl> @@ -402,12 +426,14 @@ abstract class _ConfirmPaymentParams implements ConfirmPaymentParams { factory _ConfirmPaymentParams.fromJson(Map json) = _$ConfirmPaymentParamsImpl.fromJson; - @override - /// The url your customer will be directed to after they complete payment. + @override String get return_url; + + /// Create a copy of ConfirmPaymentParams + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$ConfirmPaymentParamsImplCopyWith<_$ConfirmPaymentParamsImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_js/lib/src/api/payment_intents/confirm_sepa_debit_payment_data.freezed.dart b/packages/stripe_js/lib/src/api/payment_intents/confirm_sepa_debit_payment_data.freezed.dart index d80d048f4..0ffe90f4e 100644 --- a/packages/stripe_js/lib/src/api/payment_intents/confirm_sepa_debit_payment_data.freezed.dart +++ b/packages/stripe_js/lib/src/api/payment_intents/confirm_sepa_debit_payment_data.freezed.dart @@ -12,7 +12,7 @@ part of 'confirm_sepa_debit_payment_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'); ConfirmSepaDebitPaymentData _$ConfirmSepaDebitPaymentDataFromJson( Map json) { @@ -37,8 +37,12 @@ mixin _$ConfirmSepaDebitPaymentData { PaymentIntentSetupFutureUsage? get setupFutureUsage => throw _privateConstructorUsedError; + /// Serializes this ConfirmSepaDebitPaymentData to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of ConfirmSepaDebitPaymentData + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $ConfirmSepaDebitPaymentDataCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -70,6 +74,8 @@ class _$ConfirmSepaDebitPaymentDataCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of ConfirmSepaDebitPaymentData + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -88,6 +94,8 @@ class _$ConfirmSepaDebitPaymentDataCopyWithImpl<$Res, ) as $Val); } + /// Create a copy of ConfirmSepaDebitPaymentData + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $SepaDebitPaymentMethodDetailsCopyWith<$Res>? get paymentMethod { @@ -130,6 +138,8 @@ class __$$ConfirmSepaDebitPaymentDataImplCopyWithImpl<$Res> $Res Function(_$ConfirmSepaDebitPaymentDataImpl) _then) : super(_value, _then); + /// Create a copy of ConfirmSepaDebitPaymentData + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -183,7 +193,7 @@ class _$ConfirmSepaDebitPaymentDataImpl } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$ConfirmSepaDebitPaymentDataImpl && @@ -193,11 +203,13 @@ class _$ConfirmSepaDebitPaymentDataImpl other.setupFutureUsage == setupFutureUsage)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, paymentMethod, setupFutureUsage); - @JsonKey(ignore: true) + /// Create a copy of ConfirmSepaDebitPaymentData + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$ConfirmSepaDebitPaymentDataImplCopyWith<_$ConfirmSepaDebitPaymentDataImpl> @@ -224,24 +236,26 @@ abstract class _ConfirmSepaDebitPaymentData factory _ConfirmSepaDebitPaymentData.fromJson(Map json) = _$ConfirmSepaDebitPaymentDataImpl.fromJson; - @override - /// Either the id of an existing PaymentMethod, or an object containing /// data to create a PaymentMethod with. /// See the use case sections below for details. + @override @paymentMethodDetailJsonKey SepaDebitPaymentMethodDetails? get paymentMethod; - @override /// To set up the SEPA Direct Debit account for reuse, set this parameter /// to off_session. SEPA Direct Debit only accepts an off_session value /// for this parameter. If a customer is provided on this PaymentIntent, /// the PaymentMethod will be attached to the customer when the /// PaymentIntent transitions to processing. + @override @JsonKey(name: "setup_future_usage") PaymentIntentSetupFutureUsage? get setupFutureUsage; + + /// Create a copy of ConfirmSepaDebitPaymentData + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$ConfirmSepaDebitPaymentDataImplCopyWith<_$ConfirmSepaDebitPaymentDataImpl> get copyWith => throw _privateConstructorUsedError; } @@ -336,6 +350,8 @@ mixin _$SepaDebitPaymentMethodDetails { required TResult orElse(), }) => throw _privateConstructorUsedError; + + /// Serializes this SepaDebitPaymentMethodDetails to a JSON map. Map toJson() => throw _privateConstructorUsedError; } @@ -358,6 +374,9 @@ class _$SepaDebitPaymentMethodDetailsCopyWithImpl<$Res, final $Val _value; // ignore: unused_field final $Res Function($Val) _then; + + /// Create a copy of SepaDebitPaymentMethodDetails + /// with the given fields replaced by the non-null parameter values. } /// @nodoc @@ -380,6 +399,8 @@ class __$$IdSepaDebitPaymentMethodDetailsImplCopyWithImpl<$Res> $Res Function(_$IdSepaDebitPaymentMethodDetailsImpl) _then) : super(_value, _then); + /// Create a copy of SepaDebitPaymentMethodDetails + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -417,18 +438,20 @@ class _$IdSepaDebitPaymentMethodDetailsImpl } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$IdSepaDebitPaymentMethodDetailsImpl && (identical(other.id, id) || other.id == id)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, id); - @JsonKey(ignore: true) + /// Create a copy of SepaDebitPaymentMethodDetails + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$IdSepaDebitPaymentMethodDetailsImplCopyWith< @@ -546,7 +569,10 @@ abstract class _IdSepaDebitPaymentMethodDetails _$IdSepaDebitPaymentMethodDetailsImpl.fromJson; String get id; - @JsonKey(ignore: true) + + /// Create a copy of SepaDebitPaymentMethodDetails + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) _$$IdSepaDebitPaymentMethodDetailsImplCopyWith< _$IdSepaDebitPaymentMethodDetailsImpl> get copyWith => throw _privateConstructorUsedError; @@ -576,6 +602,8 @@ class __$$SepaDebitPaymentMethodDetailsImplCopyWithImpl<$Res> $Res Function(_$SepaDebitPaymentMethodDetailsImpl) _then) : super(_value, _then); + /// Create a copy of SepaDebitPaymentMethodDetails + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -594,6 +622,8 @@ class __$$SepaDebitPaymentMethodDetailsImplCopyWithImpl<$Res> )); } + /// Create a copy of SepaDebitPaymentMethodDetails + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $SepaBillingDetailsCopyWith<$Res>? get billingDetails { @@ -641,7 +671,7 @@ class _$SepaDebitPaymentMethodDetailsImpl } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$SepaDebitPaymentMethodDetailsImpl && @@ -651,11 +681,13 @@ class _$SepaDebitPaymentMethodDetailsImpl other.billingDetails == billingDetails)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, sepaDebit, billingDetails); - @JsonKey(ignore: true) + /// Create a copy of SepaDebitPaymentMethodDetails + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$SepaDebitPaymentMethodDetailsImplCopyWith< @@ -785,7 +817,10 @@ abstract class _SepaDebitPaymentMethodDetails /// The customer's billing_details. name and email are required. @JsonKey(name: "billing_details") SepaBillingDetails? get billingDetails; - @JsonKey(ignore: true) + + /// Create a copy of SepaDebitPaymentMethodDetails + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) _$$SepaDebitPaymentMethodDetailsImplCopyWith< _$SepaDebitPaymentMethodDetailsImpl> get copyWith => throw _privateConstructorUsedError; @@ -816,6 +851,8 @@ class __$$SepaDebitPaymentMethodDetailsWithIbanImplCopyWithImpl<$Res> $Res Function(_$SepaDebitPaymentMethodDetailsWithIbanImpl) _then) : super(_value, _then); + /// Create a copy of SepaDebitPaymentMethodDetails + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -834,6 +871,8 @@ class __$$SepaDebitPaymentMethodDetailsWithIbanImplCopyWithImpl<$Res> )); } + /// Create a copy of SepaDebitPaymentMethodDetails + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $SepaDebitIbanDataCopyWith<$Res> get sepaDebit { @@ -842,6 +881,8 @@ class __$$SepaDebitPaymentMethodDetailsWithIbanImplCopyWithImpl<$Res> }); } + /// Create a copy of SepaDebitPaymentMethodDetails + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $SepaBillingDetailsCopyWith<$Res>? get billingDetails { @@ -888,7 +929,7 @@ class _$SepaDebitPaymentMethodDetailsWithIbanImpl } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$SepaDebitPaymentMethodDetailsWithIbanImpl && @@ -898,11 +939,13 @@ class _$SepaDebitPaymentMethodDetailsWithIbanImpl other.billingDetails == billingDetails)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, sepaDebit, billingDetails); - @JsonKey(ignore: true) + /// Create a copy of SepaDebitPaymentMethodDetails + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$SepaDebitPaymentMethodDetailsWithIbanImplCopyWith< @@ -1030,7 +1073,10 @@ abstract class _SepaDebitPaymentMethodDetailsWithIban /// The customer's billing_details. name and email are required. @JsonKey(name: "billing_details") SepaBillingDetails? get billingDetails; - @JsonKey(ignore: true) + + /// Create a copy of SepaDebitPaymentMethodDetails + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) _$$SepaDebitPaymentMethodDetailsWithIbanImplCopyWith< _$SepaDebitPaymentMethodDetailsWithIbanImpl> get copyWith => throw _privateConstructorUsedError; @@ -1045,8 +1091,12 @@ mixin _$SepaDebitIbanData { /// An IBAN account number. String get iban => throw _privateConstructorUsedError; + /// Serializes this SepaDebitIbanData to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of SepaDebitIbanData + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $SepaDebitIbanDataCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -1070,6 +1120,8 @@ class _$SepaDebitIbanDataCopyWithImpl<$Res, $Val extends SepaDebitIbanData> // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of SepaDebitIbanData + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1103,6 +1155,8 @@ class __$$SepaDebitIbanDataImplCopyWithImpl<$Res> $Res Function(_$SepaDebitIbanDataImpl) _then) : super(_value, _then); + /// Create a copy of SepaDebitIbanData + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1135,18 +1189,20 @@ class _$SepaDebitIbanDataImpl implements _SepaDebitIbanData { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$SepaDebitIbanDataImpl && (identical(other.iban, iban) || other.iban == iban)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, iban); - @JsonKey(ignore: true) + /// Create a copy of SepaDebitIbanData + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$SepaDebitIbanDataImplCopyWith<_$SepaDebitIbanDataImpl> get copyWith => @@ -1168,12 +1224,14 @@ abstract class _SepaDebitIbanData implements SepaDebitIbanData { factory _SepaDebitIbanData.fromJson(Map json) = _$SepaDebitIbanDataImpl.fromJson; - @override - /// An IBAN account number. + @override String get iban; + + /// Create a copy of SepaDebitIbanData + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$SepaDebitIbanDataImplCopyWith<_$SepaDebitIbanDataImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1196,8 +1254,12 @@ mixin _$SepaBillingDetails { /// Full name. String get name => throw _privateConstructorUsedError; + /// Serializes this SepaBillingDetails to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of SepaBillingDetails + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $SepaBillingDetailsCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -1224,6 +1286,8 @@ class _$SepaBillingDetailsCopyWithImpl<$Res, $Val extends SepaBillingDetails> // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of SepaBillingDetails + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1252,6 +1316,8 @@ class _$SepaBillingDetailsCopyWithImpl<$Res, $Val extends SepaBillingDetails> ) as $Val); } + /// Create a copy of SepaBillingDetails + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $BillingAddressCopyWith<$Res>? get address { @@ -1288,6 +1354,8 @@ class __$$SepaBillingDetailsImplCopyWithImpl<$Res> $Res Function(_$SepaBillingDetailsImpl) _then) : super(_value, _then); + /// Create a copy of SepaBillingDetails + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1348,7 +1416,7 @@ class _$SepaBillingDetailsImpl implements _SepaBillingDetails { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$SepaBillingDetailsImpl && @@ -1358,11 +1426,13 @@ class _$SepaBillingDetailsImpl implements _SepaBillingDetails { (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 SepaBillingDetails + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$SepaBillingDetailsImplCopyWith<_$SepaBillingDetailsImpl> get copyWith => @@ -1387,24 +1457,26 @@ abstract class _SepaBillingDetails implements SepaBillingDetails { factory _SepaBillingDetails.fromJson(Map json) = _$SepaBillingDetailsImpl.fromJson; - @override - /// Email address. - String get email; @override + String get email; /// Billing address. - BillingAddress? get address; @override + BillingAddress? get address; /// Billing phone number. - String? get phone; @override + String? get phone; /// Full name. + @override String get name; + + /// Create a copy of SepaBillingDetails + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$SepaBillingDetailsImplCopyWith<_$SepaBillingDetailsImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_js/lib/src/api/payment_intents/payment_intent.freezed.dart b/packages/stripe_js/lib/src/api/payment_intents/payment_intent.freezed.dart index 0b4e33118..0da240082 100644 --- a/packages/stripe_js/lib/src/api/payment_intents/payment_intent.freezed.dart +++ b/packages/stripe_js/lib/src/api/payment_intents/payment_intent.freezed.dart @@ -12,7 +12,7 @@ part of 'payment_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'); PaymentIntent _$PaymentIntentFromJson(Map json) { return _PaymentIntent.fromJson(json); @@ -236,8 +236,12 @@ mixin _$PaymentIntent { @JsonKey(name: "transfer_group") dynamic get transferGroup => 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; } @@ -315,6 +319,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({ @@ -513,6 +519,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') $PaymentIntentAmountDetailsCopyWith<$Res>? get amountDetails { @@ -526,6 +534,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') $PaymentIntentAutomaticPaymentMethodsCopyWith<$Res>? @@ -540,6 +550,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') $StripeErrorCopyWith<$Res>? get lastPaymentError { @@ -552,6 +564,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 { @@ -642,6 +656,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({ @@ -1178,7 +1194,7 @@ class _$PaymentIntentImpl implements _PaymentIntent { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PaymentIntentImpl && @@ -1253,7 +1269,7 @@ class _$PaymentIntentImpl implements _PaymentIntent { .equals(other.transferGroup, transferGroup)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hashAll([ runtimeType, @@ -1297,7 +1313,9 @@ class _$PaymentIntentImpl implements _PaymentIntent { const DeepCollectionEquality().hash(transferGroup) ]); - @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 => @@ -1367,17 +1385,15 @@ abstract class _PaymentIntent implements PaymentIntent { factory _PaymentIntent.fromJson(Map json) = _$PaymentIntentImpl.fromJson; - @override - /// Unique identifier for the object. - String get id; @override + String get id; /// String representing the object’s type. /// Objects of the same type share the same value. /// Value is "payment_intent". - String get object; @override + String get object; /// Amount intended to be collected by this PaymentIntent. /// A positive integer representing how much to charge in the @@ -1386,28 +1402,28 @@ abstract class _PaymentIntent implements PaymentIntent { /// The minimum amount is $0.50 US or equivalent in charge currency. /// The amount value supports up to eight digits /// (e.g., a value of 99999999 for a USD charge of $999,999.99). - int get amount; @override + int get amount; /// The amount that can be captured with from this PaymentIntent (in cents). + @override @JsonKey(name: "amount_capturable") int? get amountCapturable; - @override /// Details about items included in the amount + @override @JsonKey(name: "amount_details") PaymentIntentAmountDetails? get amountDetails; - @override /// The amount that was collected from this PaymentIntent (in cents). + @override @JsonKey(name: "amount_received") int? get amountReceived; - @override /// CONNECT ONLY /// ID of the Connect application that created the PaymentIntent. - String? get application; @override + String? get application; /// CONNECT ONLY /// The amount of the application fee (if any) that will be requested to @@ -1416,30 +1432,30 @@ abstract class _PaymentIntent implements PaymentIntent { /// capped at the total payment amount. /// For more information, see the PaymentIntents use /// case for connected accounts.. + @override @JsonKey(name: "application_fee_amount") int? get applicationFeeAmount; - @override /// Settings to configure compatible payment methods from the /// Stripe Dashboard + @override @JsonKey(name: "automatic_payment_methods") PaymentIntentAutomaticPaymentMethods? get automaticPaymentMethods; - @override /// Populated when status is canceled, this is the time at which the /// PaymentIntent was canceled. Measured in seconds since the Unix epoch. + @override @JsonKey(name: "canceled_at") int? get canceledAt; - @override /// Reason for cancellation of this PaymentIntent, /// either user-provided /// (duplicate, fraudulent, requested_by_customer, or abandoned) or /// generated by Stripe internally /// (failed_invoice, void_invoice, or automatic). + @override @JsonKey(name: "cancellation_reason") PaymentIntentCancellationReason? get cancellationReason; - @override /// The client secret of this PaymentIntent. Used for client-side retrieval /// using a publishable key. @@ -1450,27 +1466,27 @@ abstract class _PaymentIntent implements PaymentIntent { /// /// Refer to our docs to accept a payment and learn about how `client_secret` /// should be handled. + @override @JsonKey(name: "client_secret") String get clientSecret; - @override /// Controls when the funds will be captured from the customer’s account. + @override @JsonKey(name: "capture_method") PaymentIntentCaptureMethod get captureMethod; @override @JsonKey(name: "confirmation_method") PaymentIntentConfirmationMethod get confirmationMethod; - @override /// Time at which the object was created. Measured in seconds since the /// Unix epoch. - int? get created; @override + int? get created; /// Three-letter ISO currency code, in lowercase. Must be a supported /// currency. - String get currency; @override + String get currency; /// ID of the Customer this PaymentIntent belongs to, if one exists. /// Payment methods attached to other Customers cannot be used with this @@ -1480,84 +1496,85 @@ abstract class _PaymentIntent implements PaymentIntent { /// this PaymentIntent’s payment method will be attached to the /// Customer after the PaymentIntent has been confirmed and any /// required actions from the user are complete. - String? get customer; @override + String? get customer; /// An arbitrary string attached to the object. /// Often useful for displaying to users. - String? get description; @override + String? get description; /// ID of the invoice that created this PaymentIntent, if it exists. - String? get invoice; @override + String? get invoice; /// The payment error encountered in the previous PaymentIntent confirmation. /// It will be cleared if the PaymentIntent is later updated for any reason. + @override @JsonKey(name: "last_payment_error") StripeError? get lastPaymentError; - @override /// The latest charge created by this payment intent. + @override @JsonKey(name: "latest_charge") String? get latestCharge; - @override /// Has the value true if the object exists in live mode or the /// value false if the object exists in test mode. - bool get livemode; @override + bool get livemode; /// Set of key-value pairs that you can attach to an object. /// This can be useful for storing additional information about the /// object in a structured format. - Map get metadata; @override + Map get metadata; /// If present, this property tells you what actions you need to /// take in order for your customer to fulfill a payment using the /// provided source. + @override @JsonKey(name: "next_action") dynamic get nextAction; - @override /// CONNECT ONLY /// The account (if any) for which the funds of the PaymentIntent are /// intended. See the PaymentIntents use case for connected accounts /// for details. + @override @JsonKey(name: "on_behalf_of") String? get onBehalfOf; - @override /// ID of the payment method used in this PaymentIntent. + @override @JsonKey(name: "payment_method") String? get paymentMethod; - @override /// Payment-method-specific configuration for this PaymentIntent. + @override @JsonKey(name: "payment_method_options") Map get paymentMethodOptions; - @override /// The list of payment method types (e.g. card) that this PaymentIntent /// is allowed to use. + @override @JsonKey( name: "payment_method_types", unknownEnumValue: PaymentMethodType.unknown) List get paymentMethodTypes; - @override /// If present, this property tells you about the processing state of the payment. - dynamic get processing; @override + dynamic get processing; /// Email address that the receipt for the resulting payment will be sent to. /// If receipt_email is specified for a payment in live mode, a receipt /// will be sent regardless of your email settings. + @override @JsonKey(name: "receipt_email") - String? get receiptEmail; - @override // ID of the review associated with this PaymentIntent, if any. - String? get review; + String? + get receiptEmail; // ID of the review associated with this PaymentIntent, if any. @override + String? get review; /// Indicates that you intend to make future payments with this /// PaymentIntent’s payment method. @@ -1569,51 +1586,55 @@ abstract class _PaymentIntent implements PaymentIntent { /// When processing card payments, Stripe also uses setup_future_usage /// to dynamically optimize your payment flow and comply with regional /// legislation and network rules, such as SCA. + @override @JsonKey(name: "setup_future_usage") PaymentIntentSetupFutureUsage? get setupFutureUsage; - @override /// Shipping information for this PaymentIntent. - ShippingDetails? get shipping; @override + ShippingDetails? get shipping; /// For non-card charges, you can use this value as the complete /// description that appears on your customers’ statements. /// Must contain at least one letter, maximum 22 characters. + @override @JsonKey(name: "statement_descriptor") String? get statementDescriptor; - @override /// Provides information about a card payment that customers see on /// their statements. /// Concatenated with the prefix (shortened descriptor) or statement /// descriptor that’s set on the account to form the complete statement /// descriptor. Maximum 22 characters for the concatenated descriptor. + @override @JsonKey(name: "statement_descriptor_suffix") String? get statementDescriptorSuffix; - @override /// Status of this PaymentIntent, one of requires_payment_method, /// requires_confirmation, requires_action, processing, requires_capture, /// canceled, or succeeded. - PaymentIntentsStatus get status; @override + PaymentIntentsStatus get status; /// CONNECT ONLY /// The data with which to automatically create a Transfer when the payment /// is finalized. See the PaymentIntents use case for connected /// accounts for details. + @override @JsonKey(name: "transfer_data") dynamic get transferData; - @override /// CONNECT ONLY /// A string that identifies the resulting payment as part of a group. /// See the PaymentIntents use case for connected accounts for details. + @override @JsonKey(name: "transfer_group") dynamic get transferGroup; + + /// 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; } @@ -1628,8 +1649,12 @@ mixin _$PaymentIntentAmountDetails { /// Details about items included in the amount PaymentIntentTip? get tip => throw _privateConstructorUsedError; + /// Serializes this PaymentIntentAmountDetails to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of PaymentIntentAmountDetails + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $PaymentIntentAmountDetailsCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -1657,6 +1682,8 @@ class _$PaymentIntentAmountDetailsCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of PaymentIntentAmountDetails + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1670,6 +1697,8 @@ class _$PaymentIntentAmountDetailsCopyWithImpl<$Res, ) as $Val); } + /// Create a copy of PaymentIntentAmountDetails + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentIntentTipCopyWith<$Res>? get tip { @@ -1708,6 +1737,8 @@ class __$$PaymentIntentAmountDetailsImplCopyWithImpl<$Res> $Res Function(_$PaymentIntentAmountDetailsImpl) _then) : super(_value, _then); + /// Create a copy of PaymentIntentAmountDetails + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1742,18 +1773,20 @@ class _$PaymentIntentAmountDetailsImpl implements _PaymentIntentAmountDetails { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PaymentIntentAmountDetailsImpl && (identical(other.tip, tip) || other.tip == tip)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, tip); - @JsonKey(ignore: true) + /// Create a copy of PaymentIntentAmountDetails + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PaymentIntentAmountDetailsImplCopyWith<_$PaymentIntentAmountDetailsImpl> @@ -1776,12 +1809,14 @@ abstract class _PaymentIntentAmountDetails factory _PaymentIntentAmountDetails.fromJson(Map json) = _$PaymentIntentAmountDetailsImpl.fromJson; - @override - /// Details about items included in the amount + @override PaymentIntentTip? get tip; + + /// Create a copy of PaymentIntentAmountDetails + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$PaymentIntentAmountDetailsImplCopyWith<_$PaymentIntentAmountDetailsImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1795,8 +1830,12 @@ mixin _$PaymentIntentTip { /// Portion of the amount that corresponds to a tip. int? get amount => throw _privateConstructorUsedError; + /// Serializes this PaymentIntentTip to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of PaymentIntentTip + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $PaymentIntentTipCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -1820,6 +1859,8 @@ class _$PaymentIntentTipCopyWithImpl<$Res, $Val extends PaymentIntentTip> // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of PaymentIntentTip + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1853,6 +1894,8 @@ class __$$PaymentIntentTipImplCopyWithImpl<$Res> $Res Function(_$PaymentIntentTipImpl) _then) : super(_value, _then); + /// Create a copy of PaymentIntentTip + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1885,18 +1928,20 @@ class _$PaymentIntentTipImpl implements _PaymentIntentTip { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PaymentIntentTipImpl && (identical(other.amount, amount) || other.amount == amount)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, amount); - @JsonKey(ignore: true) + /// Create a copy of PaymentIntentTip + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PaymentIntentTipImplCopyWith<_$PaymentIntentTipImpl> get copyWith => @@ -1917,12 +1962,14 @@ abstract class _PaymentIntentTip implements PaymentIntentTip { factory _PaymentIntentTip.fromJson(Map json) = _$PaymentIntentTipImpl.fromJson; - @override - /// Portion of the amount that corresponds to a tip. + @override int? get amount; + + /// Create a copy of PaymentIntentTip + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$PaymentIntentTipImplCopyWith<_$PaymentIntentTipImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1937,8 +1984,12 @@ mixin _$PaymentIntentAutomaticPaymentMethods { /// Automatically calculates compatible payment methods bool? get enabled => throw _privateConstructorUsedError; + /// Serializes this PaymentIntentAutomaticPaymentMethods to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of PaymentIntentAutomaticPaymentMethods + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $PaymentIntentAutomaticPaymentMethodsCopyWith< PaymentIntentAutomaticPaymentMethods> get copyWith => throw _privateConstructorUsedError; @@ -1966,6 +2017,8 @@ class _$PaymentIntentAutomaticPaymentMethodsCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of PaymentIntentAutomaticPaymentMethods + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -2002,6 +2055,8 @@ class __$$PaymentIntentAutomaticPaymentMethodsImplCopyWithImpl<$Res> $Res Function(_$PaymentIntentAutomaticPaymentMethodsImpl) _then) : super(_value, _then); + /// Create a copy of PaymentIntentAutomaticPaymentMethods + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -2036,18 +2091,20 @@ class _$PaymentIntentAutomaticPaymentMethodsImpl } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PaymentIntentAutomaticPaymentMethodsImpl && (identical(other.enabled, enabled) || other.enabled == enabled)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, enabled); - @JsonKey(ignore: true) + /// Create a copy of PaymentIntentAutomaticPaymentMethods + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PaymentIntentAutomaticPaymentMethodsImplCopyWith< @@ -2073,12 +2130,14 @@ abstract class _PaymentIntentAutomaticPaymentMethods Map json) = _$PaymentIntentAutomaticPaymentMethodsImpl.fromJson; - @override - /// Automatically calculates compatible payment methods + @override bool? get enabled; + + /// Create a copy of PaymentIntentAutomaticPaymentMethods + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$PaymentIntentAutomaticPaymentMethodsImplCopyWith< _$PaymentIntentAutomaticPaymentMethodsImpl> get copyWith => throw _privateConstructorUsedError; diff --git a/packages/stripe_js/lib/src/api/payment_intents/payment_intent_response.freezed.dart b/packages/stripe_js/lib/src/api/payment_intents/payment_intent_response.freezed.dart index fede51fbd..6b4c45e5c 100644 --- a/packages/stripe_js/lib/src/api/payment_intents/payment_intent_response.freezed.dart +++ b/packages/stripe_js/lib/src/api/payment_intents/payment_intent_response.freezed.dart @@ -12,7 +12,7 @@ part of 'payment_intent_response.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'); PaymentIntentResponse _$PaymentIntentResponseFromJson( Map json) { @@ -27,8 +27,12 @@ mixin _$PaymentIntentResponse { /// If not null, an error occurred StripeError? get error => throw _privateConstructorUsedError; + /// Serializes this PaymentIntentResponse to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of PaymentIntentResponse + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $PaymentIntentResponseCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -56,6 +60,8 @@ class _$PaymentIntentResponseCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of PaymentIntentResponse + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -74,6 +80,8 @@ class _$PaymentIntentResponseCopyWithImpl<$Res, ) as $Val); } + /// Create a copy of PaymentIntentResponse + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentIntentCopyWith<$Res>? get paymentIntent { @@ -86,6 +94,8 @@ class _$PaymentIntentResponseCopyWithImpl<$Res, }); } + /// Create a copy of PaymentIntentResponse + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $StripeErrorCopyWith<$Res>? get error { @@ -125,6 +135,8 @@ class __$$PaymentIntentResponseImplCopyWithImpl<$Res> $Res Function(_$PaymentIntentResponseImpl) _then) : super(_value, _then); + /// Create a copy of PaymentIntentResponse + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -166,7 +178,7 @@ class _$PaymentIntentResponseImpl implements _PaymentIntentResponse { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PaymentIntentResponseImpl && @@ -175,11 +187,13 @@ class _$PaymentIntentResponseImpl implements _PaymentIntentResponse { (identical(other.error, error) || other.error == error)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, paymentIntent, error); - @JsonKey(ignore: true) + /// Create a copy of PaymentIntentResponse + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PaymentIntentResponseImplCopyWith<_$PaymentIntentResponseImpl> @@ -202,16 +216,18 @@ abstract class _PaymentIntentResponse implements PaymentIntentResponse { factory _PaymentIntentResponse.fromJson(Map json) = _$PaymentIntentResponseImpl.fromJson; - @override - /// If not null, a PaymentIntent was retrieved successfully - PaymentIntent? get paymentIntent; @override + PaymentIntent? get paymentIntent; /// If not null, an error occurred + @override StripeError? get error; + + /// Create a copy of PaymentIntentResponse + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$PaymentIntentResponseImplCopyWith<_$PaymentIntentResponseImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_js/lib/src/api/payment_methods/create_payment_method_data.freezed.dart b/packages/stripe_js/lib/src/api/payment_methods/create_payment_method_data.freezed.dart index 4da139562..4cf8af3c9 100644 --- a/packages/stripe_js/lib/src/api/payment_methods/create_payment_method_data.freezed.dart +++ b/packages/stripe_js/lib/src/api/payment_methods/create_payment_method_data.freezed.dart @@ -12,7 +12,7 @@ part of 'create_payment_method_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'); CreatePaymentMethodData _$CreatePaymentMethodDataFromJson( Map json) { @@ -70,8 +70,12 @@ mixin _$CreatePaymentMethodData { @JsonKey(name: "billing_details") BillingDetails? get billingDetails => throw _privateConstructorUsedError; + /// Serializes this CreatePaymentMethodData to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of CreatePaymentMethodData + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $CreatePaymentMethodDataCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -110,6 +114,8 @@ class _$CreatePaymentMethodDataCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of CreatePaymentMethodData + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -178,6 +184,8 @@ class _$CreatePaymentMethodDataCopyWithImpl<$Res, ) as $Val); } + /// Create a copy of CreatePaymentMethodData + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $BillingDetailsCopyWith<$Res>? get billingDetails { @@ -228,6 +236,8 @@ class __$$CreatePaymentMethodDataImplCopyWithImpl<$Res> $Res Function(_$CreatePaymentMethodDataImpl) _then) : super(_value, _then); + /// Create a copy of CreatePaymentMethodData + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -384,7 +394,7 @@ class _$CreatePaymentMethodDataImpl implements _CreatePaymentMethodData { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$CreatePaymentMethodDataImpl && @@ -408,7 +418,7 @@ class _$CreatePaymentMethodDataImpl implements _CreatePaymentMethodData { other.billingDetails == billingDetails)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash( runtimeType, @@ -425,7 +435,9 @@ class _$CreatePaymentMethodDataImpl implements _CreatePaymentMethodData { upiVpa, billingDetails); - @JsonKey(ignore: true) + /// Create a copy of CreatePaymentMethodData + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$CreatePaymentMethodDataImplCopyWith<_$CreatePaymentMethodDataImpl> @@ -461,69 +473,71 @@ abstract class _CreatePaymentMethodData implements CreatePaymentMethodData { factory _CreatePaymentMethodData.fromJson(Map json) = _$CreatePaymentMethodDataImpl.fromJson; - @override - /// Unique identifier for the object. - String get type; @override + String get type; /// A card or cardNumber Element. + @override @ElementConverter() Element? get card; - @override /// An auBankAccount Element. + @override @JsonKey(name: "au_becs_debit") @ElementConverter() Element? get auBecsDebit; - @override /// An fpx Element. + @override @ElementConverter() Element? get fpx; - @override /// The customer's bank. + @override @JsonKey(name: "fpx[bank]") String? get fpxBank; - @override /// The customer's bank. + @override @JsonKey(name: "netbanking[bank]") String? get netbankingBank; - @override /// An idealBank Element. + @override @ElementConverter() Element? get ideal; - @override /// The customer's bank. + @override @JsonKey(name: "ideal[bank]") String? get idealBank; - @override /// An iban Element. + @override @JsonKey(name: "sepa_debit") @ElementConverter() Element? get sepaDebit; - @override /// An IBAN account number. + @override @JsonKey(name: "sepa_debit[iban]") String? get sepaDebitIban; - @override /// The customer's VPA. + @override @JsonKey(name: "upi[vpa]") String? get upiVpa; - @override /// Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods. + @override @JsonKey(name: "billing_details") BillingDetails? get billingDetails; + + /// Create a copy of CreatePaymentMethodData + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$CreatePaymentMethodDataImplCopyWith<_$CreatePaymentMethodDataImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_js/lib/src/api/payment_methods/payment_method.freezed.dart b/packages/stripe_js/lib/src/api/payment_methods/payment_method.freezed.dart index e56d101bd..9dff56802 100644 --- a/packages/stripe_js/lib/src/api/payment_methods/payment_method.freezed.dart +++ b/packages/stripe_js/lib/src/api/payment_methods/payment_method.freezed.dart @@ -12,7 +12,7 @@ part of 'payment_method.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); @@ -80,8 +80,12 @@ mixin _$PaymentMethod { /// It contains additional information specific to the PaymentMethod type. PaymentMethodType get type => 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; } @@ -133,6 +137,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({ @@ -226,6 +232,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 { @@ -238,6 +246,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') $CardPaymentMethodCopyWith<$Res>? get card { @@ -250,6 +260,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 { @@ -262,6 +274,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 { @@ -274,6 +288,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 { @@ -286,6 +302,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 { @@ -298,6 +316,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 { @@ -310,6 +330,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 { @@ -322,6 +344,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 { @@ -334,6 +358,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 { @@ -404,6 +430,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({ @@ -620,7 +648,7 @@ class _$PaymentMethodImpl implements _PaymentMethod { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PaymentMethodImpl && @@ -650,7 +678,7 @@ class _$PaymentMethodImpl implements _PaymentMethod { (identical(other.type, type) || other.type == type)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash( runtimeType, @@ -672,7 +700,9 @@ class _$PaymentMethodImpl implements _PaymentMethod { usBankAccount, type); - @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 => @@ -709,85 +739,87 @@ abstract class _PaymentMethod implements PaymentMethod { factory _PaymentMethod.fromJson(Map json) = _$PaymentMethodImpl.fromJson; - @override - /// Unique identifier for the object. - String get id; @override + String get id; /// String representing the object’s type. /// Objects of the same type share the same value. - String get object; @override + String get object; /// Billing information associated with the PaymentMethod that may be used /// or required by particular types of payment methods. - BillingDetails? get billingDetails; @override + BillingDetails? get billingDetails; /// The ID of the Customer to which this PaymentMethod is saved. /// This will not be set when the PaymentMethod has not been saved to a /// Customer. - String? get customer; @override + String? get customer; /// Set of key-value pairs that you can attach to an object. /// This can be useful for storing additional information about the object /// in a structured format. - Map get metadata; @override + Map get metadata; /// Has the value true if the object exists in live mode or the value false /// if the object exists in test mode. - bool get livemode; @override + bool get livemode; /// Time at which the object was created. /// Measured in seconds since the Unix epoch. - int? get created; @override + int? get created; /// Containing additional data in case paymentmethod type is card. - CardPaymentMethod? get card; @override + CardPaymentMethod? get card; /// Containing additional data in case paymentmethod type is sepa. - SepaDebit? get sepaDebit; @override + SepaDebit? get sepaDebit; /// Containing additional data in case paymentmethod type is Bacs debit. - BacsDebit? get bacsDebit; @override + BacsDebit? get bacsDebit; /// Containing additional data in case paymentmethod type is Aubecs debit. - AuBecsDebit? get auBecsDebit; @override + AuBecsDebit? get auBecsDebit; /// Containing additional data in case paymentmethod type is sofort. - Sofort? get sofort; @override + Sofort? get sofort; /// Containing additional data in case paymentmethod type is Ideal. - Ideal? get ideal; @override + Ideal? get ideal; /// Containing additional data in case paymentmethod type is FPX. - Fpx? get fpx; @override + Fpx? get fpx; /// Containing additional data in case paymentmethod type is UPI. + @override Upi? get upi; @override UsBankAccount? get usBankAccount; - @override /// The type of the PaymentMethod. /// An additional hash is included on the PaymentMethod with a name /// matching this value. /// It contains additional information specific to the PaymentMethod type. + @override PaymentMethodType get type; + + /// 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; } @@ -807,8 +839,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; } @@ -832,6 +868,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({ @@ -875,6 +913,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({ @@ -926,7 +966,7 @@ class _$AuBecsDebitImpl implements _AuBecsDebit { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$AuBecsDebitImpl && @@ -937,11 +977,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 => @@ -964,20 +1006,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; } @@ -997,8 +1041,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; } @@ -1021,6 +1069,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({ @@ -1064,6 +1114,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({ @@ -1115,7 +1167,7 @@ class _$BacsDebitImpl implements _BacsDebit { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$BacsDebitImpl && @@ -1126,11 +1178,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 => @@ -1153,20 +1207,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; } @@ -1201,8 +1257,12 @@ mixin _$CardPaymentMethod { /// The available networks the card can run. List? get availableNetworks => throw _privateConstructorUsedError; + /// Serializes this CardPaymentMethod to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of CardPaymentMethod + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $CardPaymentMethodCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -1234,6 +1294,8 @@ class _$CardPaymentMethodCopyWithImpl<$Res, $Val extends CardPaymentMethod> // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of CardPaymentMethod + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1310,6 +1372,8 @@ class __$$CardPaymentMethodImplCopyWithImpl<$Res> $Res Function(_$CardPaymentMethodImpl) _then) : super(_value, _then); + /// Create a copy of CardPaymentMethod + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1425,7 +1489,7 @@ class _$CardPaymentMethodImpl implements _CardPaymentMethod { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$CardPaymentMethodImpl && @@ -1442,7 +1506,7 @@ class _$CardPaymentMethodImpl implements _CardPaymentMethod { .equals(other._availableNetworks, _availableNetworks)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash( runtimeType, @@ -1455,7 +1519,9 @@ class _$CardPaymentMethodImpl implements _CardPaymentMethod { preferredNetwork, const DeepCollectionEquality().hash(_availableNetworks)); - @JsonKey(ignore: true) + /// Create a copy of CardPaymentMethod + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$CardPaymentMethodImplCopyWith<_$CardPaymentMethodImpl> get copyWith => @@ -1484,40 +1550,42 @@ abstract class _CardPaymentMethod implements CardPaymentMethod { factory _CardPaymentMethod.fromJson(Map json) = _$CardPaymentMethodImpl.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. + @override List? get availableNetworks; + + /// Create a copy of CardPaymentMethod + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$CardPaymentMethodImplCopyWith<_$CardPaymentMethodImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1534,8 +1602,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; } @@ -1556,6 +1628,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({ @@ -1590,6 +1664,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({ @@ -1632,7 +1708,7 @@ class _$FpxImpl implements _Fpx { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$FpxImpl && @@ -1641,11 +1717,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 => @@ -1665,16 +1743,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; } @@ -1691,8 +1771,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; } @@ -1714,6 +1798,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({ @@ -1751,6 +1837,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({ @@ -1793,7 +1881,7 @@ class _$IdealImpl implements _Ideal { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$IdealImpl && @@ -1802,11 +1890,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 => @@ -1826,16 +1916,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; } @@ -1858,8 +1950,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; } @@ -1883,6 +1979,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({ @@ -1932,6 +2030,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({ @@ -1993,7 +2093,7 @@ class _$SepaDebitImpl implements _SepaDebit { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$SepaDebitImpl && @@ -2005,12 +2105,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 => @@ -2034,24 +2136,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; } @@ -2065,8 +2169,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; } @@ -2088,6 +2196,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({ @@ -2120,6 +2230,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({ @@ -2153,18 +2265,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 => @@ -2183,12 +2297,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; } @@ -2202,8 +2318,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; } @@ -2224,6 +2344,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({ @@ -2253,6 +2375,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({ @@ -2286,18 +2410,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 => @@ -2316,12 +2442,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; } @@ -2360,8 +2488,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; } @@ -2394,6 +2526,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({ @@ -2476,6 +2610,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({ @@ -2612,7 +2748,7 @@ class _$UsBankAccountImpl implements _UsBankAccount { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$UsBankAccountImpl && @@ -2635,7 +2771,7 @@ class _$UsBankAccountImpl implements _UsBankAccount { .equals(other._supportedNetworks, _supportedNetworks)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash( runtimeType, @@ -2649,7 +2785,9 @@ class _$UsBankAccountImpl implements _UsBankAccount { const DeepCollectionEquality().hash(_preferredNetworks), 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 => @@ -2678,44 +2816,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 - UsBankAccountHolderType get accountHolderType; @override + UsBankAccountHolderType 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 names - List? get preferredNetworks; @override + List? get preferredNetworks; /// 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; } diff --git a/packages/stripe_js/lib/src/api/payment_methods/payment_method_details.freezed.dart b/packages/stripe_js/lib/src/api/payment_methods/payment_method_details.freezed.dart index 48b286d24..bcf6ab157 100644 --- a/packages/stripe_js/lib/src/api/payment_methods/payment_method_details.freezed.dart +++ b/packages/stripe_js/lib/src/api/payment_methods/payment_method_details.freezed.dart @@ -12,7 +12,7 @@ part of 'payment_method_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'); CardPaymentMethodDetails _$CardPaymentMethodDetailsFromJson( Map json) { @@ -88,6 +88,8 @@ mixin _$CardPaymentMethodDetails { required TResult orElse(), }) => throw _privateConstructorUsedError; + + /// Serializes this CardPaymentMethodDetails to a JSON map. Map toJson() => throw _privateConstructorUsedError; } @@ -108,6 +110,9 @@ class _$CardPaymentMethodDetailsCopyWithImpl<$Res, final $Val _value; // ignore: unused_field final $Res Function($Val) _then; + + /// Create a copy of CardPaymentMethodDetails + /// with the given fields replaced by the non-null parameter values. } /// @nodoc @@ -128,6 +133,8 @@ class __$$CardPaymentMethodRefImplCopyWithImpl<$Res> $Res Function(_$CardPaymentMethodRefImpl) _then) : super(_value, _then); + /// Create a copy of CardPaymentMethodDetails + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -163,18 +170,20 @@ class _$CardPaymentMethodRefImpl implements _CardPaymentMethodRef { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$CardPaymentMethodRefImpl && (identical(other.id, id) || other.id == id)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, id); - @JsonKey(ignore: true) + /// Create a copy of CardPaymentMethodDetails + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$CardPaymentMethodRefImplCopyWith<_$CardPaymentMethodRefImpl> @@ -279,7 +288,10 @@ abstract class _CardPaymentMethodRef _$CardPaymentMethodRefImpl.fromJson; String get id; - @JsonKey(ignore: true) + + /// Create a copy of CardPaymentMethodDetails + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) _$$CardPaymentMethodRefImplCopyWith<_$CardPaymentMethodRefImpl> get copyWith => throw _privateConstructorUsedError; } @@ -308,6 +320,8 @@ class __$$CardPaymentMethodDefaultImplCopyWithImpl<$Res> $Res Function(_$CardPaymentMethodDefaultImpl) _then) : super(_value, _then); + /// Create a copy of CardPaymentMethodDetails + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -326,6 +340,8 @@ class __$$CardPaymentMethodDefaultImplCopyWithImpl<$Res> )); } + /// Create a copy of CardPaymentMethodDetails + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $BillingDetailsCopyWith<$Res>? get billingDetails { @@ -370,7 +386,7 @@ class _$CardPaymentMethodDefaultImpl implements _CardPaymentMethodDefault { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$CardPaymentMethodDefaultImpl && @@ -379,11 +395,13 @@ class _$CardPaymentMethodDefaultImpl implements _CardPaymentMethodDefault { other.billingDetails == billingDetails)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, card, billingDetails); - @JsonKey(ignore: true) + /// Create a copy of CardPaymentMethodDetails + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$CardPaymentMethodDefaultImplCopyWith<_$CardPaymentMethodDefaultImpl> @@ -494,7 +512,10 @@ abstract class _CardPaymentMethodDefault implements CardPaymentMethodDetails { /// The billing_details associated with the card. @JsonKey(name: "billing_details") BillingDetails? get billingDetails; - @JsonKey(ignore: true) + + /// Create a copy of CardPaymentMethodDetails + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) _$$CardPaymentMethodDefaultImplCopyWith<_$CardPaymentMethodDefaultImpl> get copyWith => throw _privateConstructorUsedError; } @@ -524,6 +545,8 @@ class __$$CardPaymentMethodDetailsTokenImplCopyWithImpl<$Res> $Res Function(_$CardPaymentMethodDetailsTokenImpl) _then) : super(_value, _then); + /// Create a copy of CardPaymentMethodDetails + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -542,6 +565,8 @@ class __$$CardPaymentMethodDetailsTokenImplCopyWithImpl<$Res> )); } + /// Create a copy of CardPaymentMethodDetails + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $CardTokenPaymentMethodCopyWith<$Res> get card { @@ -550,6 +575,8 @@ class __$$CardPaymentMethodDetailsTokenImplCopyWithImpl<$Res> }); } + /// Create a copy of CardPaymentMethodDetails + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $BillingDetailsCopyWith<$Res>? get billingDetails { @@ -595,7 +622,7 @@ class _$CardPaymentMethodDetailsTokenImpl } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$CardPaymentMethodDetailsTokenImpl && @@ -604,11 +631,13 @@ class _$CardPaymentMethodDetailsTokenImpl other.billingDetails == billingDetails)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, card, billingDetails); - @JsonKey(ignore: true) + /// Create a copy of CardPaymentMethodDetails + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$CardPaymentMethodDetailsTokenImplCopyWith< @@ -721,7 +750,10 @@ abstract class _CardPaymentMethodDetailsToken /// The billing_details associated with the card. @JsonKey(name: "billing_details") BillingDetails? get billingDetails; - @JsonKey(ignore: true) + + /// Create a copy of CardPaymentMethodDetails + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) _$$CardPaymentMethodDetailsTokenImplCopyWith< _$CardPaymentMethodDetailsTokenImpl> get copyWith => throw _privateConstructorUsedError; @@ -802,6 +834,8 @@ mixin _$IdealPaymentMethodDetails { required TResult orElse(), }) => throw _privateConstructorUsedError; + + /// Serializes this IdealPaymentMethodDetails to a JSON map. Map toJson() => throw _privateConstructorUsedError; } @@ -822,6 +856,9 @@ class _$IdealPaymentMethodDetailsCopyWithImpl<$Res, final $Val _value; // ignore: unused_field final $Res Function($Val) _then; + + /// Create a copy of IdealPaymentMethodDetails + /// with the given fields replaced by the non-null parameter values. } /// @nodoc @@ -844,6 +881,8 @@ class __$$IdIdealPaymentMethodDetailsImplCopyWithImpl<$Res> $Res Function(_$IdIdealPaymentMethodDetailsImpl) _then) : super(_value, _then); + /// Create a copy of IdealPaymentMethodDetails + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -881,18 +920,20 @@ class _$IdIdealPaymentMethodDetailsImpl } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$IdIdealPaymentMethodDetailsImpl && (identical(other.id, id) || other.id == id)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, id); - @JsonKey(ignore: true) + /// Create a copy of IdealPaymentMethodDetails + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$IdIdealPaymentMethodDetailsImplCopyWith<_$IdIdealPaymentMethodDetailsImpl> @@ -997,7 +1038,10 @@ abstract class _IdIdealPaymentMethodDetails _$IdIdealPaymentMethodDetailsImpl.fromJson; String get id; - @JsonKey(ignore: true) + + /// Create a copy of IdealPaymentMethodDetails + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) _$$IdIdealPaymentMethodDetailsImplCopyWith<_$IdIdealPaymentMethodDetailsImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1026,6 +1070,8 @@ class __$$IdealPaymentMethodDetailsImplCopyWithImpl<$Res> $Res Function(_$IdealPaymentMethodDetailsImpl) _then) : super(_value, _then); + /// Create a copy of IdealPaymentMethodDetails + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1044,6 +1090,8 @@ class __$$IdealPaymentMethodDetailsImplCopyWithImpl<$Res> )); } + /// Create a copy of IdealPaymentMethodDetails + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $BillingDetailsCopyWith<$Res>? get billingDetails { @@ -1088,7 +1136,7 @@ class _$IdealPaymentMethodDetailsImpl implements _IdealPaymentMethodDetails { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$IdealPaymentMethodDetailsImpl && @@ -1097,11 +1145,13 @@ class _$IdealPaymentMethodDetailsImpl implements _IdealPaymentMethodDetails { other.billingDetails == billingDetails)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, ideal, billingDetails); - @JsonKey(ignore: true) + /// Create a copy of IdealPaymentMethodDetails + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$IdealPaymentMethodDetailsImplCopyWith<_$IdealPaymentMethodDetailsImpl> @@ -1213,7 +1263,10 @@ abstract class _IdealPaymentMethodDetails implements IdealPaymentMethodDetails { /// The billing_details associated with the card. @JsonKey(name: "billing_details") BillingDetails? get billingDetails; - @JsonKey(ignore: true) + + /// Create a copy of IdealPaymentMethodDetails + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) _$$IdealPaymentMethodDetailsImplCopyWith<_$IdealPaymentMethodDetailsImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1243,6 +1296,8 @@ class __$$IdealPaymentMethodDetailsSelfCollectImplCopyWithImpl<$Res> $Res Function(_$IdealPaymentMethodDetailsSelfCollectImpl) _then) : super(_value, _then); + /// Create a copy of IdealPaymentMethodDetails + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1261,6 +1316,8 @@ class __$$IdealPaymentMethodDetailsSelfCollectImplCopyWithImpl<$Res> )); } + /// Create a copy of IdealPaymentMethodDetails + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $IdealBankDataCopyWith<$Res> get ideal { @@ -1269,6 +1326,8 @@ class __$$IdealPaymentMethodDetailsSelfCollectImplCopyWithImpl<$Res> }); } + /// Create a copy of IdealPaymentMethodDetails + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $BillingDetailsCopyWith<$Res>? get billingDetails { @@ -1314,7 +1373,7 @@ class _$IdealPaymentMethodDetailsSelfCollectImpl } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$IdealPaymentMethodDetailsSelfCollectImpl && @@ -1323,11 +1382,13 @@ class _$IdealPaymentMethodDetailsSelfCollectImpl other.billingDetails == billingDetails)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, ideal, billingDetails); - @JsonKey(ignore: true) + /// Create a copy of IdealPaymentMethodDetails + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$IdealPaymentMethodDetailsSelfCollectImplCopyWith< @@ -1442,7 +1503,10 @@ abstract class _IdealPaymentMethodDetailsSelfCollect /// The billing_details associated with the card. @JsonKey(name: "billing_details") BillingDetails? get billingDetails; - @JsonKey(ignore: true) + + /// Create a copy of IdealPaymentMethodDetails + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) _$$IdealPaymentMethodDetailsSelfCollectImplCopyWith< _$IdealPaymentMethodDetailsSelfCollectImpl> get copyWith => throw _privateConstructorUsedError; @@ -1457,8 +1521,12 @@ mixin _$IdealBankData { /// The customer's bank. String get bank => throw _privateConstructorUsedError; + /// Serializes this IdealBankData to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of IdealBankData + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $IdealBankDataCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -1482,6 +1550,8 @@ class _$IdealBankDataCopyWithImpl<$Res, $Val extends IdealBankData> // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of IdealBankData + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1515,6 +1585,8 @@ class __$$IdealBankDataImplCopyWithImpl<$Res> _$IdealBankDataImpl _value, $Res Function(_$IdealBankDataImpl) _then) : super(_value, _then); + /// Create a copy of IdealBankData + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1547,18 +1619,20 @@ class _$IdealBankDataImpl implements _IdealBankData { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$IdealBankDataImpl && (identical(other.bank, bank) || other.bank == bank)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, bank); - @JsonKey(ignore: true) + /// Create a copy of IdealBankData + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$IdealBankDataImplCopyWith<_$IdealBankDataImpl> get copyWith => @@ -1579,12 +1653,14 @@ abstract class _IdealBankData implements IdealBankData { factory _IdealBankData.fromJson(Map json) = _$IdealBankDataImpl.fromJson; - @override - /// The customer's bank. + @override String get bank; + + /// Create a copy of IdealBankData + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$IdealBankDataImplCopyWith<_$IdealBankDataImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1598,8 +1674,12 @@ CardTokenPaymentMethod _$CardTokenPaymentMethodFromJson( mixin _$CardTokenPaymentMethod { String get token => throw _privateConstructorUsedError; + /// Serializes this CardTokenPaymentMethod to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of CardTokenPaymentMethod + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $CardTokenPaymentMethodCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -1624,6 +1704,8 @@ class _$CardTokenPaymentMethodCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of CardTokenPaymentMethod + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1660,6 +1742,8 @@ class __$$CardTokenPaymentMethodImplCopyWithImpl<$Res> $Res Function(_$CardTokenPaymentMethodImpl) _then) : super(_value, _then); + /// Create a copy of CardTokenPaymentMethod + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1691,18 +1775,20 @@ class _$CardTokenPaymentMethodImpl implements _CardTokenPaymentMethod { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$CardTokenPaymentMethodImpl && (identical(other.token, token) || other.token == token)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, token); - @JsonKey(ignore: true) + /// Create a copy of CardTokenPaymentMethod + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$CardTokenPaymentMethodImplCopyWith<_$CardTokenPaymentMethodImpl> @@ -1726,8 +1812,11 @@ abstract class _CardTokenPaymentMethod implements CardTokenPaymentMethod { @override String get token; + + /// Create a copy of CardTokenPaymentMethod + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$CardTokenPaymentMethodImplCopyWith<_$CardTokenPaymentMethodImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_js/lib/src/api/payment_methods/payment_method_params.freezed.dart b/packages/stripe_js/lib/src/api/payment_methods/payment_method_params.freezed.dart index 353507f6e..17c5e9d76 100644 --- a/packages/stripe_js/lib/src/api/payment_methods/payment_method_params.freezed.dart +++ b/packages/stripe_js/lib/src/api/payment_methods/payment_method_params.freezed.dart @@ -12,7 +12,7 @@ part of 'payment_method_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'); PaymentMethodParams _$PaymentMethodParamsFromJson(Map json) { switch (json['paymentMethodType']) { @@ -235,6 +235,8 @@ mixin _$PaymentMethodParams { required TResult orElse(), }) => throw _privateConstructorUsedError; + + /// Serializes this PaymentMethodParams to a JSON map. Map toJson() => throw _privateConstructorUsedError; } @@ -254,6 +256,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 @@ -278,6 +283,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({ @@ -291,6 +298,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 { @@ -324,7 +333,7 @@ class _$PaymentMethodParamsCardImpl implements _PaymentMethodParamsCard { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PaymentMethodParamsCardImpl && @@ -332,11 +341,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> @@ -548,11 +559,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; } @@ -579,6 +592,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({ @@ -592,6 +607,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 { @@ -628,7 +645,7 @@ class _$PaymentMethodParamsCardWithTokenImpl } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PaymentMethodParamsCardWithTokenImpl && @@ -636,11 +653,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< @@ -855,11 +874,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; @@ -887,6 +908,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({ @@ -900,6 +923,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 { @@ -936,7 +961,7 @@ class _$PaymentMethodParamsCardWithMethodIdImpl } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PaymentMethodParamsCardWithMethodIdImpl && @@ -944,11 +969,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< @@ -1163,11 +1190,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; @@ -1195,6 +1224,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({ @@ -1208,6 +1239,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 { @@ -1241,7 +1274,7 @@ class _$PaymentMethodParamsAlipayImpl implements _PaymentMethodParamsAlipay { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PaymentMethodParamsAlipayImpl && @@ -1249,11 +1282,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> @@ -1465,11 +1500,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; } @@ -1496,6 +1533,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({ @@ -1509,6 +1548,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 { @@ -1543,7 +1584,7 @@ class _$PaymentMethodParamsIdealImpl implements _PaymentMethodParamsIdeal { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PaymentMethodParamsIdealImpl && @@ -1551,11 +1592,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> @@ -1767,11 +1810,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; } @@ -1798,6 +1843,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({ @@ -1811,6 +1858,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 { @@ -1845,7 +1894,7 @@ class _$PaymentMethodParamsAubecsImpl implements _PaymentMethodParamsAubecs { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PaymentMethodParamsAubecsImpl && @@ -1853,11 +1902,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> @@ -2069,11 +2120,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; } @@ -2100,6 +2153,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({ @@ -2113,6 +2168,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 { @@ -2148,7 +2205,7 @@ class _$PaymentMethodParamsBankContactImpl } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PaymentMethodParamsBankContactImpl && @@ -2156,11 +2213,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< @@ -2373,11 +2432,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; @@ -2405,6 +2466,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({ @@ -2418,6 +2481,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 { @@ -2452,7 +2517,7 @@ class _$PaymentMethodParamsGiroPayImpl implements _PaymentMethodParamsGiroPay { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PaymentMethodParamsGiroPayImpl && @@ -2460,11 +2525,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> @@ -2676,11 +2743,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; } @@ -2707,6 +2776,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({ @@ -2720,6 +2791,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 { @@ -2753,7 +2826,7 @@ class _$PaymentMethodParamsEpsImpl implements _PaymentMethodParamsEps { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PaymentMethodParamsEpsImpl && @@ -2761,11 +2834,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> @@ -2977,11 +3052,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; } @@ -3008,6 +3085,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({ @@ -3021,6 +3100,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 { @@ -3054,7 +3135,7 @@ class _$PaymentMethodParamsAffirmImpl implements _PaymentMethodParamsAffirm { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PaymentMethodParamsAffirmImpl && @@ -3062,11 +3143,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> @@ -3278,11 +3361,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; } @@ -3309,6 +3394,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({ @@ -3322,6 +3409,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 { @@ -3355,7 +3444,7 @@ class _$PaymentMethodParamsPayImpl implements _PaymentMethodParamsPay { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PaymentMethodParamsPayImpl && @@ -3363,11 +3452,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> @@ -3579,11 +3670,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; } @@ -3610,6 +3703,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({ @@ -3623,6 +3718,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 { @@ -3656,7 +3753,7 @@ class _$PaymentMethodParamsP24Impl implements _PaymentMethodParamsP24 { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PaymentMethodParamsP24Impl && @@ -3664,11 +3761,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> @@ -3880,11 +3979,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; } @@ -3911,6 +4012,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({ @@ -3924,6 +4027,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 { @@ -3958,7 +4063,7 @@ class _$PaymentMethodParamsFpxImpl implements _PaymentMethodParamsFpx { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PaymentMethodParamsFpxImpl && @@ -3966,11 +4071,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> @@ -4182,11 +4289,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; } @@ -4213,6 +4322,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({ @@ -4226,6 +4337,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 { @@ -4262,7 +4375,7 @@ class _$PaymentMethodParamsSepaDebitImpl } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PaymentMethodParamsSepaDebitImpl && @@ -4270,11 +4383,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< @@ -4487,11 +4602,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; @@ -4519,6 +4636,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({ @@ -4532,6 +4651,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 { @@ -4565,7 +4686,7 @@ class _$PaymentMethodParamsSofortImpl implements _PaymentMethodParamsSofort { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PaymentMethodParamsSofortImpl && @@ -4573,11 +4694,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> @@ -4791,7 +4914,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; } @@ -4818,6 +4944,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({ @@ -4831,6 +4959,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 { @@ -4866,7 +4996,7 @@ class _$PaymentMethodParamsAfterpayClearpayImpl } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PaymentMethodParamsAfterpayClearpayImpl && @@ -4874,11 +5004,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< @@ -5095,7 +5227,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; @@ -5123,6 +5258,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({ @@ -5136,6 +5273,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 { @@ -5169,7 +5308,7 @@ class _$PaymentMethodParamsOxxoImpl implements _PaymentMethodParamsOxxo { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PaymentMethodParamsOxxoImpl && @@ -5177,11 +5316,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> @@ -5393,11 +5534,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; } @@ -5424,6 +5567,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({ @@ -5437,6 +5582,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 { @@ -5473,7 +5620,7 @@ class _$PaymentMethodParamsKlarnaImpl implements _PaymentMethodParamsKlarna { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PaymentMethodParamsKlarnaImpl && @@ -5481,11 +5628,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> @@ -5697,14 +5846,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; } @@ -5731,6 +5882,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({ @@ -5744,6 +5897,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 { @@ -5780,7 +5935,7 @@ class _$PaymentMethodParamsPayPalImpl implements _PaymentMethodParamsPayPal { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PaymentMethodParamsPayPalImpl && @@ -5788,11 +5943,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> @@ -6004,14 +6161,16 @@ abstract class _PaymentMethodParamsPayPal implements PaymentMethodParams { factory _PaymentMethodParamsPayPal.fromJson(Map json) = _$PaymentMethodParamsPayPalImpl.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) _$$PaymentMethodParamsPayPalImplCopyWith<_$PaymentMethodParamsPayPalImpl> get copyWith => throw _privateConstructorUsedError; } @@ -6038,6 +6197,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({ @@ -6051,6 +6212,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 { @@ -6087,7 +6250,7 @@ class _$PaymentMethodParamsUsBankAccountImpl } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PaymentMethodParamsUsBankAccountImpl && @@ -6095,11 +6258,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< @@ -6314,11 +6479,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; @@ -6336,8 +6503,12 @@ mixin _$PaymentMethodData { /// Shipping details ShippingDetails? get shippingDetails => 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; } @@ -6364,6 +6535,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({ @@ -6382,6 +6555,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 { @@ -6394,6 +6569,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 { @@ -6431,6 +6608,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({ @@ -6473,7 +6652,7 @@ class _$PaymentMethodDataImpl implements _PaymentMethodData { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PaymentMethodDataImpl && @@ -6483,11 +6662,13 @@ class _$PaymentMethodDataImpl implements _PaymentMethodData { other.shippingDetails == shippingDetails)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, billingDetails, shippingDetails); - @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 => @@ -6510,16 +6691,18 @@ abstract class _PaymentMethodData implements PaymentMethodData { factory _PaymentMethodData.fromJson(Map json) = _$PaymentMethodDataImpl.fromJson; - @override - /// Billing information. - BillingDetails? get billingDetails; @override + BillingDetails? get billingDetails; /// Shipping details + @override ShippingDetails? get shippingDetails; + + /// 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; } @@ -6540,8 +6723,12 @@ mixin _$PaymentMethodDataCardFromToken { /// Shipping details ShippingDetails? get shippingDetails => 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; } @@ -6574,6 +6761,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({ @@ -6597,6 +6786,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 { @@ -6609,6 +6800,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 { @@ -6652,6 +6845,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({ @@ -6706,7 +6901,7 @@ class _$PaymentMethodDataCardFromTokenImpl } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PaymentMethodDataCardFromTokenImpl && @@ -6717,12 +6912,14 @@ class _$PaymentMethodDataCardFromTokenImpl other.shippingDetails == shippingDetails)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, token, billingDetails, shippingDetails); - @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< @@ -6749,20 +6946,22 @@ 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 + @override ShippingDetails? get shippingDetails; + + /// 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; @@ -6787,8 +6986,12 @@ mixin _$PaymentMethodDataCardFromMethod { /// Shipping details ShippingDetails? get shippingDetails => 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; } @@ -6822,6 +7025,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({ @@ -6850,6 +7055,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 { @@ -6862,6 +7069,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 { @@ -6906,6 +7115,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({ @@ -6972,7 +7183,7 @@ class _$PaymentMethodDataCardFromMethodImpl } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PaymentMethodDataCardFromMethodImpl && @@ -6985,12 +7196,14 @@ class _$PaymentMethodDataCardFromMethodImpl other.shippingDetails == shippingDetails)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash( runtimeType, paymentMethodId, cvc, billingDetails, shippingDetails); - @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< @@ -7018,24 +7231,26 @@ 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 + @override ShippingDetails? get shippingDetails; + + /// 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; @@ -7057,8 +7272,12 @@ mixin _$PaymentMethodDataIdeal { /// Shipping details ShippingDetails? get shippingDetails => 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; } @@ -7089,6 +7308,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({ @@ -7112,6 +7333,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 { @@ -7124,6 +7347,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 { @@ -7167,6 +7392,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({ @@ -7219,7 +7446,7 @@ class _$PaymentMethodDataIdealImpl implements _PaymentMethodDataIdeal { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PaymentMethodDataIdealImpl && @@ -7231,12 +7458,14 @@ class _$PaymentMethodDataIdealImpl implements _PaymentMethodDataIdeal { other.shippingDetails == shippingDetails)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, bankName, billingDetails, shippingDetails); - @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> @@ -7260,20 +7489,22 @@ abstract class _PaymentMethodDataIdeal implements PaymentMethodDataIdeal { factory _PaymentMethodDataIdeal.fromJson(Map json) = _$PaymentMethodDataIdealImpl.fromJson; - @override - /// The name of bank. - String? get bankName; @override + String? get bankName; /// Billing information. - BillingDetails? get billingDetails; @override + BillingDetails? get billingDetails; /// Shipping details + @override ShippingDetails? get shippingDetails; + + /// 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; } @@ -7294,8 +7525,12 @@ mixin _$PaymentMethodDataAubecs { /// Shipping details ShippingDetails? get shippingDetails => 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; } @@ -7326,6 +7561,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({ @@ -7349,6 +7586,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') $BillingDetailsCopyWith<$Res>? get billingDetails { @@ -7361,6 +7600,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 { @@ -7404,6 +7645,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({ @@ -7456,7 +7699,7 @@ class _$PaymentMethodDataAubecsImpl implements _PaymentMethodDataAubecs { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PaymentMethodDataAubecsImpl && @@ -7468,7 +7711,7 @@ class _$PaymentMethodDataAubecsImpl implements _PaymentMethodDataAubecs { other.shippingDetails == shippingDetails)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash( runtimeType, @@ -7476,7 +7719,9 @@ class _$PaymentMethodDataAubecsImpl implements _PaymentMethodDataAubecs { billingDetails, shippingDetails); - @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> @@ -7500,20 +7745,22 @@ abstract class _PaymentMethodDataAubecs implements PaymentMethodDataAubecs { factory _PaymentMethodDataAubecs.fromJson(Map json) = _$PaymentMethodDataAubecsImpl.fromJson; - @override - /// form input details - dynamic get formDetails; @override + dynamic get formDetails; /// Billing information. - BillingDetails? get billingDetails; @override + BillingDetails? get billingDetails; /// Shipping details + @override ShippingDetails? get shippingDetails; + + /// 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; } @@ -7533,8 +7780,12 @@ mixin _$PaymentMethodDataFpx { /// Shipping details ShippingDetails? get shippingDetails => 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; } @@ -7565,6 +7816,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({ @@ -7588,6 +7841,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 { @@ -7600,6 +7855,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 { @@ -7640,6 +7897,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({ @@ -7695,7 +7954,7 @@ class _$PaymentMethodDataFpxImpl implements _PaymentMethodDataFpx { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PaymentMethodDataFpxImpl && @@ -7707,12 +7966,14 @@ class _$PaymentMethodDataFpxImpl implements _PaymentMethodDataFpx { other.shippingDetails == shippingDetails)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash( runtimeType, testOfflineBank, billingDetails, shippingDetails); - @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> @@ -7737,20 +7998,22 @@ 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 + @override ShippingDetails? get shippingDetails; + + /// 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; } @@ -7771,8 +8034,12 @@ mixin _$PaymentMethodDataSofort { /// Shipping details ShippingDetails? get shippingDetails => 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; } @@ -7803,6 +8070,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({ @@ -7826,6 +8095,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 { @@ -7838,6 +8109,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 { @@ -7881,6 +8154,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({ @@ -7933,7 +8208,7 @@ class _$PaymentMethodDataSofortImpl implements _PaymentMethodDataSofort { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PaymentMethodDataSofortImpl && @@ -7944,12 +8219,14 @@ class _$PaymentMethodDataSofortImpl implements _PaymentMethodDataSofort { other.shippingDetails == shippingDetails)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, country, billingDetails, shippingDetails); - @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> @@ -7973,20 +8250,22 @@ 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 + @override ShippingDetails? get shippingDetails; + + /// 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; } @@ -8007,8 +8286,12 @@ mixin _$PaymentMethodDataSepa { /// Shipping details ShippingDetails? get shippingDetails => 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; } @@ -8039,6 +8322,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({ @@ -8062,6 +8347,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 { @@ -8074,6 +8361,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 { @@ -8116,6 +8405,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({ @@ -8168,7 +8459,7 @@ class _$PaymentMethodDataSepaImpl implements _PaymentMethodDataSepa { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PaymentMethodDataSepaImpl && @@ -8179,12 +8470,14 @@ class _$PaymentMethodDataSepaImpl implements _PaymentMethodDataSepa { other.shippingDetails == shippingDetails)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, iban, billingDetails, shippingDetails); - @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> @@ -8208,20 +8501,22 @@ 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 + @override ShippingDetails? get shippingDetails; + + /// 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; } @@ -8239,8 +8534,12 @@ mixin _$PaymentMethodDataAfterPay { /// Shipping details ShippingDetails? get shippingDetails => 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; } @@ -8268,6 +8567,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({ @@ -8286,6 +8587,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 { @@ -8294,6 +8597,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 { @@ -8334,6 +8639,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({ @@ -8377,7 +8684,7 @@ class _$PaymentMethodDataAfterPayImpl implements _PaymentMethodDataAfterPay { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PaymentMethodDataAfterPayImpl && @@ -8387,11 +8694,13 @@ class _$PaymentMethodDataAfterPayImpl implements _PaymentMethodDataAfterPay { other.shippingDetails == shippingDetails)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, billingDetails, shippingDetails); - @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> @@ -8415,16 +8724,18 @@ abstract class _PaymentMethodDataAfterPay implements PaymentMethodDataAfterPay { factory _PaymentMethodDataAfterPay.fromJson(Map json) = _$PaymentMethodDataAfterPayImpl.fromJson; - @override - /// Billing information. - BillingDetails get billingDetails; @override + BillingDetails get billingDetails; /// Shipping details + @override ShippingDetails? get shippingDetails; + + /// 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; } @@ -8456,8 +8767,12 @@ mixin _$PaymentMethodDataUsBank { /// Shipping details ShippingDetails? get shippingDetails => 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; } @@ -8491,6 +8806,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({ @@ -8529,6 +8846,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 { @@ -8541,6 +8860,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 { @@ -8587,6 +8908,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({ @@ -8672,7 +8995,7 @@ class _$PaymentMethodDataUsBankImpl implements _PaymentMethodDataUsBank { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PaymentMethodDataUsBankImpl && @@ -8690,12 +9013,14 @@ class _$PaymentMethodDataUsBankImpl implements _PaymentMethodDataUsBank { other.shippingDetails == shippingDetails)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, accountNumber, routingNumber, accountHolderType, accountType, billingDetails, shippingDetails); - @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> @@ -8722,33 +9047,35 @@ 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 - UsBankAccountHolderType? get accountHolderType; @override + UsBankAccountHolderType? get accountHolderType; /// The account type - UsBankAccountType? get accountType; @override + UsBankAccountType? get accountType; /// Billing information. - BillingDetails? get billingDetails; @override + BillingDetails? get billingDetails; /// Shipping details + @override ShippingDetails? get shippingDetails; + + /// 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; } diff --git a/packages/stripe_js/lib/src/api/payment_methods/payment_method_response.freezed.dart b/packages/stripe_js/lib/src/api/payment_methods/payment_method_response.freezed.dart index 25940ffb5..1f3fea3b6 100644 --- a/packages/stripe_js/lib/src/api/payment_methods/payment_method_response.freezed.dart +++ b/packages/stripe_js/lib/src/api/payment_methods/payment_method_response.freezed.dart @@ -12,7 +12,7 @@ part of 'payment_method_response.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'); PaymentMethodResponse _$PaymentMethodResponseFromJson( Map json) { @@ -27,8 +27,12 @@ mixin _$PaymentMethodResponse { /// If not null, an error occurred StripeError? get error => throw _privateConstructorUsedError; + /// Serializes this PaymentMethodResponse to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of PaymentMethodResponse + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $PaymentMethodResponseCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -56,6 +60,8 @@ class _$PaymentMethodResponseCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of PaymentMethodResponse + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -74,6 +80,8 @@ class _$PaymentMethodResponseCopyWithImpl<$Res, ) as $Val); } + /// Create a copy of PaymentMethodResponse + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentMethodCopyWith<$Res>? get paymentMethod { @@ -86,6 +94,8 @@ class _$PaymentMethodResponseCopyWithImpl<$Res, }); } + /// Create a copy of PaymentMethodResponse + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $StripeErrorCopyWith<$Res>? get error { @@ -125,6 +135,8 @@ class __$$PaymentMethodResponseImplCopyWithImpl<$Res> $Res Function(_$PaymentMethodResponseImpl) _then) : super(_value, _then); + /// Create a copy of PaymentMethodResponse + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -166,7 +178,7 @@ class _$PaymentMethodResponseImpl implements _PaymentMethodResponse { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PaymentMethodResponseImpl && @@ -175,11 +187,13 @@ class _$PaymentMethodResponseImpl implements _PaymentMethodResponse { (identical(other.error, error) || other.error == error)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, paymentMethod, error); - @JsonKey(ignore: true) + /// Create a copy of PaymentMethodResponse + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PaymentMethodResponseImplCopyWith<_$PaymentMethodResponseImpl> @@ -202,16 +216,18 @@ abstract class _PaymentMethodResponse implements PaymentMethodResponse { factory _PaymentMethodResponse.fromJson(Map json) = _$PaymentMethodResponseImpl.fromJson; - @override - /// If not null, a PaymentMethod was created successfully - PaymentMethod? get paymentMethod; @override + PaymentMethod? get paymentMethod; /// If not null, an error occurred + @override StripeError? get error; + + /// Create a copy of PaymentMethodResponse + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$PaymentMethodResponseImplCopyWith<_$PaymentMethodResponseImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_js/lib/src/api/setup_intents/confirm_card_setup_data.freezed.dart b/packages/stripe_js/lib/src/api/setup_intents/confirm_card_setup_data.freezed.dart index 4d171462c..d61b21147 100644 --- a/packages/stripe_js/lib/src/api/setup_intents/confirm_card_setup_data.freezed.dart +++ b/packages/stripe_js/lib/src/api/setup_intents/confirm_card_setup_data.freezed.dart @@ -12,7 +12,7 @@ part of 'confirm_card_setup_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'); ConfirmCardSetupData _$ConfirmCardSetupDataFromJson(Map json) { return _ConfirmCardSetupData.fromJson(json); @@ -33,8 +33,12 @@ mixin _$ConfirmCardSetupData { @JsonKey(name: "return_url") String? get returnUrl => throw _privateConstructorUsedError; + /// Serializes this ConfirmCardSetupData to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of ConfirmCardSetupData + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $ConfirmCardSetupDataCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -63,6 +67,8 @@ class _$ConfirmCardSetupDataCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of ConfirmCardSetupData + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -81,6 +87,8 @@ class _$ConfirmCardSetupDataCopyWithImpl<$Res, ) as $Val); } + /// Create a copy of ConfirmCardSetupData + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $CardPaymentMethodDetailsCopyWith<$Res>? get paymentMethod { @@ -119,6 +127,8 @@ class __$$ConfirmCardSetupDataImplCopyWithImpl<$Res> $Res Function(_$ConfirmCardSetupDataImpl) _then) : super(_value, _then); + /// Create a copy of ConfirmCardSetupData + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -168,7 +178,7 @@ class _$ConfirmCardSetupDataImpl implements _ConfirmCardSetupData { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$ConfirmCardSetupDataImpl && @@ -178,11 +188,13 @@ class _$ConfirmCardSetupDataImpl implements _ConfirmCardSetupData { other.returnUrl == returnUrl)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, paymentMethod, returnUrl); - @JsonKey(ignore: true) + /// Create a copy of ConfirmCardSetupData + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$ConfirmCardSetupDataImplCopyWith<_$ConfirmCardSetupDataImpl> @@ -208,22 +220,24 @@ abstract class _ConfirmCardSetupData implements ConfirmCardSetupData { factory _ConfirmCardSetupData.fromJson(Map json) = _$ConfirmCardSetupDataImpl.fromJson; - @override - /// Either the id of an existing PaymentMethod, or an object containing /// data to create a PaymentMethod with. /// See the use case sections below for details. + @override @paymentMethodDetailJsonKey CardPaymentMethodDetails? get paymentMethod; - @override /// If you are handling next actions yourself, pass in a return_url. /// If the subsequent action is redirect_to_url, /// this URL will be used on the return path for the redirect. + @override @JsonKey(name: "return_url") String? get returnUrl; + + /// Create a copy of ConfirmCardSetupData + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$ConfirmCardSetupDataImplCopyWith<_$ConfirmCardSetupDataImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_js/lib/src/api/setup_intents/confirm_card_setup_options.freezed.dart b/packages/stripe_js/lib/src/api/setup_intents/confirm_card_setup_options.freezed.dart index 111173984..55836817b 100644 --- a/packages/stripe_js/lib/src/api/setup_intents/confirm_card_setup_options.freezed.dart +++ b/packages/stripe_js/lib/src/api/setup_intents/confirm_card_setup_options.freezed.dart @@ -26,8 +26,12 @@ mixin _$ConfirmCardSetupOptions { /// (e.g. for use in the PaymentRequest API). Default is true. bool? get handleActions => throw _privateConstructorUsedError; + /// Serializes this ConfirmCardSetupOptions to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of ConfirmCardSetupOptions + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $ConfirmCardSetupOptionsCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -52,6 +56,8 @@ class _$ConfirmCardSetupOptionsCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of ConfirmCardSetupOptions + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -88,6 +94,8 @@ class __$$ConfirmCardSetupOptionsImplCopyWithImpl<$Res> $Res Function(_$ConfirmCardSetupOptionsImpl) _then) : super(_value, _then); + /// Create a copy of ConfirmCardSetupOptions + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -131,11 +139,13 @@ class _$ConfirmCardSetupOptionsImpl implements _ConfirmCardSetupOptions { other.handleActions == handleActions)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, handleActions); - @JsonKey(ignore: true) + /// Create a copy of ConfirmCardSetupOptions + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$ConfirmCardSetupOptionsImplCopyWith<_$ConfirmCardSetupOptionsImpl> @@ -157,14 +167,16 @@ abstract class _ConfirmCardSetupOptions implements ConfirmCardSetupOptions { factory _ConfirmCardSetupOptions.fromJson(Map json) = _$ConfirmCardSetupOptionsImpl.fromJson; - @override - /// Set this to false if you want to handle next actions yourself, /// or if you want to defer next action handling until later /// (e.g. for use in the PaymentRequest API). Default is true. + @override bool? get handleActions; + + /// Create a copy of ConfirmCardSetupOptions + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$ConfirmCardSetupOptionsImplCopyWith<_$ConfirmCardSetupOptionsImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_js/lib/src/api/setup_intents/confirm_sepa_debit_setup_data.freezed.dart b/packages/stripe_js/lib/src/api/setup_intents/confirm_sepa_debit_setup_data.freezed.dart index 9cad1262f..95c4bb6ad 100644 --- a/packages/stripe_js/lib/src/api/setup_intents/confirm_sepa_debit_setup_data.freezed.dart +++ b/packages/stripe_js/lib/src/api/setup_intents/confirm_sepa_debit_setup_data.freezed.dart @@ -25,8 +25,12 @@ mixin _$ConfirmSepaDebitSetupData { @JsonKey(name: "payment_method") String? get paymentMethod => throw _privateConstructorUsedError; + /// Serializes this ConfirmSepaDebitSetupData to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of ConfirmSepaDebitSetupData + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $ConfirmSepaDebitSetupDataCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -51,6 +55,8 @@ class _$ConfirmSepaDebitSetupDataCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of ConfirmSepaDebitSetupData + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -85,6 +91,8 @@ class __$$ConfirmCardSetupDataImplCopyWithImpl<$Res> $Res Function(_$ConfirmCardSetupDataImpl) _then) : super(_value, _then); + /// Create a copy of ConfirmSepaDebitSetupData + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -127,11 +135,13 @@ class _$ConfirmCardSetupDataImpl implements _ConfirmCardSetupData { other.paymentMethod == paymentMethod)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, paymentMethod); - @JsonKey(ignore: true) + /// Create a copy of ConfirmSepaDebitSetupData + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$ConfirmCardSetupDataImplCopyWith<_$ConfirmCardSetupDataImpl> @@ -155,13 +165,15 @@ abstract class _ConfirmCardSetupData implements ConfirmSepaDebitSetupData { factory _ConfirmCardSetupData.fromJson(Map json) = _$ConfirmCardSetupDataImpl.fromJson; - @override - /// The id of an existing PaymentMethod or an object of collected data. + @override @JsonKey(name: "payment_method") String? get paymentMethod; + + /// Create a copy of ConfirmSepaDebitSetupData + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$ConfirmCardSetupDataImplCopyWith<_$ConfirmCardSetupDataImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_js/lib/src/api/setup_intents/setup_intent.freezed.dart b/packages/stripe_js/lib/src/api/setup_intents/setup_intent.freezed.dart index e9aee4ea2..76b5c5a2c 100644 --- a/packages/stripe_js/lib/src/api/setup_intents/setup_intent.freezed.dart +++ b/packages/stripe_js/lib/src/api/setup_intents/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); @@ -139,8 +139,12 @@ mixin _$SetupIntent { /// If not provided, this value defaults to off_session. SetupIntentUsage get usage => 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; } @@ -190,6 +194,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({ @@ -359,6 +365,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({ @@ -702,7 +710,7 @@ class _$SetupIntentImpl implements _SetupIntent { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$SetupIntentImpl && @@ -747,7 +755,7 @@ class _$SetupIntentImpl implements _SetupIntent { (identical(other.usage, usage) || other.usage == usage)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hashAll([ runtimeType, @@ -776,7 +784,9 @@ class _$SetupIntentImpl implements _SetupIntent { usage ]); - @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 => @@ -823,22 +833,20 @@ abstract class _SetupIntent implements SetupIntent { factory _SetupIntent.fromJson(Map json) = _$SetupIntentImpl.fromJson; - @override - /// Unique identifier for the object. - String get id; @override + String get id; /// String representing the object’s type. /// Objects of the same type share the same value. /// Value is "setup_intent". - String get object; @override + String get object; /// CONNECT ONLY /// ID of the Connect application that created the SetupIntent. - String? get application; @override + String? get application; /// If present, the SetupIntent’s payment method will be attached to /// the in-context Stripe Account. @@ -846,15 +854,15 @@ abstract class _SetupIntent implements SetupIntent { /// flows like InboundTransfer and OutboundTransfers. /// It cannot be set to true when setting up a PaymentMethod for a Customer, /// and defaults to false when attaching a PaymentMethod to a Customer. + @override @JsonKey(name: "attach_to_self") String? get attachToSelf; - @override /// Reason for cancellation of this SetupIntent, /// one of abandoned, requested_by_customer, or duplicate. + @override @JsonKey(name: "cancellation_reason") SetupIntentCancellationReason? get cancellationReason; - @override /// The client secret of this SetupIntent. /// Used for client-side retrieval using a publishable key. @@ -862,23 +870,23 @@ abstract class _SetupIntent implements SetupIntent { /// It should not be stored, logged, or exposed to anyone other than the /// customer. Make sure that you have TLS enabled on any page that includes /// the client secret. + @override @JsonKey(name: "client_secret") String get clientSecret; - @override /// Time at which the object was created. Measured in seconds since the /// Unix epoch. - int? get created; @override + int? get created; /// The ID of the Customer this SetupIntent belongs to. - String? get customer; @override + String? get customer; /// An arbitrary string attached to the object. /// Often useful for displaying to users. - String? get description; @override + String? get description; /// Indicates the directions of money movement for which this payment /// method is intended to be used. @@ -888,82 +896,86 @@ abstract class _SetupIntent implements SetupIntent { /// the destination to send funds to. /// You can include both if you intend to use the payment /// method for both purposes + @override @JsonKey(name: "flow_directions") List? get flowDirections; - @override /// The error encountered in the previous SetupIntent confirmation. + @override @JsonKey(name: "last_setup_error") dynamic get lastSetupError; - @override /// The most recent SetupAttempt for this SetupIntent. + @override @JsonKey(name: "latest_attempt") String? get latestAttempt; - @override /// Has the value true if the object exists in live mode or the /// value false if the object exists in test mode. - bool get livemode; @override + bool get livemode; /// ID of the multi use Mandate generated by the SetupIntent. - String? get mandate; @override + String? get mandate; /// Set of key-value pairs that you can attach to an object. /// This can be useful for storing additional information about the /// object in a structured format. - Map get metadata; @override + Map get metadata; /// If present, this property tells you what actions you need to /// take in order for your customer to continue payment setup. + @override @JsonKey(name: "next_action") dynamic get nextAction; - @override /// CONNECT ONLY /// The account (if any) for which the setup is intended. + @override @JsonKey(name: "on_behalf_of") String? get onBehalfOf; - @override /// ID of the payment method used in this SetupIntent. + @override @JsonKey(name: "payment_method") String? get paymentMethod; - @override /// Payment-method-specific configuration for this SetupIntent. + @override @JsonKey(name: "payment_method_options") dynamic get paymentMethodOptions; - @override /// The list of payment method types (e.g. card) that this SetupIntent /// is allowed to set up. + @override @JsonKey(name: "payment_method_types") List get paymentMethodTypes; - @override /// ID of the single_use Mandate generated by the SetupIntent. + @override @JsonKey(name: "single_use_mandate") String? get singleUseMandate; - @override /// Status of this SetupIntent, one of requires_payment_method, /// requires_confirmation, requires_action, processing, canceled, or /// succeeded. - SetupIntentsStatus get status; @override + SetupIntentsStatus get status; /// Indicates how the payment method is intended to be used in the future. /// Use on_session if you intend to only reuse the payment method when /// the customer is in your checkout flow. /// Use off_session if your customer may or may not be in your checkout flow. /// If not provided, this value defaults to off_session. + @override SetupIntentUsage get usage; + + /// 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; } diff --git a/packages/stripe_js/lib/src/api/setup_intents/setup_intent_response.freezed.dart b/packages/stripe_js/lib/src/api/setup_intents/setup_intent_response.freezed.dart index 18dcc9ca5..90a843f06 100644 --- a/packages/stripe_js/lib/src/api/setup_intents/setup_intent_response.freezed.dart +++ b/packages/stripe_js/lib/src/api/setup_intents/setup_intent_response.freezed.dart @@ -12,7 +12,7 @@ part of 'setup_intent_response.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'); SetupIntentResponse _$SetupIntentResponseFromJson(Map json) { return _SetupIntentResponse.fromJson(json); @@ -26,8 +26,12 @@ mixin _$SetupIntentResponse { /// If not null, an error occurred StripeError? get error => throw _privateConstructorUsedError; + /// Serializes this SetupIntentResponse to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of SetupIntentResponse + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $SetupIntentResponseCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -54,6 +58,8 @@ class _$SetupIntentResponseCopyWithImpl<$Res, $Val extends SetupIntentResponse> // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of SetupIntentResponse + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -72,6 +78,8 @@ class _$SetupIntentResponseCopyWithImpl<$Res, $Val extends SetupIntentResponse> ) as $Val); } + /// Create a copy of SetupIntentResponse + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $SetupIntentCopyWith<$Res>? get setupIntent { @@ -84,6 +92,8 @@ class _$SetupIntentResponseCopyWithImpl<$Res, $Val extends SetupIntentResponse> }); } + /// Create a copy of SetupIntentResponse + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $StripeErrorCopyWith<$Res>? get error { @@ -121,6 +131,8 @@ class __$$SetupIntentResponseImplCopyWithImpl<$Res> $Res Function(_$SetupIntentResponseImpl) _then) : super(_value, _then); + /// Create a copy of SetupIntentResponse + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -162,7 +174,7 @@ class _$SetupIntentResponseImpl implements _SetupIntentResponse { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$SetupIntentResponseImpl && @@ -171,11 +183,13 @@ class _$SetupIntentResponseImpl implements _SetupIntentResponse { (identical(other.error, error) || other.error == error)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, setupIntent, error); - @JsonKey(ignore: true) + /// Create a copy of SetupIntentResponse + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$SetupIntentResponseImplCopyWith<_$SetupIntentResponseImpl> get copyWith => @@ -198,16 +212,18 @@ abstract class _SetupIntentResponse implements SetupIntentResponse { factory _SetupIntentResponse.fromJson(Map json) = _$SetupIntentResponseImpl.fromJson; - @override - /// If not null, a SetupIntent was retrieved successfully - SetupIntent? get setupIntent; @override + SetupIntent? get setupIntent; /// If not null, an error occurred + @override StripeError? get error; + + /// Create a copy of SetupIntentResponse + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$SetupIntentResponseImplCopyWith<_$SetupIntentResponseImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_js/lib/src/api/tokens/create_token_bank_account_data.freezed.dart b/packages/stripe_js/lib/src/api/tokens/create_token_bank_account_data.freezed.dart index 140330703..60227ee5e 100644 --- a/packages/stripe_js/lib/src/api/tokens/create_token_bank_account_data.freezed.dart +++ b/packages/stripe_js/lib/src/api/tokens/create_token_bank_account_data.freezed.dart @@ -12,7 +12,7 @@ part of 'create_token_bank_account_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'); CreateTokenBankAccountData _$CreateTokenBankAccountDataFromJson( Map json) { @@ -37,8 +37,12 @@ mixin _$CreateTokenBankAccountData { @JsonKey(name: "account_type") String? get accountType => throw _privateConstructorUsedError; + /// Serializes this CreateTokenBankAccountData to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of CreateTokenBankAccountData + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $CreateTokenBankAccountDataCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -72,6 +76,8 @@ class _$CreateTokenBankAccountDataCopyWithImpl<$Res, // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of CreateTokenBankAccountData + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -146,6 +152,8 @@ class __$$CreateTokenBankAccountDataImplCopyWithImpl<$Res> $Res Function(_$CreateTokenBankAccountDataImpl) _then) : super(_value, _then); + /// Create a copy of CreateTokenBankAccountData + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -234,7 +242,7 @@ class _$CreateTokenBankAccountDataImpl implements _CreateTokenBankAccountData { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$CreateTokenBankAccountDataImpl && @@ -253,12 +261,14 @@ class _$CreateTokenBankAccountDataImpl implements _CreateTokenBankAccountData { other.accountType == accountType)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, country, currency, routingNumber, accountNumber, accountHolderName, accountHolderType, accountType); - @JsonKey(ignore: true) + /// Create a copy of CreateTokenBankAccountData + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$CreateTokenBankAccountDataImplCopyWith<_$CreateTokenBankAccountDataImpl> @@ -291,9 +301,9 @@ abstract class _CreateTokenBankAccountData @override String get country; - @override /// Three character currency code (e.g., usd). + @override String get currency; @override @JsonKey(name: "routing_number") @@ -310,8 +320,11 @@ abstract class _CreateTokenBankAccountData @override @JsonKey(name: "account_type") String? get accountType; + + /// Create a copy of CreateTokenBankAccountData + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$CreateTokenBankAccountDataImplCopyWith<_$CreateTokenBankAccountDataImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_js/lib/src/api/tokens/create_token_card_data.freezed.dart b/packages/stripe_js/lib/src/api/tokens/create_token_card_data.freezed.dart index db8c6dd8e..236a93803 100644 --- a/packages/stripe_js/lib/src/api/tokens/create_token_card_data.freezed.dart +++ b/packages/stripe_js/lib/src/api/tokens/create_token_card_data.freezed.dart @@ -55,8 +55,12 @@ mixin _$CreateTokenCardData { @JsonKey(name: "currency") String? get currency => throw _privateConstructorUsedError; + /// Serializes this CreateTokenCardData to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of CreateTokenCardData + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $CreateTokenCardDataCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -88,6 +92,8 @@ class _$CreateTokenCardDataCopyWithImpl<$Res, $Val extends CreateTokenCardData> // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of CreateTokenCardData + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -164,6 +170,8 @@ class __$$CreateTokenCardDataImplCopyWithImpl<$Res> $Res Function(_$CreateTokenCardDataImpl) _then) : super(_value, _then); + /// Create a copy of CreateTokenCardData + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -299,12 +307,14 @@ class _$CreateTokenCardDataImpl implements _CreateTokenCardData { other.currency == currency)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, name, addressLine1, addressLine2, addressCity, addressState, addressZip, addressCountry, currency); - @JsonKey(ignore: true) + /// Create a copy of CreateTokenCardData + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$CreateTokenCardDataImplCopyWith<_$CreateTokenCardDataImpl> get copyWith => @@ -334,51 +344,53 @@ abstract class _CreateTokenCardData implements CreateTokenCardData { factory _CreateTokenCardData.fromJson(Map json) = _$CreateTokenCardDataImpl.fromJson; - @override - /// RECOMMENDED /// Cardholder name. - String? get name; @override + String? get name; /// Address line 1 (Street address/PO Box/Company name). + @override @JsonKey(name: "address_line1") String? get addressLine1; - @override /// Address line 2 (Apartment/Suite/Unit/Building). + @override @JsonKey(name: "address_line2") String? get addressLine2; - @override /// City/District/Suburb/Town/Village. + @override @JsonKey(name: "address_city") String? get addressCity; - @override /// State/County/Province/Region. + @override @JsonKey(name: "address_state") String? get addressState; - @override /// ZIP or postal code. + @override @JsonKey(name: "address_zip") String? get addressZip; - @override /// RECOMMENDED. /// A two character country code (for example, US). /// Billing address country + @override @JsonKey(name: "address_country") String? get addressCountry; - @override /// Required in order to add the card to a Connect account ///(in all other cases, this parameter is not used). + @override @JsonKey(name: "currency") String? get currency; + + /// Create a copy of CreateTokenCardData + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$CreateTokenCardDataImplCopyWith<_$CreateTokenCardDataImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_js/lib/src/api/tokens/create_token_pii_data.freezed.dart b/packages/stripe_js/lib/src/api/tokens/create_token_pii_data.freezed.dart index 3162f1e5f..3e7dd1045 100644 --- a/packages/stripe_js/lib/src/api/tokens/create_token_pii_data.freezed.dart +++ b/packages/stripe_js/lib/src/api/tokens/create_token_pii_data.freezed.dart @@ -23,8 +23,12 @@ mixin _$CreateTokenPIIData { @JsonKey(name: "personal_id_number") String get personalIdNumber => throw _privateConstructorUsedError; + /// Serializes this CreateTokenPIIData to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of CreateTokenPIIData + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $CreateTokenPIIDataCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -48,6 +52,8 @@ class _$CreateTokenPIIDataCopyWithImpl<$Res, $Val extends CreateTokenPIIData> // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of CreateTokenPIIData + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -81,6 +87,8 @@ class __$$CreateTokenPIIDataImplCopyWithImpl<$Res> $Res Function(_$CreateTokenPIIDataImpl) _then) : super(_value, _then); + /// Create a copy of CreateTokenPIIData + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -122,11 +130,13 @@ class _$CreateTokenPIIDataImpl implements _CreateTokenPIIData { other.personalIdNumber == personalIdNumber)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, personalIdNumber); - @JsonKey(ignore: true) + /// Create a copy of CreateTokenPIIData + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$CreateTokenPIIDataImplCopyWith<_$CreateTokenPIIDataImpl> get copyWith => @@ -152,8 +162,11 @@ abstract class _CreateTokenPIIData implements CreateTokenPIIData { @override @JsonKey(name: "personal_id_number") String get personalIdNumber; + + /// Create a copy of CreateTokenPIIData + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$CreateTokenPIIDataImplCopyWith<_$CreateTokenPIIDataImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_js/lib/src/api/tokens/token.freezed.dart b/packages/stripe_js/lib/src/api/tokens/token.freezed.dart index 21b06bc8b..be39c62bd 100644 --- a/packages/stripe_js/lib/src/api/tokens/token.freezed.dart +++ b/packages/stripe_js/lib/src/api/tokens/token.freezed.dart @@ -53,8 +53,12 @@ mixin _$Token { /// (tokens can be used only once). bool get used => throw _privateConstructorUsedError; + /// Serializes this Token to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of Token + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $TokenCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -88,6 +92,8 @@ class _$TokenCopyWithImpl<$Res, $Val extends Token> // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of Token + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -141,6 +147,8 @@ class _$TokenCopyWithImpl<$Res, $Val extends Token> ) as $Val); } + /// Create a copy of Token + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $BankAccountTokenCopyWith<$Res>? get bankAccount { @@ -153,6 +161,8 @@ class _$TokenCopyWithImpl<$Res, $Val extends Token> }); } + /// Create a copy of Token + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $CardTokenCopyWith<$Res>? get card { @@ -198,6 +208,8 @@ class __$$TokenImplCopyWithImpl<$Res> _$TokenImpl _value, $Res Function(_$TokenImpl) _then) : super(_value, _then); + /// Create a copy of Token + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -338,12 +350,14 @@ class _$TokenImpl implements _Token { (identical(other.used, used) || other.used == used)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, id, object, bankAccount, card, clientIP, created, livemode, type, used); - @JsonKey(ignore: true) + /// Create a copy of Token + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$TokenImplCopyWith<_$TokenImpl> get copyWith => @@ -371,50 +385,52 @@ abstract class _Token implements Token { factory _Token.fromJson(Map json) = _$TokenImpl.fromJson; - @override - /// Unique identifier for the object. - String get id; @override + String get id; /// String representing the object’s type. /// Objects of the same type share the same value. /// Value is "token". - String get object; @override + String get object; /// Hash describing the bank account. + @override @JsonKey(name: "bank_account") BankAccountToken? get bankAccount; - @override /// Hash describing the card used to make the charge. - CardToken? get card; @override + CardToken? get card; /// IP address of the client that generated the token. + @override @JsonKey(name: "client_ip") String? get clientIP; - @override /// Time at which the object was created. Measured in seconds since the Unix epoch. - int? get created; @override + int? get created; /// Type of the token: account, bank_account, card, or pii. - bool get livemode; @override + bool get livemode; /// Has the value true if the object exists in live mode or the /// value false if the object exists in test mode. - TokenType get type; @override + TokenType get type; /// Whether this token has already been used /// (tokens can be used only once). + @override bool get used; + + /// Create a copy of Token + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$TokenImplCopyWith<_$TokenImpl> get copyWith => throw _privateConstructorUsedError; } @@ -494,8 +510,12 @@ mixin _$BankAccountToken { /// stopped until account details are updated. BankAccountStatus? get status => throw _privateConstructorUsedError; + /// Serializes this BankAccountToken to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of BankAccountToken + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $BankAccountTokenCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -532,6 +552,8 @@ class _$BankAccountTokenCopyWithImpl<$Res, $Val extends BankAccountToken> // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of BankAccountToken + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -633,6 +655,8 @@ class __$$BankAccountTokenImplCopyWithImpl<$Res> $Res Function(_$BankAccountTokenImpl) _then) : super(_value, _then); + /// Create a copy of BankAccountToken + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -834,7 +858,7 @@ class _$BankAccountTokenImpl implements _BankAccountToken { (identical(other.status, status) || other.status == status)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash( runtimeType, @@ -851,7 +875,9 @@ class _$BankAccountTokenImpl implements _BankAccountToken { routingNumber, status); - @JsonKey(ignore: true) + /// Create a copy of BankAccountToken + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$BankAccountTokenImplCopyWith<_$BankAccountTokenImpl> get copyWith => @@ -885,64 +911,62 @@ abstract class _BankAccountToken implements BankAccountToken { factory _BankAccountToken.fromJson(Map json) = _$BankAccountTokenImpl.fromJson; - @override - /// Unique identifier for the object. - String get id; @override + String get id; /// String representing the object’s type. /// Objects of the same type share the same value. /// Value is "bank_account". - String get object; @override + String get object; /// The name of the person or business that owns the bank account. + @override @JsonKey(name: "account_holder_name") String? get accountHolderName; - @override /// The type of entity that holds the account. /// This can be either individual or company. + @override @JsonKey(name: "account_holder_type") BankAccountHolderType? get accountHolderType; - @override /// The bank account type. /// This can only be checking or savings in most countries. /// In Japan, this can only be futsu or toza. + @override @JsonKey(name: "account_type") String? get accountType; - @override /// Name of the bank associated with the routing number (e.g., WELLS FARGO). + @override @JsonKey(name: "bank_name") String? get bankName; - @override /// Two-letter ISO code representing the country the bank account is /// located in. - String? get country; @override + String? get country; /// Three-letter ISO code for the currency paid out to the bank account. - String? get currency; @override + String? get currency; /// Uniquely identifies this particular bank account. /// You can use this attribute to check whether two bank accounts are /// the same. - String? get fingerprint; @override + String? get fingerprint; /// The last four digits of the bank account number. - String? get last4; @override + String? get last4; /// The routing transit number for the bank account. + @override @JsonKey(name: "routing_number") String? get routingNumber; - @override /// For bank accounts, possible values are new, validated, verified, /// verification_failed, or errored. @@ -964,9 +988,13 @@ abstract class _BankAccountToken implements BankAccountToken { /// only used for payouts. This means the other statuses don’t apply. /// If a transfer fails, the status is set to errored and transfers are /// stopped until account details are updated. + @override BankAccountStatus? get status; + + /// Create a copy of BankAccountToken + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$BankAccountTokenImplCopyWith<_$BankAccountTokenImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1089,8 +1117,12 @@ mixin _$CardToken { CardTokenizationMethod? get tokenizationMethod => throw _privateConstructorUsedError; + /// Serializes this CardToken to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of CardToken + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $CardTokenCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -1138,6 +1170,8 @@ class _$CardTokenCopyWithImpl<$Res, $Val extends CardToken> // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of CardToken + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1306,6 +1340,8 @@ class __$$CardTokenImplCopyWithImpl<$Res> _$CardTokenImpl _value, $Res Function(_$CardTokenImpl) _then) : super(_value, _then); + /// Create a copy of CardToken + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -1656,7 +1692,7 @@ class _$CardTokenImpl implements _CardToken { other.tokenizationMethod == tokenizationMethod)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hashAll([ runtimeType, @@ -1685,7 +1721,9 @@ class _$CardTokenImpl implements _CardToken { tokenizationMethod ]); - @JsonKey(ignore: true) + /// Create a copy of CardToken + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$CardTokenImplCopyWith<_$CardTokenImpl> get copyWith => @@ -1731,75 +1769,73 @@ abstract class _CardToken implements CardToken { factory _CardToken.fromJson(Map json) = _$CardTokenImpl.fromJson; - @override - /// Unique identifier for the object. - String get id; @override + String get id; /// String representing the object’s type. /// Objects of the same type share the same value. /// Value is "card". - String get object; @override + String get object; /// City/District/Suburb/Town/Village. + @override @JsonKey(name: "address_city") String? get addressCity; - @override /// Billing address country, if provided when creating card. + @override @JsonKey(name: "address_country") String? get addressCountry; - @override /// Address line 1 (Street address/PO Box/Company name). + @override @JsonKey(name: "address_line1") String? get addressLine1; - @override /// If address_line1 was provided, results of the check: /// pass, fail, unavailable, or unchecked. + @override @JsonKey(name: "address_line1_check") VerificationCheck? get addressLine1Check; - @override /// Address line 2 (Apartment/Suite/Unit/Building). + @override @JsonKey(name: "address_line2") String? get addressLine2; - @override /// State/County/Province/Region. + @override @JsonKey(name: "address_state") String? get addressState; - @override /// ZIP or postal code. + @override @JsonKey(name: "address_zip") String? get addressZip; - @override /// If address_zip was provided, results of the check: /// pass, fail, unavailable, or unchecked. + @override @JsonKey(name: "address_zip_check") VerificationCheck? get addressZipCheck; - @override /// If address_zip was provided, results of the check: /// pass, fail, unavailable, or unchecked. - CardTokenBrand? get brand; @override + CardTokenBrand? get brand; /// Two-letter ISO code representing the country of the card. /// You could use this attribute to get a sense of the /// international breakdown of cards you’ve collected. - String? get country; @override + String? get country; /// Three-letter ISO currency code, in lowercase. /// Must be a supported currency. - String? get currency; @override + String? get currency; /// If a CVC was provided, results of the check: /// pass, fail, unavailable, or unchecked. @@ -1809,25 +1845,25 @@ abstract class _CardToken implements CardToken { /// object, or when creating a charge. For more details, see /// Check if a card is valid without a charge. /// https://support.stripe.com/questions/check-if-a-card-is-valid-without-a-charge + @override @JsonKey(name: "cvc_check") VerificationCheck? get cvcCheck; - @override /// (For tokenized numbers only.) /// The last four digits of the device account number. + @override @JsonKey(name: "dynamic_last4") String? get dynamicLast4; - @override /// Two-digit number representing the card’s expiration month. + @override @JsonKey(name: "exp_month") int? get expMonth; - @override /// Four-digit number representing the card’s expiration year. + @override @JsonKey(name: "exp_year") int? get expYear; - @override /// Uniquely identifies this particular card number. /// You can use this attribute to check whether two customers who’ve @@ -1838,34 +1874,38 @@ abstract class _CardToken implements CardToken { /// Starting May 1, 2021, card fingerprint in India for Connect will /// change to allow two fingerprints for the same card — one for India and /// one for the rest of the world. - String? get fingerprint; @override + String? get fingerprint; /// Card funding type. Can be credit, debit, prepaid, or unknown. - CardFundingType? get funding; @override + CardFundingType? get funding; /// The last four digits of the card. - String? get last4; @override + String? get last4; /// Set of key-value pairs that you can attach to an object. /// This can be useful for storing additional information about the object /// in a structured forma - Map get metadata; @override + Map get metadata; /// Cardholder name. - String? get name; @override + String? get name; /// If the card number is tokenized, this is the method that was used. /// Can be android_pay (includes Google Pay), apple_pay, masterpass, /// visa_checkout, or null. + @override @JsonKey(name: "tokenization_method") CardTokenizationMethod? get tokenizationMethod; + + /// Create a copy of CardToken + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$CardTokenImplCopyWith<_$CardTokenImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_js/lib/src/api/tokens/token_response.freezed.dart b/packages/stripe_js/lib/src/api/tokens/token_response.freezed.dart index c609f8738..480ba7620 100644 --- a/packages/stripe_js/lib/src/api/tokens/token_response.freezed.dart +++ b/packages/stripe_js/lib/src/api/tokens/token_response.freezed.dart @@ -12,7 +12,7 @@ part of 'token_response.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'); TokenResponse _$TokenResponseFromJson(Map json) { return _TokenResponse.fromJson(json); @@ -27,8 +27,12 @@ mixin _$TokenResponse { /// This includes client-side validation errors StripeError? get error => throw _privateConstructorUsedError; + /// Serializes this TokenResponse to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of TokenResponse + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $TokenResponseCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -55,6 +59,8 @@ class _$TokenResponseCopyWithImpl<$Res, $Val extends TokenResponse> // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of TokenResponse + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -73,6 +79,8 @@ class _$TokenResponseCopyWithImpl<$Res, $Val extends TokenResponse> ) as $Val); } + /// Create a copy of TokenResponse + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $TokenCopyWith<$Res>? get token { @@ -85,6 +93,8 @@ class _$TokenResponseCopyWithImpl<$Res, $Val extends TokenResponse> }); } + /// Create a copy of TokenResponse + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $StripeErrorCopyWith<$Res>? get error { @@ -122,6 +132,8 @@ class __$$TokenResponseImplCopyWithImpl<$Res> _$TokenResponseImpl _value, $Res Function(_$TokenResponseImpl) _then) : super(_value, _then); + /// Create a copy of TokenResponse + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -164,7 +176,7 @@ class _$TokenResponseImpl implements _TokenResponse { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$TokenResponseImpl && @@ -172,11 +184,13 @@ class _$TokenResponseImpl implements _TokenResponse { (identical(other.error, error) || other.error == error)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, token, error); - @JsonKey(ignore: true) + /// Create a copy of TokenResponse + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$TokenResponseImplCopyWith<_$TokenResponseImpl> get copyWith => @@ -197,17 +211,19 @@ abstract class _TokenResponse implements TokenResponse { factory _TokenResponse.fromJson(Map json) = _$TokenResponseImpl.fromJson; - @override - /// If not null, a Token was created successfully. - Token? get token; @override + Token? get token; /// If not null, an error occurred. /// This includes client-side validation errors + @override StripeError? get error; + + /// Create a copy of TokenResponse + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$TokenResponseImplCopyWith<_$TokenResponseImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_js/lib/src/js/elements/element_express_checkout/element_express_checkout.dart b/packages/stripe_js/lib/src/js/elements/element_express_checkout/element_express_checkout.dart index 2aec7b5a5..60acf19d5 100644 --- a/packages/stripe_js/lib/src/js/elements/element_express_checkout/element_express_checkout.dart +++ b/packages/stripe_js/lib/src/js/elements/element_express_checkout/element_express_checkout.dart @@ -29,11 +29,11 @@ extension type ExpressCheckoutElement(StripeElement o) return _update((options?.toJson() ?? {}).jsify()); } - external void collapse(); - - void onChange(EventCallback onEvent) { - return on("change", (event) { - onEvent(PaymentElementChangeEvent.fromJson(event.toDart)); + void onConfirm(EventCallback onEvent) { + return on("confirm", (event) { + onEvent(ExpressCheckoutConfirmEvent.fromJson(event.toDart)); }); } + + external void collapse(); } diff --git a/packages/stripe_web/lib/src/widgets/express_checkout_element.dart b/packages/stripe_web/lib/src/widgets/express_checkout_element.dart index d802436df..4b185f4a0 100644 --- a/packages/stripe_web/lib/src/widgets/express_checkout_element.dart +++ b/packages/stripe_web/lib/src/widgets/express_checkout_element.dart @@ -17,6 +17,7 @@ class ExpressCheckoutElement extends StatefulWidget { final FocusNode? focusNode; final js.ElementAppearance? appearance; final js.ExpressCheckoutLayout? layout; + final ValueChanged onConfirm; ExpressCheckoutElement({ super.key, @@ -25,6 +26,7 @@ class ExpressCheckoutElement extends StatefulWidget { this.focusNode, this.appearance, this.layout, + required this.onConfirm, }); @override @@ -43,7 +45,8 @@ class ExpressCheckoutElementState extends State { element = elements!.createExpressCheckout(elementOptions()) ..mount('#express-checkout-element'.toJS) ..onBlur(requestBlur) - ..onFocus(requestFocus); + ..onFocus(requestFocus) + ..onConfirm(confirm); mutationObserver = web.MutationObserver( (JSArray entries, web.MutationObserver observer) { @@ -117,6 +120,12 @@ class ExpressCheckoutElementState extends State { _effectiveNode.requestFocus(); } + void confirm(js.ExpressCheckoutConfirmEvent response) { + widget.onConfirm(response.expressPaymentType); + + return; + } + // void onCardChanged(js.PaymentElementChangeEvent response) { // final details = CardFieldInputDetails( // complete: response.complete,